Debian Codegraph @

configure

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #! /bin/sh
2 # From configure.ac Rev:29 by [email protected].
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for alpine 2.26.
5 #
6 # Report bugs to <[email protected]>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
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 ## -------------------- ##
17
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 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
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"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
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=';'
81 }
82 fi
83
84
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"
91
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
98 do
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
104
105 ;;
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
111 fi
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
115 fi
116
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='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
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
160 fi
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 *) :
176 ;;
177 esac
178 fi
179 "
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; }
185
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 :
192
193 else
194 exitcode=1; echo positional parameters were not saved.
195 fi
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
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
215 fi
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
227 /*)
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
236 fi
237 fi
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
247
248
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell [email protected] and
279 $0: [email protected] about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='alpine'
593 PACKAGE_TARNAME='alpine'
594 PACKAGE_VERSION='2.26'
595 PACKAGE_STRING='alpine 2.26'
596 PACKAGE_BUGREPORT='[email protected]'
597 PACKAGE_URL=''
598
599 ac_unique_file="include/system.h"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 gt_needs=
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 AM_LDFLAGS
642 AM_CFLAGS
643 WEB_PUBCOOKIE_LINK
644 WEB_PUBCOOKIE_LIB
645 WEB_PUBCOOKIE_BUILD
646 WEB_BINDIR
647 WEB_BUILD
648 REGEX_BUILD
649 C_CLIENT_SPECIALS
650 C_CLIENT_AUTHS
651 C_CLIENT_GCCOPTLEVEL
652 C_CLIENT_LDFLAGS
653 C_CLIENT_CFLAGS
654 C_CLIENT_WITH_IPV6
655 C_CLIENT_TARGET
656 PTHREAD_CFLAGS
657 PTHREAD_LIBS
658 PTHREAD_CC
659 acx_pthread_config
660 C_CLIENT_BUNDLED
661 alpine_interactive_spellcheck
662 ISPELLPROG
663 alpine_simple_spellcheck
664 SPELLPROG
665 PWPROG
666 NPA_PROG
667 SENDMAIL
668 ALPINE_HOSTSTAMP
669 ALPINE_DATESTAMP
670 POSUB
671 LTLIBINTL
672 LIBINTL
673 INTLLIBS
674 LTLIBICONV
675 LIBICONV
676 INTL_MACOSX_LIBS
677 MSGMERGE
678 XGETTEXT_015
679 XGETTEXT
680 GMSGFMT_015
681 MSGFMT_015
682 GMSGFMT
683 MSGFMT
684 USE_NLS
685 MAKE
686 LS
687 LN
688 CP
689 RM
690 LIBTOOL_DEPS
691 LT_SYS_LIBRARY_PATH
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 MANIFEST_TOOL
698 RANLIB
699 ac_ct_AR
700 AR
701 DLLTOOL
702 OBJDUMP
703 NM
704 ac_ct_DUMPBIN
705 DUMPBIN
706 LD
707 FGREP
708 EGREP
709 GREP
710 SED
711 LIBTOOL
712 LN_S
713 LDFLAGS_FOR_BUILD
714 CPPFLAGS_FOR_BUILD
715 CFLAGS_FOR_BUILD
716 BUILD_OBJEXT
717 BUILD_EXEEXT
718 CPP_FOR_BUILD
719 ac_ct_CC_FOR_BUILD
720 CC_FOR_BUILD
721 CPP
722 am__fastdepCC_FALSE
723 am__fastdepCC_TRUE
724 CCDEPMODE
725 am__nodep
726 AMDEPBACKSLASH
727 AMDEP_FALSE
728 AMDEP_TRUE
729 am__quote
730 am__include
731 DEPDIR
732 OBJEXT
733 EXEEXT
734 ac_ct_CC
735 CPPFLAGS
736 LDFLAGS
737 CFLAGS
738 CC
739 host_os
740 host_vendor
741 host_cpu
742 host
743 build_os
744 build_vendor
745 build_cpu
746 build
747 MAINT
748 MAINTAINER_MODE_FALSE
749 MAINTAINER_MODE_TRUE
750 AM_BACKSLASH
751 AM_DEFAULT_VERBOSITY
752 AM_DEFAULT_V
753 AM_V
754 am__untar
755 am__tar
756 AMTAR
757 am__leading_dot
758 SET_MAKE
759 AWK
760 mkdir_p
761 MKDIR_P
762 INSTALL_STRIP_PROGRAM
763 STRIP
764 install_sh
765 MAKEINFO
766 AUTOHEADER
767 AUTOMAKE
768 AUTOCONF
769 ACLOCAL
770 VERSION
771 PACKAGE
772 CYGPATH_W
773 am__isrc
774 INSTALL_DATA
775 INSTALL_SCRIPT
776 INSTALL_PROGRAM
777 target_alias
778 host_alias
779 build_alias
780 LIBS
781 ECHO_T
782 ECHO_N
783 ECHO_C
784 DEFS
785 mandir
786 localedir
787 libdir
788 psdir
789 pdfdir
790 dvidir
791 htmldir
792 infodir
793 docdir
794 oldincludedir
795 includedir
796 localstatedir
797 sharedstatedir
798 sysconfdir
799 datadir
800 datarootdir
801 libexecdir
802 sbindir
803 bindir
804 program_transform_name
805 prefix
806 exec_prefix
807 PACKAGE_URL
808 PACKAGE_BUGREPORT
809 PACKAGE_STRING
810 PACKAGE_VERSION
811 PACKAGE_TARNAME
812 PACKAGE_NAME
813 PATH_SEPARATOR
814 SHELL'
815 ac_subst_files=''
816 ac_user_opts='
817 enable_option_checking
818 enable_silent_rules
819 enable_maintainer_mode
820 enable_dependency_tracking
821 enable_shared
822 enable_static
823 with_pic
824 enable_fast_install
825 with_aix_soname
826 with_gnu_ld
827 with_sysroot
828 enable_libtool_lock
829 enable_nls
830 enable_rpath
831 with_libiconv_prefix
832 with_libintl_prefix
833 enable_dmalloc
834 with_dmalloc_dir
835 with_date_stamp
836 with_host_stamp
837 with_localedir
838 enable_osx_universal_binaries
839 with_include_path
840 with_lib_path
841 with_pubcookie
842 with_web_bin
843 enable_debug
844 enable_optimization
845 enable_mouse
846 enable_quotas
847 enable_from_changing
848 enable_background_post
849 enable_keyboard_lock
850 enable_from_encoding
851 with_smtp_msa
852 with_smtp_msa_flags
853 with_npa
854 with_npa_flags
855 with_password_prog
856 with_simple_spellcheck
857 with_interactive_spellcheck
858 with_system_pinerc
859 with_system_fixed_pinerc
860 with_local_support_info
861 with_mailcheck_interval
862 with_checkpoint_interval
863 with_checkpoint_frequency
864 with_display_rows
865 with_display_columns
866 with_max_display_rows
867 with_max_display_columns
868 with_fill_column
869 with_max_fill_column
870 with_debug_level
871 with_debug_files
872 with_debug_file
873 with_forwarded_keyword
874 with_display_overlap
875 with_display_margin
876 with_default_fcc
877 with_default_save_folder
878 with_default_legacy_postponed_folder
879 with_default_postponed_folder
880 with_default_trash_folder
881 with_default_interrupted_mail
882 with_default_dead_letter_folder
883 with_default_mail_directory
884 with_default_inbox_name
885 with_default_signature_file
886 with_default_elm_style_save
887 with_default_header_in_reply
888 with_default_old_style_reply
889 with_default_use_only_domain_name
890 with_default_save_by_sender
891 with_default_sort_key
892 with_default_addressbook_sort_rule
893 with_default_folder_sort_rule
894 with_default_saved_message_name_rule
895 with_default_fcc_rule
896 with_default_standard_printer
897 with_default_ansi_printer
898 with_default_addressbook
899 with_default_local_fullname
900 with_default_local_address
901 with_default_keyboard_lock_count
902 with_default_remote_addressbook_history
903 with_default_html_directory
904 with_smime_public_cert_directory
905 with_smime_private_key_directory
906 with_smime_cacert_directory
907 with_default_printer
908 with_default_sshpath
909 with_default_sshcmd
910 with_ssl
911 with_ssl_dir
912 with_ssl_certs_dir
913 with_ssl_include_dir
914 with_ssl_lib_dir
915 with_encryption_minimum_version
916 with_encryption_maximum_version
917 with_encryption_range
918 with_krb5
919 with_krb5_dir
920 with_krb5_include_dir
921 with_krb5_lib_dir
922 with_ldap
923 with_ldap_dir
924 with_ldap_include_dir
925 with_ldap_lib_dir
926 with_smime
927 with_tcl
928 with_tcl_lib_dir
929 with_tcl_lib
930 with_tcl_include
931 with_supplied_regex
932 with_pthread
933 with_system_mail_directory
934 with_c_client_target
935 with_bundled_tools
936 with_passfile
937 with_local_password_cache
938 with_local_password_cache_method
939 with_ipv6
940 with_dlopen
941 with_ntlm
942 '
943 ac_precious_vars='build_alias
944 host_alias
945 target_alias
946 CC
947 CFLAGS
948 LDFLAGS
949 LIBS
950 CPPFLAGS
951 CPP
952 LT_SYS_LIBRARY_PATH'
953
954
955 # Initialize some variables set by options.
956 ac_init_help=
957 ac_init_version=false
958 ac_unrecognized_opts=
959 ac_unrecognized_sep=
960 # The variables have the same names as the options, with
961 # dashes changed to underlines.
962 cache_file=/dev/null
963 exec_prefix=NONE
964 no_create=
965 no_recursion=
966 prefix=NONE
967 program_prefix=NONE
968 program_suffix=NONE
969 program_transform_name=s,x,x,
970 silent=
971 site=
972 srcdir=
973 verbose=
974 x_includes=NONE
975 x_libraries=NONE
976
977 # Installation directory options.
978 # These are left unexpanded so users can "make install exec_prefix=/foo"
979 # and all the variables that are supposed to be based on exec_prefix
980 # by default will actually change.
981 # Use braces instead of parens because sh, perl, etc. also accept them.
982 # (The list follows the same order as the GNU Coding Standards.)
983 bindir='${exec_prefix}/bin'
984 sbindir='${exec_prefix}/sbin'
985 libexecdir='${exec_prefix}/libexec'
986 datarootdir='${prefix}/share'
987 datadir='${datarootdir}'
988 sysconfdir='${prefix}/etc'
989 sharedstatedir='${prefix}/com'
990 localstatedir='${prefix}/var'
991 includedir='${prefix}/include'
992 oldincludedir='/usr/include'
993 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
994 infodir='${datarootdir}/info'
995 htmldir='${docdir}'
996 dvidir='${docdir}'
997 pdfdir='${docdir}'
998 psdir='${docdir}'
999 libdir='${exec_prefix}/lib'
1000 localedir='${datarootdir}/locale'
1001 mandir='${datarootdir}/man'
1002
1003 ac_prev=
1004 ac_dashdash=
1005 for ac_option
1006 do
1007 # If the previous option needs an argument, assign it.
1008 if test -n "$ac_prev"; then
1009 eval $ac_prev=\$ac_option
1010 ac_prev=
1011 continue
1012 fi
1013
1014 case $ac_option in
1015 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1016 *=) ac_optarg= ;;
1017 *) ac_optarg=yes ;;
1018 esac
1019
1020 # Accept the important Cygnus configure options, so we can diagnose typos.
1021
1022 case $ac_dashdash$ac_option in
1023 --)
1024 ac_dashdash=yes ;;
1025
1026 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1027 ac_prev=bindir ;;
1028 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1029 bindir=$ac_optarg ;;
1030
1031 -build | --build | --buil | --bui | --bu)
1032 ac_prev=build_alias ;;
1033 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1034 build_alias=$ac_optarg ;;
1035
1036 -cache-file | --cache-file | --cache-fil | --cache-fi \
1037 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1038 ac_prev=cache_file ;;
1039 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1040 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1041 cache_file=$ac_optarg ;;
1042
1043 --config-cache | -C)
1044 cache_file=config.cache ;;
1045
1046 -datadir | --datadir | --datadi | --datad)
1047 ac_prev=datadir ;;
1048 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1049 datadir=$ac_optarg ;;
1050
1051 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1052 | --dataroo | --dataro | --datar)
1053 ac_prev=datarootdir ;;
1054 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1055 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1056 datarootdir=$ac_optarg ;;
1057
1058 -disable-* | --disable-*)
1059 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062 as_fn_error $? "invalid feature name: $ac_useropt"
1063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1066 *"
1067 "enable_$ac_useropt"
1068 "*) ;;
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
1071 esac
1072 eval enable_$ac_useropt=no ;;
1073
1074 -docdir | --docdir | --docdi | --doc | --do)
1075 ac_prev=docdir ;;
1076 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077 docdir=$ac_optarg ;;
1078
1079 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1080 ac_prev=dvidir ;;
1081 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082 dvidir=$ac_optarg ;;
1083
1084 -enable-* | --enable-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error $? "invalid feature name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1092 *"
1093 "enable_$ac_useropt"
1094 "*) ;;
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1097 esac
1098 eval enable_$ac_useropt=\$ac_optarg ;;
1099
1100 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102 | --exec | --exe | --ex)
1103 ac_prev=exec_prefix ;;
1104 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106 | --exec=* | --exe=* | --ex=*)
1107 exec_prefix=$ac_optarg ;;
1108
1109 -gas | --gas | --ga | --g)
1110 # Obsolete; use --with-gas.
1111 with_gas=yes ;;
1112
1113 -help | --help | --hel | --he | -h)
1114 ac_init_help=long ;;
1115 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116 ac_init_help=recursive ;;
1117 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118 ac_init_help=short ;;
1119
1120 -host | --host | --hos | --ho)
1121 ac_prev=host_alias ;;
1122 -host=* | --host=* | --hos=* | --ho=*)
1123 host_alias=$ac_optarg ;;
1124
1125 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1126 ac_prev=htmldir ;;
1127 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128 | --ht=*)
1129 htmldir=$ac_optarg ;;
1130
1131 -includedir | --includedir | --includedi | --included | --include \
1132 | --includ | --inclu | --incl | --inc)
1133 ac_prev=includedir ;;
1134 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135 | --includ=* | --inclu=* | --incl=* | --inc=*)
1136 includedir=$ac_optarg ;;
1137
1138 -infodir | --infodir | --infodi | --infod | --info | --inf)
1139 ac_prev=infodir ;;
1140 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141 infodir=$ac_optarg ;;
1142
1143 -libdir | --libdir | --libdi | --libd)
1144 ac_prev=libdir ;;
1145 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146 libdir=$ac_optarg ;;
1147
1148 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149 | --libexe | --libex | --libe)
1150 ac_prev=libexecdir ;;
1151 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152 | --libexe=* | --libex=* | --libe=*)
1153 libexecdir=$ac_optarg ;;
1154
1155 -localedir | --localedir | --localedi | --localed | --locale)
1156 ac_prev=localedir ;;
1157 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158 localedir=$ac_optarg ;;
1159
1160 -localstatedir | --localstatedir | --localstatedi | --localstated \
1161 | --localstate | --localstat | --localsta | --localst | --locals)
1162 ac_prev=localstatedir ;;
1163 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1164 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1165 localstatedir=$ac_optarg ;;
1166
1167 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1168 ac_prev=mandir ;;
1169 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170 mandir=$ac_optarg ;;
1171
1172 -nfp | --nfp | --nf)
1173 # Obsolete; use --without-fp.
1174 with_fp=no ;;
1175
1176 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177 | --no-cr | --no-c | -n)
1178 no_create=yes ;;
1179
1180 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182 no_recursion=yes ;;
1183
1184 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186 | --oldin | --oldi | --old | --ol | --o)
1187 ac_prev=oldincludedir ;;
1188 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191 oldincludedir=$ac_optarg ;;
1192
1193 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1194 ac_prev=prefix ;;
1195 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196 prefix=$ac_optarg ;;
1197
1198 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199 | --program-pre | --program-pr | --program-p)
1200 ac_prev=program_prefix ;;
1201 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203 program_prefix=$ac_optarg ;;
1204
1205 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206 | --program-suf | --program-su | --program-s)
1207 ac_prev=program_suffix ;;
1208 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210 program_suffix=$ac_optarg ;;
1211
1212 -program-transform-name | --program-transform-name \
1213 | --program-transform-nam | --program-transform-na \
1214 | --program-transform-n | --program-transform- \
1215 | --program-transform | --program-transfor \
1216 | --program-transfo | --program-transf \
1217 | --program-trans | --program-tran \
1218 | --progr-tra | --program-tr | --program-t)
1219 ac_prev=program_transform_name ;;
1220 -program-transform-name=* | --program-transform-name=* \
1221 | --program-transform-nam=* | --program-transform-na=* \
1222 | --program-transform-n=* | --program-transform-=* \
1223 | --program-transform=* | --program-transfor=* \
1224 | --program-transfo=* | --program-transf=* \
1225 | --program-trans=* | --program-tran=* \
1226 | --progr-tra=* | --program-tr=* | --program-t=*)
1227 program_transform_name=$ac_optarg ;;
1228
1229 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1230 ac_prev=pdfdir ;;
1231 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232 pdfdir=$ac_optarg ;;
1233
1234 -psdir | --psdir | --psdi | --psd | --ps)
1235 ac_prev=psdir ;;
1236 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1237 psdir=$ac_optarg ;;
1238
1239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240 | -silent | --silent | --silen | --sile | --sil)
1241 silent=yes ;;
1242
1243 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244 ac_prev=sbindir ;;
1245 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246 | --sbi=* | --sb=*)
1247 sbindir=$ac_optarg ;;
1248
1249 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251 | --sharedst | --shareds | --shared | --share | --shar \
1252 | --sha | --sh)
1253 ac_prev=sharedstatedir ;;
1254 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257 | --sha=* | --sh=*)
1258 sharedstatedir=$ac_optarg ;;
1259
1260 -site | --site | --sit)
1261 ac_prev=site ;;
1262 -site=* | --site=* | --sit=*)
1263 site=$ac_optarg ;;
1264
1265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266 ac_prev=srcdir ;;
1267 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268 srcdir=$ac_optarg ;;
1269
1270 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271 | --syscon | --sysco | --sysc | --sys | --sy)
1272 ac_prev=sysconfdir ;;
1273 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275 sysconfdir=$ac_optarg ;;
1276
1277 -target | --target | --targe | --targ | --tar | --ta | --t)
1278 ac_prev=target_alias ;;
1279 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280 target_alias=$ac_optarg ;;
1281
1282 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1283 verbose=yes ;;
1284
1285 -version | --version | --versio | --versi | --vers | -V)
1286 ac_init_version=: ;;
1287
1288 -with-* | --with-*)
1289 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 as_fn_error $? "invalid package name: $ac_useropt"
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1296 *"
1297 "with_$ac_useropt"
1298 "*) ;;
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1301 esac
1302 eval with_$ac_useropt=\$ac_optarg ;;
1303
1304 -without-* | --without-*)
1305 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1308 as_fn_error $? "invalid package name: $ac_useropt"
1309 ac_useropt_orig=$ac_useropt
1310 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1311 case $ac_user_opts in
1312 *"
1313 "with_$ac_useropt"
1314 "*) ;;
1315 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1316 ac_unrecognized_sep=', ';;
1317 esac
1318 eval with_$ac_useropt=no ;;
1319
1320 --x)
1321 # Obsolete; use --with-x.
1322 with_x=yes ;;
1323
1324 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1325 | --x-incl | --x-inc | --x-in | --x-i)
1326 ac_prev=x_includes ;;
1327 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1328 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1329 x_includes=$ac_optarg ;;
1330
1331 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1332 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1333 ac_prev=x_libraries ;;
1334 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1335 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1336 x_libraries=$ac_optarg ;;
1337
1338 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1339 Try \`$0 --help' for more information"
1340 ;;
1341
1342 *=*)
1343 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1344 # Reject names that are not valid shell variable names.
1345 case $ac_envvar in #(
1346 '' | [0-9]* | *[!_$as_cr_alnum]* )
1347 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1348 esac
1349 eval $ac_envvar=\$ac_optarg
1350 export $ac_envvar ;;
1351
1352 *)
1353 # FIXME: should be removed in autoconf 3.0.
1354 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1355 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1356 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1357 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1358 ;;
1359
1360 esac
1361 done
1362
1363 if test -n "$ac_prev"; then
1364 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1365 as_fn_error $? "missing argument to $ac_option"
1366 fi
1367
1368 if test -n "$ac_unrecognized_opts"; then
1369 case $enable_option_checking in
1370 no) ;;
1371 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1372 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1373 esac
1374 fi
1375
1376 # Check all directory arguments for consistency.
1377 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1378 datadir sysconfdir sharedstatedir localstatedir includedir \
1379 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1380 libdir localedir mandir
1381 do
1382 eval ac_val=\$$ac_var
1383 # Remove trailing slashes.
1384 case $ac_val in
1385 */ )
1386 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1387 eval $ac_var=\$ac_val;;
1388 esac
1389 # Be sure to have absolute directory names.
1390 case $ac_val in
1391 [\\/$]* | ?:[\\/]* ) continue;;
1392 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1393 esac
1394 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1395 done
1396
1397 # There might be people who depend on the old broken behavior: `$host'
1398 # used to hold the argument of --host etc.
1399 # FIXME: To remove some day.
1400 build=$build_alias
1401 host=$host_alias
1402 target=$target_alias
1403
1404 # FIXME: To remove some day.
1405 if test "x$host_alias" != x; then
1406 if test "x$build_alias" = x; then
1407 cross_compiling=maybe
1408 elif test "x$build_alias" != "x$host_alias"; then
1409 cross_compiling=yes
1410 fi
1411 fi
1412
1413 ac_tool_prefix=
1414 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1415
1416 test "$silent" = yes && exec 6>/dev/null
1417
1418
1419 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1420 ac_ls_di=`ls -di .` &&
1421 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1422 as_fn_error $? "working directory cannot be determined"
1423 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1424 as_fn_error $? "pwd does not report name of working directory"
1425
1426
1427 # Find the source files, if location was not specified.
1428 if test -z "$srcdir"; then
1429 ac_srcdir_defaulted=yes
1430 # Try the directory containing this script, then the parent directory.
1431 ac_confdir=`$as_dirname -- "$as_myself" ||
1432 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1433 X"$as_myself" : 'X\(//\)[^/]' \| \
1434 X"$as_myself" : 'X\(//\)$' \| \
1435 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1436 $as_echo X"$as_myself" |
1437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1438 s//\1/
1439 q
1440 }
1441 /^X\(\/\/\)[^/].*/{
1442 s//\1/
1443 q
1444 }
1445 /^X\(\/\/\)$/{
1446 s//\1/
1447 q
1448 }
1449 /^X\(\/\).*/{
1450 s//\1/
1451 q
1452 }
1453 s/.*/./; q'`
1454 srcdir=$ac_confdir
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456 srcdir=..
1457 fi
1458 else
1459 ac_srcdir_defaulted=no
1460 fi
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1462 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1463 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1464 fi
1465 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1466 ac_abs_confdir=`(
1467 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1468 pwd)`
1469 # When building in place, set srcdir=.
1470 if test "$ac_abs_confdir" = "$ac_pwd"; then
1471 srcdir=.
1472 fi
1473 # Remove unnecessary trailing slashes from srcdir.
1474 # Double slashes in file names in object file debugging info
1475 # mess up M-x gdb in Emacs.
1476 case $srcdir in
1477 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1478 esac
1479 for ac_var in $ac_precious_vars; do
1480 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1481 eval ac_env_${ac_var}_value=\$${ac_var}
1482 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1483 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1484 done
1485
1486 #
1487 # Report the --help message.
1488 #
1489 if test "$ac_init_help" = "long"; then
1490 # Omit some internal or obsolete options to make the list less imposing.
1491 # This message is too long to be a string in the A/UX 3.1 sh.
1492 cat <<_ACEOF
1493 \`configure' configures alpine 2.26 to adapt to many kinds of systems.
1494
1495 Usage: $0 [OPTION]... [VAR=VALUE]...
1496
1497 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1498 VAR=VALUE. See below for descriptions of some of the useful variables.
1499
1500 Defaults for the options are specified in brackets.
1501
1502 Configuration:
1503 -h, --help display this help and exit
1504 --help=short display options specific to this package
1505 --help=recursive display the short help of all the included packages
1506 -V, --version display version information and exit
1507 -q, --quiet, --silent do not print \`checking ...' messages
1508 --cache-file=FILE cache test results in FILE [disabled]
1509 -C, --config-cache alias for \`--cache-file=config.cache'
1510 -n, --no-create do not create output files
1511 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1512
1513 Installation directories:
1514 --prefix=PREFIX install architecture-independent files in PREFIX
1515 [$ac_default_prefix]
1516 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1517 [PREFIX]
1518
1519 By default, \`make install' will install all the files in
1520 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1521 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1522 for instance \`--prefix=\$HOME'.
1523
1524 For better control, use the options below.
1525
1526 Fine tuning of the installation directories:
1527 --bindir=DIR user executables [EPREFIX/bin]
1528 --sbindir=DIR system admin executables [EPREFIX/sbin]
1529 --libexecdir=DIR program executables [EPREFIX/libexec]
1530 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1531 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1532 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1533 --libdir=DIR object code libraries [EPREFIX/lib]
1534 --includedir=DIR C header files [PREFIX/include]
1535 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1536 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1537 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1538 --infodir=DIR info documentation [DATAROOTDIR/info]
1539 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1540 --mandir=DIR man documentation [DATAROOTDIR/man]
1541 --docdir=DIR documentation root [DATAROOTDIR/doc/alpine]
1542 --htmldir=DIR html documentation [DOCDIR]
1543 --dvidir=DIR dvi documentation [DOCDIR]
1544 --pdfdir=DIR pdf documentation [DOCDIR]
1545 --psdir=DIR ps documentation [DOCDIR]
1546 _ACEOF
1547
1548 cat <<\_ACEOF
1549
1550 Program names:
1551 --program-prefix=PREFIX prepend PREFIX to installed program names
1552 --program-suffix=SUFFIX append SUFFIX to installed program names
1553 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1554
1555 System types:
1556 --build=BUILD configure for building on BUILD [guessed]
1557 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1558 _ACEOF
1559 fi
1560
1561 if test -n "$ac_init_help"; then
1562 case $ac_init_help in
1563 short | recursive ) echo "Configuration of alpine 2.26:";;
1564 esac
1565 cat <<\_ACEOF
1566
1567 Optional Features:
1568 --disable-option-checking ignore unrecognized --enable/--with options
1569 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1570 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1571 --enable-silent-rules less verbose build output (undo: "make V=1")
1572 --disable-silent-rules verbose build output (undo: "make V=0")
1573 --enable-maintainer-mode
1574 enable make rules and dependencies not useful (and
1575 sometimes confusing) to the casual installer
1576 --enable-dependency-tracking
1577 do not reject slow dependency extractors
1578 --disable-dependency-tracking
1579 speeds up one-time build
1580 --enable-shared[=PKGS] build shared libraries [default=yes]
1581 --enable-static[=PKGS] build static libraries [default=yes]
1582 --enable-fast-install[=PKGS]
1583 optimize for fast installation [default=yes]
1584 --disable-libtool-lock avoid locking (might break parallel builds)
1585 --disable-nls do not use Native Language Support
1586 --disable-rpath do not hardcode runtime library paths
1587 --enable-dmalloc Enable dmalloc debugging
1588 --enable-osx-universal-binaries
1589 Produce universal binaries under OS X [[default=no]]
1590 --disable-debug Exclude debug from the binary
1591 --disable-optimization Exclude optimizing compiler flags
1592 --disable-mouse Disable mouse support
1593 --enable-quotas Enable disk quota checking on startup
1594 --disable-from-changing Disallow users changing From address
1595 --disable-background-post
1596 Disable background posting
1597 --disable-keyboard-lock Disable keyboard locking
1598 --enable-from-encoding Enable From encoding in sent messages
1599
1600 Optional Packages:
1601 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1602 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1603 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1604 both]
1605 --with-aix-soname=aix|svr4|both
1606 shared library versioning (aka "SONAME") variant to
1607 provide on AIX, [default=aix].
1608 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1609 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1610 compiler's sysroot if not specified).
1611 --with-gnu-ld assume the C compiler uses GNU ld default=no
1612 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1613 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1614 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1615 --without-libintl-prefix don't search for libintl in includedir and libdir
1616 --with-dmalloc-dir=DIR Root of dmalloc lib/include path
1617 --with-date-stamp=DATE Set this as the date this program was built.
1618 Default: output of `date`
1619 --with-host-stamp=HOST Set name of computer for compilation. Default:
1620 output of `hostname`
1621 --with-localedir=DIR Name of gettext locale directory
1622 --with-include-path=PATHS
1623 Colon-separated list of directories used for include
1624 file search
1625 --with-lib-path=PATHS Colon-separated list of directories used for library
1626 search
1627 --with-pubcookie Include support for UW-Pubcookie Web Authentication
1628 --with-web-bin=PATH Directory to hold Web Alpine component binary files
1629 --with-smtp-msa=PATH Local Mail Submission Agent (sendmail)
1630 --with-smtp-msa-flags=FLAGS
1631 MSA flags for SMTP on stdin/stdout (-bs -odb -oem)
1632 --with-npa=PATH Posting agent when no nntp-servers defined (inews)
1633 --with-npa-flags=FLAGS Flags to allow posting via local agent (-h)
1634 --with-password-prog=PATH
1635 Password change program (/bin/passwd)
1636 --with-simple-spellcheck=PROG
1637 Spellcheck program reads stdin, emits misspellings
1638 on stdout
1639 --with-interactive-spellcheck=PROG
1640 Interactive, filewise spell checker
1641 --with-system-pinerc=VALUE
1642 System pinerc (/usr/local/lib/pine.conf)
1643 --with-system-fixed-pinerc=VALUE
1644 System fixed pinerc (/usr/local/lib/pine.conf.fixed)
1645 --with-local-support-info=VALUE
1646 Local Support Info File (/usr/local/lib/pine.info)
1647 --with-mailcheck-interval=VALUE
1648 Specify default mail-check-interval (150)
1649 --with-checkpoint-interval=VALUE
1650 Specify default checkpoint-interval (420)
1651 --with-checkpoint-frequency=VALUE
1652 State change count before checkpoint (12)
1653 --with-display-rows=VALUE
1654 Initial rows on display (24)
1655 --with-display-columns=VALUE
1656 Initial columns on display (80)
1657 --with-max-display-rows=VALUE
1658 Maximum display rows (200)
1659 --with-max-display-columns=VALUE
1660 Maximum display columns (500)
1661 --with-fill-column=VALUE
1662 Default fill column (74)
1663 --with-max_fill-column=VALUE
1664 Maximum fill column (80)
1665 --with-debug-level=VALUE
1666 Specify default debug verbosity level (2)
1667 --with-debug-files=VALUE
1668 Specify number of debug files (4)
1669 --with-debug-file=VALUE Specify debug file name (.pine-debug)
1670 --with-forwarded-keyword=VALUE
1671 IMAP (c-client) keyword to store forwarded status
1672 ("\$Forwarded")
1673 --with-display-overlap=VALUE
1674 Lines preserved while paging (2)
1675 --with-display-margin=VALUE
1676 Lines visible while scrolling (0)
1677 --with-default-fcc=VALUE
1678 Default sent mail folder (sent-mail)
1679 --with-default-save-folder=VALUE
1680 Default save folder (saved-messages)
1681 --with-default-legacy-postponed-folder=VALUE
1682 Pre Pine 3.90 postponed folder (postponed-mail)
1683 --with-default-postponed-folder=VALUE
1684 Default postponed folder (postponed-msgs)
1685 --with-default-trash-folder=VALUE
1686 Default Trash folder for Web Alpine (Trash)
1687 --with-default-interrupted-mail=VALUE
1688 Default folder for interrupted mail
1689 (.pine-interrupted-mail)
1690 --with-default-dead-letter-folder=VALUE
1691 Default dead letter folder (dead.letter)
1692 --with-default-mail-directory=VALUE
1693 Default mail directory (mail)
1694 --with-default-inbox-name=VALUE
1695 Default inbox name (INBOX)
1696 --with-default-signature-file=VALUE
1697 Default signature file (.signature)
1698 --with-default-elm-style-save=VALUE
1699 Default to Elm style save (no)
1700 --with-default-header-in-reply=VALUE
1701 Include header in reply (no)
1702 --with-default-old-style-reply=VALUE
1703 Default to old style reply (no)
1704 --with-default-use-only-domain-name=VALUE
1705 Default to using only the domain name (no)
1706 --with-default-save-by-sender=VALUE
1707 Default to save by sender (no)
1708 --with-default-sort-key=VALUE
1709 Default sort key (arrival)
1710 --with-default-addressbook-sort-rule=VALUE
1711 Default addressbook sort rule
1712 (fullname-with-lists-last)
1713 --with-default-folder-sort-rule=VALUE
1714 Default folder sort rule (alphabetical)
1715 --with-default-saved-message-name-rule=VALUE
1716 Default saved message name rule (default-folder)
1717 --with-default-fcc-rule=VALUE
1718 Default fcc rule (default-fcc)
1719 --with-default-standard-printer=VALUE
1720 Default standard printern (lpr)
1721 --with-default-ansi-printer=VALUE
1722 ANSI printer definition (attached-to-ansi)
1723 --with-default-addressbook=VALUE
1724 Default addressbook name (.addressbook)
1725 --with-default-local-fullname=VALUE
1726 Default local support fullname ("Local Support")
1727 --with-default-local-address=VALUE
1728 Default local support address (postmaster)
1729 --with-default-keyboard-lock-count=VALUE
1730 Default keyboard lock count (1)
1731 --with-default-remote-addressbook-history=VALUE
1732 Default address book history count (3)
1733 --with-default-html-directory=VALUE
1734 Default Directory to Temporarily Save HTML Messages
1735 (.alpine-html)
1736 --with-smime-public-cert-directory=VALUE
1737 Default Public Cert Directory (.alpine-smime/public)
1738 --with-smime-private-key-directory=VALUE
1739 Default Private Key Directory
1740 (.alpine-smime/private)
1741 --with-smime-cacert-directory=VALUE
1742 Default Cert Authority Directory (.alpine-smime/ca)
1743 --with-default-printer=VALUE
1744 Default printer (ANSI_PRINTER)
1745 --with-default-sshpath=FILENAME
1746 set default value of ssh command path (defining
1747 should cause ssh to be preferred to rsh)
1748 --with-default-sshcmd=PERCENT_S_STRING
1749 set default value of ssh command string (usually "%s
1750 %s -l %s exec /etc/r%sd")
1751 --without-ssl Disable SSL support (OpenSSL)
1752 --with-ssl-dir=DIR Root of SSL lib/include path
1753 --with-ssl-certs-dir=DIR
1754 Path to SSL certificate directory
1755 --with-ssl-include-dir=DIR
1756 SSL include file path
1757 --with-ssl-lib-dir=DIR SSL library path
1758 --encryption-minimum-version=VERSION
1759 Minimum SSL encryption version. Default: no_min
1760 --encryption-maximum-version=VERSION
1761 Maximum SSL encryption version. Default: no_max
1762 --with-encryption-range=VALUE
1763 Default Encryption Range ($alpine_RANGE )
1764 --without-krb5 Disable Kerberos support
1765 --with-krb5-dir=DIR Root of Kerberos lib/include path
1766 --with-krb5-include-dir=DIR
1767 Kerberos include file path
1768 --with-krb5-lib-dir=DIR Kerberos library path
1769 --without-ldap Disable LDAP query support
1770 --with-ldap-dir=DIR Root of LDAP lib/include path
1771 --with-ldap-include-dir=DIR
1772 Directory containing LDAP include files
1773 --with-ldap-lib-dir=DIR LDAP library path
1774 --without-smime Disable S/MIME
1775 --without-tcl Disable TCL, thus Web Alpine support
1776 --with-tcl-lib-dir=PATH Specific TCL Librar dir, like \"/usr/opt/tcl86/lib\"
1777 --with-tcl-lib=LIBRARY Specific TCL Library, like \"tcl8.6\"
1778 --with-tcl-include=DIR Directory containing TCL include files
1779 --with-supplied-regex Use regex library supplied with alpine
1780 --without-pthread Do NOT test for nor build with POSIX thread support
1781 --with-system-mail-directory=DIR
1782 Directory where local mail is delivered
1783 --with-c-client-target=TARGET
1784 IMAP build target (see imap/Makefile)
1785 --with-bundled-tools Build additional tools (mtest, imapd, etc.) Default:
1786 --with-bundled-tools=no
1787 --with-passfile=FILENAME
1788 Password cache file (recommended when S/MIME is
1789 enabled and configured)
1790 --without-local-password-cache
1791 Disable OS-specific password cache, if supported
1792 --with-local-password-cache-method
1793 OS-specific credential cache (OSX=APPLEKEYCHAIN,
1794 Windows=WINCRED)
1795 --without-ipv6 Disable IPv6, primarily to work around resolver
1796 problems
1797 --without-dlopen Do not test for dlopen because this system does not
1798 need it
1799 --without-ntlm Disable NTLM client support
1800
1801 Some influential environment variables:
1802 CC C compiler command
1803 CFLAGS C compiler flags
1804 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1805 nonstandard directory <lib dir>
1806 LIBS libraries to pass to the linker, e.g. -l<library>
1807 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1808 you have headers in a nonstandard directory <include dir>
1809 CPP C preprocessor
1810 LT_SYS_LIBRARY_PATH
1811 User-defined run-time library search path.
1812
1813 Use these variables to override the choices made by `configure' or to help
1814 it to find libraries and programs with nonstandard names/locations.
1815
1816 Report bugs to <[email protected]>.
1817 _ACEOF
1818 ac_status=$?
1819 fi
1820
1821 if test "$ac_init_help" = "recursive"; then
1822 # If there are subdirs, report their specific --help.
1823 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1824 test -d "$ac_dir" ||
1825 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1826 continue
1827 ac_builddir=.
1828
1829 case "$ac_dir" in
1830 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1831 *)
1832 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1833 # A ".." for each directory in $ac_dir_suffix.
1834 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1835 case $ac_top_builddir_sub in
1836 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1837 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1838 esac ;;
1839 esac
1840 ac_abs_top_builddir=$ac_pwd
1841 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1842 # for backward compatibility:
1843 ac_top_builddir=$ac_top_build_prefix
1844
1845 case $srcdir in
1846 .) # We are building in place.
1847 ac_srcdir=.
1848 ac_top_srcdir=$ac_top_builddir_sub
1849 ac_abs_top_srcdir=$ac_pwd ;;
1850 [\\/]* | ?:[\\/]* ) # Absolute name.
1851 ac_srcdir=$srcdir$ac_dir_suffix;
1852 ac_top_srcdir=$srcdir
1853 ac_abs_top_srcdir=$srcdir ;;
1854 *) # Relative name.
1855 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1856 ac_top_srcdir=$ac_top_build_prefix$srcdir
1857 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1858 esac
1859 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1860
1861 cd "$ac_dir" || { ac_status=$?; continue; }
1862 # Check for guested configure.
1863 if test -f "$ac_srcdir/configure.gnu"; then
1864 echo &&
1865 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1866 elif test -f "$ac_srcdir/configure"; then
1867 echo &&
1868 $SHELL "$ac_srcdir/configure" --help=recursive
1869 else
1870 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1871 fi || ac_status=$?
1872 cd "$ac_pwd" || { ac_status=$?; break; }
1873 done
1874 fi
1875
1876 test -n "$ac_init_help" && exit $ac_status
1877 if $ac_init_version; then
1878 cat <<\_ACEOF
1879 alpine configure 2.26
1880 generated by GNU Autoconf 2.69
1881
1882 Copyright (C) 2012 Free Software Foundation, Inc.
1883 This configure script is free software; the Free Software Foundation
1884 gives unlimited permission to copy, distribute and modify it.
1885 _ACEOF
1886 exit
1887 fi
1888
1889 ## ------------------------ ##
1890 ## Autoconf initialization. ##
1891 ## ------------------------ ##
1892
1893 # ac_fn_c_try_compile LINENO
1894 # --------------------------
1895 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_c_try_compile ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext
1900 if { { ac_try="$ac_compile"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_compile") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1913 fi
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_c_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest.$ac_objext; then :
1919 ac_retval=0
1920 else
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1923
1924 ac_retval=1
1925 fi
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1928
1929 } # ac_fn_c_try_compile
1930
1931 # ac_fn_c_try_cpp LINENO
1932 # ----------------------
1933 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_c_try_cpp ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if { { ac_try="$ac_cpp conftest.$ac_ext"
1938 case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1945 ac_status=$?
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1950 fi
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } > conftest.i && {
1953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1954 test ! -s conftest.err
1955 }; then :
1956 ac_retval=0
1957 else
1958 $as_echo "$as_me: failed program was:" >&5
1959 sed 's/^/| /' conftest.$ac_ext >&5
1960
1961 ac_retval=1
1962 fi
1963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964 as_fn_set_status $ac_retval
1965
1966 } # ac_fn_c_try_cpp
1967
1968 # ac_fn_c_try_link LINENO
1969 # -----------------------
1970 # Try to link conftest.$ac_ext, and return whether this succeeded.
1971 ac_fn_c_try_link ()
1972 {
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 rm -f conftest.$ac_objext conftest$ac_exeext
1975 if { { ac_try="$ac_link"
1976 case "(($ac_try" in
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1979 esac
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_link") 2>conftest.err
1983 ac_status=$?
1984 if test -s conftest.err; then
1985 grep -v '^ *+' conftest.err >conftest.er1
1986 cat conftest.er1 >&5
1987 mv -f conftest.er1 conftest.err
1988 fi
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && {
1991 test -z "$ac_c_werror_flag" ||
1992 test ! -s conftest.err
1993 } && test -s conftest$ac_exeext && {
1994 test "$cross_compiling" = yes ||
1995 test -x conftest$ac_exeext
1996 }; then :
1997 ac_retval=0
1998 else
1999 $as_echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2001
2002 ac_retval=1
2003 fi
2004 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2005 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2006 # interfere with the next link command; also delete a directory that is
2007 # left behind by Apple's compiler. We do this before executing the actions.
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 as_fn_set_status $ac_retval
2011
2012 } # ac_fn_c_try_link
2013
2014 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2015 # -------------------------------------------------------
2016 # Tests whether HEADER exists and can be compiled using the include files in
2017 # INCLUDES, setting the cache variable VAR accordingly.
2018 ac_fn_c_check_header_compile ()
2019 {
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2025 else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2028 $4
2029 #include <$2>
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 eval "$3=yes"
2033 else
2034 eval "$3=no"
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 fi
2038 eval ac_res=\$$3
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042
2043 } # ac_fn_c_check_header_compile
2044
2045 # ac_fn_c_try_run LINENO
2046 # ----------------------
2047 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2048 # that executables *can* be run.
2049 ac_fn_c_try_run ()
2050 {
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 if { { ac_try="$ac_link"
2053 case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2056 esac
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_link") 2>&5
2060 ac_status=$?
2061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2063 { { case "(($ac_try" in
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2066 esac
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_try") 2>&5
2070 ac_status=$?
2071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2072 test $ac_status = 0; }; }; then :
2073 ac_retval=0
2074 else
2075 $as_echo "$as_me: program exited with status $ac_status" >&5
2076 $as_echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2078
2079 ac_retval=$ac_status
2080 fi
2081 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
2084
2085 } # ac_fn_c_try_run
2086
2087 # ac_fn_c_check_func LINENO FUNC VAR
2088 # ----------------------------------
2089 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2090 ac_fn_c_check_func ()
2091 {
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094 $as_echo_n "checking for $2... " >&6; }
2095 if eval \${$3+:} false; then :
2096 $as_echo_n "(cached) " >&6
2097 else
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2102 #define $2 innocuous_$2
2103
2104 /* System header to define __stub macros and hopefully few prototypes,
2105 which can conflict with char $2 (); below.
2106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2107 <limits.h> exists even on freestanding compilers. */
2108
2109 #ifdef __STDC__
2110 # include <limits.h>
2111 #else
2112 # include <assert.h>
2113 #endif
2114
2115 #undef $2
2116
2117 /* Override any GCC internal prototype to avoid an error.
2118 Use char because int might match the return type of a GCC
2119 builtin and then its argument prototype would still apply. */
2120 #ifdef __cplusplus
2121 extern "C"
2122 #endif
2123 char $2 ();
2124 /* The GNU C library defines this for functions which it implements
2125 to always fail with ENOSYS. Some functions are actually named
2126 something starting with __ and the normal name is an alias. */
2127 #if defined __stub_$2 || defined __stub___$2
2128 choke me
2129 #endif
2130
2131 int
2132 main ()
2133 {
2134 return $2 ();
2135 ;
2136 return 0;
2137 }
2138 _ACEOF
2139 if ac_fn_c_try_link "$LINENO"; then :
2140 eval "$3=yes"
2141 else
2142 eval "$3=no"
2143 fi
2144 rm -f core conftest.err conftest.$ac_objext \
2145 conftest$ac_exeext conftest.$ac_ext
2146 fi
2147 eval ac_res=\$$3
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151
2152 } # ac_fn_c_check_func
2153
2154 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2155 # -------------------------------------------------------
2156 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2157 # the include files in INCLUDES and setting the cache variable VAR
2158 # accordingly.
2159 ac_fn_c_check_header_mongrel ()
2160 {
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162 if eval \${$3+:} false; then :
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164 $as_echo_n "checking for $2... " >&6; }
2165 if eval \${$3+:} false; then :
2166 $as_echo_n "(cached) " >&6
2167 fi
2168 eval ac_res=\$$3
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 else
2172 # Is the header compilable?
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2174 $as_echo_n "checking $2 usability... " >&6; }
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2177 $4
2178 #include <$2>
2179 _ACEOF
2180 if ac_fn_c_try_compile "$LINENO"; then :
2181 ac_header_compiler=yes
2182 else
2183 ac_header_compiler=no
2184 fi
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2187 $as_echo "$ac_header_compiler" >&6; }
2188
2189 # Is the header present?
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2191 $as_echo_n "checking $2 presence... " >&6; }
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2194 #include <$2>
2195 _ACEOF
2196 if ac_fn_c_try_cpp "$LINENO"; then :
2197 ac_header_preproc=yes
2198 else
2199 ac_header_preproc=no
2200 fi
2201 rm -f conftest.err conftest.i conftest.$ac_ext
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2203 $as_echo "$ac_header_preproc" >&6; }
2204
2205 # So? What about this header?
2206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2207 yes:no: )
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2209 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2211 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2212 ;;
2213 no:yes:* )
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2215 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2217 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2219 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2221 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2223 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2224 ( $as_echo "## ------------------------------------ ##
2225 ## Report this to [email protected] ##
2226 ## ------------------------------------ ##"
2227 ) | sed "s/^/$as_me: WARNING: /" >&2
2228 ;;
2229 esac
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2231 $as_echo_n "checking for $2... " >&6; }
2232 if eval \${$3+:} false; then :
2233 $as_echo_n "(cached) " >&6
2234 else
2235 eval "$3=\$ac_header_compiler"
2236 fi
2237 eval ac_res=\$$3
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2239 $as_echo "$ac_res" >&6; }
2240 fi
2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2242
2243 } # ac_fn_c_check_header_mongrel
2244
2245 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2246 # -------------------------------------------
2247 # Tests whether TYPE exists after having included INCLUDES, setting cache
2248 # variable VAR accordingly.
2249 ac_fn_c_check_type ()
2250 {
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2253 $as_echo_n "checking for $2... " >&6; }
2254 if eval \${$3+:} false; then :
2255 $as_echo_n "(cached) " >&6
2256 else
2257 eval "$3=no"
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2260 $4
2261 int
2262 main ()
2263 {
2264 if (sizeof ($2))
2265 return 0;
2266 ;
2267 return 0;
2268 }
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2273 $4
2274 int
2275 main ()
2276 {
2277 if (sizeof (($2)))
2278 return 0;
2279 ;
2280 return 0;
2281 }
2282 _ACEOF
2283 if ac_fn_c_try_compile "$LINENO"; then :
2284
2285 else
2286 eval "$3=yes"
2287 fi
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 fi
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 fi
2292 eval ac_res=\$$3
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294 $as_echo "$ac_res" >&6; }
2295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296
2297 } # ac_fn_c_check_type
2298
2299 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2300 # --------------------------------------------
2301 # Tries to find the compile-time value of EXPR in a program that includes
2302 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2303 # computed
2304 ac_fn_c_compute_int ()
2305 {
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 if test "$cross_compiling" = yes; then
2308 # Depending upon the size, compute the lo and hi bounds.
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2311 $4
2312 int
2313 main ()
2314 {
2315 static int test_array [1 - 2 * !(($2) >= 0)];
2316 test_array [0] = 0;
2317 return test_array [0];
2318
2319 ;
2320 return 0;
2321 }
2322 _ACEOF
2323 if ac_fn_c_try_compile "$LINENO"; then :
2324 ac_lo=0 ac_mid=0
2325 while :; do
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2328 $4
2329 int
2330 main ()
2331 {
2332 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2333 test_array [0] = 0;
2334 return test_array [0];
2335
2336 ;
2337 return 0;
2338 }
2339 _ACEOF
2340 if ac_fn_c_try_compile "$LINENO"; then :
2341 ac_hi=$ac_mid; break
2342 else
2343 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2344 if test $ac_lo -le $ac_mid; then
2345 ac_lo= ac_hi=
2346 break
2347 fi
2348 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2349 fi
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 done
2352 else
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2355 $4
2356 int
2357 main ()
2358 {
2359 static int test_array [1 - 2 * !(($2) < 0)];
2360 test_array [0] = 0;
2361 return test_array [0];
2362
2363 ;
2364 return 0;
2365 }
2366 _ACEOF
2367 if ac_fn_c_try_compile "$LINENO"; then :
2368 ac_hi=-1 ac_mid=-1
2369 while :; do
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2372 $4
2373 int
2374 main ()
2375 {
2376 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2377 test_array [0] = 0;
2378 return test_array [0];
2379
2380 ;
2381 return 0;
2382 }
2383 _ACEOF
2384 if ac_fn_c_try_compile "$LINENO"; then :
2385 ac_lo=$ac_mid; break
2386 else
2387 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2388 if test $ac_mid -le $ac_hi; then
2389 ac_lo= ac_hi=
2390 break
2391 fi
2392 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2393 fi
2394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2395 done
2396 else
2397 ac_lo= ac_hi=
2398 fi
2399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 fi
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 # Binary search between lo and hi bounds.
2403 while test "x$ac_lo" != "x$ac_hi"; do
2404 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2407 $4
2408 int
2409 main ()
2410 {
2411 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2412 test_array [0] = 0;
2413 return test_array [0];
2414
2415 ;
2416 return 0;
2417 }
2418 _ACEOF
2419 if ac_fn_c_try_compile "$LINENO"; then :
2420 ac_hi=$ac_mid
2421 else
2422 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2423 fi
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 done
2426 case $ac_lo in #((
2427 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2428 '') ac_retval=1 ;;
2429 esac
2430 else
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2433 $4
2434 static long int longval () { return $2; }
2435 static unsigned long int ulongval () { return $2; }
2436 #include <stdio.h>
2437 #include <stdlib.h>
2438 int
2439 main ()
2440 {
2441
2442 FILE *f = fopen ("conftest.val", "w");
2443 if (! f)
2444 return 1;
2445 if (($2) < 0)
2446 {
2447 long int i = longval ();
2448 if (i != ($2))
2449 return 1;
2450 fprintf (f, "%ld", i);
2451 }
2452 else
2453 {
2454 unsigned long int i = ulongval ();
2455 if (i != ($2))
2456 return 1;
2457 fprintf (f, "%lu", i);
2458 }
2459 /* Do not output a trailing newline, as this causes \r\n confusion
2460 on some platforms. */
2461 return ferror (f) || fclose (f) != 0;
2462
2463 ;
2464 return 0;
2465 }
2466 _ACEOF
2467 if ac_fn_c_try_run "$LINENO"; then :
2468 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2469 else
2470 ac_retval=1
2471 fi
2472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2473 conftest.$ac_objext conftest.beam conftest.$ac_ext
2474 rm -f conftest.val
2475
2476 fi
2477 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2478 as_fn_set_status $ac_retval
2479
2480 } # ac_fn_c_compute_int
2481 cat >config.log <<_ACEOF
2482 This file contains any messages produced by compilers while
2483 running configure, to aid debugging if configure makes a mistake.
2484
2485 It was created by alpine $as_me 2.26, which was
2486 generated by GNU Autoconf 2.69. Invocation command line was
2487
2488 $ $0 $@
2489
2490 _ACEOF
2491 exec 5>>config.log
2492 {
2493 cat <<_ASUNAME
2494 ## --------- ##
2495 ## Platform. ##
2496 ## --------- ##
2497
2498 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2499 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2500 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2501 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2502 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2503
2504 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2505 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2506
2507 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2508 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2509 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2510 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2511 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2512 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2513 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2514
2515 _ASUNAME
2516
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH
2519 do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 $as_echo "PATH: $as_dir"
2523 done
2524 IFS=$as_save_IFS
2525
2526 } >&5
2527
2528 cat >&5 <<_ACEOF
2529
2530
2531 ## ----------- ##
2532 ## Core tests. ##
2533 ## ----------- ##
2534
2535 _ACEOF
2536
2537
2538 # Keep a trace of the command line.
2539 # Strip out --no-create and --no-recursion so they do not pile up.
2540 # Strip out --silent because we don't want to record it for future runs.
2541 # Also quote any args containing shell meta-characters.
2542 # Make two passes to allow for proper duplicate-argument suppression.
2543 ac_configure_args=
2544 ac_configure_args0=
2545 ac_configure_args1=
2546 ac_must_keep_next=false
2547 for ac_pass in 1 2
2548 do
2549 for ac_arg
2550 do
2551 case $ac_arg in
2552 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2554 | -silent | --silent | --silen | --sile | --sil)
2555 continue ;;
2556 *\'*)
2557 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2558 esac
2559 case $ac_pass in
2560 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2561 2)
2562 as_fn_append ac_configure_args1 " '$ac_arg'"
2563 if test $ac_must_keep_next = true; then
2564 ac_must_keep_next=false # Got value, back to normal.
2565 else
2566 case $ac_arg in
2567 *=* | --config-cache | -C | -disable-* | --disable-* \
2568 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2569 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2570 | -with-* | --with-* | -without-* | --without-* | --x)
2571 case "$ac_configure_args0 " in
2572 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2573 esac
2574 ;;
2575 -* ) ac_must_keep_next=true ;;
2576 esac
2577 fi
2578 as_fn_append ac_configure_args " '$ac_arg'"
2579 ;;
2580 esac
2581 done
2582 done
2583 { ac_configure_args0=; unset ac_configure_args0;}
2584 { ac_configure_args1=; unset ac_configure_args1;}
2585
2586 # When interrupted or exit'd, cleanup temporary files, and complete
2587 # config.log. We remove comments because anyway the quotes in there
2588 # would cause problems or look ugly.
2589 # WARNING: Use '\'' to represent an apostrophe within the trap.
2590 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2591 trap 'exit_status=$?
2592 # Save into config.log some information that might help in debugging.
2593 {
2594 echo
2595
2596 $as_echo "## ---------------- ##
2597 ## Cache variables. ##
2598 ## ---------------- ##"
2599 echo
2600 # The following way of writing the cache mishandles newlines in values,
2601 (
2602 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2603 eval ac_val=\$$ac_var
2604 case $ac_val in #(
2605 *${as_nl}*)
2606 case $ac_var in #(
2607 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2608 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2609 esac
2610 case $ac_var in #(
2611 _ | IFS | as_nl) ;; #(
2612 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2613 *) { eval $ac_var=; unset $ac_var;} ;;
2614 esac ;;
2615 esac
2616 done
2617 (set) 2>&1 |
2618 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2619 *${as_nl}ac_space=\ *)
2620 sed -n \
2621 "s/'\''/'\''\\\\'\'''\''/g;
2622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2623 ;; #(
2624 *)
2625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2626 ;;
2627 esac |
2628 sort
2629 )
2630 echo
2631
2632 $as_echo "## ----------------- ##
2633 ## Output variables. ##
2634 ## ----------------- ##"
2635 echo
2636 for ac_var in $ac_subst_vars
2637 do
2638 eval ac_val=\$$ac_var
2639 case $ac_val in
2640 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2641 esac
2642 $as_echo "$ac_var='\''$ac_val'\''"
2643 done | sort
2644 echo
2645
2646 if test -n "$ac_subst_files"; then
2647 $as_echo "## ------------------- ##
2648 ## File substitutions. ##
2649 ## ------------------- ##"
2650 echo
2651 for ac_var in $ac_subst_files
2652 do
2653 eval ac_val=\$$ac_var
2654 case $ac_val in
2655 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2656 esac
2657 $as_echo "$ac_var='\''$ac_val'\''"
2658 done | sort
2659 echo
2660 fi
2661
2662 if test -s confdefs.h; then
2663 $as_echo "## ----------- ##
2664 ## confdefs.h. ##
2665 ## ----------- ##"
2666 echo
2667 cat confdefs.h
2668 echo
2669 fi
2670 test "$ac_signal" != 0 &&
2671 $as_echo "$as_me: caught signal $ac_signal"
2672 $as_echo "$as_me: exit $exit_status"
2673 } >&5
2674 rm -f core *.core core.conftest.* &&
2675 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2676 exit $exit_status
2677 ' 0
2678 for ac_signal in 1 2 13 15; do
2679 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2680 done
2681 ac_signal=0
2682
2683 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2684 rm -f -r conftest* confdefs.h
2685
2686 $as_echo "/* confdefs.h */" > confdefs.h
2687
2688 # Predefined preprocessor variables.
2689
2690 cat >>confdefs.h <<_ACEOF
2691 #define PACKAGE_NAME "$PACKAGE_NAME"
2692 _ACEOF
2693
2694 cat >>confdefs.h <<_ACEOF
2695 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2696 _ACEOF
2697
2698 cat >>confdefs.h <<_ACEOF
2699 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2700 _ACEOF
2701
2702 cat >>confdefs.h <<_ACEOF
2703 #define PACKAGE_STRING "$PACKAGE_STRING"
2704 _ACEOF
2705
2706 cat >>confdefs.h <<_ACEOF
2707 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2708 _ACEOF
2709
2710 cat >>confdefs.h <<_ACEOF
2711 #define PACKAGE_URL "$PACKAGE_URL"
2712 _ACEOF
2713
2714
2715 # Let the site file select an alternate cache file if it wants to.
2716 # Prefer an explicitly selected file to automatically selected ones.
2717 ac_site_file1=NONE
2718 ac_site_file2=NONE
2719 if test -n "$CONFIG_SITE"; then
2720 # We do not want a PATH search for config.site.
2721 case $CONFIG_SITE in #((
2722 -*) ac_site_file1=./$CONFIG_SITE;;
2723 */*) ac_site_file1=$CONFIG_SITE;;
2724 *) ac_site_file1=./$CONFIG_SITE;;
2725 esac
2726 elif test "x$prefix" != xNONE; then
2727 ac_site_file1=$prefix/share/config.site
2728 ac_site_file2=$prefix/etc/config.site
2729 else
2730 ac_site_file1=$ac_default_prefix/share/config.site
2731 ac_site_file2=$ac_default_prefix/etc/config.site
2732 fi
2733 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2734 do
2735 test "x$ac_site_file" = xNONE && continue
2736 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2738 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2739 sed 's/^/| /' "$ac_site_file" >&5
2740 . "$ac_site_file" \
2741 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2743 as_fn_error $? "failed to load site script $ac_site_file
2744 See \`config.log' for more details" "$LINENO" 5; }
2745 fi
2746 done
2747
2748 if test -r "$cache_file"; then
2749 # Some versions of bash will fail to source /dev/null (special files
2750 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2751 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2753 $as_echo "$as_me: loading cache $cache_file" >&6;}
2754 case $cache_file in
2755 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2756 *) . "./$cache_file";;
2757 esac
2758 fi
2759 else
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2761 $as_echo "$as_me: creating cache $cache_file" >&6;}
2762 >$cache_file
2763 fi
2764
2765 gt_needs="$gt_needs "
2766 # Check that the precious variables saved in the cache have kept the same
2767 # value.
2768 ac_cache_corrupted=false
2769 for ac_var in $ac_precious_vars; do
2770 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2771 eval ac_new_set=\$ac_env_${ac_var}_set
2772 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2773 eval ac_new_val=\$ac_env_${ac_var}_value
2774 case $ac_old_set,$ac_new_set in
2775 set,)
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2777 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2778 ac_cache_corrupted=: ;;
2779 ,set)
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2781 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2782 ac_cache_corrupted=: ;;
2783 ,);;
2784 *)
2785 if test "x$ac_old_val" != "x$ac_new_val"; then
2786 # differences in whitespace do not lead to failure.
2787 ac_old_val_w=`echo x $ac_old_val`
2788 ac_new_val_w=`echo x $ac_new_val`
2789 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2791 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2792 ac_cache_corrupted=:
2793 else
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2795 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2796 eval $ac_var=\$ac_old_val
2797 fi
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2799 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2801 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2802 fi;;
2803 esac
2804 # Pass precious variables to config.status.
2805 if test "$ac_new_set" = set; then
2806 case $ac_new_val in
2807 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2808 *) ac_arg=$ac_var=$ac_new_val ;;
2809 esac
2810 case " $ac_configure_args " in
2811 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2812 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2813 esac
2814 fi
2815 done
2816 if $ac_cache_corrupted; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2820 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2821 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2822 fi
2823 ## -------------------- ##
2824 ## Main body of script. ##
2825 ## -------------------- ##
2826
2827 ac_ext=c
2828 ac_cpp='$CPP $CPPFLAGS'
2829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2832
2833
2834
2835
2836 ac_config_headers="$ac_config_headers include/config.h"
2837
2838
2839 am__api_version='1.15'
2840
2841 ac_aux_dir=
2842 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2843 if test -f "$ac_dir/install-sh"; then
2844 ac_aux_dir=$ac_dir
2845 ac_install_sh="$ac_aux_dir/install-sh -c"
2846 break
2847 elif test -f "$ac_dir/install.sh"; then
2848 ac_aux_dir=$ac_dir
2849 ac_install_sh="$ac_aux_dir/install.sh -c"
2850 break
2851 elif test -f "$ac_dir/shtool"; then
2852 ac_aux_dir=$ac_dir
2853 ac_install_sh="$ac_aux_dir/shtool install -c"
2854 break
2855 fi
2856 done
2857 if test -z "$ac_aux_dir"; then
2858 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2859 fi
2860
2861 # These three variables are undocumented and unsupported,
2862 # and are intended to be withdrawn in a future Autoconf release.
2863 # They can cause serious problems if a builder's source tree is in a directory
2864 # whose full name contains unusual characters.
2865 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2866 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2867 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2868
2869
2870 # Find a good install program. We prefer a C program (faster),
2871 # so one script is as good as another. But avoid the broken or
2872 # incompatible versions:
2873 # SysV /etc/install, /usr/sbin/install
2874 # SunOS /usr/etc/install
2875 # IRIX /sbin/install
2876 # AIX /bin/install
2877 # AmigaOS /C/install, which installs bootblocks on floppy discs
2878 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2879 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2880 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2881 # OS/2's system install, which has a completely different semantic
2882 # ./install, which can be erroneously created by make from ./install.sh.
2883 # Reject install programs that cannot install multiple files.
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2885 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2886 if test -z "$INSTALL"; then
2887 if ${ac_cv_path_install+:} false; then :
2888 $as_echo_n "(cached) " >&6
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 # Account for people who put trailing slashes in PATH elements.
2896 case $as_dir/ in #((
2897 ./ | .// | /[cC]/* | \
2898 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2899 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2900 /usr/ucb/* ) ;;
2901 *)
2902 # OSF1 and SCO ODT 3.0 have their own names for install.
2903 # Don't use installbsd from OSF since it installs stuff as root
2904 # by default.
2905 for ac_prog in ginstall scoinst install; do
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2908 if test $ac_prog = install &&
2909 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2910 # AIX install. It has an incompatible calling convention.
2911 :
2912 elif test $ac_prog = install &&
2913 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2914 # program-specific install script used by HP pwplus--don't use.
2915 :
2916 else
2917 rm -rf conftest.one conftest.two conftest.dir
2918 echo one > conftest.one
2919 echo two > conftest.two
2920 mkdir conftest.dir
2921 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2922 test -s conftest.one && test -s conftest.two &&
2923 test -s conftest.dir/conftest.one &&
2924 test -s conftest.dir/conftest.two
2925 then
2926 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2927 break 3
2928 fi
2929 fi
2930 fi
2931 done
2932 done
2933 ;;
2934 esac
2935
2936 done
2937 IFS=$as_save_IFS
2938
2939 rm -rf conftest.one conftest.two conftest.dir
2940
2941 fi
2942 if test "${ac_cv_path_install+set}" = set; then
2943 INSTALL=$ac_cv_path_install
2944 else
2945 # As a last resort, use the slow shell script. Don't cache a
2946 # value for INSTALL within a source directory, because that will
2947 # break other packages using the cache if that directory is
2948 # removed, or if the value is a relative name.
2949 INSTALL=$ac_install_sh
2950 fi
2951 fi
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2953 $as_echo "$INSTALL" >&6; }
2954
2955 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2956 # It thinks the first close brace ends the variable substitution.
2957 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2958
2959 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2960
2961 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2962
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2964 $as_echo_n "checking whether build environment is sane... " >&6; }
2965 # Reject unsafe characters in $srcdir or the absolute working directory
2966 # name. Accept space and tab only in the latter.
2967 am_lf='
2968 '
2969 case `pwd` in
2970 *[\\\"\#\$\&\'\`$am_lf]*)
2971 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2972 esac
2973 case $srcdir in
2974 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2975 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2976 esac
2977
2978 # Do 'set' in a subshell so we don't clobber the current shell's
2979 # arguments. Must try -L first in case configure is actually a
2980 # symlink; some systems play weird games with the mod time of symlinks
2981 # (eg FreeBSD returns the mod time of the symlink's containing
2982 # directory).
2983 if (
2984 am_has_slept=no
2985 for am_try in 1 2; do
2986 echo "timestamp, slept: $am_has_slept" > conftest.file
2987 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2988 if test "$*" = "X"; then
2989 # -L didn't work.
2990 set X `ls -t "$srcdir/configure" conftest.file`
2991 fi
2992 if test "$*" != "X $srcdir/configure conftest.file" \
2993 && test "$*" != "X conftest.file $srcdir/configure"; then
2994
2995 # If neither matched, then we have a broken ls. This can happen
2996 # if, for instance, CONFIG_SHELL is bash and it inherits a
2997 # broken ls alias from the environment. This has actually
2998 # happened. Such a system could not be considered "sane".
2999 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3000 alias in your environment" "$LINENO" 5
3001 fi
3002 if test "$2" = conftest.file || test $am_try -eq 2; then
3003 break
3004 fi
3005 # Just in case.
3006 sleep 1
3007 am_has_slept=yes
3008 done
3009 test "$2" = conftest.file
3010 )
3011 then
3012 # Ok.
3013 :
3014 else
3015 as_fn_error $? "newly created file is older than distributed files!
3016 Check your system clock" "$LINENO" 5
3017 fi
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3019 $as_echo "yes" >&6; }
3020 # If we didn't sleep, we still need to ensure time stamps of config.status and
3021 # generated files are strictly newer.
3022 am_sleep_pid=
3023 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3024 ( sleep 1 ) &
3025 am_sleep_pid=$!
3026 fi
3027
3028 rm -f conftest.file
3029
3030 test "$program_prefix" != NONE &&
3031 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3032 # Use a double $ so make ignores it.
3033 test "$program_suffix" != NONE &&
3034 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3035 # Double any \ or $.
3036 # By default was `s,x,x', remove it if useless.
3037 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3038 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3039
3040 # Expand $ac_aux_dir to an absolute path.
3041 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3042
3043 if test x"${MISSING+set}" != xset; then
3044 case $am_aux_dir in
3045 *\ * | *\ *)
3046 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3047 *)
3048 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3049 esac
3050 fi
3051 # Use eval to expand $SHELL
3052 if eval "$MISSING --is-lightweight"; then
3053 am_missing_run="$MISSING "
3054 else
3055 am_missing_run=
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3057 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3058 fi
3059
3060 if test x"${install_sh+set}" != xset; then
3061 case $am_aux_dir in
3062 *\ * | *\ *)
3063 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3064 *)
3065 install_sh="\${SHELL} $am_aux_dir/install-sh"
3066 esac
3067 fi
3068
3069 # Installed binaries are usually stripped using 'strip' when the user
3070 # run "make install-strip". However 'strip' might not be the right
3071 # tool to use in cross-compilation environments, therefore Automake
3072 # will honor the 'STRIP' environment variable to overrule this program.
3073 if test "$cross_compiling" != no; then
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3076 set dummy ${ac_tool_prefix}strip; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_STRIP+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test -n "$STRIP"; then
3083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096 done
3097 done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 STRIP=$ac_cv_prog_STRIP
3103 if test -n "$STRIP"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3105 $as_echo "$STRIP" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112 fi
3113 if test -z "$ac_cv_prog_STRIP"; then
3114 ac_ct_STRIP=$STRIP
3115 # Extract the first word of "strip", so it can be a program name with args.
3116 set dummy strip; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 if test -n "$ac_ct_STRIP"; then
3123 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_prog_ac_ct_STRIP="strip"
3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3135 fi
3136 done
3137 done
3138 IFS=$as_save_IFS
3139
3140 fi
3141 fi
3142 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3143 if test -n "$ac_ct_STRIP"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3145 $as_echo "$ac_ct_STRIP" >&6; }
3146 else
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3149 fi
3150
3151 if test "x$ac_ct_STRIP" = x; then
3152 STRIP=":"
3153 else
3154 case $cross_compiling:$ac_tool_warned in
3155 yes:)
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3158 ac_tool_warned=yes ;;
3159 esac
3160 STRIP=$ac_ct_STRIP
3161 fi
3162 else
3163 STRIP="$ac_cv_prog_STRIP"
3164 fi
3165
3166 fi
3167 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3168
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3170 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3171 if test -z "$MKDIR_P"; then
3172 if ${ac_cv_path_mkdir+:} false; then :
3173 $as_echo_n "(cached) " >&6
3174 else
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3177 do
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
3180 for ac_prog in mkdir gmkdir; do
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3183 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3184 'mkdir (GNU coreutils) '* | \
3185 'mkdir (coreutils) '* | \
3186 'mkdir (fileutils) '4.1*)
3187 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3188 break 3;;
3189 esac
3190 done
3191 done
3192 done
3193 IFS=$as_save_IFS
3194
3195 fi
3196
3197 test -d ./--version && rmdir ./--version
3198 if test "${ac_cv_path_mkdir+set}" = set; then
3199 MKDIR_P="$ac_cv_path_mkdir -p"
3200 else
3201 # As a last resort, use the slow shell script. Don't cache a
3202 # value for MKDIR_P within a source directory, because that will
3203 # break other packages using the cache if that directory is
3204 # removed, or if the value is a relative name.
3205 MKDIR_P="$ac_install_sh -d"
3206 fi
3207 fi
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3209 $as_echo "$MKDIR_P" >&6; }
3210
3211 for ac_prog in gawk mawk nawk awk
3212 do
3213 # Extract the first word of "$ac_prog", so it can be a program name with args.
3214 set dummy $ac_prog; ac_word=$2
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 $as_echo_n "checking for $ac_word... " >&6; }
3217 if ${ac_cv_prog_AWK+:} false; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 if test -n "$AWK"; then
3221 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3222 else
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226 IFS=$as_save_IFS
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 ac_cv_prog_AWK="$ac_prog"
3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232 break 2
3233 fi
3234 done
3235 done
3236 IFS=$as_save_IFS
3237
3238 fi
3239 fi
3240 AWK=$ac_cv_prog_AWK
3241 if test -n "$AWK"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3243 $as_echo "$AWK" >&6; }
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3247 fi
3248
3249
3250 test -n "$AWK" && break
3251 done
3252
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3254 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3255 set x ${MAKE-make}
3256 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3257 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 cat >conftest.make <<\_ACEOF
3261 SHELL = /bin/sh
3262 all:
3263 @echo '@@@%%%=$(MAKE)=@@@%%%'
3264 _ACEOF
3265 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3266 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3267 *@@@%%%=?*=@@@%%%*)
3268 eval ac_cv_prog_make_${ac_make}_set=yes;;
3269 *)
3270 eval ac_cv_prog_make_${ac_make}_set=no;;
3271 esac
3272 rm -f conftest.make
3273 fi
3274 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276 $as_echo "yes" >&6; }
3277 SET_MAKE=
3278 else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3281 SET_MAKE="MAKE=${MAKE-make}"
3282 fi
3283
3284 rm -rf .tst 2>/dev/null
3285 mkdir .tst 2>/dev/null
3286 if test -d .tst; then
3287 am__leading_dot=.
3288 else
3289 am__leading_dot=_
3290 fi
3291 rmdir .tst 2>/dev/null
3292
3293 # Check whether --enable-silent-rules was given.
3294 if test "${enable_silent_rules+set}" = set; then :
3295 enableval=$enable_silent_rules;
3296 fi
3297
3298 case $enable_silent_rules in # (((
3299 yes) AM_DEFAULT_VERBOSITY=0;;
3300 no) AM_DEFAULT_VERBOSITY=1;;
3301 *) AM_DEFAULT_VERBOSITY=1;;
3302 esac
3303 am_make=${MAKE-make}
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3305 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3306 if ${am_cv_make_support_nested_variables+:} false; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 if $as_echo 'TRUE=$(BAR$(V))
3310 BAR0=false
3311 BAR1=true
3312 V=1
3313 am__doit:
3314 @$(TRUE)
3315 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3316 am_cv_make_support_nested_variables=yes
3317 else
3318 am_cv_make_support_nested_variables=no
3319 fi
3320 fi
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3322 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3323 if test $am_cv_make_support_nested_variables = yes; then
3324 AM_V='$(V)'
3325 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3326 else
3327 AM_V=$AM_DEFAULT_VERBOSITY
3328 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3329 fi
3330 AM_BACKSLASH='\'
3331
3332 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3333 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3334 # is not polluted with repeated "-I."
3335 am__isrc=' -I$(srcdir)'
3336 # test to see if srcdir already configured
3337 if test -f $srcdir/config.status; then
3338 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3339 fi
3340 fi
3341
3342 # test whether we have cygpath
3343 if test -z "$CYGPATH_W"; then
3344 if (cygpath --version) >/dev/null 2>/dev/null; then
3345 CYGPATH_W='cygpath -w'
3346 else
3347 CYGPATH_W=echo
3348 fi
3349 fi
3350
3351
3352 # Define the identity of the package.
3353 PACKAGE='alpine'
3354 VERSION='2.26'
3355
3356
3357 cat >>confdefs.h <<_ACEOF
3358 #define PACKAGE "$PACKAGE"
3359 _ACEOF
3360
3361
3362 cat >>confdefs.h <<_ACEOF
3363 #define VERSION "$VERSION"
3364 _ACEOF
3365
3366 # Some tools Automake needs.
3367
3368 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3369
3370
3371 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3372
3373
3374 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3375
3376
3377 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3378
3379
3380 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3381
3382 # For better backward compatibility. To be removed once Automake 1.9.x
3383 # dies out for good. For more background, see:
3384 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3385 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3386 mkdir_p='$(MKDIR_P)'
3387
3388 # We need awk for the "check" target (and possibly the TAP driver). The
3389 # system "awk" is bad on some platforms.
3390 # Always define AMTAR for backward compatibility. Yes, it's still used
3391 # in the wild :-( We should find a proper way to deprecate it ...
3392 AMTAR='$${TAR-tar}'
3393
3394
3395 # We'll loop over all known methods to create a tar archive until one works.
3396 _am_tools='gnutar pax cpio none'
3397
3398 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3399
3400
3401
3402
3403
3404
3405 # POSIX will say in a future version that running "rm -f" with no argument
3406 # is OK; and we want to be able to make that assumption in our Makefile
3407 # recipes. So use an aggressive probe to check that the usage we want is
3408 # actually supported "in the wild" to an acceptable degree.
3409 # See automake bug#10828.
3410 # To make any issue more visible, cause the running configure to be aborted
3411 # by default if the 'rm' program in use doesn't match our expectations; the
3412 # user can still override this though.
3413 if rm -f && rm -fr && rm -rf; then : OK; else
3414 cat >&2 <<'END'
3415 Oops!
3416
3417 Your 'rm' program seems unable to run without file operands specified
3418 on the command line, even when the '-f' option is present. This is contrary
3419 to the behaviour of most rm programs out there, and not conforming with
3420 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3421
3422 Please tell [email protected] about your system, including the value
3423 of your $PATH and any error possibly output before this message. This
3424 can help us improve future automake versions.
3425
3426 END
3427 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3428 echo 'Configuration will proceed anyway, since you have set the' >&2
3429 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3430 echo >&2
3431 else
3432 cat >&2 <<'END'
3433 Aborting the configuration process, to ensure you take notice of the issue.
3434
3435 You can download and install GNU coreutils to get an 'rm' implementation
3436 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3437
3438 If you want to complete the configuration process using your problematic
3439 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3440 to "yes", and re-run configure.
3441
3442 END
3443 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3444 fi
3445 fi
3446
3447
3448
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3450 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3451 # Check whether --enable-maintainer-mode was given.
3452 if test "${enable_maintainer_mode+set}" = set; then :
3453 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3454 else
3455 USE_MAINTAINER_MODE=no
3456 fi
3457
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3459 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3460 if test $USE_MAINTAINER_MODE = yes; then
3461 MAINTAINER_MODE_TRUE=
3462 MAINTAINER_MODE_FALSE='#'
3463 else
3464 MAINTAINER_MODE_TRUE='#'
3465 MAINTAINER_MODE_FALSE=
3466 fi
3467
3468 MAINT=$MAINTAINER_MODE_TRUE
3469
3470
3471
3472 # Make sure we can run config.sub.
3473 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3474 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3475
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3477 $as_echo_n "checking build system type... " >&6; }
3478 if ${ac_cv_build+:} false; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 ac_build_alias=$build_alias
3482 test "x$ac_build_alias" = x &&
3483 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3484 test "x$ac_build_alias" = x &&
3485 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3486 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3487 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3488
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3491 $as_echo "$ac_cv_build" >&6; }
3492 case $ac_cv_build in
3493 *-*-*) ;;
3494 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3495 esac
3496 build=$ac_cv_build
3497 ac_save_IFS=$IFS; IFS='-'
3498 set x $ac_cv_build
3499 shift
3500 build_cpu=$1
3501 build_vendor=$2
3502 shift; shift
3503 # Remember, the first character of IFS is used to create $*,
3504 # except with old shells:
3505 build_os=$*
3506 IFS=$ac_save_IFS
3507 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3508
3509
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3511 $as_echo_n "checking host system type... " >&6; }
3512 if ${ac_cv_host+:} false; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 if test "x$host_alias" = x; then
3516 ac_cv_host=$ac_cv_build
3517 else
3518 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3519 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3520 fi
3521
3522 fi
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3524 $as_echo "$ac_cv_host" >&6; }
3525 case $ac_cv_host in
3526 *-*-*) ;;
3527 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3528 esac
3529 host=$ac_cv_host
3530 ac_save_IFS=$IFS; IFS='-'
3531 set x $ac_cv_host
3532 shift
3533 host_cpu=$1
3534 host_vendor=$2
3535 shift; shift
3536 # Remember, the first character of IFS is used to create $*,
3537 # except with old shells:
3538 host_os=$*
3539 IFS=$ac_save_IFS
3540 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3541
3542
3543
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549
3550
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring for $PACKAGE_STRING ($host)" >&5
3552 $as_echo "$as_me: Configuring for $PACKAGE_STRING ($host)" >&6;}
3553
3554 # start out with intent to build Web Alpine
3555 WEB_BUILD=web/src/alpined.d
3556
3557
3558 ac_ext=c
3559 ac_cpp='$CPP $CPPFLAGS'
3560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3563 if test -n "$ac_tool_prefix"; then
3564 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3565 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if ${ac_cv_prog_CC+:} false; then :
3569 $as_echo_n "(cached) " >&6
3570 else
3571 if test -n "$CC"; then
3572 ac_cv_prog_CC="$CC" # Let the user override the test.
3573 else
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH
3576 do
3577 IFS=$as_save_IFS
3578 test -z "$as_dir" && as_dir=.
3579 for ac_exec_ext in '' $ac_executable_extensions; do
3580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3581 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 break 2
3584 fi
3585 done
3586 done
3587 IFS=$as_save_IFS
3588
3589 fi
3590 fi
3591 CC=$ac_cv_prog_CC
3592 if test -n "$CC"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3594 $as_echo "$CC" >&6; }
3595 else
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3598 fi
3599
3600
3601 fi
3602 if test -z "$ac_cv_prog_CC"; then
3603 ac_ct_CC=$CC
3604 # Extract the first word of "gcc", so it can be a program name with args.
3605 set dummy gcc; ac_word=$2
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3607 $as_echo_n "checking for $ac_word... " >&6; }
3608 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3609 $as_echo_n "(cached) " >&6
3610 else
3611 if test -n "$ac_ct_CC"; then
3612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3613 else
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3616 do
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621 ac_cv_prog_ac_ct_CC="gcc"
3622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2
3624 fi
3625 done
3626 done
3627 IFS=$as_save_IFS
3628
3629 fi
3630 fi
3631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3632 if test -n "$ac_ct_CC"; then
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3634 $as_echo "$ac_ct_CC" >&6; }
3635 else
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3638 fi
3639
3640 if test "x$ac_ct_CC" = x; then
3641 CC=""
3642 else
3643 case $cross_compiling:$ac_tool_warned in
3644 yes:)
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3647 ac_tool_warned=yes ;;
3648 esac
3649 CC=$ac_ct_CC
3650 fi
3651 else
3652 CC="$ac_cv_prog_CC"
3653 fi
3654
3655 if test -z "$CC"; then
3656 if test -n "$ac_tool_prefix"; then
3657 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3658 set dummy ${ac_tool_prefix}cc; ac_word=$2
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660 $as_echo_n "checking for $ac_word... " >&6; }
3661 if ${ac_cv_prog_CC+:} false; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 if test -n "$CC"; then
3665 ac_cv_prog_CC="$CC" # Let the user override the test.
3666 else
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 for as_dir in $PATH
3669 do
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674 ac_cv_prog_CC="${ac_tool_prefix}cc"
3675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 break 2
3677 fi
3678 done
3679 done
3680 IFS=$as_save_IFS
3681
3682 fi
3683 fi
3684 CC=$ac_cv_prog_CC
3685 if test -n "$CC"; then
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3687 $as_echo "$CC" >&6; }
3688 else
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 $as_echo "no" >&6; }
3691 fi
3692
3693
3694 fi
3695 fi
3696 if test -z "$CC"; then
3697 # Extract the first word of "cc", so it can be a program name with args.
3698 set dummy cc; ac_word=$2
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700 $as_echo_n "checking for $ac_word... " >&6; }
3701 if ${ac_cv_prog_CC+:} false; then :
3702 $as_echo_n "(cached) " >&6
3703 else
3704 if test -n "$CC"; then
3705 ac_cv_prog_CC="$CC" # Let the user override the test.
3706 else
3707 ac_prog_rejected=no
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3710 do
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3716 ac_prog_rejected=yes
3717 continue
3718 fi
3719 ac_cv_prog_CC="cc"
3720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 break 2
3722 fi
3723 done
3724 done
3725 IFS=$as_save_IFS
3726
3727 if test $ac_prog_rejected = yes; then
3728 # We found a bogon in the path, so make sure we never use it.
3729 set dummy $ac_cv_prog_CC
3730 shift
3731 if test $# != 0; then
3732 # We chose a different compiler from the bogus one.
3733 # However, it has the same basename, so the bogon will be chosen
3734 # first if we set CC to just the basename; use the full file name.
3735 shift
3736 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3737 fi
3738 fi
3739 fi
3740 fi
3741 CC=$ac_cv_prog_CC
3742 if test -n "$CC"; then
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3744 $as_echo "$CC" >&6; }
3745 else
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 $as_echo "no" >&6; }
3748 fi
3749
3750
3751 fi
3752 if test -z "$CC"; then
3753 if test -n "$ac_tool_prefix"; then
3754 for ac_prog in cl.exe
3755 do
3756 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 $as_echo_n "checking for $ac_word... " >&6; }
3760 if ${ac_cv_prog_CC+:} false; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 if test -n "$CC"; then
3764 ac_cv_prog_CC="$CC" # Let the user override the test.
3765 else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3768 do
3769 IFS=$as_save_IFS
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3775 break 2
3776 fi
3777 done
3778 done
3779 IFS=$as_save_IFS
3780
3781 fi
3782 fi
3783 CC=$ac_cv_prog_CC
3784 if test -n "$CC"; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3786 $as_echo "$CC" >&6; }
3787 else
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3790 fi
3791
3792
3793 test -n "$CC" && break
3794 done
3795 fi
3796 if test -z "$CC"; then
3797 ac_ct_CC=$CC
3798 for ac_prog in cl.exe
3799 do
3800 # Extract the first word of "$ac_prog", so it can be a program name with args.
3801 set dummy $ac_prog; ac_word=$2
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 $as_echo_n "checking for $ac_word... " >&6; }
3804 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 if test -n "$ac_ct_CC"; then
3808 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3809 else
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3812 do
3813 IFS=$as_save_IFS
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_ac_ct_CC="$ac_prog"
3818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 break 2
3820 fi
3821 done
3822 done
3823 IFS=$as_save_IFS
3824
3825 fi
3826 fi
3827 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3828 if test -n "$ac_ct_CC"; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3830 $as_echo "$ac_ct_CC" >&6; }
3831 else
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833 $as_echo "no" >&6; }
3834 fi
3835
3836
3837 test -n "$ac_ct_CC" && break
3838 done
3839
3840 if test "x$ac_ct_CC" = x; then
3841 CC=""
3842 else
3843 case $cross_compiling:$ac_tool_warned in
3844 yes:)
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3847 ac_tool_warned=yes ;;
3848 esac
3849 CC=$ac_ct_CC
3850 fi
3851 fi
3852
3853 fi
3854
3855
3856 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3858 as_fn_error $? "no acceptable C compiler found in \$PATH
3859 See \`config.log' for more details" "$LINENO" 5; }
3860
3861 # Provide some information about the compiler.
3862 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3863 set X $ac_compile
3864 ac_compiler=$2
3865 for ac_option in --version -v -V -qversion; do
3866 { { ac_try="$ac_compiler $ac_option >&5"
3867 case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870 esac
3871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872 $as_echo "$ac_try_echo"; } >&5
3873 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3874 ac_status=$?
3875 if test -s conftest.err; then
3876 sed '10a\
3877 ... rest of stderr output deleted ...
3878 10q' conftest.err >conftest.er1
3879 cat conftest.er1 >&5
3880 fi
3881 rm -f conftest.er1 conftest.err
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }
3884 done
3885
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3888
3889 int
3890 main ()
3891 {
3892
3893 ;
3894 return 0;
3895 }
3896 _ACEOF
3897 ac_clean_files_save=$ac_clean_files
3898 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3899 # Try to create an executable without -o first, disregard a.out.
3900 # It will help us diagnose broken compilers, and finding out an intuition
3901 # of exeext.
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3903 $as_echo_n "checking whether the C compiler works... " >&6; }
3904 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3905
3906 # The possible output files:
3907 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3908
3909 ac_rmfiles=
3910 for ac_file in $ac_files
3911 do
3912 case $ac_file in
3913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3914 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3915 esac
3916 done
3917 rm -f $ac_rmfiles
3918
3919 if { { ac_try="$ac_link_default"
3920 case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923 esac
3924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 $as_echo "$ac_try_echo"; } >&5
3926 (eval "$ac_link_default") 2>&5
3927 ac_status=$?
3928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }; then :
3930 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3931 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3932 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3933 # so that the user can short-circuit this test for compilers unknown to
3934 # Autoconf.
3935 for ac_file in $ac_files ''
3936 do
3937 test -f "$ac_file" || continue
3938 case $ac_file in
3939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3940 ;;
3941 [ab].out )
3942 # We found the default executable, but exeext='' is most
3943 # certainly right.
3944 break;;
3945 *.* )
3946 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3947 then :; else
3948 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3949 fi
3950 # We set ac_cv_exeext here because the later test for it is not
3951 # safe: cross compilers may not add the suffix if given an `-o'
3952 # argument, so we may need to know it at that point already.
3953 # Even if this section looks crufty: it has the advantage of
3954 # actually working.
3955 break;;
3956 * )
3957 break;;
3958 esac
3959 done
3960 test "$ac_cv_exeext" = no && ac_cv_exeext=
3961
3962 else
3963 ac_file=''
3964 fi
3965 if test -z "$ac_file"; then :
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 $as_echo "no" >&6; }
3968 $as_echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3970
3971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3973 as_fn_error 77 "C compiler cannot create executables
3974 See \`config.log' for more details" "$LINENO" 5; }
3975 else
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3977 $as_echo "yes" >&6; }
3978 fi
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3980 $as_echo_n "checking for C compiler default output file name... " >&6; }
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3982 $as_echo "$ac_file" >&6; }
3983 ac_exeext=$ac_cv_exeext
3984
3985 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3986 ac_clean_files=$ac_clean_files_save
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3988 $as_echo_n "checking for suffix of executables... " >&6; }
3989 if { { ac_try="$ac_link"
3990 case "(($ac_try" in
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3993 esac
3994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3995 $as_echo "$ac_try_echo"; } >&5
3996 (eval "$ac_link") 2>&5
3997 ac_status=$?
3998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3999 test $ac_status = 0; }; then :
4000 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4001 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4002 # work properly (i.e., refer to `conftest.exe'), while it won't with
4003 # `rm'.
4004 for ac_file in conftest.exe conftest conftest.*; do
4005 test -f "$ac_file" || continue
4006 case $ac_file in
4007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4008 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4009 break;;
4010 * ) break;;
4011 esac
4012 done
4013 else
4014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4017 See \`config.log' for more details" "$LINENO" 5; }
4018 fi
4019 rm -f conftest conftest$ac_cv_exeext
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4021 $as_echo "$ac_cv_exeext" >&6; }
4022
4023 rm -f conftest.$ac_ext
4024 EXEEXT=$ac_cv_exeext
4025 ac_exeext=$EXEEXT
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4028 #include <stdio.h>
4029 int
4030 main ()
4031 {
4032 FILE *f = fopen ("conftest.out", "w");
4033 return ferror (f) || fclose (f) != 0;
4034
4035 ;
4036 return 0;
4037 }
4038 _ACEOF
4039 ac_clean_files="$ac_clean_files conftest.out"
4040 # Check that the compiler produces executables we can run. If not, either
4041 # the compiler is broken, or we cross compile.
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4043 $as_echo_n "checking whether we are cross compiling... " >&6; }
4044 if test "$cross_compiling" != yes; then
4045 { { ac_try="$ac_link"
4046 case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049 esac
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052 (eval "$ac_link") 2>&5
4053 ac_status=$?
4054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055 test $ac_status = 0; }
4056 if { ac_try='./conftest$ac_cv_exeext'
4057 { { case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060 esac
4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062 $as_echo "$ac_try_echo"; } >&5
4063 (eval "$ac_try") 2>&5
4064 ac_status=$?
4065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }; }; then
4067 cross_compiling=no
4068 else
4069 if test "$cross_compiling" = maybe; then
4070 cross_compiling=yes
4071 else
4072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4074 as_fn_error $? "cannot run C compiled programs.
4075 If you meant to cross compile, use \`--host'.
4076 See \`config.log' for more details" "$LINENO" 5; }
4077 fi
4078 fi
4079 fi
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4081 $as_echo "$cross_compiling" >&6; }
4082
4083 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4084 ac_clean_files=$ac_clean_files_save
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4086 $as_echo_n "checking for suffix of object files... " >&6; }
4087 if ${ac_cv_objext+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092
4093 int
4094 main ()
4095 {
4096
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 rm -f conftest.o conftest.obj
4102 if { { ac_try="$ac_compile"
4103 case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4108 $as_echo "$ac_try_echo"; } >&5
4109 (eval "$ac_compile") 2>&5
4110 ac_status=$?
4111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4112 test $ac_status = 0; }; then :
4113 for ac_file in conftest.o conftest.obj conftest.*; do
4114 test -f "$ac_file" || continue;
4115 case $ac_file in
4116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4117 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4118 break;;
4119 esac
4120 done
4121 else
4122 $as_echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4124
4125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4127 as_fn_error $? "cannot compute suffix of object files: cannot compile
4128 See \`config.log' for more details" "$LINENO" 5; }
4129 fi
4130 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4131 fi
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4133 $as_echo "$ac_cv_objext" >&6; }
4134 OBJEXT=$ac_cv_objext
4135 ac_objext=$OBJEXT
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4137 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4138 if ${ac_cv_c_compiler_gnu+:} false; then :
4139 $as_echo_n "(cached) " >&6
4140 else
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4143
4144 int
4145 main ()
4146 {
4147 #ifndef __GNUC__
4148 choke me
4149 #endif
4150
4151 ;
4152 return 0;
4153 }
4154 _ACEOF
4155 if ac_fn_c_try_compile "$LINENO"; then :
4156 ac_compiler_gnu=yes
4157 else
4158 ac_compiler_gnu=no
4159 fi
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4162
4163 fi
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4165 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4166 if test $ac_compiler_gnu = yes; then
4167 GCC=yes
4168 else
4169 GCC=
4170 fi
4171 ac_test_CFLAGS=${CFLAGS+set}
4172 ac_save_CFLAGS=$CFLAGS
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4174 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4175 if ${ac_cv_prog_cc_g+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 ac_save_c_werror_flag=$ac_c_werror_flag
4179 ac_c_werror_flag=yes
4180 ac_cv_prog_cc_g=no
4181 CFLAGS="-g"
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4184
4185 int
4186 main ()
4187 {
4188
4189 ;
4190 return 0;
4191 }
4192 _ACEOF
4193 if ac_fn_c_try_compile "$LINENO"; then :
4194 ac_cv_prog_cc_g=yes
4195 else
4196 CFLAGS=""
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199
4200 int
4201 main ()
4202 {
4203
4204 ;
4205 return 0;
4206 }
4207 _ACEOF
4208 if ac_fn_c_try_compile "$LINENO"; then :
4209
4210 else
4211 ac_c_werror_flag=$ac_save_c_werror_flag
4212 CFLAGS="-g"
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4215
4216 int
4217 main ()
4218 {
4219
4220 ;
4221 return 0;
4222 }
4223 _ACEOF
4224 if ac_fn_c_try_compile "$LINENO"; then :
4225 ac_cv_prog_cc_g=yes
4226 fi
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 fi
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 fi
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 ac_c_werror_flag=$ac_save_c_werror_flag
4233 fi
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4235 $as_echo "$ac_cv_prog_cc_g" >&6; }
4236 if test "$ac_test_CFLAGS" = set; then
4237 CFLAGS=$ac_save_CFLAGS
4238 elif test $ac_cv_prog_cc_g = yes; then
4239 if test "$GCC" = yes; then
4240 CFLAGS="-g -O2"
4241 else
4242 CFLAGS="-g"
4243 fi
4244 else
4245 if test "$GCC" = yes; then
4246 CFLAGS="-O2"
4247 else
4248 CFLAGS=
4249 fi
4250 fi
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4252 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4253 if ${ac_cv_prog_cc_c89+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 ac_cv_prog_cc_c89=no
4257 ac_save_CC=$CC
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4260 #include <stdarg.h>
4261 #include <stdio.h>
4262 struct stat;
4263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4264 struct buf { int x; };
4265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4266 static char *e (p, i)
4267 char **p;
4268 int i;
4269 {
4270 return p[i];
4271 }
4272 static char *f (char * (*g) (char **, int), char **p, ...)
4273 {
4274 char *s;
4275 va_list v;
4276 va_start (v,p);
4277 s = g (p, va_arg (v,int));
4278 va_end (v);
4279 return s;
4280 }
4281
4282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4283 function prototypes and stuff, but not '\xHH' hex character constants.
4284 These don't provoke an error unfortunately, instead are silently treated
4285 as 'x'. The following induces an error, until -std is added to get
4286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4287 array size at least. It's necessary to write '\x00'==0 to get something
4288 that's true only with -std. */
4289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4290
4291 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4292 inside strings and character constants. */
4293 #define FOO(x) 'x'
4294 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4295
4296 int test (int i, double x);
4297 struct s1 {int (*f) (int a);};
4298 struct s2 {int (*f) (double a);};
4299 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4300 int argc;
4301 char **argv;
4302 int
4303 main ()
4304 {
4305 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4306 ;
4307 return 0;
4308 }
4309 _ACEOF
4310 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4311 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4312 do
4313 CC="$ac_save_CC $ac_arg"
4314 if ac_fn_c_try_compile "$LINENO"; then :
4315 ac_cv_prog_cc_c89=$ac_arg
4316 fi
4317 rm -f core conftest.err conftest.$ac_objext
4318 test "x$ac_cv_prog_cc_c89" != "xno" && break
4319 done
4320 rm -f conftest.$ac_ext
4321 CC=$ac_save_CC
4322
4323 fi
4324 # AC_CACHE_VAL
4325 case "x$ac_cv_prog_cc_c89" in
4326 x)
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4328 $as_echo "none needed" >&6; } ;;
4329 xno)
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4331 $as_echo "unsupported" >&6; } ;;
4332 *)
4333 CC="$CC $ac_cv_prog_cc_c89"
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4335 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4336 esac
4337 if test "x$ac_cv_prog_cc_c89" != xno; then :
4338
4339 fi
4340
4341 ac_ext=c
4342 ac_cpp='$CPP $CPPFLAGS'
4343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346
4347 ac_ext=c
4348 ac_cpp='$CPP $CPPFLAGS'
4349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4353 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4354 if ${am_cv_prog_cc_c_o+:} false; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h. */
4359
4360 int
4361 main ()
4362 {
4363
4364 ;
4365 return 0;
4366 }
4367 _ACEOF
4368 # Make sure it works both with $CC and with simple cc.
4369 # Following AC_PROG_CC_C_O, we do the test twice because some
4370 # compilers refuse to overwrite an existing .o file with -o,
4371 # though they will create one.
4372 am_cv_prog_cc_c_o=yes
4373 for am_i in 1 2; do
4374 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4375 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } \
4379 && test -f conftest2.$ac_objext; then
4380 : OK
4381 else
4382 am_cv_prog_cc_c_o=no
4383 break
4384 fi
4385 done
4386 rm -f core conftest*
4387 unset am_i
4388 fi
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4390 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4391 if test "$am_cv_prog_cc_c_o" != yes; then
4392 # Losing compiler, so override with the script.
4393 # FIXME: It is wrong to rewrite CC.
4394 # But if we don't then we get into trouble of one sort or another.
4395 # A longer-term fix would be to have automake use am__CC in this case,
4396 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4397 CC="$am_aux_dir/compile $CC"
4398 fi
4399 ac_ext=c
4400 ac_cpp='$CPP $CPPFLAGS'
4401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4404
4405 DEPDIR="${am__leading_dot}deps"
4406
4407 ac_config_commands="$ac_config_commands depfiles"
4408
4409
4410 am_make=${MAKE-make}
4411 cat > confinc << 'END'
4412 am__doit:
4413 @echo this is the am__doit target
4414 .PHONY: am__doit
4415 END
4416 # If we don't find an include directive, just comment out the code.
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4418 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4419 am__include="#"
4420 am__quote=
4421 _am_result=none
4422 # First try GNU make style include.
4423 echo "include confinc" > confmf
4424 # Ignore all kinds of additional output from 'make'.
4425 case `$am_make -s -f confmf 2> /dev/null` in #(
4426 *the\ am__doit\ target*)
4427 am__include=include
4428 am__quote=
4429 _am_result=GNU
4430 ;;
4431 esac
4432 # Now try BSD make style include.
4433 if test "$am__include" = "#"; then
4434 echo '.include "confinc"' > confmf
4435 case `$am_make -s -f confmf 2> /dev/null` in #(
4436 *the\ am__doit\ target*)
4437 am__include=.include
4438 am__quote="\""
4439 _am_result=BSD
4440 ;;
4441 esac
4442 fi
4443
4444
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4446 $as_echo "$_am_result" >&6; }
4447 rm -f confinc confmf
4448
4449 # Check whether --enable-dependency-tracking was given.
4450 if test "${enable_dependency_tracking+set}" = set; then :
4451 enableval=$enable_dependency_tracking;
4452 fi
4453
4454 if test "x$enable_dependency_tracking" != xno; then
4455 am_depcomp="$ac_aux_dir/depcomp"
4456 AMDEPBACKSLASH='\'
4457 am__nodep='_no'
4458 fi
4459 if test "x$enable_dependency_tracking" != xno; then
4460 AMDEP_TRUE=
4461 AMDEP_FALSE='#'
4462 else
4463 AMDEP_TRUE='#'
4464 AMDEP_FALSE=
4465 fi
4466
4467
4468
4469 depcc="$CC" am_compiler_list=
4470
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4472 $as_echo_n "checking dependency style of $depcc... " >&6; }
4473 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4477 # We make a subdir and do the tests there. Otherwise we can end up
4478 # making bogus files that we don't know about and never remove. For
4479 # instance it was reported that on HP-UX the gcc test will end up
4480 # making a dummy file named 'D' -- because '-MD' means "put the output
4481 # in D".
4482 rm -rf conftest.dir
4483 mkdir conftest.dir
4484 # Copy depcomp to subdir because otherwise we won't find it if we're
4485 # using a relative directory.
4486 cp "$am_depcomp" conftest.dir
4487 cd conftest.dir
4488 # We will build objects and dependencies in a subdirectory because
4489 # it helps to detect inapplicable dependency modes. For instance
4490 # both Tru64's cc and ICC support -MD to output dependencies as a
4491 # side effect of compilation, but ICC will put the dependencies in
4492 # the current directory while Tru64 will put them in the object
4493 # directory.
4494 mkdir sub
4495
4496 am_cv_CC_dependencies_compiler_type=none
4497 if test "$am_compiler_list" = ""; then
4498 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4499 fi
4500 am__universal=false
4501 case " $depcc " in #(
4502 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4503 esac
4504
4505 for depmode in $am_compiler_list; do
4506 # Setup a source with many dependencies, because some compilers
4507 # like to wrap large dependency lists on column 80 (with \), and
4508 # we should not choose a depcomp mode which is confused by this.
4509 #
4510 # We need to recreate these files for each test, as the compiler may
4511 # overwrite some of them when testing with obscure command lines.
4512 # This happens at least with the AIX C compiler.
4513 : > sub/conftest.c
4514 for i in 1 2 3 4 5 6; do
4515 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4516 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4517 # Solaris 10 /bin/sh.
4518 echo '/* dummy */' > sub/conftst$i.h
4519 done
4520 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4521
4522 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4523 # mode. It turns out that the SunPro C++ compiler does not properly
4524 # handle '-M -o', and we need to detect this. Also, some Intel
4525 # versions had trouble with output in subdirs.
4526 am__obj=sub/conftest.${OBJEXT-o}
4527 am__minus_obj="-o $am__obj"
4528 case $depmode in
4529 gcc)
4530 # This depmode causes a compiler race in universal mode.
4531 test "$am__universal" = false || continue
4532 ;;
4533 nosideeffect)
4534 # After this tag, mechanisms are not by side-effect, so they'll
4535 # only be used when explicitly requested.
4536 if test "x$enable_dependency_tracking" = xyes; then
4537 continue
4538 else
4539 break
4540 fi
4541 ;;
4542 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4543 # This compiler won't grok '-c -o', but also, the minuso test has
4544 # not run yet. These depmodes are late enough in the game, and
4545 # so weak that their functioning should not be impacted.
4546 am__obj=conftest.${OBJEXT-o}
4547 am__minus_obj=
4548 ;;
4549 none) break ;;
4550 esac
4551 if depmode=$depmode \
4552 source=sub/conftest.c object=$am__obj \
4553 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4554 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4555 >/dev/null 2>conftest.err &&
4556 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4557 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4558 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4559 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4560 # icc doesn't choke on unknown options, it will just issue warnings
4561 # or remarks (even with -Werror). So we grep stderr for any message
4562 # that says an option was ignored or not supported.
4563 # When given -MP, icc 7.0 and 7.1 complain thusly:
4564 # icc: Command line warning: ignoring option '-M'; no argument required
4565 # The diagnosis changed in icc 8.0:
4566 # icc: Command line remark: option '-MP' not supported
4567 if (grep 'ignoring option' conftest.err ||
4568 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4569 am_cv_CC_dependencies_compiler_type=$depmode
4570 break
4571 fi
4572 fi
4573 done
4574
4575 cd ..
4576 rm -rf conftest.dir
4577 else
4578 am_cv_CC_dependencies_compiler_type=none
4579 fi
4580
4581 fi
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4583 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4584 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4585
4586 if
4587 test "x$enable_dependency_tracking" != xno \
4588 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4589 am__fastdepCC_TRUE=
4590 am__fastdepCC_FALSE='#'
4591 else
4592 am__fastdepCC_TRUE='#'
4593 am__fastdepCC_FALSE=
4594 fi
4595
4596
4597 ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4603 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4604 # On Suns, sometimes $CPP names a directory.
4605 if test -n "$CPP" && test -d "$CPP"; then
4606 CPP=
4607 fi
4608 if test -z "$CPP"; then
4609 if ${ac_cv_prog_CPP+:} false; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 # Double quotes because CPP needs to be expanded
4613 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4614 do
4615 ac_preproc_ok=false
4616 for ac_c_preproc_warn_flag in '' yes
4617 do
4618 # Use a header file that comes with gcc, so configuring glibc
4619 # with a fresh cross-compiler works.
4620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4621 # <limits.h> exists even on freestanding compilers.
4622 # On the NeXT, cc -E runs the code through the compiler's parser,
4623 # not just through cpp. "Syntax error" is here to catch this case.
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626 #ifdef __STDC__
4627 # include <limits.h>
4628 #else
4629 # include <assert.h>
4630 #endif
4631 Syntax error
4632 _ACEOF
4633 if ac_fn_c_try_cpp "$LINENO"; then :
4634
4635 else
4636 # Broken: fails on valid input.
4637 continue
4638 fi
4639 rm -f conftest.err conftest.i conftest.$ac_ext
4640
4641 # OK, works on sane cases. Now check whether nonexistent headers
4642 # can be detected and how.
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4645 #include <ac_nonexistent.h>
4646 _ACEOF
4647 if ac_fn_c_try_cpp "$LINENO"; then :
4648 # Broken: success on invalid input.
4649 continue
4650 else
4651 # Passes both tests.
4652 ac_preproc_ok=:
4653 break
4654 fi
4655 rm -f conftest.err conftest.i conftest.$ac_ext
4656
4657 done
4658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4659 rm -f conftest.i conftest.err conftest.$ac_ext
4660 if $ac_preproc_ok; then :
4661 break
4662 fi
4663
4664 done
4665 ac_cv_prog_CPP=$CPP
4666
4667 fi
4668 CPP=$ac_cv_prog_CPP
4669 else
4670 ac_cv_prog_CPP=$CPP
4671 fi
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4673 $as_echo "$CPP" >&6; }
4674 ac_preproc_ok=false
4675 for ac_c_preproc_warn_flag in '' yes
4676 do
4677 # Use a header file that comes with gcc, so configuring glibc
4678 # with a fresh cross-compiler works.
4679 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4680 # <limits.h> exists even on freestanding compilers.
4681 # On the NeXT, cc -E runs the code through the compiler's parser,
4682 # not just through cpp. "Syntax error" is here to catch this case.
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4685 #ifdef __STDC__
4686 # include <limits.h>
4687 #else
4688 # include <assert.h>
4689 #endif
4690 Syntax error
4691 _ACEOF
4692 if ac_fn_c_try_cpp "$LINENO"; then :
4693
4694 else
4695 # Broken: fails on valid input.
4696 continue
4697 fi
4698 rm -f conftest.err conftest.i conftest.$ac_ext
4699
4700 # OK, works on sane cases. Now check whether nonexistent headers
4701 # can be detected and how.
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4704 #include <ac_nonexistent.h>
4705 _ACEOF
4706 if ac_fn_c_try_cpp "$LINENO"; then :
4707 # Broken: success on invalid input.
4708 continue
4709 else
4710 # Passes both tests.
4711 ac_preproc_ok=:
4712 break
4713 fi
4714 rm -f conftest.err conftest.i conftest.$ac_ext
4715
4716 done
4717 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4718 rm -f conftest.i conftest.err conftest.$ac_ext
4719 if $ac_preproc_ok; then :
4720
4721 else
4722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4724 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4725 See \`config.log' for more details" "$LINENO" 5; }
4726 fi
4727
4728 ac_ext=c
4729 ac_cpp='$CPP $CPPFLAGS'
4730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4733
4734
4735
4736 cross_compiling_build=no
4737
4738 ac_build_tool_prefix=
4739 if test -n "$build"; then :
4740 ac_build_tool_prefix="$build-"
4741 elif test -n "$build_alias"; then :
4742 ac_build_tool_prefix="$build_alias-"
4743 fi
4744
4745 ac_ext=c
4746 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
4747 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
4748 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
4749 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
4750
4751
4752 was_set_ac_cv_c_compiler_gnu=${ac_cv_c_compiler_gnu+y}
4753 if test ${was_set_ac_cv_c_compiler_gnu}; then :
4754 saved_ac_cv_c_compiler_gnu=$ac_cv_c_compiler_gnu
4755 { ac_cv_c_compiler_gnu=; unset ac_cv_c_compiler_gnu;}
4756 fi
4757
4758 ac_ext=c
4759 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
4760 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
4761 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
4762 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
4763 if test -n "$ac_build_tool_prefix"; then
4764 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4765 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 if test -n "$CC_FOR_BUILD"; then
4772 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4773 else
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4776 do
4777 IFS=$as_save_IFS
4778 test -z "$as_dir" && as_dir=.
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4781 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
4782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 break 2
4784 fi
4785 done
4786 done
4787 IFS=$as_save_IFS
4788
4789 fi
4790 fi
4791 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4792 if test -n "$CC_FOR_BUILD"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4794 $as_echo "$CC_FOR_BUILD" >&6; }
4795 else
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4798 fi
4799
4800
4801 fi
4802 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
4803 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4804 # Extract the first word of "gcc", so it can be a program name with args.
4805 set dummy gcc; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 if test -n "$ac_ct_CC_FOR_BUILD"; then
4812 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
4813 else
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4816 do
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
4822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 break 2
4824 fi
4825 done
4826 done
4827 IFS=$as_save_IFS
4828
4829 fi
4830 fi
4831 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
4832 if test -n "$ac_ct_CC_FOR_BUILD"; then
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
4834 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
4835 else
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837 $as_echo "no" >&6; }
4838 fi
4839
4840 if test "x$ac_ct_CC_FOR_BUILD" = x; then
4841 CC_FOR_BUILD=""
4842 else
4843 case $cross_compiling_build:$ac_tool_warned in
4844 yes:)
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
4846 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
4847 ac_tool_warned=yes ;;
4848 esac
4849 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
4850 fi
4851 else
4852 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
4853 fi
4854
4855 if test -z "$CC_FOR_BUILD"; then
4856 if test -n "$ac_build_tool_prefix"; then
4857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4858 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 if test -n "$CC_FOR_BUILD"; then
4865 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4866 else
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4869 do
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 break 2
4877 fi
4878 done
4879 done
4880 IFS=$as_save_IFS
4881
4882 fi
4883 fi
4884 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4885 if test -n "$CC_FOR_BUILD"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4887 $as_echo "$CC_FOR_BUILD" >&6; }
4888 else
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4891 fi
4892
4893
4894 fi
4895 fi
4896 if test -z "$CC_FOR_BUILD"; then
4897 # Extract the first word of "cc", so it can be a program name with args.
4898 set dummy cc; ac_word=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4902 $as_echo_n "(cached) " >&6
4903 else
4904 if test -n "$CC_FOR_BUILD"; then
4905 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4906 else
4907 ac_prog_rejected=no
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4910 do
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4916 ac_prog_rejected=yes
4917 continue
4918 fi
4919 ac_cv_prog_CC_FOR_BUILD="cc"
4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 break 2
4922 fi
4923 done
4924 done
4925 IFS=$as_save_IFS
4926
4927 if test $ac_prog_rejected = yes; then
4928 # We found a bogon in the path, so make sure we never use it.
4929 set dummy $ac_cv_prog_CC_FOR_BUILD
4930 shift
4931 if test $# != 0; then
4932 # We chose a different compiler from the bogus one.
4933 # However, it has the same basename, so the bogon will be chosen
4934 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
4935 shift
4936 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
4937 fi
4938 fi
4939 fi
4940 fi
4941 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4942 if test -n "$CC_FOR_BUILD"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4944 $as_echo "$CC_FOR_BUILD" >&6; }
4945 else
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4948 fi
4949
4950
4951 fi
4952 if test -z "$CC_FOR_BUILD"; then
4953 if test -n "$ac_build_tool_prefix"; then
4954 for ac_prog in cl.exe
4955 do
4956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4957 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 if test -n "$CC_FOR_BUILD"; then
4964 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 break 2
4976 fi
4977 done
4978 done
4979 IFS=$as_save_IFS
4980
4981 fi
4982 fi
4983 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4984 if test -n "$CC_FOR_BUILD"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4986 $as_echo "$CC_FOR_BUILD" >&6; }
4987 else
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4990 fi
4991
4992
4993 test -n "$CC_FOR_BUILD" && break
4994 done
4995 fi
4996 if test -z "$CC_FOR_BUILD"; then
4997 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4998 for ac_prog in cl.exe
4999 do
5000 # Extract the first word of "$ac_prog", so it can be a program name with args.
5001 set dummy $ac_prog; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -n "$ac_ct_CC_FOR_BUILD"; then
5008 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5017 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5020 fi
5021 done
5022 done
5023 IFS=$as_save_IFS
5024
5025 fi
5026 fi
5027 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5028 if test -n "$ac_ct_CC_FOR_BUILD"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5030 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5034 fi
5035
5036
5037 test -n "$ac_ct_CC_FOR_BUILD" && break
5038 done
5039
5040 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5041 CC_FOR_BUILD=""
5042 else
5043 case $cross_compiling_build:$ac_tool_warned in
5044 yes:)
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5046 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5047 ac_tool_warned=yes ;;
5048 esac
5049 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5050 fi
5051 fi
5052
5053 fi
5054
5055
5056 test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5058 as_fn_error $? "no acceptable C compiler found in \$PATH
5059 See \`config.log' for more details" "$LINENO" 5; }
5060
5061 # Provide some information about the compiler.
5062 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5063 set X $ac_compile
5064 ac_compiler=$2
5065 for ac_option in --version -v -V -qversion; do
5066 { { ac_try="$ac_compiler $ac_option >&5"
5067 case "(($ac_try" in
5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5070 esac
5071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5072 $as_echo "$ac_try_echo"; } >&5
5073 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5074 ac_status=$?
5075 if test -s conftest.err; then
5076 sed '10a\
5077 ... rest of stderr output deleted ...
5078 10q' conftest.err >conftest.er1
5079 cat conftest.er1 >&5
5080 fi
5081 rm -f conftest.er1 conftest.err
5082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5083 test $ac_status = 0; }
5084 done
5085
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5087 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5088 if ${ac_cv_c_compiler_gnu+:} false; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5093
5094 int
5095 main ()
5096 {
5097 #ifndef __GNUC__
5098 choke me
5099 #endif
5100
5101 ;
5102 return 0;
5103 }
5104 _ACEOF
5105 if ac_fn_c_try_compile "$LINENO"; then :
5106 ac_compiler_gnu=yes
5107 else
5108 ac_compiler_gnu=no
5109 fi
5110 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5111 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5112
5113 fi
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5115 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5116 if test $ac_compiler_gnu = yes; then
5117 GCC_FOR_BUILD=yes
5118 else
5119 GCC_FOR_BUILD=
5120 fi
5121 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5122 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
5124 $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
5125 if ${ac_cv_build_prog_cc_g+:} false; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 ac_save_c_werror_flag=$ac_c_werror_flag
5129 ac_c_werror_flag=yes
5130 ac_cv_build_prog_cc_g=no
5131 CFLAGS_FOR_BUILD="-g"
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5134
5135 int
5136 main ()
5137 {
5138
5139 ;
5140 return 0;
5141 }
5142 _ACEOF
5143 if ac_fn_c_try_compile "$LINENO"; then :
5144 ac_cv_build_prog_cc_g=yes
5145 else
5146 CFLAGS_FOR_BUILD=""
5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h. */
5149
5150 int
5151 main ()
5152 {
5153
5154 ;
5155 return 0;
5156 }
5157 _ACEOF
5158 if ac_fn_c_try_compile "$LINENO"; then :
5159
5160 else
5161 ac_c_werror_flag=$ac_save_c_werror_flag
5162 CFLAGS_FOR_BUILD="-g"
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164 /* end confdefs.h. */
5165
5166 int
5167 main ()
5168 {
5169
5170 ;
5171 return 0;
5172 }
5173 _ACEOF
5174 if ac_fn_c_try_compile "$LINENO"; then :
5175 ac_cv_build_prog_cc_g=yes
5176 fi
5177 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5178 fi
5179 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5180 fi
5181 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5182 ac_c_werror_flag=$ac_save_c_werror_flag
5183 fi
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
5185 $as_echo "$ac_cv_build_prog_cc_g" >&6; }
5186 if test "$ac_test_CFLAGS" = set; then
5187 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
5188 elif test $ac_cv_build_prog_cc_g = yes; then
5189 if test "$GCC_FOR_BUILD" = yes; then
5190 CFLAGS_FOR_BUILD="-g -O2"
5191 else
5192 CFLAGS_FOR_BUILD="-g"
5193 fi
5194 else
5195 if test "$GCC_FOR_BUILD" = yes; then
5196 CFLAGS_FOR_BUILD="-O2"
5197 else
5198 CFLAGS_FOR_BUILD=
5199 fi
5200 fi
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
5202 $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
5203 if ${ac_cv_build_prog_cc_c89+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 ac_cv_build_prog_cc_c89=no
5207 ac_save_CC=$CC_FOR_BUILD
5208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209 /* end confdefs.h. */
5210 #include <stdarg.h>
5211 #include <stdio.h>
5212 struct stat;
5213 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5214 struct buf { int x; };
5215 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5216 static char *e (p, i)
5217 char **p;
5218 int i;
5219 {
5220 return p[i];
5221 }
5222 static char *f (char * (*g) (char **, int), char **p, ...)
5223 {
5224 char *s;
5225 va_list v;
5226 va_start (v,p);
5227 s = g (p, va_arg (v,int));
5228 va_end (v);
5229 return s;
5230 }
5231
5232 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5233 function prototypes and stuff, but not '\xHH' hex character constants.
5234 These don't provoke an error unfortunately, instead are silently treated
5235 as 'x'. The following induces an error, until -std is added to get
5236 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5237 array size at least. It's necessary to write '\x00'==0 to get something
5238 that's true only with -std. */
5239 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5240
5241 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5242 inside strings and character constants. */
5243 #define FOO(x) 'x'
5244 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5245
5246 int test (int i, double x);
5247 struct s1 {int (*f) (int a);};
5248 struct s2 {int (*f) (double a);};
5249 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5250 int argc;
5251 char **argv;
5252 int
5253 main ()
5254 {
5255 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5256 ;
5257 return 0;
5258 }
5259 _ACEOF
5260 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5261 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5262 do
5263 CC_FOR_BUILD="$ac_save_CC $ac_arg"
5264 if ac_fn_c_try_compile "$LINENO"; then :
5265 ac_cv_build_prog_cc_c89=$ac_arg
5266 fi
5267 rm -f core conftest.err conftest.$ac_build_objext
5268 test "x$ac_cv_build_prog_cc_c89" != "xno" && break
5269 done
5270 rm -f conftest.$ac_ext
5271 CC_FOR_BUILD=$ac_save_CC
5272
5273 fi
5274 # AC_CACHE_VAL
5275 case "x$ac_cv_build_prog_cc_c89" in
5276 x)
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5278 $as_echo "none needed" >&6; } ;;
5279 xno)
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5281 $as_echo "unsupported" >&6; } ;;
5282 *)
5283 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c89"
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c89" >&5
5285 $as_echo "$ac_cv_build_prog_cc_c89" >&6; } ;;
5286 esac
5287 if test "x$ac_cv_build_prog_cc_c89" != xno; then :
5288
5289 fi
5290
5291 ac_ext=c
5292 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5293 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5294 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5295 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
5296
5297 ac_ext=c
5298 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5299 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5300 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5301 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
5303 $as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
5304 if ${am_cv_build_prog_cc_c_o+:} false; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309
5310 int
5311 main ()
5312 {
5313
5314 ;
5315 return 0;
5316 }
5317 _ACEOF
5318 # Make sure it works both with $CC and with simple cc.
5319 # Following AC_PROG_CC_C_O, we do the test twice because some
5320 # compilers refuse to overwrite an existing .o file with -o,
5321 # though they will create one.
5322 am_cv_build_prog_cc_c_o=yes
5323 for am_i in 1 2; do
5324 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
5325 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } \
5329 && test -f conftest2.$ac_build_objext; then
5330 : OK
5331 else
5332 am_cv_build_prog_cc_c_o=no
5333 break
5334 fi
5335 done
5336 rm -f core conftest*
5337 unset am_i
5338 fi
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_prog_cc_c_o" >&5
5340 $as_echo "$am_cv_build_prog_cc_c_o" >&6; }
5341 if test "$am_cv_build_prog_cc_c_o" != yes; then
5342 # Losing compiler, so override with the script.
5343 # FIXME: It is wrong to rewrite CC.
5344 # But if we don't then we get into trouble of one sort or another.
5345 # A longer-term fix would be to have automake use am__CC in this case,
5346 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5347 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
5348 fi
5349 ac_ext=c
5350 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5351 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5352 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5353 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
5354
5355
5356 depcc="$CC_FOR_BUILD" am_compiler_list=
5357
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5359 $as_echo_n "checking dependency style of $depcc... " >&6; }
5360 if ${am_cv_build_CC_dependencies_compiler_type+:} false; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5364 # We make a subdir and do the tests there. Otherwise we can end up
5365 # making bogus files that we don't know about and never remove. For
5366 # instance it was reported that on HP-UX the gcc test will end up
5367 # making a dummy file named 'D' -- because '-MD' means "put the output
5368 # in D".
5369 rm -rf conftest.dir
5370 mkdir conftest.dir
5371 # Copy depcomp to subdir because otherwise we won't find it if we're
5372 # using a relative directory.
5373 cp "$am_depcomp" conftest.dir
5374 cd conftest.dir
5375 # We will build objects and dependencies in a subdirectory because
5376 # it helps to detect inapplicable dependency modes. For instance
5377 # both Tru64's cc and ICC support -MD to output dependencies as a
5378 # side effect of compilation, but ICC will put the dependencies in
5379 # the current directory while Tru64 will put them in the object
5380 # directory.
5381 mkdir sub
5382
5383 am_cv_build_CC_dependencies_compiler_type=none
5384 if test "$am_compiler_list" = ""; then
5385 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5386 fi
5387 am__universal=false
5388 case " $depcc " in #(
5389 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5390 esac
5391
5392 for depmode in $am_compiler_list; do
5393 # Setup a source with many dependencies, because some compilers
5394 # like to wrap large dependency lists on column 80 (with \), and
5395 # we should not choose a depcomp mode which is confused by this.
5396 #
5397 # We need to recreate these files for each test, as the compiler may
5398 # overwrite some of them when testing with obscure command lines.
5399 # This happens at least with the AIX C compiler.
5400 : > sub/conftest.c
5401 for i in 1 2 3 4 5 6; do
5402 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5403 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5404 # Solaris 10 /bin/sh.
5405 echo '/* dummy */' > sub/conftst$i.h
5406 done
5407 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5408
5409 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5410 # mode. It turns out that the SunPro C++ compiler does not properly
5411 # handle '-M -o', and we need to detect this. Also, some Intel
5412 # versions had trouble with output in subdirs.
5413 am__obj=sub/conftest.${BUILD_OBJEXT-o}
5414 am__minus_obj="-o $am__obj"
5415 case $depmode in
5416 gcc)
5417 # This depmode causes a compiler race in universal mode.
5418 test "$am__universal" = false || continue
5419 ;;
5420 nosideeffect)
5421 # After this tag, mechanisms are not by side-effect, so they'll
5422 # only be used when explicitly requested.
5423 if test "x$enable_dependency_tracking" = xyes; then
5424 continue
5425 else
5426 break
5427 fi
5428 ;;
5429 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5430 # This compiler won't grok '-c -o', but also, the minuso test has
5431 # not run yet. These depmodes are late enough in the game, and
5432 # so weak that their functioning should not be impacted.
5433 am__obj=conftest.${BUILD_OBJEXT-o}
5434 am__minus_obj=
5435 ;;
5436 none) break ;;
5437 esac
5438 if depmode=$depmode \
5439 source=sub/conftest.c object=$am__obj \
5440 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5441 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5442 >/dev/null 2>conftest.err &&
5443 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5444 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5445 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5446 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5447 # icc doesn't choke on unknown options, it will just issue warnings
5448 # or remarks (even with -Werror). So we grep stderr for any message
5449 # that says an option was ignored or not supported.
5450 # When given -MP, icc 7.0 and 7.1 complain thusly:
5451 # icc: Command line warning: ignoring option '-M'; no argument required
5452 # The diagnosis changed in icc 8.0:
5453 # icc: Command line remark: option '-MP' not supported
5454 if (grep 'ignoring option' conftest.err ||
5455 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5456 am_cv_build_CC_dependencies_compiler_type=$depmode
5457 break
5458 fi
5459 fi
5460 done
5461
5462 cd ..
5463 rm -rf conftest.dir
5464 else
5465 am_cv_build_CC_dependencies_compiler_type=none
5466 fi
5467
5468 fi
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_CC_dependencies_compiler_type" >&5
5470 $as_echo "$am_cv_build_CC_dependencies_compiler_type" >&6; }
5471 CCDEPMODE=depmode=$am_cv_build_CC_dependencies_compiler_type
5472
5473 if
5474 test "x$enable_dependency_tracking" != xno \
5475 && test "$am_cv_build_CC_dependencies_compiler_type" = gcc3; then
5476 am__fastdepCC_TRUE=
5477 am__fastdepCC_FALSE='#'
5478 else
5479 am__fastdepCC_TRUE='#'
5480 am__fastdepCC_FALSE=
5481 fi
5482
5483
5484
5485 if test ${was_set_ac_cv_c_compiler_gnu}; then :
5486 ac_cv_c_compiler_gnu=saved_ac_cv_c_compiler_gnu
5487 fi
5488
5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490 /* end confdefs.h. */
5491
5492 int
5493 main ()
5494 {
5495
5496 ;
5497 return 0;
5498 }
5499 _ACEOF
5500 ac_clean_files_save=$ac_clean_files
5501 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5502 # Try to create an executable without -o first, disregard a.out.
5503 # It will help us diagnose broken compilers, and finding out an intuition
5504 # of exeext.
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5506 $as_echo_n "checking whether the C compiler works... " >&6; }
5507 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5508
5509 # The possible output files:
5510 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5511
5512 ac_rmfiles=
5513 for ac_file in $ac_files
5514 do
5515 case $ac_file in
5516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5517 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5518 esac
5519 done
5520 rm -f $ac_rmfiles
5521
5522 if { { ac_try="$ac_link_default"
5523 case "(($ac_try" in
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5526 esac
5527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5528 $as_echo "$ac_try_echo"; } >&5
5529 (eval "$ac_link_default") 2>&5
5530 ac_status=$?
5531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5532 test $ac_status = 0; }; then :
5533 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5534 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5535 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5536 # so that the user can short-circuit this test for compilers unknown to
5537 # Autoconf.
5538 for ac_file in $ac_files ''
5539 do
5540 test -f "$ac_file" || continue
5541 case $ac_file in
5542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5543 ;;
5544 [ab].out )
5545 # We found the default executable, but exeext='' is most
5546 # certainly right.
5547 break;;
5548 *.* )
5549 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5550 then :; else
5551 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5552 fi
5553 # We set ac_cv_exeext here because the later test for it is not
5554 # safe: cross compilers may not add the suffix if given an `-o'
5555 # argument, so we may need to know it at that point already.
5556 # Even if this section looks crufty: it has the advantage of
5557 # actually working.
5558 break;;
5559 * )
5560 break;;
5561 esac
5562 done
5563 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5564
5565 else
5566 ac_file=''
5567 fi
5568 if test -z "$ac_file"; then :
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5571 $as_echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5573
5574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5576 as_fn_error 77 "C compiler cannot create executables
5577 See \`config.log' for more details" "$LINENO" 5; }
5578 else
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5580 $as_echo "yes" >&6; }
5581 fi
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5583 $as_echo_n "checking for C compiler default output file name... " >&6; }
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5585 $as_echo "$ac_file" >&6; }
5586 ac_build_exeext=$ac_cv_build_exeext
5587
5588 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
5589 ac_clean_files=$ac_clean_files_save
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5591 $as_echo_n "checking for suffix of executables... " >&6; }
5592 if { { ac_try="$ac_link"
5593 case "(($ac_try" in
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5596 esac
5597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5598 $as_echo "$ac_try_echo"; } >&5
5599 (eval "$ac_link") 2>&5
5600 ac_status=$?
5601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5602 test $ac_status = 0; }; then :
5603 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5604 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5605 # work properly (i.e., refer to `conftest.exe'), while it won't with
5606 # `rm'.
5607 for ac_file in conftest.exe conftest conftest.*; do
5608 test -f "$ac_file" || continue
5609 case $ac_file in
5610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5611 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5612 break;;
5613 * ) break;;
5614 esac
5615 done
5616 else
5617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5619 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5620 See \`config.log' for more details" "$LINENO" 5; }
5621 fi
5622 rm -f conftest conftest$ac_cv_build_exeext
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
5624 $as_echo "$ac_cv_build_exeext" >&6; }
5625
5626 rm -f conftest.$ac_ext
5627 BUILD_EXEEXT=$ac_cv_build_exeext
5628 ac_build_exeext=$BUILD_EXEEXT
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5631 #include <stdio.h>
5632 int
5633 main ()
5634 {
5635 FILE *f = fopen ("conftest.out", "w");
5636 return ferror (f) || fclose (f) != 0;
5637
5638 ;
5639 return 0;
5640 }
5641 _ACEOF
5642 ac_clean_files="$ac_clean_files conftest.out"
5643 # Check that the compiler produces executables we can run. If not, either
5644 # the compiler is broken, or we cross compile.
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5646 $as_echo_n "checking whether we are cross compiling... " >&6; }
5647 if test "$cross_compiling_build" != yes; then
5648 { { ac_try="$ac_link"
5649 case "(($ac_try" in
5650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651 *) ac_try_echo=$ac_try;;
5652 esac
5653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5654 $as_echo "$ac_try_echo"; } >&5
5655 (eval "$ac_link") 2>&5
5656 ac_status=$?
5657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5658 test $ac_status = 0; }
5659 if { ac_try='./conftest$ac_cv_build_exeext'
5660 { { case "(($ac_try" in
5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5663 esac
5664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5665 $as_echo "$ac_try_echo"; } >&5
5666 (eval "$ac_try") 2>&5
5667 ac_status=$?
5668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5669 test $ac_status = 0; }; }; then
5670 cross_compiling_build=no
5671 else
5672 if test "$cross_compiling_build" = maybe; then
5673 cross_compiling_build=yes
5674 else
5675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5677 as_fn_error $? "cannot run C compiled programs.
5678 If you meant to cross compile, use \`--build'.
5679 See \`config.log' for more details" "$LINENO" 5; }
5680 fi
5681 fi
5682 fi
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling_build" >&5
5684 $as_echo "$cross_compiling_build" >&6; }
5685
5686 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
5687 ac_clean_files=$ac_clean_files_save
5688
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5690 $as_echo_n "checking for suffix of object files... " >&6; }
5691 if ${ac_cv_build_objext+:} false; then :
5692 $as_echo_n "(cached) " >&6
5693 else
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696
5697 int
5698 main ()
5699 {
5700
5701 ;
5702 return 0;
5703 }
5704 _ACEOF
5705 rm -f conftest.o conftest.obj
5706 if { { ac_try="$ac_compile"
5707 case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710 esac
5711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5712 $as_echo "$ac_try_echo"; } >&5
5713 (eval "$ac_compile") 2>&5
5714 ac_status=$?
5715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5716 test $ac_status = 0; }; then :
5717 for ac_file in conftest.o conftest.obj conftest.*; do
5718 test -f "$ac_file" || continue;
5719 case $ac_file in
5720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5721 *) ac_cv_build_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5722 break;;
5723 esac
5724 done
5725 else
5726 $as_echo "$as_me: failed program was:" >&5
5727 sed 's/^/| /' conftest.$ac_ext >&5
5728
5729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5731 as_fn_error $? "cannot compute suffix of object files: cannot compile
5732 See \`config.log' for more details" "$LINENO" 5; }
5733 fi
5734 rm -f conftest.$ac_cv_build_objext conftest.$ac_ext
5735 fi
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_objext" >&5
5737 $as_echo "$ac_cv_build_objext" >&6; }
5738 BUILD_OBJEXT=$ac_cv_build_objext
5739 ac_build_objext=$BUILD_OBJEXT
5740
5741 ac_ext=c
5742 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5743 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5744 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5745 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5747 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5748 # On Suns, sometimes $CPP names a directory.
5749 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
5750 CPP_FOR_BUILD=
5751 fi
5752 if test -z "$CPP_FOR_BUILD"; then
5753 if ${ac_cv_build_prog_CPP+:} false; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 # Double quotes because CPP needs to be expanded
5757 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
5758 do
5759 ac_preproc_ok=false
5760 for ac_c_preproc_warn_flag in '' yes
5761 do
5762 # Use a header file that comes with gcc, so configuring glibc
5763 # with a fresh cross-compiler works.
5764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5765 # <limits.h> exists even on freestanding compilers.
5766 # On the NeXT, cc -E runs the code through the compiler's parser,
5767 # not just through cpp. "Syntax error" is here to catch this case.
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 #ifdef __STDC__
5771 # include <limits.h>
5772 #else
5773 # include <assert.h>
5774 #endif
5775 Syntax error
5776 _ACEOF
5777 if ac_fn_c_try_cpp "$LINENO"; then :
5778
5779 else
5780 # Broken: fails on valid input.
5781 continue
5782 fi
5783 rm -f conftest.err conftest.i conftest.$ac_ext
5784
5785 # OK, works on sane cases. Now check whether nonexistent headers
5786 # can be detected and how.
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5789 #include <ac_nonexistent.h>
5790 _ACEOF
5791 if ac_fn_c_try_cpp "$LINENO"; then :
5792 # Broken: success on invalid input.
5793 continue
5794 else
5795 # Passes both tests.
5796 ac_preproc_ok=:
5797 break
5798 fi
5799 rm -f conftest.err conftest.i conftest.$ac_ext
5800
5801 done
5802 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5803 rm -f conftest.i conftest.err conftest.$ac_ext
5804 if $ac_preproc_ok; then :
5805 break
5806 fi
5807
5808 done
5809 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5810
5811 fi
5812 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
5813 else
5814 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5815 fi
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
5817 $as_echo "$CPP_FOR_BUILD" >&6; }
5818 ac_preproc_ok=false
5819 for ac_c_preproc_warn_flag in '' yes
5820 do
5821 # Use a header file that comes with gcc, so configuring glibc
5822 # with a fresh cross-compiler works.
5823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5824 # <limits.h> exists even on freestanding compilers.
5825 # On the NeXT, cc -E runs the code through the compiler's parser,
5826 # not just through cpp. "Syntax error" is here to catch this case.
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829 #ifdef __STDC__
5830 # include <limits.h>
5831 #else
5832 # include <assert.h>
5833 #endif
5834 Syntax error
5835 _ACEOF
5836 if ac_fn_c_try_cpp "$LINENO"; then :
5837
5838 else
5839 # Broken: fails on valid input.
5840 continue
5841 fi
5842 rm -f conftest.err conftest.i conftest.$ac_ext
5843
5844 # OK, works on sane cases. Now check whether nonexistent headers
5845 # can be detected and how.
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5848 #include <ac_nonexistent.h>
5849 _ACEOF
5850 if ac_fn_c_try_cpp "$LINENO"; then :
5851 # Broken: success on invalid input.
5852 continue
5853 else
5854 # Passes both tests.
5855 ac_preproc_ok=:
5856 break
5857 fi
5858 rm -f conftest.err conftest.i conftest.$ac_ext
5859
5860 done
5861 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5862 rm -f conftest.i conftest.err conftest.$ac_ext
5863 if $ac_preproc_ok; then :
5864
5865 else
5866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5868 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
5869 See \`config.log' for more details" "$LINENO" 5; }
5870 fi
5871
5872 ac_ext=c
5873 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5874 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5875 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5876 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
5877
5878
5879
5880 ac_ext=c
5881 ac_cpp='$CPP $CPPFLAGS'
5882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5885
5886
5887
5888 case $ac_cv_prog_cc_stdc in #(
5889 no) :
5890 ac_cv_build_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5891 *) :
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5893 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5894 if ${ac_cv_build_prog_cc_c99+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 ac_cv_build_prog_cc_c99=no
5898 ac_save_CC=$CC
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h. */
5901 #include <stdarg.h>
5902 #include <stdbool.h>
5903 #include <stdlib.h>
5904 #include <wchar.h>
5905 #include <stdio.h>
5906
5907 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5908 #define debug(...) fprintf (stderr, __VA_ARGS__)
5909 #define showlist(...) puts (#__VA_ARGS__)
5910 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5911 static void
5912 test_varargs_macros (void)
5913 {
5914 int x = 1234;
5915 int y = 5678;
5916 debug ("Flag");
5917 debug ("X = %d\n", x);
5918 showlist (The first, second, and third items.);
5919 report (x>y, "x is %d but y is %d", x, y);
5920 }
5921
5922 // Check long long types.
5923 #define BIG64 18446744073709551615ull
5924 #define BIG32 4294967295ul
5925 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5926 #if !BIG_OK
5927 your preprocessor is broken;
5928 #endif
5929 #if BIG_OK
5930 #else
5931 your preprocessor is broken;
5932 #endif
5933 static long long int bignum = -9223372036854775807LL;
5934 static unsigned long long int ubignum = BIG64;
5935
5936 struct incomplete_array
5937 {
5938 int datasize;
5939 double data[];
5940 };
5941
5942 struct named_init {
5943 int number;
5944 const wchar_t *name;
5945 double average;
5946 };
5947
5948 typedef const char *ccp;
5949
5950 static inline int
5951 test_restrict (ccp restrict text)
5952 {
5953 // See if C++-style comments work.
5954 // Iterate through items via the restricted pointer.
5955 // Also check for declarations in for loops.
5956 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5957 continue;
5958 return 0;
5959 }
5960
5961 // Check varargs and va_copy.
5962 static void
5963 test_varargs (const char *format, ...)
5964 {
5965 va_list args;
5966 va_start (args, format);
5967 va_list args_copy;
5968 va_copy (args_copy, args);
5969
5970 const char *str;
5971 int number;
5972 float fnumber;
5973
5974 while (*format)
5975 {
5976 switch (*format++)
5977 {
5978 case 's': // string
5979 str = va_arg (args_copy, const char *);
5980 break;
5981 case 'd': // int
5982 number = va_arg (args_copy, int);
5983 break;
5984 case 'f': // float
5985 fnumber = va_arg (args_copy, double);
5986 break;
5987 default:
5988 break;
5989 }
5990 }
5991 va_end (args_copy);
5992 va_end (args);
5993 }
5994
5995 int
5996 main ()
5997 {
5998
5999 // Check bool.
6000 _Bool success = false;
6001
6002 // Check restrict.
6003 if (test_restrict ("String literal") == 0)
6004 success = true;
6005 char *restrict newvar = "Another string";
6006
6007 // Check varargs.
6008 test_varargs ("s, d' f .", "string", 65, 34.234);
6009 test_varargs_macros ();
6010
6011 // Check flexible array members.
6012 struct incomplete_array *ia =
6013 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6014 ia->datasize = 10;
6015 for (int i = 0; i < ia->datasize; ++i)
6016 ia->data[i] = i * 1.234;
6017
6018 // Check named initializers.
6019 struct named_init ni = {
6020 .number = 34,
6021 .name = L"Test wide string",
6022 .average = 543.34343,
6023 };
6024
6025 ni.number = 58;
6026
6027 int dynamic_array[ni.number];
6028 dynamic_array[ni.number - 1] = 543;
6029
6030 // work around unused variable warnings
6031 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6032 || dynamic_array[ni.number - 1] != 543);
6033
6034 ;
6035 return 0;
6036 }
6037 _ACEOF
6038 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
6039 do
6040 CC="$ac_save_CC $ac_arg"
6041 if ac_fn_c_try_compile "$LINENO"; then :
6042 ac_cv_build_prog_cc_c99=$ac_arg
6043 fi
6044 rm -f core conftest.err conftest.$ac_objext
6045 test "x$ac_cv_build_prog_cc_c99" != "xno" && break
6046 done
6047 rm -f conftest.$ac_ext
6048 CC=$ac_save_CC
6049
6050 fi
6051 # AC_CACHE_VAL
6052 case "x$ac_cv_build_prog_cc_c99" in
6053 x)
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6055 $as_echo "none needed" >&6; } ;;
6056 xno)
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6058 $as_echo "unsupported" >&6; } ;;
6059 *)
6060 CC="$CC $ac_cv_build_prog_cc_c99"
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c99" >&5
6062 $as_echo "$ac_cv_build_prog_cc_c99" >&6; } ;;
6063 esac
6064 if test "x$ac_cv_build_prog_cc_c99" != xno; then :
6065 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c99
6066 else
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6068 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6069 if ${ac_cv_prog_cc_c89+:} false; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 ac_cv_prog_cc_c89=no
6073 ac_save_CC=$CC
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076 #include <stdarg.h>
6077 #include <stdio.h>
6078 struct stat;
6079 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6080 struct buf { int x; };
6081 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6082 static char *e (p, i)
6083 char **p;
6084 int i;
6085 {
6086 return p[i];
6087 }
6088 static char *f (char * (*g) (char **, int), char **p, ...)
6089 {
6090 char *s;
6091 va_list v;
6092 va_start (v,p);
6093 s = g (p, va_arg (v,int));
6094 va_end (v);
6095 return s;
6096 }
6097
6098 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6099 function prototypes and stuff, but not '\xHH' hex character constants.
6100 These don't provoke an error unfortunately, instead are silently treated
6101 as 'x'. The following induces an error, until -std is added to get
6102 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6103 array size at least. It's necessary to write '\x00'==0 to get something
6104 that's true only with -std. */
6105 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6106
6107 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6108 inside strings and character constants. */
6109 #define FOO(x) 'x'
6110 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6111
6112 int test (int i, double x);
6113 struct s1 {int (*f) (int a);};
6114 struct s2 {int (*f) (double a);};
6115 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6116 int argc;
6117 char **argv;
6118 int
6119 main ()
6120 {
6121 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6122 ;
6123 return 0;
6124 }
6125 _ACEOF
6126 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6127 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6128 do
6129 CC="$ac_save_CC $ac_arg"
6130 if ac_fn_c_try_compile "$LINENO"; then :
6131 ac_cv_prog_cc_c89=$ac_arg
6132 fi
6133 rm -f core conftest.err conftest.$ac_objext
6134 test "x$ac_cv_prog_cc_c89" != "xno" && break
6135 done
6136 rm -f conftest.$ac_ext
6137 CC=$ac_save_CC
6138
6139 fi
6140 # AC_CACHE_VAL
6141 case "x$ac_cv_prog_cc_c89" in
6142 x)
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6144 $as_echo "none needed" >&6; } ;;
6145 xno)
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6147 $as_echo "unsupported" >&6; } ;;
6148 *)
6149 CC="$CC $ac_cv_prog_cc_c89"
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6151 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6152 esac
6153 if test "x$ac_cv_prog_cc_c89" != xno; then :
6154 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6155 else
6156 ac_cv_prog_cc_stdc=no
6157 fi
6158
6159 fi
6160 ;;
6161 esac
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6163 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6164 if ${ac_cv_prog_cc_stdc+:} false; then :
6165 $as_echo_n "(cached) " >&6
6166 fi
6167
6168 case $ac_cv_prog_cc_stdc in #(
6169 no) :
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6171 $as_echo "unsupported" >&6; } ;; #(
6172 '') :
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6174 $as_echo "none needed" >&6; } ;; #(
6175 *) :
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6177 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6178 esac
6179
6180
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6182 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6183 set x ${MAKE-make}
6184 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6185 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 cat >conftest.make <<\_ACEOF
6189 SHELL = /bin/sh
6190 all:
6191 @echo '@@@%%%=$(MAKE)=@@@%%%'
6192 _ACEOF
6193 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6194 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6195 *@@@%%%=?*=@@@%%%*)
6196 eval ac_cv_prog_make_${ac_make}_set=yes;;
6197 *)
6198 eval ac_cv_prog_make_${ac_make}_set=no;;
6199 esac
6200 rm -f conftest.make
6201 fi
6202 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6204 $as_echo "yes" >&6; }
6205 SET_MAKE=
6206 else
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208 $as_echo "no" >&6; }
6209 SET_MAKE="MAKE=${MAKE-make}"
6210 fi
6211
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6213 $as_echo_n "checking whether ln -s works... " >&6; }
6214 LN_S=$as_ln_s
6215 if test "$LN_S" = "ln -s"; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6217 $as_echo "yes" >&6; }
6218 else
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6220 $as_echo "no, using $LN_S" >&6; }
6221 fi
6222
6223 for ac_prog in gawk mawk nawk awk
6224 do
6225 # Extract the first word of "$ac_prog", so it can be a program name with args.
6226 set dummy $ac_prog; ac_word=$2
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 $as_echo_n "checking for $ac_word... " >&6; }
6229 if ${ac_cv_prog_AWK+:} false; then :
6230 $as_echo_n "(cached) " >&6
6231 else
6232 if test -n "$AWK"; then
6233 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6234 else
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH
6237 do
6238 IFS=$as_save_IFS
6239 test -z "$as_dir" && as_dir=.
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6242 ac_cv_prog_AWK="$ac_prog"
6243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 break 2
6245 fi
6246 done
6247 done
6248 IFS=$as_save_IFS
6249
6250 fi
6251 fi
6252 AWK=$ac_cv_prog_AWK
6253 if test -n "$AWK"; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6255 $as_echo "$AWK" >&6; }
6256 else
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }
6259 fi
6260
6261
6262 test -n "$AWK" && break
6263 done
6264
6265 case `pwd` in
6266 *\ * | *\ *)
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6268 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6269 esac
6270
6271
6272
6273 macro_version='2.4.6'
6274 macro_revision='2.4.6'
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288 ltmain=$ac_aux_dir/ltmain.sh
6289
6290 # Backslashify metacharacters that are still active within
6291 # double-quoted strings.
6292 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6293
6294 # Same as above, but do not quote variable references.
6295 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6296
6297 # Sed substitution to delay expansion of an escaped shell variable in a
6298 # double_quote_subst'ed string.
6299 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6300
6301 # Sed substitution to delay expansion of an escaped single quote.
6302 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6303
6304 # Sed substitution to avoid accidental globbing in evaled expressions
6305 no_glob_subst='s/\*/\\\*/g'
6306
6307 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6308 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6309 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6310
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6312 $as_echo_n "checking how to print strings... " >&6; }
6313 # Test print first, because it will be a builtin if present.
6314 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6315 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6316 ECHO='print -r --'
6317 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6318 ECHO='printf %s\n'
6319 else
6320 # Use this function as a fallback that always works.
6321 func_fallback_echo ()
6322 {
6323 eval 'cat <<_LTECHO_EOF
6324 $1
6325 _LTECHO_EOF'
6326 }
6327 ECHO='func_fallback_echo'
6328 fi
6329
6330 # func_echo_all arg...
6331 # Invoke $ECHO with all args, space-separated.
6332 func_echo_all ()
6333 {
6334 $ECHO ""
6335 }
6336
6337 case $ECHO in
6338 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6339 $as_echo "printf" >&6; } ;;
6340 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6341 $as_echo "print -r" >&6; } ;;
6342 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6343 $as_echo "cat" >&6; } ;;
6344 esac
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6360 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6361 if ${ac_cv_path_SED+:} false; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6365 for ac_i in 1 2 3 4 5 6 7; do
6366 ac_script="$ac_script$as_nl$ac_script"
6367 done
6368 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6369 { ac_script=; unset ac_script;}
6370 if test -z "$SED"; then
6371 ac_path_SED_found=false
6372 # Loop through the user's path and test for each of PROGNAME-LIST
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6375 do
6376 IFS=$as_save_IFS
6377 test -z "$as_dir" && as_dir=.
6378 for ac_prog in sed gsed; do
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6381 as_fn_executable_p "$ac_path_SED" || continue
6382 # Check for GNU ac_path_SED and select it if it is found.
6383 # Check for GNU $ac_path_SED
6384 case `"$ac_path_SED" --version 2>&1` in
6385 *GNU*)
6386 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6387 *)
6388 ac_count=0
6389 $as_echo_n 0123456789 >"conftest.in"
6390 while :
6391 do
6392 cat "conftest.in" "conftest.in" >"conftest.tmp"
6393 mv "conftest.tmp" "conftest.in"
6394 cp "conftest.in" "conftest.nl"
6395 $as_echo '' >> "conftest.nl"
6396 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6397 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6398 as_fn_arith $ac_count + 1 && ac_count=$as_val
6399 if test $ac_count -gt ${ac_path_SED_max-0}; then
6400 # Best one so far, save it but keep looking for a better one
6401 ac_cv_path_SED="$ac_path_SED"
6402 ac_path_SED_max=$ac_count
6403 fi
6404 # 10*(2^10) chars as input seems more than enough
6405 test $ac_count -gt 10 && break
6406 done
6407 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6408 esac
6409
6410 $ac_path_SED_found && break 3
6411 done
6412 done
6413 done
6414 IFS=$as_save_IFS
6415 if test -z "$ac_cv_path_SED"; then
6416 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6417 fi
6418 else
6419 ac_cv_path_SED=$SED
6420 fi
6421
6422 fi
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6424 $as_echo "$ac_cv_path_SED" >&6; }
6425 SED="$ac_cv_path_SED"
6426 rm -f conftest.sed
6427
6428 test -z "$SED" && SED=sed
6429 Xsed="$SED -e 1s/^X//"
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6442 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6443 if ${ac_cv_path_GREP+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if test -z "$GREP"; then
6447 ac_path_GREP_found=false
6448 # Loop through the user's path and test for each of PROGNAME-LIST
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6451 do
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_prog in grep ggrep; do
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6457 as_fn_executable_p "$ac_path_GREP" || continue
6458 # Check for GNU ac_path_GREP and select it if it is found.
6459 # Check for GNU $ac_path_GREP
6460 case `"$ac_path_GREP" --version 2>&1` in
6461 *GNU*)
6462 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6463 *)
6464 ac_count=0
6465 $as_echo_n 0123456789 >"conftest.in"
6466 while :
6467 do
6468 cat "conftest.in" "conftest.in" >"conftest.tmp"
6469 mv "conftest.tmp" "conftest.in"
6470 cp "conftest.in" "conftest.nl"
6471 $as_echo 'GREP' >> "conftest.nl"
6472 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6473 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6474 as_fn_arith $ac_count + 1 && ac_count=$as_val
6475 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6476 # Best one so far, save it but keep looking for a better one
6477 ac_cv_path_GREP="$ac_path_GREP"
6478 ac_path_GREP_max=$ac_count
6479 fi
6480 # 10*(2^10) chars as input seems more than enough
6481 test $ac_count -gt 10 && break
6482 done
6483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6484 esac
6485
6486 $ac_path_GREP_found && break 3
6487 done
6488 done
6489 done
6490 IFS=$as_save_IFS
6491 if test -z "$ac_cv_path_GREP"; then
6492 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6493 fi
6494 else
6495 ac_cv_path_GREP=$GREP
6496 fi
6497
6498 fi
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6500 $as_echo "$ac_cv_path_GREP" >&6; }
6501 GREP="$ac_cv_path_GREP"
6502
6503
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6505 $as_echo_n "checking for egrep... " >&6; }
6506 if ${ac_cv_path_EGREP+:} false; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6509 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6510 then ac_cv_path_EGREP="$GREP -E"
6511 else
6512 if test -z "$EGREP"; then
6513 ac_path_EGREP_found=false
6514 # Loop through the user's path and test for each of PROGNAME-LIST
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6517 do
6518 IFS=$as_save_IFS
6519 test -z "$as_dir" && as_dir=.
6520 for ac_prog in egrep; do
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6523 as_fn_executable_p "$ac_path_EGREP" || continue
6524 # Check for GNU ac_path_EGREP and select it if it is found.
6525 # Check for GNU $ac_path_EGREP
6526 case `"$ac_path_EGREP" --version 2>&1` in
6527 *GNU*)
6528 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6529 *)
6530 ac_count=0
6531 $as_echo_n 0123456789 >"conftest.in"
6532 while :
6533 do
6534 cat "conftest.in" "conftest.in" >"conftest.tmp"
6535 mv "conftest.tmp" "conftest.in"
6536 cp "conftest.in" "conftest.nl"
6537 $as_echo 'EGREP' >> "conftest.nl"
6538 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6539 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6540 as_fn_arith $ac_count + 1 && ac_count=$as_val
6541 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6542 # Best one so far, save it but keep looking for a better one
6543 ac_cv_path_EGREP="$ac_path_EGREP"
6544 ac_path_EGREP_max=$ac_count
6545 fi
6546 # 10*(2^10) chars as input seems more than enough
6547 test $ac_count -gt 10 && break
6548 done
6549 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6550 esac
6551
6552 $ac_path_EGREP_found && break 3
6553 done
6554 done
6555 done
6556 IFS=$as_save_IFS
6557 if test -z "$ac_cv_path_EGREP"; then
6558 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6559 fi
6560 else
6561 ac_cv_path_EGREP=$EGREP
6562 fi
6563
6564 fi
6565 fi
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6567 $as_echo "$ac_cv_path_EGREP" >&6; }
6568 EGREP="$ac_cv_path_EGREP"
6569
6570
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6572 $as_echo_n "checking for fgrep... " >&6; }
6573 if ${ac_cv_path_FGREP+:} false; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6577 then ac_cv_path_FGREP="$GREP -F"
6578 else
6579 if test -z "$FGREP"; then
6580 ac_path_FGREP_found=false
6581 # Loop through the user's path and test for each of PROGNAME-LIST
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6584 do
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for ac_prog in fgrep; do
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6590 as_fn_executable_p "$ac_path_FGREP" || continue
6591 # Check for GNU ac_path_FGREP and select it if it is found.
6592 # Check for GNU $ac_path_FGREP
6593 case `"$ac_path_FGREP" --version 2>&1` in
6594 *GNU*)
6595 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6596 *)
6597 ac_count=0
6598 $as_echo_n 0123456789 >"conftest.in"
6599 while :
6600 do
6601 cat "conftest.in" "conftest.in" >"conftest.tmp"
6602 mv "conftest.tmp" "conftest.in"
6603 cp "conftest.in" "conftest.nl"
6604 $as_echo 'FGREP' >> "conftest.nl"
6605 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6607 as_fn_arith $ac_count + 1 && ac_count=$as_val
6608 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6609 # Best one so far, save it but keep looking for a better one
6610 ac_cv_path_FGREP="$ac_path_FGREP"
6611 ac_path_FGREP_max=$ac_count
6612 fi
6613 # 10*(2^10) chars as input seems more than enough
6614 test $ac_count -gt 10 && break
6615 done
6616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6617 esac
6618
6619 $ac_path_FGREP_found && break 3
6620 done
6621 done
6622 done
6623 IFS=$as_save_IFS
6624 if test -z "$ac_cv_path_FGREP"; then
6625 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6626 fi
6627 else
6628 ac_cv_path_FGREP=$FGREP
6629 fi
6630
6631 fi
6632 fi
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6634 $as_echo "$ac_cv_path_FGREP" >&6; }
6635 FGREP="$ac_cv_path_FGREP"
6636
6637
6638 test -z "$GREP" && GREP=grep
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658 # Check whether --with-gnu-ld was given.
6659 if test "${with_gnu_ld+set}" = set; then :
6660 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6661 else
6662 with_gnu_ld=no
6663 fi
6664
6665 ac_prog=ld
6666 if test yes = "$GCC"; then
6667 # Check if gcc -print-prog-name=ld gives a path.
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6669 $as_echo_n "checking for ld used by $CC... " >&6; }
6670 case $host in
6671 *-*-mingw*)
6672 # gcc leaves a trailing carriage return, which upsets mingw
6673 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6674 *)
6675 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6676 esac
6677 case $ac_prog in
6678 # Accept absolute paths.
6679 [\\/]* | ?:[\\/]*)
6680 re_direlt='/[^/][^/]*/\.\./'
6681 # Canonicalize the pathname of ld
6682 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6683 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6684 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6685 done
6686 test -z "$LD" && LD=$ac_prog
6687 ;;
6688 "")
6689 # If it fails, then pretend we aren't using GCC.
6690 ac_prog=ld
6691 ;;
6692 *)
6693 # If it is relative, then search for the first ld in PATH.
6694 with_gnu_ld=unknown
6695 ;;
6696 esac
6697 elif test yes = "$with_gnu_ld"; then
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6699 $as_echo_n "checking for GNU ld... " >&6; }
6700 else
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6702 $as_echo_n "checking for non-GNU ld... " >&6; }
6703 fi
6704 if ${lt_cv_path_LD+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 if test -z "$LD"; then
6708 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6709 for ac_dir in $PATH; do
6710 IFS=$lt_save_ifs
6711 test -z "$ac_dir" && ac_dir=.
6712 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6713 lt_cv_path_LD=$ac_dir/$ac_prog
6714 # Check to see if the program is GNU ld. I'd rather use --version,
6715 # but apparently some variants of GNU ld only accept -v.
6716 # Break only if it was the GNU/non-GNU ld that we prefer.
6717 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6718 *GNU* | *'with BFD'*)
6719 test no != "$with_gnu_ld" && break
6720 ;;
6721 *)
6722 test yes != "$with_gnu_ld" && break
6723 ;;
6724 esac
6725 fi
6726 done
6727 IFS=$lt_save_ifs
6728 else
6729 lt_cv_path_LD=$LD # Let the user override the test with a path.
6730 fi
6731 fi
6732
6733 LD=$lt_cv_path_LD
6734 if test -n "$LD"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6736 $as_echo "$LD" >&6; }
6737 else
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6740 fi
6741 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6743 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6744 if ${lt_cv_prog_gnu_ld+:} false; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6748 case `$LD -v 2>&1 </dev/null` in
6749 *GNU* | *'with BFD'*)
6750 lt_cv_prog_gnu_ld=yes
6751 ;;
6752 *)
6753 lt_cv_prog_gnu_ld=no
6754 ;;
6755 esac
6756 fi
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6758 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6759 with_gnu_ld=$lt_cv_prog_gnu_ld
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6770 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6771 if ${lt_cv_path_NM+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 if test -n "$NM"; then
6775 # Let the user override the test.
6776 lt_cv_path_NM=$NM
6777 else
6778 lt_nm_to_check=${ac_tool_prefix}nm
6779 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6780 lt_nm_to_check="$lt_nm_to_check nm"
6781 fi
6782 for lt_tmp_nm in $lt_nm_to_check; do
6783 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6784 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6785 IFS=$lt_save_ifs
6786 test -z "$ac_dir" && ac_dir=.
6787 tmp_nm=$ac_dir/$lt_tmp_nm
6788 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6789 # Check to see if the nm accepts a BSD-compat flag.
6790 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6791 # nm: unknown option "B" ignored
6792 # Tru64's nm complains that /dev/null is an invalid object file
6793 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6794 case $build_os in
6795 mingw*) lt_bad_file=conftest.nm/nofile ;;
6796 *) lt_bad_file=/dev/null ;;
6797 esac
6798 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6799 *$lt_bad_file* | *'Invalid file or object type'*)
6800 lt_cv_path_NM="$tmp_nm -B"
6801 break 2
6802 ;;
6803 *)
6804 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6805 */dev/null*)
6806 lt_cv_path_NM="$tmp_nm -p"
6807 break 2
6808 ;;
6809 *)
6810 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6811 continue # so that we can try to find one that supports BSD flags
6812 ;;
6813 esac
6814 ;;
6815 esac
6816 fi
6817 done
6818 IFS=$lt_save_ifs
6819 done
6820 : ${lt_cv_path_NM=no}
6821 fi
6822 fi
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6824 $as_echo "$lt_cv_path_NM" >&6; }
6825 if test no != "$lt_cv_path_NM"; then
6826 NM=$lt_cv_path_NM
6827 else
6828 # Didn't find any BSD compatible name lister, look for dumpbin.
6829 if test -n "$DUMPBIN"; then :
6830 # Let the user override the test.
6831 else
6832 if test -n "$ac_tool_prefix"; then
6833 for ac_prog in dumpbin "link -dump"
6834 do
6835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6836 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if ${ac_cv_prog_DUMPBIN+:} false; then :
6840 $as_echo_n "(cached) " >&6
6841 else
6842 if test -n "$DUMPBIN"; then
6843 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6844 else
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 for as_dir in $PATH
6847 do
6848 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6852 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 break 2
6855 fi
6856 done
6857 done
6858 IFS=$as_save_IFS
6859
6860 fi
6861 fi
6862 DUMPBIN=$ac_cv_prog_DUMPBIN
6863 if test -n "$DUMPBIN"; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6865 $as_echo "$DUMPBIN" >&6; }
6866 else
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 $as_echo "no" >&6; }
6869 fi
6870
6871
6872 test -n "$DUMPBIN" && break
6873 done
6874 fi
6875 if test -z "$DUMPBIN"; then
6876 ac_ct_DUMPBIN=$DUMPBIN
6877 for ac_prog in dumpbin "link -dump"
6878 do
6879 # Extract the first word of "$ac_prog", so it can be a program name with args.
6880 set dummy $ac_prog; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 if test -n "$ac_ct_DUMPBIN"; then
6887 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6896 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900 done
6901 done
6902 IFS=$as_save_IFS
6903
6904 fi
6905 fi
6906 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6907 if test -n "$ac_ct_DUMPBIN"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6909 $as_echo "$ac_ct_DUMPBIN" >&6; }
6910 else
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6913 fi
6914
6915
6916 test -n "$ac_ct_DUMPBIN" && break
6917 done
6918
6919 if test "x$ac_ct_DUMPBIN" = x; then
6920 DUMPBIN=":"
6921 else
6922 case $cross_compiling:$ac_tool_warned in
6923 yes:)
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6926 ac_tool_warned=yes ;;
6927 esac
6928 DUMPBIN=$ac_ct_DUMPBIN
6929 fi
6930 fi
6931
6932 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6933 *COFF*)
6934 DUMPBIN="$DUMPBIN -symbols -headers"
6935 ;;
6936 *)
6937 DUMPBIN=:
6938 ;;
6939 esac
6940 fi
6941
6942 if test : != "$DUMPBIN"; then
6943 NM=$DUMPBIN
6944 fi
6945 fi
6946 test -z "$NM" && NM=nm
6947
6948
6949
6950
6951
6952
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6954 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6955 if ${lt_cv_nm_interface+:} false; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958 lt_cv_nm_interface="BSD nm"
6959 echo "int some_variable = 0;" > conftest.$ac_ext
6960 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6961 (eval "$ac_compile" 2>conftest.err)
6962 cat conftest.err >&5
6963 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6964 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6965 cat conftest.err >&5
6966 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6967 cat conftest.out >&5
6968 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6969 lt_cv_nm_interface="MS dumpbin"
6970 fi
6971 rm -f conftest*
6972 fi
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6974 $as_echo "$lt_cv_nm_interface" >&6; }
6975
6976 # find the maximum length of command line arguments
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6978 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6979 if ${lt_cv_sys_max_cmd_len+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 i=0
6983 teststring=ABCD
6984
6985 case $build_os in
6986 msdosdjgpp*)
6987 # On DJGPP, this test can blow up pretty badly due to problems in libc
6988 # (any single argument exceeding 2000 bytes causes a buffer overrun
6989 # during glob expansion). Even if it were fixed, the result of this
6990 # check would be larger than it should be.
6991 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6992 ;;
6993
6994 gnu*)
6995 # Under GNU Hurd, this test is not required because there is
6996 # no limit to the length of command line arguments.
6997 # Libtool will interpret -1 as no limit whatsoever
6998 lt_cv_sys_max_cmd_len=-1;
6999 ;;
7000
7001 cygwin* | mingw* | cegcc*)
7002 # On Win9x/ME, this test blows up -- it succeeds, but takes
7003 # about 5 minutes as the teststring grows exponentially.
7004 # Worse, since 9x/ME are not pre-emptively multitasking,
7005 # you end up with a "frozen" computer, even though with patience
7006 # the test eventually succeeds (with a max line length of 256k).
7007 # Instead, let's just punt: use the minimum linelength reported by
7008 # all of the supported platforms: 8192 (on NT/2K/XP).
7009 lt_cv_sys_max_cmd_len=8192;
7010 ;;
7011
7012 mint*)
7013 # On MiNT this can take a long time and run out of memory.
7014 lt_cv_sys_max_cmd_len=8192;
7015 ;;
7016
7017 amigaos*)
7018 # On AmigaOS with pdksh, this test takes hours, literally.
7019 # So we just punt and use a minimum line length of 8192.
7020 lt_cv_sys_max_cmd_len=8192;
7021 ;;
7022
7023 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7024 # This has been around since 386BSD, at least. Likely further.
7025 if test -x /sbin/sysctl; then
7026 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7027 elif test -x /usr/sbin/sysctl; then
7028 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7029 else
7030 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7031 fi
7032 # And add a safety zone
7033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7035 ;;
7036
7037 interix*)
7038 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7039 lt_cv_sys_max_cmd_len=196608
7040 ;;
7041
7042 os2*)
7043 # The test takes a long time on OS/2.
7044 lt_cv_sys_max_cmd_len=8192
7045 ;;
7046
7047 osf*)
7048 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7049 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7050 # nice to cause kernel panics so lets avoid the loop below.
7051 # First set a reasonable default.
7052 lt_cv_sys_max_cmd_len=16384
7053 #
7054 if test -x /sbin/sysconfig; then
7055 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7056 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7057 esac
7058 fi
7059 ;;
7060 sco3.2v5*)
7061 lt_cv_sys_max_cmd_len=102400
7062 ;;
7063 sysv5* | sco5v6* | sysv4.2uw2*)
7064 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7065 if test -n "$kargmax"; then
7066 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7067 else
7068 lt_cv_sys_max_cmd_len=32768
7069 fi
7070 ;;
7071 *)
7072 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7073 if test -n "$lt_cv_sys_max_cmd_len" && \
7074 test undefined != "$lt_cv_sys_max_cmd_len"; then
7075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7076 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7077 else
7078 # Make teststring a little bigger before we do anything with it.
7079 # a 1K string should be a reasonable start.
7080 for i in 1 2 3 4 5 6 7 8; do
7081 teststring=$teststring$teststring
7082 done
7083 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7084 # If test is not a shell built-in, we'll probably end up computing a
7085 # maximum length that is only half of the actual maximum length, but
7086 # we can't tell.
7087 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7088 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7089 test 17 != "$i" # 1/2 MB should be enough
7090 do
7091 i=`expr $i + 1`
7092 teststring=$teststring$teststring
7093 done
7094 # Only check the string length outside the loop.
7095 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7096 teststring=
7097 # Add a significant safety factor because C++ compilers can tack on
7098 # massive amounts of additional arguments before passing them to the
7099 # linker. It appears as though 1/2 is a usable value.
7100 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7101 fi
7102 ;;
7103 esac
7104
7105 fi
7106
7107 if test -n "$lt_cv_sys_max_cmd_len"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7109 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7110 else
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7112 $as_echo "none" >&6; }
7113 fi
7114 max_cmd_len=$lt_cv_sys_max_cmd_len
7115
7116
7117
7118
7119
7120
7121 : ${CP="cp -f"}
7122 : ${MV="mv -f"}
7123 : ${RM="rm -f"}
7124
7125 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7126 lt_unset=unset
7127 else
7128 lt_unset=false
7129 fi
7130
7131
7132
7133
7134
7135 # test EBCDIC or ASCII
7136 case `echo X|tr X '\101'` in
7137 A) # ASCII based system
7138 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7139 lt_SP2NL='tr \040 \012'
7140 lt_NL2SP='tr \015\012 \040\040'
7141 ;;
7142 *) # EBCDIC based system
7143 lt_SP2NL='tr \100 \n'
7144 lt_NL2SP='tr \r\n \100\100'
7145 ;;
7146 esac
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7157 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7158 if ${lt_cv_to_host_file_cmd+:} false; then :
7159 $as_echo_n "(cached) " >&6
7160 else
7161 case $host in
7162 *-*-mingw* )
7163 case $build in
7164 *-*-mingw* ) # actually msys
7165 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7166 ;;
7167 *-*-cygwin* )
7168 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7169 ;;
7170 * ) # otherwise, assume *nix
7171 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7172 ;;
7173 esac
7174 ;;
7175 *-*-cygwin* )
7176 case $build in
7177 *-*-mingw* ) # actually msys
7178 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7179 ;;
7180 *-*-cygwin* )
7181 lt_cv_to_host_file_cmd=func_convert_file_noop
7182 ;;
7183 * ) # otherwise, assume *nix
7184 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7185 ;;
7186 esac
7187 ;;
7188 * ) # unhandled hosts (and "normal" native builds)
7189 lt_cv_to_host_file_cmd=func_convert_file_noop
7190 ;;
7191 esac
7192
7193 fi
7194
7195 to_host_file_cmd=$lt_cv_to_host_file_cmd
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7197 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7198
7199
7200
7201
7202
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7204 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7205 if ${lt_cv_to_tool_file_cmd+:} false; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7208 #assume ordinary cross tools, or native build.
7209 lt_cv_to_tool_file_cmd=func_convert_file_noop
7210 case $host in
7211 *-*-mingw* )
7212 case $build in
7213 *-*-mingw* ) # actually msys
7214 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7215 ;;
7216 esac
7217 ;;
7218 esac
7219
7220 fi
7221
7222 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7224 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7225
7226
7227
7228
7229
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7231 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7232 if ${lt_cv_ld_reload_flag+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 lt_cv_ld_reload_flag='-r'
7236 fi
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7238 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7239 reload_flag=$lt_cv_ld_reload_flag
7240 case $reload_flag in
7241 "" | " "*) ;;
7242 *) reload_flag=" $reload_flag" ;;
7243 esac
7244 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7245 case $host_os in
7246 cygwin* | mingw* | pw32* | cegcc*)
7247 if test yes != "$GCC"; then
7248 reload_cmds=false
7249 fi
7250 ;;
7251 darwin*)
7252 if test yes = "$GCC"; then
7253 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7254 else
7255 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7256 fi
7257 ;;
7258 esac
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268 if test -n "$ac_tool_prefix"; then
7269 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7270 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272 $as_echo_n "checking for $ac_word... " >&6; }
7273 if ${ac_cv_prog_OBJDUMP+:} false; then :
7274 $as_echo_n "(cached) " >&6
7275 else
7276 if test -n "$OBJDUMP"; then
7277 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7278 else
7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 for as_dir in $PATH
7281 do
7282 IFS=$as_save_IFS
7283 test -z "$as_dir" && as_dir=.
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 break 2
7289 fi
7290 done
7291 done
7292 IFS=$as_save_IFS
7293
7294 fi
7295 fi
7296 OBJDUMP=$ac_cv_prog_OBJDUMP
7297 if test -n "$OBJDUMP"; then
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7299 $as_echo "$OBJDUMP" >&6; }
7300 else
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302 $as_echo "no" >&6; }
7303 fi
7304
7305
7306 fi
7307 if test -z "$ac_cv_prog_OBJDUMP"; then
7308 ac_ct_OBJDUMP=$OBJDUMP
7309 # Extract the first word of "objdump", so it can be a program name with args.
7310 set dummy objdump; ac_word=$2
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312 $as_echo_n "checking for $ac_word... " >&6; }
7313 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7314 $as_echo_n "(cached) " >&6
7315 else
7316 if test -n "$ac_ct_OBJDUMP"; then
7317 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 break 2
7329 fi
7330 done
7331 done
7332 IFS=$as_save_IFS
7333
7334 fi
7335 fi
7336 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7337 if test -n "$ac_ct_OBJDUMP"; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7339 $as_echo "$ac_ct_OBJDUMP" >&6; }
7340 else
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7343 fi
7344
7345 if test "x$ac_ct_OBJDUMP" = x; then
7346 OBJDUMP="false"
7347 else
7348 case $cross_compiling:$ac_tool_warned in
7349 yes:)
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7352 ac_tool_warned=yes ;;
7353 esac
7354 OBJDUMP=$ac_ct_OBJDUMP
7355 fi
7356 else
7357 OBJDUMP="$ac_cv_prog_OBJDUMP"
7358 fi
7359
7360 test -z "$OBJDUMP" && OBJDUMP=objdump
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7371 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7372 if ${lt_cv_deplibs_check_method+:} false; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 lt_cv_file_magic_cmd='$MAGIC_CMD'
7376 lt_cv_file_magic_test_file=
7377 lt_cv_deplibs_check_method='unknown'
7378 # Need to set the preceding variable on all platforms that support
7379 # interlibrary dependencies.
7380 # 'none' -- dependencies not supported.
7381 # 'unknown' -- same as none, but documents that we really don't know.
7382 # 'pass_all' -- all dependencies passed with no checks.
7383 # 'test_compile' -- check by making test program.
7384 # 'file_magic [[regex]]' -- check by looking for files in library path
7385 # that responds to the $file_magic_cmd with a given extended regex.
7386 # If you have 'file' or equivalent on your system and you're not sure
7387 # whether 'pass_all' will *always* work, you probably want this one.
7388
7389 case $host_os in
7390 aix[4-9]*)
7391 lt_cv_deplibs_check_method=pass_all
7392 ;;
7393
7394 beos*)
7395 lt_cv_deplibs_check_method=pass_all
7396 ;;
7397
7398 bsdi[45]*)
7399 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7400 lt_cv_file_magic_cmd='/usr/bin/file -L'
7401 lt_cv_file_magic_test_file=/shlib/libc.so
7402 ;;
7403
7404 cygwin*)
7405 # func_win32_libid is a shell function defined in ltmain.sh
7406 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7407 lt_cv_file_magic_cmd='func_win32_libid'
7408 ;;
7409
7410 mingw* | pw32*)
7411 # Base MSYS/MinGW do not provide the 'file' command needed by
7412 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7413 # unless we find 'file', for example because we are cross-compiling.
7414 if ( file / ) >/dev/null 2>&1; then
7415 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7416 lt_cv_file_magic_cmd='func_win32_libid'
7417 else
7418 # Keep this pattern in sync with the one in func_win32_libid.
7419 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7420 lt_cv_file_magic_cmd='$OBJDUMP -f'
7421 fi
7422 ;;
7423
7424 cegcc*)
7425 # use the weaker test based on 'objdump'. See mingw*.
7426 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7427 lt_cv_file_magic_cmd='$OBJDUMP -f'
7428 ;;
7429
7430 darwin* | rhapsody*)
7431 lt_cv_deplibs_check_method=pass_all
7432 ;;
7433
7434 freebsd* | dragonfly*)
7435 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7436 case $host_cpu in
7437 i*86 )
7438 # Not sure whether the presence of OpenBSD here was a mistake.
7439 # Let's accept both of them until this is cleared up.
7440 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7441 lt_cv_file_magic_cmd=/usr/bin/file
7442 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7443 ;;
7444 esac
7445 else
7446 lt_cv_deplibs_check_method=pass_all
7447 fi
7448 ;;
7449
7450 haiku*)
7451 lt_cv_deplibs_check_method=pass_all
7452 ;;
7453
7454 hpux10.20* | hpux11*)
7455 lt_cv_file_magic_cmd=/usr/bin/file
7456 case $host_cpu in
7457 ia64*)
7458 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7459 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7460 ;;
7461 hppa*64*)
7462 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7463 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7464 ;;
7465 *)
7466 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7467 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7468 ;;
7469 esac
7470 ;;
7471
7472 interix[3-9]*)
7473 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7475 ;;
7476
7477 irix5* | irix6* | nonstopux*)
7478 case $LD in
7479 *-32|*"-32 ") libmagic=32-bit;;
7480 *-n32|*"-n32 ") libmagic=N32;;
7481 *-64|*"-64 ") libmagic=64-bit;;
7482 *) libmagic=never-match;;
7483 esac
7484 lt_cv_deplibs_check_method=pass_all
7485 ;;
7486
7487 # This must be glibc/ELF.
7488 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7489 lt_cv_deplibs_check_method=pass_all
7490 ;;
7491
7492 netbsd*)
7493 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7495 else
7496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7497 fi
7498 ;;
7499
7500 newos6*)
7501 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7502 lt_cv_file_magic_cmd=/usr/bin/file
7503 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7504 ;;
7505
7506 *nto* | *qnx*)
7507 lt_cv_deplibs_check_method=pass_all
7508 ;;
7509
7510 openbsd* | bitrig*)
7511 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7513 else
7514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7515 fi
7516 ;;
7517
7518 osf3* | osf4* | osf5*)
7519 lt_cv_deplibs_check_method=pass_all
7520 ;;
7521
7522 rdos*)
7523 lt_cv_deplibs_check_method=pass_all
7524 ;;
7525
7526 solaris*)
7527 lt_cv_deplibs_check_method=pass_all
7528 ;;
7529
7530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7531 lt_cv_deplibs_check_method=pass_all
7532 ;;
7533
7534 sysv4 | sysv4.3*)
7535 case $host_vendor in
7536 motorola)
7537 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]'
7538 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7539 ;;
7540 ncr)
7541 lt_cv_deplibs_check_method=pass_all
7542 ;;
7543 sequent)
7544 lt_cv_file_magic_cmd='/bin/file'
7545 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7546 ;;
7547 sni)
7548 lt_cv_file_magic_cmd='/bin/file'
7549 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7550 lt_cv_file_magic_test_file=/lib/libc.so
7551 ;;
7552 siemens)
7553 lt_cv_deplibs_check_method=pass_all
7554 ;;
7555 pc)
7556 lt_cv_deplibs_check_method=pass_all
7557 ;;
7558 esac
7559 ;;
7560
7561 tpf*)
7562 lt_cv_deplibs_check_method=pass_all
7563 ;;
7564 os2*)
7565 lt_cv_deplibs_check_method=pass_all
7566 ;;
7567 esac
7568
7569 fi
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7571 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7572
7573 file_magic_glob=
7574 want_nocaseglob=no
7575 if test "$build" = "$host"; then
7576 case $host_os in
7577 mingw* | pw32*)
7578 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7579 want_nocaseglob=yes
7580 else
7581 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7582 fi
7583 ;;
7584 esac
7585 fi
7586
7587 file_magic_cmd=$lt_cv_file_magic_cmd
7588 deplibs_check_method=$lt_cv_deplibs_check_method
7589 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612 if test -n "$ac_tool_prefix"; then
7613 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7614 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if ${ac_cv_prog_DLLTOOL+:} false; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 if test -n "$DLLTOOL"; then
7621 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7622 else
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7625 do
7626 IFS=$as_save_IFS
7627 test -z "$as_dir" && as_dir=.
7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7630 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 break 2
7633 fi
7634 done
7635 done
7636 IFS=$as_save_IFS
7637
7638 fi
7639 fi
7640 DLLTOOL=$ac_cv_prog_DLLTOOL
7641 if test -n "$DLLTOOL"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7643 $as_echo "$DLLTOOL" >&6; }
7644 else
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7647 fi
7648
7649
7650 fi
7651 if test -z "$ac_cv_prog_DLLTOOL"; then
7652 ac_ct_DLLTOOL=$DLLTOOL
7653 # Extract the first word of "dlltool", so it can be a program name with args.
7654 set dummy dlltool; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 if test -n "$ac_ct_DLLTOOL"; then
7661 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7662 else
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7665 do
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7670 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 break 2
7673 fi
7674 done
7675 done
7676 IFS=$as_save_IFS
7677
7678 fi
7679 fi
7680 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7681 if test -n "$ac_ct_DLLTOOL"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7683 $as_echo "$ac_ct_DLLTOOL" >&6; }
7684 else
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7687 fi
7688
7689 if test "x$ac_ct_DLLTOOL" = x; then
7690 DLLTOOL="false"
7691 else
7692 case $cross_compiling:$ac_tool_warned in
7693 yes:)
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7696 ac_tool_warned=yes ;;
7697 esac
7698 DLLTOOL=$ac_ct_DLLTOOL
7699 fi
7700 else
7701 DLLTOOL="$ac_cv_prog_DLLTOOL"
7702 fi
7703
7704 test -z "$DLLTOOL" && DLLTOOL=dlltool
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7716 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7717 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 lt_cv_sharedlib_from_linklib_cmd='unknown'
7721
7722 case $host_os in
7723 cygwin* | mingw* | pw32* | cegcc*)
7724 # two different shell functions defined in ltmain.sh;
7725 # decide which one to use based on capabilities of $DLLTOOL
7726 case `$DLLTOOL --help 2>&1` in
7727 *--identify-strict*)
7728 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7729 ;;
7730 *)
7731 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7732 ;;
7733 esac
7734 ;;
7735 *)
7736 # fallback: assume linklib IS sharedlib
7737 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7738 ;;
7739 esac
7740
7741 fi
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7743 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7744 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7745 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7746
7747
7748
7749
7750
7751
7752
7753
7754 if test -n "$ac_tool_prefix"; then
7755 for ac_prog in ar
7756 do
7757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if ${ac_cv_prog_AR+:} false; then :
7762 $as_echo_n "(cached) " >&6
7763 else
7764 if test -n "$AR"; then
7765 ac_cv_prog_AR="$AR" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7769 do
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7777 fi
7778 done
7779 done
7780 IFS=$as_save_IFS
7781
7782 fi
7783 fi
7784 AR=$ac_cv_prog_AR
7785 if test -n "$AR"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7787 $as_echo "$AR" >&6; }
7788 else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7791 fi
7792
7793
7794 test -n "$AR" && break
7795 done
7796 fi
7797 if test -z "$AR"; then
7798 ac_ct_AR=$AR
7799 for ac_prog in ar
7800 do
7801 # Extract the first word of "$ac_prog", so it can be a program name with args.
7802 set dummy $ac_prog; ac_word=$2
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804 $as_echo_n "checking for $ac_word... " >&6; }
7805 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 if test -n "$ac_ct_AR"; then
7809 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7810 else
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 for as_dir in $PATH
7813 do
7814 IFS=$as_save_IFS
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7818 ac_cv_prog_ac_ct_AR="$ac_prog"
7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 break 2
7821 fi
7822 done
7823 done
7824 IFS=$as_save_IFS
7825
7826 fi
7827 fi
7828 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7829 if test -n "$ac_ct_AR"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7831 $as_echo "$ac_ct_AR" >&6; }
7832 else
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7835 fi
7836
7837
7838 test -n "$ac_ct_AR" && break
7839 done
7840
7841 if test "x$ac_ct_AR" = x; then
7842 AR="false"
7843 else
7844 case $cross_compiling:$ac_tool_warned in
7845 yes:)
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7848 ac_tool_warned=yes ;;
7849 esac
7850 AR=$ac_ct_AR
7851 fi
7852 fi
7853
7854 : ${AR=ar}
7855 : ${AR_FLAGS=cru}
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7868 $as_echo_n "checking for archiver @FILE support... " >&6; }
7869 if ${lt_cv_ar_at_file+:} false; then :
7870 $as_echo_n "(cached) " >&6
7871 else
7872 lt_cv_ar_at_file=no
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7875
7876 int
7877 main ()
7878 {
7879
7880 ;
7881 return 0;
7882 }
7883 _ACEOF
7884 if ac_fn_c_try_compile "$LINENO"; then :
7885 echo conftest.$ac_objext > conftest.lst
7886 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7888 (eval $lt_ar_try) 2>&5
7889 ac_status=$?
7890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7891 test $ac_status = 0; }
7892 if test 0 -eq "$ac_status"; then
7893 # Ensure the archiver fails upon bogus file names.
7894 rm -f conftest.$ac_objext libconftest.a
7895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7896 (eval $lt_ar_try) 2>&5
7897 ac_status=$?
7898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7899 test $ac_status = 0; }
7900 if test 0 -ne "$ac_status"; then
7901 lt_cv_ar_at_file=@
7902 fi
7903 fi
7904 rm -f conftest.* libconftest.a
7905
7906 fi
7907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908
7909 fi
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7911 $as_echo "$lt_cv_ar_at_file" >&6; }
7912
7913 if test no = "$lt_cv_ar_at_file"; then
7914 archiver_list_spec=
7915 else
7916 archiver_list_spec=$lt_cv_ar_at_file
7917 fi
7918
7919
7920
7921
7922
7923
7924
7925 if test -n "$ac_tool_prefix"; then
7926 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7927 set dummy ${ac_tool_prefix}strip; ac_word=$2
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7929 $as_echo_n "checking for $ac_word... " >&6; }
7930 if ${ac_cv_prog_STRIP+:} false; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7933 if test -n "$STRIP"; then
7934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7935 else
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937 for as_dir in $PATH
7938 do
7939 IFS=$as_save_IFS
7940 test -z "$as_dir" && as_dir=.
7941 for ac_exec_ext in '' $ac_executable_extensions; do
7942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7943 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7945 break 2
7946 fi
7947 done
7948 done
7949 IFS=$as_save_IFS
7950
7951 fi
7952 fi
7953 STRIP=$ac_cv_prog_STRIP
7954 if test -n "$STRIP"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7956 $as_echo "$STRIP" >&6; }
7957 else
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7960 fi
7961
7962
7963 fi
7964 if test -z "$ac_cv_prog_STRIP"; then
7965 ac_ct_STRIP=$STRIP
7966 # Extract the first word of "strip", so it can be a program name with args.
7967 set dummy strip; ac_word=$2
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969 $as_echo_n "checking for $ac_word... " >&6; }
7970 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 if test -n "$ac_ct_STRIP"; then
7974 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7975 else
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 for as_dir in $PATH
7978 do
7979 IFS=$as_save_IFS
7980 test -z "$as_dir" && as_dir=.
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7983 ac_cv_prog_ac_ct_STRIP="strip"
7984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 break 2
7986 fi
7987 done
7988 done
7989 IFS=$as_save_IFS
7990
7991 fi
7992 fi
7993 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7994 if test -n "$ac_ct_STRIP"; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7996 $as_echo "$ac_ct_STRIP" >&6; }
7997 else
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999 $as_echo "no" >&6; }
8000 fi
8001
8002 if test "x$ac_ct_STRIP" = x; then
8003 STRIP=":"
8004 else
8005 case $cross_compiling:$ac_tool_warned in
8006 yes:)
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8009 ac_tool_warned=yes ;;
8010 esac
8011 STRIP=$ac_ct_STRIP
8012 fi
8013 else
8014 STRIP="$ac_cv_prog_STRIP"
8015 fi
8016
8017 test -z "$STRIP" && STRIP=:
8018
8019
8020
8021
8022
8023
8024 if test -n "$ac_tool_prefix"; then
8025 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028 $as_echo_n "checking for $ac_word... " >&6; }
8029 if ${ac_cv_prog_RANLIB+:} false; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 if test -n "$RANLIB"; then
8033 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8034 else
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8037 do
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8042 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 break 2
8045 fi
8046 done
8047 done
8048 IFS=$as_save_IFS
8049
8050 fi
8051 fi
8052 RANLIB=$ac_cv_prog_RANLIB
8053 if test -n "$RANLIB"; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8055 $as_echo "$RANLIB" >&6; }
8056 else
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 $as_echo "no" >&6; }
8059 fi
8060
8061
8062 fi
8063 if test -z "$ac_cv_prog_RANLIB"; then
8064 ac_ct_RANLIB=$RANLIB
8065 # Extract the first word of "ranlib", so it can be a program name with args.
8066 set dummy ranlib; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 if test -n "$ac_ct_RANLIB"; then
8073 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_ac_ct_RANLIB="ranlib"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086 done
8087 done
8088 IFS=$as_save_IFS
8089
8090 fi
8091 fi
8092 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8093 if test -n "$ac_ct_RANLIB"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8095 $as_echo "$ac_ct_RANLIB" >&6; }
8096 else
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8099 fi
8100
8101 if test "x$ac_ct_RANLIB" = x; then
8102 RANLIB=":"
8103 else
8104 case $cross_compiling:$ac_tool_warned in
8105 yes:)
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8108 ac_tool_warned=yes ;;
8109 esac
8110 RANLIB=$ac_ct_RANLIB
8111 fi
8112 else
8113 RANLIB="$ac_cv_prog_RANLIB"
8114 fi
8115
8116 test -z "$RANLIB" && RANLIB=:
8117
8118
8119
8120
8121
8122
8123 # Determine commands to create old-style static archives.
8124 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8125 old_postinstall_cmds='chmod 644 $oldlib'
8126 old_postuninstall_cmds=
8127
8128 if test -n "$RANLIB"; then
8129 case $host_os in
8130 bitrig* | openbsd*)
8131 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8132 ;;
8133 *)
8134 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8135 ;;
8136 esac
8137 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8138 fi
8139
8140 case $host_os in
8141 darwin*)
8142 lock_old_archive_extraction=yes ;;
8143 *)
8144 lock_old_archive_extraction=no ;;
8145 esac
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185 # If no C compiler was specified, use CC.
8186 LTCC=${LTCC-"$CC"}
8187
8188 # If no C compiler flags were specified, use CFLAGS.
8189 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8190
8191 # Allow CC to be a program name with arguments.
8192 compiler=$CC
8193
8194
8195 # Check for command to grab the raw symbol name followed by C symbol from nm.
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8197 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8198 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201
8202 # These are sane defaults that work on at least a few old systems.
8203 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8204
8205 # Character class describing NM global symbol codes.
8206 symcode='[BCDEGRST]'
8207
8208 # Regexp to match symbols that can be accessed directly from C.
8209 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8210
8211 # Define system-specific variables.
8212 case $host_os in
8213 aix*)
8214 symcode='[BCDT]'
8215 ;;
8216 cygwin* | mingw* | pw32* | cegcc*)
8217 symcode='[ABCDGISTW]'
8218 ;;
8219 hpux*)
8220 if test ia64 = "$host_cpu"; then
8221 symcode='[ABCDEGRST]'
8222 fi
8223 ;;
8224 irix* | nonstopux*)
8225 symcode='[BCDEGRST]'
8226 ;;
8227 osf*)
8228 symcode='[BCDEGQRST]'
8229 ;;
8230 solaris*)
8231 symcode='[BDRT]'
8232 ;;
8233 sco3.2v5*)
8234 symcode='[DT]'
8235 ;;
8236 sysv4.2uw2*)
8237 symcode='[DT]'
8238 ;;
8239 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8240 symcode='[ABDT]'
8241 ;;
8242 sysv4)
8243 symcode='[DFNSTU]'
8244 ;;
8245 esac
8246
8247 # If we're using GNU nm, then use its standard symbol codes.
8248 case `$NM -V 2>&1` in
8249 *GNU* | *'with BFD'*)
8250 symcode='[ABCDGIRSTW]' ;;
8251 esac
8252
8253 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8254 # Gets list of data symbols to import.
8255 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8256 # Adjust the below global symbol transforms to fixup imported variables.
8257 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8258 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8259 lt_c_name_lib_hook="\
8260 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8261 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8262 else
8263 # Disable hooks by default.
8264 lt_cv_sys_global_symbol_to_import=
8265 lt_cdecl_hook=
8266 lt_c_name_hook=
8267 lt_c_name_lib_hook=
8268 fi
8269
8270 # Transform an extracted symbol line into a proper C declaration.
8271 # Some systems (esp. on ia64) link data and code symbols differently,
8272 # so use this general approach.
8273 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8274 $lt_cdecl_hook\
8275 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8276 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8277
8278 # Transform an extracted symbol line into symbol name and symbol address
8279 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8280 $lt_c_name_hook\
8281 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8282 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8283
8284 # Transform an extracted symbol line into symbol name with lib prefix and
8285 # symbol address.
8286 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8287 $lt_c_name_lib_hook\
8288 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8289 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8290 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8291
8292 # Handle CRLF in mingw tool chain
8293 opt_cr=
8294 case $build_os in
8295 mingw*)
8296 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8297 ;;
8298 esac
8299
8300 # Try without a prefix underscore, then with it.
8301 for ac_symprfx in "" "_"; do
8302
8303 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8304 symxfrm="\\1 $ac_symprfx\\2 \\2"
8305
8306 # Write the raw and C identifiers.
8307 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8308 # Fake it for dumpbin and say T for any non-static function,
8309 # D for any global variable and I for any imported variable.
8310 # Also find C++ and __fastcall symbols from MSVC++,
8311 # which start with @ or ?.
8312 lt_cv_sys_global_symbol_pipe="$AWK '"\
8313 " {last_section=section; section=\$ 3};"\
8314 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8315 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8316 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8317 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8318 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8319 " \$ 0!~/External *\|/{next};"\
8320 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8321 " {if(hide[section]) next};"\
8322 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8323 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8324 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8325 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8326 " ' prfx=^$ac_symprfx"
8327 else
8328 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8329 fi
8330 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8331
8332 # Check to see that the pipe works correctly.
8333 pipe_works=no
8334
8335 rm -f conftest*
8336 cat > conftest.$ac_ext <<_LT_EOF
8337 #ifdef __cplusplus
8338 extern "C" {
8339 #endif
8340 char nm_test_var;
8341 void nm_test_func(void);
8342 void nm_test_func(void){}
8343 #ifdef __cplusplus
8344 }
8345 #endif
8346 int main(){nm_test_var='a';nm_test_func();return(0);}
8347 _LT_EOF
8348
8349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8350 (eval $ac_compile) 2>&5
8351 ac_status=$?
8352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8353 test $ac_status = 0; }; then
8354 # Now try to grab the symbols.
8355 nlist=conftest.nm
8356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8357 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8358 ac_status=$?
8359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8360 test $ac_status = 0; } && test -s "$nlist"; then
8361 # Try sorting and uniquifying the output.
8362 if sort "$nlist" | uniq > "$nlist"T; then
8363 mv -f "$nlist"T "$nlist"
8364 else
8365 rm -f "$nlist"T
8366 fi
8367
8368 # Make sure that we snagged all the symbols we need.
8369 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8370 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8371 cat <<_LT_EOF > conftest.$ac_ext
8372 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8373 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8374 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8375 relocations are performed -- see ld's documentation on pseudo-relocs. */
8376 # define LT_DLSYM_CONST
8377 #elif defined __osf__
8378 /* This system does not cope well with relocations in const data. */
8379 # define LT_DLSYM_CONST
8380 #else
8381 # define LT_DLSYM_CONST const
8382 #endif
8383
8384 #ifdef __cplusplus
8385 extern "C" {
8386 #endif
8387
8388 _LT_EOF
8389 # Now generate the symbol file.
8390 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8391
8392 cat <<_LT_EOF >> conftest.$ac_ext
8393
8394 /* The mapping between symbol names and symbols. */
8395 LT_DLSYM_CONST struct {
8396 const char *name;
8397 void *address;
8398 }
8399 lt__PROGRAM__LTX_preloaded_symbols[] =
8400 {
8401 { "@PROGRAM@", (void *) 0 },
8402 _LT_EOF
8403 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8404 cat <<\_LT_EOF >> conftest.$ac_ext
8405 {0, (void *) 0}
8406 };
8407
8408 /* This works around a problem in FreeBSD linker */
8409 #ifdef FREEBSD_WORKAROUND
8410 static const void *lt_preloaded_setup() {
8411 return lt__PROGRAM__LTX_preloaded_symbols;
8412 }
8413 #endif
8414
8415 #ifdef __cplusplus
8416 }
8417 #endif
8418 _LT_EOF
8419 # Now try linking the two files.
8420 mv conftest.$ac_objext conftstm.$ac_objext
8421 lt_globsym_save_LIBS=$LIBS
8422 lt_globsym_save_CFLAGS=$CFLAGS
8423 LIBS=conftstm.$ac_objext
8424 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8426 (eval $ac_link) 2>&5
8427 ac_status=$?
8428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8429 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8430 pipe_works=yes
8431 fi
8432 LIBS=$lt_globsym_save_LIBS
8433 CFLAGS=$lt_globsym_save_CFLAGS
8434 else
8435 echo "cannot find nm_test_func in $nlist" >&5
8436 fi
8437 else
8438 echo "cannot find nm_test_var in $nlist" >&5
8439 fi
8440 else
8441 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8442 fi
8443 else
8444 echo "$progname: failed program was:" >&5
8445 cat conftest.$ac_ext >&5
8446 fi
8447 rm -rf conftest* conftst*
8448
8449 # Do not use the global_symbol_pipe unless it works.
8450 if test yes = "$pipe_works"; then
8451 break
8452 else
8453 lt_cv_sys_global_symbol_pipe=
8454 fi
8455 done
8456
8457 fi
8458
8459 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8460 lt_cv_sys_global_symbol_to_cdecl=
8461 fi
8462 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8464 $as_echo "failed" >&6; }
8465 else
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8467 $as_echo "ok" >&6; }
8468 fi
8469
8470 # Response file support.
8471 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8472 nm_file_list_spec='@'
8473 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8474 nm_file_list_spec='@'
8475 fi
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8514 $as_echo_n "checking for sysroot... " >&6; }
8515
8516 # Check whether --with-sysroot was given.
8517 if test "${with_sysroot+set}" = set; then :
8518 withval=$with_sysroot;
8519 else
8520 with_sysroot=no
8521 fi
8522
8523
8524 lt_sysroot=
8525 case $with_sysroot in #(
8526 yes)
8527 if test yes = "$GCC"; then
8528 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8529 fi
8530 ;; #(
8531 /*)
8532 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8533 ;; #(
8534 no|'')
8535 ;; #(
8536 *)
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8538 $as_echo "$with_sysroot" >&6; }
8539 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8540 ;;
8541 esac
8542
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8544 $as_echo "${lt_sysroot:-no}" >&6; }
8545
8546
8547
8548
8549
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8551 $as_echo_n "checking for a working dd... " >&6; }
8552 if ${ac_cv_path_lt_DD+:} false; then :
8553 $as_echo_n "(cached) " >&6
8554 else
8555 printf 0123456789abcdef0123456789abcdef >conftest.i
8556 cat conftest.i conftest.i >conftest2.i
8557 : ${lt_DD:=$DD}
8558 if test -z "$lt_DD"; then
8559 ac_path_lt_DD_found=false
8560 # Loop through the user's path and test for each of PROGNAME-LIST
8561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562 for as_dir in $PATH
8563 do
8564 IFS=$as_save_IFS
8565 test -z "$as_dir" && as_dir=.
8566 for ac_prog in dd; do
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8569 as_fn_executable_p "$ac_path_lt_DD" || continue
8570 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8571 cmp -s conftest.i conftest.out \
8572 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8573 fi
8574 $ac_path_lt_DD_found && break 3
8575 done
8576 done
8577 done
8578 IFS=$as_save_IFS
8579 if test -z "$ac_cv_path_lt_DD"; then
8580 :
8581 fi
8582 else
8583 ac_cv_path_lt_DD=$lt_DD
8584 fi
8585
8586 rm -f conftest.i conftest2.i conftest.out
8587 fi
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8589 $as_echo "$ac_cv_path_lt_DD" >&6; }
8590
8591
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8593 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8594 if ${lt_cv_truncate_bin+:} false; then :
8595 $as_echo_n "(cached) " >&6
8596 else
8597 printf 0123456789abcdef0123456789abcdef >conftest.i
8598 cat conftest.i conftest.i >conftest2.i
8599 lt_cv_truncate_bin=
8600 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8601 cmp -s conftest.i conftest.out \
8602 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8603 fi
8604 rm -f conftest.i conftest2.i conftest.out
8605 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8606 fi
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8608 $as_echo "$lt_cv_truncate_bin" >&6; }
8609
8610
8611
8612
8613
8614
8615
8616 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8617 func_cc_basename ()
8618 {
8619 for cc_temp in $*""; do
8620 case $cc_temp in
8621 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8622 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8623 \-*) ;;
8624 *) break;;
8625 esac
8626 done
8627 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8628 }
8629
8630 # Check whether --enable-libtool-lock was given.
8631 if test "${enable_libtool_lock+set}" = set; then :
8632 enableval=$enable_libtool_lock;
8633 fi
8634
8635 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8636
8637 # Some flags need to be propagated to the compiler or linker for good
8638 # libtool support.
8639 case $host in
8640 ia64-*-hpux*)
8641 # Find out what ABI is being produced by ac_compile, and set mode
8642 # options accordingly.
8643 echo 'int i;' > conftest.$ac_ext
8644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8645 (eval $ac_compile) 2>&5
8646 ac_status=$?
8647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8648 test $ac_status = 0; }; then
8649 case `/usr/bin/file conftest.$ac_objext` in
8650 *ELF-32*)
8651 HPUX_IA64_MODE=32
8652 ;;
8653 *ELF-64*)
8654 HPUX_IA64_MODE=64
8655 ;;
8656 esac
8657 fi
8658 rm -rf conftest*
8659 ;;
8660 *-*-irix6*)
8661 # Find out what ABI is being produced by ac_compile, and set linker
8662 # options accordingly.
8663 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8665 (eval $ac_compile) 2>&5
8666 ac_status=$?
8667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8668 test $ac_status = 0; }; then
8669 if test yes = "$lt_cv_prog_gnu_ld"; then
8670 case `/usr/bin/file conftest.$ac_objext` in
8671 *32-bit*)
8672 LD="${LD-ld} -melf32bsmip"
8673 ;;
8674 *N32*)
8675 LD="${LD-ld} -melf32bmipn32"
8676 ;;
8677 *64-bit*)
8678 LD="${LD-ld} -melf64bmip"
8679 ;;
8680 esac
8681 else
8682 case `/usr/bin/file conftest.$ac_objext` in
8683 *32-bit*)
8684 LD="${LD-ld} -32"
8685 ;;
8686 *N32*)
8687 LD="${LD-ld} -n32"
8688 ;;
8689 *64-bit*)
8690 LD="${LD-ld} -64"
8691 ;;
8692 esac
8693 fi
8694 fi
8695 rm -rf conftest*
8696 ;;
8697
8698 mips64*-*linux*)
8699 # Find out what ABI is being produced by ac_compile, and set linker
8700 # options accordingly.
8701 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8703 (eval $ac_compile) 2>&5
8704 ac_status=$?
8705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8706 test $ac_status = 0; }; then
8707 emul=elf
8708 case `/usr/bin/file conftest.$ac_objext` in
8709 *32-bit*)
8710 emul="${emul}32"
8711 ;;
8712 *64-bit*)
8713 emul="${emul}64"
8714 ;;
8715 esac
8716 case `/usr/bin/file conftest.$ac_objext` in
8717 *MSB*)
8718 emul="${emul}btsmip"
8719 ;;
8720 *LSB*)
8721 emul="${emul}ltsmip"
8722 ;;
8723 esac
8724 case `/usr/bin/file conftest.$ac_objext` in
8725 *N32*)
8726 emul="${emul}n32"
8727 ;;
8728 esac
8729 LD="${LD-ld} -m $emul"
8730 fi
8731 rm -rf conftest*
8732 ;;
8733
8734 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8735 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8736 # Find out what ABI is being produced by ac_compile, and set linker
8737 # options accordingly. Note that the listed cases only cover the
8738 # situations where additional linker options are needed (such as when
8739 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8740 # vice versa); the common cases where no linker options are needed do
8741 # not appear in the list.
8742 echo 'int i;' > conftest.$ac_ext
8743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8744 (eval $ac_compile) 2>&5
8745 ac_status=$?
8746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8747 test $ac_status = 0; }; then
8748 case `/usr/bin/file conftest.o` in
8749 *32-bit*)
8750 case $host in
8751 x86_64-*kfreebsd*-gnu)
8752 LD="${LD-ld} -m elf_i386_fbsd"
8753 ;;
8754 x86_64-*linux*)
8755 case `/usr/bin/file conftest.o` in
8756 *x86-64*)
8757 LD="${LD-ld} -m elf32_x86_64"
8758 ;;
8759 *)
8760 LD="${LD-ld} -m elf_i386"
8761 ;;
8762 esac
8763 ;;
8764 powerpc64le-*linux*)
8765 LD="${LD-ld} -m elf32lppclinux"
8766 ;;
8767 powerpc64-*linux*)
8768 LD="${LD-ld} -m elf32ppclinux"
8769 ;;
8770 s390x-*linux*)
8771 LD="${LD-ld} -m elf_s390"
8772 ;;
8773 sparc64-*linux*)
8774 LD="${LD-ld} -m elf32_sparc"
8775 ;;
8776 esac
8777 ;;
8778 *64-bit*)
8779 case $host in
8780 x86_64-*kfreebsd*-gnu)
8781 LD="${LD-ld} -m elf_x86_64_fbsd"
8782 ;;
8783 x86_64-*linux*)
8784 LD="${LD-ld} -m elf_x86_64"
8785 ;;
8786 powerpcle-*linux*)
8787 LD="${LD-ld} -m elf64lppc"
8788 ;;
8789 powerpc-*linux*)
8790 LD="${LD-ld} -m elf64ppc"
8791 ;;
8792 s390*-*linux*|s390*-*tpf*)
8793 LD="${LD-ld} -m elf64_s390"
8794 ;;
8795 sparc*-*linux*)
8796 LD="${LD-ld} -m elf64_sparc"
8797 ;;
8798 esac
8799 ;;
8800 esac
8801 fi
8802 rm -rf conftest*
8803 ;;
8804
8805 *-*-sco3.2v5*)
8806 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8807 SAVE_CFLAGS=$CFLAGS
8808 CFLAGS="$CFLAGS -belf"
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8810 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8811 if ${lt_cv_cc_needs_belf+:} false; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 ac_ext=c
8815 ac_cpp='$CPP $CPPFLAGS'
8816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8819
8820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h. */
8822
8823 int
8824 main ()
8825 {
8826
8827 ;
8828 return 0;
8829 }
8830 _ACEOF
8831 if ac_fn_c_try_link "$LINENO"; then :
8832 lt_cv_cc_needs_belf=yes
8833 else
8834 lt_cv_cc_needs_belf=no
8835 fi
8836 rm -f core conftest.err conftest.$ac_objext \
8837 conftest$ac_exeext conftest.$ac_ext
8838 ac_ext=c
8839 ac_cpp='$CPP $CPPFLAGS'
8840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8843
8844 fi
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8846 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8847 if test yes != "$lt_cv_cc_needs_belf"; then
8848 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8849 CFLAGS=$SAVE_CFLAGS
8850 fi
8851 ;;
8852 *-*solaris*)
8853 # Find out what ABI is being produced by ac_compile, and set linker
8854 # options accordingly.
8855 echo 'int i;' > conftest.$ac_ext
8856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8857 (eval $ac_compile) 2>&5
8858 ac_status=$?
8859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8860 test $ac_status = 0; }; then
8861 case `/usr/bin/file conftest.o` in
8862 *64-bit*)
8863 case $lt_cv_prog_gnu_ld in
8864 yes*)
8865 case $host in
8866 i?86-*-solaris*|x86_64-*-solaris*)
8867 LD="${LD-ld} -m elf_x86_64"
8868 ;;
8869 sparc*-*-solaris*)
8870 LD="${LD-ld} -m elf64_sparc"
8871 ;;
8872 esac
8873 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8874 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8875 LD=${LD-ld}_sol2
8876 fi
8877 ;;
8878 *)
8879 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8880 LD="${LD-ld} -64"
8881 fi
8882 ;;
8883 esac
8884 ;;
8885 esac
8886 fi
8887 rm -rf conftest*
8888 ;;
8889 esac
8890
8891 need_locks=$enable_libtool_lock
8892
8893 if test -n "$ac_tool_prefix"; then
8894 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8895 set dummy ${ac_tool_prefix}mt; ac_word=$2
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8897 $as_echo_n "checking for $ac_word... " >&6; }
8898 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 if test -n "$MANIFEST_TOOL"; then
8902 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8903 else
8904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905 for as_dir in $PATH
8906 do
8907 IFS=$as_save_IFS
8908 test -z "$as_dir" && as_dir=.
8909 for ac_exec_ext in '' $ac_executable_extensions; do
8910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8911 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8913 break 2
8914 fi
8915 done
8916 done
8917 IFS=$as_save_IFS
8918
8919 fi
8920 fi
8921 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8922 if test -n "$MANIFEST_TOOL"; then
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8924 $as_echo "$MANIFEST_TOOL" >&6; }
8925 else
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8927 $as_echo "no" >&6; }
8928 fi
8929
8930
8931 fi
8932 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8933 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8934 # Extract the first word of "mt", so it can be a program name with args.
8935 set dummy mt; ac_word=$2
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8937 $as_echo_n "checking for $ac_word... " >&6; }
8938 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8939 $as_echo_n "(cached) " >&6
8940 else
8941 if test -n "$ac_ct_MANIFEST_TOOL"; then
8942 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8943 else
8944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 for as_dir in $PATH
8946 do
8947 IFS=$as_save_IFS
8948 test -z "$as_dir" && as_dir=.
8949 for ac_exec_ext in '' $ac_executable_extensions; do
8950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8951 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 break 2
8954 fi
8955 done
8956 done
8957 IFS=$as_save_IFS
8958
8959 fi
8960 fi
8961 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8962 if test -n "$ac_ct_MANIFEST_TOOL"; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8964 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8965 else
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8967 $as_echo "no" >&6; }
8968 fi
8969
8970 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8971 MANIFEST_TOOL=":"
8972 else
8973 case $cross_compiling:$ac_tool_warned in
8974 yes:)
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8977 ac_tool_warned=yes ;;
8978 esac
8979 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8980 fi
8981 else
8982 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8983 fi
8984
8985 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8987 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8988 if ${lt_cv_path_mainfest_tool+:} false; then :
8989 $as_echo_n "(cached) " >&6
8990 else
8991 lt_cv_path_mainfest_tool=no
8992 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8993 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8994 cat conftest.err >&5
8995 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8996 lt_cv_path_mainfest_tool=yes
8997 fi
8998 rm -f conftest*
8999 fi
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9001 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9002 if test yes != "$lt_cv_path_mainfest_tool"; then
9003 MANIFEST_TOOL=:
9004 fi
9005
9006
9007
9008
9009
9010
9011 case $host_os in
9012 rhapsody* | darwin*)
9013 if test -n "$ac_tool_prefix"; then
9014 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9015 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9017 $as_echo_n "checking for $ac_word... " >&6; }
9018 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9019 $as_echo_n "(cached) " >&6
9020 else
9021 if test -n "$DSYMUTIL"; then
9022 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9023 else
9024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9025 for as_dir in $PATH
9026 do
9027 IFS=$as_save_IFS
9028 test -z "$as_dir" && as_dir=.
9029 for ac_exec_ext in '' $ac_executable_extensions; do
9030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9031 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9033 break 2
9034 fi
9035 done
9036 done
9037 IFS=$as_save_IFS
9038
9039 fi
9040 fi
9041 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9042 if test -n "$DSYMUTIL"; then
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9044 $as_echo "$DSYMUTIL" >&6; }
9045 else
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9047 $as_echo "no" >&6; }
9048 fi
9049
9050
9051 fi
9052 if test -z "$ac_cv_prog_DSYMUTIL"; then
9053 ac_ct_DSYMUTIL=$DSYMUTIL
9054 # Extract the first word of "dsymutil", so it can be a program name with args.
9055 set dummy dsymutil; ac_word=$2
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9057 $as_echo_n "checking for $ac_word... " >&6; }
9058 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9059 $as_echo_n "(cached) " >&6
9060 else
9061 if test -n "$ac_ct_DSYMUTIL"; then
9062 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9063 else
9064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9065 for as_dir in $PATH
9066 do
9067 IFS=$as_save_IFS
9068 test -z "$as_dir" && as_dir=.
9069 for ac_exec_ext in '' $ac_executable_extensions; do
9070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9071 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9073 break 2
9074 fi
9075 done
9076 done
9077 IFS=$as_save_IFS
9078
9079 fi
9080 fi
9081 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9082 if test -n "$ac_ct_DSYMUTIL"; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9084 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9085 else
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }
9088 fi
9089
9090 if test "x$ac_ct_DSYMUTIL" = x; then
9091 DSYMUTIL=":"
9092 else
9093 case $cross_compiling:$ac_tool_warned in
9094 yes:)
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9097 ac_tool_warned=yes ;;
9098 esac
9099 DSYMUTIL=$ac_ct_DSYMUTIL
9100 fi
9101 else
9102 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9103 fi
9104
9105 if test -n "$ac_tool_prefix"; then
9106 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9107 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9109 $as_echo_n "checking for $ac_word... " >&6; }
9110 if ${ac_cv_prog_NMEDIT+:} false; then :
9111 $as_echo_n "(cached) " >&6
9112 else
9113 if test -n "$NMEDIT"; then
9114 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9115 else
9116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117 for as_dir in $PATH
9118 do
9119 IFS=$as_save_IFS
9120 test -z "$as_dir" && as_dir=.
9121 for ac_exec_ext in '' $ac_executable_extensions; do
9122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9123 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9125 break 2
9126 fi
9127 done
9128 done
9129 IFS=$as_save_IFS
9130
9131 fi
9132 fi
9133 NMEDIT=$ac_cv_prog_NMEDIT
9134 if test -n "$NMEDIT"; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9136 $as_echo "$NMEDIT" >&6; }
9137 else
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 $as_echo "no" >&6; }
9140 fi
9141
9142
9143 fi
9144 if test -z "$ac_cv_prog_NMEDIT"; then
9145 ac_ct_NMEDIT=$NMEDIT
9146 # Extract the first word of "nmedit", so it can be a program name with args.
9147 set dummy nmedit; ac_word=$2
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149 $as_echo_n "checking for $ac_word... " >&6; }
9150 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9151 $as_echo_n "(cached) " >&6
9152 else
9153 if test -n "$ac_ct_NMEDIT"; then
9154 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9155 else
9156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9157 for as_dir in $PATH
9158 do
9159 IFS=$as_save_IFS
9160 test -z "$as_dir" && as_dir=.
9161 for ac_exec_ext in '' $ac_executable_extensions; do
9162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9163 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9165 break 2
9166 fi
9167 done
9168 done
9169 IFS=$as_save_IFS
9170
9171 fi
9172 fi
9173 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9174 if test -n "$ac_ct_NMEDIT"; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9176 $as_echo "$ac_ct_NMEDIT" >&6; }
9177 else
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179 $as_echo "no" >&6; }
9180 fi
9181
9182 if test "x$ac_ct_NMEDIT" = x; then
9183 NMEDIT=":"
9184 else
9185 case $cross_compiling:$ac_tool_warned in
9186 yes:)
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9189 ac_tool_warned=yes ;;
9190 esac
9191 NMEDIT=$ac_ct_NMEDIT
9192 fi
9193 else
9194 NMEDIT="$ac_cv_prog_NMEDIT"
9195 fi
9196
9197 if test -n "$ac_tool_prefix"; then
9198 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9199 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201 $as_echo_n "checking for $ac_word... " >&6; }
9202 if ${ac_cv_prog_LIPO+:} false; then :
9203 $as_echo_n "(cached) " >&6
9204 else
9205 if test -n "$LIPO"; then
9206 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9207 else
9208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9209 for as_dir in $PATH
9210 do
9211 IFS=$as_save_IFS
9212 test -z "$as_dir" && as_dir=.
9213 for ac_exec_ext in '' $ac_executable_extensions; do
9214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9215 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9217 break 2
9218 fi
9219 done
9220 done
9221 IFS=$as_save_IFS
9222
9223 fi
9224 fi
9225 LIPO=$ac_cv_prog_LIPO
9226 if test -n "$LIPO"; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9228 $as_echo "$LIPO" >&6; }
9229 else
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9232 fi
9233
9234
9235 fi
9236 if test -z "$ac_cv_prog_LIPO"; then
9237 ac_ct_LIPO=$LIPO
9238 # Extract the first word of "lipo", so it can be a program name with args.
9239 set dummy lipo; ac_word=$2
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9241 $as_echo_n "checking for $ac_word... " >&6; }
9242 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9243 $as_echo_n "(cached) " >&6
9244 else
9245 if test -n "$ac_ct_LIPO"; then
9246 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9247 else
9248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249 for as_dir in $PATH
9250 do
9251 IFS=$as_save_IFS
9252 test -z "$as_dir" && as_dir=.
9253 for ac_exec_ext in '' $ac_executable_extensions; do
9254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9255 ac_cv_prog_ac_ct_LIPO="lipo"
9256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9257 break 2
9258 fi
9259 done
9260 done
9261 IFS=$as_save_IFS
9262
9263 fi
9264 fi
9265 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9266 if test -n "$ac_ct_LIPO"; then
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9268 $as_echo "$ac_ct_LIPO" >&6; }
9269 else
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271 $as_echo "no" >&6; }
9272 fi
9273
9274 if test "x$ac_ct_LIPO" = x; then
9275 LIPO=":"
9276 else
9277 case $cross_compiling:$ac_tool_warned in
9278 yes:)
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9281 ac_tool_warned=yes ;;
9282 esac
9283 LIPO=$ac_ct_LIPO
9284 fi
9285 else
9286 LIPO="$ac_cv_prog_LIPO"
9287 fi
9288
9289 if test -n "$ac_tool_prefix"; then
9290 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9291 set dummy ${ac_tool_prefix}otool; ac_word=$2
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9293 $as_echo_n "checking for $ac_word... " >&6; }
9294 if ${ac_cv_prog_OTOOL+:} false; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 if test -n "$OTOOL"; then
9298 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9299 else
9300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9301 for as_dir in $PATH
9302 do
9303 IFS=$as_save_IFS
9304 test -z "$as_dir" && as_dir=.
9305 for ac_exec_ext in '' $ac_executable_extensions; do
9306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9307 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9309 break 2
9310 fi
9311 done
9312 done
9313 IFS=$as_save_IFS
9314
9315 fi
9316 fi
9317 OTOOL=$ac_cv_prog_OTOOL
9318 if test -n "$OTOOL"; then
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9320 $as_echo "$OTOOL" >&6; }
9321 else
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323 $as_echo "no" >&6; }
9324 fi
9325
9326
9327 fi
9328 if test -z "$ac_cv_prog_OTOOL"; then
9329 ac_ct_OTOOL=$OTOOL
9330 # Extract the first word of "otool", so it can be a program name with args.
9331 set dummy otool; ac_word=$2
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9333 $as_echo_n "checking for $ac_word... " >&6; }
9334 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9335 $as_echo_n "(cached) " >&6
9336 else
9337 if test -n "$ac_ct_OTOOL"; then
9338 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9339 else
9340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9341 for as_dir in $PATH
9342 do
9343 IFS=$as_save_IFS
9344 test -z "$as_dir" && as_dir=.
9345 for ac_exec_ext in '' $ac_executable_extensions; do
9346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9347 ac_cv_prog_ac_ct_OTOOL="otool"
9348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9349 break 2
9350 fi
9351 done
9352 done
9353 IFS=$as_save_IFS
9354
9355 fi
9356 fi
9357 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9358 if test -n "$ac_ct_OTOOL"; then
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9360 $as_echo "$ac_ct_OTOOL" >&6; }
9361 else
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9363 $as_echo "no" >&6; }
9364 fi
9365
9366 if test "x$ac_ct_OTOOL" = x; then
9367 OTOOL=":"
9368 else
9369 case $cross_compiling:$ac_tool_warned in
9370 yes:)
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9373 ac_tool_warned=yes ;;
9374 esac
9375 OTOOL=$ac_ct_OTOOL
9376 fi
9377 else
9378 OTOOL="$ac_cv_prog_OTOOL"
9379 fi
9380
9381 if test -n "$ac_tool_prefix"; then
9382 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9383 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385 $as_echo_n "checking for $ac_word... " >&6; }
9386 if ${ac_cv_prog_OTOOL64+:} false; then :
9387 $as_echo_n "(cached) " >&6
9388 else
9389 if test -n "$OTOOL64"; then
9390 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9391 else
9392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393 for as_dir in $PATH
9394 do
9395 IFS=$as_save_IFS
9396 test -z "$as_dir" && as_dir=.
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9399 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9401 break 2
9402 fi
9403 done
9404 done
9405 IFS=$as_save_IFS
9406
9407 fi
9408 fi
9409 OTOOL64=$ac_cv_prog_OTOOL64
9410 if test -n "$OTOOL64"; then
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9412 $as_echo "$OTOOL64" >&6; }
9413 else
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415 $as_echo "no" >&6; }
9416 fi
9417
9418
9419 fi
9420 if test -z "$ac_cv_prog_OTOOL64"; then
9421 ac_ct_OTOOL64=$OTOOL64
9422 # Extract the first word of "otool64", so it can be a program name with args.
9423 set dummy otool64; ac_word=$2
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9425 $as_echo_n "checking for $ac_word... " >&6; }
9426 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9427 $as_echo_n "(cached) " >&6
9428 else
9429 if test -n "$ac_ct_OTOOL64"; then
9430 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9431 else
9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433 for as_dir in $PATH
9434 do
9435 IFS=$as_save_IFS
9436 test -z "$as_dir" && as_dir=.
9437 for ac_exec_ext in '' $ac_executable_extensions; do
9438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9439 ac_cv_prog_ac_ct_OTOOL64="otool64"
9440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 break 2
9442 fi
9443 done
9444 done
9445 IFS=$as_save_IFS
9446
9447 fi
9448 fi
9449 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9450 if test -n "$ac_ct_OTOOL64"; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9452 $as_echo "$ac_ct_OTOOL64" >&6; }
9453 else
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9456 fi
9457
9458 if test "x$ac_ct_OTOOL64" = x; then
9459 OTOOL64=":"
9460 else
9461 case $cross_compiling:$ac_tool_warned in
9462 yes:)
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9465 ac_tool_warned=yes ;;
9466 esac
9467 OTOOL64=$ac_ct_OTOOL64
9468 fi
9469 else
9470 OTOOL64="$ac_cv_prog_OTOOL64"
9471 fi
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9500 $as_echo_n "checking for -single_module linker flag... " >&6; }
9501 if ${lt_cv_apple_cc_single_mod+:} false; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 lt_cv_apple_cc_single_mod=no
9505 if test -z "$LT_MULTI_MODULE"; then
9506 # By default we will add the -single_module flag. You can override
9507 # by either setting the environment variable LT_MULTI_MODULE
9508 # non-empty at configure time, or by adding -multi_module to the
9509 # link flags.
9510 rm -rf libconftest.dylib*
9511 echo "int foo(void){return 1;}" > conftest.c
9512 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9513 -dynamiclib -Wl,-single_module conftest.c" >&5
9514 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9515 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9516 _lt_result=$?
9517 # If there is a non-empty error log, and "single_module"
9518 # appears in it, assume the flag caused a linker warning
9519 if test -s conftest.err && $GREP single_module conftest.err; then
9520 cat conftest.err >&5
9521 # Otherwise, if the output was created with a 0 exit code from
9522 # the compiler, it worked.
9523 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9524 lt_cv_apple_cc_single_mod=yes
9525 else
9526 cat conftest.err >&5
9527 fi
9528 rm -rf libconftest.dylib*
9529 rm -f conftest.*
9530 fi
9531 fi
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9533 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9534
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9536 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9537 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9538 $as_echo_n "(cached) " >&6
9539 else
9540 lt_cv_ld_exported_symbols_list=no
9541 save_LDFLAGS=$LDFLAGS
9542 echo "_main" > conftest.sym
9543 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h. */
9546
9547 int
9548 main ()
9549 {
9550
9551 ;
9552 return 0;
9553 }
9554 _ACEOF
9555 if ac_fn_c_try_link "$LINENO"; then :
9556 lt_cv_ld_exported_symbols_list=yes
9557 else
9558 lt_cv_ld_exported_symbols_list=no
9559 fi
9560 rm -f core conftest.err conftest.$ac_objext \
9561 conftest$ac_exeext conftest.$ac_ext
9562 LDFLAGS=$save_LDFLAGS
9563
9564 fi
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9566 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9567
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9569 $as_echo_n "checking for -force_load linker flag... " >&6; }
9570 if ${lt_cv_ld_force_load+:} false; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 lt_cv_ld_force_load=no
9574 cat > conftest.c << _LT_EOF
9575 int forced_loaded() { return 2;}
9576 _LT_EOF
9577 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9578 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9579 echo "$AR cru libconftest.a conftest.o" >&5
9580 $AR cru libconftest.a conftest.o 2>&5
9581 echo "$RANLIB libconftest.a" >&5
9582 $RANLIB libconftest.a 2>&5
9583 cat > conftest.c << _LT_EOF
9584 int main() { return 0;}
9585 _LT_EOF
9586 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9587 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9588 _lt_result=$?
9589 if test -s conftest.err && $GREP force_load conftest.err; then
9590 cat conftest.err >&5
9591 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9592 lt_cv_ld_force_load=yes
9593 else
9594 cat conftest.err >&5
9595 fi
9596 rm -f conftest.err libconftest.a conftest conftest.c
9597 rm -rf conftest.dSYM
9598
9599 fi
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9601 $as_echo "$lt_cv_ld_force_load" >&6; }
9602 case $host_os in
9603 rhapsody* | darwin1.[012])
9604 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9605 darwin1.*)
9606 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9607 darwin*) # darwin 5.x on
9608 # if running on 10.5 or later, the deployment target defaults
9609 # to the OS version, if on x86, and 10.4, the deployment
9610 # target defaults to 10.4. Don't you love it?
9611 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9612 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9613 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9614 10.[012][,.]*)
9615 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9616 10.*)
9617 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9618 esac
9619 ;;
9620 esac
9621 if test yes = "$lt_cv_apple_cc_single_mod"; then
9622 _lt_dar_single_mod='$single_module'
9623 fi
9624 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9625 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9626 else
9627 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9628 fi
9629 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9630 _lt_dsymutil='~$DSYMUTIL $lib || :'
9631 else
9632 _lt_dsymutil=
9633 fi
9634 ;;
9635 esac
9636
9637 # func_munge_path_list VARIABLE PATH
9638 # -----------------------------------
9639 # VARIABLE is name of variable containing _space_ separated list of
9640 # directories to be munged by the contents of PATH, which is string
9641 # having a format:
9642 # "DIR[:DIR]:"
9643 # string "DIR[ DIR]" will be prepended to VARIABLE
9644 # ":DIR[:DIR]"
9645 # string "DIR[ DIR]" will be appended to VARIABLE
9646 # "DIRP[:DIRP]::[DIRA:]DIRA"
9647 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9648 # "DIRA[ DIRA]" will be appended to VARIABLE
9649 # "DIR[:DIR]"
9650 # VARIABLE will be replaced by "DIR[ DIR]"
9651 func_munge_path_list ()
9652 {
9653 case x$2 in
9654 x)
9655 ;;
9656 *:)
9657 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9658 ;;
9659 x:*)
9660 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9661 ;;
9662 *::*)
9663 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9664 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9665 ;;
9666 *)
9667 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9668 ;;
9669 esac
9670 }
9671
9672
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9674 $as_echo_n "checking for ANSI C header files... " >&6; }
9675 if ${ac_cv_header_stdc+:} false; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9680 #include <stdlib.h>
9681 #include <stdarg.h>
9682 #include <string.h>
9683 #include <float.h>
9684
9685 int
9686 main ()
9687 {
9688
9689 ;
9690 return 0;
9691 }
9692 _ACEOF
9693 if ac_fn_c_try_compile "$LINENO"; then :
9694 ac_cv_header_stdc=yes
9695 else
9696 ac_cv_header_stdc=no
9697 fi
9698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9699
9700 if test $ac_cv_header_stdc = yes; then
9701 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703 /* end confdefs.h. */
9704 #include <string.h>
9705
9706 _ACEOF
9707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9708 $EGREP "memchr" >/dev/null 2>&1; then :
9709
9710 else
9711 ac_cv_header_stdc=no
9712 fi
9713 rm -f conftest*
9714
9715 fi
9716
9717 if test $ac_cv_header_stdc = yes; then
9718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9721 #include <stdlib.h>
9722
9723 _ACEOF
9724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9725 $EGREP "free" >/dev/null 2>&1; then :
9726
9727 else
9728 ac_cv_header_stdc=no
9729 fi
9730 rm -f conftest*
9731
9732 fi
9733
9734 if test $ac_cv_header_stdc = yes; then
9735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9736 if test "$cross_compiling" = yes; then :
9737 :
9738 else
9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9741 #include <ctype.h>
9742 #include <stdlib.h>
9743 #if ((' ' & 0x0FF) == 0x020)
9744 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9745 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9746 #else
9747 # define ISLOWER(c) \
9748 (('a' <= (c) && (c) <= 'i') \
9749 || ('j' <= (c) && (c) <= 'r') \
9750 || ('s' <= (c) && (c) <= 'z'))
9751 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9752 #endif
9753
9754 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9755 int
9756 main ()
9757 {
9758 int i;
9759 for (i = 0; i < 256; i++)
9760 if (XOR (islower (i), ISLOWER (i))
9761 || toupper (i) != TOUPPER (i))
9762 return 2;
9763 return 0;
9764 }
9765 _ACEOF
9766 if ac_fn_c_try_run "$LINENO"; then :
9767
9768 else
9769 ac_cv_header_stdc=no
9770 fi
9771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9772 conftest.$ac_objext conftest.beam conftest.$ac_ext
9773 fi
9774
9775 fi
9776 fi
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9778 $as_echo "$ac_cv_header_stdc" >&6; }
9779 if test $ac_cv_header_stdc = yes; then
9780
9781 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9782
9783 fi
9784
9785 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9786 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9787 inttypes.h stdint.h unistd.h
9788 do :
9789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9790 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9791 "
9792 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9793 cat >>confdefs.h <<_ACEOF
9794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9795 _ACEOF
9796
9797 fi
9798
9799 done
9800
9801
9802 for ac_header in dlfcn.h
9803 do :
9804 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9805 "
9806 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9807 cat >>confdefs.h <<_ACEOF
9808 #define HAVE_DLFCN_H 1
9809 _ACEOF
9810
9811 fi
9812
9813 done
9814
9815
9816
9817
9818
9819 # Set options
9820
9821
9822
9823 enable_dlopen=no
9824
9825
9826 enable_win32_dll=no
9827
9828
9829 # Check whether --enable-shared was given.
9830 if test "${enable_shared+set}" = set; then :
9831 enableval=$enable_shared; p=${PACKAGE-default}
9832 case $enableval in
9833 yes) enable_shared=yes ;;
9834 no) enable_shared=no ;;
9835 *)
9836 enable_shared=no
9837 # Look at the argument we got. We use all the common list separators.
9838 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9839 for pkg in $enableval; do
9840 IFS=$lt_save_ifs
9841 if test "X$pkg" = "X$p"; then
9842 enable_shared=yes
9843 fi
9844 done
9845 IFS=$lt_save_ifs
9846 ;;
9847 esac
9848 else
9849 enable_shared=yes
9850 fi
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860 # Check whether --enable-static was given.
9861 if test "${enable_static+set}" = set; then :
9862 enableval=$enable_static; p=${PACKAGE-default}
9863 case $enableval in
9864 yes) enable_static=yes ;;
9865 no) enable_static=no ;;
9866 *)
9867 enable_static=no
9868 # Look at the argument we got. We use all the common list separators.
9869 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9870 for pkg in $enableval; do
9871 IFS=$lt_save_ifs
9872 if test "X$pkg" = "X$p"; then
9873 enable_static=yes
9874 fi
9875 done
9876 IFS=$lt_save_ifs
9877 ;;
9878 esac
9879 else
9880 enable_static=yes
9881 fi
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892 # Check whether --with-pic was given.
9893 if test "${with_pic+set}" = set; then :
9894 withval=$with_pic; lt_p=${PACKAGE-default}
9895 case $withval in
9896 yes|no) pic_mode=$withval ;;
9897 *)
9898 pic_mode=default
9899 # Look at the argument we got. We use all the common list separators.
9900 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9901 for lt_pkg in $withval; do
9902 IFS=$lt_save_ifs
9903 if test "X$lt_pkg" = "X$lt_p"; then
9904 pic_mode=yes
9905 fi
9906 done
9907 IFS=$lt_save_ifs
9908 ;;
9909 esac
9910 else
9911 pic_mode=default
9912 fi
9913
9914
9915
9916
9917
9918
9919
9920
9921 # Check whether --enable-fast-install was given.
9922 if test "${enable_fast_install+set}" = set; then :
9923 enableval=$enable_fast_install; p=${PACKAGE-default}
9924 case $enableval in
9925 yes) enable_fast_install=yes ;;
9926 no) enable_fast_install=no ;;
9927 *)
9928 enable_fast_install=no
9929 # Look at the argument we got. We use all the common list separators.
9930 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9931 for pkg in $enableval; do
9932 IFS=$lt_save_ifs
9933 if test "X$pkg" = "X$p"; then
9934 enable_fast_install=yes
9935 fi
9936 done
9937 IFS=$lt_save_ifs
9938 ;;
9939 esac
9940 else
9941 enable_fast_install=yes
9942 fi
9943
9944
9945
9946
9947
9948
9949
9950
9951 shared_archive_member_spec=
9952 case $host,$enable_shared in
9953 power*-*-aix[5-9]*,yes)
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9955 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9956
9957 # Check whether --with-aix-soname was given.
9958 if test "${with_aix_soname+set}" = set; then :
9959 withval=$with_aix_soname; case $withval in
9960 aix|svr4|both)
9961 ;;
9962 *)
9963 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9964 ;;
9965 esac
9966 lt_cv_with_aix_soname=$with_aix_soname
9967 else
9968 if ${lt_cv_with_aix_soname+:} false; then :
9969 $as_echo_n "(cached) " >&6
9970 else
9971 lt_cv_with_aix_soname=aix
9972 fi
9973
9974 with_aix_soname=$lt_cv_with_aix_soname
9975 fi
9976
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9978 $as_echo "$with_aix_soname" >&6; }
9979 if test aix != "$with_aix_soname"; then
9980 # For the AIX way of multilib, we name the shared archive member
9981 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9982 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9983 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9984 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9985 if test 64 = "${OBJECT_MODE-32}"; then
9986 shared_archive_member_spec=shr_64
9987 else
9988 shared_archive_member_spec=shr
9989 fi
9990 fi
9991 ;;
9992 *)
9993 with_aix_soname=aix
9994 ;;
9995 esac
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006 # This can be used to rebuild libtool when needed
10007 LIBTOOL_DEPS=$ltmain
10008
10009 # Always use our own libtool.
10010 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041 test -z "$LN_S" && LN_S="ln -s"
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056 if test -n "${ZSH_VERSION+set}"; then
10057 setopt NO_GLOB_SUBST
10058 fi
10059
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10061 $as_echo_n "checking for objdir... " >&6; }
10062 if ${lt_cv_objdir+:} false; then :
10063 $as_echo_n "(cached) " >&6
10064 else
10065 rm -f .libs 2>/dev/null
10066 mkdir .libs 2>/dev/null
10067 if test -d .libs; then
10068 lt_cv_objdir=.libs
10069 else
10070 # MS-DOS does not allow filenames that begin with a dot.
10071 lt_cv_objdir=_libs
10072 fi
10073 rmdir .libs 2>/dev/null
10074 fi
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10076 $as_echo "$lt_cv_objdir" >&6; }
10077 objdir=$lt_cv_objdir
10078
10079
10080
10081
10082
10083 cat >>confdefs.h <<_ACEOF
10084 #define LT_OBJDIR "$lt_cv_objdir/"
10085 _ACEOF
10086
10087
10088
10089
10090 case $host_os in
10091 aix3*)
10092 # AIX sometimes has problems with the GCC collect2 program. For some
10093 # reason, if we set the COLLECT_NAMES environment variable, the problems
10094 # vanish in a puff of smoke.
10095 if test set != "${COLLECT_NAMES+set}"; then
10096 COLLECT_NAMES=
10097 export COLLECT_NAMES
10098 fi
10099 ;;
10100 esac
10101
10102 # Global variables:
10103 ofile=libtool
10104 can_build_shared=yes
10105
10106 # All known linkers require a '.a' archive for static linking (except MSVC,
10107 # which needs '.lib').
10108 libext=a
10109
10110 with_gnu_ld=$lt_cv_prog_gnu_ld
10111
10112 old_CC=$CC
10113 old_CFLAGS=$CFLAGS
10114
10115 # Set sane defaults for various variables
10116 test -z "$CC" && CC=cc
10117 test -z "$LTCC" && LTCC=$CC
10118 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10119 test -z "$LD" && LD=ld
10120 test -z "$ac_objext" && ac_objext=o
10121
10122 func_cc_basename $compiler
10123 cc_basename=$func_cc_basename_result
10124
10125
10126 # Only perform the check for file, if the check method requires it
10127 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10128 case $deplibs_check_method in
10129 file_magic*)
10130 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10132 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10133 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10134 $as_echo_n "(cached) " >&6
10135 else
10136 case $MAGIC_CMD in
10137 [\\/*] | ?:[\\/]*)
10138 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10139 ;;
10140 *)
10141 lt_save_MAGIC_CMD=$MAGIC_CMD
10142 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10143 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10144 for ac_dir in $ac_dummy; do
10145 IFS=$lt_save_ifs
10146 test -z "$ac_dir" && ac_dir=.
10147 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10148 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10149 if test -n "$file_magic_test_file"; then
10150 case $deplibs_check_method in
10151 "file_magic "*)
10152 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10153 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10154 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10155 $EGREP "$file_magic_regex" > /dev/null; then
10156 :
10157 else
10158 cat <<_LT_EOF 1>&2
10159
10160 *** Warning: the command libtool uses to detect shared libraries,
10161 *** $file_magic_cmd, produces output that libtool cannot recognize.
10162 *** The result is that libtool may fail to recognize shared libraries
10163 *** as such. This will affect the creation of libtool libraries that
10164 *** depend on shared libraries, but programs linked with such libtool
10165 *** libraries will work regardless of this problem. Nevertheless, you
10166 *** may want to report the problem to your system manager and/or to
10167 *** [email protected]
10168
10169 _LT_EOF
10170 fi ;;
10171 esac
10172 fi
10173 break
10174 fi
10175 done
10176 IFS=$lt_save_ifs
10177 MAGIC_CMD=$lt_save_MAGIC_CMD
10178 ;;
10179 esac
10180 fi
10181
10182 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10183 if test -n "$MAGIC_CMD"; then
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10185 $as_echo "$MAGIC_CMD" >&6; }
10186 else
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10188 $as_echo "no" >&6; }
10189 fi
10190
10191
10192
10193
10194
10195 if test -z "$lt_cv_path_MAGIC_CMD"; then
10196 if test -n "$ac_tool_prefix"; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10198 $as_echo_n "checking for file... " >&6; }
10199 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10200 $as_echo_n "(cached) " >&6
10201 else
10202 case $MAGIC_CMD in
10203 [\\/*] | ?:[\\/]*)
10204 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10205 ;;
10206 *)
10207 lt_save_MAGIC_CMD=$MAGIC_CMD
10208 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10209 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10210 for ac_dir in $ac_dummy; do
10211 IFS=$lt_save_ifs
10212 test -z "$ac_dir" && ac_dir=.
10213 if test -f "$ac_dir/file"; then
10214 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10215 if test -n "$file_magic_test_file"; then
10216 case $deplibs_check_method in
10217 "file_magic "*)
10218 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10219 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10220 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10221 $EGREP "$file_magic_regex" > /dev/null; then
10222 :
10223 else
10224 cat <<_LT_EOF 1>&2
10225
10226 *** Warning: the command libtool uses to detect shared libraries,
10227 *** $file_magic_cmd, produces output that libtool cannot recognize.
10228 *** The result is that libtool may fail to recognize shared libraries
10229 *** as such. This will affect the creation of libtool libraries that
10230 *** depend on shared libraries, but programs linked with such libtool
10231 *** libraries will work regardless of this problem. Nevertheless, you
10232 *** may want to report the problem to your system manager and/or to
10233 *** [email protected]
10234
10235 _LT_EOF
10236 fi ;;
10237 esac
10238 fi
10239 break
10240 fi
10241 done
10242 IFS=$lt_save_ifs
10243 MAGIC_CMD=$lt_save_MAGIC_CMD
10244 ;;
10245 esac
10246 fi
10247
10248 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10249 if test -n "$MAGIC_CMD"; then
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10251 $as_echo "$MAGIC_CMD" >&6; }
10252 else
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10254 $as_echo "no" >&6; }
10255 fi
10256
10257
10258 else
10259 MAGIC_CMD=:
10260 fi
10261 fi
10262
10263 fi
10264 ;;
10265 esac
10266
10267 # Use C for the default configuration in the libtool script
10268
10269 lt_save_CC=$CC
10270 ac_ext=c
10271 ac_cpp='$CPP $CPPFLAGS'
10272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10275
10276
10277 # Source file extension for C test sources.
10278 ac_ext=c
10279
10280 # Object file extension for compiled C test sources.
10281 objext=o
10282 objext=$objext
10283
10284 # Code to be used in simple compile tests
10285 lt_simple_compile_test_code="int some_variable = 0;"
10286
10287 # Code to be used in simple link tests
10288 lt_simple_link_test_code='int main(){return(0);}'
10289
10290
10291
10292
10293
10294
10295
10296 # If no C compiler was specified, use CC.
10297 LTCC=${LTCC-"$CC"}
10298
10299 # If no C compiler flags were specified, use CFLAGS.
10300 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10301
10302 # Allow CC to be a program name with arguments.
10303 compiler=$CC
10304
10305 # Save the default compiler, since it gets overwritten when the other
10306 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10307 compiler_DEFAULT=$CC
10308
10309 # save warnings/boilerplate of simple test code
10310 ac_outfile=conftest.$ac_objext
10311 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10312 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10313 _lt_compiler_boilerplate=`cat conftest.err`
10314 $RM conftest*
10315
10316 ac_outfile=conftest.$ac_objext
10317 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10318 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10319 _lt_linker_boilerplate=`cat conftest.err`
10320 $RM -r conftest*
10321
10322
10323 ## CAVEAT EMPTOR:
10324 ## There is no encapsulation within the following macros, do not change
10325 ## the running order or otherwise move them around unless you know exactly
10326 ## what you are doing...
10327 if test -n "$compiler"; then
10328
10329 lt_prog_compiler_no_builtin_flag=
10330
10331 if test yes = "$GCC"; then
10332 case $cc_basename in
10333 nvcc*)
10334 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10335 *)
10336 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10337 esac
10338
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10340 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10341 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10342 $as_echo_n "(cached) " >&6
10343 else
10344 lt_cv_prog_compiler_rtti_exceptions=no
10345 ac_outfile=conftest.$ac_objext
10346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10347 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10348 # Insert the option either (1) after the last *FLAGS variable, or
10349 # (2) before a word containing "conftest.", or (3) at the end.
10350 # Note that $ac_compile itself does not contain backslashes and begins
10351 # with a dollar sign (not a hyphen), so the echo should work correctly.
10352 # The option is referenced via a variable to avoid confusing sed.
10353 lt_compile=`echo "$ac_compile" | $SED \
10354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10356 -e 's:$: $lt_compiler_flag:'`
10357 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10358 (eval "$lt_compile" 2>conftest.err)
10359 ac_status=$?
10360 cat conftest.err >&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 if (exit $ac_status) && test -s "$ac_outfile"; then
10363 # The compiler can only warn and ignore the option if not recognized
10364 # So say no if there are warnings other than the usual output.
10365 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10366 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10367 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10368 lt_cv_prog_compiler_rtti_exceptions=yes
10369 fi
10370 fi
10371 $RM conftest*
10372
10373 fi
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10375 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10376
10377 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10378 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10379 else
10380 :
10381 fi
10382
10383 fi
10384
10385
10386
10387
10388
10389
10390 lt_prog_compiler_wl=
10391 lt_prog_compiler_pic=
10392 lt_prog_compiler_static=
10393
10394
10395 if test yes = "$GCC"; then
10396 lt_prog_compiler_wl='-Wl,'
10397 lt_prog_compiler_static='-static'
10398
10399 case $host_os in
10400 aix*)
10401 # All AIX code is PIC.
10402 if test ia64 = "$host_cpu"; then
10403 # AIX 5 now supports IA64 processor
10404 lt_prog_compiler_static='-Bstatic'
10405 fi
10406 lt_prog_compiler_pic='-fPIC'
10407 ;;
10408
10409 amigaos*)
10410 case $host_cpu in
10411 powerpc)
10412 # see comment about AmigaOS4 .so support
10413 lt_prog_compiler_pic='-fPIC'
10414 ;;
10415 m68k)
10416 # FIXME: we need at least 68020 code to build shared libraries, but
10417 # adding the '-m68020' flag to GCC prevents building anything better,
10418 # like '-m68040'.
10419 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10420 ;;
10421 esac
10422 ;;
10423
10424 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10425 # PIC is the default for these OSes.
10426 ;;
10427
10428 mingw* | cygwin* | pw32* | os2* | cegcc*)
10429 # This hack is so that the source file can tell whether it is being
10430 # built for inclusion in a dll (and should export symbols for example).
10431 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10432 # (--disable-auto-import) libraries
10433 lt_prog_compiler_pic='-DDLL_EXPORT'
10434 case $host_os in
10435 os2*)
10436 lt_prog_compiler_static='$wl-static'
10437 ;;
10438 esac
10439 ;;
10440
10441 darwin* | rhapsody*)
10442 # PIC is the default on this platform
10443 # Common symbols not allowed in MH_DYLIB files
10444 lt_prog_compiler_pic='-fno-common'
10445 ;;
10446
10447 haiku*)
10448 # PIC is the default for Haiku.
10449 # The "-static" flag exists, but is broken.
10450 lt_prog_compiler_static=
10451 ;;
10452
10453 hpux*)
10454 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10455 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10456 # sets the default TLS model and affects inlining.
10457 case $host_cpu in
10458 hppa*64*)
10459 # +Z the default
10460 ;;
10461 *)
10462 lt_prog_compiler_pic='-fPIC'
10463 ;;
10464 esac
10465 ;;
10466
10467 interix[3-9]*)
10468 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10469 # Instead, we relocate shared libraries at runtime.
10470 ;;
10471
10472 msdosdjgpp*)
10473 # Just because we use GCC doesn't mean we suddenly get shared libraries
10474 # on systems that don't support them.
10475 lt_prog_compiler_can_build_shared=no
10476 enable_shared=no
10477 ;;
10478
10479 *nto* | *qnx*)
10480 # QNX uses GNU C++, but need to define -shared option too, otherwise
10481 # it will coredump.
10482 lt_prog_compiler_pic='-fPIC -shared'
10483 ;;
10484
10485 sysv4*MP*)
10486 if test -d /usr/nec; then
10487 lt_prog_compiler_pic=-Kconform_pic
10488 fi
10489 ;;
10490
10491 *)
10492 lt_prog_compiler_pic='-fPIC'
10493 ;;
10494 esac
10495
10496 case $cc_basename in
10497 nvcc*) # Cuda Compiler Driver 2.2
10498 lt_prog_compiler_wl='-Xlinker '
10499 if test -n "$lt_prog_compiler_pic"; then
10500 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10501 fi
10502 ;;
10503 esac
10504 else
10505 # PORTME Check for flag to pass linker flags through the system compiler.
10506 case $host_os in
10507 aix*)
10508 lt_prog_compiler_wl='-Wl,'
10509 if test ia64 = "$host_cpu"; then
10510 # AIX 5 now supports IA64 processor
10511 lt_prog_compiler_static='-Bstatic'
10512 else
10513 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10514 fi
10515 ;;
10516
10517 darwin* | rhapsody*)
10518 # PIC is the default on this platform
10519 # Common symbols not allowed in MH_DYLIB files
10520 lt_prog_compiler_pic='-fno-common'
10521 case $cc_basename in
10522 nagfor*)
10523 # NAG Fortran compiler
10524 lt_prog_compiler_wl='-Wl,-Wl,,'
10525 lt_prog_compiler_pic='-PIC'
10526 lt_prog_compiler_static='-Bstatic'
10527 ;;
10528 esac
10529 ;;
10530
10531 mingw* | cygwin* | pw32* | os2* | cegcc*)
10532 # This hack is so that the source file can tell whether it is being
10533 # built for inclusion in a dll (and should export symbols for example).
10534 lt_prog_compiler_pic='-DDLL_EXPORT'
10535 case $host_os in
10536 os2*)
10537 lt_prog_compiler_static='$wl-static'
10538 ;;
10539 esac
10540 ;;
10541
10542 hpux9* | hpux10* | hpux11*)
10543 lt_prog_compiler_wl='-Wl,'
10544 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10545 # not for PA HP-UX.
10546 case $host_cpu in
10547 hppa*64*|ia64*)
10548 # +Z the default
10549 ;;
10550 *)
10551 lt_prog_compiler_pic='+Z'
10552 ;;
10553 esac
10554 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10555 lt_prog_compiler_static='$wl-a ${wl}archive'
10556 ;;
10557
10558 irix5* | irix6* | nonstopux*)
10559 lt_prog_compiler_wl='-Wl,'
10560 # PIC (with -KPIC) is the default.
10561 lt_prog_compiler_static='-non_shared'
10562 ;;
10563
10564 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10565 case $cc_basename in
10566 # old Intel for x86_64, which still supported -KPIC.
10567 ecc*)
10568 lt_prog_compiler_wl='-Wl,'
10569 lt_prog_compiler_pic='-KPIC'
10570 lt_prog_compiler_static='-static'
10571 ;;
10572 # icc used to be incompatible with GCC.
10573 # ICC 10 doesn't accept -KPIC any more.
10574 icc* | ifort*)
10575 lt_prog_compiler_wl='-Wl,'
10576 lt_prog_compiler_pic='-fPIC'
10577 lt_prog_compiler_static='-static'
10578 ;;
10579 # Lahey Fortran 8.1.
10580 lf95*)
10581 lt_prog_compiler_wl='-Wl,'
10582 lt_prog_compiler_pic='--shared'
10583 lt_prog_compiler_static='--static'
10584 ;;
10585 nagfor*)
10586 # NAG Fortran compiler
10587 lt_prog_compiler_wl='-Wl,-Wl,,'
10588 lt_prog_compiler_pic='-PIC'
10589 lt_prog_compiler_static='-Bstatic'
10590 ;;
10591 tcc*)
10592 # Fabrice Bellard et al's Tiny C Compiler
10593 lt_prog_compiler_wl='-Wl,'
10594 lt_prog_compiler_pic='-fPIC'
10595 lt_prog_compiler_static='-static'
10596 ;;
10597 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10598 # Portland Group compilers (*not* the Pentium gcc compiler,
10599 # which looks to be a dead project)
10600 lt_prog_compiler_wl='-Wl,'
10601 lt_prog_compiler_pic='-fpic'
10602 lt_prog_compiler_static='-Bstatic'
10603 ;;
10604 ccc*)
10605 lt_prog_compiler_wl='-Wl,'
10606 # All Alpha code is PIC.
10607 lt_prog_compiler_static='-non_shared'
10608 ;;
10609 xl* | bgxl* | bgf* | mpixl*)
10610 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10611 lt_prog_compiler_wl='-Wl,'
10612 lt_prog_compiler_pic='-qpic'
10613 lt_prog_compiler_static='-qstaticlink'
10614 ;;
10615 *)
10616 case `$CC -V 2>&1 | sed 5q` in
10617 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10618 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10619 lt_prog_compiler_pic='-KPIC'
10620 lt_prog_compiler_static='-Bstatic'
10621 lt_prog_compiler_wl=''
10622 ;;
10623 *Sun\ F* | *Sun*Fortran*)
10624 lt_prog_compiler_pic='-KPIC'
10625 lt_prog_compiler_static='-Bstatic'
10626 lt_prog_compiler_wl='-Qoption ld '
10627 ;;
10628 *Sun\ C*)
10629 # Sun C 5.9
10630 lt_prog_compiler_pic='-KPIC'
10631 lt_prog_compiler_static='-Bstatic'
10632 lt_prog_compiler_wl='-Wl,'
10633 ;;
10634 *Intel*\ [CF]*Compiler*)
10635 lt_prog_compiler_wl='-Wl,'
10636 lt_prog_compiler_pic='-fPIC'
10637 lt_prog_compiler_static='-static'
10638 ;;
10639 *Portland\ Group*)
10640 lt_prog_compiler_wl='-Wl,'
10641 lt_prog_compiler_pic='-fpic'
10642 lt_prog_compiler_static='-Bstatic'
10643 ;;
10644 esac
10645 ;;
10646 esac
10647 ;;
10648
10649 newsos6)
10650 lt_prog_compiler_pic='-KPIC'
10651 lt_prog_compiler_static='-Bstatic'
10652 ;;
10653
10654 *nto* | *qnx*)
10655 # QNX uses GNU C++, but need to define -shared option too, otherwise
10656 # it will coredump.
10657 lt_prog_compiler_pic='-fPIC -shared'
10658 ;;
10659
10660 osf3* | osf4* | osf5*)
10661 lt_prog_compiler_wl='-Wl,'
10662 # All OSF/1 code is PIC.
10663 lt_prog_compiler_static='-non_shared'
10664 ;;
10665
10666 rdos*)
10667 lt_prog_compiler_static='-non_shared'
10668 ;;
10669
10670 solaris*)
10671 lt_prog_compiler_pic='-KPIC'
10672 lt_prog_compiler_static='-Bstatic'
10673 case $cc_basename in
10674 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10675 lt_prog_compiler_wl='-Qoption ld ';;
10676 *)
10677 lt_prog_compiler_wl='-Wl,';;
10678 esac
10679 ;;
10680
10681 sunos4*)
10682 lt_prog_compiler_wl='-Qoption ld '
10683 lt_prog_compiler_pic='-PIC'
10684 lt_prog_compiler_static='-Bstatic'
10685 ;;
10686
10687 sysv4 | sysv4.2uw2* | sysv4.3*)
10688 lt_prog_compiler_wl='-Wl,'
10689 lt_prog_compiler_pic='-KPIC'
10690 lt_prog_compiler_static='-Bstatic'
10691 ;;
10692
10693 sysv4*MP*)
10694 if test -d /usr/nec; then
10695 lt_prog_compiler_pic='-Kconform_pic'
10696 lt_prog_compiler_static='-Bstatic'
10697 fi
10698 ;;
10699
10700 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10701 lt_prog_compiler_wl='-Wl,'
10702 lt_prog_compiler_pic='-KPIC'
10703 lt_prog_compiler_static='-Bstatic'
10704 ;;
10705
10706 unicos*)
10707 lt_prog_compiler_wl='-Wl,'
10708 lt_prog_compiler_can_build_shared=no
10709 ;;
10710
10711 uts4*)
10712 lt_prog_compiler_pic='-pic'
10713 lt_prog_compiler_static='-Bstatic'
10714 ;;
10715
10716 *)
10717 lt_prog_compiler_can_build_shared=no
10718 ;;
10719 esac
10720 fi
10721
10722 case $host_os in
10723 # For platforms that do not support PIC, -DPIC is meaningless:
10724 *djgpp*)
10725 lt_prog_compiler_pic=
10726 ;;
10727 *)
10728 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10729 ;;
10730 esac
10731
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10733 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10734 if ${lt_cv_prog_compiler_pic+:} false; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10738 fi
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10740 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10741 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10742
10743 #
10744 # Check to make sure the PIC flag actually works.
10745 #
10746 if test -n "$lt_prog_compiler_pic"; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10748 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10749 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10750 $as_echo_n "(cached) " >&6
10751 else
10752 lt_cv_prog_compiler_pic_works=no
10753 ac_outfile=conftest.$ac_objext
10754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10755 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10756 # Insert the option either (1) after the last *FLAGS variable, or
10757 # (2) before a word containing "conftest.", or (3) at the end.
10758 # Note that $ac_compile itself does not contain backslashes and begins
10759 # with a dollar sign (not a hyphen), so the echo should work correctly.
10760 # The option is referenced via a variable to avoid confusing sed.
10761 lt_compile=`echo "$ac_compile" | $SED \
10762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10764 -e 's:$: $lt_compiler_flag:'`
10765 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10766 (eval "$lt_compile" 2>conftest.err)
10767 ac_status=$?
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 if (exit $ac_status) && test -s "$ac_outfile"; then
10771 # The compiler can only warn and ignore the option if not recognized
10772 # So say no if there are warnings other than the usual output.
10773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10775 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10776 lt_cv_prog_compiler_pic_works=yes
10777 fi
10778 fi
10779 $RM conftest*
10780
10781 fi
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10783 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10784
10785 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10786 case $lt_prog_compiler_pic in
10787 "" | " "*) ;;
10788 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10789 esac
10790 else
10791 lt_prog_compiler_pic=
10792 lt_prog_compiler_can_build_shared=no
10793 fi
10794
10795 fi
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807 #
10808 # Check to make sure the static flag actually works.
10809 #
10810 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10812 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10813 if ${lt_cv_prog_compiler_static_works+:} false; then :
10814 $as_echo_n "(cached) " >&6
10815 else
10816 lt_cv_prog_compiler_static_works=no
10817 save_LDFLAGS=$LDFLAGS
10818 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10819 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10820 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10821 # The linker can only warn and ignore the option if not recognized
10822 # So say no if there are warnings
10823 if test -s conftest.err; then
10824 # Append any errors to the config.log.
10825 cat conftest.err 1>&5
10826 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10828 if diff conftest.exp conftest.er2 >/dev/null; then
10829 lt_cv_prog_compiler_static_works=yes
10830 fi
10831 else
10832 lt_cv_prog_compiler_static_works=yes
10833 fi
10834 fi
10835 $RM -r conftest*
10836 LDFLAGS=$save_LDFLAGS
10837
10838 fi
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10840 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10841
10842 if test yes = "$lt_cv_prog_compiler_static_works"; then
10843 :
10844 else
10845 lt_prog_compiler_static=
10846 fi
10847
10848
10849
10850
10851
10852
10853
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10855 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10856 if ${lt_cv_prog_compiler_c_o+:} false; then :
10857 $as_echo_n "(cached) " >&6
10858 else
10859 lt_cv_prog_compiler_c_o=no
10860 $RM -r conftest 2>/dev/null
10861 mkdir conftest
10862 cd conftest
10863 mkdir out
10864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10865
10866 lt_compiler_flag="-o out/conftest2.$ac_objext"
10867 # Insert the option either (1) after the last *FLAGS variable, or
10868 # (2) before a word containing "conftest.", or (3) at the end.
10869 # Note that $ac_compile itself does not contain backslashes and begins
10870 # with a dollar sign (not a hyphen), so the echo should work correctly.
10871 lt_compile=`echo "$ac_compile" | $SED \
10872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10874 -e 's:$: $lt_compiler_flag:'`
10875 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10876 (eval "$lt_compile" 2>out/conftest.err)
10877 ac_status=$?
10878 cat out/conftest.err >&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10881 then
10882 # The compiler can only warn and ignore the option if not recognized
10883 # So say no if there are warnings
10884 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10885 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10886 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10887 lt_cv_prog_compiler_c_o=yes
10888 fi
10889 fi
10890 chmod u+w . 2>&5
10891 $RM conftest*
10892 # SGI C++ compiler will create directory out/ii_files/ for
10893 # template instantiation
10894 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10895 $RM out/* && rmdir out
10896 cd ..
10897 $RM -r conftest
10898 $RM conftest*
10899
10900 fi
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10902 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10903
10904
10905
10906
10907
10908
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10910 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10911 if ${lt_cv_prog_compiler_c_o+:} false; then :
10912 $as_echo_n "(cached) " >&6
10913 else
10914 lt_cv_prog_compiler_c_o=no
10915 $RM -r conftest 2>/dev/null
10916 mkdir conftest
10917 cd conftest
10918 mkdir out
10919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10920
10921 lt_compiler_flag="-o out/conftest2.$ac_objext"
10922 # Insert the option either (1) after the last *FLAGS variable, or
10923 # (2) before a word containing "conftest.", or (3) at the end.
10924 # Note that $ac_compile itself does not contain backslashes and begins
10925 # with a dollar sign (not a hyphen), so the echo should work correctly.
10926 lt_compile=`echo "$ac_compile" | $SED \
10927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10929 -e 's:$: $lt_compiler_flag:'`
10930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10931 (eval "$lt_compile" 2>out/conftest.err)
10932 ac_status=$?
10933 cat out/conftest.err >&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10936 then
10937 # The compiler can only warn and ignore the option if not recognized
10938 # So say no if there are warnings
10939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10940 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10941 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10942 lt_cv_prog_compiler_c_o=yes
10943 fi
10944 fi
10945 chmod u+w . 2>&5
10946 $RM conftest*
10947 # SGI C++ compiler will create directory out/ii_files/ for
10948 # template instantiation
10949 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10950 $RM out/* && rmdir out
10951 cd ..
10952 $RM -r conftest
10953 $RM conftest*
10954
10955 fi
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10957 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10958
10959
10960
10961
10962 hard_links=nottested
10963 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10964 # do not overwrite the value of need_locks provided by the user
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10966 $as_echo_n "checking if we can lock with hard links... " >&6; }
10967 hard_links=yes
10968 $RM conftest*
10969 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10970 touch conftest.a
10971 ln conftest.a conftest.b 2>&5 || hard_links=no
10972 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10974 $as_echo "$hard_links" >&6; }
10975 if test no = "$hard_links"; then
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10977 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10978 need_locks=warn
10979 fi
10980 else
10981 need_locks=no
10982 fi
10983
10984
10985
10986
10987
10988
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10990 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10991
10992 runpath_var=
10993 allow_undefined_flag=
10994 always_export_symbols=no
10995 archive_cmds=
10996 archive_expsym_cmds=
10997 compiler_needs_object=no
10998 enable_shared_with_static_runtimes=no
10999 export_dynamic_flag_spec=
11000 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11001 hardcode_automatic=no
11002 hardcode_direct=no
11003 hardcode_direct_absolute=no
11004 hardcode_libdir_flag_spec=
11005 hardcode_libdir_separator=
11006 hardcode_minus_L=no
11007 hardcode_shlibpath_var=unsupported
11008 inherit_rpath=no
11009 link_all_deplibs=unknown
11010 module_cmds=
11011 module_expsym_cmds=
11012 old_archive_from_new_cmds=
11013 old_archive_from_expsyms_cmds=
11014 thread_safe_flag_spec=
11015 whole_archive_flag_spec=
11016 # include_expsyms should be a list of space-separated symbols to be *always*
11017 # included in the symbol list
11018 include_expsyms=
11019 # exclude_expsyms can be an extended regexp of symbols to exclude
11020 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11021 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11022 # as well as any symbol that contains 'd'.
11023 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11024 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11025 # platforms (ab)use it in PIC code, but their linkers get confused if
11026 # the symbol is explicitly referenced. Since portable code cannot
11027 # rely on this symbol name, it's probably fine to never include it in
11028 # preloaded symbol tables.
11029 # Exclude shared library initialization/finalization symbols.
11030 extract_expsyms_cmds=
11031
11032 case $host_os in
11033 cygwin* | mingw* | pw32* | cegcc*)
11034 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11035 # When not using gcc, we currently assume that we are using
11036 # Microsoft Visual C++.
11037 if test yes != "$GCC"; then
11038 with_gnu_ld=no
11039 fi
11040 ;;
11041 interix*)
11042 # we just hope/assume this is gcc and not c89 (= MSVC++)
11043 with_gnu_ld=yes
11044 ;;
11045 openbsd* | bitrig*)
11046 with_gnu_ld=no
11047 ;;
11048 esac
11049
11050 ld_shlibs=yes
11051
11052 # On some targets, GNU ld is compatible enough with the native linker
11053 # that we're better off using the native interface for both.
11054 lt_use_gnu_ld_interface=no
11055 if test yes = "$with_gnu_ld"; then
11056 case $host_os in
11057 aix*)
11058 # The AIX port of GNU ld has always aspired to compatibility
11059 # with the native linker. However, as the warning in the GNU ld
11060 # block says, versions before 2.19.5* couldn't really create working
11061 # shared libraries, regardless of the interface used.
11062 case `$LD -v 2>&1` in
11063 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11064 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11065 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11066 *)
11067 lt_use_gnu_ld_interface=yes
11068 ;;
11069 esac
11070 ;;
11071 *)
11072 lt_use_gnu_ld_interface=yes
11073 ;;
11074 esac
11075 fi
11076
11077 if test yes = "$lt_use_gnu_ld_interface"; then
11078 # If archive_cmds runs LD, not CC, wlarc should be empty
11079 wlarc='$wl'
11080
11081 # Set some defaults for GNU ld with shared library support. These
11082 # are reset later if shared libraries are not supported. Putting them
11083 # here allows them to be overridden if necessary.
11084 runpath_var=LD_RUN_PATH
11085 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11086 export_dynamic_flag_spec='$wl--export-dynamic'
11087 # ancient GNU ld didn't support --whole-archive et. al.
11088 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11089 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11090 else
11091 whole_archive_flag_spec=
11092 fi
11093 supports_anon_versioning=no
11094 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11095 *GNU\ gold*) supports_anon_versioning=yes ;;
11096 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11097 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11098 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11099 *\ 2.11.*) ;; # other 2.11 versions
11100 *) supports_anon_versioning=yes ;;
11101 esac
11102
11103 # See if GNU ld supports shared libraries.
11104 case $host_os in
11105 aix[3-9]*)
11106 # On AIX/PPC, the GNU linker is very broken
11107 if test ia64 != "$host_cpu"; then
11108 ld_shlibs=no
11109 cat <<_LT_EOF 1>&2
11110
11111 *** Warning: the GNU linker, at least up to release 2.19, is reported
11112 *** to be unable to reliably create shared libraries on AIX.
11113 *** Therefore, libtool is disabling shared libraries support. If you
11114 *** really care for shared libraries, you may want to install binutils
11115 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11116 *** You will then need to restart the configuration process.
11117
11118 _LT_EOF
11119 fi
11120 ;;
11121
11122 amigaos*)
11123 case $host_cpu in
11124 powerpc)
11125 # see comment about AmigaOS4 .so support
11126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11127 archive_expsym_cmds=''
11128 ;;
11129 m68k)
11130 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)'
11131 hardcode_libdir_flag_spec='-L$libdir'
11132 hardcode_minus_L=yes
11133 ;;
11134 esac
11135 ;;
11136
11137 beos*)
11138 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11139 allow_undefined_flag=unsupported
11140 # Joseph Beckenbach <[email protected]> says some releases of gcc
11141 # support --undefined. This deserves some investigation. FIXME
11142 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11143 else
11144 ld_shlibs=no
11145 fi
11146 ;;
11147
11148 cygwin* | mingw* | pw32* | cegcc*)
11149 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11150 # as there is no search path for DLLs.
11151 hardcode_libdir_flag_spec='-L$libdir'
11152 export_dynamic_flag_spec='$wl--export-all-symbols'
11153 allow_undefined_flag=unsupported
11154 always_export_symbols=no
11155 enable_shared_with_static_runtimes=yes
11156 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11157 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11158
11159 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11161 # If the export-symbols file already is a .def file, use it as
11162 # is; otherwise, prepend EXPORTS...
11163 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11164 cp $export_symbols $output_objdir/$soname.def;
11165 else
11166 echo EXPORTS > $output_objdir/$soname.def;
11167 cat $export_symbols >> $output_objdir/$soname.def;
11168 fi~
11169 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11170 else
11171 ld_shlibs=no
11172 fi
11173 ;;
11174
11175 haiku*)
11176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11177 link_all_deplibs=yes
11178 ;;
11179
11180 os2*)
11181 hardcode_libdir_flag_spec='-L$libdir'
11182 hardcode_minus_L=yes
11183 allow_undefined_flag=unsupported
11184 shrext_cmds=.dll
11185 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11186 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11187 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11188 $ECHO EXPORTS >> $output_objdir/$libname.def~
11189 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11190 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11191 emximp -o $lib $output_objdir/$libname.def'
11192 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11193 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11194 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11195 $ECHO EXPORTS >> $output_objdir/$libname.def~
11196 prefix_cmds="$SED"~
11197 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11198 prefix_cmds="$prefix_cmds -e 1d";
11199 fi~
11200 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11201 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11202 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11203 emximp -o $lib $output_objdir/$libname.def'
11204 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11205 enable_shared_with_static_runtimes=yes
11206 ;;
11207
11208 interix[3-9]*)
11209 hardcode_direct=no
11210 hardcode_shlibpath_var=no
11211 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11212 export_dynamic_flag_spec='$wl-E'
11213 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11214 # Instead, shared libraries are loaded at an image base (0x10000000 by
11215 # default) and relocated if they conflict, which is a slow very memory
11216 # consuming and fragmenting process. To avoid this, we pick a random,
11217 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11218 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11219 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11220 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'
11221 ;;
11222
11223 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11224 tmp_diet=no
11225 if test linux-dietlibc = "$host_os"; then
11226 case $cc_basename in
11227 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11228 esac
11229 fi
11230 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11231 && test no = "$tmp_diet"
11232 then
11233 tmp_addflag=' $pic_flag'
11234 tmp_sharedflag='-shared'
11235 case $cc_basename,$host_cpu in
11236 pgcc*) # Portland Group C compiler
11237 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11238 tmp_addflag=' $pic_flag'
11239 ;;
11240 pgf77* | pgf90* | pgf95* | pgfortran*)
11241 # Portland Group f77 and f90 compilers
11242 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11243 tmp_addflag=' $pic_flag -Mnomain' ;;
11244 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11245 tmp_addflag=' -i_dynamic' ;;
11246 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11247 tmp_addflag=' -i_dynamic -nofor_main' ;;
11248 ifc* | ifort*) # Intel Fortran compiler
11249 tmp_addflag=' -nofor_main' ;;
11250 lf95*) # Lahey Fortran 8.1
11251 whole_archive_flag_spec=
11252 tmp_sharedflag='--shared' ;;
11253 nagfor*) # NAGFOR 5.3
11254 tmp_sharedflag='-Wl,-shared' ;;
11255 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11256 tmp_sharedflag='-qmkshrobj'
11257 tmp_addflag= ;;
11258 nvcc*) # Cuda Compiler Driver 2.2
11259 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11260 compiler_needs_object=yes
11261 ;;
11262 esac
11263 case `$CC -V 2>&1 | sed 5q` in
11264 *Sun\ C*) # Sun C 5.9
11265 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11266 compiler_needs_object=yes
11267 tmp_sharedflag='-G' ;;
11268 *Sun\ F*) # Sun Fortran 8.3
11269 tmp_sharedflag='-G' ;;
11270 esac
11271 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11272
11273 if test yes = "$supports_anon_versioning"; then
11274 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11275 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11276 echo "local: *; };" >> $output_objdir/$libname.ver~
11277 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11278 fi
11279
11280 case $cc_basename in
11281 tcc*)
11282 export_dynamic_flag_spec='-rdynamic'
11283 ;;
11284 xlf* | bgf* | bgxlf* | mpixlf*)
11285 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11286 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11287 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11288 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11289 if test yes = "$supports_anon_versioning"; then
11290 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11291 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11292 echo "local: *; };" >> $output_objdir/$libname.ver~
11293 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11294 fi
11295 ;;
11296 esac
11297 else
11298 ld_shlibs=no
11299 fi
11300 ;;
11301
11302 netbsd*)
11303 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11304 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11305 wlarc=
11306 else
11307 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11308 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11309 fi
11310 ;;
11311
11312 solaris*)
11313 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11314 ld_shlibs=no
11315 cat <<_LT_EOF 1>&2
11316
11317 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11318 *** create shared libraries on Solaris systems. Therefore, libtool
11319 *** is disabling shared libraries support. We urge you to upgrade GNU
11320 *** binutils to release 2.9.1 or newer. Another option is to modify
11321 *** your PATH or compiler configuration so that the native linker is
11322 *** used, and then restart.
11323
11324 _LT_EOF
11325 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11326 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11327 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11328 else
11329 ld_shlibs=no
11330 fi
11331 ;;
11332
11333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11334 case `$LD -v 2>&1` in
11335 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11336 ld_shlibs=no
11337 cat <<_LT_EOF 1>&2
11338
11339 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11340 *** reliably create shared libraries on SCO systems. Therefore, libtool
11341 *** is disabling shared libraries support. We urge you to upgrade GNU
11342 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11343 *** your PATH or compiler configuration so that the native linker is
11344 *** used, and then restart.
11345
11346 _LT_EOF
11347 ;;
11348 *)
11349 # For security reasons, it is highly recommended that you always
11350 # use absolute paths for naming shared libraries, and exclude the
11351 # DT_RUNPATH tag from executables and libraries. But doing so
11352 # requires that you compile everything twice, which is a pain.
11353 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11354 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11356 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11357 else
11358 ld_shlibs=no
11359 fi
11360 ;;
11361 esac
11362 ;;
11363
11364 sunos4*)
11365 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11366 wlarc=
11367 hardcode_direct=yes
11368 hardcode_shlibpath_var=no
11369 ;;
11370
11371 *)
11372 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11373 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11374 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11375 else
11376 ld_shlibs=no
11377 fi
11378 ;;
11379 esac
11380
11381 if test no = "$ld_shlibs"; then
11382 runpath_var=
11383 hardcode_libdir_flag_spec=
11384 export_dynamic_flag_spec=
11385 whole_archive_flag_spec=
11386 fi
11387 else
11388 # PORTME fill in a description of your system's linker (not GNU ld)
11389 case $host_os in
11390 aix3*)
11391 allow_undefined_flag=unsupported
11392 always_export_symbols=yes
11393 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'
11394 # Note: this linker hardcodes the directories in LIBPATH if there
11395 # are no directories specified by -L.
11396 hardcode_minus_L=yes
11397 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11398 # Neither direct hardcoding nor static linking is supported with a
11399 # broken collect2.
11400 hardcode_direct=unsupported
11401 fi
11402 ;;
11403
11404 aix[4-9]*)
11405 if test ia64 = "$host_cpu"; then
11406 # On IA64, the linker does run time linking by default, so we don't
11407 # have to do anything special.
11408 aix_use_runtimelinking=no
11409 exp_sym_flag='-Bexport'
11410 no_entry_flag=
11411 else
11412 # If we're using GNU nm, then we don't want the "-C" option.
11413 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11414 # Without the "-l" option, or with the "-B" option, AIX nm treats
11415 # weak defined symbols like other global defined symbols, whereas
11416 # GNU nm marks them as "W".
11417 # While the 'weak' keyword is ignored in the Export File, we need
11418 # it in the Import File for the 'aix-soname' feature, so we have
11419 # to replace the "-B" option with "-P" for AIX nm.
11420 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11421 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11422 else
11423 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11424 fi
11425 aix_use_runtimelinking=no
11426
11427 # Test if we are trying to use run time linking or normal
11428 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11429 # have runtime linking enabled, and use it for executables.
11430 # For shared libraries, we enable/disable runtime linking
11431 # depending on the kind of the shared library created -
11432 # when "with_aix_soname,aix_use_runtimelinking" is:
11433 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11434 # "aix,yes" lib.so shared, rtl:yes, for executables
11435 # lib.a static archive
11436 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11437 # lib.a(lib.so.V) shared, rtl:no, for executables
11438 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11439 # lib.a(lib.so.V) shared, rtl:no
11440 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11441 # lib.a static archive
11442 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11443 for ld_flag in $LDFLAGS; do
11444 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11445 aix_use_runtimelinking=yes
11446 break
11447 fi
11448 done
11449 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11450 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11451 # so we don't have lib.a shared libs to link our executables.
11452 # We have to force runtime linking in this case.
11453 aix_use_runtimelinking=yes
11454 LDFLAGS="$LDFLAGS -Wl,-brtl"
11455 fi
11456 ;;
11457 esac
11458
11459 exp_sym_flag='-bexport'
11460 no_entry_flag='-bnoentry'
11461 fi
11462
11463 # When large executables or shared objects are built, AIX ld can
11464 # have problems creating the table of contents. If linking a library
11465 # or program results in "error TOC overflow" add -mminimal-toc to
11466 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11467 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11468
11469 archive_cmds=''
11470 hardcode_direct=yes
11471 hardcode_direct_absolute=yes
11472 hardcode_libdir_separator=':'
11473 link_all_deplibs=yes
11474 file_list_spec='$wl-f,'
11475 case $with_aix_soname,$aix_use_runtimelinking in
11476 aix,*) ;; # traditional, no import file
11477 svr4,* | *,yes) # use import file
11478 # The Import File defines what to hardcode.
11479 hardcode_direct=no
11480 hardcode_direct_absolute=no
11481 ;;
11482 esac
11483
11484 if test yes = "$GCC"; then
11485 case $host_os in aix4.[012]|aix4.[012].*)
11486 # We only want to do this on AIX 4.2 and lower, the check
11487 # below for broken collect2 doesn't work under 4.3+
11488 collect2name=`$CC -print-prog-name=collect2`
11489 if test -f "$collect2name" &&
11490 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11491 then
11492 # We have reworked collect2
11493 :
11494 else
11495 # We have old collect2
11496 hardcode_direct=unsupported
11497 # It fails to find uninstalled libraries when the uninstalled
11498 # path is not listed in the libpath. Setting hardcode_minus_L
11499 # to unsupported forces relinking
11500 hardcode_minus_L=yes
11501 hardcode_libdir_flag_spec='-L$libdir'
11502 hardcode_libdir_separator=
11503 fi
11504 ;;
11505 esac
11506 shared_flag='-shared'
11507 if test yes = "$aix_use_runtimelinking"; then
11508 shared_flag="$shared_flag "'$wl-G'
11509 fi
11510 # Need to ensure runtime linking is disabled for the traditional
11511 # shared library, or the linker may eventually find shared libraries
11512 # /with/ Import File - we do not want to mix them.
11513 shared_flag_aix='-shared'
11514 shared_flag_svr4='-shared $wl-G'
11515 else
11516 # not using gcc
11517 if test ia64 = "$host_cpu"; then
11518 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11519 # chokes on -Wl,-G. The following line is correct:
11520 shared_flag='-G'
11521 else
11522 if test yes = "$aix_use_runtimelinking"; then
11523 shared_flag='$wl-G'
11524 else
11525 shared_flag='$wl-bM:SRE'
11526 fi
11527 shared_flag_aix='$wl-bM:SRE'
11528 shared_flag_svr4='$wl-G'
11529 fi
11530 fi
11531
11532 export_dynamic_flag_spec='$wl-bexpall'
11533 # It seems that -bexpall does not export symbols beginning with
11534 # underscore (_), so it is better to generate a list of symbols to export.
11535 always_export_symbols=yes
11536 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11537 # Warning - without using the other runtime loading flags (-brtl),
11538 # -berok will link without error, but may produce a broken library.
11539 allow_undefined_flag='-berok'
11540 # Determine the default libpath from the value encoded in an
11541 # empty executable.
11542 if test set = "${lt_cv_aix_libpath+set}"; then
11543 aix_libpath=$lt_cv_aix_libpath
11544 else
11545 if ${lt_cv_aix_libpath_+:} false; then :
11546 $as_echo_n "(cached) " >&6
11547 else
11548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h. */
11550
11551 int
11552 main ()
11553 {
11554
11555 ;
11556 return 0;
11557 }
11558 _ACEOF
11559 if ac_fn_c_try_link "$LINENO"; then :
11560
11561 lt_aix_libpath_sed='
11562 /Import File Strings/,/^$/ {
11563 /^0/ {
11564 s/^0 *\([^ ]*\) *$/\1/
11565 p
11566 }
11567 }'
11568 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11569 # Check for a 64-bit object if we didn't find anything.
11570 if test -z "$lt_cv_aix_libpath_"; then
11571 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11572 fi
11573 fi
11574 rm -f core conftest.err conftest.$ac_objext \
11575 conftest$ac_exeext conftest.$ac_ext
11576 if test -z "$lt_cv_aix_libpath_"; then
11577 lt_cv_aix_libpath_=/usr/lib:/lib
11578 fi
11579
11580 fi
11581
11582 aix_libpath=$lt_cv_aix_libpath_
11583 fi
11584
11585 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11586 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11587 else
11588 if test ia64 = "$host_cpu"; then
11589 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11590 allow_undefined_flag="-z nodefs"
11591 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"
11592 else
11593 # Determine the default libpath from the value encoded in an
11594 # empty executable.
11595 if test set = "${lt_cv_aix_libpath+set}"; then
11596 aix_libpath=$lt_cv_aix_libpath
11597 else
11598 if ${lt_cv_aix_libpath_+:} false; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h. */
11603
11604 int
11605 main ()
11606 {
11607
11608 ;
11609 return 0;
11610 }
11611 _ACEOF
11612 if ac_fn_c_try_link "$LINENO"; then :
11613
11614 lt_aix_libpath_sed='
11615 /Import File Strings/,/^$/ {
11616 /^0/ {
11617 s/^0 *\([^ ]*\) *$/\1/
11618 p
11619 }
11620 }'
11621 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11622 # Check for a 64-bit object if we didn't find anything.
11623 if test -z "$lt_cv_aix_libpath_"; then
11624 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11625 fi
11626 fi
11627 rm -f core conftest.err conftest.$ac_objext \
11628 conftest$ac_exeext conftest.$ac_ext
11629 if test -z "$lt_cv_aix_libpath_"; then
11630 lt_cv_aix_libpath_=/usr/lib:/lib
11631 fi
11632
11633 fi
11634
11635 aix_libpath=$lt_cv_aix_libpath_
11636 fi
11637
11638 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11639 # Warning - without using the other run time loading flags,
11640 # -berok will link without error, but may produce a broken library.
11641 no_undefined_flag=' $wl-bernotok'
11642 allow_undefined_flag=' $wl-berok'
11643 if test yes = "$with_gnu_ld"; then
11644 # We only use this code for GNU lds that support --whole-archive.
11645 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11646 else
11647 # Exported symbols can be pulled into shared objects from archives
11648 whole_archive_flag_spec='$convenience'
11649 fi
11650 archive_cmds_need_lc=yes
11651 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11652 # -brtl affects multiple linker settings, -berok does not and is overridden later
11653 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11654 if test svr4 != "$with_aix_soname"; then
11655 # This is similar to how AIX traditionally builds its shared libraries.
11656 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11657 fi
11658 if test aix != "$with_aix_soname"; then
11659 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11660 else
11661 # used by -dlpreopen to get the symbols
11662 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11663 fi
11664 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11665 fi
11666 fi
11667 ;;
11668
11669 amigaos*)
11670 case $host_cpu in
11671 powerpc)
11672 # see comment about AmigaOS4 .so support
11673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11674 archive_expsym_cmds=''
11675 ;;
11676 m68k)
11677 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)'
11678 hardcode_libdir_flag_spec='-L$libdir'
11679 hardcode_minus_L=yes
11680 ;;
11681 esac
11682 ;;
11683
11684 bsdi[45]*)
11685 export_dynamic_flag_spec=-rdynamic
11686 ;;
11687
11688 cygwin* | mingw* | pw32* | cegcc*)
11689 # When not using gcc, we currently assume that we are using
11690 # Microsoft Visual C++.
11691 # hardcode_libdir_flag_spec is actually meaningless, as there is
11692 # no search path for DLLs.
11693 case $cc_basename in
11694 cl*)
11695 # Native MSVC
11696 hardcode_libdir_flag_spec=' '
11697 allow_undefined_flag=unsupported
11698 always_export_symbols=yes
11699 file_list_spec='@'
11700 # Tell ltmain to make .lib files, not .a files.
11701 libext=lib
11702 # Tell ltmain to make .dll files, not .so files.
11703 shrext_cmds=.dll
11704 # FIXME: Setting linknames here is a bad hack.
11705 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11706 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11707 cp "$export_symbols" "$output_objdir/$soname.def";
11708 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11709 else
11710 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11711 fi~
11712 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11713 linknames='
11714 # The linker will not automatically build a static lib if we build a DLL.
11715 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11716 enable_shared_with_static_runtimes=yes
11717 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11718 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11719 # Don't use ranlib
11720 old_postinstall_cmds='chmod 644 $oldlib'
11721 postlink_cmds='lt_outputfile="@OUTPUT@"~
11722 lt_tool_outputfile="@TOOL_OUTPUT@"~
11723 case $lt_outputfile in
11724 *.exe|*.EXE) ;;
11725 *)
11726 lt_outputfile=$lt_outputfile.exe
11727 lt_tool_outputfile=$lt_tool_outputfile.exe
11728 ;;
11729 esac~
11730 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11731 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11732 $RM "$lt_outputfile.manifest";
11733 fi'
11734 ;;
11735 *)
11736 # Assume MSVC wrapper
11737 hardcode_libdir_flag_spec=' '
11738 allow_undefined_flag=unsupported
11739 # Tell ltmain to make .lib files, not .a files.
11740 libext=lib
11741 # Tell ltmain to make .dll files, not .so files.
11742 shrext_cmds=.dll
11743 # FIXME: Setting linknames here is a bad hack.
11744 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11745 # The linker will automatically build a .lib file if we build a DLL.
11746 old_archive_from_new_cmds='true'
11747 # FIXME: Should let the user specify the lib program.
11748 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11749 enable_shared_with_static_runtimes=yes
11750 ;;
11751 esac
11752 ;;
11753
11754 darwin* | rhapsody*)
11755
11756
11757 archive_cmds_need_lc=no
11758 hardcode_direct=no
11759 hardcode_automatic=yes
11760 hardcode_shlibpath_var=unsupported
11761 if test yes = "$lt_cv_ld_force_load"; then
11762 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11763
11764 else
11765 whole_archive_flag_spec=''
11766 fi
11767 link_all_deplibs=yes
11768 allow_undefined_flag=$_lt_dar_allow_undefined
11769 case $cc_basename in
11770 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11771 *) _lt_dar_can_shared=$GCC ;;
11772 esac
11773 if test yes = "$_lt_dar_can_shared"; then
11774 output_verbose_link_cmd=func_echo_all
11775 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11776 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11777 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"
11778 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"
11779
11780 else
11781 ld_shlibs=no
11782 fi
11783
11784 ;;
11785
11786 dgux*)
11787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11788 hardcode_libdir_flag_spec='-L$libdir'
11789 hardcode_shlibpath_var=no
11790 ;;
11791
11792 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11793 # support. Future versions do this automatically, but an explicit c++rt0.o
11794 # does not break anything, and helps significantly (at the cost of a little
11795 # extra space).
11796 freebsd2.2*)
11797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11798 hardcode_libdir_flag_spec='-R$libdir'
11799 hardcode_direct=yes
11800 hardcode_shlibpath_var=no
11801 ;;
11802
11803 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11804 freebsd2.*)
11805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11806 hardcode_direct=yes
11807 hardcode_minus_L=yes
11808 hardcode_shlibpath_var=no
11809 ;;
11810
11811 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11812 freebsd* | dragonfly*)
11813 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11814 hardcode_libdir_flag_spec='-R$libdir'
11815 hardcode_direct=yes
11816 hardcode_shlibpath_var=no
11817 ;;
11818
11819 hpux9*)
11820 if test yes = "$GCC"; then
11821 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11822 else
11823 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11824 fi
11825 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11826 hardcode_libdir_separator=:
11827 hardcode_direct=yes
11828
11829 # hardcode_minus_L: Not really in the search PATH,
11830 # but as the default location of the library.
11831 hardcode_minus_L=yes
11832 export_dynamic_flag_spec='$wl-E'
11833 ;;
11834
11835 hpux10*)
11836 if test yes,no = "$GCC,$with_gnu_ld"; then
11837 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11838 else
11839 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11840 fi
11841 if test no = "$with_gnu_ld"; then
11842 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11843 hardcode_libdir_separator=:
11844 hardcode_direct=yes
11845 hardcode_direct_absolute=yes
11846 export_dynamic_flag_spec='$wl-E'
11847 # hardcode_minus_L: Not really in the search PATH,
11848 # but as the default location of the library.
11849 hardcode_minus_L=yes
11850 fi
11851 ;;
11852
11853 hpux11*)
11854 if test yes,no = "$GCC,$with_gnu_ld"; then
11855 case $host_cpu in
11856 hppa*64*)
11857 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11858 ;;
11859 ia64*)
11860 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11861 ;;
11862 *)
11863 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11864 ;;
11865 esac
11866 else
11867 case $host_cpu in
11868 hppa*64*)
11869 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11870 ;;
11871 ia64*)
11872 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11873 ;;
11874 *)
11875
11876 # Older versions of the 11.00 compiler do not understand -b yet
11877 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11879 $as_echo_n "checking if $CC understands -b... " >&6; }
11880 if ${lt_cv_prog_compiler__b+:} false; then :
11881 $as_echo_n "(cached) " >&6
11882 else
11883 lt_cv_prog_compiler__b=no
11884 save_LDFLAGS=$LDFLAGS
11885 LDFLAGS="$LDFLAGS -b"
11886 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11887 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11888 # The linker can only warn and ignore the option if not recognized
11889 # So say no if there are warnings
11890 if test -s conftest.err; then
11891 # Append any errors to the config.log.
11892 cat conftest.err 1>&5
11893 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11895 if diff conftest.exp conftest.er2 >/dev/null; then
11896 lt_cv_prog_compiler__b=yes
11897 fi
11898 else
11899 lt_cv_prog_compiler__b=yes
11900 fi
11901 fi
11902 $RM -r conftest*
11903 LDFLAGS=$save_LDFLAGS
11904
11905 fi
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11907 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11908
11909 if test yes = "$lt_cv_prog_compiler__b"; then
11910 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11911 else
11912 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11913 fi
11914
11915 ;;
11916 esac
11917 fi
11918 if test no = "$with_gnu_ld"; then
11919 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11920 hardcode_libdir_separator=:
11921
11922 case $host_cpu in
11923 hppa*64*|ia64*)
11924 hardcode_direct=no
11925 hardcode_shlibpath_var=no
11926 ;;
11927 *)
11928 hardcode_direct=yes
11929 hardcode_direct_absolute=yes
11930 export_dynamic_flag_spec='$wl-E'
11931
11932 # hardcode_minus_L: Not really in the search PATH,
11933 # but as the default location of the library.
11934 hardcode_minus_L=yes
11935 ;;
11936 esac
11937 fi
11938 ;;
11939
11940 irix5* | irix6* | nonstopux*)
11941 if test yes = "$GCC"; then
11942 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11943 # Try to use the -exported_symbol ld option, if it does not
11944 # work, assume that -exports_file does not work either and
11945 # implicitly export all symbols.
11946 # This should be the same for all languages, so no per-tag cache variable.
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11948 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11949 if ${lt_cv_irix_exported_symbol+:} false; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 save_LDFLAGS=$LDFLAGS
11953 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11956 int foo (void) { return 0; }
11957 _ACEOF
11958 if ac_fn_c_try_link "$LINENO"; then :
11959 lt_cv_irix_exported_symbol=yes
11960 else
11961 lt_cv_irix_exported_symbol=no
11962 fi
11963 rm -f core conftest.err conftest.$ac_objext \
11964 conftest$ac_exeext conftest.$ac_ext
11965 LDFLAGS=$save_LDFLAGS
11966 fi
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11968 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11969 if test yes = "$lt_cv_irix_exported_symbol"; then
11970 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11971 fi
11972 else
11973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11974 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11975 fi
11976 archive_cmds_need_lc='no'
11977 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11978 hardcode_libdir_separator=:
11979 inherit_rpath=yes
11980 link_all_deplibs=yes
11981 ;;
11982
11983 linux*)
11984 case $cc_basename in
11985 tcc*)
11986 # Fabrice Bellard et al's Tiny C Compiler
11987 ld_shlibs=yes
11988 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11989 ;;
11990 esac
11991 ;;
11992
11993 netbsd*)
11994 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11995 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11996 else
11997 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11998 fi
11999 hardcode_libdir_flag_spec='-R$libdir'
12000 hardcode_direct=yes
12001 hardcode_shlibpath_var=no
12002 ;;
12003
12004 newsos6)
12005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12006 hardcode_direct=yes
12007 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12008 hardcode_libdir_separator=:
12009 hardcode_shlibpath_var=no
12010 ;;
12011
12012 *nto* | *qnx*)
12013 ;;
12014
12015 openbsd* | bitrig*)
12016 if test -f /usr/libexec/ld.so; then
12017 hardcode_direct=yes
12018 hardcode_shlibpath_var=no
12019 hardcode_direct_absolute=yes
12020 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12021 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12022 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12023 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12024 export_dynamic_flag_spec='$wl-E'
12025 else
12026 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12027 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12028 fi
12029 else
12030 ld_shlibs=no
12031 fi
12032 ;;
12033
12034 os2*)
12035 hardcode_libdir_flag_spec='-L$libdir'
12036 hardcode_minus_L=yes
12037 allow_undefined_flag=unsupported
12038 shrext_cmds=.dll
12039 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12040 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12041 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12042 $ECHO EXPORTS >> $output_objdir/$libname.def~
12043 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12044 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12045 emximp -o $lib $output_objdir/$libname.def'
12046 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12047 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12048 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12049 $ECHO EXPORTS >> $output_objdir/$libname.def~
12050 prefix_cmds="$SED"~
12051 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12052 prefix_cmds="$prefix_cmds -e 1d";
12053 fi~
12054 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12055 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12056 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12057 emximp -o $lib $output_objdir/$libname.def'
12058 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12059 enable_shared_with_static_runtimes=yes
12060 ;;
12061
12062 osf3*)
12063 if test yes = "$GCC"; then
12064 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12065 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12066 else
12067 allow_undefined_flag=' -expect_unresolved \*'
12068 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12069 fi
12070 archive_cmds_need_lc='no'
12071 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12072 hardcode_libdir_separator=:
12073 ;;
12074
12075 osf4* | osf5*) # as osf3* with the addition of -msym flag
12076 if test yes = "$GCC"; then
12077 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12078 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12079 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12080 else
12081 allow_undefined_flag=' -expect_unresolved \*'
12082 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12083 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~
12084 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
12085
12086 # Both c and cxx compiler support -rpath directly
12087 hardcode_libdir_flag_spec='-rpath $libdir'
12088 fi
12089 archive_cmds_need_lc='no'
12090 hardcode_libdir_separator=:
12091 ;;
12092
12093 solaris*)
12094 no_undefined_flag=' -z defs'
12095 if test yes = "$GCC"; then
12096 wlarc='$wl'
12097 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12098 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12099 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12100 else
12101 case `$CC -V 2>&1` in
12102 *"Compilers 5.0"*)
12103 wlarc=''
12104 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12105 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12106 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12107 ;;
12108 *)
12109 wlarc='$wl'
12110 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12111 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12112 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12113 ;;
12114 esac
12115 fi
12116 hardcode_libdir_flag_spec='-R$libdir'
12117 hardcode_shlibpath_var=no
12118 case $host_os in
12119 solaris2.[0-5] | solaris2.[0-5].*) ;;
12120 *)
12121 # The compiler driver will combine and reorder linker options,
12122 # but understands '-z linker_flag'. GCC discards it without '$wl',
12123 # but is careful enough not to reorder.
12124 # Supported since Solaris 2.6 (maybe 2.5.1?)
12125 if test yes = "$GCC"; then
12126 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12127 else
12128 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12129 fi
12130 ;;
12131 esac
12132 link_all_deplibs=yes
12133 ;;
12134
12135 sunos4*)
12136 if test sequent = "$host_vendor"; then
12137 # Use $CC to link under sequent, because it throws in some extra .o
12138 # files that make .init and .fini sections work.
12139 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12140 else
12141 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12142 fi
12143 hardcode_libdir_flag_spec='-L$libdir'
12144 hardcode_direct=yes
12145 hardcode_minus_L=yes
12146 hardcode_shlibpath_var=no
12147 ;;
12148
12149 sysv4)
12150 case $host_vendor in
12151 sni)
12152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12153 hardcode_direct=yes # is this really true???
12154 ;;
12155 siemens)
12156 ## LD is ld it makes a PLAMLIB
12157 ## CC just makes a GrossModule.
12158 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12159 reload_cmds='$CC -r -o $output$reload_objs'
12160 hardcode_direct=no
12161 ;;
12162 motorola)
12163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12164 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12165 ;;
12166 esac
12167 runpath_var='LD_RUN_PATH'
12168 hardcode_shlibpath_var=no
12169 ;;
12170
12171 sysv4.3*)
12172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12173 hardcode_shlibpath_var=no
12174 export_dynamic_flag_spec='-Bexport'
12175 ;;
12176
12177 sysv4*MP*)
12178 if test -d /usr/nec; then
12179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12180 hardcode_shlibpath_var=no
12181 runpath_var=LD_RUN_PATH
12182 hardcode_runpath_var=yes
12183 ld_shlibs=yes
12184 fi
12185 ;;
12186
12187 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12188 no_undefined_flag='$wl-z,text'
12189 archive_cmds_need_lc=no
12190 hardcode_shlibpath_var=no
12191 runpath_var='LD_RUN_PATH'
12192
12193 if test yes = "$GCC"; then
12194 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12195 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12196 else
12197 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12198 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12199 fi
12200 ;;
12201
12202 sysv5* | sco3.2v5* | sco5v6*)
12203 # Note: We CANNOT use -z defs as we might desire, because we do not
12204 # link with -lc, and that would cause any symbols used from libc to
12205 # always be unresolved, which means just about no library would
12206 # ever link correctly. If we're not using GNU ld we use -z text
12207 # though, which does catch some bad symbols but isn't as heavy-handed
12208 # as -z defs.
12209 no_undefined_flag='$wl-z,text'
12210 allow_undefined_flag='$wl-z,nodefs'
12211 archive_cmds_need_lc=no
12212 hardcode_shlibpath_var=no
12213 hardcode_libdir_flag_spec='$wl-R,$libdir'
12214 hardcode_libdir_separator=':'
12215 link_all_deplibs=yes
12216 export_dynamic_flag_spec='$wl-Bexport'
12217 runpath_var='LD_RUN_PATH'
12218
12219 if test yes = "$GCC"; then
12220 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12221 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12222 else
12223 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12224 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12225 fi
12226 ;;
12227
12228 uts4*)
12229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12230 hardcode_libdir_flag_spec='-L$libdir'
12231 hardcode_shlibpath_var=no
12232 ;;
12233
12234 *)
12235 ld_shlibs=no
12236 ;;
12237 esac
12238
12239 if test sni = "$host_vendor"; then
12240 case $host in
12241 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12242 export_dynamic_flag_spec='$wl-Blargedynsym'
12243 ;;
12244 esac
12245 fi
12246 fi
12247
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12249 $as_echo "$ld_shlibs" >&6; }
12250 test no = "$ld_shlibs" && can_build_shared=no
12251
12252 with_gnu_ld=$with_gnu_ld
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268 #
12269 # Do we need to explicitly link libc?
12270 #
12271 case "x$archive_cmds_need_lc" in
12272 x|xyes)
12273 # Assume -lc should be added
12274 archive_cmds_need_lc=yes
12275
12276 if test yes,yes = "$GCC,$enable_shared"; then
12277 case $archive_cmds in
12278 *'~'*)
12279 # FIXME: we may have to deal with multi-command sequences.
12280 ;;
12281 '$CC '*)
12282 # Test whether the compiler implicitly links with -lc since on some
12283 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12284 # to ld, don't add -lc before -lgcc.
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12286 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12287 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12288 $as_echo_n "(cached) " >&6
12289 else
12290 $RM conftest*
12291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12292
12293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12294 (eval $ac_compile) 2>&5
12295 ac_status=$?
12296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12297 test $ac_status = 0; } 2>conftest.err; then
12298 soname=conftest
12299 lib=conftest
12300 libobjs=conftest.$ac_objext
12301 deplibs=
12302 wl=$lt_prog_compiler_wl
12303 pic_flag=$lt_prog_compiler_pic
12304 compiler_flags=-v
12305 linker_flags=-v
12306 verstring=
12307 output_objdir=.
12308 libname=conftest
12309 lt_save_allow_undefined_flag=$allow_undefined_flag
12310 allow_undefined_flag=
12311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12312 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12313 ac_status=$?
12314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12315 test $ac_status = 0; }
12316 then
12317 lt_cv_archive_cmds_need_lc=no
12318 else
12319 lt_cv_archive_cmds_need_lc=yes
12320 fi
12321 allow_undefined_flag=$lt_save_allow_undefined_flag
12322 else
12323 cat conftest.err 1>&5
12324 fi
12325 $RM conftest*
12326
12327 fi
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12329 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12330 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12331 ;;
12332 esac
12333 fi
12334 ;;
12335 esac
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12489 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12490
12491 if test yes = "$GCC"; then
12492 case $host_os in
12493 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12494 *) lt_awk_arg='/^libraries:/' ;;
12495 esac
12496 case $host_os in
12497 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12498 *) lt_sed_strip_eq='s|=/|/|g' ;;
12499 esac
12500 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12501 case $lt_search_path_spec in
12502 *\;*)
12503 # if the path contains ";" then we assume it to be the separator
12504 # otherwise default to the standard path separator (i.e. ":") - it is
12505 # assumed that no part of a normal pathname contains ";" but that should
12506 # okay in the real world where ";" in dirpaths is itself problematic.
12507 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12508 ;;
12509 *)
12510 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12511 ;;
12512 esac
12513 # Ok, now we have the path, separated by spaces, we can step through it
12514 # and add multilib dir if necessary...
12515 lt_tmp_lt_search_path_spec=
12516 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12517 # ...but if some path component already ends with the multilib dir we assume
12518 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12519 case "$lt_multi_os_dir; $lt_search_path_spec " in
12520 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12521 lt_multi_os_dir=
12522 ;;
12523 esac
12524 for lt_sys_path in $lt_search_path_spec; do
12525 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12526 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12527 elif test -n "$lt_multi_os_dir"; then
12528 test -d "$lt_sys_path" && \
12529 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12530 fi
12531 done
12532 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12533 BEGIN {RS = " "; FS = "/|\n";} {
12534 lt_foo = "";
12535 lt_count = 0;
12536 for (lt_i = NF; lt_i > 0; lt_i--) {
12537 if ($lt_i != "" && $lt_i != ".") {
12538 if ($lt_i == "..") {
12539 lt_count++;
12540 } else {
12541 if (lt_count == 0) {
12542 lt_foo = "/" $lt_i lt_foo;
12543 } else {
12544 lt_count--;
12545 }
12546 }
12547 }
12548 }
12549 if (lt_foo != "") { lt_freq[lt_foo]++; }
12550 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12551 }'`
12552 # AWK program above erroneously prepends '/' to C:/dos/paths
12553 # for these hosts.
12554 case $host_os in
12555 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12556 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12557 esac
12558 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12559 else
12560 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12561 fi
12562 library_names_spec=
12563 libname_spec='lib$name'
12564 soname_spec=
12565 shrext_cmds=.so
12566 postinstall_cmds=
12567 postuninstall_cmds=
12568 finish_cmds=
12569 finish_eval=
12570 shlibpath_var=
12571 shlibpath_overrides_runpath=unknown
12572 version_type=none
12573 dynamic_linker="$host_os ld.so"
12574 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12575 need_lib_prefix=unknown
12576 hardcode_into_libs=no
12577
12578 # when you set need_version to no, make sure it does not cause -set_version
12579 # flags to be left without arguments
12580 need_version=unknown
12581
12582
12583
12584 case $host_os in
12585 aix3*)
12586 version_type=linux # correct to gnu/linux during the next big refactor
12587 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12588 shlibpath_var=LIBPATH
12589
12590 # AIX 3 has no versioning support, so we append a major version to the name.
12591 soname_spec='$libname$release$shared_ext$major'
12592 ;;
12593
12594 aix[4-9]*)
12595 version_type=linux # correct to gnu/linux during the next big refactor
12596 need_lib_prefix=no
12597 need_version=no
12598 hardcode_into_libs=yes
12599 if test ia64 = "$host_cpu"; then
12600 # AIX 5 supports IA64
12601 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12602 shlibpath_var=LD_LIBRARY_PATH
12603 else
12604 # With GCC up to 2.95.x, collect2 would create an import file
12605 # for dependence libraries. The import file would start with
12606 # the line '#! .'. This would cause the generated library to
12607 # depend on '.', always an invalid library. This was fixed in
12608 # development snapshots of GCC prior to 3.0.
12609 case $host_os in
12610 aix4 | aix4.[01] | aix4.[01].*)
12611 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12612 echo ' yes '
12613 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12614 :
12615 else
12616 can_build_shared=no
12617 fi
12618 ;;
12619 esac
12620 # Using Import Files as archive members, it is possible to support
12621 # filename-based versioning of shared library archives on AIX. While
12622 # this would work for both with and without runtime linking, it will
12623 # prevent static linking of such archives. So we do filename-based
12624 # shared library versioning with .so extension only, which is used
12625 # when both runtime linking and shared linking is enabled.
12626 # Unfortunately, runtime linking may impact performance, so we do
12627 # not want this to be the default eventually. Also, we use the
12628 # versioned .so libs for executables only if there is the -brtl
12629 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12630 # To allow for filename-based versioning support, we need to create
12631 # libNAME.so.V as an archive file, containing:
12632 # *) an Import File, referring to the versioned filename of the
12633 # archive as well as the shared archive member, telling the
12634 # bitwidth (32 or 64) of that shared object, and providing the
12635 # list of exported symbols of that shared object, eventually
12636 # decorated with the 'weak' keyword
12637 # *) the shared object with the F_LOADONLY flag set, to really avoid
12638 # it being seen by the linker.
12639 # At run time we better use the real file rather than another symlink,
12640 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12641
12642 case $with_aix_soname,$aix_use_runtimelinking in
12643 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12644 # soname into executable. Probably we can add versioning support to
12645 # collect2, so additional links can be useful in future.
12646 aix,yes) # traditional libtool
12647 dynamic_linker='AIX unversionable lib.so'
12648 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12649 # instead of lib<name>.a to let people know that these are not
12650 # typical AIX shared libraries.
12651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12652 ;;
12653 aix,no) # traditional AIX only
12654 dynamic_linker='AIX lib.a(lib.so.V)'
12655 # We preserve .a as extension for shared libraries through AIX4.2
12656 # and later when we are not doing run time linking.
12657 library_names_spec='$libname$release.a $libname.a'
12658 soname_spec='$libname$release$shared_ext$major'
12659 ;;
12660 svr4,*) # full svr4 only
12661 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12662 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12663 # We do not specify a path in Import Files, so LIBPATH fires.
12664 shlibpath_overrides_runpath=yes
12665 ;;
12666 *,yes) # both, prefer svr4
12667 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12668 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12669 # unpreferred sharedlib libNAME.a needs extra handling
12670 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12671 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12672 # We do not specify a path in Import Files, so LIBPATH fires.
12673 shlibpath_overrides_runpath=yes
12674 ;;
12675 *,no) # both, prefer aix
12676 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12677 library_names_spec='$libname$release.a $libname.a'
12678 soname_spec='$libname$release$shared_ext$major'
12679 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12680 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12681 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12682 ;;
12683 esac
12684 shlibpath_var=LIBPATH
12685 fi
12686 ;;
12687
12688 amigaos*)
12689 case $host_cpu in
12690 powerpc)
12691 # Since July 2007 AmigaOS4 officially supports .so libraries.
12692 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12694 ;;
12695 m68k)
12696 library_names_spec='$libname.ixlibrary $libname.a'
12697 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12698 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12699 ;;
12700 esac
12701 ;;
12702
12703 beos*)
12704 library_names_spec='$libname$shared_ext'
12705 dynamic_linker="$host_os ld.so"
12706 shlibpath_var=LIBRARY_PATH
12707 ;;
12708
12709 bsdi[45]*)
12710 version_type=linux # correct to gnu/linux during the next big refactor
12711 need_version=no
12712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12713 soname_spec='$libname$release$shared_ext$major'
12714 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12715 shlibpath_var=LD_LIBRARY_PATH
12716 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12717 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12718 # the default ld.so.conf also contains /usr/contrib/lib and
12719 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12720 # libtool to hard-code these into programs
12721 ;;
12722
12723 cygwin* | mingw* | pw32* | cegcc*)
12724 version_type=windows
12725 shrext_cmds=.dll
12726 need_version=no
12727 need_lib_prefix=no
12728
12729 case $GCC,$cc_basename in
12730 yes,*)
12731 # gcc
12732 library_names_spec='$libname.dll.a'
12733 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12734 postinstall_cmds='base_file=`basename \$file`~
12735 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12736 dldir=$destdir/`dirname \$dlpath`~
12737 test -d \$dldir || mkdir -p \$dldir~
12738 $install_prog $dir/$dlname \$dldir/$dlname~
12739 chmod a+x \$dldir/$dlname~
12740 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12741 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12742 fi'
12743 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12744 dlpath=$dir/\$dldll~
12745 $RM \$dlpath'
12746 shlibpath_overrides_runpath=yes
12747
12748 case $host_os in
12749 cygwin*)
12750 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12751 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12752
12753 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12754 ;;
12755 mingw* | cegcc*)
12756 # MinGW DLLs use traditional 'lib' prefix
12757 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12758 ;;
12759 pw32*)
12760 # pw32 DLLs use 'pw' prefix rather than 'lib'
12761 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12762 ;;
12763 esac
12764 dynamic_linker='Win32 ld.exe'
12765 ;;
12766
12767 *,cl*)
12768 # Native MSVC
12769 libname_spec='$name'
12770 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12771 library_names_spec='$libname.dll.lib'
12772
12773 case $build_os in
12774 mingw*)
12775 sys_lib_search_path_spec=
12776 lt_save_ifs=$IFS
12777 IFS=';'
12778 for lt_path in $LIB
12779 do
12780 IFS=$lt_save_ifs
12781 # Let DOS variable expansion print the short 8.3 style file name.
12782 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12783 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12784 done
12785 IFS=$lt_save_ifs
12786 # Convert to MSYS style.
12787 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12788 ;;
12789 cygwin*)
12790 # Convert to unix form, then to dos form, then back to unix form
12791 # but this time dos style (no spaces!) so that the unix form looks
12792 # like /cygdrive/c/PROGRA~1:/cygdr...
12793 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12794 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12795 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12796 ;;
12797 *)
12798 sys_lib_search_path_spec=$LIB
12799 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12800 # It is most probably a Windows format PATH.
12801 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12802 else
12803 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12804 fi
12805 # FIXME: find the short name or the path components, as spaces are
12806 # common. (e.g. "Program Files" -> "PROGRA~1")
12807 ;;
12808 esac
12809
12810 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12811 postinstall_cmds='base_file=`basename \$file`~
12812 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12813 dldir=$destdir/`dirname \$dlpath`~
12814 test -d \$dldir || mkdir -p \$dldir~
12815 $install_prog $dir/$dlname \$dldir/$dlname'
12816 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12817 dlpath=$dir/\$dldll~
12818 $RM \$dlpath'
12819 shlibpath_overrides_runpath=yes
12820 dynamic_linker='Win32 link.exe'
12821 ;;
12822
12823 *)
12824 # Assume MSVC wrapper
12825 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12826 dynamic_linker='Win32 ld.exe'
12827 ;;
12828 esac
12829 # FIXME: first we should search . and the directory the executable is in
12830 shlibpath_var=PATH
12831 ;;
12832
12833 darwin* | rhapsody*)
12834 dynamic_linker="$host_os dyld"
12835 version_type=darwin
12836 need_lib_prefix=no
12837 need_version=no
12838 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12839 soname_spec='$libname$release$major$shared_ext'
12840 shlibpath_overrides_runpath=yes
12841 shlibpath_var=DYLD_LIBRARY_PATH
12842 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12843
12844 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12845 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12846 ;;
12847
12848 dgux*)
12849 version_type=linux # correct to gnu/linux during the next big refactor
12850 need_lib_prefix=no
12851 need_version=no
12852 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12853 soname_spec='$libname$release$shared_ext$major'
12854 shlibpath_var=LD_LIBRARY_PATH
12855 ;;
12856
12857 freebsd* | dragonfly*)
12858 # DragonFly does not have aout. When/if they implement a new
12859 # versioning mechanism, adjust this.
12860 if test -x /usr/bin/objformat; then
12861 objformat=`/usr/bin/objformat`
12862 else
12863 case $host_os in
12864 freebsd[23].*) objformat=aout ;;
12865 *) objformat=elf ;;
12866 esac
12867 fi
12868 version_type=freebsd-$objformat
12869 case $version_type in
12870 freebsd-elf*)
12871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12872 soname_spec='$libname$release$shared_ext$major'
12873 need_version=no
12874 need_lib_prefix=no
12875 ;;
12876 freebsd-*)
12877 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12878 need_version=yes
12879 ;;
12880 esac
12881 shlibpath_var=LD_LIBRARY_PATH
12882 case $host_os in
12883 freebsd2.*)
12884 shlibpath_overrides_runpath=yes
12885 ;;
12886 freebsd3.[01]* | freebsdelf3.[01]*)
12887 shlibpath_overrides_runpath=yes
12888 hardcode_into_libs=yes
12889 ;;
12890 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12891 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12892 shlibpath_overrides_runpath=no
12893 hardcode_into_libs=yes
12894 ;;
12895 *) # from 4.6 on, and DragonFly
12896 shlibpath_overrides_runpath=yes
12897 hardcode_into_libs=yes
12898 ;;
12899 esac
12900 ;;
12901
12902 haiku*)
12903 version_type=linux # correct to gnu/linux during the next big refactor
12904 need_lib_prefix=no
12905 need_version=no
12906 dynamic_linker="$host_os runtime_loader"
12907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12908 soname_spec='$libname$release$shared_ext$major'
12909 shlibpath_var=LIBRARY_PATH
12910 shlibpath_overrides_runpath=no
12911 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12912 hardcode_into_libs=yes
12913 ;;
12914
12915 hpux9* | hpux10* | hpux11*)
12916 # Give a soname corresponding to the major version so that dld.sl refuses to
12917 # link against other versions.
12918 version_type=sunos
12919 need_lib_prefix=no
12920 need_version=no
12921 case $host_cpu in
12922 ia64*)
12923 shrext_cmds='.so'
12924 hardcode_into_libs=yes
12925 dynamic_linker="$host_os dld.so"
12926 shlibpath_var=LD_LIBRARY_PATH
12927 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12929 soname_spec='$libname$release$shared_ext$major'
12930 if test 32 = "$HPUX_IA64_MODE"; then
12931 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12932 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12933 else
12934 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12935 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12936 fi
12937 ;;
12938 hppa*64*)
12939 shrext_cmds='.sl'
12940 hardcode_into_libs=yes
12941 dynamic_linker="$host_os dld.sl"
12942 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12945 soname_spec='$libname$release$shared_ext$major'
12946 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12948 ;;
12949 *)
12950 shrext_cmds='.sl'
12951 dynamic_linker="$host_os dld.sl"
12952 shlibpath_var=SHLIB_PATH
12953 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12955 soname_spec='$libname$release$shared_ext$major'
12956 ;;
12957 esac
12958 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12959 postinstall_cmds='chmod 555 $lib'
12960 # or fails outright, so override atomically:
12961 install_override_mode=555
12962 ;;
12963
12964 interix[3-9]*)
12965 version_type=linux # correct to gnu/linux during the next big refactor
12966 need_lib_prefix=no
12967 need_version=no
12968 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12969 soname_spec='$libname$release$shared_ext$major'
12970 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12971 shlibpath_var=LD_LIBRARY_PATH
12972 shlibpath_overrides_runpath=no
12973 hardcode_into_libs=yes
12974 ;;
12975
12976 irix5* | irix6* | nonstopux*)
12977 case $host_os in
12978 nonstopux*) version_type=nonstopux ;;
12979 *)
12980 if test yes = "$lt_cv_prog_gnu_ld"; then
12981 version_type=linux # correct to gnu/linux during the next big refactor
12982 else
12983 version_type=irix
12984 fi ;;
12985 esac
12986 need_lib_prefix=no
12987 need_version=no
12988 soname_spec='$libname$release$shared_ext$major'
12989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12990 case $host_os in
12991 irix5* | nonstopux*)
12992 libsuff= shlibsuff=
12993 ;;
12994 *)
12995 case $LD in # libtool.m4 will add one of these switches to LD
12996 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12997 libsuff= shlibsuff= libmagic=32-bit;;
12998 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12999 libsuff=32 shlibsuff=N32 libmagic=N32;;
13000 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13001 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13002 *) libsuff= shlibsuff= libmagic=never-match;;
13003 esac
13004 ;;
13005 esac
13006 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13007 shlibpath_overrides_runpath=no
13008 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13009 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13010 hardcode_into_libs=yes
13011 ;;
13012
13013 # No shared lib support for Linux oldld, aout, or coff.
13014 linux*oldld* | linux*aout* | linux*coff*)
13015 dynamic_linker=no
13016 ;;
13017
13018 linux*android*)
13019 version_type=none # Android doesn't support versioned libraries.
13020 need_lib_prefix=no
13021 need_version=no
13022 library_names_spec='$libname$release$shared_ext'
13023 soname_spec='$libname$release$shared_ext'
13024 finish_cmds=
13025 shlibpath_var=LD_LIBRARY_PATH
13026 shlibpath_overrides_runpath=yes
13027
13028 # This implies no fast_install, which is unacceptable.
13029 # Some rework will be needed to allow for fast_install
13030 # before this can be enabled.
13031 hardcode_into_libs=yes
13032
13033 dynamic_linker='Android linker'
13034 # Don't embed -rpath directories since the linker doesn't support them.
13035 hardcode_libdir_flag_spec='-L$libdir'
13036 ;;
13037
13038 # This must be glibc/ELF.
13039 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13040 version_type=linux # correct to gnu/linux during the next big refactor
13041 need_lib_prefix=no
13042 need_version=no
13043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13044 soname_spec='$libname$release$shared_ext$major'
13045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13046 shlibpath_var=LD_LIBRARY_PATH
13047 shlibpath_overrides_runpath=no
13048
13049 # Some binutils ld are patched to set DT_RUNPATH
13050 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13051 $as_echo_n "(cached) " >&6
13052 else
13053 lt_cv_shlibpath_overrides_runpath=no
13054 save_LDFLAGS=$LDFLAGS
13055 save_libdir=$libdir
13056 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13057 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13060
13061 int
13062 main ()
13063 {
13064
13065 ;
13066 return 0;
13067 }
13068 _ACEOF
13069 if ac_fn_c_try_link "$LINENO"; then :
13070 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13071 lt_cv_shlibpath_overrides_runpath=yes
13072 fi
13073 fi
13074 rm -f core conftest.err conftest.$ac_objext \
13075 conftest$ac_exeext conftest.$ac_ext
13076 LDFLAGS=$save_LDFLAGS
13077 libdir=$save_libdir
13078
13079 fi
13080
13081 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13082
13083 # This implies no fast_install, which is unacceptable.
13084 # Some rework will be needed to allow for fast_install
13085 # before this can be enabled.
13086 hardcode_into_libs=yes
13087
13088 # Ideally, we could use ldconfig to report *all* directores which are
13089 # searched for libraries, however this is still not possible. Aside from not
13090 # being certain /sbin/ldconfig is available, command
13091 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13092 # even though it is searched at run-time. Try to do the best guess by
13093 # appending ld.so.conf contents (and includes) to the search path.
13094 if test -f /etc/ld.so.conf; then
13095 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
13096 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13097 fi
13098
13099 # We used to test for /lib/ld.so.1 and disable shared libraries on
13100 # powerpc, because MkLinux only supported shared libraries with the
13101 # GNU dynamic linker. Since this was broken with cross compilers,
13102 # most powerpc-linux boxes support dynamic linking these days and
13103 # people can always --disable-shared, the test was removed, and we
13104 # assume the GNU/Linux dynamic linker is in use.
13105 dynamic_linker='GNU/Linux ld.so'
13106 ;;
13107
13108 netbsd*)
13109 version_type=sunos
13110 need_lib_prefix=no
13111 need_version=no
13112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13113 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13115 dynamic_linker='NetBSD (a.out) ld.so'
13116 else
13117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13118 soname_spec='$libname$release$shared_ext$major'
13119 dynamic_linker='NetBSD ld.elf_so'
13120 fi
13121 shlibpath_var=LD_LIBRARY_PATH
13122 shlibpath_overrides_runpath=yes
13123 hardcode_into_libs=yes
13124 ;;
13125
13126 newsos6)
13127 version_type=linux # correct to gnu/linux during the next big refactor
13128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13129 shlibpath_var=LD_LIBRARY_PATH
13130 shlibpath_overrides_runpath=yes
13131 ;;
13132
13133 *nto* | *qnx*)
13134 version_type=qnx
13135 need_lib_prefix=no
13136 need_version=no
13137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13138 soname_spec='$libname$release$shared_ext$major'
13139 shlibpath_var=LD_LIBRARY_PATH
13140 shlibpath_overrides_runpath=no
13141 hardcode_into_libs=yes
13142 dynamic_linker='ldqnx.so'
13143 ;;
13144
13145 openbsd* | bitrig*)
13146 version_type=sunos
13147 sys_lib_dlsearch_path_spec=/usr/lib
13148 need_lib_prefix=no
13149 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13150 need_version=no
13151 else
13152 need_version=yes
13153 fi
13154 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13156 shlibpath_var=LD_LIBRARY_PATH
13157 shlibpath_overrides_runpath=yes
13158 ;;
13159
13160 os2*)
13161 libname_spec='$name'
13162 version_type=windows
13163 shrext_cmds=.dll
13164 need_version=no
13165 need_lib_prefix=no
13166 # OS/2 can only load a DLL with a base name of 8 characters or less.
13167 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13168 v=$($ECHO $release$versuffix | tr -d .-);
13169 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13170 $ECHO $n$v`$shared_ext'
13171 library_names_spec='${libname}_dll.$libext'
13172 dynamic_linker='OS/2 ld.exe'
13173 shlibpath_var=BEGINLIBPATH
13174 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13175 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13176 postinstall_cmds='base_file=`basename \$file`~
13177 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13178 dldir=$destdir/`dirname \$dlpath`~
13179 test -d \$dldir || mkdir -p \$dldir~
13180 $install_prog $dir/$dlname \$dldir/$dlname~
13181 chmod a+x \$dldir/$dlname~
13182 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13183 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13184 fi'
13185 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13186 dlpath=$dir/\$dldll~
13187 $RM \$dlpath'
13188 ;;
13189
13190 osf3* | osf4* | osf5*)
13191 version_type=osf
13192 need_lib_prefix=no
13193 need_version=no
13194 soname_spec='$libname$release$shared_ext$major'
13195 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13196 shlibpath_var=LD_LIBRARY_PATH
13197 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13199 ;;
13200
13201 rdos*)
13202 dynamic_linker=no
13203 ;;
13204
13205 solaris*)
13206 version_type=linux # correct to gnu/linux during the next big refactor
13207 need_lib_prefix=no
13208 need_version=no
13209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13210 soname_spec='$libname$release$shared_ext$major'
13211 shlibpath_var=LD_LIBRARY_PATH
13212 shlibpath_overrides_runpath=yes
13213 hardcode_into_libs=yes
13214 # ldd complains unless libraries are executable
13215 postinstall_cmds='chmod +x $lib'
13216 ;;
13217
13218 sunos4*)
13219 version_type=sunos
13220 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13221 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13222 shlibpath_var=LD_LIBRARY_PATH
13223 shlibpath_overrides_runpath=yes
13224 if test yes = "$with_gnu_ld"; then
13225 need_lib_prefix=no
13226 fi
13227 need_version=yes
13228 ;;
13229
13230 sysv4 | sysv4.3*)
13231 version_type=linux # correct to gnu/linux during the next big refactor
13232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13233 soname_spec='$libname$release$shared_ext$major'
13234 shlibpath_var=LD_LIBRARY_PATH
13235 case $host_vendor in
13236 sni)
13237 shlibpath_overrides_runpath=no
13238 need_lib_prefix=no
13239 runpath_var=LD_RUN_PATH
13240 ;;
13241 siemens)
13242 need_lib_prefix=no
13243 ;;
13244 motorola)
13245 need_lib_prefix=no
13246 need_version=no
13247 shlibpath_overrides_runpath=no
13248 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13249 ;;
13250 esac
13251 ;;
13252
13253 sysv4*MP*)
13254 if test -d /usr/nec; then
13255 version_type=linux # correct to gnu/linux during the next big refactor
13256 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13257 soname_spec='$libname$shared_ext.$major'
13258 shlibpath_var=LD_LIBRARY_PATH
13259 fi
13260 ;;
13261
13262 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13263 version_type=sco
13264 need_lib_prefix=no
13265 need_version=no
13266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13267 soname_spec='$libname$release$shared_ext$major'
13268 shlibpath_var=LD_LIBRARY_PATH
13269 shlibpath_overrides_runpath=yes
13270 hardcode_into_libs=yes
13271 if test yes = "$with_gnu_ld"; then
13272 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13273 else
13274 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13275 case $host_os in
13276 sco3.2v5*)
13277 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13278 ;;
13279 esac
13280 fi
13281 sys_lib_dlsearch_path_spec='/usr/lib'
13282 ;;
13283
13284 tpf*)
13285 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13286 version_type=linux # correct to gnu/linux during the next big refactor
13287 need_lib_prefix=no
13288 need_version=no
13289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13290 shlibpath_var=LD_LIBRARY_PATH
13291 shlibpath_overrides_runpath=no
13292 hardcode_into_libs=yes
13293 ;;
13294
13295 uts4*)
13296 version_type=linux # correct to gnu/linux during the next big refactor
13297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13298 soname_spec='$libname$release$shared_ext$major'
13299 shlibpath_var=LD_LIBRARY_PATH
13300 ;;
13301
13302 *)
13303 dynamic_linker=no
13304 ;;
13305 esac
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13307 $as_echo "$dynamic_linker" >&6; }
13308 test no = "$dynamic_linker" && can_build_shared=no
13309
13310 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13311 if test yes = "$GCC"; then
13312 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13313 fi
13314
13315 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13316 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13317 fi
13318
13319 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13320 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13321 fi
13322
13323 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13324 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13325
13326 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13327 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13328
13329 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13330 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13429 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13430 hardcode_action=
13431 if test -n "$hardcode_libdir_flag_spec" ||
13432 test -n "$runpath_var" ||
13433 test yes = "$hardcode_automatic"; then
13434
13435 # We can hardcode non-existent directories.
13436 if test no != "$hardcode_direct" &&
13437 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13438 # have to relink, otherwise we might link with an installed library
13439 # when we should be linking with a yet-to-be-installed one
13440 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13441 test no != "$hardcode_minus_L"; then
13442 # Linking always hardcodes the temporary library directory.
13443 hardcode_action=relink
13444 else
13445 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13446 hardcode_action=immediate
13447 fi
13448 else
13449 # We cannot hardcode anything, or else we can only hardcode existing
13450 # directories.
13451 hardcode_action=unsupported
13452 fi
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13454 $as_echo "$hardcode_action" >&6; }
13455
13456 if test relink = "$hardcode_action" ||
13457 test yes = "$inherit_rpath"; then
13458 # Fast installation is not supported
13459 enable_fast_install=no
13460 elif test yes = "$shlibpath_overrides_runpath" ||
13461 test no = "$enable_shared"; then
13462 # Fast installation is not necessary
13463 enable_fast_install=needless
13464 fi
13465
13466
13467
13468
13469
13470
13471 if test yes != "$enable_dlopen"; then
13472 enable_dlopen=unknown
13473 enable_dlopen_self=unknown
13474 enable_dlopen_self_static=unknown
13475 else
13476 lt_cv_dlopen=no
13477 lt_cv_dlopen_libs=
13478
13479 case $host_os in
13480 beos*)
13481 lt_cv_dlopen=load_add_on
13482 lt_cv_dlopen_libs=
13483 lt_cv_dlopen_self=yes
13484 ;;
13485
13486 mingw* | pw32* | cegcc*)
13487 lt_cv_dlopen=LoadLibrary
13488 lt_cv_dlopen_libs=
13489 ;;
13490
13491 cygwin*)
13492 lt_cv_dlopen=dlopen
13493 lt_cv_dlopen_libs=
13494 ;;
13495
13496 darwin*)
13497 # if libdl is installed we need to link against it
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13499 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13500 if ${ac_cv_lib_dl_dlopen+:} false; then :
13501 $as_echo_n "(cached) " >&6
13502 else
13503 ac_check_lib_save_LIBS=$LIBS
13504 LIBS="-ldl $LIBS"
13505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13506 /* end confdefs.h. */
13507
13508 /* Override any GCC internal prototype to avoid an error.
13509 Use char because int might match the return type of a GCC
13510 builtin and then its argument prototype would still apply. */
13511 #ifdef __cplusplus
13512 extern "C"
13513 #endif
13514 char dlopen ();
13515 int
13516 main ()
13517 {
13518 return dlopen ();
13519 ;
13520 return 0;
13521 }
13522 _ACEOF
13523 if ac_fn_c_try_link "$LINENO"; then :
13524 ac_cv_lib_dl_dlopen=yes
13525 else
13526 ac_cv_lib_dl_dlopen=no
13527 fi
13528 rm -f core conftest.err conftest.$ac_objext \
13529 conftest$ac_exeext conftest.$ac_ext
13530 LIBS=$ac_check_lib_save_LIBS
13531 fi
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13533 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13534 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13535 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13536 else
13537
13538 lt_cv_dlopen=dyld
13539 lt_cv_dlopen_libs=
13540 lt_cv_dlopen_self=yes
13541
13542 fi
13543
13544 ;;
13545
13546 tpf*)
13547 # Don't try to run any link tests for TPF. We know it's impossible
13548 # because TPF is a cross-compiler, and we know how we open DSOs.
13549 lt_cv_dlopen=dlopen
13550 lt_cv_dlopen_libs=
13551 lt_cv_dlopen_self=no
13552 ;;
13553
13554 *)
13555 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13556 if test "x$ac_cv_func_shl_load" = xyes; then :
13557 lt_cv_dlopen=shl_load
13558 else
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13560 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13561 if ${ac_cv_lib_dld_shl_load+:} false; then :
13562 $as_echo_n "(cached) " >&6
13563 else
13564 ac_check_lib_save_LIBS=$LIBS
13565 LIBS="-ldld $LIBS"
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13568
13569 /* Override any GCC internal prototype to avoid an error.
13570 Use char because int might match the return type of a GCC
13571 builtin and then its argument prototype would still apply. */
13572 #ifdef __cplusplus
13573 extern "C"
13574 #endif
13575 char shl_load ();
13576 int
13577 main ()
13578 {
13579 return shl_load ();
13580 ;
13581 return 0;
13582 }
13583 _ACEOF
13584 if ac_fn_c_try_link "$LINENO"; then :
13585 ac_cv_lib_dld_shl_load=yes
13586 else
13587 ac_cv_lib_dld_shl_load=no
13588 fi
13589 rm -f core conftest.err conftest.$ac_objext \
13590 conftest$ac_exeext conftest.$ac_ext
13591 LIBS=$ac_check_lib_save_LIBS
13592 fi
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13594 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13595 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13596 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13597 else
13598 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13599 if test "x$ac_cv_func_dlopen" = xyes; then :
13600 lt_cv_dlopen=dlopen
13601 else
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13603 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13604 if ${ac_cv_lib_dl_dlopen+:} false; then :
13605 $as_echo_n "(cached) " >&6
13606 else
13607 ac_check_lib_save_LIBS=$LIBS
13608 LIBS="-ldl $LIBS"
13609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610 /* end confdefs.h. */
13611
13612 /* Override any GCC internal prototype to avoid an error.
13613 Use char because int might match the return type of a GCC
13614 builtin and then its argument prototype would still apply. */
13615 #ifdef __cplusplus
13616 extern "C"
13617 #endif
13618 char dlopen ();
13619 int
13620 main ()
13621 {
13622 return dlopen ();
13623 ;
13624 return 0;
13625 }
13626 _ACEOF
13627 if ac_fn_c_try_link "$LINENO"; then :
13628 ac_cv_lib_dl_dlopen=yes
13629 else
13630 ac_cv_lib_dl_dlopen=no
13631 fi
13632 rm -f core conftest.err conftest.$ac_objext \
13633 conftest$ac_exeext conftest.$ac_ext
13634 LIBS=$ac_check_lib_save_LIBS
13635 fi
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13637 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13638 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13639 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13640 else
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13642 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13643 if ${ac_cv_lib_svld_dlopen+:} false; then :
13644 $as_echo_n "(cached) " >&6
13645 else
13646 ac_check_lib_save_LIBS=$LIBS
13647 LIBS="-lsvld $LIBS"
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h. */
13650
13651 /* Override any GCC internal prototype to avoid an error.
13652 Use char because int might match the return type of a GCC
13653 builtin and then its argument prototype would still apply. */
13654 #ifdef __cplusplus
13655 extern "C"
13656 #endif
13657 char dlopen ();
13658 int
13659 main ()
13660 {
13661 return dlopen ();
13662 ;
13663 return 0;
13664 }
13665 _ACEOF
13666 if ac_fn_c_try_link "$LINENO"; then :
13667 ac_cv_lib_svld_dlopen=yes
13668 else
13669 ac_cv_lib_svld_dlopen=no
13670 fi
13671 rm -f core conftest.err conftest.$ac_objext \
13672 conftest$ac_exeext conftest.$ac_ext
13673 LIBS=$ac_check_lib_save_LIBS
13674 fi
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13676 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13677 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13678 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13679 else
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13681 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13682 if ${ac_cv_lib_dld_dld_link+:} false; then :
13683 $as_echo_n "(cached) " >&6
13684 else
13685 ac_check_lib_save_LIBS=$LIBS
13686 LIBS="-ldld $LIBS"
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13689
13690 /* Override any GCC internal prototype to avoid an error.
13691 Use char because int might match the return type of a GCC
13692 builtin and then its argument prototype would still apply. */
13693 #ifdef __cplusplus
13694 extern "C"
13695 #endif
13696 char dld_link ();
13697 int
13698 main ()
13699 {
13700 return dld_link ();
13701 ;
13702 return 0;
13703 }
13704 _ACEOF
13705 if ac_fn_c_try_link "$LINENO"; then :
13706 ac_cv_lib_dld_dld_link=yes
13707 else
13708 ac_cv_lib_dld_dld_link=no
13709 fi
13710 rm -f core conftest.err conftest.$ac_objext \
13711 conftest$ac_exeext conftest.$ac_ext
13712 LIBS=$ac_check_lib_save_LIBS
13713 fi
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13715 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13716 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13717 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13718 fi
13719
13720
13721 fi
13722
13723
13724 fi
13725
13726
13727 fi
13728
13729
13730 fi
13731
13732
13733 fi
13734
13735 ;;
13736 esac
13737
13738 if test no = "$lt_cv_dlopen"; then
13739 enable_dlopen=no
13740 else
13741 enable_dlopen=yes
13742 fi
13743
13744 case $lt_cv_dlopen in
13745 dlopen)
13746 save_CPPFLAGS=$CPPFLAGS
13747 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13748
13749 save_LDFLAGS=$LDFLAGS
13750 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13751
13752 save_LIBS=$LIBS
13753 LIBS="$lt_cv_dlopen_libs $LIBS"
13754
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13756 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13757 if ${lt_cv_dlopen_self+:} false; then :
13758 $as_echo_n "(cached) " >&6
13759 else
13760 if test yes = "$cross_compiling"; then :
13761 lt_cv_dlopen_self=cross
13762 else
13763 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13764 lt_status=$lt_dlunknown
13765 cat > conftest.$ac_ext <<_LT_EOF
13766 #line $LINENO "configure"
13767 #include "confdefs.h"
13768
13769 #if HAVE_DLFCN_H
13770 #include <dlfcn.h>
13771 #endif
13772
13773 #include <stdio.h>
13774
13775 #ifdef RTLD_GLOBAL
13776 # define LT_DLGLOBAL RTLD_GLOBAL
13777 #else
13778 # ifdef DL_GLOBAL
13779 # define LT_DLGLOBAL DL_GLOBAL
13780 # else
13781 # define LT_DLGLOBAL 0
13782 # endif
13783 #endif
13784
13785 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13786 find out it does not work in some platform. */
13787 #ifndef LT_DLLAZY_OR_NOW
13788 # ifdef RTLD_LAZY
13789 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13790 # else
13791 # ifdef DL_LAZY
13792 # define LT_DLLAZY_OR_NOW DL_LAZY
13793 # else
13794 # ifdef RTLD_NOW
13795 # define LT_DLLAZY_OR_NOW RTLD_NOW
13796 # else
13797 # ifdef DL_NOW
13798 # define LT_DLLAZY_OR_NOW DL_NOW
13799 # else
13800 # define LT_DLLAZY_OR_NOW 0
13801 # endif
13802 # endif
13803 # endif
13804 # endif
13805 #endif
13806
13807 /* When -fvisibility=hidden is used, assume the code has been annotated
13808 correspondingly for the symbols needed. */
13809 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13810 int fnord () __attribute__((visibility("default")));
13811 #endif
13812
13813 int fnord () { return 42; }
13814 int main ()
13815 {
13816 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13817 int status = $lt_dlunknown;
13818
13819 if (self)
13820 {
13821 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13822 else
13823 {
13824 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13825 else puts (dlerror ());
13826 }
13827 /* dlclose (self); */
13828 }
13829 else
13830 puts (dlerror ());
13831
13832 return status;
13833 }
13834 _LT_EOF
13835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13836 (eval $ac_link) 2>&5
13837 ac_status=$?
13838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13839 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13840 (./conftest; exit; ) >&5 2>/dev/null
13841 lt_status=$?
13842 case x$lt_status in
13843 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13844 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13845 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13846 esac
13847 else :
13848 # compilation failed
13849 lt_cv_dlopen_self=no
13850 fi
13851 fi
13852 rm -fr conftest*
13853
13854
13855 fi
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13857 $as_echo "$lt_cv_dlopen_self" >&6; }
13858
13859 if test yes = "$lt_cv_dlopen_self"; then
13860 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13862 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13863 if ${lt_cv_dlopen_self_static+:} false; then :
13864 $as_echo_n "(cached) " >&6
13865 else
13866 if test yes = "$cross_compiling"; then :
13867 lt_cv_dlopen_self_static=cross
13868 else
13869 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13870 lt_status=$lt_dlunknown
13871 cat > conftest.$ac_ext <<_LT_EOF
13872 #line $LINENO "configure"
13873 #include "confdefs.h"
13874
13875 #if HAVE_DLFCN_H
13876 #include <dlfcn.h>
13877 #endif
13878
13879 #include <stdio.h>
13880
13881 #ifdef RTLD_GLOBAL
13882 # define LT_DLGLOBAL RTLD_GLOBAL
13883 #else
13884 # ifdef DL_GLOBAL
13885 # define LT_DLGLOBAL DL_GLOBAL
13886 # else
13887 # define LT_DLGLOBAL 0
13888 # endif
13889 #endif
13890
13891 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13892 find out it does not work in some platform. */
13893 #ifndef LT_DLLAZY_OR_NOW
13894 # ifdef RTLD_LAZY
13895 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13896 # else
13897 # ifdef DL_LAZY
13898 # define LT_DLLAZY_OR_NOW DL_LAZY
13899 # else
13900 # ifdef RTLD_NOW
13901 # define LT_DLLAZY_OR_NOW RTLD_NOW
13902 # else
13903 # ifdef DL_NOW
13904 # define LT_DLLAZY_OR_NOW DL_NOW
13905 # else
13906 # define LT_DLLAZY_OR_NOW 0
13907 # endif
13908 # endif
13909 # endif
13910 # endif
13911 #endif
13912
13913 /* When -fvisibility=hidden is used, assume the code has been annotated
13914 correspondingly for the symbols needed. */
13915 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13916 int fnord () __attribute__((visibility("default")));
13917 #endif
13918
13919 int fnord () { return 42; }
13920 int main ()
13921 {
13922 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13923 int status = $lt_dlunknown;
13924
13925 if (self)
13926 {
13927 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13928 else
13929 {
13930 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13931 else puts (dlerror ());
13932 }
13933 /* dlclose (self); */
13934 }
13935 else
13936 puts (dlerror ());
13937
13938 return status;
13939 }
13940 _LT_EOF
13941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13942 (eval $ac_link) 2>&5
13943 ac_status=$?
13944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13945 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13946 (./conftest; exit; ) >&5 2>/dev/null
13947 lt_status=$?
13948 case x$lt_status in
13949 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13950 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13951 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13952 esac
13953 else :
13954 # compilation failed
13955 lt_cv_dlopen_self_static=no
13956 fi
13957 fi
13958 rm -fr conftest*
13959
13960
13961 fi
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13963 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13964 fi
13965
13966 CPPFLAGS=$save_CPPFLAGS
13967 LDFLAGS=$save_LDFLAGS
13968 LIBS=$save_LIBS
13969 ;;
13970 esac
13971
13972 case $lt_cv_dlopen_self in
13973 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13974 *) enable_dlopen_self=unknown ;;
13975 esac
13976
13977 case $lt_cv_dlopen_self_static in
13978 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13979 *) enable_dlopen_self_static=unknown ;;
13980 esac
13981 fi
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999 striplib=
14000 old_striplib=
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14002 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14003 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14004 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14005 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14007 $as_echo "yes" >&6; }
14008 else
14009 # FIXME - insert some real tests, host_os isn't really good enough
14010 case $host_os in
14011 darwin*)
14012 if test -n "$STRIP"; then
14013 striplib="$STRIP -x"
14014 old_striplib="$STRIP -S"
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14016 $as_echo "yes" >&6; }
14017 else
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14019 $as_echo "no" >&6; }
14020 fi
14021 ;;
14022 *)
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14024 $as_echo "no" >&6; }
14025 ;;
14026 esac
14027 fi
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040 # Report what library types will actually be built
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14042 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14044 $as_echo "$can_build_shared" >&6; }
14045
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14047 $as_echo_n "checking whether to build shared libraries... " >&6; }
14048 test no = "$can_build_shared" && enable_shared=no
14049
14050 # On AIX, shared libraries and static libraries use the same namespace, and
14051 # are all built from PIC.
14052 case $host_os in
14053 aix3*)
14054 test yes = "$enable_shared" && enable_static=no
14055 if test -n "$RANLIB"; then
14056 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14057 postinstall_cmds='$RANLIB $lib'
14058 fi
14059 ;;
14060
14061 aix[4-9]*)
14062 if test ia64 != "$host_cpu"; then
14063 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14064 yes,aix,yes) ;; # shared object as lib.so file only
14065 yes,svr4,*) ;; # shared object as lib.so archive member only
14066 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14067 esac
14068 fi
14069 ;;
14070 esac
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14072 $as_echo "$enable_shared" >&6; }
14073
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14075 $as_echo_n "checking whether to build static libraries... " >&6; }
14076 # Make sure either enable_shared or enable_static is yes.
14077 test yes = "$enable_shared" || enable_static=yes
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14079 $as_echo "$enable_static" >&6; }
14080
14081
14082
14083
14084 fi
14085 ac_ext=c
14086 ac_cpp='$CPP $CPPFLAGS'
14087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14090
14091 CC=$lt_save_CC
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107 ac_config_commands="$ac_config_commands libtool"
14108
14109
14110
14111
14112 # Only expand once:
14113
14114
14115
14116
14117 # Extract the first word of "ar", so it can be a program name with args.
14118 set dummy ar; ac_word=$2
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14120 $as_echo_n "checking for $ac_word... " >&6; }
14121 if ${ac_cv_path_AR+:} false; then :
14122 $as_echo_n "(cached) " >&6
14123 else
14124 case $AR in
14125 [\\/]* | ?:[\\/]*)
14126 ac_cv_path_AR="$AR" # Let the user override the test with a path.
14127 ;;
14128 *)
14129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14130 for as_dir in $PATH
14131 do
14132 IFS=$as_save_IFS
14133 test -z "$as_dir" && as_dir=.
14134 for ac_exec_ext in '' $ac_executable_extensions; do
14135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14136 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
14137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14138 break 2
14139 fi
14140 done
14141 done
14142 IFS=$as_save_IFS
14143
14144 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
14145 ;;
14146 esac
14147 fi
14148 AR=$ac_cv_path_AR
14149 if test -n "$AR"; then
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14151 $as_echo "$AR" >&6; }
14152 else
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14154 $as_echo "no" >&6; }
14155 fi
14156
14157
14158 # Extract the first word of "rm", so it can be a program name with args.
14159 set dummy rm; ac_word=$2
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14161 $as_echo_n "checking for $ac_word... " >&6; }
14162 if ${ac_cv_path_RM+:} false; then :
14163 $as_echo_n "(cached) " >&6
14164 else
14165 case $RM in
14166 [\\/]* | ?:[\\/]*)
14167 ac_cv_path_RM="$RM" # Let the user override the test with a path.
14168 ;;
14169 *)
14170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14171 for as_dir in $PATH
14172 do
14173 IFS=$as_save_IFS
14174 test -z "$as_dir" && as_dir=.
14175 for ac_exec_ext in '' $ac_executable_extensions; do
14176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14177 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
14178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14179 break 2
14180 fi
14181 done
14182 done
14183 IFS=$as_save_IFS
14184
14185 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
14186 ;;
14187 esac
14188 fi
14189 RM=$ac_cv_path_RM
14190 if test -n "$RM"; then
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
14192 $as_echo "$RM" >&6; }
14193 else
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14195 $as_echo "no" >&6; }
14196 fi
14197
14198
14199 # Extract the first word of "cp", so it can be a program name with args.
14200 set dummy cp; ac_word=$2
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14202 $as_echo_n "checking for $ac_word... " >&6; }
14203 if ${ac_cv_path_CP+:} false; then :
14204 $as_echo_n "(cached) " >&6
14205 else
14206 case $CP in
14207 [\\/]* | ?:[\\/]*)
14208 ac_cv_path_CP="$CP" # Let the user override the test with a path.
14209 ;;
14210 *)
14211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14212 for as_dir in $PATH
14213 do
14214 IFS=$as_save_IFS
14215 test -z "$as_dir" && as_dir=.
14216 for ac_exec_ext in '' $ac_executable_extensions; do
14217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14218 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
14219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14220 break 2
14221 fi
14222 done
14223 done
14224 IFS=$as_save_IFS
14225
14226 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
14227 ;;
14228 esac
14229 fi
14230 CP=$ac_cv_path_CP
14231 if test -n "$CP"; then
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
14233 $as_echo "$CP" >&6; }
14234 else
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14236 $as_echo "no" >&6; }
14237 fi
14238
14239
14240 # Extract the first word of "ln", so it can be a program name with args.
14241 set dummy ln; ac_word=$2
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14243 $as_echo_n "checking for $ac_word... " >&6; }
14244 if ${ac_cv_path_LN+:} false; then :
14245 $as_echo_n "(cached) " >&6
14246 else
14247 case $LN in
14248 [\\/]* | ?:[\\/]*)
14249 ac_cv_path_LN="$LN" # Let the user override the test with a path.
14250 ;;
14251 *)
14252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14253 for as_dir in $PATH
14254 do
14255 IFS=$as_save_IFS
14256 test -z "$as_dir" && as_dir=.
14257 for ac_exec_ext in '' $ac_executable_extensions; do
14258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14259 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
14260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14261 break 2
14262 fi
14263 done
14264 done
14265 IFS=$as_save_IFS
14266
14267 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
14268 ;;
14269 esac
14270 fi
14271 LN=$ac_cv_path_LN
14272 if test -n "$LN"; then
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
14274 $as_echo "$LN" >&6; }
14275 else
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14277 $as_echo "no" >&6; }
14278 fi
14279
14280
14281 # Extract the first word of "ls", so it can be a program name with args.
14282 set dummy ls; ac_word=$2
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14284 $as_echo_n "checking for $ac_word... " >&6; }
14285 if ${ac_cv_path_LS+:} false; then :
14286 $as_echo_n "(cached) " >&6
14287 else
14288 case $LS in
14289 [\\/]* | ?:[\\/]*)
14290 ac_cv_path_LS="$LS" # Let the user override the test with a path.
14291 ;;
14292 *)
14293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14295 do
14296 IFS=$as_save_IFS
14297 test -z "$as_dir" && as_dir=.
14298 for ac_exec_ext in '' $ac_executable_extensions; do
14299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14300 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
14301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14302 break 2
14303 fi
14304 done
14305 done
14306 IFS=$as_save_IFS
14307
14308 test -z "$ac_cv_path_LS" && ac_cv_path_LS="ls"
14309 ;;
14310 esac
14311 fi
14312 LS=$ac_cv_path_LS
14313 if test -n "$LS"; then
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
14315 $as_echo "$LS" >&6; }
14316 else
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14318 $as_echo "no" >&6; }
14319 fi
14320
14321
14322 # Extract the first word of "sed", so it can be a program name with args.
14323 set dummy sed; ac_word=$2
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14325 $as_echo_n "checking for $ac_word... " >&6; }
14326 if ${ac_cv_path_SED+:} false; then :
14327 $as_echo_n "(cached) " >&6
14328 else
14329 case $SED in
14330 [\\/]* | ?:[\\/]*)
14331 ac_cv_path_SED="$SED" # Let the user override the test with a path.
14332 ;;
14333 *)
14334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14335 for as_dir in $PATH
14336 do
14337 IFS=$as_save_IFS
14338 test -z "$as_dir" && as_dir=.
14339 for ac_exec_ext in '' $ac_executable_extensions; do
14340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14341 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14343 break 2
14344 fi
14345 done
14346 done
14347 IFS=$as_save_IFS
14348
14349 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
14350 ;;
14351 esac
14352 fi
14353 SED=$ac_cv_path_SED
14354 if test -n "$SED"; then
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14356 $as_echo "$SED" >&6; }
14357 else
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14359 $as_echo "no" >&6; }
14360 fi
14361
14362
14363 # Extract the first word of "make", so it can be a program name with args.
14364 set dummy make; ac_word=$2
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14366 $as_echo_n "checking for $ac_word... " >&6; }
14367 if ${ac_cv_path_MAKE+:} false; then :
14368 $as_echo_n "(cached) " >&6
14369 else
14370 case $MAKE in
14371 [\\/]* | ?:[\\/]*)
14372 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
14373 ;;
14374 *)
14375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14376 for as_dir in $PATH
14377 do
14378 IFS=$as_save_IFS
14379 test -z "$as_dir" && as_dir=.
14380 for ac_exec_ext in '' $ac_executable_extensions; do
14381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14382 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
14383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14384 break 2
14385 fi
14386 done
14387 done
14388 IFS=$as_save_IFS
14389
14390 ;;
14391 esac
14392 fi
14393 MAKE=$ac_cv_path_MAKE
14394 if test -n "$MAKE"; then
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
14396 $as_echo "$MAKE" >&6; }
14397 else
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14399 $as_echo "no" >&6; }
14400 fi
14401
14402
14403
14404
14405
14406
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14408 $as_echo_n "checking whether NLS is requested... " >&6; }
14409 # Check whether --enable-nls was given.
14410 if test "${enable_nls+set}" = set; then :
14411 enableval=$enable_nls; USE_NLS=$enableval
14412 else
14413 USE_NLS=yes
14414 fi
14415
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14417 $as_echo "$USE_NLS" >&6; }
14418
14419
14420
14421
14422
14423
14424 # Prepare PATH_SEPARATOR.
14425 # The user is always right.
14426 if test "${PATH_SEPARATOR+set}" != set; then
14427 echo "#! /bin/sh" >conf$$.sh
14428 echo "exit 0" >>conf$$.sh
14429 chmod +x conf$$.sh
14430 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14431 PATH_SEPARATOR=';'
14432 else
14433 PATH_SEPARATOR=:
14434 fi
14435 rm -f conf$$.sh
14436 fi
14437
14438 # Find out how to test for executable files. Don't use a zero-byte file,
14439 # as systems may use methods other than mode bits to determine executability.
14440 cat >conf$$.file <<_ASEOF
14441 #! /bin/sh
14442 exit 0
14443 _ASEOF
14444 chmod +x conf$$.file
14445 if test -x conf$$.file >/dev/null 2>&1; then
14446 ac_executable_p="test -x"
14447 else
14448 ac_executable_p="test -f"
14449 fi
14450 rm -f conf$$.file
14451
14452 # Extract the first word of "msgfmt", so it can be a program name with args.
14453 set dummy msgfmt; ac_word=$2
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14455 $as_echo_n "checking for $ac_word... " >&6; }
14456 if ${ac_cv_path_MSGFMT+:} false; then :
14457 $as_echo_n "(cached) " >&6
14458 else
14459 case "$MSGFMT" in
14460 [\\/]* | ?:[\\/]*)
14461 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14462 ;;
14463 *)
14464 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14465 for ac_dir in $PATH; do
14466 IFS="$ac_save_IFS"
14467 test -z "$ac_dir" && ac_dir=.
14468 for ac_exec_ext in '' $ac_executable_extensions; do
14469 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14470 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14471 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14472 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14473 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14474 break 2
14475 fi
14476 fi
14477 done
14478 done
14479 IFS="$ac_save_IFS"
14480 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14481 ;;
14482 esac
14483 fi
14484 MSGFMT="$ac_cv_path_MSGFMT"
14485 if test "$MSGFMT" != ":"; then
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14487 $as_echo "$MSGFMT" >&6; }
14488 else
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14490 $as_echo "no" >&6; }
14491 fi
14492
14493 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14494 set dummy gmsgfmt; ac_word=$2
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14496 $as_echo_n "checking for $ac_word... " >&6; }
14497 if ${ac_cv_path_GMSGFMT+:} false; then :
14498 $as_echo_n "(cached) " >&6
14499 else
14500 case $GMSGFMT in
14501 [\\/]* | ?:[\\/]*)
14502 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14503 ;;
14504 *)
14505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14506 for as_dir in $PATH
14507 do
14508 IFS=$as_save_IFS
14509 test -z "$as_dir" && as_dir=.
14510 for ac_exec_ext in '' $ac_executable_extensions; do
14511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14512 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14514 break 2
14515 fi
14516 done
14517 done
14518 IFS=$as_save_IFS
14519
14520 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14521 ;;
14522 esac
14523 fi
14524 GMSGFMT=$ac_cv_path_GMSGFMT
14525 if test -n "$GMSGFMT"; then
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14527 $as_echo "$GMSGFMT" >&6; }
14528 else
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14530 $as_echo "no" >&6; }
14531 fi
14532
14533
14534
14535 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14536 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14537 *) MSGFMT_015=$MSGFMT ;;
14538 esac
14539
14540 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14541 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14542 *) GMSGFMT_015=$GMSGFMT ;;
14543 esac
14544
14545
14546
14547 # Prepare PATH_SEPARATOR.
14548 # The user is always right.
14549 if test "${PATH_SEPARATOR+set}" != set; then
14550 echo "#! /bin/sh" >conf$$.sh
14551 echo "exit 0" >>conf$$.sh
14552 chmod +x conf$$.sh
14553 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14554 PATH_SEPARATOR=';'
14555 else
14556 PATH_SEPARATOR=:
14557 fi
14558 rm -f conf$$.sh
14559 fi
14560
14561 # Find out how to test for executable files. Don't use a zero-byte file,
14562 # as systems may use methods other than mode bits to determine executability.
14563 cat >conf$$.file <<_ASEOF
14564 #! /bin/sh
14565 exit 0
14566 _ASEOF
14567 chmod +x conf$$.file
14568 if test -x conf$$.file >/dev/null 2>&1; then
14569 ac_executable_p="test -x"
14570 else
14571 ac_executable_p="test -f"
14572 fi
14573 rm -f conf$$.file
14574
14575 # Extract the first word of "xgettext", so it can be a program name with args.
14576 set dummy xgettext; ac_word=$2
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14578 $as_echo_n "checking for $ac_word... " >&6; }
14579 if ${ac_cv_path_XGETTEXT+:} false; then :
14580 $as_echo_n "(cached) " >&6
14581 else
14582 case "$XGETTEXT" in
14583 [\\/]* | ?:[\\/]*)
14584 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14585 ;;
14586 *)
14587 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14588 for ac_dir in $PATH; do
14589 IFS="$ac_save_IFS"
14590 test -z "$ac_dir" && ac_dir=.
14591 for ac_exec_ext in '' $ac_executable_extensions; do
14592 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14593 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14594 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14595 (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
14596 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14597 break 2
14598 fi
14599 fi
14600 done
14601 done
14602 IFS="$ac_save_IFS"
14603 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14604 ;;
14605 esac
14606 fi
14607 XGETTEXT="$ac_cv_path_XGETTEXT"
14608 if test "$XGETTEXT" != ":"; then
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14610 $as_echo "$XGETTEXT" >&6; }
14611 else
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14613 $as_echo "no" >&6; }
14614 fi
14615
14616 rm -f messages.po
14617
14618 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14619 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14620 *) XGETTEXT_015=$XGETTEXT ;;
14621 esac
14622
14623
14624
14625 # Prepare PATH_SEPARATOR.
14626 # The user is always right.
14627 if test "${PATH_SEPARATOR+set}" != set; then
14628 echo "#! /bin/sh" >conf$$.sh
14629 echo "exit 0" >>conf$$.sh
14630 chmod +x conf$$.sh
14631 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14632 PATH_SEPARATOR=';'
14633 else
14634 PATH_SEPARATOR=:
14635 fi
14636 rm -f conf$$.sh
14637 fi
14638
14639 # Find out how to test for executable files. Don't use a zero-byte file,
14640 # as systems may use methods other than mode bits to determine executability.
14641 cat >conf$$.file <<_ASEOF
14642 #! /bin/sh
14643 exit 0
14644 _ASEOF
14645 chmod +x conf$$.file
14646 if test -x conf$$.file >/dev/null 2>&1; then
14647 ac_executable_p="test -x"
14648 else
14649 ac_executable_p="test -f"
14650 fi
14651 rm -f conf$$.file
14652
14653 # Extract the first word of "msgmerge", so it can be a program name with args.
14654 set dummy msgmerge; ac_word=$2
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14656 $as_echo_n "checking for $ac_word... " >&6; }
14657 if ${ac_cv_path_MSGMERGE+:} false; then :
14658 $as_echo_n "(cached) " >&6
14659 else
14660 case "$MSGMERGE" in
14661 [\\/]* | ?:[\\/]*)
14662 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14663 ;;
14664 *)
14665 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14666 for ac_dir in $PATH; do
14667 IFS="$ac_save_IFS"
14668 test -z "$ac_dir" && ac_dir=.
14669 for ac_exec_ext in '' $ac_executable_extensions; do
14670 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14671 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14672 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14673 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14674 break 2
14675 fi
14676 fi
14677 done
14678 done
14679 IFS="$ac_save_IFS"
14680 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14681 ;;
14682 esac
14683 fi
14684 MSGMERGE="$ac_cv_path_MSGMERGE"
14685 if test "$MSGMERGE" != ":"; then
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14687 $as_echo "$MSGMERGE" >&6; }
14688 else
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14690 $as_echo "no" >&6; }
14691 fi
14692
14693
14694 test -n "$localedir" || localedir='${datadir}/locale'
14695
14696
14697 ac_config_commands="$ac_config_commands po-directories"
14698
14699
14700
14701 if test "X$prefix" = "XNONE"; then
14702 acl_final_prefix="$ac_default_prefix"
14703 else
14704 acl_final_prefix="$prefix"
14705 fi
14706 if test "X$exec_prefix" = "XNONE"; then
14707 acl_final_exec_prefix='${prefix}'
14708 else
14709 acl_final_exec_prefix="$exec_prefix"
14710 fi
14711 acl_save_prefix="$prefix"
14712 prefix="$acl_final_prefix"
14713 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14714 prefix="$acl_save_prefix"
14715
14716
14717 # Check whether --with-gnu-ld was given.
14718 if test "${with_gnu_ld+set}" = set; then :
14719 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14720 else
14721 with_gnu_ld=no
14722 fi
14723
14724 # Prepare PATH_SEPARATOR.
14725 # The user is always right.
14726 if test "${PATH_SEPARATOR+set}" != set; then
14727 echo "#! /bin/sh" >conf$$.sh
14728 echo "exit 0" >>conf$$.sh
14729 chmod +x conf$$.sh
14730 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14731 PATH_SEPARATOR=';'
14732 else
14733 PATH_SEPARATOR=:
14734 fi
14735 rm -f conf$$.sh
14736 fi
14737 ac_prog=ld
14738 if test "$GCC" = yes; then
14739 # Check if gcc -print-prog-name=ld gives a path.
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14741 $as_echo_n "checking for ld used by GCC... " >&6; }
14742 case $host in
14743 *-*-mingw*)
14744 # gcc leaves a trailing carriage return which upsets mingw
14745 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14746 *)
14747 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14748 esac
14749 case $ac_prog in
14750 # Accept absolute paths.
14751 [\\/]* | [A-Za-z]:[\\/]*)
14752 re_direlt='/[^/][^/]*/\.\./'
14753 # Canonicalize the path of ld
14754 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14755 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14756 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14757 done
14758 test -z "$LD" && LD="$ac_prog"
14759 ;;
14760 "")
14761 # If it fails, then pretend we aren't using GCC.
14762 ac_prog=ld
14763 ;;
14764 *)
14765 # If it is relative, then search for the first ld in PATH.
14766 with_gnu_ld=unknown
14767 ;;
14768 esac
14769 elif test "$with_gnu_ld" = yes; then
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14771 $as_echo_n "checking for GNU ld... " >&6; }
14772 else
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14774 $as_echo_n "checking for non-GNU ld... " >&6; }
14775 fi
14776 if ${acl_cv_path_LD+:} false; then :
14777 $as_echo_n "(cached) " >&6
14778 else
14779 if test -z "$LD"; then
14780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14781 for ac_dir in $PATH; do
14782 test -z "$ac_dir" && ac_dir=.
14783 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14784 acl_cv_path_LD="$ac_dir/$ac_prog"
14785 # Check to see if the program is GNU ld. I'd rather use --version,
14786 # but apparently some GNU ld's only accept -v.
14787 # Break only if it was the GNU/non-GNU ld that we prefer.
14788 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14789 *GNU* | *'with BFD'*)
14790 test "$with_gnu_ld" != no && break ;;
14791 *)
14792 test "$with_gnu_ld" != yes && break ;;
14793 esac
14794 fi
14795 done
14796 IFS="$ac_save_ifs"
14797 else
14798 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14799 fi
14800 fi
14801
14802 LD="$acl_cv_path_LD"
14803 if test -n "$LD"; then
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14805 $as_echo "$LD" >&6; }
14806 else
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14808 $as_echo "no" >&6; }
14809 fi
14810 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14812 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14813 if ${acl_cv_prog_gnu_ld+:} false; then :
14814 $as_echo_n "(cached) " >&6
14815 else
14816 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14817 case `$LD -v 2>&1 </dev/null` in
14818 *GNU* | *'with BFD'*)
14819 acl_cv_prog_gnu_ld=yes ;;
14820 *)
14821 acl_cv_prog_gnu_ld=no ;;
14822 esac
14823 fi
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14825 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14826 with_gnu_ld=$acl_cv_prog_gnu_ld
14827
14828
14829
14830
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14832 $as_echo_n "checking for shared library run path origin... " >&6; }
14833 if ${acl_cv_rpath+:} false; then :
14834 $as_echo_n "(cached) " >&6
14835 else
14836
14837 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14838 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14839 . ./conftest.sh
14840 rm -f ./conftest.sh
14841 acl_cv_rpath=done
14842
14843 fi
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14845 $as_echo "$acl_cv_rpath" >&6; }
14846 wl="$acl_cv_wl"
14847 libext="$acl_cv_libext"
14848 shlibext="$acl_cv_shlibext"
14849 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14850 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14851 hardcode_direct="$acl_cv_hardcode_direct"
14852 hardcode_minus_L="$acl_cv_hardcode_minus_L"
14853 # Check whether --enable-rpath was given.
14854 if test "${enable_rpath+set}" = set; then :
14855 enableval=$enable_rpath; :
14856 else
14857 enable_rpath=yes
14858 fi
14859
14860
14861
14862 acl_libdirstem=lib
14863 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14864 if test -n "$searchpath"; then
14865 acl_save_IFS="${IFS= }"; IFS=":"
14866 for searchdir in $searchpath; do
14867 if test -d "$searchdir"; then
14868 case "$searchdir" in
14869 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14870 *) searchdir=`cd "$searchdir" && pwd`
14871 case "$searchdir" in
14872 */lib64 ) acl_libdirstem=lib64 ;;
14873 esac ;;
14874 esac
14875 fi
14876 done
14877 IFS="$acl_save_IFS"
14878 fi
14879
14880
14881
14882
14883
14884
14885
14886
14887 use_additional=yes
14888
14889 acl_save_prefix="$prefix"
14890 prefix="$acl_final_prefix"
14891 acl_save_exec_prefix="$exec_prefix"
14892 exec_prefix="$acl_final_exec_prefix"
14893
14894 eval additional_includedir=\"$includedir\"
14895 eval additional_libdir=\"$libdir\"
14896
14897 exec_prefix="$acl_save_exec_prefix"
14898 prefix="$acl_save_prefix"
14899
14900
14901 # Check whether --with-libiconv-prefix was given.
14902 if test "${with_libiconv_prefix+set}" = set; then :
14903 withval=$with_libiconv_prefix;
14904 if test "X$withval" = "Xno"; then
14905 use_additional=no
14906 else
14907 if test "X$withval" = "X"; then
14908
14909 acl_save_prefix="$prefix"
14910 prefix="$acl_final_prefix"
14911 acl_save_exec_prefix="$exec_prefix"
14912 exec_prefix="$acl_final_exec_prefix"
14913
14914 eval additional_includedir=\"$includedir\"
14915 eval additional_libdir=\"$libdir\"
14916
14917 exec_prefix="$acl_save_exec_prefix"
14918 prefix="$acl_save_prefix"
14919
14920 else
14921 additional_includedir="$withval/include"
14922 additional_libdir="$withval/$acl_libdirstem"
14923 fi
14924 fi
14925
14926 fi
14927
14928 LIBICONV=
14929 LTLIBICONV=
14930 INCICONV=
14931 rpathdirs=
14932 ltrpathdirs=
14933 names_already_handled=
14934 names_next_round='iconv '
14935 while test -n "$names_next_round"; do
14936 names_this_round="$names_next_round"
14937 names_next_round=
14938 for name in $names_this_round; do
14939 already_handled=
14940 for n in $names_already_handled; do
14941 if test "$n" = "$name"; then
14942 already_handled=yes
14943 break
14944 fi
14945 done
14946 if test -z "$already_handled"; then
14947 names_already_handled="$names_already_handled $name"
14948 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14949 eval value=\"\$HAVE_LIB$uppername\"
14950 if test -n "$value"; then
14951 if test "$value" = yes; then
14952 eval value=\"\$LIB$uppername\"
14953 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14954 eval value=\"\$LTLIB$uppername\"
14955 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14956 else
14957 :
14958 fi
14959 else
14960 found_dir=
14961 found_la=
14962 found_so=
14963 found_a=
14964 if test $use_additional = yes; then
14965 if test -n "$shlibext" \
14966 && { test -f "$additional_libdir/lib$name.$shlibext" \
14967 || { test "$shlibext" = dll \
14968 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14969 found_dir="$additional_libdir"
14970 if test -f "$additional_libdir/lib$name.$shlibext"; then
14971 found_so="$additional_libdir/lib$name.$shlibext"
14972 else
14973 found_so="$additional_libdir/lib$name.dll.a"
14974 fi
14975 if test -f "$additional_libdir/lib$name.la"; then
14976 found_la="$additional_libdir/lib$name.la"
14977 fi
14978 else
14979 if test -f "$additional_libdir/lib$name.$libext"; then
14980 found_dir="$additional_libdir"
14981 found_a="$additional_libdir/lib$name.$libext"
14982 if test -f "$additional_libdir/lib$name.la"; then
14983 found_la="$additional_libdir/lib$name.la"
14984 fi
14985 fi
14986 fi
14987 fi
14988 if test "X$found_dir" = "X"; then
14989 for x in $LDFLAGS $LTLIBICONV; do
14990
14991 acl_save_prefix="$prefix"
14992 prefix="$acl_final_prefix"
14993 acl_save_exec_prefix="$exec_prefix"
14994 exec_prefix="$acl_final_exec_prefix"
14995 eval x=\"$x\"
14996 exec_prefix="$acl_save_exec_prefix"
14997 prefix="$acl_save_prefix"
14998
14999 case "$x" in
15000 -L*)
15001 dir=`echo "X$x" | sed -e 's/^X-L//'`
15002 if test -n "$shlibext" \
15003 && { test -f "$dir/lib$name.$shlibext" \
15004 || { test "$shlibext" = dll \
15005 && test -f "$dir/lib$name.dll.a"; }; }; then
15006 found_dir="$dir"
15007 if test -f "$dir/lib$name.$shlibext"; then
15008 found_so="$dir/lib$name.$shlibext"
15009 else
15010 found_so="$dir/lib$name.dll.a"
15011 fi
15012 if test -f "$dir/lib$name.la"; then
15013 found_la="$dir/lib$name.la"
15014 fi
15015 else
15016 if test -f "$dir/lib$name.$libext"; then
15017 found_dir="$dir"
15018 found_a="$dir/lib$name.$libext"
15019 if test -f "$dir/lib$name.la"; then
15020 found_la="$dir/lib$name.la"
15021 fi
15022 fi
15023 fi
15024 ;;
15025 esac
15026 if test "X$found_dir" != "X"; then
15027 break
15028 fi
15029 done
15030 fi
15031 if test "X$found_dir" != "X"; then
15032 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15033 if test "X$found_so" != "X"; then
15034 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15035 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15036 else
15037 haveit=
15038 for x in $ltrpathdirs; do
15039 if test "X$x" = "X$found_dir"; then
15040 haveit=yes
15041 break
15042 fi
15043 done
15044 if test -z "$haveit"; then
15045 ltrpathdirs="$ltrpathdirs $found_dir"
15046 fi
15047 if test "$hardcode_direct" = yes; then
15048 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15049 else
15050 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15051 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15052 haveit=
15053 for x in $rpathdirs; do
15054 if test "X$x" = "X$found_dir"; then
15055 haveit=yes
15056 break
15057 fi
15058 done
15059 if test -z "$haveit"; then
15060 rpathdirs="$rpathdirs $found_dir"
15061 fi
15062 else
15063 haveit=
15064 for x in $LDFLAGS $LIBICONV; do
15065
15066 acl_save_prefix="$prefix"
15067 prefix="$acl_final_prefix"
15068 acl_save_exec_prefix="$exec_prefix"
15069 exec_prefix="$acl_final_exec_prefix"
15070 eval x=\"$x\"
15071 exec_prefix="$acl_save_exec_prefix"
15072 prefix="$acl_save_prefix"
15073
15074 if test "X$x" = "X-L$found_dir"; then
15075 haveit=yes
15076 break
15077 fi
15078 done
15079 if test -z "$haveit"; then
15080 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15081 fi
15082 if test "$hardcode_minus_L" != no; then
15083 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15084 else
15085 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15086 fi
15087 fi
15088 fi
15089 fi
15090 else
15091 if test "X$found_a" != "X"; then
15092 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15093 else
15094 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15095 fi
15096 fi
15097 additional_includedir=
15098 case "$found_dir" in
15099 */$acl_libdirstem | */$acl_libdirstem/)
15100 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15101 additional_includedir="$basedir/include"
15102 ;;
15103 esac
15104 if test "X$additional_includedir" != "X"; then
15105 if test "X$additional_includedir" != "X/usr/include"; then
15106 haveit=
15107 if test "X$additional_includedir" = "X/usr/local/include"; then
15108 if test -n "$GCC"; then
15109 case $host_os in
15110 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15111 esac
15112 fi
15113 fi
15114 if test -z "$haveit"; then
15115 for x in $CPPFLAGS $INCICONV; do
15116
15117 acl_save_prefix="$prefix"
15118 prefix="$acl_final_prefix"
15119 acl_save_exec_prefix="$exec_prefix"
15120 exec_prefix="$acl_final_exec_prefix"
15121 eval x=\"$x\"
15122 exec_prefix="$acl_save_exec_prefix"
15123 prefix="$acl_save_prefix"
15124
15125 if test "X$x" = "X-I$additional_includedir"; then
15126 haveit=yes
15127 break
15128 fi
15129 done
15130 if test -z "$haveit"; then
15131 if test -d "$additional_includedir"; then
15132 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15133 fi
15134 fi
15135 fi
15136 fi
15137 fi
15138 if test -n "$found_la"; then
15139 save_libdir="$libdir"
15140 case "$found_la" in
15141 */* | *\\*) . "$found_la" ;;
15142 *) . "./$found_la" ;;
15143 esac
15144 libdir="$save_libdir"
15145 for dep in $dependency_libs; do
15146 case "$dep" in
15147 -L*)
15148 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15149 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15150 haveit=
15151 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15152 if test -n "$GCC"; then
15153 case $host_os in
15154 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15155 esac
15156 fi
15157 fi
15158 if test -z "$haveit"; then
15159 haveit=
15160 for x in $LDFLAGS $LIBICONV; do
15161
15162 acl_save_prefix="$prefix"
15163 prefix="$acl_final_prefix"
15164 acl_save_exec_prefix="$exec_prefix"
15165 exec_prefix="$acl_final_exec_prefix"
15166 eval x=\"$x\"
15167 exec_prefix="$acl_save_exec_prefix"
15168 prefix="$acl_save_prefix"
15169
15170 if test "X$x" = "X-L$additional_libdir"; then
15171 haveit=yes
15172 break
15173 fi
15174 done
15175 if test -z "$haveit"; then
15176 if test -d "$additional_libdir"; then
15177 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15178 fi
15179 fi
15180 haveit=
15181 for x in $LDFLAGS $LTLIBICONV; do
15182
15183 acl_save_prefix="$prefix"
15184 prefix="$acl_final_prefix"
15185 acl_save_exec_prefix="$exec_prefix"
15186 exec_prefix="$acl_final_exec_prefix"
15187 eval x=\"$x\"
15188 exec_prefix="$acl_save_exec_prefix"
15189 prefix="$acl_save_prefix"
15190
15191 if test "X$x" = "X-L$additional_libdir"; then
15192 haveit=yes
15193 break
15194 fi
15195 done
15196 if test -z "$haveit"; then
15197 if test -d "$additional_libdir"; then
15198 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15199 fi
15200 fi
15201 fi
15202 fi
15203 ;;
15204 -R*)
15205 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15206 if test "$enable_rpath" != no; then
15207 haveit=
15208 for x in $rpathdirs; do
15209 if test "X$x" = "X$dir"; then
15210 haveit=yes
15211 break
15212 fi
15213 done
15214 if test -z "$haveit"; then
15215 rpathdirs="$rpathdirs $dir"
15216 fi
15217 haveit=
15218 for x in $ltrpathdirs; do
15219 if test "X$x" = "X$dir"; then
15220 haveit=yes
15221 break
15222 fi
15223 done
15224 if test -z "$haveit"; then
15225 ltrpathdirs="$ltrpathdirs $dir"
15226 fi
15227 fi
15228 ;;
15229 -l*)
15230 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15231 ;;
15232 *.la)
15233 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15234 ;;
15235 *)
15236 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15237 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15238 ;;
15239 esac
15240 done
15241 fi
15242 else
15243 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15244 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15245 fi
15246 fi
15247 fi
15248 done
15249 done
15250 if test "X$rpathdirs" != "X"; then
15251 if test -n "$hardcode_libdir_separator"; then
15252 alldirs=
15253 for found_dir in $rpathdirs; do
15254 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15255 done
15256 acl_save_libdir="$libdir"
15257 libdir="$alldirs"
15258 eval flag=\"$hardcode_libdir_flag_spec\"
15259 libdir="$acl_save_libdir"
15260 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15261 else
15262 for found_dir in $rpathdirs; do
15263 acl_save_libdir="$libdir"
15264 libdir="$found_dir"
15265 eval flag=\"$hardcode_libdir_flag_spec\"
15266 libdir="$acl_save_libdir"
15267 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15268 done
15269 fi
15270 fi
15271 if test "X$ltrpathdirs" != "X"; then
15272 for found_dir in $ltrpathdirs; do
15273 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15274 done
15275 fi
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15302 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15303 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
15304 $as_echo_n "(cached) " >&6
15305 else
15306 gt_save_LIBS="$LIBS"
15307 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15309 /* end confdefs.h. */
15310 #include <CoreFoundation/CFPreferences.h>
15311 int
15312 main ()
15313 {
15314 CFPreferencesCopyAppValue(NULL, NULL)
15315 ;
15316 return 0;
15317 }
15318 _ACEOF
15319 if ac_fn_c_try_link "$LINENO"; then :
15320 gt_cv_func_CFPreferencesCopyAppValue=yes
15321 else
15322 gt_cv_func_CFPreferencesCopyAppValue=no
15323 fi
15324 rm -f core conftest.err conftest.$ac_objext \
15325 conftest$ac_exeext conftest.$ac_ext
15326 LIBS="$gt_save_LIBS"
15327 fi
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15329 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15330 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15331
15332 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15333
15334 fi
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15336 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15337 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
15338 $as_echo_n "(cached) " >&6
15339 else
15340 gt_save_LIBS="$LIBS"
15341 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15344 #include <CoreFoundation/CFLocale.h>
15345 int
15346 main ()
15347 {
15348 CFLocaleCopyCurrent();
15349 ;
15350 return 0;
15351 }
15352 _ACEOF
15353 if ac_fn_c_try_link "$LINENO"; then :
15354 gt_cv_func_CFLocaleCopyCurrent=yes
15355 else
15356 gt_cv_func_CFLocaleCopyCurrent=no
15357 fi
15358 rm -f core conftest.err conftest.$ac_objext \
15359 conftest$ac_exeext conftest.$ac_ext
15360 LIBS="$gt_save_LIBS"
15361 fi
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15363 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15364 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15365
15366 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15367
15368 fi
15369 INTL_MACOSX_LIBS=
15370 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15371 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15372 fi
15373
15374
15375
15376
15377
15378
15379 LIBINTL=
15380 LTLIBINTL=
15381 POSUB=
15382
15383 case " $gt_needs " in
15384 *" need-formatstring-macros "*) gt_api_version=3 ;;
15385 *" need-ngettext "*) gt_api_version=2 ;;
15386 *) gt_api_version=1 ;;
15387 esac
15388 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15389 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15390
15391 if test "$USE_NLS" = "yes"; then
15392 gt_use_preinstalled_gnugettext=no
15393
15394
15395 if test $gt_api_version -ge 3; then
15396 gt_revision_test_code='
15397 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15398 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15399 #endif
15400 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15401 '
15402 else
15403 gt_revision_test_code=
15404 fi
15405 if test $gt_api_version -ge 2; then
15406 gt_expression_test_code=' + * ngettext ("", "", 0)'
15407 else
15408 gt_expression_test_code=
15409 fi
15410
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15412 $as_echo_n "checking for GNU gettext in libc... " >&6; }
15413 if eval \${$gt_func_gnugettext_libc+:} false; then :
15414 $as_echo_n "(cached) " >&6
15415 else
15416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15417 /* end confdefs.h. */
15418 #include <libintl.h>
15419 $gt_revision_test_code
15420 extern int _nl_msg_cat_cntr;
15421 extern int *_nl_domain_bindings;
15422 int
15423 main ()
15424 {
15425 bindtextdomain ("", "");
15426 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15427 ;
15428 return 0;
15429 }
15430 _ACEOF
15431 if ac_fn_c_try_link "$LINENO"; then :
15432 eval "$gt_func_gnugettext_libc=yes"
15433 else
15434 eval "$gt_func_gnugettext_libc=no"
15435 fi
15436 rm -f core conftest.err conftest.$ac_objext \
15437 conftest$ac_exeext conftest.$ac_ext
15438 fi
15439 eval ac_res=\$$gt_func_gnugettext_libc
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15441 $as_echo "$ac_res" >&6; }
15442
15443 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15444
15445
15446
15447
15448
15449 am_save_CPPFLAGS="$CPPFLAGS"
15450
15451 for element in $INCICONV; do
15452 haveit=
15453 for x in $CPPFLAGS; do
15454
15455 acl_save_prefix="$prefix"
15456 prefix="$acl_final_prefix"
15457 acl_save_exec_prefix="$exec_prefix"
15458 exec_prefix="$acl_final_exec_prefix"
15459 eval x=\"$x\"
15460 exec_prefix="$acl_save_exec_prefix"
15461 prefix="$acl_save_prefix"
15462
15463 if test "X$x" = "X$element"; then
15464 haveit=yes
15465 break
15466 fi
15467 done
15468 if test -z "$haveit"; then
15469 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15470 fi
15471 done
15472
15473
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15475 $as_echo_n "checking for iconv... " >&6; }
15476 if ${am_cv_func_iconv+:} false; then :
15477 $as_echo_n "(cached) " >&6
15478 else
15479
15480 am_cv_func_iconv="no, consider installing GNU libiconv"
15481 am_cv_lib_iconv=no
15482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15483 /* end confdefs.h. */
15484 #include <stdlib.h>
15485 #include <iconv.h>
15486 int
15487 main ()
15488 {
15489 iconv_t cd = iconv_open("","");
15490 iconv(cd,NULL,NULL,NULL,NULL);
15491 iconv_close(cd);
15492 ;
15493 return 0;
15494 }
15495 _ACEOF
15496 if ac_fn_c_try_link "$LINENO"; then :
15497 am_cv_func_iconv=yes
15498 fi
15499 rm -f core conftest.err conftest.$ac_objext \
15500 conftest$ac_exeext conftest.$ac_ext
15501 if test "$am_cv_func_iconv" != yes; then
15502 am_save_LIBS="$LIBS"
15503 LIBS="$LIBS $LIBICONV"
15504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15505 /* end confdefs.h. */
15506 #include <stdlib.h>
15507 #include <iconv.h>
15508 int
15509 main ()
15510 {
15511 iconv_t cd = iconv_open("","");
15512 iconv(cd,NULL,NULL,NULL,NULL);
15513 iconv_close(cd);
15514 ;
15515 return 0;
15516 }
15517 _ACEOF
15518 if ac_fn_c_try_link "$LINENO"; then :
15519 am_cv_lib_iconv=yes
15520 am_cv_func_iconv=yes
15521 fi
15522 rm -f core conftest.err conftest.$ac_objext \
15523 conftest$ac_exeext conftest.$ac_ext
15524 LIBS="$am_save_LIBS"
15525 fi
15526
15527 fi
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15529 $as_echo "$am_cv_func_iconv" >&6; }
15530 if test "$am_cv_func_iconv" = yes; then
15531
15532 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15533
15534 fi
15535 if test "$am_cv_lib_iconv" = yes; then
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15537 $as_echo_n "checking how to link with libiconv... " >&6; }
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15539 $as_echo "$LIBICONV" >&6; }
15540 else
15541 CPPFLAGS="$am_save_CPPFLAGS"
15542 LIBICONV=
15543 LTLIBICONV=
15544 fi
15545
15546
15547
15548
15549
15550
15551
15552 use_additional=yes
15553
15554 acl_save_prefix="$prefix"
15555 prefix="$acl_final_prefix"
15556 acl_save_exec_prefix="$exec_prefix"
15557 exec_prefix="$acl_final_exec_prefix"
15558
15559 eval additional_includedir=\"$includedir\"
15560 eval additional_libdir=\"$libdir\"
15561
15562 exec_prefix="$acl_save_exec_prefix"
15563 prefix="$acl_save_prefix"
15564
15565
15566 # Check whether --with-libintl-prefix was given.
15567 if test "${with_libintl_prefix+set}" = set; then :
15568 withval=$with_libintl_prefix;
15569 if test "X$withval" = "Xno"; then
15570 use_additional=no
15571 else
15572 if test "X$withval" = "X"; then
15573
15574 acl_save_prefix="$prefix"
15575 prefix="$acl_final_prefix"
15576 acl_save_exec_prefix="$exec_prefix"
15577 exec_prefix="$acl_final_exec_prefix"
15578
15579 eval additional_includedir=\"$includedir\"
15580 eval additional_libdir=\"$libdir\"
15581
15582 exec_prefix="$acl_save_exec_prefix"
15583 prefix="$acl_save_prefix"
15584
15585 else
15586 additional_includedir="$withval/include"
15587 additional_libdir="$withval/$acl_libdirstem"
15588 fi
15589 fi
15590
15591 fi
15592
15593 LIBINTL=
15594 LTLIBINTL=
15595 INCINTL=
15596 rpathdirs=
15597 ltrpathdirs=
15598 names_already_handled=
15599 names_next_round='intl '
15600 while test -n "$names_next_round"; do
15601 names_this_round="$names_next_round"
15602 names_next_round=
15603 for name in $names_this_round; do
15604 already_handled=
15605 for n in $names_already_handled; do
15606 if test "$n" = "$name"; then
15607 already_handled=yes
15608 break
15609 fi
15610 done
15611 if test -z "$already_handled"; then
15612 names_already_handled="$names_already_handled $name"
15613 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15614 eval value=\"\$HAVE_LIB$uppername\"
15615 if test -n "$value"; then
15616 if test "$value" = yes; then
15617 eval value=\"\$LIB$uppername\"
15618 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15619 eval value=\"\$LTLIB$uppername\"
15620 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15621 else
15622 :
15623 fi
15624 else
15625 found_dir=
15626 found_la=
15627 found_so=
15628 found_a=
15629 if test $use_additional = yes; then
15630 if test -n "$shlibext" \
15631 && { test -f "$additional_libdir/lib$name.$shlibext" \
15632 || { test "$shlibext" = dll \
15633 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
15634 found_dir="$additional_libdir"
15635 if test -f "$additional_libdir/lib$name.$shlibext"; then
15636 found_so="$additional_libdir/lib$name.$shlibext"
15637 else
15638 found_so="$additional_libdir/lib$name.dll.a"
15639 fi
15640 if test -f "$additional_libdir/lib$name.la"; then
15641 found_la="$additional_libdir/lib$name.la"
15642 fi
15643 else
15644 if test -f "$additional_libdir/lib$name.$libext"; then
15645 found_dir="$additional_libdir"
15646 found_a="$additional_libdir/lib$name.$libext"
15647 if test -f "$additional_libdir/lib$name.la"; then
15648 found_la="$additional_libdir/lib$name.la"
15649 fi
15650 fi
15651 fi
15652 fi
15653 if test "X$found_dir" = "X"; then
15654 for x in $LDFLAGS $LTLIBINTL; do
15655
15656 acl_save_prefix="$prefix"
15657 prefix="$acl_final_prefix"
15658 acl_save_exec_prefix="$exec_prefix"
15659 exec_prefix="$acl_final_exec_prefix"
15660 eval x=\"$x\"
15661 exec_prefix="$acl_save_exec_prefix"
15662 prefix="$acl_save_prefix"
15663
15664 case "$x" in
15665 -L*)
15666 dir=`echo "X$x" | sed -e 's/^X-L//'`
15667 if test -n "$shlibext" \
15668 && { test -f "$dir/lib$name.$shlibext" \
15669 || { test "$shlibext" = dll \
15670 && test -f "$dir/lib$name.dll.a"; }; }; then
15671 found_dir="$dir"
15672 if test -f "$dir/lib$name.$shlibext"; then
15673 found_so="$dir/lib$name.$shlibext"
15674 else
15675 found_so="$dir/lib$name.dll.a"
15676 fi
15677 if test -f "$dir/lib$name.la"; then
15678 found_la="$dir/lib$name.la"
15679 fi
15680 else
15681 if test -f "$dir/lib$name.$libext"; then
15682 found_dir="$dir"
15683 found_a="$dir/lib$name.$libext"
15684 if test -f "$dir/lib$name.la"; then
15685 found_la="$dir/lib$name.la"
15686 fi
15687 fi
15688 fi
15689 ;;
15690 esac
15691 if test "X$found_dir" != "X"; then
15692 break
15693 fi
15694 done
15695 fi
15696 if test "X$found_dir" != "X"; then
15697 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15698 if test "X$found_so" != "X"; then
15699 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15700 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15701 else
15702 haveit=
15703 for x in $ltrpathdirs; do
15704 if test "X$x" = "X$found_dir"; then
15705 haveit=yes
15706 break
15707 fi
15708 done
15709 if test -z "$haveit"; then
15710 ltrpathdirs="$ltrpathdirs $found_dir"
15711 fi
15712 if test "$hardcode_direct" = yes; then
15713 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15714 else
15715 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15716 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15717 haveit=
15718 for x in $rpathdirs; do
15719 if test "X$x" = "X$found_dir"; then
15720 haveit=yes
15721 break
15722 fi
15723 done
15724 if test -z "$haveit"; then
15725 rpathdirs="$rpathdirs $found_dir"
15726 fi
15727 else
15728 haveit=
15729 for x in $LDFLAGS $LIBINTL; do
15730
15731 acl_save_prefix="$prefix"
15732 prefix="$acl_final_prefix"
15733 acl_save_exec_prefix="$exec_prefix"
15734 exec_prefix="$acl_final_exec_prefix"
15735 eval x=\"$x\"
15736 exec_prefix="$acl_save_exec_prefix"
15737 prefix="$acl_save_prefix"
15738
15739 if test "X$x" = "X-L$found_dir"; then
15740 haveit=yes
15741 break
15742 fi
15743 done
15744 if test -z "$haveit"; then
15745 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15746 fi
15747 if test "$hardcode_minus_L" != no; then
15748 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15749 else
15750 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15751 fi
15752 fi
15753 fi
15754 fi
15755 else
15756 if test "X$found_a" != "X"; then
15757 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15758 else
15759 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15760 fi
15761 fi
15762 additional_includedir=
15763 case "$found_dir" in
15764 */$acl_libdirstem | */$acl_libdirstem/)
15765 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15766 additional_includedir="$basedir/include"
15767 ;;
15768 esac
15769 if test "X$additional_includedir" != "X"; then
15770 if test "X$additional_includedir" != "X/usr/include"; then
15771 haveit=
15772 if test "X$additional_includedir" = "X/usr/local/include"; then
15773 if test -n "$GCC"; then
15774 case $host_os in
15775 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15776 esac
15777 fi
15778 fi
15779 if test -z "$haveit"; then
15780 for x in $CPPFLAGS $INCINTL; do
15781
15782 acl_save_prefix="$prefix"
15783 prefix="$acl_final_prefix"
15784 acl_save_exec_prefix="$exec_prefix"
15785 exec_prefix="$acl_final_exec_prefix"
15786 eval x=\"$x\"
15787 exec_prefix="$acl_save_exec_prefix"
15788 prefix="$acl_save_prefix"
15789
15790 if test "X$x" = "X-I$additional_includedir"; then
15791 haveit=yes
15792 break
15793 fi
15794 done
15795 if test -z "$haveit"; then
15796 if test -d "$additional_includedir"; then
15797 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15798 fi
15799 fi
15800 fi
15801 fi
15802 fi
15803 if test -n "$found_la"; then
15804 save_libdir="$libdir"
15805 case "$found_la" in
15806 */* | *\\*) . "$found_la" ;;
15807 *) . "./$found_la" ;;
15808 esac
15809 libdir="$save_libdir"
15810 for dep in $dependency_libs; do
15811 case "$dep" in
15812 -L*)
15813 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15814 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15815 haveit=
15816 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15817 if test -n "$GCC"; then
15818 case $host_os in
15819 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15820 esac
15821 fi
15822 fi
15823 if test -z "$haveit"; then
15824 haveit=
15825 for x in $LDFLAGS $LIBINTL; do
15826
15827 acl_save_prefix="$prefix"
15828 prefix="$acl_final_prefix"
15829 acl_save_exec_prefix="$exec_prefix"
15830 exec_prefix="$acl_final_exec_prefix"
15831 eval x=\"$x\"
15832 exec_prefix="$acl_save_exec_prefix"
15833 prefix="$acl_save_prefix"
15834
15835 if test "X$x" = "X-L$additional_libdir"; then
15836 haveit=yes
15837 break
15838 fi
15839 done
15840 if test -z "$haveit"; then
15841 if test -d "$additional_libdir"; then
15842 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15843 fi
15844 fi
15845 haveit=
15846 for x in $LDFLAGS $LTLIBINTL; do
15847
15848 acl_save_prefix="$prefix"
15849 prefix="$acl_final_prefix"
15850 acl_save_exec_prefix="$exec_prefix"
15851 exec_prefix="$acl_final_exec_prefix"
15852 eval x=\"$x\"
15853 exec_prefix="$acl_save_exec_prefix"
15854 prefix="$acl_save_prefix"
15855
15856 if test "X$x" = "X-L$additional_libdir"; then
15857 haveit=yes
15858 break
15859 fi
15860 done
15861 if test -z "$haveit"; then
15862 if test -d "$additional_libdir"; then
15863 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15864 fi
15865 fi
15866 fi
15867 fi
15868 ;;
15869 -R*)
15870 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15871 if test "$enable_rpath" != no; then
15872 haveit=
15873 for x in $rpathdirs; do
15874 if test "X$x" = "X$dir"; then
15875 haveit=yes
15876 break
15877 fi
15878 done
15879 if test -z "$haveit"; then
15880 rpathdirs="$rpathdirs $dir"
15881 fi
15882 haveit=
15883 for x in $ltrpathdirs; do
15884 if test "X$x" = "X$dir"; then
15885 haveit=yes
15886 break
15887 fi
15888 done
15889 if test -z "$haveit"; then
15890 ltrpathdirs="$ltrpathdirs $dir"
15891 fi
15892 fi
15893 ;;
15894 -l*)
15895 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15896 ;;
15897 *.la)
15898 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15899 ;;
15900 *)
15901 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15902 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15903 ;;
15904 esac
15905 done
15906 fi
15907 else
15908 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15909 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15910 fi
15911 fi
15912 fi
15913 done
15914 done
15915 if test "X$rpathdirs" != "X"; then
15916 if test -n "$hardcode_libdir_separator"; then
15917 alldirs=
15918 for found_dir in $rpathdirs; do
15919 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15920 done
15921 acl_save_libdir="$libdir"
15922 libdir="$alldirs"
15923 eval flag=\"$hardcode_libdir_flag_spec\"
15924 libdir="$acl_save_libdir"
15925 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15926 else
15927 for found_dir in $rpathdirs; do
15928 acl_save_libdir="$libdir"
15929 libdir="$found_dir"
15930 eval flag=\"$hardcode_libdir_flag_spec\"
15931 libdir="$acl_save_libdir"
15932 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15933 done
15934 fi
15935 fi
15936 if test "X$ltrpathdirs" != "X"; then
15937 for found_dir in $ltrpathdirs; do
15938 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15939 done
15940 fi
15941
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15943 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15944 if eval \${$gt_func_gnugettext_libintl+:} false; then :
15945 $as_echo_n "(cached) " >&6
15946 else
15947 gt_save_CPPFLAGS="$CPPFLAGS"
15948 CPPFLAGS="$CPPFLAGS $INCINTL"
15949 gt_save_LIBS="$LIBS"
15950 LIBS="$LIBS $LIBINTL"
15951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15952 /* end confdefs.h. */
15953 #include <libintl.h>
15954 $gt_revision_test_code
15955 extern int _nl_msg_cat_cntr;
15956 extern
15957 #ifdef __cplusplus
15958 "C"
15959 #endif
15960 const char *_nl_expand_alias (const char *);
15961 int
15962 main ()
15963 {
15964 bindtextdomain ("", "");
15965 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15966 ;
15967 return 0;
15968 }
15969 _ACEOF
15970 if ac_fn_c_try_link "$LINENO"; then :
15971 eval "$gt_func_gnugettext_libintl=yes"
15972 else
15973 eval "$gt_func_gnugettext_libintl=no"
15974 fi
15975 rm -f core conftest.err conftest.$ac_objext \
15976 conftest$ac_exeext conftest.$ac_ext
15977 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15978 LIBS="$LIBS $LIBICONV"
15979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h. */
15981 #include <libintl.h>
15982 $gt_revision_test_code
15983 extern int _nl_msg_cat_cntr;
15984 extern
15985 #ifdef __cplusplus
15986 "C"
15987 #endif
15988 const char *_nl_expand_alias (const char *);
15989 int
15990 main ()
15991 {
15992 bindtextdomain ("", "");
15993 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15994 ;
15995 return 0;
15996 }
15997 _ACEOF
15998 if ac_fn_c_try_link "$LINENO"; then :
15999 LIBINTL="$LIBINTL $LIBICONV"
16000 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16001 eval "$gt_func_gnugettext_libintl=yes"
16002
16003 fi
16004 rm -f core conftest.err conftest.$ac_objext \
16005 conftest$ac_exeext conftest.$ac_ext
16006 fi
16007 CPPFLAGS="$gt_save_CPPFLAGS"
16008 LIBS="$gt_save_LIBS"
16009 fi
16010 eval ac_res=\$$gt_func_gnugettext_libintl
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16012 $as_echo "$ac_res" >&6; }
16013 fi
16014
16015 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16016 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16017 && test "$PACKAGE" != gettext-runtime \
16018 && test "$PACKAGE" != gettext-tools; }; then
16019 gt_use_preinstalled_gnugettext=yes
16020 else
16021 LIBINTL=
16022 LTLIBINTL=
16023 INCINTL=
16024 fi
16025
16026
16027
16028 if test -n "$INTL_MACOSX_LIBS"; then
16029 if test "$gt_use_preinstalled_gnugettext" = "yes" \
16030 || test "$nls_cv_use_gnu_gettext" = "yes"; then
16031 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16032 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16033 fi
16034 fi
16035
16036 if test "$gt_use_preinstalled_gnugettext" = "yes" \
16037 || test "$nls_cv_use_gnu_gettext" = "yes"; then
16038
16039 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16040
16041 else
16042 USE_NLS=no
16043 fi
16044 fi
16045
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16047 $as_echo_n "checking whether to use NLS... " >&6; }
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16049 $as_echo "$USE_NLS" >&6; }
16050 if test "$USE_NLS" = "yes"; then
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16052 $as_echo_n "checking where the gettext function comes from... " >&6; }
16053 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16054 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16055 gt_source="external libintl"
16056 else
16057 gt_source="libc"
16058 fi
16059 else
16060 gt_source="included intl directory"
16061 fi
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16063 $as_echo "$gt_source" >&6; }
16064 fi
16065
16066 if test "$USE_NLS" = "yes"; then
16067
16068 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16069 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16071 $as_echo_n "checking how to link with libintl... " >&6; }
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16073 $as_echo "$LIBINTL" >&6; }
16074
16075 for element in $INCINTL; do
16076 haveit=
16077 for x in $CPPFLAGS; do
16078
16079 acl_save_prefix="$prefix"
16080 prefix="$acl_final_prefix"
16081 acl_save_exec_prefix="$exec_prefix"
16082 exec_prefix="$acl_final_exec_prefix"
16083 eval x=\"$x\"
16084 exec_prefix="$acl_save_exec_prefix"
16085 prefix="$acl_save_prefix"
16086
16087 if test "X$x" = "X$element"; then
16088 haveit=yes
16089 break
16090 fi
16091 done
16092 if test -z "$haveit"; then
16093 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16094 fi
16095 done
16096
16097 fi
16098
16099
16100 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16101
16102
16103 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16104
16105 fi
16106
16107 POSUB=po
16108 fi
16109
16110
16111
16112 INTLLIBS="$LIBINTL"
16113
16114
16115
16116
16117
16118
16119
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: dmalloc enabled" >&5
16121 $as_echo_n "checking option: dmalloc enabled... " >&6; }
16122 # Check whether --enable-dmalloc was given.
16123 if test "${enable_dmalloc+set}" = set; then :
16124 enableval=$enable_dmalloc;
16125 fi
16126
16127 if test x$enable_dmalloc = "xyes" ; then
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16129 $as_echo "yes" >&6; }
16130 else
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16132 $as_echo "no" >&6; }
16133 fi
16134
16135
16136 # Check whether --with-dmalloc-dir was given.
16137 if test "${with_dmalloc_dir+set}" = set; then :
16138 withval=$with_dmalloc_dir;
16139 if test "x$withval" != "xno" ; then
16140 enable_dmalloc = "yes"
16141 CPPFLAGS="$CPPFLAGS -I${withval}"
16142 LDFLAGS="$LDFLAGS -L${withval}"
16143 fi
16144
16145 fi
16146
16147
16148 if test x$enable_dmalloc = "xyes" ; then
16149
16150 $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
16151
16152 fi
16153
16154 ALPINE_datestamp=`date`
16155
16156 # Check whether --with-date-stamp was given.
16157 if test "${with_date_stamp+set}" = set; then :
16158 withval=$with_date_stamp;
16159 if test "x$withval" != "xno" ; then
16160 ALPINE_datestamp=$withval
16161 fi
16162
16163 fi
16164
16165 ALPINE_DATESTAMP=$ALPINE_datestamp
16166
16167
16168 ALPINE_hoststamp=`hostname`
16169
16170 # Check whether --with-host-stamp was given.
16171 if test "${with_host_stamp+set}" = set; then :
16172 withval=$with_host_stamp;
16173 if test "x$withval" != "xno" ; then
16174 ALPINE_hoststamp="$withval"
16175 fi
16176
16177 fi
16178
16179 ALPINE_HOSTSTAMP=$ALPINE_hoststamp
16180
16181
16182 case $host in
16183 *apple-darwin*)
16184 if test -d /opt/local ; then
16185 localedir="/opt/local/share/locale"
16186 else
16187 localedir="\${datadir}/locale"
16188 fi
16189 ;;
16190 *-*-cygwin)
16191 localedir="/usr/share"
16192 ;;
16193 *)
16194 localedir="\${datadir}/locale"
16195 ;;
16196 esac
16197
16198
16199 # Check whether --with-localedir was given.
16200 if test "${with_localedir+set}" = set; then :
16201 withval=$with_localedir;
16202 case $withval in
16203 yes)
16204 ;;
16205 no)
16206 ;;
16207 *)
16208 localedir=$withval
16209 ;;
16210 esac
16211
16212 fi
16213
16214 localedir="$localedir"
16215
16216
16217 # Setup OS-Specific features
16218 case "$host" in
16219 *darwin*)
16220 # Check whether --enable-osx-universal-binaries was given.
16221 if test "${enable_osx_universal_binaries+set}" = set; then :
16222 enableval=$enable_osx_universal_binaries;
16223 fi
16224
16225 if test "x$enable_osx_universal_binaries" = "xyes" ; then
16226 if test "x$enable_dependency_tracking" != xno ; then
16227 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
16228 Please re-run configure with these options:
16229 --disable-dependency-tracking --enable-osx-universal-binary" "$LINENO" 5
16230 fi
16231 if test -d /Developer/SDKs/MacOSX10.5.sdk ; then
16232 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
16233 elif test -d /Developer/SDKs/MacOSX10.4u.sdk ; then
16234 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
16235 else
16236 as_fn_error $? "No suitable MacOSX SDK found. Make sure Xcode tools are installed" "$LINENO" 5
16237 fi
16238 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
16239 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
16240 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
16241 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
16242 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
16243 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
16244 fi
16245 ;;
16246 esac
16247
16248
16249 # Check whether --with-include-path was given.
16250 if test "${with_include_path+set}" = set; then :
16251 withval=$with_include_path;
16252 case $withval in
16253 no)
16254 ;;
16255 yes)
16256 ;;
16257 *)
16258 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
16259 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
16260 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
16261 ;;
16262 esac
16263
16264 fi
16265
16266
16267
16268 # Check whether --with-lib-path was given.
16269 if test "${with_lib_path+set}" = set; then :
16270 withval=$with_lib_path;
16271 case $withval in
16272 no)
16273 ;;
16274 yes)
16275 ;;
16276 *)
16277 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
16278 LDFLAGS="$LDFLAGS $new_ldflags"
16279 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
16280 ;;
16281 esac
16282
16283 fi
16284
16285
16286
16287 # Check whether --with-pubcookie was given.
16288 if test "${with_pubcookie+set}" = set; then :
16289 withval=$with_pubcookie;
16290 if test "x$withval" != "xno" ; then
16291 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
16292 fi
16293
16294 fi
16295
16296
16297
16298
16299 # Check whether --with-web-bin was given.
16300 if test "${with_web_bin+set}" = set; then :
16301 withval=$with_web_bin;
16302 case "$withval" in
16303 no)
16304 ;;
16305 yes)
16306 ;;
16307 *)
16308 WEB_BINDIR=$withval
16309 ;;
16310 esac
16311
16312 fi
16313
16314
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: debugging is enabled" >&5
16316 $as_echo_n "checking option: debugging is enabled... " >&6; }
16317 # Check whether --enable-debug was given.
16318 if test "${enable_debug+set}" = set; then :
16319 enableval=$enable_debug;
16320 fi
16321
16322 if test x$enable_debug != "xno" ; then
16323 AM_CFLAGS="$AM_CFLAGS -g"
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16325 $as_echo "yes" >&6; }
16326 else
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16328 $as_echo "no" >&6; }
16329 fi
16330
16331 $as_echo "#define DEBUG 1" >>confdefs.h
16332
16333
16334 $as_echo "#define DEBUGJOURNAL 1" >>confdefs.h
16335
16336
16337
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: optimization is enabled" >&5
16339 $as_echo_n "checking option: optimization is enabled... " >&6; }
16340 # Check whether --enable-optimization was given.
16341 if test "${enable_optimization+set}" = set; then :
16342 enableval=$enable_optimization;
16343 fi
16344
16345 if test x$enable_optimization != "xno" ; then
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16347 $as_echo "yes" >&6; }
16348 else
16349 CFLAGS="`echo $CFLAGS | ${SED} 's/-O2//g'`"
16350 C_FLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//g'`"
16351 CFLAGS="$CFLAGS $C_FLAGS"
16352 alpine_c_client_gccoptlevel="-O0"
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16354 $as_echo "no" >&6; }
16355 fi
16356
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: mouse support enabled" >&5
16358 $as_echo_n "checking option: mouse support enabled... " >&6; }
16359 # Check whether --enable-mouse was given.
16360 if test "${enable_mouse+set}" = set; then :
16361 enableval=$enable_mouse;
16362 fi
16363
16364 if test x$enable_mouse != "xno" ; then
16365
16366 $as_echo "#define MOUSE /**/" >>confdefs.h
16367
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16369 $as_echo "yes" >&6; }
16370 else
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16372 $as_echo "no" >&6; }
16373 fi
16374
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: quotas enabled" >&5
16376 $as_echo_n "checking option: quotas enabled... " >&6; }
16377 # Check whether --enable-quotas was given.
16378 if test "${enable_quotas+set}" = set; then :
16379 enableval=$enable_quotas;
16380 fi
16381
16382 if test x$enable_quotas = "xyes" ; then
16383
16384 $as_echo "#define USE_QUOTAS /**/" >>confdefs.h
16385
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16387 $as_echo "yes" >&6; }
16388 else
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16390 $as_echo "no" >&6; }
16391 fi
16392
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: From changing enabled" >&5
16394 $as_echo_n "checking option: From changing enabled... " >&6; }
16395 # Check whether --enable-from_changing was given.
16396 if test "${enable_from_changing+set}" = set; then :
16397 enableval=$enable_from_changing;
16398 fi
16399
16400 if test x$enable_from_changing != "xno" ; then
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16402 $as_echo "yes" >&6; }
16403 else
16404
16405 $as_echo "#define NEVER_ALLOW_CHANGING_FROM /**/" >>confdefs.h
16406
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16408 $as_echo "no" >&6; }
16409 fi
16410
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: background post enabled" >&5
16412 $as_echo_n "checking option: background post enabled... " >&6; }
16413 # Check whether --enable-background-post was given.
16414 if test "${enable_background_post+set}" = set; then :
16415 enableval=$enable_background_post;
16416 fi
16417
16418 if test x$enable_background_post != "xno" ; then
16419
16420 $as_echo "#define BACKGROUND_POST /**/" >>confdefs.h
16421
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16423 $as_echo "yes" >&6; }
16424 else
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16426 $as_echo "no" >&6; }
16427 fi
16428
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: keyboard lock enabled" >&5
16430 $as_echo_n "checking option: keyboard lock enabled... " >&6; }
16431 # Check whether --enable-keyboard-lock was given.
16432 if test "${enable_keyboard_lock+set}" = set; then :
16433 enableval=$enable_keyboard_lock;
16434 fi
16435
16436 if test x$enable_keyboard_lock != "xno" ; then
16437
16438 $as_echo "#define KEYBOARD_LOCK /**/" >>confdefs.h
16439
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16441 $as_echo "yes" >&6; }
16442 else
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16444 $as_echo "no" >&6; }
16445 fi
16446
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking option: from encoding enabled" >&5
16448 $as_echo_n "checking option: from encoding enabled... " >&6; }
16449 # Check whether --enable-from-encoding was given.
16450 if test "${enable_from_encoding+set}" = set; then :
16451 enableval=$enable_from_encoding;
16452 fi
16453
16454 if test x$enable_from_encoding = "xyes" ; then
16455
16456 $as_echo "#define ENCODE_FROMS /**/" >>confdefs.h
16457
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16459 $as_echo "yes" >&6; }
16460 else
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16462 $as_echo "no" >&6; }
16463 fi
16464
16465
16466 # Check whether --with-smtp-msa was given.
16467 if test "${with_smtp_msa+set}" = set; then :
16468 withval=$with_smtp_msa;
16469 case "$withval" in
16470 no)
16471 ;;
16472 yes)
16473 # Extract the first word of "sendmail", so it can be a program name with args.
16474 set dummy sendmail; ac_word=$2
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16476 $as_echo_n "checking for $ac_word... " >&6; }
16477 if ${ac_cv_path_SENDMAIL+:} false; then :
16478 $as_echo_n "(cached) " >&6
16479 else
16480 case $SENDMAIL in
16481 [\\/]* | ?:[\\/]*)
16482 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
16483 ;;
16484 *)
16485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16486 as_dummy="$PATH:/usr/sbin:/usr/lib"
16487 for as_dir in $as_dummy
16488 do
16489 IFS=$as_save_IFS
16490 test -z "$as_dir" && as_dir=.
16491 for ac_exec_ext in '' $ac_executable_extensions; do
16492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16493 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
16494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16495 break 2
16496 fi
16497 done
16498 done
16499 IFS=$as_save_IFS
16500
16501 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
16502 ;;
16503 esac
16504 fi
16505 SENDMAIL=$ac_cv_path_SENDMAIL
16506 if test -n "$SENDMAIL"; then
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
16508 $as_echo "$SENDMAIL" >&6; }
16509 else
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16511 $as_echo "no" >&6; }
16512 fi
16513
16514
16515 ;;
16516 *)
16517 SENDMAIL=$withval
16518 ;;
16519 esac
16520
16521 else
16522
16523 # Extract the first word of "sendmail", so it can be a program name with args.
16524 set dummy sendmail; ac_word=$2
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16526 $as_echo_n "checking for $ac_word... " >&6; }
16527 if ${ac_cv_path_SENDMAIL+:} false; then :
16528 $as_echo_n "(cached) " >&6
16529 else
16530 case $SENDMAIL in
16531 [\\/]* | ?:[\\/]*)
16532 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
16533 ;;
16534 *)
16535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16536 as_dummy="$PATH:/usr/sbin:/usr/lib"
16537 for as_dir in $as_dummy
16538 do
16539 IFS=$as_save_IFS
16540 test -z "$as_dir" && as_dir=.
16541 for ac_exec_ext in '' $ac_executable_extensions; do
16542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16543 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
16544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16545 break 2
16546 fi
16547 done
16548 done
16549 IFS=$as_save_IFS
16550
16551 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL=""""
16552 ;;
16553 esac
16554 fi
16555 SENDMAIL=$ac_cv_path_SENDMAIL
16556 if test -n "$SENDMAIL"; then
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
16558 $as_echo "$SENDMAIL" >&6; }
16559 else
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16561 $as_echo "no" >&6; }
16562 fi
16563
16564
16565
16566 fi
16567
16568 if test -n "$SENDMAIL" ; then
16569
16570 cat >>confdefs.h <<_ACEOF
16571 #define SENDMAIL "$SENDMAIL"
16572 _ACEOF
16573
16574 fi
16575
16576 smtp_msa_flags="-bs -odb -oem"
16577
16578 # Check whether --with-smtp-msa-flags was given.
16579 if test "${with_smtp_msa_flags+set}" = set; then :
16580 withval=$with_smtp_msa_flags;
16581 if test "x$withval" != "xno" ; then
16582 smtp_msa_flags=$withval
16583 fi
16584
16585 fi
16586
16587
16588 cat >>confdefs.h <<_ACEOF
16589 #define SENDMAILFLAGS "$smtp_msa_flags"
16590 _ACEOF
16591
16592
16593 npa="inews"
16594
16595 # Check whether --with-npa was given.
16596 if test "${with_npa+set}" = set; then :
16597 withval=$with_npa;
16598 case "$withval" in
16599 no)
16600 ;;
16601 yes)
16602 # Extract the first word of "inews", so it can be a program name with args.
16603 set dummy inews; ac_word=$2
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16605 $as_echo_n "checking for $ac_word... " >&6; }
16606 if ${ac_cv_path_NPA_PROG+:} false; then :
16607 $as_echo_n "(cached) " >&6
16608 else
16609 case $NPA_PROG in
16610 [\\/]* | ?:[\\/]*)
16611 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
16612 ;;
16613 *)
16614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16615 as_dummy="$PATH:/usr/sbin:/usr/lib"
16616 for as_dir in $as_dummy
16617 do
16618 IFS=$as_save_IFS
16619 test -z "$as_dir" && as_dir=.
16620 for ac_exec_ext in '' $ac_executable_extensions; do
16621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16622 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
16623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16624 break 2
16625 fi
16626 done
16627 done
16628 IFS=$as_save_IFS
16629
16630 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
16631 ;;
16632 esac
16633 fi
16634 NPA_PROG=$ac_cv_path_NPA_PROG
16635 if test -n "$NPA_PROG"; then
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
16637 $as_echo "$NPA_PROG" >&6; }
16638 else
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16640 $as_echo "no" >&6; }
16641 fi
16642
16643
16644 ;;
16645 *)
16646 NPA_PROG=$withval
16647 ;;
16648 esac
16649
16650 else
16651
16652 # Extract the first word of "inews", so it can be a program name with args.
16653 set dummy inews; ac_word=$2
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16655 $as_echo_n "checking for $ac_word... " >&6; }
16656 if ${ac_cv_path_NPA_PROG+:} false; then :
16657 $as_echo_n "(cached) " >&6
16658 else
16659 case $NPA_PROG in
16660 [\\/]* | ?:[\\/]*)
16661 ac_cv_path_NPA_PROG="$NPA_PROG" # Let the user override the test with a path.
16662 ;;
16663 *)
16664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16665 as_dummy="$PATH:/usr/sbin:/usr/lib"
16666 for as_dir in $as_dummy
16667 do
16668 IFS=$as_save_IFS
16669 test -z "$as_dir" && as_dir=.
16670 for ac_exec_ext in '' $ac_executable_extensions; do
16671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16672 ac_cv_path_NPA_PROG="$as_dir/$ac_word$ac_exec_ext"
16673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16674 break 2
16675 fi
16676 done
16677 done
16678 IFS=$as_save_IFS
16679
16680 test -z "$ac_cv_path_NPA_PROG" && ac_cv_path_NPA_PROG=""""
16681 ;;
16682 esac
16683 fi
16684 NPA_PROG=$ac_cv_path_NPA_PROG
16685 if test -n "$NPA_PROG"; then
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPA_PROG" >&5
16687 $as_echo "$NPA_PROG" >&6; }
16688 else
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16690 $as_echo "no" >&6; }
16691 fi
16692
16693
16694
16695 fi
16696
16697
16698 npa_flags="-h"
16699
16700 # Check whether --with-npa-flags was given.
16701 if test "${with_npa_flags+set}" = set; then :
16702 withval=$with_npa_flags;
16703 if test "x$withval" != "xno" ; then
16704 npa_flags=$withval
16705 fi
16706
16707 fi
16708
16709 if test -n "$NPA_PROG" ; then
16710
16711 cat >>confdefs.h <<_ACEOF
16712 #define SENDNEWS "$NPA_PROG $npa_flags"
16713 _ACEOF
16714
16715 fi
16716
16717
16718 # Check whether --with-password-prog was given.
16719 if test "${with_password_prog+set}" = set; then :
16720 withval=$with_password_prog;
16721 case "$withval" in
16722 no)
16723 ;;
16724 yes)
16725 # Extract the first word of "passwd", so it can be a program name with args.
16726 set dummy passwd; ac_word=$2
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16728 $as_echo_n "checking for $ac_word... " >&6; }
16729 if ${ac_cv_path_PWPROG+:} false; then :
16730 $as_echo_n "(cached) " >&6
16731 else
16732 case $PWPROG in
16733 [\\/]* | ?:[\\/]*)
16734 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
16735 ;;
16736 *)
16737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16738 as_dummy="$PATH:/usr/sbin:/usr/lib"
16739 for as_dir in $as_dummy
16740 do
16741 IFS=$as_save_IFS
16742 test -z "$as_dir" && as_dir=.
16743 for ac_exec_ext in '' $ac_executable_extensions; do
16744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16745 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
16746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16747 break 2
16748 fi
16749 done
16750 done
16751 IFS=$as_save_IFS
16752
16753 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
16754 ;;
16755 esac
16756 fi
16757 PWPROG=$ac_cv_path_PWPROG
16758 if test -n "$PWPROG"; then
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
16760 $as_echo "$PWPROG" >&6; }
16761 else
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16763 $as_echo "no" >&6; }
16764 fi
16765
16766
16767 ;;
16768 *)
16769 # Extract the first word of "$withval", so it can be a program name with args.
16770 set dummy $withval; ac_word=$2
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16772 $as_echo_n "checking for $ac_word... " >&6; }
16773 if ${ac_cv_path_PWPROG+:} false; then :
16774 $as_echo_n "(cached) " >&6
16775 else
16776 case $PWPROG in
16777 [\\/]* | ?:[\\/]*)
16778 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
16779 ;;
16780 *)
16781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16782 as_dummy="$PATH:/usr/sbin:/usr/lib"
16783 for as_dir in $as_dummy
16784 do
16785 IFS=$as_save_IFS
16786 test -z "$as_dir" && as_dir=.
16787 for ac_exec_ext in '' $ac_executable_extensions; do
16788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16789 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
16790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16791 break 2
16792 fi
16793 done
16794 done
16795 IFS=$as_save_IFS
16796
16797 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
16798 ;;
16799 esac
16800 fi
16801 PWPROG=$ac_cv_path_PWPROG
16802 if test -n "$PWPROG"; then
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
16804 $as_echo "$PWPROG" >&6; }
16805 else
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16807 $as_echo "no" >&6; }
16808 fi
16809
16810
16811 ;;
16812 esac
16813
16814 else
16815
16816 # Extract the first word of "passwd", so it can be a program name with args.
16817 set dummy passwd; ac_word=$2
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16819 $as_echo_n "checking for $ac_word... " >&6; }
16820 if ${ac_cv_path_PWPROG+:} false; then :
16821 $as_echo_n "(cached) " >&6
16822 else
16823 case $PWPROG in
16824 [\\/]* | ?:[\\/]*)
16825 ac_cv_path_PWPROG="$PWPROG" # Let the user override the test with a path.
16826 ;;
16827 *)
16828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16829 as_dummy="$PATH:/usr/sbin:/usr/lib"
16830 for as_dir in $as_dummy
16831 do
16832 IFS=$as_save_IFS
16833 test -z "$as_dir" && as_dir=.
16834 for ac_exec_ext in '' $ac_executable_extensions; do
16835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16836 ac_cv_path_PWPROG="$as_dir/$ac_word$ac_exec_ext"
16837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16838 break 2
16839 fi
16840 done
16841 done
16842 IFS=$as_save_IFS
16843
16844 test -z "$ac_cv_path_PWPROG" && ac_cv_path_PWPROG=""""
16845 ;;
16846 esac
16847 fi
16848 PWPROG=$ac_cv_path_PWPROG
16849 if test -n "$PWPROG"; then
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWPROG" >&5
16851 $as_echo "$PWPROG" >&6; }
16852 else
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16854 $as_echo "no" >&6; }
16855 fi
16856
16857
16858
16859 fi
16860
16861 if test -n "$PWPROG" ; then
16862
16863 cat >>confdefs.h <<_ACEOF
16864 #define PASSWD_PROG "$PWPROG"
16865 _ACEOF
16866
16867 fi
16868
16869
16870 # Check whether --with-simple-spellcheck was given.
16871 if test "${with_simple_spellcheck+set}" = set; then :
16872 withval=$with_simple_spellcheck;
16873 if test "x$withval" != "xno" ; then
16874 SPELLPROG=$withval
16875 fi
16876
16877 else
16878
16879 # Extract the first word of "hunspell", so it can be a program name with args.
16880 set dummy hunspell; ac_word=$2
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16882 $as_echo_n "checking for $ac_word... " >&6; }
16883 if ${ac_cv_prog_SPELLPROG+:} false; then :
16884 $as_echo_n "(cached) " >&6
16885 else
16886 if test -n "$SPELLPROG"; then
16887 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
16888 else
16889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16890 for as_dir in $PATH
16891 do
16892 IFS=$as_save_IFS
16893 test -z "$as_dir" && as_dir=.
16894 for ac_exec_ext in '' $ac_executable_extensions; do
16895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16896 ac_cv_prog_SPELLPROG="hunspell"
16897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16898 break 2
16899 fi
16900 done
16901 done
16902 IFS=$as_save_IFS
16903
16904 fi
16905 fi
16906 SPELLPROG=$ac_cv_prog_SPELLPROG
16907 if test -n "$SPELLPROG"; then
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
16909 $as_echo "$SPELLPROG" >&6; }
16910 else
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16912 $as_echo "no" >&6; }
16913 fi
16914
16915
16916 if test -z "$SPELLPROG" ; then
16917 # Extract the first word of "aspell", so it can be a program name with args.
16918 set dummy aspell; ac_word=$2
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16920 $as_echo_n "checking for $ac_word... " >&6; }
16921 if ${ac_cv_prog_SPELLPROG+:} false; then :
16922 $as_echo_n "(cached) " >&6
16923 else
16924 if test -n "$SPELLPROG"; then
16925 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
16926 else
16927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16928 for as_dir in $PATH
16929 do
16930 IFS=$as_save_IFS
16931 test -z "$as_dir" && as_dir=.
16932 for ac_exec_ext in '' $ac_executable_extensions; do
16933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16934 ac_cv_prog_SPELLPROG="aspell"
16935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16936 break 2
16937 fi
16938 done
16939 done
16940 IFS=$as_save_IFS
16941
16942 fi
16943 fi
16944 SPELLPROG=$ac_cv_prog_SPELLPROG
16945 if test -n "$SPELLPROG"; then
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
16947 $as_echo "$SPELLPROG" >&6; }
16948 else
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16950 $as_echo "no" >&6; }
16951 fi
16952
16953
16954 if test -z "$SPELLPROG" ; then
16955 # Extract the first word of "ispell", so it can be a program name with args.
16956 set dummy ispell; ac_word=$2
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16958 $as_echo_n "checking for $ac_word... " >&6; }
16959 if ${ac_cv_prog_SPELLPROG+:} false; then :
16960 $as_echo_n "(cached) " >&6
16961 else
16962 if test -n "$SPELLPROG"; then
16963 ac_cv_prog_SPELLPROG="$SPELLPROG" # Let the user override the test.
16964 else
16965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16966 for as_dir in $PATH
16967 do
16968 IFS=$as_save_IFS
16969 test -z "$as_dir" && as_dir=.
16970 for ac_exec_ext in '' $ac_executable_extensions; do
16971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16972 ac_cv_prog_SPELLPROG="ispell"
16973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16974 break 2
16975 fi
16976 done
16977 done
16978 IFS=$as_save_IFS
16979
16980 fi
16981 fi
16982 SPELLPROG=$ac_cv_prog_SPELLPROG
16983 if test -n "$SPELLPROG"; then
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPELLPROG" >&5
16985 $as_echo "$SPELLPROG" >&6; }
16986 else
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16988 $as_echo "no" >&6; }
16989 fi
16990
16991
16992 if test -z "$SPELLPROG" ; then
16993 SPELLPROG="spell"
16994 fi
16995 fi
16996 fi
16997
16998 fi
16999
17000
17001 if test "x$SPELLPROG" != "xno" ; then
17002 # Extract the first word of "$SPELLPROG", so it can be a program name with args.
17003 set dummy $SPELLPROG; ac_word=$2
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17005 $as_echo_n "checking for $ac_word... " >&6; }
17006 if ${ac_cv_path_alpine_simple_spellcheck+:} false; then :
17007 $as_echo_n "(cached) " >&6
17008 else
17009 case $alpine_simple_spellcheck in
17010 [\\/]* | ?:[\\/]*)
17011 ac_cv_path_alpine_simple_spellcheck="$alpine_simple_spellcheck" # Let the user override the test with a path.
17012 ;;
17013 *)
17014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17015 for as_dir in $PATH
17016 do
17017 IFS=$as_save_IFS
17018 test -z "$as_dir" && as_dir=.
17019 for ac_exec_ext in '' $ac_executable_extensions; do
17020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17021 ac_cv_path_alpine_simple_spellcheck="$as_dir/$ac_word$ac_exec_ext"
17022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17023 break 2
17024 fi
17025 done
17026 done
17027 IFS=$as_save_IFS
17028
17029 ;;
17030 esac
17031 fi
17032 alpine_simple_spellcheck=$ac_cv_path_alpine_simple_spellcheck
17033 if test -n "$alpine_simple_spellcheck"; then
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_simple_spellcheck" >&5
17035 $as_echo "$alpine_simple_spellcheck" >&6; }
17036 else
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17038 $as_echo "no" >&6; }
17039 fi
17040
17041
17042 if test -n "$alpine_simple_spellcheck" ; then
17043 case "$SPELLPROG" in
17044 hunspell)
17045 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
17046 ;;
17047 aspell)
17048 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
17049 ;;
17050 ispell)
17051 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
17052 ;;
17053 *)
17054 ;;
17055 esac
17056 fi
17057 fi
17058
17059
17060 # Check whether --with-interactive-spellcheck was given.
17061 if test "${with_interactive_spellcheck+set}" = set; then :
17062 withval=$with_interactive_spellcheck;
17063 if test "x$withval" != "xno" ; then
17064 ISPELLPROG=$withval
17065 fi
17066
17067 else
17068
17069 # Extract the first word of "hunspell", so it can be a program name with args.
17070 set dummy hunspell; ac_word=$2
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17072 $as_echo_n "checking for $ac_word... " >&6; }
17073 if ${ac_cv_prog_ISPELLPROG+:} false; then :
17074 $as_echo_n "(cached) " >&6
17075 else
17076 if test -n "$ISPELLPROG"; then
17077 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
17078 else
17079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17080 for as_dir in $PATH
17081 do
17082 IFS=$as_save_IFS
17083 test -z "$as_dir" && as_dir=.
17084 for ac_exec_ext in '' $ac_executable_extensions; do
17085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17086 ac_cv_prog_ISPELLPROG="hunspell"
17087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17088 break 2
17089 fi
17090 done
17091 done
17092 IFS=$as_save_IFS
17093
17094 fi
17095 fi
17096 ISPELLPROG=$ac_cv_prog_ISPELLPROG
17097 if test -n "$ISPELLPROG"; then
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
17099 $as_echo "$ISPELLPROG" >&6; }
17100 else
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17102 $as_echo "no" >&6; }
17103 fi
17104
17105
17106 if test -z "$ISPELLPROG" ; then
17107 # Extract the first word of "aspell", so it can be a program name with args.
17108 set dummy aspell; ac_word=$2
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17110 $as_echo_n "checking for $ac_word... " >&6; }
17111 if ${ac_cv_prog_ISPELLPROG+:} false; then :
17112 $as_echo_n "(cached) " >&6
17113 else
17114 if test -n "$ISPELLPROG"; then
17115 ac_cv_prog_ISPELLPROG="$ISPELLPROG" # Let the user override the test.
17116 else
17117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17118 for as_dir in $PATH
17119 do
17120 IFS=$as_save_IFS
17121 test -z "$as_dir" && as_dir=.
17122 for ac_exec_ext in '' $ac_executable_extensions; do
17123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17124 ac_cv_prog_ISPELLPROG="aspell"
17125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17126 break 2
17127 fi
17128 done
17129 done
17130 IFS=$as_save_IFS
17131
17132 fi
17133 fi
17134 ISPELLPROG=$ac_cv_prog_ISPELLPROG
17135 if test -n "$ISPELLPROG"; then
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISPELLPROG" >&5
17137 $as_echo "$ISPELLPROG" >&6; }
17138 else
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17140 $as_echo "no" >&6; }
17141 fi
17142
17143
17144 if test -z "$SPELLPROG" ; then
17145 ISPELLPROG="ispell"
17146 fi
17147 fi
17148
17149 fi
17150
17151
17152 if test "x$ISPELLPROG" != "xno" ; then
17153 # Extract the first word of "$ISPELLPROG", so it can be a program name with args.
17154 set dummy $ISPELLPROG; ac_word=$2
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17156 $as_echo_n "checking for $ac_word... " >&6; }
17157 if ${ac_cv_path_alpine_interactive_spellcheck+:} false; then :
17158 $as_echo_n "(cached) " >&6
17159 else
17160 case $alpine_interactive_spellcheck in
17161 [\\/]* | ?:[\\/]*)
17162 ac_cv_path_alpine_interactive_spellcheck="$alpine_interactive_spellcheck" # Let the user override the test with a path.
17163 ;;
17164 *)
17165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17166 for as_dir in $PATH
17167 do
17168 IFS=$as_save_IFS
17169 test -z "$as_dir" && as_dir=.
17170 for ac_exec_ext in '' $ac_executable_extensions; do
17171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17172 ac_cv_path_alpine_interactive_spellcheck="$as_dir/$ac_word$ac_exec_ext"
17173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17174 break 2
17175 fi
17176 done
17177 done
17178 IFS=$as_save_IFS
17179
17180 ;;
17181 esac
17182 fi
17183 alpine_interactive_spellcheck=$ac_cv_path_alpine_interactive_spellcheck
17184 if test -n "$alpine_interactive_spellcheck"; then
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alpine_interactive_spellcheck" >&5
17186 $as_echo "$alpine_interactive_spellcheck" >&6; }
17187 else
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17189 $as_echo "no" >&6; }
17190 fi
17191
17192
17193 if test -n "$alpine_interactive_spellcheck" ; then
17194 case "$ISPELLPROG" in
17195 aspell)
17196 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
17197 ;;
17198 *)
17199 ;;
17200 esac
17201 fi
17202 fi
17203
17204 if test -n "$alpine_interactive_spellcheck" ; then
17205
17206 cat >>confdefs.h <<_ACEOF
17207 #define DF_VAR_SPELLER "$alpine_interactive_spellcheck"
17208 _ACEOF
17209
17210 fi
17211
17212 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
17213 alpine_simple_spellcheck=test
17214 fi
17215
17216 cat >>confdefs.h <<_ACEOF
17217 #define SPELLER "$alpine_simple_spellcheck"
17218 _ACEOF
17219
17220
17221 case "$prefix" in
17222 NONE) dpv=/usr/local/lib/pine.conf ;;
17223 *) dpv=${prefix}/lib/pine.conf ;;
17224 esac
17225
17226 # Check whether --with-system-pinerc was given.
17227 if test "${with_system_pinerc+set}" = set; then :
17228 withval=$with_system_pinerc;
17229 case "$withval" in
17230 no)
17231 ;;
17232 yes)
17233 ;;
17234 *)
17235 dpv=$withval
17236 ;;
17237 esac
17238
17239 fi
17240
17241
17242 cat >>confdefs.h <<_ACEOF
17243 #define SYSTEM_PINERC "$dpv"
17244 _ACEOF
17245
17246
17247 case "$prefix" in
17248 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
17249 *) dpv=${prefix}/lib/pine.conf.fixed ;;
17250 esac
17251
17252 # Check whether --with-system-fixed-pinerc was given.
17253 if test "${with_system_fixed_pinerc+set}" = set; then :
17254 withval=$with_system_fixed_pinerc;
17255 case "$withval" in
17256 no)
17257 ;;
17258 yes)
17259 ;;
17260 *)
17261 dpv=$withval
17262 ;;
17263 esac
17264
17265 fi
17266
17267
17268 cat >>confdefs.h <<_ACEOF
17269 #define SYSTEM_PINERC_FIXED "$dpv"
17270 _ACEOF
17271
17272
17273 case "$prefix" in
17274 NONE) dpv=/usr/local/lib/pine.info ;;
17275 *) dpv=${prefix}/lib/pine.info ;;
17276 esac
17277
17278 # Check whether --with-local-support-info was given.
17279 if test "${with_local_support_info+set}" = set; then :
17280 withval=$with_local_support_info;
17281 case "$withval" in
17282 no)
17283 ;;
17284 yes)
17285 ;;
17286 *)
17287 dpv=$withval
17288 ;;
17289 esac
17290
17291 fi
17292
17293
17294 cat >>confdefs.h <<_ACEOF
17295 #define SYSTEM_PINE_INFO_PATH "$dpv"
17296 _ACEOF
17297
17298
17299
17300
17301
17302
17303
17304 dpv=150
17305
17306 # Check whether --with-mailcheck-interval was given.
17307 if test "${with_mailcheck_interval+set}" = set; then :
17308 withval=$with_mailcheck_interval;
17309 if test "x$withval" != "xno" ; then
17310 dpv=$withval
17311 fi
17312
17313 fi
17314
17315
17316 cat >>confdefs.h <<_ACEOF
17317 #define DF_MAILCHECK "$dpv"
17318 _ACEOF
17319
17320
17321
17322 dpv=420
17323
17324 # Check whether --with-checkpoint-interval was given.
17325 if test "${with_checkpoint_interval+set}" = set; then :
17326 withval=$with_checkpoint_interval;
17327 if test "x$withval" != "xno" ; then
17328 dpv=$withval
17329 fi
17330
17331 fi
17332
17333
17334 cat >>confdefs.h <<_ACEOF
17335 #define CHECK_POINT_TIME $dpv
17336 _ACEOF
17337
17338
17339
17340 dpv=12
17341
17342 # Check whether --with-checkpoint-frequency was given.
17343 if test "${with_checkpoint_frequency+set}" = set; then :
17344 withval=$with_checkpoint_frequency;
17345 if test "x$withval" != "xno" ; then
17346 dpv=$withval
17347 fi
17348
17349 fi
17350
17351
17352 cat >>confdefs.h <<_ACEOF
17353 #define CHECK_POINT_FREQ $dpv
17354 _ACEOF
17355
17356
17357
17358 dpv=24
17359
17360 # Check whether --with-display-rows was given.
17361 if test "${with_display_rows+set}" = set; then :
17362 withval=$with_display_rows;
17363 if test "x$withval" != "xno" ; then
17364 dpv=$withval
17365 fi
17366
17367 fi
17368
17369
17370 cat >>confdefs.h <<_ACEOF
17371 #define DEFAULT_LINES_ON_TERMINAL $dpv
17372 _ACEOF
17373
17374
17375
17376 dpv=80
17377
17378 # Check whether --with-display-columns was given.
17379 if test "${with_display_columns+set}" = set; then :
17380 withval=$with_display_columns;
17381 if test "x$withval" != "xno" ; then
17382 dpv=$withval
17383 fi
17384
17385 fi
17386
17387
17388 cat >>confdefs.h <<_ACEOF
17389 #define DEFAULT_COLUMNS_ON_TERMINAL $dpv
17390 _ACEOF
17391
17392
17393
17394 dpv=200
17395
17396 # Check whether --with-max-display-rows was given.
17397 if test "${with_max_display_rows+set}" = set; then :
17398 withval=$with_max_display_rows;
17399 if test "x$withval" != "xno" ; then
17400 dpv=$withval
17401 fi
17402
17403 fi
17404
17405
17406 cat >>confdefs.h <<_ACEOF
17407 #define MAX_SCREEN_ROWS $dpv
17408 _ACEOF
17409
17410
17411
17412 dpv=500
17413
17414 # Check whether --with-max-display-columns was given.
17415 if test "${with_max_display_columns+set}" = set; then :
17416 withval=$with_max_display_columns;
17417 if test "x$withval" != "xno" ; then
17418 dpv=$withval
17419 fi
17420
17421 fi
17422
17423
17424 cat >>confdefs.h <<_ACEOF
17425 #define MAX_SCREEN_COLS $dpv
17426 _ACEOF
17427
17428
17429
17430 dpv=74
17431
17432 # Check whether --with-fill-column was given.
17433 if test "${with_fill_column+set}" = set; then :
17434 withval=$with_fill_column;
17435 if test "x$withval" != "xno" ; then
17436 dpv=$withval
17437 fi
17438
17439 fi
17440
17441
17442 cat >>confdefs.h <<_ACEOF
17443 #define DF_FILLCOL "$dpv"
17444 _ACEOF
17445
17446
17447
17448 dpv=80
17449
17450 # Check whether --with-max_fill-column was given.
17451 if test "${with_max_fill_column+set}" = set; then :
17452 withval=$with_max_fill_column;
17453 if test "x$withval" != "xno" ; then
17454 dpv=$withval
17455 fi
17456
17457 fi
17458
17459
17460 cat >>confdefs.h <<_ACEOF
17461 #define MAX_FILLCOL $dpv
17462 _ACEOF
17463
17464
17465
17466 dpv=2
17467
17468 # Check whether --with-debug-level was given.
17469 if test "${with_debug_level+set}" = set; then :
17470 withval=$with_debug_level;
17471 if test "x$withval" != "xno" ; then
17472 dpv=$withval
17473 fi
17474
17475 fi
17476
17477
17478 cat >>confdefs.h <<_ACEOF
17479 #define DEFAULT_DEBUG $dpv
17480 _ACEOF
17481
17482
17483
17484 dpv=4
17485
17486 # Check whether --with-debug-files was given.
17487 if test "${with_debug_files+set}" = set; then :
17488 withval=$with_debug_files;
17489 if test "x$withval" != "xno" ; then
17490 dpv=$withval
17491 fi
17492
17493 fi
17494
17495
17496 cat >>confdefs.h <<_ACEOF
17497 #define NUMDEBUGFILES $dpv
17498 _ACEOF
17499
17500
17501
17502 dpv=.pine-debug
17503
17504 # Check whether --with-debug-file was given.
17505 if test "${with_debug_file+set}" = set; then :
17506 withval=$with_debug_file;
17507 if test "x$withval" != "xno" ; then
17508 dpv=$withval
17509 fi
17510
17511 fi
17512
17513
17514 cat >>confdefs.h <<_ACEOF
17515 #define DEBUGFILE "$dpv"
17516 _ACEOF
17517
17518
17519
17520 dpv="\$Forwarded"
17521
17522 # Check whether --with-forwarded-keyword was given.
17523 if test "${with_forwarded_keyword+set}" = set; then :
17524 withval=$with_forwarded_keyword;
17525 if test "x$withval" != "xno" ; then
17526 dpv=$withval
17527 fi
17528
17529 fi
17530
17531
17532 cat >>confdefs.h <<_ACEOF
17533 #define FORWARDED_FLAG "$dpv"
17534 _ACEOF
17535
17536
17537
17538 dpv=2
17539
17540 # Check whether --with-display-overlap was given.
17541 if test "${with_display_overlap+set}" = set; then :
17542 withval=$with_display_overlap;
17543 if test "x$withval" != "xno" ; then
17544 dpv=$withval
17545 fi
17546
17547 fi
17548
17549
17550 cat >>confdefs.h <<_ACEOF
17551 #define DF_OVERLAP "$dpv"
17552 _ACEOF
17553
17554
17555
17556 dpv=0
17557
17558 # Check whether --with-display-margin was given.
17559 if test "${with_display_margin+set}" = set; then :
17560 withval=$with_display_margin;
17561 if test "x$withval" != "xno" ; then
17562 dpv=$withval
17563 fi
17564
17565 fi
17566
17567
17568 cat >>confdefs.h <<_ACEOF
17569 #define DF_MARGIN "$dpv"
17570 _ACEOF
17571
17572
17573
17574 dpv=sent-mail
17575
17576 # Check whether --with-default-fcc was given.
17577 if test "${with_default_fcc+set}" = set; then :
17578 withval=$with_default_fcc;
17579 if test "x$withval" != "xno" ; then
17580 dpv=$withval
17581 fi
17582
17583 fi
17584
17585
17586 cat >>confdefs.h <<_ACEOF
17587 #define DF_DEFAULT_FCC "$dpv"
17588 _ACEOF
17589
17590
17591
17592 dpv=saved-messages
17593
17594 # Check whether --with-default-save-folder was given.
17595 if test "${with_default_save_folder+set}" = set; then :
17596 withval=$with_default_save_folder;
17597 if test "x$withval" != "xno" ; then
17598 dpv=$withval
17599 fi
17600
17601 fi
17602
17603
17604 cat >>confdefs.h <<_ACEOF
17605 #define DEFAULT_SAVE "$dpv"
17606 _ACEOF
17607
17608
17609
17610 dpv=postponed-mail
17611
17612 # Check whether --with-default-legacy-postponed-folder was given.
17613 if test "${with_default_legacy_postponed_folder+set}" = set; then :
17614 withval=$with_default_legacy_postponed_folder;
17615 if test "x$withval" != "xno" ; then
17616 dpv=$withval
17617 fi
17618
17619 fi
17620
17621
17622 cat >>confdefs.h <<_ACEOF
17623 #define POSTPONED_MAIL "$dpv"
17624 _ACEOF
17625
17626
17627
17628 dpv=postponed-msgs
17629
17630 # Check whether --with-default-postponed-folder was given.
17631 if test "${with_default_postponed_folder+set}" = set; then :
17632 withval=$with_default_postponed_folder;
17633 if test "x$withval" != "xno" ; then
17634 dpv=$withval
17635 fi
17636
17637 fi
17638
17639
17640 cat >>confdefs.h <<_ACEOF
17641 #define POSTPONED_MSGS "$dpv"
17642 _ACEOF
17643
17644
17645
17646 dpv=Trash
17647
17648 # Check whether --with-default-trash-folder was given.
17649 if test "${with_default_trash_folder+set}" = set; then :
17650 withval=$with_default_trash_folder;
17651 if test "x$withval" != "xno" ; then
17652 dpv=$withval
17653 fi
17654
17655 fi
17656
17657
17658 cat >>confdefs.h <<_ACEOF
17659 #define TRASH_FOLDER "$dpv"
17660 _ACEOF
17661
17662
17663
17664 dpv=.pine-interrupted-mail
17665
17666 # Check whether --with-default-interrupted-mail was given.
17667 if test "${with_default_interrupted_mail+set}" = set; then :
17668 withval=$with_default_interrupted_mail;
17669 if test "x$withval" != "xno" ; then
17670 dpv=$withval
17671 fi
17672
17673 fi
17674
17675
17676 cat >>confdefs.h <<_ACEOF
17677 #define INTERRUPTED_MAIL "$dpv"
17678 _ACEOF
17679
17680
17681
17682 dpv=dead.letter
17683
17684 # Check whether --with-default-dead-letter-folder was given.
17685 if test "${with_default_dead_letter_folder+set}" = set; then :
17686 withval=$with_default_dead_letter_folder;
17687 if test "x$withval" != "xno" ; then
17688 dpv=$withval
17689 fi
17690
17691 fi
17692
17693
17694 cat >>confdefs.h <<_ACEOF
17695 #define DEADLETTER "$dpv"
17696 _ACEOF
17697
17698
17699
17700 dpv=mail
17701
17702 # Check whether --with-default-mail-directory was given.
17703 if test "${with_default_mail_directory+set}" = set; then :
17704 withval=$with_default_mail_directory;
17705 if test "x$withval" != "xno" ; then
17706 dpv=$withval
17707 fi
17708
17709 fi
17710
17711
17712 cat >>confdefs.h <<_ACEOF
17713 #define DF_MAIL_DIRECTORY "$dpv"
17714 _ACEOF
17715
17716
17717
17718 dpv=INBOX
17719
17720 # Check whether --with-default-inbox-name was given.
17721 if test "${with_default_inbox_name+set}" = set; then :
17722 withval=$with_default_inbox_name;
17723 if test "x$withval" != "xno" ; then
17724 dpv=$withval
17725 fi
17726
17727 fi
17728
17729
17730 cat >>confdefs.h <<_ACEOF
17731 #define INBOX_NAME "$dpv"
17732 _ACEOF
17733
17734
17735
17736 dpv=.signature
17737
17738 # Check whether --with-default-signature-file was given.
17739 if test "${with_default_signature_file+set}" = set; then :
17740 withval=$with_default_signature_file;
17741 if test "x$withval" != "xno" ; then
17742 dpv=$withval
17743 fi
17744
17745 fi
17746
17747
17748 cat >>confdefs.h <<_ACEOF
17749 #define DF_SIGNATURE_FILE "$dpv"
17750 _ACEOF
17751
17752
17753
17754 dpv=no
17755
17756 # Check whether --with-default-elm-style-save was given.
17757 if test "${with_default_elm_style_save+set}" = set; then :
17758 withval=$with_default_elm_style_save;
17759 if test "x$withval" != "xno" ; then
17760 dpv=$withval
17761 fi
17762
17763 fi
17764
17765
17766 cat >>confdefs.h <<_ACEOF
17767 #define DF_ELM_STYLE_SAVE "$dpv"
17768 _ACEOF
17769
17770
17771
17772 dpv=no
17773
17774 # Check whether --with-default-header-in-reply was given.
17775 if test "${with_default_header_in_reply+set}" = set; then :
17776 withval=$with_default_header_in_reply;
17777 if test "x$withval" != "xno" ; then
17778 dpv=$withval
17779 fi
17780
17781 fi
17782
17783
17784 cat >>confdefs.h <<_ACEOF
17785 #define DF_HEADER_IN_REPLY "$dpv"
17786 _ACEOF
17787
17788
17789
17790 dpv=no
17791
17792 # Check whether --with-default-old-style-reply was given.
17793 if test "${with_default_old_style_reply+set}" = set; then :
17794 withval=$with_default_old_style_reply;
17795 if test "x$withval" != "xno" ; then
17796 dpv=$withval
17797 fi
17798
17799 fi
17800
17801
17802 cat >>confdefs.h <<_ACEOF
17803 #define DF_OLD_STYLE_REPLY "$dpv"
17804 _ACEOF
17805
17806
17807
17808 dpv=no
17809
17810 # Check whether --with-default-use-only-domain-name was given.
17811 if test "${with_default_use_only_domain_name+set}" = set; then :
17812 withval=$with_default_use_only_domain_name;
17813 if test "x$withval" != "xno" ; then
17814 dpv=$withval
17815 fi
17816
17817 fi
17818
17819
17820 cat >>confdefs.h <<_ACEOF
17821 #define DF_USE_ONLY_DOMAIN_NAME "$dpv"
17822 _ACEOF
17823
17824
17825
17826 dpv=no
17827
17828 # Check whether --with-default-save-by-sender was given.
17829 if test "${with_default_save_by_sender+set}" = set; then :
17830 withval=$with_default_save_by_sender;
17831 if test "x$withval" != "xno" ; then
17832 dpv=$withval
17833 fi
17834
17835 fi
17836
17837
17838 cat >>confdefs.h <<_ACEOF
17839 #define DF_SAVE_BY_SENDER "$dpv"
17840 _ACEOF
17841
17842
17843
17844 dpv=arrival
17845
17846 # Check whether --with-default-sort-key was given.
17847 if test "${with_default_sort_key+set}" = set; then :
17848 withval=$with_default_sort_key;
17849 if test "x$withval" != "xno" ; then
17850 dpv=$withval
17851 fi
17852
17853 fi
17854
17855
17856 cat >>confdefs.h <<_ACEOF
17857 #define DF_SORT_KEY "$dpv"
17858 _ACEOF
17859
17860
17861
17862 dpv=fullname-with-lists-last
17863
17864 # Check whether --with-default-addressbook-sort-rule was given.
17865 if test "${with_default_addressbook_sort_rule+set}" = set; then :
17866 withval=$with_default_addressbook_sort_rule;
17867 if test "x$withval" != "xno" ; then
17868 dpv=$withval
17869 fi
17870
17871 fi
17872
17873
17874 cat >>confdefs.h <<_ACEOF
17875 #define DF_AB_SORT_RULE "$dpv"
17876 _ACEOF
17877
17878
17879
17880 dpv=alphabetical
17881
17882 # Check whether --with-default-folder-sort-rule was given.
17883 if test "${with_default_folder_sort_rule+set}" = set; then :
17884 withval=$with_default_folder_sort_rule;
17885 if test "x$withval" != "xno" ; then
17886 dpv=$withval
17887 fi
17888
17889 fi
17890
17891
17892 cat >>confdefs.h <<_ACEOF
17893 #define DF_FLD_SORT_RULE "$dpv"
17894 _ACEOF
17895
17896
17897
17898 dpv=default-folder
17899
17900 # Check whether --with-default-saved-message-name-rule was given.
17901 if test "${with_default_saved_message_name_rule+set}" = set; then :
17902 withval=$with_default_saved_message_name_rule;
17903 if test "x$withval" != "xno" ; then
17904 dpv=$withval
17905 fi
17906
17907 fi
17908
17909
17910 cat >>confdefs.h <<_ACEOF
17911 #define DF_SAVED_MSG_NAME_RULE "$dpv"
17912 _ACEOF
17913
17914
17915
17916 dpv=default-fcc
17917
17918 # Check whether --with-default-fcc-rule was given.
17919 if test "${with_default_fcc_rule+set}" = set; then :
17920 withval=$with_default_fcc_rule;
17921 if test "x$withval" != "xno" ; then
17922 dpv=$withval
17923 fi
17924
17925 fi
17926
17927
17928 cat >>confdefs.h <<_ACEOF
17929 #define DF_FCC_RULE "$dpv"
17930 _ACEOF
17931
17932
17933
17934 dpv=lpr
17935
17936 # Check whether --with-default-standard-printer was given.
17937 if test "${with_default_standard_printer+set}" = set; then :
17938 withval=$with_default_standard_printer;
17939 if test "x$withval" != "xno" ; then
17940 dpv=$withval
17941 fi
17942
17943 fi
17944
17945
17946 cat >>confdefs.h <<_ACEOF
17947 #define DF_STANDARD_PRINTER "$dpv"
17948 _ACEOF
17949
17950
17951
17952 dpv=attached-to-ansi
17953
17954 # Check whether --with-default-ansi-printer was given.
17955 if test "${with_default_ansi_printer+set}" = set; then :
17956 withval=$with_default_ansi_printer;
17957 if test "x$withval" != "xno" ; then
17958 dpv=$withval
17959 fi
17960
17961 fi
17962
17963
17964 cat >>confdefs.h <<_ACEOF
17965 #define ANSI_PRINTER "$dpv"
17966 _ACEOF
17967
17968
17969
17970 dpv=.addressbook
17971
17972 # Check whether --with-default-addressbook was given.
17973 if test "${with_default_addressbook+set}" = set; then :
17974 withval=$with_default_addressbook;
17975 if test "x$withval" != "xno" ; then
17976 dpv=$withval
17977 fi
17978
17979 fi
17980
17981
17982 cat >>confdefs.h <<_ACEOF
17983 #define DF_ADDRESSBOOK "$dpv"
17984 _ACEOF
17985
17986
17987
17988 dpv="Local Support"
17989
17990 # Check whether --with-default-local-fullname was given.
17991 if test "${with_default_local_fullname+set}" = set; then :
17992 withval=$with_default_local_fullname;
17993 if test "x$withval" != "xno" ; then
17994 dpv=$withval
17995 fi
17996
17997 fi
17998
17999
18000 cat >>confdefs.h <<_ACEOF
18001 #define DF_LOCAL_FULLNAME "$dpv"
18002 _ACEOF
18003
18004
18005
18006 dpv=postmaster
18007
18008 # Check whether --with-default-local-address was given.
18009 if test "${with_default_local_address+set}" = set; then :
18010 withval=$with_default_local_address;
18011 if test "x$withval" != "xno" ; then
18012 dpv=$withval
18013 fi
18014
18015 fi
18016
18017
18018 cat >>confdefs.h <<_ACEOF
18019 #define DF_LOCAL_ADDRESS "$dpv"
18020 _ACEOF
18021
18022
18023
18024 dpv=1
18025
18026 # Check whether --with-default-keyboard-lock-count was given.
18027 if test "${with_default_keyboard_lock_count+set}" = set; then :
18028 withval=$with_default_keyboard_lock_count;
18029 if test "x$withval" != "xno" ; then
18030 dpv=$withval
18031 fi
18032
18033 fi
18034
18035
18036 cat >>confdefs.h <<_ACEOF
18037 #define DF_KBLOCK_PASSWD_COUNT "$dpv"
18038 _ACEOF
18039
18040
18041
18042 dpv=3
18043
18044 # Check whether --with-default-remote-addressbook-history was given.
18045 if test "${with_default_remote_addressbook_history+set}" = set; then :
18046 withval=$with_default_remote_addressbook_history;
18047 if test "x$withval" != "xno" ; then
18048 dpv=$withval
18049 fi
18050
18051 fi
18052
18053
18054 cat >>confdefs.h <<_ACEOF
18055 #define DF_REMOTE_ABOOK_HISTORY "$dpv"
18056 _ACEOF
18057
18058
18059
18060 dpv=.alpine-html
18061
18062 # Check whether --with-default-html-directory was given.
18063 if test "${with_default_html_directory+set}" = set; then :
18064 withval=$with_default_html_directory;
18065 if test "x$withval" != "xno" ; then
18066 dpv=$withval
18067 fi
18068
18069 fi
18070
18071
18072 cat >>confdefs.h <<_ACEOF
18073 #define DF_HTML_DIRECTORY "$dpv"
18074 _ACEOF
18075
18076
18077
18078 dpv=.alpine-smime/public
18079
18080 # Check whether --with-smime-public-cert-directory was given.
18081 if test "${with_smime_public_cert_directory+set}" = set; then :
18082 withval=$with_smime_public_cert_directory;
18083 if test "x$withval" != "xno" ; then
18084 dpv=$withval
18085 fi
18086
18087 fi
18088
18089
18090 cat >>confdefs.h <<_ACEOF
18091 #define DF_PUBLICCERT_DIR "$dpv"
18092 _ACEOF
18093
18094
18095
18096 dpv=.alpine-smime/private
18097
18098 # Check whether --with-smime-private-key-directory was given.
18099 if test "${with_smime_private_key_directory+set}" = set; then :
18100 withval=$with_smime_private_key_directory;
18101 if test "x$withval" != "xno" ; then
18102 dpv=$withval
18103 fi
18104
18105 fi
18106
18107
18108 cat >>confdefs.h <<_ACEOF
18109 #define DF_PRIVATEKEY_DIR "$dpv"
18110 _ACEOF
18111
18112
18113
18114 dpv=.alpine-smime/ca
18115
18116 # Check whether --with-smime-cacert-directory was given.
18117 if test "${with_smime_cacert_directory+set}" = set; then :
18118 withval=$with_smime_cacert_directory;
18119 if test "x$withval" != "xno" ; then
18120 dpv=$withval
18121 fi
18122
18123 fi
18124
18125
18126 cat >>confdefs.h <<_ACEOF
18127 #define DF_CACERT_DIR "$dpv"
18128 _ACEOF
18129
18130
18131
18132 dpv=ANSI_PRINTER
18133
18134 # Check whether --with-default-printer was given.
18135 if test "${with_default_printer+set}" = set; then :
18136 withval=$with_default_printer;
18137 if test "x$withval" != "xno" ; then
18138 dpv=$withval
18139 fi
18140
18141 fi
18142
18143
18144 cat >>confdefs.h <<_ACEOF
18145 #define DF_DEFAULT_PRINTER $dpv
18146 _ACEOF
18147
18148
18149
18150
18151 cat >>confdefs.h <<_ACEOF
18152 #define DF_PUBLIC_CONTAINER "PublicContainer"
18153 _ACEOF
18154
18155
18156 cat >>confdefs.h <<_ACEOF
18157 #define DF_PRIVATE_CONTAINER "PrivateContainer"
18158 _ACEOF
18159
18160
18161 cat >>confdefs.h <<_ACEOF
18162 #define DF_CA_CONTAINER "CAContainer"
18163 _ACEOF
18164
18165
18166 cat >>confdefs.h <<_ACEOF
18167 #define DEFAULT_SSLUSERCAPATH ".alpine-certs"
18168 _ACEOF
18169
18170
18171 cat >>confdefs.h <<_ACEOF
18172 #define DEFAULT_SSLUSERCAFILE ".alpine-certs/certs.pem"
18173 _ACEOF
18174
18175
18176
18177 # Check whether --with-default-sshpath was given.
18178 if test "${with_default_sshpath+set}" = set; then :
18179 withval=$with_default_sshpath;
18180 case "$withval" in
18181 no)
18182 ;;
18183 yes)
18184 ;;
18185 *)
18186
18187 cat >>confdefs.h <<_ACEOF
18188 #define DF_SSHPATH "$withval"
18189 _ACEOF
18190
18191 ;;
18192 esac
18193
18194 fi
18195
18196
18197
18198 # Check whether --with-default-sshcmd was given.
18199 if test "${with_default_sshcmd+set}" = set; then :
18200 withval=$with_default_sshcmd;
18201 case "$withval" in
18202 no)
18203 ;;
18204 yes)
18205 ;;
18206 *)
18207
18208 cat >>confdefs.h <<_ACEOF
18209 #define DF_SSHCMD "$withval"
18210 _ACEOF
18211
18212 ;;
18213 esac
18214
18215 fi
18216
18217
18218
18219 # Check whether --with-ssl was given.
18220 if test "${with_ssl+set}" = set; then :
18221 withval=$with_ssl; with_ssl=$withval
18222 fi
18223
18224
18225 if test "x$with_ssl" = "xno" ; then
18226 alpine_SSLTYPE="none"
18227 elif test -d /usr/local/ssl ; then
18228 alpine_SSLDIR="/usr/local/ssl"
18229 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
18230 alpine_SSLLIB="$alpine_SSLDIR/lib"
18231 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18232 alpine_SSLTYPE="nopwd"
18233 else
18234 case $host in
18235 *-linux*|*-k*bsd*-gnu*|*-gnu*)
18236 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
18237 alpine_SSLTYPE="nopwd"
18238 if test -d /etc/pki/tls ; then
18239 alpine_SSLDIR="/etc/pki/tls"
18240 else
18241 alpine_SSLDIR="/usr/share/ssl"
18242 fi
18243 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18244 alpine_SSLKEYS="$alpine_SSLDIR/private"
18245 alpine_SSLINCLUDE="/usr/include/openssl"
18246 alpine_SSLLIB="/usr/lib"
18247 elif test -f /etc/mandrake-release ; then
18248 alpine_SSLDIR="/usr/lib/ssl"
18249 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18250 alpine_SSLKEYS="$alpine_SSLDIR/private"
18251 alpine_SSLINCLUDE="/usr/include/openssl"
18252 alpine_SSLLIB="/usr/lib"
18253 elif test -f /etc/SuSE-release ; then
18254 alpine_SSLTYPE="nopwd"
18255 alpine_SSLDIR="/etc/ssl"
18256 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18257 alpine_SSLKEYS="$alpine_SSLDIR/private"
18258 alpine_SSLINCLUDE="/usr/include/openssl"
18259 alpine_SSLLIB="/usr/lib"
18260 elif test -d /etc/osso-af-init ; then
18261 alpine_SSLTYPE="nopwd"
18262 alpine_SSLDIR="/usr"
18263 alpine_SSLCERTS="/usr/share/certs"
18264 alpine_SSLINCLUDE="/usr/include/openssl"
18265 alpine_SSLLIB="/usr/lib"
18266 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
18267 if test ! -d /etc/osso-af-init ; then
18268 alpine_SSLDIR="/etc/ssl"
18269 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18270 alpine_SSLKEYS="$alpine_SSLDIR/private"
18271 alpine_SSLINCLUDE="/usr/include/openssl"
18272 alpine_SSLLIB="/usr/lib"
18273 fi
18274 elif test -f /etc/manjaro-release ; then
18275 alpine_SSLDIR="/etc/ssl"
18276 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18277 alpine_SSLKEYS="$alpine_SSLDIR/private"
18278 alpine_SSLINCLUDE="/usr/include/openssl"
18279 alpine_SSLLIB="/usr/lib"
18280 else
18281 alpine_SSLTYPE="nopwd"
18282 alpine_SSLDIR="/usr"
18283 alpine_SSLCERTS="/etc/ssl/certs"
18284 fi
18285 ;;
18286 *-apple-darwin*)
18287 alpine_SSLTYPE="nopwd"
18288 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
18289 if test -d /usr/local/opt/openssl ; then
18290 alpine_SSLDIR="/usr/local/opt/openssl"
18291 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
18292 alpine_SSLLIB="$alpine_SSLDIR/lib"
18293 alpine_SSLCERTS="/usr/local/etc/openssl"
18294 alpine_SSLKEYS="$alpine_SSLDIR/private"
18295 elif test -d /opt/local/etc/openssl ; then
18296 alpine_SSLDIR="/opt/local"
18297 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
18298 alpine_SSLLIB="$alpine_SSLDIR/lib"
18299 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
18300 alpine_SSLKEYS="/opt/local/etc/openssl/private"
18301 elif test -d /sw/etc/ssl ; then
18302 alpine_SSLDIR="/sw/etc/ssl"
18303 alpine_SSLINCLUDE="/sw/include"
18304 alpine_SSLLIB="/sw/lib"
18305 alpine_SSLCERTS="/sw/etc/ssl/certs"
18306 alpine_SSLKEYS="/sw/etc/ssl/private"
18307 elif test -d /usr/local/ssl ; then
18308 alpine_SSLDIR="/usr/local/ssl"
18309 elif test -d /System/Library/OpenSSL ; then
18310 alpine_SSLDIR="/System/Library/OpenSSL"
18311 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18312 alpine_SSLKEYS="$alpine_SSLDIR/private"
18313 alpine_SSLLIB="/usr/lib"
18314 alpine_SSLINCLUDE="/usr/include/openssl"
18315 fi
18316 ;;
18317 *-*-netbsd*)
18318 alpine_SSLDIR="/etc/openssl"
18319 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18320 alpine_SSLKEYS="$alpine_SSLDIR/private"
18321 alpine_SSLINCLUDE="/usr/include/openssl"
18322 alpine_SSLLIB="/usr/lib"
18323 ;;
18324 *-*-dragonfly*)
18325 alpine_SSLDIR="/etc/openssl"
18326 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18327 alpine_SSLKEYS="$alpine_SSLDIR/private"
18328 alpine_SSLINCLUDE="/usr/include/openssl"
18329 alpine_SSLLIB="/usr/lib"
18330 ;;
18331 *-openbsd*)
18332 alpine_SSLTYPE="nopwd"
18333 alpine_SSLDIR="/usr"
18334 alpine_SSLCERTS="/etc/ssl/certs"
18335 ;;
18336 *-*-freebsd*)
18337 alpine_SSLDIR="/etc/ssl"
18338 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18339 alpine_SSLKEYS="$alpine_SSLDIR/private"
18340 if test -d /usr/local/include/openssl ; then
18341 alpine_SSLINCLUDE="/usr/local/include/openssl"
18342 alpine_SSLLIB="/usr/local/lib"
18343 else
18344 alpine_SSLINCLUDE="/usr/include/openssl"
18345 alpine_SSLLIB="/usr/lib"
18346 fi
18347 ;;
18348 *-*-openbsd*)
18349 alpine_SSLDIR="/etc/ssl"
18350 alpine_SSLINCLUDE="/usr/include/openssl"
18351 alpine_SSLLIB="/usr/lib"
18352 alpine_SSLCERTS="/etc/ssl"
18353 alpine_SSLKEYS="/etc/ssl/private"
18354 ;;
18355 *-*-cygwin)
18356 alpine_SSLDIR="/usr/ssl"
18357 alpine_SSLCERTS="$alpine_SSLDIR/certs"
18358 alpine_SSLKEYS="$alpine_SSLDIR/certs"
18359 alpine_SSLINCLUDE="/usr/include/openssl"
18360 alpine_SSLLIB="/usr/lib"
18361 ;;
18362 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
18363 alpine_SSLTYPE="sco.nopwd"
18364 alpine_SSLDIR="/usr/local/ssl"
18365 ;;
18366 *-*-solaris*)
18367 if test -d /usr/include/openssl ; then
18368 alpine_SSLINCLUDE="/usr/include/openssl"
18369 elif test -d /usr/sfw/include/openssl ; then
18370 alpine_SSLDIR="/usr/sfw"
18371 elif test -d /opt/csw/include/openssl ; then
18372 alpine_SSLDIR="/opt/csw"
18373 if test -d /opt/csw/ssl/certs ; then
18374 alpine_SSLCERTS="/opt/csw/ssl/certs"
18375 fi
18376 fi
18377 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
18378 alpine_SSLCERTS="/etc/certs"
18379 fi
18380 ;;
18381 *)
18382 alpine_SSLTYPE="nopwd"
18383 alpine_SSLDIR="/usr/local/ssl"
18384 ;;
18385 esac
18386 fi
18387
18388 if test "x$alpine_SSLTYPE" != "xnone" ; then
18389
18390 # Check whether --with-ssl-dir was given.
18391 if test "${with_ssl_dir+set}" = set; then :
18392 withval=$with_ssl_dir;
18393 if test "x$withval" != "xno" ; then
18394 alpine_SSLDIR=$withval
18395 alpine_SSLINCLUDE=$alpine_SSLDIR/include
18396 alpine_SSLLIB=$alpine_SSLDIR/lib
18397 fi
18398
18399 fi
18400
18401
18402
18403 # Check whether --with-ssl-certs-dir was given.
18404 if test "${with_ssl_certs_dir+set}" = set; then :
18405 withval=$with_ssl_certs_dir;
18406 if test "x$withval" != "xno" ; then
18407 alpine_SSLCERTS=$withval
18408 fi
18409
18410 fi
18411
18412
18413
18414 # Check whether --with-ssl-include-dir was given.
18415 if test "${with_ssl_include_dir+set}" = set; then :
18416 withval=$with_ssl_include_dir;
18417 if test "x$withval" != "xno" ; then
18418 alpine_SSLINCLUDE=$withval
18419 fi
18420
18421 fi
18422
18423
18424
18425 # Check whether --with-ssl-lib-dir was given.
18426 if test "${with_ssl_lib_dir+set}" = set; then :
18427 withval=$with_ssl_lib_dir;
18428 if test "x$withval" != "xno" ; then
18429 alpine_SSLLIB=$withval
18430 fi
18431
18432 fi
18433
18434
18435 if test -n "$alpine_SSLINCLUDE" ; then
18436 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
18437 elif test -n "$alpine_SSLDIR" ; then
18438 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
18439 fi
18440 if test -n "$alpine_SSLLIB" ; then
18441 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
18442 elif test -n "$alpine_SSLDIR" ; then
18443 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
18444 fi
18445 fi
18446
18447 if test "x$alpine_SSLTYPE" != "xnone" ; then
18448 alpine_default_SSLMIN="no_min"
18449 alpine_default_SSLMAX="no_max"
18450 alpine_default_RANGE="${alpine_default_SSLMIN},${alpine_default_SSLMAX}"
18451 alpine_ENCRYPTION="$alpine_default_SSLMIN ssl3 tls1 tls1_1 tls1_2 tls1_3 $alpine_default_SSLMAX"
18452 alpine_SSLMIN="$alpine_default_SSLMIN"
18453 alpine_SSLMAX="$alpine_default_SSLMAX"
18454 alpine_RANGE="$alpine_default_RANGE"
18455
18456 # Check whether --with-encryption-minimum-version was given.
18457 if test "${with_encryption_minimum_version+set}" = set; then :
18458 withval=$with_encryption_minimum_version;
18459 if test "x$withval" != "xno" ; then
18460 alpine_SSLMIN=$withval
18461 fi
18462
18463 fi
18464
18465
18466 # Check whether --with-encryption-maximum-version was given.
18467 if test "${with_encryption_maximum_version+set}" = set; then :
18468 withval=$with_encryption_maximum_version;
18469 if test "x$withval" != "xno" ; then
18470 alpine_SSLMAX=$withval
18471 fi
18472
18473 fi
18474
18475 alpine_RANGE="$alpine_SSLMIN $alpine_SSLMAX"
18476 for range in ${alpine_RANGE} ; do
18477 for encryption in ${alpine_ENCRYPTION} ; do
18478 if test "x$range" = "x$encryption" ; then
18479 if test -z $alpine_min ; then
18480 alpine_min="yes"
18481 else
18482 alpine_max="yes"
18483 fi
18484 fi
18485 done
18486 done
18487
18488 if test -z $alpine_max ; then
18489 as_fn_error $? "Unrecognized maximum encryption version: $alpine_max" "$LINENO" 5
18490 fi
18491
18492 if test -z $alpine_min ; then
18493 as_fn_error $? "Unrecognized minimum encryption version: $alpine_min" "$LINENO" 5
18494 fi
18495
18496 if test "x$alpine_SSLMIN" != "x$alpine_SSLMAX" ; then
18497 alpine_RANGE_FEASIBLE=`echo "$alpine_ENCRYPTION" | sed "s/^.*$alpine_SSLMIN//" | grep "$alpine_SSLMAX"`
18498 if test -n "$alpine_RANGE_FEASIBLE" ; then
18499 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
18500 else
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Reversing order of minimum and maximum encryption" >&5
18502 $as_echo "$as_me: WARNING: Reversing order of minimum and maximum encryption" >&2;}
18503 alpine_RANGE="${alpine_SSLMAX},${alpine_SSLMIN}"
18504 fi
18505 else
18506 if test "x$alpine_SSLMIN" = "x$alpine_default_SSLMIN" ; then
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding maximum encryption to default" >&5
18508 $as_echo "$as_me: WARNING: Overriding maximum encryption to default" >&2;}
18509 alpine_SSLMAX="$alpine_default_SSLMAX"
18510 fi
18511 if test "x$alpine_SSLMAX" = "x$alpine_default_SSLMAX" ; then
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding minimum encryption to default" >&5
18513 $as_echo "$as_me: WARNING: Overriding minimum encryption to default" >&2;}
18514 alpine_SSLMIN="$alpine_default_SSLMIN"
18515 fi
18516 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
18517 fi
18518
18519 dpv=$alpine_RANGE
18520
18521 # Check whether --with-encryption-range was given.
18522 if test "${with_encryption_range+set}" = set; then :
18523 withval=$with_encryption_range;
18524 if test "x$withval" != "xno" ; then
18525 dpv=$withval
18526 fi
18527
18528 fi
18529
18530
18531 cat >>confdefs.h <<_ACEOF
18532 #define DF_ENCRYPTION_RANGE "$dpv"
18533 _ACEOF
18534
18535
18536 fi
18537
18538
18539 # Check whether --with-krb5 was given.
18540 if test "${with_krb5+set}" = set; then :
18541 withval=$with_krb5; with_krb5=$withval
18542 fi
18543
18544
18545 if test "x$with_krb5" = "xno" ; then
18546 alpine_GSSTYPE="none"
18547 else
18548 alpine_GSSTYPE=
18549
18550
18551 # Check whether --with-krb5-dir was given.
18552 if test "${with_krb5_dir+set}" = set; then :
18553 withval=$with_krb5_dir;
18554 if test "x$withval" != "xno" ; then
18555 CPPFLAGS="$CPPFLAGS -I${withval}/include"
18556 LDFLAGS="$LDFLAGS -L${withval}/lib"
18557 fi
18558
18559 fi
18560
18561
18562
18563 # Check whether --with-krb5-include-dir was given.
18564 if test "${with_krb5_include_dir+set}" = set; then :
18565 withval=$with_krb5_include_dir;
18566 if test "x$withval" != "xno" ; then
18567 CPPFLAGS="$CPPFLAGS -I$withval"
18568 fi
18569
18570 fi
18571
18572
18573
18574 # Check whether --with-krb5-lib-dir was given.
18575 if test "${with_krb5_lib_dir+set}" = set; then :
18576 withval=$with_krb5_lib_dir;
18577 if test "x$withval" != "xno" ; then
18578 LDFLAGS="$LDFLAGS -L$withval"
18579 fi
18580
18581 fi
18582
18583 fi
18584
18585
18586 # Check whether --with-ldap was given.
18587 if test "${with_ldap+set}" = set; then :
18588 withval=$with_ldap; with_ldap=$withval
18589 fi
18590
18591
18592 if test "x$with_ldap" = "xno" ; then
18593 alpine_with_ldap=
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding LDAP Support" >&5
18595 $as_echo "$as_me: Excluding LDAP Support" >&6;}
18596 else
18597
18598 case $host in
18599 *-*-freebsd*)
18600 alpine_LDAPDIR="/usr/local"
18601 alpine_LDAPINCLUDE="${alpine_LDAPDIR}/include"
18602 alpine_LDAPLIB="${alpine_LDAPDIR}/lib"
18603 ;;
18604 esac;
18605
18606 alpine_with_ldap=yes
18607
18608
18609 # Check whether --with-ldap-dir was given.
18610 if test "${with_ldap_dir+set}" = set; then :
18611 withval=$with_ldap_dir;
18612 if test "x$withval" != "xno" ; then
18613 alpine_LDAPDIR="${withval}"
18614 alpine_LDAPINCLUDE="${alpine_LDAPDIR}/include"
18615 alpine_LDAPLIB="${alpine_LDAPDIR}/lib"
18616 fi
18617
18618 fi
18619
18620
18621
18622 # Check whether --with-ldap-include-dir was given.
18623 if test "${with_ldap_include_dir+set}" = set; then :
18624 withval=$with_ldap_include_dir;
18625 if test "x$withval" != "xno" ; then
18626 alpine_LDAPINCLUDE="$withval"
18627 fi
18628
18629 fi
18630
18631
18632
18633 # Check whether --with-ldap-lib-dir was given.
18634 if test "${with_ldap_lib_dir+set}" = set; then :
18635 withval=$with_ldap_lib_dir;
18636 if test "x$withval" != "xno" ; then
18637 alpine_LDAPLIB="${withval}"
18638 fi
18639
18640 fi
18641
18642
18643 if test -n "$alpine_LDAPINCLUDE" ; then
18644 CPPFLAGS="$CPPFLAGS -I${alpine_LDAPINCLUDE}/include"
18645 fi
18646 if test -n "$alpine_LDAPLIB" ; then
18647 LDFLAGS="$LDFLAGS -L${alpine_LDAPLIB}/lib"
18648 fi
18649 fi
18650
18651
18652 # Check whether --with-smime was given.
18653 if test "${with_smime+set}" = set; then :
18654 withval=$with_smime; with_smime=$withval
18655 fi
18656
18657
18658
18659 # Check whether --with-tcl was given.
18660 if test "${with_tcl+set}" = set; then :
18661 withval=$with_tcl; with_tcl=$withval
18662 fi
18663
18664
18665 if test "x$with_tcl" = "xno" ; then
18666 WEB_BUILD=
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding TCL Support, and thus Web Alpine Support" >&5
18668 $as_echo "$as_me: Excluding TCL Support, and thus Web Alpine Support" >&6;}
18669 else
18670
18671 # Check whether --with-tcl-lib-dir was given.
18672 if test "${with_tcl_lib_dir+set}" = set; then :
18673 withval=$with_tcl_lib_dir;
18674 if test "x$withval" != "xno" ; then
18675 alpine_TCLLIBDIR=$withval
18676 if test -n "$alpine_TCLLIBDIR" ; then
18677 LDFLAGS="-L$alpine_TCLLIBDIR $LDFLAGS"
18678 fi
18679 fi
18680
18681 fi
18682
18683
18684 # Check whether --with-tcl-lib was given.
18685 if test "${with_tcl_lib+set}" = set; then :
18686 withval=$with_tcl_lib;
18687 if test "x$withval" != "xno" ; then
18688 alpine_TCLLIB=$withval
18689 fi
18690
18691 fi
18692
18693
18694 # Check whether --with-tcl-include was given.
18695 if test "${with_tcl_include+set}" = set; then :
18696 withval=$with_tcl_include;
18697 if test "x$withval" != "xno" ; then
18698 CPPFLAGS="$CPPFLAGS -I$withval"
18699 alpine_TCLINC=$withval
18700 fi
18701
18702 fi
18703
18704 fi
18705
18706
18707 # Check whether --with-supplied-regex was given.
18708 if test "${with_supplied_regex+set}" = set; then :
18709 withval=$with_supplied_regex; alpine_REGEX=$withval
18710 fi
18711
18712
18713
18714 # Check whether --with-pthread was given.
18715 if test "${with_pthread+set}" = set; then :
18716 withval=$with_pthread; with_pthread=$withval
18717 fi
18718
18719
18720
18721 # Check whether --with-system-mail-directory was given.
18722 if test "${with_system_mail_directory+set}" = set; then :
18723 withval=$with_system_mail_directory;
18724 if test "x$withval" != "xno" ; then
18725 alpine_with_local_maildir="$withval"
18726 fi
18727
18728 fi
18729
18730
18731
18732 # Check whether --with-c-client-target was given.
18733 if test "${with_c_client_target+set}" = set; then :
18734 withval=$with_c_client_target;
18735 if test "x$withval" != "xno" ;then
18736 alpine_with_c_client_target="$withval"
18737 fi
18738
18739 fi
18740
18741
18742
18743 alpine_c_client_bundled="no"
18744
18745 # Check whether --with-bundled-tools was given.
18746 if test "${with_bundled_tools+set}" = set; then :
18747 withval=$with_bundled_tools;
18748 if test "x$withval" = "xyes" ; then
18749 alpine_c_client_bundled=""
18750 fi
18751
18752 fi
18753
18754
18755 alpine_PAM="none"
18756
18757 case "$host" in
18758 *-linux*|*-k*bsd*-gnu*|*-gnu*)
18759 alpine_path_delim="/"
18760 alpine_mode_readonly="(0600)"
18761 if test -f /etc/fedora-release ; then
18762 systype="LFD"
18763 alpine_PAM="yes"
18764 alpine_SYSTEM_PASSFILE=".alpine.passfile"
18765 if test -d /etc/pki/tls ; then
18766 alpine_c_client_target="lfd"
18767 else
18768 alpine_c_client_target="lrh"
18769 fi
18770 elif test -f /etc/mandrake-release ; then
18771 systype="LMD"
18772 alpine_c_client_target="lmd"
18773 alpine_PAM="yes"
18774 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
18775 systype="LRH"
18776 alpine_PAM="yes"
18777 alpine_SYSTEM_PASSFILE=".alpine.passfile"
18778 if test -d /etc/pki/tls ; then
18779 alpine_c_client_target="lr5"
18780 else
18781 alpine_c_client_target="lrh"
18782 fi
18783 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
18784 if test -d /etc/osso-af-init ; then
18785 systype="LN8"
18786 alpine_c_client_target="ln8"
18787 else
18788 systype="DEB"
18789 alpine_c_client_target="ldb"
18790 alpine_PAM="yes"
18791 alpine_SYSTEM_PASSFILE=".pine-passfile"
18792 fi
18793 elif test -f /etc/SuSE-release -o -f /etc/SUSE-brand ; then
18794 systype="LSU"
18795 alpine_c_client_target="lsu"
18796 alpine_PAM="yes"
18797 alpine_SYSTEM_PASSFILE=".pinepw"
18798 else
18799 systype="LNX"
18800 if test -z "$alpine_c_client_bundled" ; then
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for am_start in -lpam" >&5
18802 $as_echo_n "checking for am_start in -lpam... " >&6; }
18803 if ${ac_cv_lib_pam_am_start+:} false; then :
18804 $as_echo_n "(cached) " >&6
18805 else
18806 ac_check_lib_save_LIBS=$LIBS
18807 LIBS="-lpam $LIBS"
18808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18809 /* end confdefs.h. */
18810
18811 /* Override any GCC internal prototype to avoid an error.
18812 Use char because int might match the return type of a GCC
18813 builtin and then its argument prototype would still apply. */
18814 #ifdef __cplusplus
18815 extern "C"
18816 #endif
18817 char am_start ();
18818 int
18819 main ()
18820 {
18821 return am_start ();
18822 ;
18823 return 0;
18824 }
18825 _ACEOF
18826 if ac_fn_c_try_link "$LINENO"; then :
18827 ac_cv_lib_pam_am_start=yes
18828 else
18829 ac_cv_lib_pam_am_start=no
18830 fi
18831 rm -f core conftest.err conftest.$ac_objext \
18832 conftest$ac_exeext conftest.$ac_ext
18833 LIBS=$ac_check_lib_save_LIBS
18834 fi
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_am_start" >&5
18836 $as_echo "$ac_cv_lib_pam_am_start" >&6; }
18837 if test "x$ac_cv_lib_pam_am_start" = xyes; then :
18838
18839 alpine_c_client_target="lnp"
18840 alpine_PAM="yes"
18841
18842 else
18843
18844 if test -f /etc/shadow ; then
18845 alpine_c_client_target="slx"
18846 else
18847 alpine_c_client_target="lnx"
18848 fi
18849
18850 fi
18851
18852 else
18853 if test -f /etc/shadow ; then
18854 alpine_c_client_target="slx"
18855 else
18856 alpine_c_client_target="lnx"
18857 fi
18858 fi
18859 fi
18860 ;;
18861 *-apple-darwin*)
18862 systype="OSX"
18863 alpine_path_delim="/"
18864 alpine_mode_readonly="(0600)"
18865 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
18866 AM_CFLAGS="$AM_CFLAGS -Dbsd"
18867
18868 $as_echo "#define OSX_TARGET 1" >>confdefs.h
18869
18870 case "$alpine_os_credential_cache" in
18871 no)
18872 ;;
18873 *)
18874
18875 $as_echo "#define APPLEKEYCHAIN 1" >>confdefs.h
18876
18877 ;;
18878 esac
18879 if test -z "$alpine_c_client_bundled" ; then
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
18881 $as_echo_n "checking for pam_start in -lpam... " >&6; }
18882 if ${ac_cv_lib_pam_pam_start+:} false; then :
18883 $as_echo_n "(cached) " >&6
18884 else
18885 ac_check_lib_save_LIBS=$LIBS
18886 LIBS="-lpam $LIBS"
18887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18888 /* end confdefs.h. */
18889
18890 /* Override any GCC internal prototype to avoid an error.
18891 Use char because int might match the return type of a GCC
18892 builtin and then its argument prototype would still apply. */
18893 #ifdef __cplusplus
18894 extern "C"
18895 #endif
18896 char pam_start ();
18897 int
18898 main ()
18899 {
18900 return pam_start ();
18901 ;
18902 return 0;
18903 }
18904 _ACEOF
18905 if ac_fn_c_try_link "$LINENO"; then :
18906 ac_cv_lib_pam_pam_start=yes
18907 else
18908 ac_cv_lib_pam_pam_start=no
18909 fi
18910 rm -f core conftest.err conftest.$ac_objext \
18911 conftest$ac_exeext conftest.$ac_ext
18912 LIBS=$ac_check_lib_save_LIBS
18913 fi
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
18915 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
18916 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
18917
18918 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
18919 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
18920
18921 alpine_PAM="yes"
18922 alpine_c_client_target="oxs"
18923
18924 else
18925 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
18926 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
18927
18928 alpine_PAM="yes"
18929 alpine_c_client_target="oxp"
18930
18931 else
18932
18933 alpine_PAM="none"
18934 alpine_pam_none_reason="header files not found"
18935
18936 fi
18937
18938
18939
18940 fi
18941
18942
18943
18944 else
18945
18946 alpine_c_client_target="osx"
18947
18948 fi
18949
18950 else
18951 alpine_c_client_target="osx"
18952 fi
18953 ;;
18954 *-*-solaris*)
18955 if test x$GCC = "xyes" ; then
18956 systype="GSO"
18957 alpine_c_client_target="gso"
18958 CFLAGS="$CFLAGS -D__USE_LEGACY_PROTOTYPES__"
18959 else
18960 systype="SOC"
18961 alpine_c_client_target="soc"
18962
18963 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
18964
18965 fi
18966 alpine_path_delim="/"
18967 alpine_mode_readonly="(0600)"
18968 ;;
18969 *-*-sunos4*)
18970 systype="SUN"
18971 alpine_path_delim="/"
18972 alpine_mode_readonly="(0600)"
18973 alpine_c_client_target="s40"
18974 ;;
18975 *-*-sco3.2v5*)
18976 if test x$GCC = "xyes" ; then
18977 systype="GO5"
18978 alpine_c_client_target="go5"
18979 else
18980 systype="SC5"
18981 alpine_c_client_target="sc5"
18982 fi
18983 alpine_path_delim="/"
18984 alpine_mode_readonly="(0600)"
18985 ;;
18986 *-next-*)
18987 systype="NXT"
18988 alpine_path_delim="/"
18989 alpine_mode_readonly="(0600)"
18990 alpine_c_client_target="nx3"
18991 ;;
18992 *-*-netbsd*)
18993 systype="NEB"
18994 alpine_path_delim="/"
18995 alpine_mode_readonly="(0600)"
18996 alpine_c_client_target="neb"
18997 ;;
18998 *-*-hpux9*)
18999 systype="HPP"
19000 alpine_path_delim="/"
19001 alpine_mode_readonly="(0600)"
19002 alpine_c_client_target="gh9"
19003 ;;
19004 *-*-dragonfly*)
19005 systype="DFB"
19006 alpine_path_delim="/"
19007 alpine_mode_readonly="(0600)"
19008 alpine_c_client_target="neb"
19009 ;;
19010 *-*-bsdi*)
19011 systype="BSI"
19012 alpine_path_delim="/"
19013 alpine_mode_readonly="(0600)"
19014 alpine_c_client_target="bsi"
19015 ;;
19016 *-*-freebsd*)
19017 systype="BSF"
19018 alpine_path_delim="/"
19019 alpine_mode_readonly="(0600)"
19020 alpine_c_client_target="bsf"
19021 LIBS="$LIBS $LIBINTL"
19022 ;;
19023 *-*-openbsd*)
19024 systype="BSO"
19025 alpine_path_delim="/"
19026 alpine_mode_readonly="(0600)"
19027 alpine_c_client_target="bso"
19028 LIBS="$LIBS $LIBINTL"
19029 ;;
19030 *-*-aix5*)
19031 systype="A52"
19032 alpine_path_delim="/"
19033 alpine_mode_readonly="(0600)"
19034 alpine_c_client_target="a52"
19035 ;;
19036 *-*-aix4*)
19037 systype="A41"
19038 alpine_path_delim="/"
19039 alpine_mode_readonly="(0600)"
19040 alpine_c_client_target="a41"
19041 ;;
19042 *-*-aix3*)
19043 systype="A32"
19044 alpine_path_delim="/"
19045 alpine_mode_readonly="(0600)"
19046 alpine_c_client_target="a32"
19047 ;;
19048 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
19049 systype="UW2"
19050 alpine_path_delim="/"
19051 alpine_mode_readonly="(0600)"
19052 alpine_c_client_target="uw2"
19053 ;;
19054 *-*-osf5*)
19055 systype="OSF"
19056 alpine_path_delim="/"
19057 alpine_mode_readonly="(0600)"
19058 alpine_c_client_target="osf"
19059 ;;
19060 *-*-cygwin)
19061 systype="CYG"
19062 alpine_path_delim="/"
19063 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
19064 alpine_c_client_target="cyg"
19065 LIBS="$LIBS $LIBINTL"
19066 ;;
19067 windows* | *-*-pw32*)
19068 systype="WNT"
19069 alpine_path_delim="\\"
19070 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
19071 alpine_c_client_target="wnt"
19072
19073 $as_echo "#define _WINDOWS 1" >>confdefs.h
19074
19075 ;;
19076 *)
19077 as_fn_error $? "Unrecognized system: $host" "$LINENO" 5
19078 ;;
19079 esac
19080
19081
19082 # Check whether --with-passfile was given.
19083 if test "${with_passfile+set}" = set; then :
19084 withval=$with_passfile;
19085 case "$withval" in
19086 no)
19087 ;;
19088 yes)
19089 ;;
19090 *)
19091 alpine_PASSFILE=$withval
19092 ;;
19093 esac
19094
19095 fi
19096
19097
19098
19099
19100 # Check whether --with-local-password-cache was given.
19101 if test "${with_local_password_cache+set}" = set; then :
19102 withval=$with_local_password_cache;
19103 alpine_os_credential_cache=$withval
19104
19105 fi
19106
19107
19108
19109 # Check whether --with-local-password-cache-method was given.
19110 if test "${with_local_password_cache_method+set}" = set; then :
19111 withval=$with_local_password_cache_method;
19112 alpine_os_credential_cache_method=$withval
19113
19114 fi
19115
19116
19117 if test -z "$alpine_PASSFILE" ; then
19118 if test -z "$alpine_SYSTEM_PASSFILE" ; then
19119 alpine_PASSFILE=".alpine.pwd"
19120 else
19121 alpine_PASSFILE="$alpine_SYSTEM_PASSFILE"
19122 fi
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Setting up $alpine_PASSFILE as default password file" >&5
19124 $as_echo "$as_me: * * * Setting up $alpine_PASSFILE as default password file" >&6;}
19125 fi
19126
19127 if test -n "$alpine_PASSFILE" ; then
19128 case $alpine_os_credential_cache in
19129 no)
19130 ;;
19131 *)
19132 alpine_os_credential_cache="no"
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-passfile definition overrides OS-Specific password caching" >&5
19134 $as_echo "$as_me: --with-passfile definition overrides OS-Specific password caching" >&6;}
19135 ;;
19136 esac
19137
19138 cat >>confdefs.h <<_ACEOF
19139 #define PASSFILE "$alpine_PASSFILE"
19140 _ACEOF
19141
19142 fi
19143
19144
19145 # Check whether --with-ipv6 was given.
19146 if test "${with_ipv6+set}" = set; then :
19147 withval=$with_ipv6; with_ipv6=$withval
19148 fi
19149
19150
19151 if test "x$with_ipv6" = "xno" ; then
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: Excluding IPv6 Support" >&5
19153 $as_echo "$as_me: Excluding IPv6 Support" >&6;}
19154 c_client_specials="${c_client_specials}IP6=4 "
19155 c_client_ip6="true"
19156 else
19157 c_client_ip6="touch imap/ip6"
19158 fi
19159
19160
19161
19162 if test x$enable_dmalloc = "xyes" ; then
19163 if test "x$with_pthread" = "xyes" ; then
19164 dmalloc_lib=dmallocth
19165 else
19166 dmalloc_lib=dmalloc
19167 fi
19168
19169 as_ac_Lib=`$as_echo "ac_cv_lib_$dmalloc_lib''_dmalloc_shutdown" | $as_tr_sh`
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -l$dmalloc_lib" >&5
19171 $as_echo_n "checking for dmalloc_shutdown in -l$dmalloc_lib... " >&6; }
19172 if eval \${$as_ac_Lib+:} false; then :
19173 $as_echo_n "(cached) " >&6
19174 else
19175 ac_check_lib_save_LIBS=$LIBS
19176 LIBS="-l$dmalloc_lib $LIBS"
19177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19178 /* end confdefs.h. */
19179
19180 /* Override any GCC internal prototype to avoid an error.
19181 Use char because int might match the return type of a GCC
19182 builtin and then its argument prototype would still apply. */
19183 #ifdef __cplusplus
19184 extern "C"
19185 #endif
19186 char dmalloc_shutdown ();
19187 int
19188 main ()
19189 {
19190 return dmalloc_shutdown ();
19191 ;
19192 return 0;
19193 }
19194 _ACEOF
19195 if ac_fn_c_try_link "$LINENO"; then :
19196 eval "$as_ac_Lib=yes"
19197 else
19198 eval "$as_ac_Lib=no"
19199 fi
19200 rm -f core conftest.err conftest.$ac_objext \
19201 conftest$ac_exeext conftest.$ac_ext
19202 LIBS=$ac_check_lib_save_LIBS
19203 fi
19204 eval ac_res=\$$as_ac_Lib
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19206 $as_echo "$ac_res" >&6; }
19207 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19208 cat >>confdefs.h <<_ACEOF
19209 #define `$as_echo "HAVE_LIB$dmalloc_lib" | $as_tr_cpp` 1
19210 _ACEOF
19211
19212 LIBS="-l$dmalloc_lib $LIBS"
19213
19214 else
19215
19216 as_fn_error but -ldmalloc not found "$dmalloc_lib requested" "$LINENO" 5
19217
19218 fi
19219
19220 fi
19221
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -ltinfo" >&5
19223 $as_echo_n "checking for setupterm in -ltinfo... " >&6; }
19224 if ${ac_cv_lib_tinfo_setupterm+:} false; then :
19225 $as_echo_n "(cached) " >&6
19226 else
19227 ac_check_lib_save_LIBS=$LIBS
19228 LIBS="-ltinfo $LIBS"
19229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19230 /* end confdefs.h. */
19231
19232 /* Override any GCC internal prototype to avoid an error.
19233 Use char because int might match the return type of a GCC
19234 builtin and then its argument prototype would still apply. */
19235 #ifdef __cplusplus
19236 extern "C"
19237 #endif
19238 char setupterm ();
19239 int
19240 main ()
19241 {
19242 return setupterm ();
19243 ;
19244 return 0;
19245 }
19246 _ACEOF
19247 if ac_fn_c_try_link "$LINENO"; then :
19248 ac_cv_lib_tinfo_setupterm=yes
19249 else
19250 ac_cv_lib_tinfo_setupterm=no
19251 fi
19252 rm -f core conftest.err conftest.$ac_objext \
19253 conftest$ac_exeext conftest.$ac_ext
19254 LIBS=$ac_check_lib_save_LIBS
19255 fi
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_setupterm" >&5
19257 $as_echo "$ac_cv_lib_tinfo_setupterm" >&6; }
19258 if test "x$ac_cv_lib_tinfo_setupterm" = xyes; then :
19259
19260 alpine_termdata=info
19261 LIBS="$LIBS -ltinfo"
19262
19263 else
19264
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
19266 $as_echo_n "checking for setupterm in -lncurses... " >&6; }
19267 if ${ac_cv_lib_ncurses_setupterm+:} false; then :
19268 $as_echo_n "(cached) " >&6
19269 else
19270 ac_check_lib_save_LIBS=$LIBS
19271 LIBS="-lncurses $LIBS"
19272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19273 /* end confdefs.h. */
19274
19275 /* Override any GCC internal prototype to avoid an error.
19276 Use char because int might match the return type of a GCC
19277 builtin and then its argument prototype would still apply. */
19278 #ifdef __cplusplus
19279 extern "C"
19280 #endif
19281 char setupterm ();
19282 int
19283 main ()
19284 {
19285 return setupterm ();
19286 ;
19287 return 0;
19288 }
19289 _ACEOF
19290 if ac_fn_c_try_link "$LINENO"; then :
19291 ac_cv_lib_ncurses_setupterm=yes
19292 else
19293 ac_cv_lib_ncurses_setupterm=no
19294 fi
19295 rm -f core conftest.err conftest.$ac_objext \
19296 conftest$ac_exeext conftest.$ac_ext
19297 LIBS=$ac_check_lib_save_LIBS
19298 fi
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
19300 $as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
19301 if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then :
19302
19303 alpine_termdata=info
19304 LIBS="$LIBS -lncurses"
19305
19306 else
19307
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
19309 $as_echo_n "checking for setupterm in -lcurses... " >&6; }
19310 if ${ac_cv_lib_curses_setupterm+:} false; then :
19311 $as_echo_n "(cached) " >&6
19312 else
19313 ac_check_lib_save_LIBS=$LIBS
19314 LIBS="-lcurses $LIBS"
19315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19316 /* end confdefs.h. */
19317
19318 /* Override any GCC internal prototype to avoid an error.
19319 Use char because int might match the return type of a GCC
19320 builtin and then its argument prototype would still apply. */
19321 #ifdef __cplusplus
19322 extern "C"
19323 #endif
19324 char setupterm ();
19325 int
19326 main ()
19327 {
19328 return setupterm ();
19329 ;
19330 return 0;
19331 }
19332 _ACEOF
19333 if ac_fn_c_try_link "$LINENO"; then :
19334 ac_cv_lib_curses_setupterm=yes
19335 else
19336 ac_cv_lib_curses_setupterm=no
19337 fi
19338 rm -f core conftest.err conftest.$ac_objext \
19339 conftest$ac_exeext conftest.$ac_ext
19340 LIBS=$ac_check_lib_save_LIBS
19341 fi
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
19343 $as_echo "$ac_cv_lib_curses_setupterm" >&6; }
19344 if test "x$ac_cv_lib_curses_setupterm" = xyes; then :
19345
19346 alpine_termdata=info
19347 LIBS="$LIBS -lcurses"
19348
19349 else
19350
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
19352 $as_echo_n "checking for tgetent in -ltermlib... " >&6; }
19353 if ${ac_cv_lib_termlib_tgetent+:} false; then :
19354 $as_echo_n "(cached) " >&6
19355 else
19356 ac_check_lib_save_LIBS=$LIBS
19357 LIBS="-ltermlib $LIBS"
19358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19359 /* end confdefs.h. */
19360
19361 /* Override any GCC internal prototype to avoid an error.
19362 Use char because int might match the return type of a GCC
19363 builtin and then its argument prototype would still apply. */
19364 #ifdef __cplusplus
19365 extern "C"
19366 #endif
19367 char tgetent ();
19368 int
19369 main ()
19370 {
19371 return tgetent ();
19372 ;
19373 return 0;
19374 }
19375 _ACEOF
19376 if ac_fn_c_try_link "$LINENO"; then :
19377 ac_cv_lib_termlib_tgetent=yes
19378 else
19379 ac_cv_lib_termlib_tgetent=no
19380 fi
19381 rm -f core conftest.err conftest.$ac_objext \
19382 conftest$ac_exeext conftest.$ac_ext
19383 LIBS=$ac_check_lib_save_LIBS
19384 fi
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
19386 $as_echo "$ac_cv_lib_termlib_tgetent" >&6; }
19387 if test "x$ac_cv_lib_termlib_tgetent" = xyes; then :
19388
19389 alpine_termdata=cap
19390 LIBS="$LIBS -ltermlib"
19391
19392 else
19393
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
19395 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
19396 if ${ac_cv_lib_termcap_tgetent+:} false; then :
19397 $as_echo_n "(cached) " >&6
19398 else
19399 ac_check_lib_save_LIBS=$LIBS
19400 LIBS="-ltermcap $LIBS"
19401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19402 /* end confdefs.h. */
19403
19404 /* Override any GCC internal prototype to avoid an error.
19405 Use char because int might match the return type of a GCC
19406 builtin and then its argument prototype would still apply. */
19407 #ifdef __cplusplus
19408 extern "C"
19409 #endif
19410 char tgetent ();
19411 int
19412 main ()
19413 {
19414 return tgetent ();
19415 ;
19416 return 0;
19417 }
19418 _ACEOF
19419 if ac_fn_c_try_link "$LINENO"; then :
19420 ac_cv_lib_termcap_tgetent=yes
19421 else
19422 ac_cv_lib_termcap_tgetent=no
19423 fi
19424 rm -f core conftest.err conftest.$ac_objext \
19425 conftest$ac_exeext conftest.$ac_ext
19426 LIBS=$ac_check_lib_save_LIBS
19427 fi
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
19429 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
19430 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
19431
19432 alpine_termdata=cap
19433 LIBS="$LIBS -ltermcap"
19434
19435 else
19436
19437 as_fn_error $? "Terminfo/termcap not found" "$LINENO" 5
19438
19439 fi
19440
19441
19442 fi
19443
19444
19445 fi
19446
19447
19448 fi
19449
19450
19451 fi
19452
19453 case $alpine_termdata in
19454 info)
19455
19456 $as_echo "#define HAS_TERMINFO 1" >>confdefs.h
19457
19458 ;;
19459 cap)
19460
19461 $as_echo "#define HAS_TERMCAP 1" >>confdefs.h
19462
19463 ;;
19464 esac
19465
19466 alpine_dlopen="yes"
19467
19468 # Check whether --with-dlopen was given.
19469 if test "${with_dlopen+set}" = set; then :
19470 withval=$with_dlopen;
19471 alpine_dlopen=$withval
19472
19473 fi
19474
19475
19476 if test "x$alpine_dlopen" != "xno" ; then
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19478 $as_echo_n "checking for library containing dlopen... " >&6; }
19479 if ${ac_cv_search_dlopen+:} false; then :
19480 $as_echo_n "(cached) " >&6
19481 else
19482 ac_func_search_save_LIBS=$LIBS
19483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19484 /* end confdefs.h. */
19485
19486 /* Override any GCC internal prototype to avoid an error.
19487 Use char because int might match the return type of a GCC
19488 builtin and then its argument prototype would still apply. */
19489 #ifdef __cplusplus
19490 extern "C"
19491 #endif
19492 char dlopen ();
19493 int
19494 main ()
19495 {
19496 return dlopen ();
19497 ;
19498 return 0;
19499 }
19500 _ACEOF
19501 for ac_lib in '' dl dld; do
19502 if test -z "$ac_lib"; then
19503 ac_res="none required"
19504 else
19505 ac_res=-l$ac_lib
19506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19507 fi
19508 if ac_fn_c_try_link "$LINENO"; then :
19509 ac_cv_search_dlopen=$ac_res
19510 fi
19511 rm -f core conftest.err conftest.$ac_objext \
19512 conftest$ac_exeext
19513 if ${ac_cv_search_dlopen+:} false; then :
19514 break
19515 fi
19516 done
19517 if ${ac_cv_search_dlopen+:} false; then :
19518
19519 else
19520 ac_cv_search_dlopen=no
19521 fi
19522 rm conftest.$ac_ext
19523 LIBS=$ac_func_search_save_LIBS
19524 fi
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19526 $as_echo "$ac_cv_search_dlopen" >&6; }
19527 ac_res=$ac_cv_search_dlopen
19528 if test "$ac_res" != no; then :
19529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19530
19531 else
19532 alpine_DL="none"
19533 fi
19534
19535 if test "x$alpine_DL" = "xnone" ; then
19536 as_fn_error $? "No library containing dlopen found" "$LINENO" 5
19537 exit 1
19538 fi
19539 fi
19540 if test "x$alpine_SSLTYPE" != "xnone" ; then
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL is LibreSSL" >&5
19542 $as_echo_n "checking if OpenSSL is LibreSSL... " >&6; }
19543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19544 /* end confdefs.h. */
19545
19546 #include <stdio.h>
19547 #include <stdlib.h>
19548 #if HAVE_STDINT_H
19549 #include <stdint.h>
19550 #endif /* HAVE_STDINT_H */
19551 #include <openssl/ssl.h>
19552
19553 int
19554 main ()
19555 {
19556
19557 #if OPENSSL_VERSION_NUMBER != 0x20000000L
19558 #error
19559 #endif
19560
19561 ;
19562 return 0;
19563 }
19564 _ACEOF
19565 if ac_fn_c_try_compile "$LINENO"; then :
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19567 $as_echo "yes" >&6; }
19568 alpine_SSLPROVIDER="libressl"
19569
19570 else
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19572 $as_echo "no" >&6; }
19573
19574 fi
19575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19576 fi
19577
19578 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.0.0c" >&5
19580 $as_echo_n "checking Openssl library version >= 1.0.0c... " >&6; }
19581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19582 /* end confdefs.h. */
19583
19584 #include <stdio.h>
19585 #include <stdlib.h>
19586 #if HAVE_STDINT_H
19587 #include <stdint.h>
19588 #endif /* HAVE_STDINT_H */
19589 #include <openssl/ssl.h>
19590
19591 int
19592 main ()
19593 {
19594
19595 #if OPENSSL_VERSION_NUMBER < 0x1000003fL
19596 #error
19597 #endif
19598
19599 ;
19600 return 0;
19601 }
19602 _ACEOF
19603 if ac_fn_c_try_compile "$LINENO"; then :
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19605 $as_echo "yes" >&6; }
19606 alpine_SSLPROVIDER="openssl"
19607
19608 else
19609 alpine_SSLTYPE="none"
19610 fi
19611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19612
19613 if test "x$alpine_SSLTYPE" = "xnone" ; then
19614 as_fn_error $? "Install development/header files for your current version of openssl (minimum required version is 1.0.0c)" "$LINENO" 5
19615 exit 1
19616 fi
19617 fi
19618
19619 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Openssl library version >= 1.1.0" >&5
19621 $as_echo_n "checking Openssl library version >= 1.1.0... " >&6; }
19622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19623 /* end confdefs.h. */
19624
19625 #include <stdio.h>
19626 #include <stdlib.h>
19627 #if HAVE_STDINT_H
19628 #include <stdint.h>
19629 #endif /* HAVE_STDINT_H */
19630 #include <openssl/ssl.h>
19631
19632 int
19633 main ()
19634 {
19635
19636 #if OPENSSL_VERSION_NUMBER < 0x10100000L
19637 #error
19638 #endif
19639
19640 ;
19641 return 0;
19642 }
19643 _ACEOF
19644 if ac_fn_c_try_compile "$LINENO"; then :
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19646 $as_echo "yes" >&6; }
19647 alpine_SSLVERSION="new"
19648 CFLAGS="$CFLAGS -DOPENSSL_1_1_0 -DOPENSSL_API_COMPAT=0x10100000L"
19649
19650 else
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19652 $as_echo "no" >&6; }
19653 alpine_SSLVERSION="old"
19654 fi
19655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19656 fi
19657
19658 if test "x$alpine_SSLTYPE" != "xnone" ; then
19659 if test "x$alpine_SSLVERSION" = "xold" ; then
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSLeay" >&5
19661 $as_echo_n "checking for library containing SSLeay... " >&6; }
19662 if ${ac_cv_search_SSLeay+:} false; then :
19663 $as_echo_n "(cached) " >&6
19664 else
19665 ac_func_search_save_LIBS=$LIBS
19666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19667 /* end confdefs.h. */
19668
19669 /* Override any GCC internal prototype to avoid an error.
19670 Use char because int might match the return type of a GCC
19671 builtin and then its argument prototype would still apply. */
19672 #ifdef __cplusplus
19673 extern "C"
19674 #endif
19675 char SSLeay ();
19676 int
19677 main ()
19678 {
19679 return SSLeay ();
19680 ;
19681 return 0;
19682 }
19683 _ACEOF
19684 for ac_lib in '' crypto; do
19685 if test -z "$ac_lib"; then
19686 ac_res="none required"
19687 else
19688 ac_res=-l$ac_lib
19689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19690 fi
19691 if ac_fn_c_try_link "$LINENO"; then :
19692 ac_cv_search_SSLeay=$ac_res
19693 fi
19694 rm -f core conftest.err conftest.$ac_objext \
19695 conftest$ac_exeext
19696 if ${ac_cv_search_SSLeay+:} false; then :
19697 break
19698 fi
19699 done
19700 if ${ac_cv_search_SSLeay+:} false; then :
19701
19702 else
19703 ac_cv_search_SSLeay=no
19704 fi
19705 rm conftest.$ac_ext
19706 LIBS=$ac_func_search_save_LIBS
19707 fi
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSLeay" >&5
19709 $as_echo "$ac_cv_search_SSLeay" >&6; }
19710 ac_res=$ac_cv_search_SSLeay
19711 if test "$ac_res" != no; then :
19712 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19713
19714 else
19715 alpine_CRYPTO="none"
19716 fi
19717
19718 else
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OpenSSL_version_num" >&5
19720 $as_echo_n "checking for library containing OpenSSL_version_num... " >&6; }
19721 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
19722 $as_echo_n "(cached) " >&6
19723 else
19724 ac_func_search_save_LIBS=$LIBS
19725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19726 /* end confdefs.h. */
19727
19728 /* Override any GCC internal prototype to avoid an error.
19729 Use char because int might match the return type of a GCC
19730 builtin and then its argument prototype would still apply. */
19731 #ifdef __cplusplus
19732 extern "C"
19733 #endif
19734 char OpenSSL_version_num ();
19735 int
19736 main ()
19737 {
19738 return OpenSSL_version_num ();
19739 ;
19740 return 0;
19741 }
19742 _ACEOF
19743 for ac_lib in '' crypto; do
19744 if test -z "$ac_lib"; then
19745 ac_res="none required"
19746 else
19747 ac_res=-l$ac_lib
19748 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19749 fi
19750 if ac_fn_c_try_link "$LINENO"; then :
19751 ac_cv_search_OpenSSL_version_num=$ac_res
19752 fi
19753 rm -f core conftest.err conftest.$ac_objext \
19754 conftest$ac_exeext
19755 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
19756 break
19757 fi
19758 done
19759 if ${ac_cv_search_OpenSSL_version_num+:} false; then :
19760
19761 else
19762 ac_cv_search_OpenSSL_version_num=no
19763 fi
19764 rm conftest.$ac_ext
19765 LIBS=$ac_func_search_save_LIBS
19766 fi
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OpenSSL_version_num" >&5
19768 $as_echo "$ac_cv_search_OpenSSL_version_num" >&6; }
19769 ac_res=$ac_cv_search_OpenSSL_version_num
19770 if test "$ac_res" != no; then :
19771 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19772
19773 else
19774 alpine_CRYPTO="none"
19775 fi
19776
19777 fi
19778 if test "x$alpine_CRYPTO" = "xnone" ; then
19779 as_fn_error $? "crypto library NOT found" "$LINENO" 5
19780 exit 1
19781 fi
19782 case $host in
19783 *-*-cygwin)
19784 ac_fn_c_check_header_mongrel "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
19785 if test "x$ac_cv_header_crypto_h" = xyes; then :
19786
19787 else
19788 alpine_CRYPTO_DEVEL="none"
19789 fi
19790
19791
19792 if test "x$alpine_CRYPTO_DEVEL" = "xnone" ; then
19793 as_fn_error $? "crypto library file crypto.h NOT found. Install corresponding libcrypt-devel package" "$LINENO" 5
19794 exit 1
19795 fi
19796 ;;
19797 *) ;;
19798 esac
19799 fi
19800
19801 if test "x$alpine_SSLTYPE" != "xnone" ; then
19802 if test "x$alpine_SSLVERSION" = "xold" ; then
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
19804 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
19805 if ${ac_cv_search_SSL_library_init+:} false; then :
19806 $as_echo_n "(cached) " >&6
19807 else
19808 ac_func_search_save_LIBS=$LIBS
19809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19810 /* end confdefs.h. */
19811
19812 /* Override any GCC internal prototype to avoid an error.
19813 Use char because int might match the return type of a GCC
19814 builtin and then its argument prototype would still apply. */
19815 #ifdef __cplusplus
19816 extern "C"
19817 #endif
19818 char SSL_library_init ();
19819 int
19820 main ()
19821 {
19822 return SSL_library_init ();
19823 ;
19824 return 0;
19825 }
19826 _ACEOF
19827 for ac_lib in '' ssl; do
19828 if test -z "$ac_lib"; then
19829 ac_res="none required"
19830 else
19831 ac_res=-l$ac_lib
19832 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19833 fi
19834 if ac_fn_c_try_link "$LINENO"; then :
19835 ac_cv_search_SSL_library_init=$ac_res
19836 fi
19837 rm -f core conftest.err conftest.$ac_objext \
19838 conftest$ac_exeext
19839 if ${ac_cv_search_SSL_library_init+:} false; then :
19840 break
19841 fi
19842 done
19843 if ${ac_cv_search_SSL_library_init+:} false; then :
19844
19845 else
19846 ac_cv_search_SSL_library_init=no
19847 fi
19848 rm conftest.$ac_ext
19849 LIBS=$ac_func_search_save_LIBS
19850 fi
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
19852 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
19853 ac_res=$ac_cv_search_SSL_library_init
19854 if test "$ac_res" != no; then :
19855 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19856
19857 else
19858 alpine_SSLTYPE="none"
19859 fi
19860
19861 if test "x$alpine_SSLTYPE" = "xnone" ; then
19862 as_fn_error $? "No library containing SSL_library_init found in your path" "$LINENO" 5
19863 exit 1
19864 fi
19865 else
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing OPENSSL_init_ssl" >&5
19867 $as_echo_n "checking for library containing OPENSSL_init_ssl... " >&6; }
19868 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
19869 $as_echo_n "(cached) " >&6
19870 else
19871 ac_func_search_save_LIBS=$LIBS
19872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19873 /* end confdefs.h. */
19874
19875 /* Override any GCC internal prototype to avoid an error.
19876 Use char because int might match the return type of a GCC
19877 builtin and then its argument prototype would still apply. */
19878 #ifdef __cplusplus
19879 extern "C"
19880 #endif
19881 char OPENSSL_init_ssl ();
19882 int
19883 main ()
19884 {
19885 return OPENSSL_init_ssl ();
19886 ;
19887 return 0;
19888 }
19889 _ACEOF
19890 for ac_lib in '' ssl; do
19891 if test -z "$ac_lib"; then
19892 ac_res="none required"
19893 else
19894 ac_res=-l$ac_lib
19895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19896 fi
19897 if ac_fn_c_try_link "$LINENO"; then :
19898 ac_cv_search_OPENSSL_init_ssl=$ac_res
19899 fi
19900 rm -f core conftest.err conftest.$ac_objext \
19901 conftest$ac_exeext
19902 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
19903 break
19904 fi
19905 done
19906 if ${ac_cv_search_OPENSSL_init_ssl+:} false; then :
19907
19908 else
19909 ac_cv_search_OPENSSL_init_ssl=no
19910 fi
19911 rm conftest.$ac_ext
19912 LIBS=$ac_func_search_save_LIBS
19913 fi
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_OPENSSL_init_ssl" >&5
19915 $as_echo "$ac_cv_search_OPENSSL_init_ssl" >&6; }
19916 ac_res=$ac_cv_search_OPENSSL_init_ssl
19917 if test "$ac_res" != no; then :
19918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19919
19920 else
19921 alpine_SSLTYPE="none"
19922 fi
19923
19924 if test "x$aalpiLlpine_SSLTYPE" = "xnone" ; then
19925 as_fn_error $? "No library containing OPENSSL_init_ssl found in your path" "$LINENO" 5
19926 exit 1
19927 fi
19928 fi
19929 fi
19930
19931 if test "$alpine_with_ldap" = "yes" ; then
19932 alpine_has_ldap=
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
19934 $as_echo_n "checking for ber_alloc in -llber... " >&6; }
19935 if ${ac_cv_lib_lber_ber_alloc+:} false; then :
19936 $as_echo_n "(cached) " >&6
19937 else
19938 ac_check_lib_save_LIBS=$LIBS
19939 LIBS="-llber $LIBS"
19940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19941 /* end confdefs.h. */
19942
19943 /* Override any GCC internal prototype to avoid an error.
19944 Use char because int might match the return type of a GCC
19945 builtin and then its argument prototype would still apply. */
19946 #ifdef __cplusplus
19947 extern "C"
19948 #endif
19949 char ber_alloc ();
19950 int
19951 main ()
19952 {
19953 return ber_alloc ();
19954 ;
19955 return 0;
19956 }
19957 _ACEOF
19958 if ac_fn_c_try_link "$LINENO"; then :
19959 ac_cv_lib_lber_ber_alloc=yes
19960 else
19961 ac_cv_lib_lber_ber_alloc=no
19962 fi
19963 rm -f core conftest.err conftest.$ac_objext \
19964 conftest$ac_exeext conftest.$ac_ext
19965 LIBS=$ac_check_lib_save_LIBS
19966 fi
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
19968 $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
19969 if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
19970
19971 LIBS="$LIBS -llber"
19972
19973 fi
19974
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
19976 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
19977 if ${ac_cv_search_ldap_initialize+:} false; then :
19978 $as_echo_n "(cached) " >&6
19979 else
19980 ac_func_search_save_LIBS=$LIBS
19981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19982 /* end confdefs.h. */
19983
19984 /* Override any GCC internal prototype to avoid an error.
19985 Use char because int might match the return type of a GCC
19986 builtin and then its argument prototype would still apply. */
19987 #ifdef __cplusplus
19988 extern "C"
19989 #endif
19990 char ldap_initialize ();
19991 int
19992 main ()
19993 {
19994 return ldap_initialize ();
19995 ;
19996 return 0;
19997 }
19998 _ACEOF
19999 for ac_lib in '' ldap; do
20000 if test -z "$ac_lib"; then
20001 ac_res="none required"
20002 else
20003 ac_res=-l$ac_lib
20004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20005 fi
20006 if ac_fn_c_try_link "$LINENO"; then :
20007 ac_cv_search_ldap_initialize=$ac_res
20008 fi
20009 rm -f core conftest.err conftest.$ac_objext \
20010 conftest$ac_exeext
20011 if ${ac_cv_search_ldap_initialize+:} false; then :
20012 break
20013 fi
20014 done
20015 if ${ac_cv_search_ldap_initialize+:} false; then :
20016
20017 else
20018 ac_cv_search_ldap_initialize=no
20019 fi
20020 rm conftest.$ac_ext
20021 LIBS=$ac_func_search_save_LIBS
20022 fi
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
20024 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
20025 ac_res=$ac_cv_search_ldap_initialize
20026 if test "$ac_res" != no; then :
20027 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20028
20029 alpine_has_ldap=yes
20030
20031 else
20032
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_open" >&5
20034 $as_echo_n "checking for library containing ldap_open... " >&6; }
20035 if ${ac_cv_search_ldap_open+:} false; then :
20036 $as_echo_n "(cached) " >&6
20037 else
20038 ac_func_search_save_LIBS=$LIBS
20039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20040 /* end confdefs.h. */
20041
20042 /* Override any GCC internal prototype to avoid an error.
20043 Use char because int might match the return type of a GCC
20044 builtin and then its argument prototype would still apply. */
20045 #ifdef __cplusplus
20046 extern "C"
20047 #endif
20048 char ldap_open ();
20049 int
20050 main ()
20051 {
20052 return ldap_open ();
20053 ;
20054 return 0;
20055 }
20056 _ACEOF
20057 for ac_lib in '' ldap; do
20058 if test -z "$ac_lib"; then
20059 ac_res="none required"
20060 else
20061 ac_res=-l$ac_lib
20062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20063 fi
20064 if ac_fn_c_try_link "$LINENO"; then :
20065 ac_cv_search_ldap_open=$ac_res
20066 fi
20067 rm -f core conftest.err conftest.$ac_objext \
20068 conftest$ac_exeext
20069 if ${ac_cv_search_ldap_open+:} false; then :
20070 break
20071 fi
20072 done
20073 if ${ac_cv_search_ldap_open+:} false; then :
20074
20075 else
20076 ac_cv_search_ldap_open=no
20077 fi
20078 rm conftest.$ac_ext
20079 LIBS=$ac_func_search_save_LIBS
20080 fi
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_open" >&5
20082 $as_echo "$ac_cv_search_ldap_open" >&6; }
20083 ac_res=$ac_cv_search_ldap_open
20084 if test "$ac_res" != no; then :
20085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20086
20087 alpine_has_ldap=yes
20088
20089 fi
20090
20091
20092 fi
20093
20094
20095 if test "$alpine_has_ldap" = "yes" ; then
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including LDAP Support" >&5
20097 $as_echo "$as_me: * * * Including LDAP Support" >&6;}
20098
20099 $as_echo "#define ENABLE_LDAP /**/" >>confdefs.h
20100
20101 fi
20102 fi
20103
20104 if test -z "$alpine_c_client_bundled" ; then
20105 if test "x$alpine_PAM" != "xnone" ; then
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_start" >&5
20107 $as_echo_n "checking for library containing pam_start... " >&6; }
20108 if ${ac_cv_search_pam_start+:} false; then :
20109 $as_echo_n "(cached) " >&6
20110 else
20111 ac_func_search_save_LIBS=$LIBS
20112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20113 /* end confdefs.h. */
20114
20115 /* Override any GCC internal prototype to avoid an error.
20116 Use char because int might match the return type of a GCC
20117 builtin and then its argument prototype would still apply. */
20118 #ifdef __cplusplus
20119 extern "C"
20120 #endif
20121 char pam_start ();
20122 int
20123 main ()
20124 {
20125 return pam_start ();
20126 ;
20127 return 0;
20128 }
20129 _ACEOF
20130 for ac_lib in '' pam; do
20131 if test -z "$ac_lib"; then
20132 ac_res="none required"
20133 else
20134 ac_res=-l$ac_lib
20135 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20136 fi
20137 if ac_fn_c_try_link "$LINENO"; then :
20138 ac_cv_search_pam_start=$ac_res
20139 fi
20140 rm -f core conftest.err conftest.$ac_objext \
20141 conftest$ac_exeext
20142 if ${ac_cv_search_pam_start+:} false; then :
20143 break
20144 fi
20145 done
20146 if ${ac_cv_search_pam_start+:} false; then :
20147
20148 else
20149 ac_cv_search_pam_start=no
20150 fi
20151 rm conftest.$ac_ext
20152 LIBS=$ac_func_search_save_LIBS
20153 fi
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_start" >&5
20155 $as_echo "$ac_cv_search_pam_start" >&6; }
20156 ac_res=$ac_cv_search_pam_start
20157 if test "$ac_res" != no; then :
20158 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20159
20160 LIBS="$LIBS -lpam"
20161 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
20162 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
20163
20164 alpine_PAM="yes"
20165
20166 else
20167 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
20168 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
20169
20170 alpine_PAM="yes"
20171 if test "x$alpine_c_client_target" != "xoxp" ; then
20172 alpine_PAM="none"
20173 alpine_pam_none_reason="header files not in security/ directory"
20174 fi
20175
20176 else
20177
20178 alpine_PAM="none"
20179 alpine_pam_none_reason="header files not found"
20180
20181 fi
20182
20183
20184
20185 fi
20186
20187
20188
20189 else
20190
20191 alpine_PAM="none"
20192 alpine_pam_none_reason="library files not found"
20193
20194 fi
20195
20196 if test -n "$alpine_pam_none_reason" ; then
20197 as_fn_error or do not use --with-bundled-tools "Trying to build bundled tools but could not find libpam. Install it first and try again" "$LINENO" 5
20198 fi
20199 fi
20200 fi
20201
20202 if test -n "$alpine_c_client_bundled" ; then
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
20204 $as_echo_n "checking for library containing crypt... " >&6; }
20205 if ${ac_cv_search_crypt+:} false; then :
20206 $as_echo_n "(cached) " >&6
20207 else
20208 ac_func_search_save_LIBS=$LIBS
20209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20210 /* end confdefs.h. */
20211
20212 /* Override any GCC internal prototype to avoid an error.
20213 Use char because int might match the return type of a GCC
20214 builtin and then its argument prototype would still apply. */
20215 #ifdef __cplusplus
20216 extern "C"
20217 #endif
20218 char crypt ();
20219 int
20220 main ()
20221 {
20222 return crypt ();
20223 ;
20224 return 0;
20225 }
20226 _ACEOF
20227 for ac_lib in '' crypt; do
20228 if test -z "$ac_lib"; then
20229 ac_res="none required"
20230 else
20231 ac_res=-l$ac_lib
20232 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20233 fi
20234 if ac_fn_c_try_link "$LINENO"; then :
20235 ac_cv_search_crypt=$ac_res
20236 fi
20237 rm -f core conftest.err conftest.$ac_objext \
20238 conftest$ac_exeext
20239 if ${ac_cv_search_crypt+:} false; then :
20240 break
20241 fi
20242 done
20243 if ${ac_cv_search_crypt+:} false; then :
20244
20245 else
20246 ac_cv_search_crypt=no
20247 fi
20248 rm conftest.$ac_ext
20249 LIBS=$ac_func_search_save_LIBS
20250 fi
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
20252 $as_echo "$ac_cv_search_crypt" >&6; }
20253 ac_res=$ac_cv_search_crypt
20254 if test "$ac_res" != no; then :
20255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20256
20257 else
20258
20259 as_fn_error $? "crypt library not found." "$LINENO" 5
20260
20261 fi
20262
20263 fi
20264
20265 C_CLIENT_BUNDLED=$alpine_c_client_bundled
20266
20267
20268 if test "x$alpine_GSSTYPE" != "xnone" ; then
20269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
20270 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
20271 if ${ac_cv_search_gss_init_sec_context+:} false; then :
20272 $as_echo_n "(cached) " >&6
20273 else
20274 ac_func_search_save_LIBS=$LIBS
20275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20276 /* end confdefs.h. */
20277
20278 /* Override any GCC internal prototype to avoid an error.
20279 Use char because int might match the return type of a GCC
20280 builtin and then its argument prototype would still apply. */
20281 #ifdef __cplusplus
20282 extern "C"
20283 #endif
20284 char gss_init_sec_context ();
20285 int
20286 main ()
20287 {
20288 return gss_init_sec_context ();
20289 ;
20290 return 0;
20291 }
20292 _ACEOF
20293 for ac_lib in '' gss gssapi gssapi_krb5; do
20294 if test -z "$ac_lib"; then
20295 ac_res="none required"
20296 else
20297 ac_res=-l$ac_lib
20298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20299 fi
20300 if ac_fn_c_try_link "$LINENO"; then :
20301 ac_cv_search_gss_init_sec_context=$ac_res
20302 fi
20303 rm -f core conftest.err conftest.$ac_objext \
20304 conftest$ac_exeext
20305 if ${ac_cv_search_gss_init_sec_context+:} false; then :
20306 break
20307 fi
20308 done
20309 if ${ac_cv_search_gss_init_sec_context+:} false; then :
20310
20311 else
20312 ac_cv_search_gss_init_sec_context=no
20313 fi
20314 rm conftest.$ac_ext
20315 LIBS=$ac_func_search_save_LIBS
20316 fi
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
20318 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
20319 ac_res=$ac_cv_search_gss_init_sec_context
20320 if test "$ac_res" != no; then :
20321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20322
20323 LIBS="$LIBS -lkrb5"
20324 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
20325 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
20326
20327 else
20328
20329 if test ! -d /usr/kerberos/include ; then
20330 alpine_GSSTYPE="none"
20331 alpine_gss_none_reason="header files not found"
20332 fi
20333
20334 fi
20335
20336
20337
20338 else
20339
20340 alpine_GSSTYPE="none"
20341 alpine_gss_none_reason="libraries not found"
20342
20343 fi
20344
20345 if test -n "$alpine_gss_none_reason" ; then
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including Kerberos Support: $alpine_gss_none_reason" >&5
20347 $as_echo "$as_me: NOT including Kerberos Support: $alpine_gss_none_reason" >&6;}
20348 fi
20349 fi
20350
20351
20352 # Check whether --with-ntlm was given.
20353 if test "${with_ntlm+set}" = set; then :
20354 withval=$with_ntlm; with_ntlm=$withval
20355 fi
20356
20357
20358 if test "x$with_ntlm" = "xno" ; then
20359 alpine_NTLM="none"
20360 else
20361 alpine_NTLM=
20362
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing buildSmbNtlmAuthRequest" >&5
20364 $as_echo_n "checking for library containing buildSmbNtlmAuthRequest... " >&6; }
20365 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
20366 $as_echo_n "(cached) " >&6
20367 else
20368 ac_func_search_save_LIBS=$LIBS
20369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20370 /* end confdefs.h. */
20371
20372 /* Override any GCC internal prototype to avoid an error.
20373 Use char because int might match the return type of a GCC
20374 builtin and then its argument prototype would still apply. */
20375 #ifdef __cplusplus
20376 extern "C"
20377 #endif
20378 char buildSmbNtlmAuthRequest ();
20379 int
20380 main ()
20381 {
20382 return buildSmbNtlmAuthRequest ();
20383 ;
20384 return 0;
20385 }
20386 _ACEOF
20387 for ac_lib in '' ntlm; do
20388 if test -z "$ac_lib"; then
20389 ac_res="none required"
20390 else
20391 ac_res=-l$ac_lib
20392 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20393 fi
20394 if ac_fn_c_try_link "$LINENO"; then :
20395 ac_cv_search_buildSmbNtlmAuthRequest=$ac_res
20396 fi
20397 rm -f core conftest.err conftest.$ac_objext \
20398 conftest$ac_exeext
20399 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
20400 break
20401 fi
20402 done
20403 if ${ac_cv_search_buildSmbNtlmAuthRequest+:} false; then :
20404
20405 else
20406 ac_cv_search_buildSmbNtlmAuthRequest=no
20407 fi
20408 rm conftest.$ac_ext
20409 LIBS=$ac_func_search_save_LIBS
20410 fi
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_buildSmbNtlmAuthRequest" >&5
20412 $as_echo "$ac_cv_search_buildSmbNtlmAuthRequest" >&6; }
20413 ac_res=$ac_cv_search_buildSmbNtlmAuthRequest
20414 if test "$ac_res" != no; then :
20415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20416
20417 ac_fn_c_check_header_mongrel "$LINENO" "ntlm.h" "ac_cv_header_ntlm_h" "$ac_includes_default"
20418 if test "x$ac_cv_header_ntlm_h" = xyes; then :
20419
20420 extra_auth_ntlm=ntl
20421 { $as_echo "$as_me:${as_lineno-$LINENO}: including NTLM support" >&5
20422 $as_echo "$as_me: including NTLM support" >&6;}
20423
20424 else
20425
20426 alpine_NTLM="none"
20427 alpine_ntlm_none_reason="header file ntlm.h not found"
20428
20429 fi
20430
20431
20432
20433 else
20434
20435 alpine_NTLM="none"
20436 alpine_ntlm_none_reason="ntlm library not found"
20437
20438 fi
20439
20440 if test -n "$alpine_ntlm_none_reason" ; then
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: NOT including NTLM Support: $alpine_ntlm_none_reason" >&5
20442 $as_echo "$as_me: NOT including NTLM Support: $alpine_ntlm_none_reason" >&6;}
20443 fi
20444 fi
20445
20446 if test -n "$WEB_BUILD" ; then
20447 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
20448 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
20449 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
20450 if test -n "$alpine_TCLINC" ; then
20451 as_ac_Header=`$as_echo "ac_cv_header_$alpine_TCLINC/tcl.h" | $as_tr_sh`
20452 ac_fn_c_check_header_mongrel "$LINENO" "$alpine_TCLINC/tcl.h" "$as_ac_Header" "$ac_includes_default"
20453 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20454
20455 else
20456
20457 WEB_BUILD=
20458
20459 fi
20460
20461
20462 if test -z "$WEB_BUILD" ; then
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: Tcl Include file NOT found" >&5
20464 $as_echo "$as_me: Tcl Include file NOT found" >&6;}
20465 fi
20466 else
20467 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
20468 if test "x$ac_cv_header_tcl_h" = xyes; then :
20469
20470 else
20471
20472 for base in /usr /usr/local ; do
20473 for dir in ${TCL_VERSIONS} ; do
20474 if test -f $base/include/$dir/tcl.h ; then
20475 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
20476 found=yes
20477 break
20478 fi
20479 done
20480 if test "x$found" = "xyes" ; then
20481 break
20482 fi
20483 done
20484 if test "$found" != "yes" ; then
20485 WEB_BUILD=
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: header file tcl.h NOT found: Web Alpine will not be built" >&5
20487 $as_echo "$as_me: header file tcl.h NOT found: Web Alpine will not be built" >&6;}
20488 fi
20489
20490 fi
20491
20492
20493 fi
20494 if test -n "$WEB_BUILD" ; then
20495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Tcl_Eval" >&5
20496 $as_echo_n "checking for library containing Tcl_Eval... " >&6; }
20497 if ${ac_cv_search_Tcl_Eval+:} false; then :
20498 $as_echo_n "(cached) " >&6
20499 else
20500 ac_func_search_save_LIBS=$LIBS
20501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20502 /* end confdefs.h. */
20503
20504 /* Override any GCC internal prototype to avoid an error.
20505 Use char because int might match the return type of a GCC
20506 builtin and then its argument prototype would still apply. */
20507 #ifdef __cplusplus
20508 extern "C"
20509 #endif
20510 char Tcl_Eval ();
20511 int
20512 main ()
20513 {
20514 return Tcl_Eval ();
20515 ;
20516 return 0;
20517 }
20518 _ACEOF
20519 for ac_lib in '' $alpine_TCLLIB ${TCL_VERSIONS}; do
20520 if test -z "$ac_lib"; then
20521 ac_res="none required"
20522 else
20523 ac_res=-l$ac_lib
20524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20525 fi
20526 if ac_fn_c_try_link "$LINENO"; then :
20527 ac_cv_search_Tcl_Eval=$ac_res
20528 fi
20529 rm -f core conftest.err conftest.$ac_objext \
20530 conftest$ac_exeext
20531 if ${ac_cv_search_Tcl_Eval+:} false; then :
20532 break
20533 fi
20534 done
20535 if ${ac_cv_search_Tcl_Eval+:} false; then :
20536
20537 else
20538 ac_cv_search_Tcl_Eval=no
20539 fi
20540 rm conftest.$ac_ext
20541 LIBS=$ac_func_search_save_LIBS
20542 fi
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Tcl_Eval" >&5
20544 $as_echo "$ac_cv_search_Tcl_Eval" >&6; }
20545 ac_res=$ac_cv_search_Tcl_Eval
20546 if test "$ac_res" != no; then :
20547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20548
20549 else
20550
20551 WEB_BUILD=
20552
20553 fi
20554
20555 fi
20556 fi
20557
20558 if test "x$alpine_REGEX" != "xyes" ; then
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
20560 $as_echo_n "checking for library containing regcomp... " >&6; }
20561 if ${ac_cv_search_regcomp+:} false; then :
20562 $as_echo_n "(cached) " >&6
20563 else
20564 ac_func_search_save_LIBS=$LIBS
20565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20566 /* end confdefs.h. */
20567
20568 /* Override any GCC internal prototype to avoid an error.
20569 Use char because int might match the return type of a GCC
20570 builtin and then its argument prototype would still apply. */
20571 #ifdef __cplusplus
20572 extern "C"
20573 #endif
20574 char regcomp ();
20575 int
20576 main ()
20577 {
20578 return regcomp ();
20579 ;
20580 return 0;
20581 }
20582 _ACEOF
20583 for ac_lib in '' posix regexp regex re; do
20584 if test -z "$ac_lib"; then
20585 ac_res="none required"
20586 else
20587 ac_res=-l$ac_lib
20588 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20589 fi
20590 if ac_fn_c_try_link "$LINENO"; then :
20591 ac_cv_search_regcomp=$ac_res
20592 fi
20593 rm -f core conftest.err conftest.$ac_objext \
20594 conftest$ac_exeext
20595 if ${ac_cv_search_regcomp+:} false; then :
20596 break
20597 fi
20598 done
20599 if ${ac_cv_search_regcomp+:} false; then :
20600
20601 else
20602 ac_cv_search_regcomp=no
20603 fi
20604 rm conftest.$ac_ext
20605 LIBS=$ac_func_search_save_LIBS
20606 fi
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
20608 $as_echo "$ac_cv_search_regcomp" >&6; }
20609 ac_res=$ac_cv_search_regcomp
20610 if test "$ac_res" != no; then :
20611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20612
20613 else
20614
20615 if test x$alpine_REGEX = "xno" ; then
20616 as_fn_error $? "Unable to find system regex library" "$LINENO" 5
20617 else
20618 alpine_REGEX=yes
20619 fi
20620
20621 fi
20622
20623 fi
20624 if test "x$alpine_REGEX" != "xyes" ; then
20625 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
20626 if test "x$ac_cv_header_regex_h" = xyes; then :
20627
20628 else
20629
20630 if test x$alpine_REGEX = "xno" ; then
20631 as_fn_error $? "Unable to find system regex include file" "$LINENO" 5
20632 else
20633 alpine_REGEX=yes
20634 fi
20635
20636 fi
20637
20638
20639 fi
20640
20641 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
20642
20643 if test "x$alpine_REGEX" = "xyes" ; then
20644 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
20645 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
20646 REGEX_BUILD=regex
20647 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
20648 fi
20649
20650 if test "x$with_pthread" != "xno" ; then
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support" >&5
20652 $as_echo_n "checking for pthread support... " >&6; }
20653
20654
20655
20656 ac_ext=c
20657 ac_cpp='$CPP $CPPFLAGS'
20658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20661
20662 acx_pthread_ok=no
20663
20664 # We used to check for pthread.h first, but this fails if pthread.h
20665 # requires special compiler flags (e.g. on True64 or Sequent).
20666 # It gets checked for in the link test anyway.
20667
20668 # First of all, check if the user has set any of the PTHREAD_LIBS,
20669 # etcetera environment variables, and if threads linking works using
20670 # them:
20671 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
20672 save_CFLAGS="$CFLAGS"
20673 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20674 save_LIBS="$LIBS"
20675 LIBS="$PTHREAD_LIBS $LIBS"
20676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
20677 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
20678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20679 /* end confdefs.h. */
20680
20681 /* Override any GCC internal prototype to avoid an error.
20682 Use char because int might match the return type of a GCC
20683 builtin and then its argument prototype would still apply. */
20684 #ifdef __cplusplus
20685 extern "C"
20686 #endif
20687 char pthread_join ();
20688 int
20689 main ()
20690 {
20691 return pthread_join ();
20692 ;
20693 return 0;
20694 }
20695 _ACEOF
20696 if ac_fn_c_try_link "$LINENO"; then :
20697 acx_pthread_ok=yes
20698 fi
20699 rm -f core conftest.err conftest.$ac_objext \
20700 conftest$ac_exeext conftest.$ac_ext
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
20702 $as_echo "$acx_pthread_ok" >&6; }
20703 if test x"$acx_pthread_ok" = xno; then
20704 PTHREAD_LIBS=""
20705 PTHREAD_CFLAGS=""
20706 fi
20707 LIBS="$save_LIBS"
20708 CFLAGS="$save_CFLAGS"
20709 fi
20710
20711 # We must check for the threads library under a number of different
20712 # names; the ordering is very important because some systems
20713 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20714 # libraries is broken (non-POSIX).
20715
20716 # Create a list of thread flags to try. Items starting with a "-" are
20717 # C compiler flags, and other items are library names, except for "none"
20718 # which indicates that we try without any flags at all, and "pthread-config"
20719 # which is a program returning the flags for the Pth emulation library.
20720
20721 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20722
20723 # The ordering *is* (sometimes) important. Some notes on the
20724 # individual items follow:
20725
20726 # pthreads: AIX (must check this before -lpthread)
20727 # none: in case threads are in libc; should be tried before -Kthread and
20728 # other compiler flags to prevent continual compiler warnings
20729 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20730 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20731 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20732 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
20733 # -pthreads: Solaris/gcc
20734 # -mthreads: Mingw32/gcc, Lynx/gcc
20735 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20736 # doesn't hurt to check since this sometimes defines pthreads too;
20737 # also defines -D_REENTRANT)
20738 # ... -mt is also the pthreads flag for HP/aCC
20739 # pthread: Linux, etcetera
20740 # --thread-safe: KAI C++
20741 # pthread-config: use pthread-config program (for GNU Pth library)
20742
20743 case "${host_cpu}-${host_os}" in
20744 *solaris*)
20745
20746 # On Solaris (at least, for some versions), libc contains stubbed
20747 # (non-functional) versions of the pthreads routines, so link-based
20748 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
20749 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
20750 # a function called by this macro, so we could check for that, but
20751 # who knows whether they'll stub that too in a future libc.) So,
20752 # we'll just look for -pthreads and -lpthread first:
20753
20754 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
20755 ;;
20756 esac
20757
20758 if test x"$acx_pthread_ok" = xno; then
20759 for flag in $acx_pthread_flags; do
20760
20761 case $flag in
20762 none)
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20764 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20765 ;;
20766
20767 -*)
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
20769 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
20770 PTHREAD_CFLAGS="$flag"
20771 ;;
20772
20773 pthread-config)
20774 # Extract the first word of "pthread-config", so it can be a program name with args.
20775 set dummy pthread-config; ac_word=$2
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20777 $as_echo_n "checking for $ac_word... " >&6; }
20778 if ${ac_cv_prog_acx_pthread_config+:} false; then :
20779 $as_echo_n "(cached) " >&6
20780 else
20781 if test -n "$acx_pthread_config"; then
20782 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
20783 else
20784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20785 for as_dir in $PATH
20786 do
20787 IFS=$as_save_IFS
20788 test -z "$as_dir" && as_dir=.
20789 for ac_exec_ext in '' $ac_executable_extensions; do
20790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20791 ac_cv_prog_acx_pthread_config="yes"
20792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20793 break 2
20794 fi
20795 done
20796 done
20797 IFS=$as_save_IFS
20798
20799 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
20800 fi
20801 fi
20802 acx_pthread_config=$ac_cv_prog_acx_pthread_config
20803 if test -n "$acx_pthread_config"; then
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
20805 $as_echo "$acx_pthread_config" >&6; }
20806 else
20807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20808 $as_echo "no" >&6; }
20809 fi
20810
20811
20812 if test x"$acx_pthread_config" = xno; then continue; fi
20813 PTHREAD_CFLAGS="`pthread-config --cflags`"
20814 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20815 ;;
20816
20817 *)
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
20819 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
20820 PTHREAD_LIBS="-l$flag"
20821 ;;
20822 esac
20823
20824 save_LIBS="$LIBS"
20825 save_CFLAGS="$CFLAGS"
20826 LIBS="$PTHREAD_LIBS $LIBS"
20827 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20828
20829 # Check for various functions. We must include pthread.h,
20830 # since some functions may be macros. (On the Sequent, we
20831 # need a special flag -Kthread to make this header compile.)
20832 # We check for pthread_join because it is in -lpthread on IRIX
20833 # while pthread_create is in libc. We check for pthread_attr_init
20834 # due to DEC craziness with -lpthreads. We check for
20835 # pthread_cleanup_push because it is one of the few pthread
20836 # functions on Solaris that doesn't have a non-functional libc stub.
20837 # We try pthread_create on general principles.
20838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20839 /* end confdefs.h. */
20840 #include <pthread.h>
20841 int
20842 main ()
20843 {
20844 pthread_t th; pthread_join(th, 0);
20845 pthread_attr_init(0); pthread_cleanup_push(0, 0);
20846 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
20847 ;
20848 return 0;
20849 }
20850 _ACEOF
20851 if ac_fn_c_try_link "$LINENO"; then :
20852 acx_pthread_ok=yes
20853 fi
20854 rm -f core conftest.err conftest.$ac_objext \
20855 conftest$ac_exeext conftest.$ac_ext
20856
20857 LIBS="$save_LIBS"
20858 CFLAGS="$save_CFLAGS"
20859
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
20861 $as_echo "$acx_pthread_ok" >&6; }
20862 if test "x$acx_pthread_ok" = xyes; then
20863 break;
20864 fi
20865
20866 PTHREAD_LIBS=""
20867 PTHREAD_CFLAGS=""
20868 done
20869 fi
20870
20871 # Various other checks:
20872 if test "x$acx_pthread_ok" = xyes; then
20873 save_LIBS="$LIBS"
20874 LIBS="$PTHREAD_LIBS $LIBS"
20875 save_CFLAGS="$CFLAGS"
20876 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20877
20878 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20880 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20881 attr_name=unknown
20882 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20884 /* end confdefs.h. */
20885 #include <pthread.h>
20886 int
20887 main ()
20888 {
20889 int attr=$attr; return attr;
20890 ;
20891 return 0;
20892 }
20893 _ACEOF
20894 if ac_fn_c_try_link "$LINENO"; then :
20895 attr_name=$attr; break
20896 fi
20897 rm -f core conftest.err conftest.$ac_objext \
20898 conftest$ac_exeext conftest.$ac_ext
20899 done
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
20901 $as_echo "$attr_name" >&6; }
20902 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
20903
20904 cat >>confdefs.h <<_ACEOF
20905 #define PTHREAD_CREATE_JOINABLE $attr_name
20906 _ACEOF
20907
20908 fi
20909
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
20911 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
20912 flag=no
20913 case "${host_cpu}-${host_os}" in
20914 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
20915 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
20916 esac
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
20918 $as_echo "${flag}" >&6; }
20919 if test "x$flag" != xno; then
20920 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
20921 fi
20922
20923 LIBS="$save_LIBS"
20924 CFLAGS="$save_CFLAGS"
20925
20926 # More AIX lossage: must compile with xlc_r or cc_r
20927 if test x"$GCC" != xyes; then
20928 for ac_prog in xlc_r cc_r
20929 do
20930 # Extract the first word of "$ac_prog", so it can be a program name with args.
20931 set dummy $ac_prog; ac_word=$2
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20933 $as_echo_n "checking for $ac_word... " >&6; }
20934 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
20935 $as_echo_n "(cached) " >&6
20936 else
20937 if test -n "$PTHREAD_CC"; then
20938 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20939 else
20940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20941 for as_dir in $PATH
20942 do
20943 IFS=$as_save_IFS
20944 test -z "$as_dir" && as_dir=.
20945 for ac_exec_ext in '' $ac_executable_extensions; do
20946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20947 ac_cv_prog_PTHREAD_CC="$ac_prog"
20948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20949 break 2
20950 fi
20951 done
20952 done
20953 IFS=$as_save_IFS
20954
20955 fi
20956 fi
20957 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20958 if test -n "$PTHREAD_CC"; then
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20960 $as_echo "$PTHREAD_CC" >&6; }
20961 else
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20963 $as_echo "no" >&6; }
20964 fi
20965
20966
20967 test -n "$PTHREAD_CC" && break
20968 done
20969 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
20970
20971 else
20972 PTHREAD_CC=$CC
20973 fi
20974 else
20975 PTHREAD_CC="$CC"
20976 fi
20977
20978
20979
20980
20981
20982 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20983 if test x"$acx_pthread_ok" = xyes; then
20984
20985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20986 $as_echo "yes" >&6; }
20987 case "$target" in
20988 *openbsd*)
20989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread support on OpenBSD is unstable!" >&5
20990 $as_echo "$as_me: WARNING: pthread support on OpenBSD is unstable!" >&6;}
20991 AM_CFLAGS="$AM_CFLAGS -pthread"
20992 ;;
20993 esac
20994 LIBS="$PTHREAD_LIBS $LIBS"
20995 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
20996 CC="$PTHREAD_CC"
20997
20998 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20999
21000
21001 :
21002 else
21003 acx_pthread_ok=no
21004
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21006 $as_echo "no" >&6; }
21007
21008 fi
21009 ac_ext=c
21010 ac_cpp='$CPP $CPPFLAGS'
21011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21014
21015
21016
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21018 $as_echo_n "checking for library containing nanosleep... " >&6; }
21019 if ${ac_cv_search_nanosleep+:} false; then :
21020 $as_echo_n "(cached) " >&6
21021 else
21022 ac_func_search_save_LIBS=$LIBS
21023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21024 /* end confdefs.h. */
21025
21026 /* Override any GCC internal prototype to avoid an error.
21027 Use char because int might match the return type of a GCC
21028 builtin and then its argument prototype would still apply. */
21029 #ifdef __cplusplus
21030 extern "C"
21031 #endif
21032 char nanosleep ();
21033 int
21034 main ()
21035 {
21036 return nanosleep ();
21037 ;
21038 return 0;
21039 }
21040 _ACEOF
21041 for ac_lib in '' rt posix4; do
21042 if test -z "$ac_lib"; then
21043 ac_res="none required"
21044 else
21045 ac_res=-l$ac_lib
21046 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21047 fi
21048 if ac_fn_c_try_link "$LINENO"; then :
21049 ac_cv_search_nanosleep=$ac_res
21050 fi
21051 rm -f core conftest.err conftest.$ac_objext \
21052 conftest$ac_exeext
21053 if ${ac_cv_search_nanosleep+:} false; then :
21054 break
21055 fi
21056 done
21057 if ${ac_cv_search_nanosleep+:} false; then :
21058
21059 else
21060 ac_cv_search_nanosleep=no
21061 fi
21062 rm conftest.$ac_ext
21063 LIBS=$ac_func_search_save_LIBS
21064 fi
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21066 $as_echo "$ac_cv_search_nanosleep" >&6; }
21067 ac_res=$ac_cv_search_nanosleep
21068 if test "$ac_res" != no; then :
21069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21070
21071
21072 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
21073
21074
21075 fi
21076
21077 fi
21078
21079
21080
21081
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21083 $as_echo_n "checking for ANSI C header files... " >&6; }
21084 if ${ac_cv_header_stdc+:} false; then :
21085 $as_echo_n "(cached) " >&6
21086 else
21087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21088 /* end confdefs.h. */
21089 #include <stdlib.h>
21090 #include <stdarg.h>
21091 #include <string.h>
21092 #include <float.h>
21093
21094 int
21095 main ()
21096 {
21097
21098 ;
21099 return 0;
21100 }
21101 _ACEOF
21102 if ac_fn_c_try_compile "$LINENO"; then :
21103 ac_cv_header_stdc=yes
21104 else
21105 ac_cv_header_stdc=no
21106 fi
21107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21108
21109 if test $ac_cv_header_stdc = yes; then
21110 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21112 /* end confdefs.h. */
21113 #include <string.h>
21114
21115 _ACEOF
21116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21117 $EGREP "memchr" >/dev/null 2>&1; then :
21118
21119 else
21120 ac_cv_header_stdc=no
21121 fi
21122 rm -f conftest*
21123
21124 fi
21125
21126 if test $ac_cv_header_stdc = yes; then
21127 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21129 /* end confdefs.h. */
21130 #include <stdlib.h>
21131
21132 _ACEOF
21133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21134 $EGREP "free" >/dev/null 2>&1; then :
21135
21136 else
21137 ac_cv_header_stdc=no
21138 fi
21139 rm -f conftest*
21140
21141 fi
21142
21143 if test $ac_cv_header_stdc = yes; then
21144 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21145 if test "$cross_compiling" = yes; then :
21146 :
21147 else
21148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21149 /* end confdefs.h. */
21150 #include <ctype.h>
21151 #include <stdlib.h>
21152 #if ((' ' & 0x0FF) == 0x020)
21153 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21154 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21155 #else
21156 # define ISLOWER(c) \
21157 (('a' <= (c) && (c) <= 'i') \
21158 || ('j' <= (c) && (c) <= 'r') \
21159 || ('s' <= (c) && (c) <= 'z'))
21160 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21161 #endif
21162
21163 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21164 int
21165 main ()
21166 {
21167 int i;
21168 for (i = 0; i < 256; i++)
21169 if (XOR (islower (i), ISLOWER (i))
21170 || toupper (i) != TOUPPER (i))
21171 return 2;
21172 return 0;
21173 }
21174 _ACEOF
21175 if ac_fn_c_try_run "$LINENO"; then :
21176
21177 else
21178 ac_cv_header_stdc=no
21179 fi
21180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21181 conftest.$ac_objext conftest.beam conftest.$ac_ext
21182 fi
21183
21184 fi
21185 fi
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21187 $as_echo "$ac_cv_header_stdc" >&6; }
21188 if test $ac_cv_header_stdc = yes; then
21189
21190 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21191
21192 fi
21193
21194 ac_header_dirent=no
21195 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21196 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21198 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21199 if eval \${$as_ac_Header+:} false; then :
21200 $as_echo_n "(cached) " >&6
21201 else
21202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21203 /* end confdefs.h. */
21204 #include <sys/types.h>
21205 #include <$ac_hdr>
21206
21207 int
21208 main ()
21209 {
21210 if ((DIR *) 0)
21211 return 0;
21212 ;
21213 return 0;
21214 }
21215 _ACEOF
21216 if ac_fn_c_try_compile "$LINENO"; then :
21217 eval "$as_ac_Header=yes"
21218 else
21219 eval "$as_ac_Header=no"
21220 fi
21221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21222 fi
21223 eval ac_res=\$$as_ac_Header
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21225 $as_echo "$ac_res" >&6; }
21226 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21227 cat >>confdefs.h <<_ACEOF
21228 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21229 _ACEOF
21230
21231 ac_header_dirent=$ac_hdr; break
21232 fi
21233
21234 done
21235 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21236 if test $ac_header_dirent = dirent.h; then
21237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21238 $as_echo_n "checking for library containing opendir... " >&6; }
21239 if ${ac_cv_search_opendir+:} false; then :
21240 $as_echo_n "(cached) " >&6
21241 else
21242 ac_func_search_save_LIBS=$LIBS
21243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21244 /* end confdefs.h. */
21245
21246 /* Override any GCC internal prototype to avoid an error.
21247 Use char because int might match the return type of a GCC
21248 builtin and then its argument prototype would still apply. */
21249 #ifdef __cplusplus
21250 extern "C"
21251 #endif
21252 char opendir ();
21253 int
21254 main ()
21255 {
21256 return opendir ();
21257 ;
21258 return 0;
21259 }
21260 _ACEOF
21261 for ac_lib in '' dir; do
21262 if test -z "$ac_lib"; then
21263 ac_res="none required"
21264 else
21265 ac_res=-l$ac_lib
21266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21267 fi
21268 if ac_fn_c_try_link "$LINENO"; then :
21269 ac_cv_search_opendir=$ac_res
21270 fi
21271 rm -f core conftest.err conftest.$ac_objext \
21272 conftest$ac_exeext
21273 if ${ac_cv_search_opendir+:} false; then :
21274 break
21275 fi
21276 done
21277 if ${ac_cv_search_opendir+:} false; then :
21278
21279 else
21280 ac_cv_search_opendir=no
21281 fi
21282 rm conftest.$ac_ext
21283 LIBS=$ac_func_search_save_LIBS
21284 fi
21285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21286 $as_echo "$ac_cv_search_opendir" >&6; }
21287 ac_res=$ac_cv_search_opendir
21288 if test "$ac_res" != no; then :
21289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21290
21291 fi
21292
21293 else
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21295 $as_echo_n "checking for library containing opendir... " >&6; }
21296 if ${ac_cv_search_opendir+:} false; then :
21297 $as_echo_n "(cached) " >&6
21298 else
21299 ac_func_search_save_LIBS=$LIBS
21300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21301 /* end confdefs.h. */
21302
21303 /* Override any GCC internal prototype to avoid an error.
21304 Use char because int might match the return type of a GCC
21305 builtin and then its argument prototype would still apply. */
21306 #ifdef __cplusplus
21307 extern "C"
21308 #endif
21309 char opendir ();
21310 int
21311 main ()
21312 {
21313 return opendir ();
21314 ;
21315 return 0;
21316 }
21317 _ACEOF
21318 for ac_lib in '' x; do
21319 if test -z "$ac_lib"; then
21320 ac_res="none required"
21321 else
21322 ac_res=-l$ac_lib
21323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21324 fi
21325 if ac_fn_c_try_link "$LINENO"; then :
21326 ac_cv_search_opendir=$ac_res
21327 fi
21328 rm -f core conftest.err conftest.$ac_objext \
21329 conftest$ac_exeext
21330 if ${ac_cv_search_opendir+:} false; then :
21331 break
21332 fi
21333 done
21334 if ${ac_cv_search_opendir+:} false; then :
21335
21336 else
21337 ac_cv_search_opendir=no
21338 fi
21339 rm conftest.$ac_ext
21340 LIBS=$ac_func_search_save_LIBS
21341 fi
21342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21343 $as_echo "$ac_cv_search_opendir" >&6; }
21344 ac_res=$ac_cv_search_opendir
21345 if test "$ac_res" != no; then :
21346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21347
21348 fi
21349
21350 fi
21351
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21353 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21354 if ${ac_cv_header_stat_broken+:} false; then :
21355 $as_echo_n "(cached) " >&6
21356 else
21357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21358 /* end confdefs.h. */
21359 #include <sys/types.h>
21360 #include <sys/stat.h>
21361
21362 #if defined S_ISBLK && defined S_IFDIR
21363 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21364 #endif
21365
21366 #if defined S_ISBLK && defined S_IFCHR
21367 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21368 #endif
21369
21370 #if defined S_ISLNK && defined S_IFREG
21371 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21372 #endif
21373
21374 #if defined S_ISSOCK && defined S_IFREG
21375 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21376 #endif
21377
21378 _ACEOF
21379 if ac_fn_c_try_compile "$LINENO"; then :
21380 ac_cv_header_stat_broken=no
21381 else
21382 ac_cv_header_stat_broken=yes
21383 fi
21384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21385 fi
21386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21387 $as_echo "$ac_cv_header_stat_broken" >&6; }
21388 if test $ac_cv_header_stat_broken = yes; then
21389
21390 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21391
21392 fi
21393
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
21395 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
21396 if ${ac_cv_header_sys_wait_h+:} false; then :
21397 $as_echo_n "(cached) " >&6
21398 else
21399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21400 /* end confdefs.h. */
21401 #include <sys/types.h>
21402 #include <sys/wait.h>
21403 #ifndef WEXITSTATUS
21404 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21405 #endif
21406 #ifndef WIFEXITED
21407 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21408 #endif
21409
21410 int
21411 main ()
21412 {
21413 int s;
21414 wait (&s);
21415 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21416 ;
21417 return 0;
21418 }
21419 _ACEOF
21420 if ac_fn_c_try_compile "$LINENO"; then :
21421 ac_cv_header_sys_wait_h=yes
21422 else
21423 ac_cv_header_sys_wait_h=no
21424 fi
21425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21426 fi
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
21428 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
21429 if test $ac_cv_header_sys_wait_h = yes; then
21430
21431 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21432
21433 fi
21434
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21436 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21437 if ${ac_cv_header_time+:} false; then :
21438 $as_echo_n "(cached) " >&6
21439 else
21440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21441 /* end confdefs.h. */
21442 #include <sys/types.h>
21443 #include <sys/time.h>
21444 #include <time.h>
21445
21446 int
21447 main ()
21448 {
21449 if ((struct tm *) 0)
21450 return 0;
21451 ;
21452 return 0;
21453 }
21454 _ACEOF
21455 if ac_fn_c_try_compile "$LINENO"; then :
21456 ac_cv_header_time=yes
21457 else
21458 ac_cv_header_time=no
21459 fi
21460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21461 fi
21462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21463 $as_echo "$ac_cv_header_time" >&6; }
21464 if test $ac_cv_header_time = yes; then
21465
21466 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21467
21468 fi
21469
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
21471 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
21472 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
21473 $as_echo_n "(cached) " >&6
21474 else
21475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21476 /* end confdefs.h. */
21477 #include <sys/types.h>
21478 #include <termios.h>
21479 #ifdef TIOCGWINSZ
21480 yes
21481 #endif
21482
21483 _ACEOF
21484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21485 $EGREP "yes" >/dev/null 2>&1; then :
21486 ac_cv_sys_tiocgwinsz_in_termios_h=yes
21487 else
21488 ac_cv_sys_tiocgwinsz_in_termios_h=no
21489 fi
21490 rm -f conftest*
21491
21492 fi
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
21494 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
21495
21496 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
21498 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
21499 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
21500 $as_echo_n "(cached) " >&6
21501 else
21502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21503 /* end confdefs.h. */
21504 #include <sys/types.h>
21505 #include <sys/ioctl.h>
21506 #ifdef TIOCGWINSZ
21507 yes
21508 #endif
21509
21510 _ACEOF
21511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21512 $EGREP "yes" >/dev/null 2>&1; then :
21513 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
21514 else
21515 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
21516 fi
21517 rm -f conftest*
21518
21519 fi
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
21521 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
21522
21523 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
21524
21525 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
21526
21527 fi
21528 fi
21529
21530
21531 for ac_header in unistd.h
21532 do :
21533 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
21534 if test "x$ac_cv_header_unistd_h" = xyes; then :
21535 cat >>confdefs.h <<_ACEOF
21536 #define HAVE_UNISTD_H 1
21537 _ACEOF
21538
21539 fi
21540
21541 done
21542
21543
21544 for ac_header in errno.h \
21545 ctype.h \
21546 fcntl.h \
21547 signal.h \
21548 setjmp.h \
21549 memory.h \
21550 sys/ioctl.h \
21551 sys/param.h \
21552 sys/socket.h \
21553 sys/uio.h \
21554 sys/un.h \
21555 limits.h \
21556 wchar.h \
21557 sys/poll.h \
21558 stropts.h \
21559 netdb.h \
21560 syslog.h \
21561 sys/syslog.h \
21562 locale.h \
21563 langinfo.h \
21564 utime.h \
21565 sys/utime.h \
21566 pthread.h \
21567 pwd.h \
21568 assert.h
21569 do :
21570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21571 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21572 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21573 cat >>confdefs.h <<_ACEOF
21574 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21575 _ACEOF
21576
21577 fi
21578
21579 done
21580
21581
21582 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
21583 if test "x$ac_cv_header_termios_h" = xyes; then :
21584
21585 $as_echo "#define HAS_TERMIOS 1" >>confdefs.h
21586
21587 else
21588
21589 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
21590 if test "x$ac_cv_header_termio_h" = xyes; then :
21591
21592 $as_echo "#define HAS_TERMIO 1" >>confdefs.h
21593
21594 else
21595
21596 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
21597 if test "x$ac_cv_header_sgtty_h" = xyes; then :
21598
21599 $as_echo "#define HAS_SGTTY 1" >>confdefs.h
21600
21601 else
21602
21603 as_fn_error $? "Unable to figure out terminal control method" "$LINENO" 5
21604
21605 fi
21606
21607
21608
21609 fi
21610
21611
21612
21613 fi
21614
21615
21616
21617
21618
21619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21620 $as_echo_n "checking return type of signal handlers... " >&6; }
21621 if ${ac_cv_type_signal+:} false; then :
21622 $as_echo_n "(cached) " >&6
21623 else
21624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21625 /* end confdefs.h. */
21626 #include <sys/types.h>
21627 #include <signal.h>
21628
21629 int
21630 main ()
21631 {
21632 return *(signal (0, 0)) (0) == 1;
21633 ;
21634 return 0;
21635 }
21636 _ACEOF
21637 if ac_fn_c_try_compile "$LINENO"; then :
21638 ac_cv_type_signal=int
21639 else
21640 ac_cv_type_signal=void
21641 fi
21642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21643 fi
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21645 $as_echo "$ac_cv_type_signal" >&6; }
21646
21647 cat >>confdefs.h <<_ACEOF
21648 #define RETSIGTYPE $ac_cv_type_signal
21649 _ACEOF
21650
21651
21652 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21653 if test "x$ac_cv_type_size_t" = xyes; then :
21654
21655 else
21656
21657 cat >>confdefs.h <<_ACEOF
21658 #define size_t unsigned int
21659 _ACEOF
21660
21661 fi
21662
21663 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21664 if test "x$ac_cv_type_mode_t" = xyes; then :
21665
21666 else
21667
21668 cat >>confdefs.h <<_ACEOF
21669 #define mode_t int
21670 _ACEOF
21671
21672 fi
21673
21674 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21675 if test "x$ac_cv_type_pid_t" = xyes; then :
21676
21677 else
21678
21679 cat >>confdefs.h <<_ACEOF
21680 #define pid_t int
21681 _ACEOF
21682
21683 fi
21684
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21686 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21687 if ${ac_cv_type_uid_t+:} false; then :
21688 $as_echo_n "(cached) " >&6
21689 else
21690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21691 /* end confdefs.h. */
21692 #include <sys/types.h>
21693
21694 _ACEOF
21695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21696 $EGREP "uid_t" >/dev/null 2>&1; then :
21697 ac_cv_type_uid_t=yes
21698 else
21699 ac_cv_type_uid_t=no
21700 fi
21701 rm -f conftest*
21702
21703 fi
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21705 $as_echo "$ac_cv_type_uid_t" >&6; }
21706 if test $ac_cv_type_uid_t = no; then
21707
21708 $as_echo "#define uid_t int" >>confdefs.h
21709
21710
21711 $as_echo "#define gid_t int" >>confdefs.h
21712
21713 fi
21714
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21716 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21717 if ${ac_cv_struct_tm+:} false; then :
21718 $as_echo_n "(cached) " >&6
21719 else
21720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21721 /* end confdefs.h. */
21722 #include <sys/types.h>
21723 #include <time.h>
21724
21725 int
21726 main ()
21727 {
21728 struct tm tm;
21729 int *p = &tm.tm_sec;
21730 return !p;
21731 ;
21732 return 0;
21733 }
21734 _ACEOF
21735 if ac_fn_c_try_compile "$LINENO"; then :
21736 ac_cv_struct_tm=time.h
21737 else
21738 ac_cv_struct_tm=sys/time.h
21739 fi
21740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21741 fi
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21743 $as_echo "$ac_cv_struct_tm" >&6; }
21744 if test $ac_cv_struct_tm = sys/time.h; then
21745
21746 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21747
21748 fi
21749
21750
21751 ac_fn_c_check_type "$LINENO" "union wait" "ac_cv_type_union_wait" "$ac_includes_default"
21752 if test "x$ac_cv_type_union_wait" = xyes; then :
21753
21754 cat >>confdefs.h <<_ACEOF
21755 #define HAVE_UNION_WAIT 1
21756 _ACEOF
21757
21758
21759 fi
21760
21761
21762 for ac_header in stdint.h
21763 do :
21764 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21765 if test "x$ac_cv_header_stdint_h" = xyes; then :
21766 cat >>confdefs.h <<_ACEOF
21767 #define HAVE_STDINT_H 1
21768 _ACEOF
21769 uint16=uint16_t
21770 else
21771
21772 for ac_header in inttypes.h
21773 do :
21774 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
21775 if test "x$ac_cv_header_inttypes_h" = xyes; then :
21776 cat >>confdefs.h <<_ACEOF
21777 #define HAVE_INTTYPES_H 1
21778 _ACEOF
21779 uint16=uint16_t
21780 else
21781
21782 for ac_header in sys/types.h
21783 do :
21784 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
21785 if test "x$ac_cv_header_sys_types_h" = xyes; then :
21786 cat >>confdefs.h <<_ACEOF
21787 #define HAVE_SYS_TYPES_H 1
21788 _ACEOF
21789 uint16=u_int16_t
21790 else
21791
21792 # The cast to long int works around a bug in the HP C Compiler
21793 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21794 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21795 # This bug is HP SR number 8606223364.
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
21797 $as_echo_n "checking size of unsigned short... " >&6; }
21798 if ${ac_cv_sizeof_unsigned_short+:} false; then :
21799 $as_echo_n "(cached) " >&6
21800 else
21801 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
21802
21803 else
21804 if test "$ac_cv_type_unsigned_short" = yes; then
21805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21807 as_fn_error 77 "cannot compute sizeof (unsigned short)
21808 See \`config.log' for more details" "$LINENO" 5; }
21809 else
21810 ac_cv_sizeof_unsigned_short=0
21811 fi
21812 fi
21813
21814 fi
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
21816 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21817
21818
21819
21820 cat >>confdefs.h <<_ACEOF
21821 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21822 _ACEOF
21823
21824
21825 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
21826 uint16="unsigned short"
21827 else
21828 # The cast to long int works around a bug in the HP C Compiler
21829 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21830 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21831 # This bug is HP SR number 8606223364.
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21833 $as_echo_n "checking size of unsigned int... " >&6; }
21834 if ${ac_cv_sizeof_unsigned_int+:} false; then :
21835 $as_echo_n "(cached) " >&6
21836 else
21837 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
21838
21839 else
21840 if test "$ac_cv_type_unsigned_int" = yes; then
21841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21843 as_fn_error 77 "cannot compute sizeof (unsigned int)
21844 See \`config.log' for more details" "$LINENO" 5; }
21845 else
21846 ac_cv_sizeof_unsigned_int=0
21847 fi
21848 fi
21849
21850 fi
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21852 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21853
21854
21855
21856 cat >>confdefs.h <<_ACEOF
21857 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21858 _ACEOF
21859
21860
21861 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
21862 uint16="unsigned int"
21863 else
21864 as_fn_error $? "Unable to determine 16 bit integer type" "$LINENO" 5
21865 fi
21866 fi
21867
21868 fi
21869
21870 done
21871
21872
21873 fi
21874
21875 done
21876
21877
21878 fi
21879
21880 done
21881
21882
21883 cat >>confdefs.h <<_ACEOF
21884 #define UINT16 $uint16
21885 _ACEOF
21886
21887
21888 for ac_header in stdint.h
21889 do :
21890 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21891 if test "x$ac_cv_header_stdint_h" = xyes; then :
21892 cat >>confdefs.h <<_ACEOF
21893 #define HAVE_STDINT_H 1
21894 _ACEOF
21895 uint32=uint32_t
21896 else
21897
21898 for ac_header in inttypes.h
21899 do :
21900 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
21901 if test "x$ac_cv_header_inttypes_h" = xyes; then :
21902 cat >>confdefs.h <<_ACEOF
21903 #define HAVE_INTTYPES_H 1
21904 _ACEOF
21905 uint32=uint32_t
21906 else
21907
21908 for ac_header in sys/types.h
21909 do :
21910 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
21911 if test "x$ac_cv_header_sys_types_h" = xyes; then :
21912 cat >>confdefs.h <<_ACEOF
21913 #define HAVE_SYS_TYPES_H 1
21914 _ACEOF
21915 uint32=u_int32_t
21916 else
21917
21918 # The cast to long int works around a bug in the HP C Compiler
21919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21921 # This bug is HP SR number 8606223364.
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21923 $as_echo_n "checking size of unsigned int... " >&6; }
21924 if ${ac_cv_sizeof_unsigned_int+:} false; then :
21925 $as_echo_n "(cached) " >&6
21926 else
21927 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
21928
21929 else
21930 if test "$ac_cv_type_unsigned_int" = yes; then
21931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21933 as_fn_error 77 "cannot compute sizeof (unsigned int)
21934 See \`config.log' for more details" "$LINENO" 5; }
21935 else
21936 ac_cv_sizeof_unsigned_int=0
21937 fi
21938 fi
21939
21940 fi
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21942 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21943
21944
21945
21946 cat >>confdefs.h <<_ACEOF
21947 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21948 _ACEOF
21949
21950
21951 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
21952 uint32="unsigned int"
21953 else
21954 # The cast to long int works around a bug in the HP C Compiler
21955 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21956 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21957 # This bug is HP SR number 8606223364.
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
21959 $as_echo_n "checking size of unsigned long... " >&6; }
21960 if ${ac_cv_sizeof_unsigned_long+:} false; then :
21961 $as_echo_n "(cached) " >&6
21962 else
21963 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
21964
21965 else
21966 if test "$ac_cv_type_unsigned_long" = yes; then
21967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21969 as_fn_error 77 "cannot compute sizeof (unsigned long)
21970 See \`config.log' for more details" "$LINENO" 5; }
21971 else
21972 ac_cv_sizeof_unsigned_long=0
21973 fi
21974 fi
21975
21976 fi
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
21978 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21979
21980
21981
21982 cat >>confdefs.h <<_ACEOF
21983 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21984 _ACEOF
21985
21986
21987 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
21988 uint32="unsigned long"
21989 else
21990 as_fn_error $? "Unable to determine 32 bit integer type" "$LINENO" 5
21991 fi
21992 fi
21993
21994 fi
21995
21996 done
21997
21998
21999 fi
22000
22001 done
22002
22003
22004 fi
22005
22006 done
22007
22008
22009 cat >>confdefs.h <<_ACEOF
22010 #define UINT32 $uint32
22011 _ACEOF
22012
22013
22014 if test -z "$SUINT32" ; then
22015 SUINT32="$uint32"
22016 fi
22017
22018
22019 cat >>confdefs.h <<_ACEOF
22020 #define SUINT32 $SUINT32
22021 _ACEOF
22022
22023
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort compare function and base" >&5
22025 $as_echo_n "checking argument pointer type of qsort compare function and base... " >&6; }
22026 if ${ac_cv_func_qsort_argtype+:} false; then :
22027 $as_echo_n "(cached) " >&6
22028 else
22029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22030 /* end confdefs.h. */
22031
22032 #if HAVE_STDLIB_H
22033 #include "stdlib.h"
22034 #endif
22035
22036 extern void *base;
22037 extern sortf(const void *, const void *);
22038 int sortf(a, b)
22039 const void *a;
22040 const void *b; { return 0; }
22041
22042 int
22043 main ()
22044 {
22045
22046 qsort(base, 2, sizeof(char *), sortf);
22047
22048 ;
22049 return 0;
22050 }
22051 _ACEOF
22052 if ac_fn_c_try_compile "$LINENO"; then :
22053 ac_cv_func_qsort_argtype=void
22054 else
22055 ac_cv_func_qsort_argtype=char
22056 fi
22057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22058
22059 fi
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
22061 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
22062
22063 cat >>confdefs.h <<_ACEOF
22064 #define qsort_t $ac_cv_func_qsort_argtype
22065 _ACEOF
22066
22067
22068
22069 for ac_header in sys/select.h sys/socket.h
22070 do :
22071 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22072 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22073 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22074 cat >>confdefs.h <<_ACEOF
22075 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22076 _ACEOF
22077
22078 fi
22079
22080 done
22081
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
22083 $as_echo_n "checking types of arguments for select... " >&6; }
22084 if ${ac_cv_func_select_args+:} false; then :
22085 $as_echo_n "(cached) " >&6
22086 else
22087 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22088 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22089 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
22090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22091 /* end confdefs.h. */
22092 $ac_includes_default
22093 #ifdef HAVE_SYS_SELECT_H
22094 # include <sys/select.h>
22095 #endif
22096 #ifdef HAVE_SYS_SOCKET_H
22097 # include <sys/socket.h>
22098 #endif
22099
22100 int
22101 main ()
22102 {
22103 extern int select ($ac_arg1,
22104 $ac_arg234, $ac_arg234, $ac_arg234,
22105 $ac_arg5);
22106 ;
22107 return 0;
22108 }
22109 _ACEOF
22110 if ac_fn_c_try_compile "$LINENO"; then :
22111 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
22112 fi
22113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22114 done
22115 done
22116 done
22117 # Provide a safe default value.
22118 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
22119
22120 fi
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
22122 $as_echo "$ac_cv_func_select_args" >&6; }
22123 ac_save_IFS=$IFS; IFS=','
22124 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22125 IFS=$ac_save_IFS
22126 shift
22127
22128 cat >>confdefs.h <<_ACEOF
22129 #define SELECT_TYPE_ARG1 $1
22130 _ACEOF
22131
22132
22133 cat >>confdefs.h <<_ACEOF
22134 #define SELECT_TYPE_ARG234 ($2)
22135 _ACEOF
22136
22137
22138 cat >>confdefs.h <<_ACEOF
22139 #define SELECT_TYPE_ARG5 ($3)
22140 _ACEOF
22141
22142 rm -f conftest*
22143
22144
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
22146 $as_echo_n "checking for working strcoll... " >&6; }
22147 if ${ac_cv_func_strcoll_works+:} false; then :
22148 $as_echo_n "(cached) " >&6
22149 else
22150 if test "$cross_compiling" = yes; then :
22151 ac_cv_func_strcoll_works=no
22152 else
22153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22154 /* end confdefs.h. */
22155 $ac_includes_default
22156 int
22157 main ()
22158 {
22159 return (strcoll ("abc", "def") >= 0 ||
22160 strcoll ("ABC", "DEF") >= 0 ||
22161 strcoll ("123", "456") >= 0)
22162 ;
22163 return 0;
22164 }
22165 _ACEOF
22166 if ac_fn_c_try_run "$LINENO"; then :
22167 ac_cv_func_strcoll_works=yes
22168 else
22169 ac_cv_func_strcoll_works=no
22170 fi
22171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22172 conftest.$ac_objext conftest.beam conftest.$ac_ext
22173 fi
22174
22175 fi
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
22177 $as_echo "$ac_cv_func_strcoll_works" >&6; }
22178 if test $ac_cv_func_strcoll_works = yes; then
22179
22180 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
22181
22182 fi
22183
22184
22185
22186 for ac_header in vfork.h
22187 do :
22188 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22189 if test "x$ac_cv_header_vfork_h" = xyes; then :
22190 cat >>confdefs.h <<_ACEOF
22191 #define HAVE_VFORK_H 1
22192 _ACEOF
22193
22194 fi
22195
22196 done
22197
22198 for ac_func in fork vfork
22199 do :
22200 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22201 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22202 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22203 cat >>confdefs.h <<_ACEOF
22204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22205 _ACEOF
22206
22207 fi
22208 done
22209
22210 if test "x$ac_cv_func_fork" = xyes; then
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22212 $as_echo_n "checking for working fork... " >&6; }
22213 if ${ac_cv_func_fork_works+:} false; then :
22214 $as_echo_n "(cached) " >&6
22215 else
22216 if test "$cross_compiling" = yes; then :
22217 ac_cv_func_fork_works=cross
22218 else
22219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22220 /* end confdefs.h. */
22221 $ac_includes_default
22222 int
22223 main ()
22224 {
22225
22226 /* By Ruediger Kuhlmann. */
22227 return fork () < 0;
22228
22229 ;
22230 return 0;
22231 }
22232 _ACEOF
22233 if ac_fn_c_try_run "$LINENO"; then :
22234 ac_cv_func_fork_works=yes
22235 else
22236 ac_cv_func_fork_works=no
22237 fi
22238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22239 conftest.$ac_objext conftest.beam conftest.$ac_ext
22240 fi
22241
22242 fi
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22244 $as_echo "$ac_cv_func_fork_works" >&6; }
22245
22246 else
22247 ac_cv_func_fork_works=$ac_cv_func_fork
22248 fi
22249 if test "x$ac_cv_func_fork_works" = xcross; then
22250 case $host in
22251 *-*-amigaos* | *-*-msdosdjgpp*)
22252 # Override, as these systems have only a dummy fork() stub
22253 ac_cv_func_fork_works=no
22254 ;;
22255 *)
22256 ac_cv_func_fork_works=yes
22257 ;;
22258 esac
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22260 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22261 fi
22262 ac_cv_func_vfork_works=$ac_cv_func_vfork
22263 if test "x$ac_cv_func_vfork" = xyes; then
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22265 $as_echo_n "checking for working vfork... " >&6; }
22266 if ${ac_cv_func_vfork_works+:} false; then :
22267 $as_echo_n "(cached) " >&6
22268 else
22269 if test "$cross_compiling" = yes; then :
22270 ac_cv_func_vfork_works=cross
22271 else
22272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22273 /* end confdefs.h. */
22274 /* Thanks to Paul Eggert for this test. */
22275 $ac_includes_default
22276 #include <sys/wait.h>
22277 #ifdef HAVE_VFORK_H
22278 # include <vfork.h>
22279 #endif
22280 /* On some sparc systems, changes by the child to local and incoming
22281 argument registers are propagated back to the parent. The compiler
22282 is told about this with #include <vfork.h>, but some compilers
22283 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22284 static variable whose address is put into a register that is
22285 clobbered by the vfork. */
22286 static void
22287 #ifdef __cplusplus
22288 sparc_address_test (int arg)
22289 # else
22290 sparc_address_test (arg) int arg;
22291 #endif
22292 {
22293 static pid_t child;
22294 if (!child) {
22295 child = vfork ();
22296 if (child < 0) {
22297 perror ("vfork");
22298 _exit(2);
22299 }
22300 if (!child) {
22301 arg = getpid();
22302 write(-1, "", 0);
22303 _exit (arg);
22304 }
22305 }
22306 }
22307
22308 int
22309 main ()
22310 {
22311 pid_t parent = getpid ();
22312 pid_t child;
22313
22314 sparc_address_test (0);
22315
22316 child = vfork ();
22317
22318 if (child == 0) {
22319 /* Here is another test for sparc vfork register problems. This
22320 test uses lots of local variables, at least as many local
22321 variables as main has allocated so far including compiler
22322 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22323 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22324 reuse the register of parent for one of the local variables,
22325 since it will think that parent can't possibly be used any more
22326 in this routine. Assigning to the local variable will thus
22327 munge parent in the parent process. */
22328 pid_t
22329 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22330 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22331 /* Convince the compiler that p..p7 are live; otherwise, it might
22332 use the same hardware register for all 8 local variables. */
22333 if (p != p1 || p != p2 || p != p3 || p != p4
22334 || p != p5 || p != p6 || p != p7)
22335 _exit(1);
22336
22337 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22338 from child file descriptors. If the child closes a descriptor
22339 before it execs or exits, this munges the parent's descriptor
22340 as well. Test for this by closing stdout in the child. */
22341 _exit(close(fileno(stdout)) != 0);
22342 } else {
22343 int status;
22344 struct stat st;
22345
22346 while (wait(&status) != child)
22347 ;
22348 return (
22349 /* Was there some problem with vforking? */
22350 child < 0
22351
22352 /* Did the child fail? (This shouldn't happen.) */
22353 || status
22354
22355 /* Did the vfork/compiler bug occur? */
22356 || parent != getpid()
22357
22358 /* Did the file descriptor bug occur? */
22359 || fstat(fileno(stdout), &st) != 0
22360 );
22361 }
22362 }
22363 _ACEOF
22364 if ac_fn_c_try_run "$LINENO"; then :
22365 ac_cv_func_vfork_works=yes
22366 else
22367 ac_cv_func_vfork_works=no
22368 fi
22369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22370 conftest.$ac_objext conftest.beam conftest.$ac_ext
22371 fi
22372
22373 fi
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22375 $as_echo "$ac_cv_func_vfork_works" >&6; }
22376
22377 fi;
22378 if test "x$ac_cv_func_fork_works" = xcross; then
22379 ac_cv_func_vfork_works=$ac_cv_func_vfork
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22381 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22382 fi
22383
22384 if test "x$ac_cv_func_vfork_works" = xyes; then
22385
22386 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22387
22388 else
22389
22390 $as_echo "#define vfork fork" >>confdefs.h
22391
22392 fi
22393 if test "x$ac_cv_func_fork_works" = xyes; then
22394
22395 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22396
22397 fi
22398
22399 for ac_func in strchr \
22400 memcpy \
22401 strtol \
22402 strtoul \
22403 select \
22404 poll \
22405 qsort \
22406 getuid \
22407 getpwuid \
22408 getpwnam \
22409 gettimeofday \
22410 tmpfile \
22411 uname \
22412 rename \
22413 read \
22414 signal \
22415 setjmp \
22416 chown \
22417 wait4 \
22418 waitpid \
22419 wait \
22420 srandom \
22421 popen \
22422 pclose \
22423 fsync \
22424 truncate \
22425 listen \
22426 wcwidth \
22427 mbstowcs \
22428 wcrtomb \
22429 wctomb \
22430 putenv \
22431 setenv
22432 do :
22433 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22434 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22435 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22436 cat >>confdefs.h <<_ACEOF
22437 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22438 _ACEOF
22439
22440 fi
22441 done
22442
22443
22444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
22445 $as_echo_n "checking for library containing gethostname... " >&6; }
22446 if ${ac_cv_search_gethostname+:} false; then :
22447 $as_echo_n "(cached) " >&6
22448 else
22449 ac_func_search_save_LIBS=$LIBS
22450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22451 /* end confdefs.h. */
22452
22453 /* Override any GCC internal prototype to avoid an error.
22454 Use char because int might match the return type of a GCC
22455 builtin and then its argument prototype would still apply. */
22456 #ifdef __cplusplus
22457 extern "C"
22458 #endif
22459 char gethostname ();
22460 int
22461 main ()
22462 {
22463 return gethostname ();
22464 ;
22465 return 0;
22466 }
22467 _ACEOF
22468 for ac_lib in '' nsl; do
22469 if test -z "$ac_lib"; then
22470 ac_res="none required"
22471 else
22472 ac_res=-l$ac_lib
22473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22474 fi
22475 if ac_fn_c_try_link "$LINENO"; then :
22476 ac_cv_search_gethostname=$ac_res
22477 fi
22478 rm -f core conftest.err conftest.$ac_objext \
22479 conftest$ac_exeext
22480 if ${ac_cv_search_gethostname+:} false; then :
22481 break
22482 fi
22483 done
22484 if ${ac_cv_search_gethostname+:} false; then :
22485
22486 else
22487 ac_cv_search_gethostname=no
22488 fi
22489 rm conftest.$ac_ext
22490 LIBS=$ac_func_search_save_LIBS
22491 fi
22492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
22493 $as_echo "$ac_cv_search_gethostname" >&6; }
22494 ac_res=$ac_cv_search_gethostname
22495 if test "$ac_res" != no; then :
22496 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22497
22498 fi
22499
22500
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
22502 $as_echo_n "checking for library containing socket... " >&6; }
22503 if ${ac_cv_search_socket+:} false; then :
22504 $as_echo_n "(cached) " >&6
22505 else
22506 ac_func_search_save_LIBS=$LIBS
22507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22508 /* end confdefs.h. */
22509
22510 /* Override any GCC internal prototype to avoid an error.
22511 Use char because int might match the return type of a GCC
22512 builtin and then its argument prototype would still apply. */
22513 #ifdef __cplusplus
22514 extern "C"
22515 #endif
22516 char socket ();
22517 int
22518 main ()
22519 {
22520 return socket ();
22521 ;
22522 return 0;
22523 }
22524 _ACEOF
22525 for ac_lib in '' socket; do
22526 if test -z "$ac_lib"; then
22527 ac_res="none required"
22528 else
22529 ac_res=-l$ac_lib
22530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22531 fi
22532 if ac_fn_c_try_link "$LINENO"; then :
22533 ac_cv_search_socket=$ac_res
22534 fi
22535 rm -f core conftest.err conftest.$ac_objext \
22536 conftest$ac_exeext
22537 if ${ac_cv_search_socket+:} false; then :
22538 break
22539 fi
22540 done
22541 if ${ac_cv_search_socket+:} false; then :
22542
22543 else
22544 ac_cv_search_socket=no
22545 fi
22546 rm conftest.$ac_ext
22547 LIBS=$ac_func_search_save_LIBS
22548 fi
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
22550 $as_echo "$ac_cv_search_socket" >&6; }
22551 ac_res=$ac_cv_search_socket
22552 if test "$ac_res" != no; then :
22553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22554
22555 else
22556
22557 WEB_BUILD=
22558
22559 fi
22560
22561
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
22563 $as_echo_n "checking for library containing bind... " >&6; }
22564 if ${ac_cv_search_bind+:} false; then :
22565 $as_echo_n "(cached) " >&6
22566 else
22567 ac_func_search_save_LIBS=$LIBS
22568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22569 /* end confdefs.h. */
22570
22571 /* Override any GCC internal prototype to avoid an error.
22572 Use char because int might match the return type of a GCC
22573 builtin and then its argument prototype would still apply. */
22574 #ifdef __cplusplus
22575 extern "C"
22576 #endif
22577 char bind ();
22578 int
22579 main ()
22580 {
22581 return bind ();
22582 ;
22583 return 0;
22584 }
22585 _ACEOF
22586 for ac_lib in '' bind; do
22587 if test -z "$ac_lib"; then
22588 ac_res="none required"
22589 else
22590 ac_res=-l$ac_lib
22591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22592 fi
22593 if ac_fn_c_try_link "$LINENO"; then :
22594 ac_cv_search_bind=$ac_res
22595 fi
22596 rm -f core conftest.err conftest.$ac_objext \
22597 conftest$ac_exeext
22598 if ${ac_cv_search_bind+:} false; then :
22599 break
22600 fi
22601 done
22602 if ${ac_cv_search_bind+:} false; then :
22603
22604 else
22605 ac_cv_search_bind=no
22606 fi
22607 rm conftest.$ac_ext
22608 LIBS=$ac_func_search_save_LIBS
22609 fi
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
22611 $as_echo "$ac_cv_search_bind" >&6; }
22612 ac_res=$ac_cv_search_bind
22613 if test "$ac_res" != no; then :
22614 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22615
22616 else
22617
22618 WEB_BUILD=
22619
22620 fi
22621
22622
22623 for ac_func in sigaction sigemptyset sigaddset sigprocmask
22624 do :
22625 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22626 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22627 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22628 cat >>confdefs.h <<_ACEOF
22629 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22630 _ACEOF
22631
22632
22633 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
22634
22635
22636 else
22637
22638 for ac_func in sigset sigrelse
22639 do :
22640 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22641 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22642 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22643 cat >>confdefs.h <<_ACEOF
22644 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22645 _ACEOF
22646
22647
22648 $as_echo "#define SYSV_SIGNALS /**/" >>confdefs.h
22649
22650
22651 fi
22652 done
22653
22654
22655 fi
22656 done
22657
22658
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5
22660 $as_echo_n "checking for library containing syslog... " >&6; }
22661 if ${ac_cv_search_syslog+:} false; then :
22662 $as_echo_n "(cached) " >&6
22663 else
22664 ac_func_search_save_LIBS=$LIBS
22665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22666 /* end confdefs.h. */
22667
22668 /* Override any GCC internal prototype to avoid an error.
22669 Use char because int might match the return type of a GCC
22670 builtin and then its argument prototype would still apply. */
22671 #ifdef __cplusplus
22672 extern "C"
22673 #endif
22674 char syslog ();
22675 int
22676 main ()
22677 {
22678 return syslog ();
22679 ;
22680 return 0;
22681 }
22682 _ACEOF
22683 for ac_lib in '' bsd socket inet; do
22684 if test -z "$ac_lib"; then
22685 ac_res="none required"
22686 else
22687 ac_res=-l$ac_lib
22688 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22689 fi
22690 if ac_fn_c_try_link "$LINENO"; then :
22691 ac_cv_search_syslog=$ac_res
22692 fi
22693 rm -f core conftest.err conftest.$ac_objext \
22694 conftest$ac_exeext
22695 if ${ac_cv_search_syslog+:} false; then :
22696 break
22697 fi
22698 done
22699 if ${ac_cv_search_syslog+:} false; then :
22700
22701 else
22702 ac_cv_search_syslog=no
22703 fi
22704 rm conftest.$ac_ext
22705 LIBS=$ac_func_search_save_LIBS
22706 fi
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5
22708 $as_echo "$ac_cv_search_syslog" >&6; }
22709 ac_res=$ac_cv_search_syslog
22710 if test "$ac_res" != no; then :
22711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22712
22713
22714 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
22715
22716
22717 fi
22718
22719
22720
22721 if test -n "$alpine_with_local_maildir" ; then
22722 alpine_local_maildir=$alpine_with_local_maildir
22723 elif test -d /var/spool/mail ; then
22724 alpine_local_maildir="/var/spool/mail"
22725 elif test -d /var/mail ; then
22726 alpine_local_maildir="/var/mail"
22727 else
22728 alpine_local_maildir="/usr/spool/mail"
22729 fi
22730
22731 if test -n "$alpine_with_c_client_target" ; then
22732 alpine_c_client_target=$alpine_with_c_client_target
22733 fi
22734
22735
22736 cat >>confdefs.h <<_ACEOF
22737 #define SYSTYPE "$systype"
22738 _ACEOF
22739
22740
22741 cat >>confdefs.h <<_ACEOF
22742 #define C_FILESEP '$alpine_path_delim'
22743 _ACEOF
22744
22745
22746 cat >>confdefs.h <<_ACEOF
22747 #define S_FILESEP "$alpine_path_delim"
22748 _ACEOF
22749
22750
22751 cat >>confdefs.h <<_ACEOF
22752 #define MAILDIR "$alpine_local_maildir"
22753 _ACEOF
22754
22755
22756 cat >>confdefs.h <<_ACEOF
22757 #define MODE_READONLY $alpine_mode_readonly
22758 _ACEOF
22759
22760
22761 cat >>confdefs.h <<_ACEOF
22762 #define HTML_EXT "html"
22763 _ACEOF
22764
22765
22766 C_CLIENT_TARGET=$alpine_c_client_target
22767
22768 C_CLIENT_WITH_IPV6=$c_client_ip6
22769
22770 if test "x$alpine_SSLTYPE" = "xnone" ; then
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * NOT Including SSL Support" >&5
22772 $as_echo "$as_me: * * * NOT Including SSL Support" >&6;}
22773 c_client_specials="${c_client_specials}SSLTYPE=none "
22774 else
22775
22776 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
22777 certdir="$alpine_SSLCERTS"
22778 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
22779 certdir="${alpine_SSLDIR}/certs"
22780 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
22781 certdir="${alpine_SSLDIR}/ssl/certs"
22782 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
22783 certdir="$alpine_SSLCERTS_ORIG"
22784 elif test -n "$alpine_SSLCERTS" ; then
22785 certdir="$alpine_SSLCERTS"
22786 else
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: SSL Problem: certificate directory not found" >&5
22788 $as_echo "$as_me: SSL Problem: certificate directory not found" >&6;}
22789 fi
22790
22791 if test "x$with_smime" != "xno" ; then
22792 if test -n "$certdir" ; then
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * S/MIME support enabled" >&5
22794 $as_echo "$as_me: * * * S/MIME support enabled" >&6;}
22795
22796 $as_echo "#define SMIME /**/" >>confdefs.h
22797
22798
22799 cat >>confdefs.h <<_ACEOF
22800 #define SMIME_SSLCERTS "$certdir"
22801 _ACEOF
22802
22803 fi
22804 fi
22805
22806
22807 SSL_CERT_LINK="no"
22808 if test -z "`ls ${certdir} | $EGREP '^[0-9A-Fa-f]{8}\.[0-9]'`" ; then
22809 SSL_BUNDLE_EXISTS="no"
22810 SSL_PEM="factory.pem ca-bundle.pem cert.pem ca-bundle.crt ca-root-nss.crt"
22811 for SSL_BUNDLE in $SSL_PEM
22812 do
22813 if test -f ${certdir}/${SSL_BUNDLE} ; then
22814 SSL_BUNDLE_EXISTS="yes"
22815 fi
22816 done
22817 else
22818 SSL_CERT_LINK="yes"
22819 fi
22820
22821 if test "x$SSL_BUNDLE_EXISTS" = "xno" -a "x$SSL_CERT_LINK" = "xno" ; then
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * No certificates found in \"${certdir}\"." >&5
22823 $as_echo "$as_me: * * * No certificates found in \"${certdir}\"." >&6;}
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * This might indicate that CA certs did not get properly" >&5
22825 $as_echo "$as_me: * * * This might indicate that CA certs did not get properly" >&6;}
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * installed. If you get certificate validation failures" >&5
22827 $as_echo "$as_me: * * * installed. If you get certificate validation failures" >&6;}
22828 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * in Alpine, this might be the reason for them." >&5
22829 $as_echo "$as_me: * * * in Alpine, this might be the reason for them." >&6;}
22830 fi
22831
22832 if test -n "$alpine_SSLINCLUDE" ; then
22833 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
22834 fi
22835
22836 if test -n "$alpine_SSLLIB" ; then
22837 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
22838 fi
22839
22840 if test -n "$alpine_SSLDIR" ; then
22841 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
22842 fi
22843
22844 if test -n "$certdir" ; then
22845 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
22846 fi
22847
22848 if test -n "$alpine_SSLKEYS" ; then
22849 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
22850 fi
22851 fi
22852
22853 extra_auth_gss=
22854 if test "x$alpine_GSSTYPE" != "xnone" ; then
22855 extra_auth_gss=gss
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including Kerberos5 functionality" >&5
22857 $as_echo "$as_me: * * * Including Kerberos5 functionality" >&6;}
22858 fi
22859
22860 extra_auth_ntlm=
22861 if test "x$alpine_NTLM" != "xnone" ; then
22862 extra_auth_ntlm=ntl
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Including NTLM Authenticator" >&5
22864 $as_echo "$as_me: * * * Including NTLM Authenticator" >&6;}
22865 fi
22866
22867 if test -n "$CPPFLAGS" ; then
22868 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
22869 fi
22870 if test -n "$CFLAGS" ; then
22871 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
22872 fi
22873
22874 if test -n "$alpine_c_client_cflags" ; then
22875 C_CLIENT_CFLAGS=EXTRACFLAGS=\"$alpine_c_client_cflags\"
22876
22877 fi
22878
22879 if test -n "$LDFLAGS" ; then
22880 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
22881 fi
22882 if test -n "$LIBS" ; then
22883 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
22884 fi
22885
22886 if test -n "$alpine_c_client_ldflags" ; then
22887 C_CLIENT_LDFLAGS=EXTRALDFLAGS=\"$alpine_c_client_ldflags\"
22888
22889 fi
22890
22891 if test -n "$alpine_c_client_gccoptlevel" ; then
22892 C_CLIENT_GCCOPTLEVEL=GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\"
22893
22894 fi
22895
22896 c_client_auths="$extra_auth_gss $extra_auth_ntlm"
22897 C_CLIENT_AUTHS=$c_client_auths
22898
22899
22900 C_CLIENT_SPECIALS=$c_client_specials
22901
22902
22903 if test -z "$WEB_BUILD" ; then
22904 WEB_PUBCOOKIE_BUILD=
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * TCL libraries could not be found." >&5
22906 $as_echo "$as_me: * * * TCL libraries could not be found." >&6;}
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&5
22908 $as_echo "$as_me: * * * WEB ALPINE COMPONENT WILL NOT BE BUILT." >&6;}
22909 else
22910 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
22911 if test "x$alpine_GSSTYPE" = "xnone" ; then
22912 WEB_PUBCOOKIE_BUILD=
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Kerberos5 support not found." >&5
22914 $as_echo "$as_me: * * * Kerberos5 support not found." >&6;}
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&5
22916 $as_echo "$as_me: * * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT." >&6;}
22917 elif test -z "$WEB_BINDIR" ; then
22918 WEB_PUBCOOKIE_BUILD=
22919 { $as_echo "$as_me:${as_lineno-$LINENO}: * * * Web Alpine binary directory not provided." >&5
22920 $as_echo "$as_me: * * * Web Alpine binary directory not provided." >&6;}
22921 as_fn_error $? "* * * --with-pubcookie requires --with-web-bin=PATH.
22922 Please re-run configure with these options:
22923 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin" "$LINENO" 5
22924 else
22925
22926 $as_echo "#define PUBCOOKIE 1" >>confdefs.h
22927
22928 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
22929 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
22930 fi
22931 fi
22932 fi
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945 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"
22946
22947 cat >confcache <<\_ACEOF
22948 # This file is a shell script that caches the results of configure
22949 # tests run on this system so they can be shared between configure
22950 # scripts and configure runs, see configure's option --config-cache.
22951 # It is not useful on other systems. If it contains results you don't
22952 # want to keep, you may remove or edit it.
22953 #
22954 # config.status only pays attention to the cache file if you give it
22955 # the --recheck option to rerun configure.
22956 #
22957 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22958 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22959 # following values.
22960
22961 _ACEOF
22962
22963 # The following way of writing the cache mishandles newlines in values,
22964 # but we know of no workaround that is simple, portable, and efficient.
22965 # So, we kill variables containing newlines.
22966 # Ultrix sh set writes to stderr and can't be redirected directly,
22967 # and sets the high bit in the cache file unless we assign to the vars.
22968 (
22969 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22970 eval ac_val=\$$ac_var
22971 case $ac_val in #(
22972 *${as_nl}*)
22973 case $ac_var in #(
22974 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22975 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22976 esac
22977 case $ac_var in #(
22978 _ | IFS | as_nl) ;; #(
22979 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22980 *) { eval $ac_var=; unset $ac_var;} ;;
22981 esac ;;
22982 esac
22983 done
22984
22985 (set) 2>&1 |
22986 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22987 *${as_nl}ac_space=\ *)
22988 # `set' does not quote correctly, so add quotes: double-quote
22989 # substitution turns \\\\ into \\, and sed turns \\ into \.
22990 sed -n \
22991 "s/'/'\\\\''/g;
22992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22993 ;; #(
22994 *)
22995 # `set' quotes correctly as required by POSIX, so do not add quotes.
22996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22997 ;;
22998 esac |
22999 sort
23000 ) |
23001 sed '
23002 /^ac_cv_env_/b end
23003 t clear
23004 :clear
23005 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23006 t end
23007 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23008 :end' >>confcache
23009 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23010 if test -w "$cache_file"; then
23011 if test "x$cache_file" != "x/dev/null"; then
23012 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23013 $as_echo "$as_me: updating cache $cache_file" >&6;}
23014 if test ! -f "$cache_file" || test -h "$cache_file"; then
23015 cat confcache >"$cache_file"
23016 else
23017 case $cache_file in #(
23018 */* | ?:*)
23019 mv -f confcache "$cache_file"$$ &&
23020 mv -f "$cache_file"$$ "$cache_file" ;; #(
23021 *)
23022 mv -f confcache "$cache_file" ;;
23023 esac
23024 fi
23025 fi
23026 else
23027 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23028 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23029 fi
23030 fi
23031 rm -f confcache
23032
23033 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23034 # Let make expand exec_prefix.
23035 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23036
23037 DEFS=-DHAVE_CONFIG_H
23038
23039 ac_libobjs=
23040 ac_ltlibobjs=
23041 U=
23042 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23043 # 1. Remove the extension, and $U if already installed.
23044 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23045 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23046 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23047 # will be set to the directory where LIBOBJS objects are built.
23048 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23049 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23050 done
23051 LIBOBJS=$ac_libobjs
23052
23053 LTLIBOBJS=$ac_ltlibobjs
23054
23055
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23057 $as_echo_n "checking that generated files are newer than configure... " >&6; }
23058 if test -n "$am_sleep_pid"; then
23059 # Hide warnings about reused PIDs.
23060 wait $am_sleep_pid 2>/dev/null
23061 fi
23062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
23063 $as_echo "done" >&6; }
23064 if test -n "$EXEEXT"; then
23065 am__EXEEXT_TRUE=
23066 am__EXEEXT_FALSE='#'
23067 else
23068 am__EXEEXT_TRUE='#'
23069 am__EXEEXT_FALSE=
23070 fi
23071
23072 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23073 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
23074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23075 fi
23076 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23077 as_fn_error $? "conditional \"AMDEP\" was never defined.
23078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23079 fi
23080 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23081 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23083 fi
23084 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23085 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23087 fi
23088
23089 : "${CONFIG_STATUS=./config.status}"
23090 ac_write_fail=0
23091 ac_clean_files_save=$ac_clean_files
23092 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23094 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23095 as_write_fail=0
23096 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23097 #! $SHELL
23098 # Generated by $as_me.
23099 # Run this file to recreate the current configuration.
23100 # Compiler output produced by configure, useful for debugging
23101 # configure, is in config.log if it exists.
23102
23103 debug=false
23104 ac_cs_recheck=false
23105 ac_cs_silent=false
23106
23107 SHELL=\${CONFIG_SHELL-$SHELL}
23108 export SHELL
23109 _ASEOF
23110 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23111 ## -------------------- ##
23112 ## M4sh Initialization. ##
23113 ## -------------------- ##
23114
23115 # Be more Bourne compatible
23116 DUALCASE=1; export DUALCASE # for MKS sh
23117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23118 emulate sh
23119 NULLCMD=:
23120 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23121 # is contrary to our usage. Disable this feature.
23122 alias -g '${1+"$@"}'='"$@"'
23123 setopt NO_GLOB_SUBST
23124 else
23125 case `(set -o) 2>/dev/null` in #(
23126 *posix*) :
23127 set -o posix ;; #(
23128 *) :
23129 ;;
23130 esac
23131 fi
23132
23133
23134 as_nl='
23135 '
23136 export as_nl
23137 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23138 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23139 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23141 # Prefer a ksh shell builtin over an external printf program on Solaris,
23142 # but without wasting forks for bash or zsh.
23143 if test -z "$BASH_VERSION$ZSH_VERSION" \
23144 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23145 as_echo='print -r --'
23146 as_echo_n='print -rn --'
23147 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23148 as_echo='printf %s\n'
23149 as_echo_n='printf %s'
23150 else
23151 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23152 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23153 as_echo_n='/usr/ucb/echo -n'
23154 else
23155 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23156 as_echo_n_body='eval
23157 arg=$1;
23158 case $arg in #(
23159 *"$as_nl"*)
23160 expr "X$arg" : "X\\(.*\\)$as_nl";
23161 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23162 esac;
23163 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23164 '
23165 export as_echo_n_body
23166 as_echo_n='sh -c $as_echo_n_body as_echo'
23167 fi
23168 export as_echo_body
23169 as_echo='sh -c $as_echo_body as_echo'
23170 fi
23171
23172 # The user is always right.
23173 if test "${PATH_SEPARATOR+set}" != set; then
23174 PATH_SEPARATOR=:
23175 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23176 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23177 PATH_SEPARATOR=';'
23178 }
23179 fi
23180
23181
23182 # IFS
23183 # We need space, tab and new line, in precisely that order. Quoting is
23184 # there to prevent editors from complaining about space-tab.
23185 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23186 # splitting by setting IFS to empty value.)
23187 IFS=" "" $as_nl"
23188
23189 # Find who we are. Look in the path if we contain no directory separator.
23190 as_myself=
23191 case $0 in #((
23192 *[\\/]* ) as_myself=$0 ;;
23193 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23194 for as_dir in $PATH
23195 do
23196 IFS=$as_save_IFS
23197 test -z "$as_dir" && as_dir=.
23198 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23199 done
23200 IFS=$as_save_IFS
23201
23202 ;;
23203 esac
23204 # We did not find ourselves, most probably we were run as `sh COMMAND'
23205 # in which case we are not to be found in the path.
23206 if test "x$as_myself" = x; then
23207 as_myself=$0
23208 fi
23209 if test ! -f "$as_myself"; then
23210 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23211 exit 1
23212 fi
23213
23214 # Unset variables that we do not need and which cause bugs (e.g. in
23215 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23216 # suppresses any "Segmentation fault" message there. '((' could
23217 # trigger a bug in pdksh 5.2.14.
23218 for as_var in BASH_ENV ENV MAIL MAILPATH
23219 do eval test x\${$as_var+set} = xset \
23220 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23221 done
23222 PS1='$ '
23223 PS2='> '
23224 PS4='+ '
23225
23226 # NLS nuisances.
23227 LC_ALL=C
23228 export LC_ALL
23229 LANGUAGE=C
23230 export LANGUAGE
23231
23232 # CDPATH.
23233 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23234
23235
23236 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23237 # ----------------------------------------
23238 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23239 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23240 # script with STATUS, using 1 if that was 0.
23241 as_fn_error ()
23242 {
23243 as_status=$1; test $as_status -eq 0 && as_status=1
23244 if test "$4"; then
23245 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23246 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23247 fi
23248 $as_echo "$as_me: error: $2" >&2
23249 as_fn_exit $as_status
23250 } # as_fn_error
23251
23252
23253 # as_fn_set_status STATUS
23254 # -----------------------
23255 # Set $? to STATUS, without forking.
23256 as_fn_set_status ()
23257 {
23258 return $1
23259 } # as_fn_set_status
23260
23261 # as_fn_exit STATUS
23262 # -----------------
23263 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23264 as_fn_exit ()
23265 {
23266 set +e
23267 as_fn_set_status $1
23268 exit $1
23269 } # as_fn_exit
23270
23271 # as_fn_unset VAR
23272 # ---------------
23273 # Portably unset VAR.
23274 as_fn_unset ()
23275 {
23276 { eval $1=; unset $1;}
23277 }
23278 as_unset=as_fn_unset
23279 # as_fn_append VAR VALUE
23280 # ----------------------
23281 # Append the text in VALUE to the end of the definition contained in VAR. Take
23282 # advantage of any shell optimizations that allow amortized linear growth over
23283 # repeated appends, instead of the typical quadratic growth present in naive
23284 # implementations.
23285 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23286 eval 'as_fn_append ()
23287 {
23288 eval $1+=\$2
23289 }'
23290 else
23291 as_fn_append ()
23292 {
23293 eval $1=\$$1\$2
23294 }
23295 fi # as_fn_append
23296
23297 # as_fn_arith ARG...
23298 # ------------------
23299 # Perform arithmetic evaluation on the ARGs, and store the result in the
23300 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23301 # must be portable across $(()) and expr.
23302 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23303 eval 'as_fn_arith ()
23304 {
23305 as_val=$(( $* ))
23306 }'
23307 else
23308 as_fn_arith ()
23309 {
23310 as_val=`expr "$@" || test $? -eq 1`
23311 }
23312 fi # as_fn_arith
23313
23314
23315 if expr a : '\(a\)' >/dev/null 2>&1 &&
23316 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23317 as_expr=expr
23318 else
23319 as_expr=false
23320 fi
23321
23322 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23323 as_basename=basename
23324 else
23325 as_basename=false
23326 fi
23327
23328 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23329 as_dirname=dirname
23330 else
23331 as_dirname=false
23332 fi
23333
23334 as_me=`$as_basename -- "$0" ||
23335 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23336 X"$0" : 'X\(//\)$' \| \
23337 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23338 $as_echo X/"$0" |
23339 sed '/^.*\/\([^/][^/]*\)\/*$/{
23340 s//\1/
23341 q
23342 }
23343 /^X\/\(\/\/\)$/{
23344 s//\1/
23345 q
23346 }
23347 /^X\/\(\/\).*/{
23348 s//\1/
23349 q
23350 }
23351 s/.*/./; q'`
23352
23353 # Avoid depending upon Character Ranges.
23354 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23355 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23356 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23357 as_cr_digits='0123456789'
23358 as_cr_alnum=$as_cr_Letters$as_cr_digits
23359
23360 ECHO_C= ECHO_N= ECHO_T=
23361 case `echo -n x` in #(((((
23362 -n*)
23363 case `echo 'xy\c'` in
23364 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23365 xy) ECHO_C='\c';;
23366 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23367 ECHO_T=' ';;
23368 esac;;
23369 *)
23370 ECHO_N='-n';;
23371 esac
23372
23373 rm -f conf$$ conf$$.exe conf$$.file
23374 if test -d conf$$.dir; then
23375 rm -f conf$$.dir/conf$$.file
23376 else
23377 rm -f conf$$.dir
23378 mkdir conf$$.dir 2>/dev/null
23379 fi
23380 if (echo >conf$$.file) 2>/dev/null; then
23381 if ln -s conf$$.file conf$$ 2>/dev/null; then
23382 as_ln_s='ln -s'
23383 # ... but there are two gotchas:
23384 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23385 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23386 # In both cases, we have to default to `cp -pR'.
23387 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23388 as_ln_s='cp -pR'
23389 elif ln conf$$.file conf$$ 2>/dev/null; then
23390 as_ln_s=ln
23391 else
23392 as_ln_s='cp -pR'
23393 fi
23394 else
23395 as_ln_s='cp -pR'
23396 fi
23397 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23398 rmdir conf$$.dir 2>/dev/null
23399
23400
23401 # as_fn_mkdir_p
23402 # -------------
23403 # Create "$as_dir" as a directory, including parents if necessary.
23404 as_fn_mkdir_p ()
23405 {
23406
23407 case $as_dir in #(
23408 -*) as_dir=./$as_dir;;
23409 esac
23410 test -d "$as_dir" || eval $as_mkdir_p || {
23411 as_dirs=
23412 while :; do
23413 case $as_dir in #(
23414 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23415 *) as_qdir=$as_dir;;
23416 esac
23417 as_dirs="'$as_qdir' $as_dirs"
23418 as_dir=`$as_dirname -- "$as_dir" ||
23419 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23420 X"$as_dir" : 'X\(//\)[^/]' \| \
23421 X"$as_dir" : 'X\(//\)$' \| \
23422 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23423 $as_echo X"$as_dir" |
23424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23425 s//\1/
23426 q
23427 }
23428 /^X\(\/\/\)[^/].*/{
23429 s//\1/
23430 q
23431 }
23432 /^X\(\/\/\)$/{
23433 s//\1/
23434 q
23435 }
23436 /^X\(\/\).*/{
23437 s//\1/
23438 q
23439 }
23440 s/.*/./; q'`
23441 test -d "$as_dir" && break
23442 done
23443 test -z "$as_dirs" || eval "mkdir $as_dirs"
23444 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23445
23446
23447 } # as_fn_mkdir_p
23448 if mkdir -p . 2>/dev/null; then
23449 as_mkdir_p='mkdir -p "$as_dir"'
23450 else
23451 test -d ./-p && rmdir ./-p
23452 as_mkdir_p=false
23453 fi
23454
23455
23456 # as_fn_executable_p FILE
23457 # -----------------------
23458 # Test if FILE is an executable regular file.
23459 as_fn_executable_p ()
23460 {
23461 test -f "$1" && test -x "$1"
23462 } # as_fn_executable_p
23463 as_test_x='test -x'
23464 as_executable_p=as_fn_executable_p
23465
23466 # Sed expression to map a string onto a valid CPP name.
23467 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23468
23469 # Sed expression to map a string onto a valid variable name.
23470 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23471
23472
23473 exec 6>&1
23474 ## ----------------------------------- ##
23475 ## Main body of $CONFIG_STATUS script. ##
23476 ## ----------------------------------- ##
23477 _ASEOF
23478 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23479
23480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23481 # Save the log message, to keep $0 and so on meaningful, and to
23482 # report actual input values of CONFIG_FILES etc. instead of their
23483 # values after options handling.
23484 ac_log="
23485 This file was extended by alpine $as_me 2.26, which was
23486 generated by GNU Autoconf 2.69. Invocation command line was
23487
23488 CONFIG_FILES = $CONFIG_FILES
23489 CONFIG_HEADERS = $CONFIG_HEADERS
23490 CONFIG_LINKS = $CONFIG_LINKS
23491 CONFIG_COMMANDS = $CONFIG_COMMANDS
23492 $ $0 $@
23493
23494 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23495 "
23496
23497 _ACEOF
23498
23499 case $ac_config_files in *"
23500 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23501 esac
23502
23503 case $ac_config_headers in *"
23504 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23505 esac
23506
23507
23508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23509 # Files that config.status was made for.
23510 config_files="$ac_config_files"
23511 config_headers="$ac_config_headers"
23512 config_commands="$ac_config_commands"
23513
23514 _ACEOF
23515
23516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23517 ac_cs_usage="\
23518 \`$as_me' instantiates files and other configuration actions
23519 from templates according to the current configuration. Unless the files
23520 and actions are specified as TAGs, all are instantiated by default.
23521
23522 Usage: $0 [OPTION]... [TAG]...
23523
23524 -h, --help print this help, then exit
23525 -V, --version print version number and configuration settings, then exit
23526 --config print configuration, then exit
23527 -q, --quiet, --silent
23528 do not print progress messages
23529 -d, --debug don't remove temporary files
23530 --recheck update $as_me by reconfiguring in the same conditions
23531 --file=FILE[:TEMPLATE]
23532 instantiate the configuration file FILE
23533 --header=FILE[:TEMPLATE]
23534 instantiate the configuration header FILE
23535
23536 Configuration files:
23537 $config_files
23538
23539 Configuration headers:
23540 $config_headers
23541
23542 Configuration commands:
23543 $config_commands
23544
23545 Report bugs to <[email protected]>."
23546
23547 _ACEOF
23548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23549 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23550 ac_cs_version="\\
23551 alpine config.status 2.26
23552 configured by $0, generated by GNU Autoconf 2.69,
23553 with options \\"\$ac_cs_config\\"
23554
23555 Copyright (C) 2012 Free Software Foundation, Inc.
23556 This config.status script is free software; the Free Software Foundation
23557 gives unlimited permission to copy, distribute and modify it."
23558
23559 ac_pwd='$ac_pwd'
23560 srcdir='$srcdir'
23561 INSTALL='$INSTALL'
23562 MKDIR_P='$MKDIR_P'
23563 AWK='$AWK'
23564 test -n "\$AWK" || AWK=awk
23565 _ACEOF
23566
23567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23568 # The default lists apply if the user does not specify any file.
23569 ac_need_defaults=:
23570 while test $# != 0
23571 do
23572 case $1 in
23573 --*=?*)
23574 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23575 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23576 ac_shift=:
23577 ;;
23578 --*=)
23579 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23580 ac_optarg=
23581 ac_shift=:
23582 ;;
23583 *)
23584 ac_option=$1
23585 ac_optarg=$2
23586 ac_shift=shift
23587 ;;
23588 esac
23589
23590 case $ac_option in
23591 # Handling of the options.
23592 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23593 ac_cs_recheck=: ;;
23594 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23595 $as_echo "$ac_cs_version"; exit ;;
23596 --config | --confi | --conf | --con | --co | --c )
23597 $as_echo "$ac_cs_config"; exit ;;
23598 --debug | --debu | --deb | --de | --d | -d )
23599 debug=: ;;
23600 --file | --fil | --fi | --f )
23601 $ac_shift
23602 case $ac_optarg in
23603 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23604 '') as_fn_error $? "missing file argument" ;;
23605 esac
23606 as_fn_append CONFIG_FILES " '$ac_optarg'"
23607 ac_need_defaults=false;;
23608 --header | --heade | --head | --hea )
23609 $ac_shift
23610 case $ac_optarg in
23611 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23612 esac
23613 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23614 ac_need_defaults=false;;
23615 --he | --h)
23616 # Conflict between --help and --header
23617 as_fn_error $? "ambiguous option: \`$1'
23618 Try \`$0 --help' for more information.";;
23619 --help | --hel | -h )
23620 $as_echo "$ac_cs_usage"; exit ;;
23621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23622 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23623 ac_cs_silent=: ;;
23624
23625 # This is an error.
23626 -*) as_fn_error $? "unrecognized option: \`$1'
23627 Try \`$0 --help' for more information." ;;
23628
23629 *) as_fn_append ac_config_targets " $1"
23630 ac_need_defaults=false ;;
23631
23632 esac
23633 shift
23634 done
23635
23636 ac_configure_extra_args=
23637
23638 if $ac_cs_silent; then
23639 exec 6>/dev/null
23640 ac_configure_extra_args="$ac_configure_extra_args --silent"
23641 fi
23642
23643 _ACEOF
23644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23645 if \$ac_cs_recheck; then
23646 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23647 shift
23648 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23649 CONFIG_SHELL='$SHELL'
23650 export CONFIG_SHELL
23651 exec "\$@"
23652 fi
23653
23654 _ACEOF
23655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23656 exec 5>>config.log
23657 {
23658 echo
23659 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23660 ## Running $as_me. ##
23661 _ASBOX
23662 $as_echo "$ac_log"
23663 } >&5
23664
23665 _ACEOF
23666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23667 #
23668 # INIT-COMMANDS
23669 #
23670 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23671
23672
23673 # The HP-UX ksh and POSIX shell print the target directory to stdout
23674 # if CDPATH is set.
23675 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23676
23677 sed_quote_subst='$sed_quote_subst'
23678 double_quote_subst='$double_quote_subst'
23679 delay_variable_subst='$delay_variable_subst'
23680 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23681 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23682 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23683 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23684 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23685 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23686 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23687 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23688 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23689 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23690 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23691 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23692 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23693 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23694 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23695 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23696 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23697 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23698 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23699 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23700 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23701 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23702 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23703 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23704 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23705 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23706 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23707 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23708 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23709 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23710 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23711 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23712 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23713 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23714 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23715 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23716 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23717 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23718 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23719 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23720 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23721 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23722 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23723 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23724 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23725 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23726 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23727 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23728 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23729 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23730 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23731 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23732 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23733 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23734 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23735 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23736 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23737 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23738 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
23739 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23740 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23741 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23742 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23743 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23744 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23745 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23746 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23747 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23748 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23749 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23750 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23751 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23752 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23753 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23754 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23755 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23756 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23757 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23758 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23759 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23760 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23761 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23762 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23763 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23764 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23765 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23766 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23767 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23768 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23769 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23770 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23771 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23772 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23773 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23774 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23775 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23776 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23777 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23778 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23779 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23780 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23781 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23782 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23783 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23784 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23785 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23786 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23787 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23788 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23789 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23790 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23791 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23792 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23793 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23794 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23795 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23796 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23797 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23798 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23799 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23800 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23801 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23802 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23803 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23804 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23805 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23806 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23807 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23808 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23809 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23810 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23811 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23812 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23813 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23814 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23815
23816 LTCC='$LTCC'
23817 LTCFLAGS='$LTCFLAGS'
23818 compiler='$compiler_DEFAULT'
23819
23820 # A function that is used when there is no print builtin or printf.
23821 func_fallback_echo ()
23822 {
23823 eval 'cat <<_LTECHO_EOF
23824 \$1
23825 _LTECHO_EOF'
23826 }
23827
23828 # Quote evaled strings.
23829 for var in SHELL \
23830 ECHO \
23831 PATH_SEPARATOR \
23832 SED \
23833 GREP \
23834 EGREP \
23835 FGREP \
23836 LD \
23837 NM \
23838 LN_S \
23839 lt_SP2NL \
23840 lt_NL2SP \
23841 reload_flag \
23842 OBJDUMP \
23843 deplibs_check_method \
23844 file_magic_cmd \
23845 file_magic_glob \
23846 want_nocaseglob \
23847 DLLTOOL \
23848 sharedlib_from_linklib_cmd \
23849 AR \
23850 AR_FLAGS \
23851 archiver_list_spec \
23852 STRIP \
23853 RANLIB \
23854 CC \
23855 CFLAGS \
23856 compiler \
23857 lt_cv_sys_global_symbol_pipe \
23858 lt_cv_sys_global_symbol_to_cdecl \
23859 lt_cv_sys_global_symbol_to_import \
23860 lt_cv_sys_global_symbol_to_c_name_address \
23861 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23862 lt_cv_nm_interface \
23863 nm_file_list_spec \
23864 lt_cv_truncate_bin \
23865 lt_prog_compiler_no_builtin_flag \
23866 lt_prog_compiler_pic \
23867 lt_prog_compiler_wl \
23868 lt_prog_compiler_static \
23869 lt_cv_prog_compiler_c_o \
23870 need_locks \
23871 MANIFEST_TOOL \
23872 DSYMUTIL \
23873 NMEDIT \
23874 LIPO \
23875 OTOOL \
23876 OTOOL64 \
23877 shrext_cmds \
23878 export_dynamic_flag_spec \
23879 whole_archive_flag_spec \
23880 compiler_needs_object \
23881 with_gnu_ld \
23882 allow_undefined_flag \
23883 no_undefined_flag \
23884 hardcode_libdir_flag_spec \
23885 hardcode_libdir_separator \
23886 exclude_expsyms \
23887 include_expsyms \
23888 file_list_spec \
23889 variables_saved_for_relink \
23890 libname_spec \
23891 library_names_spec \
23892 soname_spec \
23893 install_override_mode \
23894 finish_eval \
23895 old_striplib \
23896 striplib; do
23897 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23898 *[\\\\\\\`\\"\\\$]*)
23899 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23900 ;;
23901 *)
23902 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23903 ;;
23904 esac
23905 done
23906
23907 # Double-quote double-evaled strings.
23908 for var in reload_cmds \
23909 old_postinstall_cmds \
23910 old_postuninstall_cmds \
23911 old_archive_cmds \
23912 extract_expsyms_cmds \
23913 old_archive_from_new_cmds \
23914 old_archive_from_expsyms_cmds \
23915 archive_cmds \
23916 archive_expsym_cmds \
23917 module_cmds \
23918 module_expsym_cmds \
23919 export_symbols_cmds \
23920 prelink_cmds \
23921 postlink_cmds \
23922 postinstall_cmds \
23923 postuninstall_cmds \
23924 finish_cmds \
23925 sys_lib_search_path_spec \
23926 configure_time_dlsearch_path \
23927 configure_time_lt_sys_library_path; do
23928 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23929 *[\\\\\\\`\\"\\\$]*)
23930 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23931 ;;
23932 *)
23933 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23934 ;;
23935 esac
23936 done
23937
23938 ac_aux_dir='$ac_aux_dir'
23939
23940 # See if we are running on zsh, and set the options that allow our
23941 # commands through without removal of \ escapes INIT.
23942 if test -n "\${ZSH_VERSION+set}"; then
23943 setopt NO_GLOB_SUBST
23944 fi
23945
23946
23947 PACKAGE='$PACKAGE'
23948 VERSION='$VERSION'
23949 RM='$RM'
23950 ofile='$ofile'
23951
23952
23953
23954 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
23955 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
23956 # from automake < 1.5.
23957 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23958 # Capture the value of LINGUAS because we need it to compute CATALOGS.
23959 LINGUAS="${LINGUAS-%UNSET%}"
23960
23961
23962 _ACEOF
23963
23964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23965
23966 # Handling of arguments.
23967 for ac_config_target in $ac_config_targets
23968 do
23969 case $ac_config_target in
23970 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
23971 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23972 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23973 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
23974 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
23975 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23976 "$REGEX_MAKEFILE") CONFIG_FILES="$CONFIG_FILES $REGEX_MAKEFILE" ;;
23977 "pith/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pith/osdep/Makefile" ;;
23978 "pith/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES pith/charconv/Makefile" ;;
23979 "pith/Makefile") CONFIG_FILES="$CONFIG_FILES pith/Makefile" ;;
23980 "pico/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES pico/osdep/Makefile" ;;
23981 "pico/Makefile") CONFIG_FILES="$CONFIG_FILES pico/Makefile" ;;
23982 "alpine/osdep/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/osdep/Makefile" ;;
23983 "alpine/Makefile") CONFIG_FILES="$CONFIG_FILES alpine/Makefile" ;;
23984 "web/src/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/Makefile" ;;
23985 "web/src/pubcookie/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/pubcookie/Makefile" ;;
23986 "web/src/alpined.d/Makefile") CONFIG_FILES="$CONFIG_FILES web/src/alpined.d/Makefile" ;;
23987 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23988
23989 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23990 esac
23991 done
23992
23993
23994 # If the user did not use the arguments to specify the items to instantiate,
23995 # then the envvar interface is used. Set only those that are not.
23996 # We use the long form for the default assignment because of an extremely
23997 # bizarre bug on SunOS 4.1.3.
23998 if $ac_need_defaults; then
23999 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24000 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24001 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24002 fi
24003
24004 # Have a temporary directory for convenience. Make it in the build tree
24005 # simply because there is no reason against having it here, and in addition,
24006 # creating and moving files from /tmp can sometimes cause problems.
24007 # Hook for its removal unless debugging.
24008 # Note that there is a small window in which the directory will not be cleaned:
24009 # after its creation but before its name has been assigned to `$tmp'.
24010 $debug ||
24011 {
24012 tmp= ac_tmp=
24013 trap 'exit_status=$?
24014 : "${ac_tmp:=$tmp}"
24015 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24016 ' 0
24017 trap 'as_fn_exit 1' 1 2 13 15
24018 }
24019 # Create a (secure) tmp directory for tmp files.
24020
24021 {
24022 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24023 test -d "$tmp"
24024 } ||
24025 {
24026 tmp=./conf$$-$RANDOM
24027 (umask 077 && mkdir "$tmp")
24028 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24029 ac_tmp=$tmp
24030
24031 # Set up the scripts for CONFIG_FILES section.
24032 # No need to generate them if there are no CONFIG_FILES.
24033 # This happens for instance with `./config.status config.h'.
24034 if test -n "$CONFIG_FILES"; then
24035
24036
24037 ac_cr=`echo X | tr X '\015'`
24038 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24039 # But we know of no other shell where ac_cr would be empty at this
24040 # point, so we can use a bashism as a fallback.
24041 if test "x$ac_cr" = x; then
24042 eval ac_cr=\$\'\\r\'
24043 fi
24044 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24045 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24046 ac_cs_awk_cr='\\r'
24047 else
24048 ac_cs_awk_cr=$ac_cr
24049 fi
24050
24051 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24052 _ACEOF
24053
24054
24055 {
24056 echo "cat >conf$$subs.awk <<_ACEOF" &&
24057 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24058 echo "_ACEOF"
24059 } >conf$$subs.sh ||
24060 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24061 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24062 ac_delim='%!_!# '
24063 for ac_last_try in false false false false false :; do
24064 . ./conf$$subs.sh ||
24065 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24066
24067 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24068 if test $ac_delim_n = $ac_delim_num; then
24069 break
24070 elif $ac_last_try; then
24071 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24072 else
24073 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24074 fi
24075 done
24076 rm -f conf$$subs.sh
24077
24078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24079 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24080 _ACEOF
24081 sed -n '
24082 h
24083 s/^/S["/; s/!.*/"]=/
24084 p
24085 g
24086 s/^[^!]*!//
24087 :repl
24088 t repl
24089 s/'"$ac_delim"'$//
24090 t delim
24091 :nl
24092 h
24093 s/\(.\{148\}\)..*/\1/
24094 t more1
24095 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24096 p
24097 n
24098 b repl
24099 :more1
24100 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24101 p
24102 g
24103 s/.\{148\}//
24104 t nl
24105 :delim
24106 h
24107 s/\(.\{148\}\)..*/\1/
24108 t more2
24109 s/["\\]/\\&/g; s/^/"/; s/$/"/
24110 p
24111 b
24112 :more2
24113 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24114 p
24115 g
24116 s/.\{148\}//
24117 t delim
24118 ' <conf$$subs.awk | sed '
24119 /^[^""]/{
24120 N
24121 s/\n//
24122 }
24123 ' >>$CONFIG_STATUS || ac_write_fail=1
24124 rm -f conf$$subs.awk
24125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24126 _ACAWK
24127 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24128 for (key in S) S_is_set[key] = 1
24129 FS = ""
24130
24131 }
24132 {
24133 line = $ 0
24134 nfields = split(line, field, "@")
24135 substed = 0
24136 len = length(field[1])
24137 for (i = 2; i < nfields; i++) {
24138 key = field[i]
24139 keylen = length(key)
24140 if (S_is_set[key]) {
24141 value = S[key]
24142 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24143 len += length(value) + length(field[++i])
24144 substed = 1
24145 } else
24146 len += 1 + keylen
24147 }
24148
24149 print line
24150 }
24151
24152 _ACAWK
24153 _ACEOF
24154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24155 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24156 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24157 else
24158 cat
24159 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24160 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24161 _ACEOF
24162
24163 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24164 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24165 # trailing colons and then remove the whole line if VPATH becomes empty
24166 # (actually we leave an empty line to preserve line numbers).
24167 if test "x$srcdir" = x.; then
24168 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24169 h
24170 s///
24171 s/^/:/
24172 s/[ ]*$/:/
24173 s/:\$(srcdir):/:/g
24174 s/:\${srcdir}:/:/g
24175 s/:@srcdir@:/:/g
24176 s/^:*//
24177 s/:*$//
24178 x
24179 s/\(=[ ]*\).*/\1/
24180 G
24181 s/\n//
24182 s/^[^=]*=[ ]*$//
24183 }'
24184 fi
24185
24186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24187 fi # test -n "$CONFIG_FILES"
24188
24189 # Set up the scripts for CONFIG_HEADERS section.
24190 # No need to generate them if there are no CONFIG_HEADERS.
24191 # This happens for instance with `./config.status Makefile'.
24192 if test -n "$CONFIG_HEADERS"; then
24193 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24194 BEGIN {
24195 _ACEOF
24196
24197 # Transform confdefs.h into an awk script `defines.awk', embedded as
24198 # here-document in config.status, that substitutes the proper values into
24199 # config.h.in to produce config.h.
24200
24201 # Create a delimiter string that does not exist in confdefs.h, to ease
24202 # handling of long lines.
24203 ac_delim='%!_!# '
24204 for ac_last_try in false false :; do
24205 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24206 if test -z "$ac_tt"; then
24207 break
24208 elif $ac_last_try; then
24209 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24210 else
24211 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24212 fi
24213 done
24214
24215 # For the awk script, D is an array of macro values keyed by name,
24216 # likewise P contains macro parameters if any. Preserve backslash
24217 # newline sequences.
24218
24219 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24220 sed -n '
24221 s/.\{148\}/&'"$ac_delim"'/g
24222 t rset
24223 :rset
24224 s/^[ ]*#[ ]*define[ ][ ]*/ /
24225 t def
24226 d
24227 :def
24228 s/\\$//
24229 t bsnl
24230 s/["\\]/\\&/g
24231 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24232 D["\1"]=" \3"/p
24233 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24234 d
24235 :bsnl
24236 s/["\\]/\\&/g
24237 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24238 D["\1"]=" \3\\\\\\n"\\/p
24239 t cont
24240 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24241 t cont
24242 d
24243 :cont
24244 n
24245 s/.\{148\}/&'"$ac_delim"'/g
24246 t clear
24247 :clear
24248 s/\\$//
24249 t bsnlc
24250 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24251 d
24252 :bsnlc
24253 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24254 b cont
24255 ' <confdefs.h | sed '
24256 s/'"$ac_delim"'/"\\\
24257 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24258
24259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24260 for (key in D) D_is_set[key] = 1
24261 FS = ""
24262 }
24263 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24264 line = \$ 0
24265 split(line, arg, " ")
24266 if (arg[1] == "#") {
24267 defundef = arg[2]
24268 mac1 = arg[3]
24269 } else {
24270 defundef = substr(arg[1], 2)
24271 mac1 = arg[2]
24272 }
24273 split(mac1, mac2, "(") #)
24274 macro = mac2[1]
24275 prefix = substr(line, 1, index(line, defundef) - 1)
24276 if (D_is_set[macro]) {
24277 # Preserve the white space surrounding the "#".
24278 print prefix "define", macro P[macro] D[macro]
24279 next
24280 } else {
24281 # Replace #undef with comments. This is necessary, for example,
24282 # in the case of _POSIX_SOURCE, which is predefined and required
24283 # on some systems where configure will not decide to define it.
24284 if (defundef == "undef") {
24285 print "/*", prefix defundef, macro, "*/"
24286 next
24287 }
24288 }
24289 }
24290 { print }
24291 _ACAWK
24292 _ACEOF
24293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24294 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24295 fi # test -n "$CONFIG_HEADERS"
24296
24297
24298 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24299 shift
24300 for ac_tag
24301 do
24302 case $ac_tag in
24303 :[FHLC]) ac_mode=$ac_tag; continue;;
24304 esac
24305 case $ac_mode$ac_tag in
24306 :[FHL]*:*);;
24307 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24308 :[FH]-) ac_tag=-:-;;
24309 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24310 esac
24311 ac_save_IFS=$IFS
24312 IFS=:
24313 set x $ac_tag
24314 IFS=$ac_save_IFS
24315 shift
24316 ac_file=$1
24317 shift
24318
24319 case $ac_mode in
24320 :L) ac_source=$1;;
24321 :[FH])
24322 ac_file_inputs=
24323 for ac_f
24324 do
24325 case $ac_f in
24326 -) ac_f="$ac_tmp/stdin";;
24327 *) # Look for the file first in the build tree, then in the source tree
24328 # (if the path is not absolute). The absolute path cannot be DOS-style,
24329 # because $ac_f cannot contain `:'.
24330 test -f "$ac_f" ||
24331 case $ac_f in
24332 [\\/$]*) false;;
24333 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24334 esac ||
24335 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24336 esac
24337 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24338 as_fn_append ac_file_inputs " '$ac_f'"
24339 done
24340
24341 # Let's still pretend it is `configure' which instantiates (i.e., don't
24342 # use $as_me), people would be surprised to read:
24343 # /* config.h. Generated by config.status. */
24344 configure_input='Generated from '`
24345 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24346 `' by configure.'
24347 if test x"$ac_file" != x-; then
24348 configure_input="$ac_file. $configure_input"
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24350 $as_echo "$as_me: creating $ac_file" >&6;}
24351 fi
24352 # Neutralize special characters interpreted by sed in replacement strings.
24353 case $configure_input in #(
24354 *\&* | *\|* | *\\* )
24355 ac_sed_conf_input=`$as_echo "$configure_input" |
24356 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24357 *) ac_sed_conf_input=$configure_input;;
24358 esac
24359
24360 case $ac_tag in
24361 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24362 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24363 esac
24364 ;;
24365 esac
24366
24367 ac_dir=`$as_dirname -- "$ac_file" ||
24368 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24369 X"$ac_file" : 'X\(//\)[^/]' \| \
24370 X"$ac_file" : 'X\(//\)$' \| \
24371 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24372 $as_echo X"$ac_file" |
24373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24374 s//\1/
24375 q
24376 }
24377 /^X\(\/\/\)[^/].*/{
24378 s//\1/
24379 q
24380 }
24381 /^X\(\/\/\)$/{
24382 s//\1/
24383 q
24384 }
24385 /^X\(\/\).*/{
24386 s//\1/
24387 q
24388 }
24389 s/.*/./; q'`
24390 as_dir="$ac_dir"; as_fn_mkdir_p
24391 ac_builddir=.
24392
24393 case "$ac_dir" in
24394 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24395 *)
24396 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24397 # A ".." for each directory in $ac_dir_suffix.
24398 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24399 case $ac_top_builddir_sub in
24400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24402 esac ;;
24403 esac
24404 ac_abs_top_builddir=$ac_pwd
24405 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24406 # for backward compatibility:
24407 ac_top_builddir=$ac_top_build_prefix
24408
24409 case $srcdir in
24410 .) # We are building in place.
24411 ac_srcdir=.
24412 ac_top_srcdir=$ac_top_builddir_sub
24413 ac_abs_top_srcdir=$ac_pwd ;;
24414 [\\/]* | ?:[\\/]* ) # Absolute name.
24415 ac_srcdir=$srcdir$ac_dir_suffix;
24416 ac_top_srcdir=$srcdir
24417 ac_abs_top_srcdir=$srcdir ;;
24418 *) # Relative name.
24419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24420 ac_top_srcdir=$ac_top_build_prefix$srcdir
24421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24422 esac
24423 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24424
24425
24426 case $ac_mode in
24427 :F)
24428 #
24429 # CONFIG_FILE
24430 #
24431
24432 case $INSTALL in
24433 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24434 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24435 esac
24436 ac_MKDIR_P=$MKDIR_P
24437 case $MKDIR_P in
24438 [\\/$]* | ?:[\\/]* ) ;;
24439 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24440 esac
24441 _ACEOF
24442
24443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24444 # If the template does not know about datarootdir, expand it.
24445 # FIXME: This hack should be removed a few years after 2.60.
24446 ac_datarootdir_hack=; ac_datarootdir_seen=
24447 ac_sed_dataroot='
24448 /datarootdir/ {
24449 p
24450 q
24451 }
24452 /@datadir@/p
24453 /@docdir@/p
24454 /@infodir@/p
24455 /@localedir@/p
24456 /@mandir@/p'
24457 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24458 *datarootdir*) ac_datarootdir_seen=yes;;
24459 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24461 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24462 _ACEOF
24463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24464 ac_datarootdir_hack='
24465 s&@datadir@&$datadir&g
24466 s&@docdir@&$docdir&g
24467 s&@infodir@&$infodir&g
24468 s&@localedir@&$localedir&g
24469 s&@mandir@&$mandir&g
24470 s&\\\${datarootdir}&$datarootdir&g' ;;
24471 esac
24472 _ACEOF
24473
24474 # Neutralize VPATH when `$srcdir' = `.'.
24475 # Shell code in configure.ac might set extrasub.
24476 # FIXME: do we really want to maintain this feature?
24477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24478 ac_sed_extra="$ac_vpsub
24479 $extrasub
24480 _ACEOF
24481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24482 :t
24483 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24484 s|@configure_input@|$ac_sed_conf_input|;t t
24485 s&@top_builddir@&$ac_top_builddir_sub&;t t
24486 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24487 s&@srcdir@&$ac_srcdir&;t t
24488 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24489 s&@top_srcdir@&$ac_top_srcdir&;t t
24490 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24491 s&@builddir@&$ac_builddir&;t t
24492 s&@abs_builddir@&$ac_abs_builddir&;t t
24493 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24494 s&@INSTALL@&$ac_INSTALL&;t t
24495 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24496 $ac_datarootdir_hack
24497 "
24498 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24499 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24500
24501 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24502 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24503 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24504 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24506 which seems to be undefined. Please make sure it is defined" >&5
24507 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24508 which seems to be undefined. Please make sure it is defined" >&2;}
24509
24510 rm -f "$ac_tmp/stdin"
24511 case $ac_file in
24512 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24513 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24514 esac \
24515 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24516 ;;
24517 :H)
24518 #
24519 # CONFIG_HEADER
24520 #
24521 if test x"$ac_file" != x-; then
24522 {
24523 $as_echo "/* $configure_input */" \
24524 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24525 } >"$ac_tmp/config.h" \
24526 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24527 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24529 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24530 else
24531 rm -f "$ac_file"
24532 mv "$ac_tmp/config.h" "$ac_file" \
24533 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24534 fi
24535 else
24536 $as_echo "/* $configure_input */" \
24537 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24538 || as_fn_error $? "could not create -" "$LINENO" 5
24539 fi
24540 # Compute "$ac_file"'s index in $config_headers.
24541 _am_arg="$ac_file"
24542 _am_stamp_count=1
24543 for _am_header in $config_headers :; do
24544 case $_am_header in
24545 $_am_arg | $_am_arg:* )
24546 break ;;
24547 * )
24548 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24549 esac
24550 done
24551 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24552 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24553 X"$_am_arg" : 'X\(//\)[^/]' \| \
24554 X"$_am_arg" : 'X\(//\)$' \| \
24555 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24556 $as_echo X"$_am_arg" |
24557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24558 s//\1/
24559 q
24560 }
24561 /^X\(\/\/\)[^/].*/{
24562 s//\1/
24563 q
24564 }
24565 /^X\(\/\/\)$/{
24566 s//\1/
24567 q
24568 }
24569 /^X\(\/\).*/{
24570 s//\1/
24571 q
24572 }
24573 s/.*/./; q'`/stamp-h$_am_stamp_count
24574 ;;
24575
24576 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24577 $as_echo "$as_me: executing $ac_file commands" >&6;}
24578 ;;
24579 esac
24580
24581
24582 case $ac_file$ac_mode in
24583 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24584 # Older Autoconf quotes --file arguments for eval, but not when files
24585 # are listed without --file. Let's play safe and only enable the eval
24586 # if we detect the quoting.
24587 case $CONFIG_FILES in
24588 *\'*) eval set x "$CONFIG_FILES" ;;
24589 *) set x $CONFIG_FILES ;;
24590 esac
24591 shift
24592 for mf
24593 do
24594 # Strip MF so we end up with the name of the file.
24595 mf=`echo "$mf" | sed -e 's/:.*$//'`
24596 # Check whether this is an Automake generated Makefile or not.
24597 # We used to match only the files named 'Makefile.in', but
24598 # some people rename them; so instead we look at the file content.
24599 # Grep'ing the first line is not enough: some people post-process
24600 # each Makefile.in and add a new line on top of each file to say so.
24601 # Grep'ing the whole file is not good either: AIX grep has a line
24602 # limit of 2048, but all sed's we know have understand at least 4000.
24603 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24604 dirpart=`$as_dirname -- "$mf" ||
24605 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24606 X"$mf" : 'X\(//\)[^/]' \| \
24607 X"$mf" : 'X\(//\)$' \| \
24608 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24609 $as_echo X"$mf" |
24610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24611 s//\1/
24612 q
24613 }
24614 /^X\(\/\/\)[^/].*/{
24615 s//\1/
24616 q
24617 }
24618 /^X\(\/\/\)$/{
24619 s//\1/
24620 q
24621 }
24622 /^X\(\/\).*/{
24623 s//\1/
24624 q
24625 }
24626 s/.*/./; q'`
24627 else
24628 continue
24629 fi
24630 # Extract the definition of DEPDIR, am__include, and am__quote
24631 # from the Makefile without running 'make'.
24632 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24633 test -z "$DEPDIR" && continue
24634 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24635 test -z "$am__include" && continue
24636 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24637 # Find all dependency output files, they are included files with
24638 # $(DEPDIR) in their names. We invoke sed twice because it is the
24639 # simplest approach to changing $(DEPDIR) to its actual value in the
24640 # expansion.
24641 for file in `sed -n "
24642 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24643 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
24644 # Make sure the directory exists.
24645 test -f "$dirpart/$file" && continue
24646 fdir=`$as_dirname -- "$file" ||
24647 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24648 X"$file" : 'X\(//\)[^/]' \| \
24649 X"$file" : 'X\(//\)$' \| \
24650 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24651 $as_echo X"$file" |
24652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24653 s//\1/
24654 q
24655 }
24656 /^X\(\/\/\)[^/].*/{
24657 s//\1/
24658 q
24659 }
24660 /^X\(\/\/\)$/{
24661 s//\1/
24662 q
24663 }
24664 /^X\(\/\).*/{
24665 s//\1/
24666 q
24667 }
24668 s/.*/./; q'`
24669 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24670 # echo "creating $dirpart/$file"
24671 echo '# dummy' > "$dirpart/$file"
24672 done
24673 done
24674 }
24675 ;;
24676 "libtool":C)
24677
24678 # See if we are running on zsh, and set the options that allow our
24679 # commands through without removal of \ escapes.
24680 if test -n "${ZSH_VERSION+set}"; then
24681 setopt NO_GLOB_SUBST
24682 fi
24683
24684 cfgfile=${ofile}T
24685 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24686 $RM "$cfgfile"
24687
24688 cat <<_LT_EOF >> "$cfgfile"
24689 #! $SHELL
24690 # Generated automatically by $as_me ($PACKAGE) $VERSION
24691 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24692
24693 # Provide generalized library-building support services.
24694 # Written by Gordon Matzigkeit, 1996
24695
24696 # Copyright (C) 2014 Free Software Foundation, Inc.
24697 # This is free software; see the source for copying conditions. There is NO
24698 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24699
24700 # GNU Libtool is free software; you can redistribute it and/or modify
24701 # it under the terms of the GNU General Public License as published by
24702 # the Free Software Foundation; either version 2 of of the License, or
24703 # (at your option) any later version.
24704 #
24705 # As a special exception to the GNU General Public License, if you
24706 # distribute this file as part of a program or library that is built
24707 # using GNU Libtool, you may include this file under the same
24708 # distribution terms that you use for the rest of that program.
24709 #
24710 # GNU Libtool is distributed in the hope that it will be useful, but
24711 # WITHOUT ANY WARRANTY; without even the implied warranty of
24712 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24713 # GNU General Public License for more details.
24714 #
24715 # You should have received a copy of the GNU General Public License
24716 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24717
24718
24719 # The names of the tagged configurations supported by this script.
24720 available_tags=''
24721
24722 # Configured defaults for sys_lib_dlsearch_path munging.
24723 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24724
24725 # ### BEGIN LIBTOOL CONFIG
24726
24727 # Which release of libtool.m4 was used?
24728 macro_version=$macro_version
24729 macro_revision=$macro_revision
24730
24731 # Whether or not to build shared libraries.
24732 build_libtool_libs=$enable_shared
24733
24734 # Whether or not to build static libraries.
24735 build_old_libs=$enable_static
24736
24737 # What type of objects to build.
24738 pic_mode=$pic_mode
24739
24740 # Whether or not to optimize for fast installation.
24741 fast_install=$enable_fast_install
24742
24743 # Shared archive member basename,for filename based shared library versioning on AIX.
24744 shared_archive_member_spec=$shared_archive_member_spec
24745
24746 # Shell to use when invoking shell scripts.
24747 SHELL=$lt_SHELL
24748
24749 # An echo program that protects backslashes.
24750 ECHO=$lt_ECHO
24751
24752 # The PATH separator for the build system.
24753 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24754
24755 # The host system.
24756 host_alias=$host_alias
24757 host=$host
24758 host_os=$host_os
24759
24760 # The build system.
24761 build_alias=$build_alias
24762 build=$build
24763 build_os=$build_os
24764
24765 # A sed program that does not truncate output.
24766 SED=$lt_SED
24767
24768 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24769 Xsed="\$SED -e 1s/^X//"
24770
24771 # A grep program that handles long lines.
24772 GREP=$lt_GREP
24773
24774 # An ERE matcher.
24775 EGREP=$lt_EGREP
24776
24777 # A literal string matcher.
24778 FGREP=$lt_FGREP
24779
24780 # A BSD- or MS-compatible name lister.
24781 NM=$lt_NM
24782
24783 # Whether we need soft or hard links.
24784 LN_S=$lt_LN_S
24785
24786 # What is the maximum length of a command?
24787 max_cmd_len=$max_cmd_len
24788
24789 # Object file suffix (normally "o").
24790 objext=$ac_objext
24791
24792 # Executable file suffix (normally "").
24793 exeext=$exeext
24794
24795 # whether the shell understands "unset".
24796 lt_unset=$lt_unset
24797
24798 # turn spaces into newlines.
24799 SP2NL=$lt_lt_SP2NL
24800
24801 # turn newlines into spaces.
24802 NL2SP=$lt_lt_NL2SP
24803
24804 # convert \$build file names to \$host format.
24805 to_host_file_cmd=$lt_cv_to_host_file_cmd
24806
24807 # convert \$build files to toolchain format.
24808 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24809
24810 # An object symbol dumper.
24811 OBJDUMP=$lt_OBJDUMP
24812
24813 # Method to check whether dependent libraries are shared objects.
24814 deplibs_check_method=$lt_deplibs_check_method
24815
24816 # Command to use when deplibs_check_method = "file_magic".
24817 file_magic_cmd=$lt_file_magic_cmd
24818
24819 # How to find potential files when deplibs_check_method = "file_magic".
24820 file_magic_glob=$lt_file_magic_glob
24821
24822 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24823 want_nocaseglob=$lt_want_nocaseglob
24824
24825 # DLL creation program.
24826 DLLTOOL=$lt_DLLTOOL
24827
24828 # Command to associate shared and link libraries.
24829 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24830
24831 # The archiver.
24832 AR=$lt_AR
24833
24834 # Flags to create an archive.
24835 AR_FLAGS=$lt_AR_FLAGS
24836
24837 # How to feed a file listing to the archiver.
24838 archiver_list_spec=$lt_archiver_list_spec
24839
24840 # A symbol stripping program.
24841 STRIP=$lt_STRIP
24842
24843 # Commands used to install an old-style archive.
24844 RANLIB=$lt_RANLIB
24845 old_postinstall_cmds=$lt_old_postinstall_cmds
24846 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24847
24848 # Whether to use a lock for old archive extraction.
24849 lock_old_archive_extraction=$lock_old_archive_extraction
24850
24851 # A C compiler.
24852 LTCC=$lt_CC
24853
24854 # LTCC compiler flags.
24855 LTCFLAGS=$lt_CFLAGS
24856
24857 # Take the output of nm and produce a listing of raw symbols and C names.
24858 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24859
24860 # Transform the output of nm in a proper C declaration.
24861 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24862
24863 # Transform the output of nm into a list of symbols to manually relocate.
24864 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24865
24866 # Transform the output of nm in a C name address pair.
24867 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24868
24869 # Transform the output of nm in a C name address pair when lib prefix is needed.
24870 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24871
24872 # The name lister interface.
24873 nm_interface=$lt_lt_cv_nm_interface
24874
24875 # Specify filename containing input files for \$NM.
24876 nm_file_list_spec=$lt_nm_file_list_spec
24877
24878 # The root where to search for dependent libraries,and where our libraries should be installed.
24879 lt_sysroot=$lt_sysroot
24880
24881 # Command to truncate a binary pipe.
24882 lt_truncate_bin=$lt_lt_cv_truncate_bin
24883
24884 # The name of the directory that contains temporary libtool files.
24885 objdir=$objdir
24886
24887 # Used to examine libraries when file_magic_cmd begins with "file".
24888 MAGIC_CMD=$MAGIC_CMD
24889
24890 # Must we lock files when doing compilation?
24891 need_locks=$lt_need_locks
24892
24893 # Manifest tool.
24894 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24895
24896 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24897 DSYMUTIL=$lt_DSYMUTIL
24898
24899 # Tool to change global to local symbols on Mac OS X.
24900 NMEDIT=$lt_NMEDIT
24901
24902 # Tool to manipulate fat objects and archives on Mac OS X.
24903 LIPO=$lt_LIPO
24904
24905 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24906 OTOOL=$lt_OTOOL
24907
24908 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24909 OTOOL64=$lt_OTOOL64
24910
24911 # Old archive suffix (normally "a").
24912 libext=$libext
24913
24914 # Shared library suffix (normally ".so").
24915 shrext_cmds=$lt_shrext_cmds
24916
24917 # The commands to extract the exported symbol list from a shared archive.
24918 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24919
24920 # Variables whose values should be saved in libtool wrapper scripts and
24921 # restored at link time.
24922 variables_saved_for_relink=$lt_variables_saved_for_relink
24923
24924 # Do we need the "lib" prefix for modules?
24925 need_lib_prefix=$need_lib_prefix
24926
24927 # Do we need a version for libraries?
24928 need_version=$need_version
24929
24930 # Library versioning type.
24931 version_type=$version_type
24932
24933 # Shared library runtime path variable.
24934 runpath_var=$runpath_var
24935
24936 # Shared library path variable.
24937 shlibpath_var=$shlibpath_var
24938
24939 # Is shlibpath searched before the hard-coded library search path?
24940 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24941
24942 # Format of library name prefix.
24943 libname_spec=$lt_libname_spec
24944
24945 # List of archive names. First name is the real one, the rest are links.
24946 # The last name is the one that the linker finds with -lNAME
24947 library_names_spec=$lt_library_names_spec
24948
24949 # The coded name of the library, if different from the real name.
24950 soname_spec=$lt_soname_spec
24951
24952 # Permission mode override for installation of shared libraries.
24953 install_override_mode=$lt_install_override_mode
24954
24955 # Command to use after installation of a shared archive.
24956 postinstall_cmds=$lt_postinstall_cmds
24957
24958 # Command to use after uninstallation of a shared archive.
24959 postuninstall_cmds=$lt_postuninstall_cmds
24960
24961 # Commands used to finish a libtool library installation in a directory.
24962 finish_cmds=$lt_finish_cmds
24963
24964 # As "finish_cmds", except a single script fragment to be evaled but
24965 # not shown.
24966 finish_eval=$lt_finish_eval
24967
24968 # Whether we should hardcode library paths into libraries.
24969 hardcode_into_libs=$hardcode_into_libs
24970
24971 # Compile-time system search path for libraries.
24972 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24973
24974 # Detected run-time system search path for libraries.
24975 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24976
24977 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24978 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24979
24980 # Whether dlopen is supported.
24981 dlopen_support=$enable_dlopen
24982
24983 # Whether dlopen of programs is supported.
24984 dlopen_self=$enable_dlopen_self
24985
24986 # Whether dlopen of statically linked programs is supported.
24987 dlopen_self_static=$enable_dlopen_self_static
24988
24989 # Commands to strip libraries.
24990 old_striplib=$lt_old_striplib
24991 striplib=$lt_striplib
24992
24993
24994 # The linker used to build libraries.
24995 LD=$lt_LD
24996
24997 # How to create reloadable object files.
24998 reload_flag=$lt_reload_flag
24999 reload_cmds=$lt_reload_cmds
25000
25001 # Commands used to build an old-style archive.
25002 old_archive_cmds=$lt_old_archive_cmds
25003
25004 # A language specific compiler.
25005 CC=$lt_compiler
25006
25007 # Is the compiler the GNU compiler?
25008 with_gcc=$GCC
25009
25010 # Compiler flag to turn off builtin functions.
25011 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25012
25013 # Additional compiler flags for building library objects.
25014 pic_flag=$lt_lt_prog_compiler_pic
25015
25016 # How to pass a linker flag through the compiler.
25017 wl=$lt_lt_prog_compiler_wl
25018
25019 # Compiler flag to prevent dynamic linking.
25020 link_static_flag=$lt_lt_prog_compiler_static
25021
25022 # Does compiler simultaneously support -c and -o options?
25023 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25024
25025 # Whether or not to add -lc for building shared libraries.
25026 build_libtool_need_lc=$archive_cmds_need_lc
25027
25028 # Whether or not to disallow shared libs when runtime libs are static.
25029 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25030
25031 # Compiler flag to allow reflexive dlopens.
25032 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25033
25034 # Compiler flag to generate shared objects directly from archives.
25035 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25036
25037 # Whether the compiler copes with passing no objects directly.
25038 compiler_needs_object=$lt_compiler_needs_object
25039
25040 # Create an old-style archive from a shared archive.
25041 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25042
25043 # Create a temporary old-style archive to link instead of a shared archive.
25044 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25045
25046 # Commands used to build a shared archive.
25047 archive_cmds=$lt_archive_cmds
25048 archive_expsym_cmds=$lt_archive_expsym_cmds
25049
25050 # Commands used to build a loadable module if different from building
25051 # a shared archive.
25052 module_cmds=$lt_module_cmds
25053 module_expsym_cmds=$lt_module_expsym_cmds
25054
25055 # Whether we are building with GNU ld or not.
25056 with_gnu_ld=$lt_with_gnu_ld
25057
25058 # Flag that allows shared libraries with undefined symbols to be built.
25059 allow_undefined_flag=$lt_allow_undefined_flag
25060
25061 # Flag that enforces no undefined symbols.
25062 no_undefined_flag=$lt_no_undefined_flag
25063
25064 # Flag to hardcode \$libdir into a binary during linking.
25065 # This must work even if \$libdir does not exist
25066 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25067
25068 # Whether we need a single "-rpath" flag with a separated argument.
25069 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25070
25071 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25072 # DIR into the resulting binary.
25073 hardcode_direct=$hardcode_direct
25074
25075 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25076 # DIR into the resulting binary and the resulting library dependency is
25077 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
25078 # library is relocated.
25079 hardcode_direct_absolute=$hardcode_direct_absolute
25080
25081 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25082 # into the resulting binary.
25083 hardcode_minus_L=$hardcode_minus_L
25084
25085 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25086 # into the resulting binary.
25087 hardcode_shlibpath_var=$hardcode_shlibpath_var
25088
25089 # Set to "yes" if building a shared library automatically hardcodes DIR
25090 # into the library and all subsequent libraries and executables linked
25091 # against it.
25092 hardcode_automatic=$hardcode_automatic
25093
25094 # Set to yes if linker adds runtime paths of dependent libraries
25095 # to runtime path list.
25096 inherit_rpath=$inherit_rpath
25097
25098 # Whether libtool must link a program against all its dependency libraries.
25099 link_all_deplibs=$link_all_deplibs
25100
25101 # Set to "yes" if exported symbols are required.
25102 always_export_symbols=$always_export_symbols
25103
25104 # The commands to list exported symbols.
25105 export_symbols_cmds=$lt_export_symbols_cmds
25106
25107 # Symbols that should not be listed in the preloaded symbols.
25108 exclude_expsyms=$lt_exclude_expsyms
25109
25110 # Symbols that must always be exported.
25111 include_expsyms=$lt_include_expsyms
25112
25113 # Commands necessary for linking programs (against libraries) with templates.
25114 prelink_cmds=$lt_prelink_cmds
25115
25116 # Commands necessary for finishing linking programs.
25117 postlink_cmds=$lt_postlink_cmds
25118
25119 # Specify filename containing input files.
25120 file_list_spec=$lt_file_list_spec
25121
25122 # How to hardcode a shared library path into an executable.
25123 hardcode_action=$hardcode_action
25124
25125 # ### END LIBTOOL CONFIG
25126
25127 _LT_EOF
25128
25129 cat <<'_LT_EOF' >> "$cfgfile"
25130
25131 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25132
25133 # func_munge_path_list VARIABLE PATH
25134 # -----------------------------------
25135 # VARIABLE is name of variable containing _space_ separated list of
25136 # directories to be munged by the contents of PATH, which is string
25137 # having a format:
25138 # "DIR[:DIR]:"
25139 # string "DIR[ DIR]" will be prepended to VARIABLE
25140 # ":DIR[:DIR]"
25141 # string "DIR[ DIR]" will be appended to VARIABLE
25142 # "DIRP[:DIRP]::[DIRA:]DIRA"
25143 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25144 # "DIRA[ DIRA]" will be appended to VARIABLE
25145 # "DIR[:DIR]"
25146 # VARIABLE will be replaced by "DIR[ DIR]"
25147 func_munge_path_list ()
25148 {
25149 case x$2 in
25150 x)
25151 ;;
25152 *:)
25153 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25154 ;;
25155 x:*)
25156 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25157 ;;
25158 *::*)
25159 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25160 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25161 ;;
25162 *)
25163 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25164 ;;
25165 esac
25166 }
25167
25168
25169 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
25170 func_cc_basename ()
25171 {
25172 for cc_temp in $*""; do
25173 case $cc_temp in
25174 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25175 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25176 \-*) ;;
25177 *) break;;
25178 esac
25179 done
25180 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25181 }
25182
25183
25184 # ### END FUNCTIONS SHARED WITH CONFIGURE
25185
25186 _LT_EOF
25187
25188 case $host_os in
25189 aix3*)
25190 cat <<\_LT_EOF >> "$cfgfile"
25191 # AIX sometimes has problems with the GCC collect2 program. For some
25192 # reason, if we set the COLLECT_NAMES environment variable, the problems
25193 # vanish in a puff of smoke.
25194 if test set != "${COLLECT_NAMES+set}"; then
25195 COLLECT_NAMES=
25196 export COLLECT_NAMES
25197 fi
25198 _LT_EOF
25199 ;;
25200 esac
25201
25202
25203 ltmain=$ac_aux_dir/ltmain.sh
25204
25205
25206 # We use sed instead of cat because bash on DJGPP gets confused if
25207 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25208 # text mode, it properly converts lines to CR/LF. This bash problem
25209 # is reportedly fixed, but why not run on old versions too?
25210 sed '$q' "$ltmain" >> "$cfgfile" \
25211 || (rm -f "$cfgfile"; exit 1)
25212
25213 mv -f "$cfgfile" "$ofile" ||
25214 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25215 chmod +x "$ofile"
25216
25217 ;;
25218 "po-directories":C)
25219 for ac_file in $CONFIG_FILES; do
25220 # Support "outfile[:infile[:infile...]]"
25221 case "$ac_file" in
25222 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25223 esac
25224 # PO directories have a Makefile.in generated from Makefile.in.in.
25225 case "$ac_file" in */Makefile.in)
25226 # Adjust a relative srcdir.
25227 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25228 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25229 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25230 # In autoconf-2.13 it is called $ac_given_srcdir.
25231 # In autoconf-2.50 it is called $srcdir.
25232 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25233 case "$ac_given_srcdir" in
25234 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25235 /*) top_srcdir="$ac_given_srcdir" ;;
25236 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
25237 esac
25238 # Treat a directory as a PO directory if and only if it has a
25239 # POTFILES.in file. This allows packages to have multiple PO
25240 # directories under different names or in different locations.
25241 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25242 rm -f "$ac_dir/POTFILES"
25243 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25244 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25245 POMAKEFILEDEPS="POTFILES.in"
25246 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25247 # on $ac_dir but don't depend on user-specified configuration
25248 # parameters.
25249 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25250 # The LINGUAS file contains the set of available languages.
25251 if test -n "$OBSOLETE_ALL_LINGUAS"; then
25252 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25253 fi
25254 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25255 # Hide the ALL_LINGUAS assigment from automake < 1.5.
25256 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25257 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25258 else
25259 # The set of available languages was given in configure.in.
25260 # Hide the ALL_LINGUAS assigment from automake < 1.5.
25261 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25262 fi
25263 # Compute POFILES
25264 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25265 # Compute UPDATEPOFILES
25266 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25267 # Compute DUMMYPOFILES
25268 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25269 # Compute GMOFILES
25270 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25271 case "$ac_given_srcdir" in
25272 .) srcdirpre= ;;
25273 *) srcdirpre='$(srcdir)/' ;;
25274 esac
25275 POFILES=
25276 UPDATEPOFILES=
25277 DUMMYPOFILES=
25278 GMOFILES=
25279 for lang in $ALL_LINGUAS; do
25280 POFILES="$POFILES $srcdirpre$lang.po"
25281 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25282 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25283 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25284 done
25285 # CATALOGS depends on both $ac_dir and the user's LINGUAS
25286 # environment variable.
25287 INST_LINGUAS=
25288 if test -n "$ALL_LINGUAS"; then
25289 for presentlang in $ALL_LINGUAS; do
25290 useit=no
25291 if test "%UNSET%" != "$LINGUAS"; then
25292 desiredlanguages="$LINGUAS"
25293 else
25294 desiredlanguages="$ALL_LINGUAS"
25295 fi
25296 for desiredlang in $desiredlanguages; do
25297 # Use the presentlang catalog if desiredlang is
25298 # a. equal to presentlang, or
25299 # b. a variant of presentlang (because in this case,
25300 # presentlang can be used as a fallback for messages
25301 # which are not translated in the desiredlang catalog).
25302 case "$desiredlang" in
25303 "$presentlang"*) useit=yes;;
25304 esac
25305 done
25306 if test $useit = yes; then
25307 INST_LINGUAS="$INST_LINGUAS $presentlang"
25308 fi
25309 done
25310 fi
25311 CATALOGS=
25312 if test -n "$INST_LINGUAS"; then
25313 for lang in $INST_LINGUAS; do
25314 CATALOGS="$CATALOGS $lang.gmo"
25315 done
25316 fi
25317 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25318 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"
25319 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25320 if test -f "$f"; then
25321 case "$f" in
25322 *.orig | *.bak | *~) ;;
25323 *) cat "$f" >> "$ac_dir/Makefile" ;;
25324 esac
25325 fi
25326 done
25327 fi
25328 ;;
25329 esac
25330 done ;;
25331
25332 esac
25333 done # for ac_tag
25334
25335
25336 as_fn_exit 0
25337 _ACEOF
25338 ac_clean_files=$ac_clean_files_save
25339
25340 test $ac_write_fail = 0 ||
25341 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25342
25343
25344 # configure is writing to config.log, and then calls config.status.
25345 # config.status does its own redirection, appending to config.log.
25346 # Unfortunately, on DOS this fails, as config.log is still kept open
25347 # by configure, so config.status won't be able to write to it; its
25348 # output is simply discarded. So we exec the FD to /dev/null,
25349 # effectively closing config.log, so it can be properly (re)opened and
25350 # appended to by config.status. When coming back to configure, we
25351 # need to make the FD available again.
25352 if test "$no_create" != yes; then
25353 ac_cs_success=:
25354 ac_config_status_args=
25355 test "$silent" = yes &&
25356 ac_config_status_args="$ac_config_status_args --quiet"
25357 exec 5>/dev/null
25358 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25359 exec 5>>config.log
25360 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25361 # would make configure fail if this is the last instruction.
25362 $ac_cs_success || as_fn_exit 1
25363 fi
25364 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25366 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25367 fi
25368