"Fossies" - the Fresh Open Source Software Archive 
Member "amavisd-milter-1.7.2/configure" (4 Jan 2022, 259073 Bytes) of package /linux/privat/amavisd-milter-1.7.2.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the latest
Fossies "Diffs" side-by-side code changes report for "configure":
1.7.1_vs_1.7.2.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for amavisd-milter 1.7.2.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME='amavisd-milter'
579 PACKAGE_TARNAME='amavisd-milter'
580 PACKAGE_VERSION='1.7.2'
581 PACKAGE_STRING='amavisd-milter 1.7.2'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
585 ac_unique_file="aclocal/acinclude.m4"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_subst_vars='am__EXEEXT_FALSE
623 am__EXEEXT_TRUE
624 LTLIBOBJS
625 EOVERFLOW
626 EILSEQ
627 SENDMAIL_OBJ_DIR
628 SENDMAIL_BASE_DIR
629 MILTER_LDFLAGS
630 MILTER_CPPFLAGS
631 MILTER_LIBS
632 LIBOBJS
633 EGREP
634 GREP
635 CPP
636 PTHREAD_CFLAGS
637 PTHREAD_LIBS
638 PTHREAD_CC
639 acx_pthread_config
640 ac_ct_AR
641 AR
642 am__fastdepCC_FALSE
643 am__fastdepCC_TRUE
644 CCDEPMODE
645 am__nodep
646 AMDEPBACKSLASH
647 AMDEP_FALSE
648 AMDEP_TRUE
649 am__include
650 DEPDIR
651 OBJEXT
652 EXEEXT
653 ac_ct_CC
654 CPPFLAGS
655 LDFLAGS
656 CFLAGS
657 CC
658 RANLIB
659 AM_BACKSLASH
660 AM_DEFAULT_VERBOSITY
661 AM_DEFAULT_V
662 AM_V
663 am__untar
664 am__tar
665 AMTAR
666 am__leading_dot
667 SET_MAKE
668 AWK
669 mkdir_p
670 MKDIR_P
671 INSTALL_STRIP_PROGRAM
672 STRIP
673 install_sh
674 MAKEINFO
675 AUTOHEADER
676 AUTOMAKE
677 AUTOCONF
678 ACLOCAL
679 VERSION
680 PACKAGE
681 CYGPATH_W
682 am__isrc
683 INSTALL_DATA
684 INSTALL_SCRIPT
685 INSTALL_PROGRAM
686 target_os
687 target_vendor
688 target_cpu
689 target
690 host_os
691 host_vendor
692 host_cpu
693 host
694 build_os
695 build_vendor
696 build_cpu
697 build
698 target_alias
699 host_alias
700 build_alias
701 LIBS
702 ECHO_T
703 ECHO_N
704 ECHO_C
705 DEFS
706 mandir
707 localedir
708 libdir
709 psdir
710 pdfdir
711 dvidir
712 htmldir
713 infodir
714 docdir
715 oldincludedir
716 includedir
717 runstatedir
718 localstatedir
719 sharedstatedir
720 sysconfdir
721 datadir
722 datarootdir
723 libexecdir
724 sbindir
725 bindir
726 program_transform_name
727 prefix
728 exec_prefix
729 PACKAGE_URL
730 PACKAGE_BUGREPORT
731 PACKAGE_STRING
732 PACKAGE_VERSION
733 PACKAGE_TARNAME
734 PACKAGE_NAME
735 PATH_SEPARATOR
736 SHELL
737 am__quote'
738 ac_subst_files=''
739 ac_user_opts='
740 enable_option_checking
741 enable_silent_rules
742 enable_dependency_tracking
743 enable_debug
744 with_sendmail
745 with_sendmail_base
746 with_sendmail_obj
747 with_working_dir
748 '
749 ac_precious_vars='build_alias
750 host_alias
751 target_alias
752 CC
753 CFLAGS
754 LDFLAGS
755 LIBS
756 CPPFLAGS
757 CPP'
758
759
760 # Initialize some variables set by options.
761 ac_init_help=
762 ac_init_version=false
763 ac_unrecognized_opts=
764 ac_unrecognized_sep=
765 # The variables have the same names as the options, with
766 # dashes changed to underlines.
767 cache_file=/dev/null
768 exec_prefix=NONE
769 no_create=
770 no_recursion=
771 prefix=NONE
772 program_prefix=NONE
773 program_suffix=NONE
774 program_transform_name=s,x,x,
775 silent=
776 site=
777 srcdir=
778 verbose=
779 x_includes=NONE
780 x_libraries=NONE
781
782 # Installation directory options.
783 # These are left unexpanded so users can "make install exec_prefix=/foo"
784 # and all the variables that are supposed to be based on exec_prefix
785 # by default will actually change.
786 # Use braces instead of parens because sh, perl, etc. also accept them.
787 # (The list follows the same order as the GNU Coding Standards.)
788 bindir='${exec_prefix}/bin'
789 sbindir='${exec_prefix}/sbin'
790 libexecdir='${exec_prefix}/libexec'
791 datarootdir='${prefix}/share'
792 datadir='${datarootdir}'
793 sysconfdir='${prefix}/etc'
794 sharedstatedir='${prefix}/com'
795 localstatedir='${prefix}/var'
796 runstatedir='${localstatedir}/run'
797 includedir='${prefix}/include'
798 oldincludedir='/usr/include'
799 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
800 infodir='${datarootdir}/info'
801 htmldir='${docdir}'
802 dvidir='${docdir}'
803 pdfdir='${docdir}'
804 psdir='${docdir}'
805 libdir='${exec_prefix}/lib'
806 localedir='${datarootdir}/locale'
807 mandir='${datarootdir}/man'
808
809 ac_prev=
810 ac_dashdash=
811 for ac_option
812 do
813 # If the previous option needs an argument, assign it.
814 if test -n "$ac_prev"; then
815 eval $ac_prev=\$ac_option
816 ac_prev=
817 continue
818 fi
819
820 case $ac_option in
821 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822 *=) ac_optarg= ;;
823 *) ac_optarg=yes ;;
824 esac
825
826 # Accept the important Cygnus configure options, so we can diagnose typos.
827
828 case $ac_dashdash$ac_option in
829 --)
830 ac_dashdash=yes ;;
831
832 -bindir | --bindir | --bindi | --bind | --bin | --bi)
833 ac_prev=bindir ;;
834 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835 bindir=$ac_optarg ;;
836
837 -build | --build | --buil | --bui | --bu)
838 ac_prev=build_alias ;;
839 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840 build_alias=$ac_optarg ;;
841
842 -cache-file | --cache-file | --cache-fil | --cache-fi \
843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844 ac_prev=cache_file ;;
845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847 cache_file=$ac_optarg ;;
848
849 --config-cache | -C)
850 cache_file=config.cache ;;
851
852 -datadir | --datadir | --datadi | --datad)
853 ac_prev=datadir ;;
854 -datadir=* | --datadir=* | --datadi=* | --datad=*)
855 datadir=$ac_optarg ;;
856
857 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858 | --dataroo | --dataro | --datar)
859 ac_prev=datarootdir ;;
860 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862 datarootdir=$ac_optarg ;;
863
864 -disable-* | --disable-*)
865 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868 as_fn_error $? "invalid feature name: $ac_useropt"
869 ac_useropt_orig=$ac_useropt
870 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
872 *"
873 "enable_$ac_useropt"
874 "*) ;;
875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876 ac_unrecognized_sep=', ';;
877 esac
878 eval enable_$ac_useropt=no ;;
879
880 -docdir | --docdir | --docdi | --doc | --do)
881 ac_prev=docdir ;;
882 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883 docdir=$ac_optarg ;;
884
885 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886 ac_prev=dvidir ;;
887 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888 dvidir=$ac_optarg ;;
889
890 -enable-* | --enable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error $? "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
898 *"
899 "enable_$ac_useropt"
900 "*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=\$ac_optarg ;;
905
906 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908 | --exec | --exe | --ex)
909 ac_prev=exec_prefix ;;
910 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912 | --exec=* | --exe=* | --ex=*)
913 exec_prefix=$ac_optarg ;;
914
915 -gas | --gas | --ga | --g)
916 # Obsolete; use --with-gas.
917 with_gas=yes ;;
918
919 -help | --help | --hel | --he | -h)
920 ac_init_help=long ;;
921 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922 ac_init_help=recursive ;;
923 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924 ac_init_help=short ;;
925
926 -host | --host | --hos | --ho)
927 ac_prev=host_alias ;;
928 -host=* | --host=* | --hos=* | --ho=*)
929 host_alias=$ac_optarg ;;
930
931 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932 ac_prev=htmldir ;;
933 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934 | --ht=*)
935 htmldir=$ac_optarg ;;
936
937 -includedir | --includedir | --includedi | --included | --include \
938 | --includ | --inclu | --incl | --inc)
939 ac_prev=includedir ;;
940 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941 | --includ=* | --inclu=* | --incl=* | --inc=*)
942 includedir=$ac_optarg ;;
943
944 -infodir | --infodir | --infodi | --infod | --info | --inf)
945 ac_prev=infodir ;;
946 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947 infodir=$ac_optarg ;;
948
949 -libdir | --libdir | --libdi | --libd)
950 ac_prev=libdir ;;
951 -libdir=* | --libdir=* | --libdi=* | --libd=*)
952 libdir=$ac_optarg ;;
953
954 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955 | --libexe | --libex | --libe)
956 ac_prev=libexecdir ;;
957 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958 | --libexe=* | --libex=* | --libe=*)
959 libexecdir=$ac_optarg ;;
960
961 -localedir | --localedir | --localedi | --localed | --locale)
962 ac_prev=localedir ;;
963 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964 localedir=$ac_optarg ;;
965
966 -localstatedir | --localstatedir | --localstatedi | --localstated \
967 | --localstate | --localstat | --localsta | --localst | --locals)
968 ac_prev=localstatedir ;;
969 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971 localstatedir=$ac_optarg ;;
972
973 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974 ac_prev=mandir ;;
975 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976 mandir=$ac_optarg ;;
977
978 -nfp | --nfp | --nf)
979 # Obsolete; use --without-fp.
980 with_fp=no ;;
981
982 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983 | --no-cr | --no-c | -n)
984 no_create=yes ;;
985
986 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988 no_recursion=yes ;;
989
990 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992 | --oldin | --oldi | --old | --ol | --o)
993 ac_prev=oldincludedir ;;
994 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997 oldincludedir=$ac_optarg ;;
998
999 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000 ac_prev=prefix ;;
1001 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002 prefix=$ac_optarg ;;
1003
1004 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005 | --program-pre | --program-pr | --program-p)
1006 ac_prev=program_prefix ;;
1007 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009 program_prefix=$ac_optarg ;;
1010
1011 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012 | --program-suf | --program-su | --program-s)
1013 ac_prev=program_suffix ;;
1014 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016 program_suffix=$ac_optarg ;;
1017
1018 -program-transform-name | --program-transform-name \
1019 | --program-transform-nam | --program-transform-na \
1020 | --program-transform-n | --program-transform- \
1021 | --program-transform | --program-transfor \
1022 | --program-transfo | --program-transf \
1023 | --program-trans | --program-tran \
1024 | --progr-tra | --program-tr | --program-t)
1025 ac_prev=program_transform_name ;;
1026 -program-transform-name=* | --program-transform-name=* \
1027 | --program-transform-nam=* | --program-transform-na=* \
1028 | --program-transform-n=* | --program-transform-=* \
1029 | --program-transform=* | --program-transfor=* \
1030 | --program-transfo=* | --program-transf=* \
1031 | --program-trans=* | --program-tran=* \
1032 | --progr-tra=* | --program-tr=* | --program-t=*)
1033 program_transform_name=$ac_optarg ;;
1034
1035 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036 ac_prev=pdfdir ;;
1037 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038 pdfdir=$ac_optarg ;;
1039
1040 -psdir | --psdir | --psdi | --psd | --ps)
1041 ac_prev=psdir ;;
1042 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043 psdir=$ac_optarg ;;
1044
1045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046 | -silent | --silent | --silen | --sile | --sil)
1047 silent=yes ;;
1048
1049 -runstatedir | --runstatedir | --runstatedi | --runstated \
1050 | --runstate | --runstat | --runsta | --runst | --runs \
1051 | --run | --ru | --r)
1052 ac_prev=runstatedir ;;
1053 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1054 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1055 | --run=* | --ru=* | --r=*)
1056 runstatedir=$ac_optarg ;;
1057
1058 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1059 ac_prev=sbindir ;;
1060 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1061 | --sbi=* | --sb=*)
1062 sbindir=$ac_optarg ;;
1063
1064 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1065 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1066 | --sharedst | --shareds | --shared | --share | --shar \
1067 | --sha | --sh)
1068 ac_prev=sharedstatedir ;;
1069 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1070 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1071 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1072 | --sha=* | --sh=*)
1073 sharedstatedir=$ac_optarg ;;
1074
1075 -site | --site | --sit)
1076 ac_prev=site ;;
1077 -site=* | --site=* | --sit=*)
1078 site=$ac_optarg ;;
1079
1080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1081 ac_prev=srcdir ;;
1082 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1083 srcdir=$ac_optarg ;;
1084
1085 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1086 | --syscon | --sysco | --sysc | --sys | --sy)
1087 ac_prev=sysconfdir ;;
1088 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1089 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1090 sysconfdir=$ac_optarg ;;
1091
1092 -target | --target | --targe | --targ | --tar | --ta | --t)
1093 ac_prev=target_alias ;;
1094 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1095 target_alias=$ac_optarg ;;
1096
1097 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1098 verbose=yes ;;
1099
1100 -version | --version | --versio | --versi | --vers | -V)
1101 ac_init_version=: ;;
1102
1103 -with-* | --with-*)
1104 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 as_fn_error $? "invalid package name: $ac_useropt"
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1111 *"
1112 "with_$ac_useropt"
1113 "*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
1117 eval with_$ac_useropt=\$ac_optarg ;;
1118
1119 -without-* | --without-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error $? "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=no ;;
1134
1135 --x)
1136 # Obsolete; use --with-x.
1137 with_x=yes ;;
1138
1139 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1140 | --x-incl | --x-inc | --x-in | --x-i)
1141 ac_prev=x_includes ;;
1142 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1143 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1144 x_includes=$ac_optarg ;;
1145
1146 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1147 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1148 ac_prev=x_libraries ;;
1149 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1150 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151 x_libraries=$ac_optarg ;;
1152
1153 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1154 Try \`$0 --help' for more information"
1155 ;;
1156
1157 *=*)
1158 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1159 # Reject names that are not valid shell variable names.
1160 case $ac_envvar in #(
1161 '' | [0-9]* | *[!_$as_cr_alnum]* )
1162 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1163 esac
1164 eval $ac_envvar=\$ac_optarg
1165 export $ac_envvar ;;
1166
1167 *)
1168 # FIXME: should be removed in autoconf 3.0.
1169 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1173 ;;
1174
1175 esac
1176 done
1177
1178 if test -n "$ac_prev"; then
1179 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180 as_fn_error $? "missing argument to $ac_option"
1181 fi
1182
1183 if test -n "$ac_unrecognized_opts"; then
1184 case $enable_option_checking in
1185 no) ;;
1186 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1187 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188 esac
1189 fi
1190
1191 # Check all directory arguments for consistency.
1192 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1193 datadir sysconfdir sharedstatedir localstatedir includedir \
1194 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1195 libdir localedir mandir runstatedir
1196 do
1197 eval ac_val=\$$ac_var
1198 # Remove trailing slashes.
1199 case $ac_val in
1200 */ )
1201 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1202 eval $ac_var=\$ac_val;;
1203 esac
1204 # Be sure to have absolute directory names.
1205 case $ac_val in
1206 [\\/$]* | ?:[\\/]* ) continue;;
1207 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208 esac
1209 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1210 done
1211
1212 # There might be people who depend on the old broken behavior: `$host'
1213 # used to hold the argument of --host etc.
1214 # FIXME: To remove some day.
1215 build=$build_alias
1216 host=$host_alias
1217 target=$target_alias
1218
1219 # FIXME: To remove some day.
1220 if test "x$host_alias" != x; then
1221 if test "x$build_alias" = x; then
1222 cross_compiling=maybe
1223 elif test "x$build_alias" != "x$host_alias"; then
1224 cross_compiling=yes
1225 fi
1226 fi
1227
1228 ac_tool_prefix=
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230
1231 test "$silent" = yes && exec 6>/dev/null
1232
1233
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237 as_fn_error $? "working directory cannot be determined"
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 as_fn_error $? "pwd does not report name of working directory"
1240
1241
1242 # Find the source files, if location was not specified.
1243 if test -z "$srcdir"; then
1244 ac_srcdir_defaulted=yes
1245 # Try the directory containing this script, then the parent directory.
1246 ac_confdir=`$as_dirname -- "$as_myself" ||
1247 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248 X"$as_myself" : 'X\(//\)[^/]' \| \
1249 X"$as_myself" : 'X\(//\)$' \| \
1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251 $as_echo X"$as_myself" |
1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)[^/].*/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\/\)$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\).*/{
1265 s//\1/
1266 q
1267 }
1268 s/.*/./; q'`
1269 srcdir=$ac_confdir
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 srcdir=..
1272 fi
1273 else
1274 ac_srcdir_defaulted=no
1275 fi
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1278 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1279 fi
1280 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281 ac_abs_confdir=`(
1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1283 pwd)`
1284 # When building in place, set srcdir=.
1285 if test "$ac_abs_confdir" = "$ac_pwd"; then
1286 srcdir=.
1287 fi
1288 # Remove unnecessary trailing slashes from srcdir.
1289 # Double slashes in file names in object file debugging info
1290 # mess up M-x gdb in Emacs.
1291 case $srcdir in
1292 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293 esac
1294 for ac_var in $ac_precious_vars; do
1295 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_env_${ac_var}_value=\$${ac_var}
1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299 done
1300
1301 #
1302 # Report the --help message.
1303 #
1304 if test "$ac_init_help" = "long"; then
1305 # Omit some internal or obsolete options to make the list less imposing.
1306 # This message is too long to be a string in the A/UX 3.1 sh.
1307 cat <<_ACEOF
1308 \`configure' configures amavisd-milter 1.7.2 to adapt to many kinds of systems.
1309
1310 Usage: $0 [OPTION]... [VAR=VALUE]...
1311
1312 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313 VAR=VALUE. See below for descriptions of some of the useful variables.
1314
1315 Defaults for the options are specified in brackets.
1316
1317 Configuration:
1318 -h, --help display this help and exit
1319 --help=short display options specific to this package
1320 --help=recursive display the short help of all the included packages
1321 -V, --version display version information and exit
1322 -q, --quiet, --silent do not print \`checking ...' messages
1323 --cache-file=FILE cache test results in FILE [disabled]
1324 -C, --config-cache alias for \`--cache-file=config.cache'
1325 -n, --no-create do not create output files
1326 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1327
1328 Installation directories:
1329 --prefix=PREFIX install architecture-independent files in PREFIX
1330 [$ac_default_prefix]
1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1332 [PREFIX]
1333
1334 By default, \`make install' will install all the files in
1335 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1336 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1337 for instance \`--prefix=\$HOME'.
1338
1339 For better control, use the options below.
1340
1341 Fine tuning of the installation directories:
1342 --bindir=DIR user executables [EPREFIX/bin]
1343 --sbindir=DIR system admin executables [EPREFIX/sbin]
1344 --libexecdir=DIR program executables [EPREFIX/libexec]
1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1348 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1349 --libdir=DIR object code libraries [EPREFIX/lib]
1350 --includedir=DIR C header files [PREFIX/include]
1351 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1352 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1353 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1354 --infodir=DIR info documentation [DATAROOTDIR/info]
1355 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1356 --mandir=DIR man documentation [DATAROOTDIR/man]
1357 --docdir=DIR documentation root [DATAROOTDIR/doc/amavisd-milter]
1358 --htmldir=DIR html documentation [DOCDIR]
1359 --dvidir=DIR dvi documentation [DOCDIR]
1360 --pdfdir=DIR pdf documentation [DOCDIR]
1361 --psdir=DIR ps documentation [DOCDIR]
1362 _ACEOF
1363
1364 cat <<\_ACEOF
1365
1366 Program names:
1367 --program-prefix=PREFIX prepend PREFIX to installed program names
1368 --program-suffix=SUFFIX append SUFFIX to installed program names
1369 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1370
1371 System types:
1372 --build=BUILD configure for building on BUILD [guessed]
1373 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1374 --target=TARGET configure for building compilers for TARGET [HOST]
1375 _ACEOF
1376 fi
1377
1378 if test -n "$ac_init_help"; then
1379 case $ac_init_help in
1380 short | recursive ) echo "Configuration of amavisd-milter 1.7.2:";;
1381 esac
1382 cat <<\_ACEOF
1383
1384 Optional Features:
1385 --disable-option-checking ignore unrecognized --enable/--with options
1386 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1387 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1388 --enable-silent-rules less verbose build output (undo: "make V=1")
1389 --disable-silent-rules verbose build output (undo: "make V=0")
1390 --enable-dependency-tracking
1391 do not reject slow dependency extractors
1392 --disable-dependency-tracking
1393 speeds up one-time build
1394 --enable-debug enables debug output and debug symbols [default=no]
1395
1396 Optional Packages:
1397 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1398 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1399 --with-sendmail=<DIR> base directory of sendmail installation
1400 --with-sendmail-base=<DIR> base directory of sendmail distribution
1401 --with-sendmail-obj=<DIR> obj.* subdirectory in sendmail distribution
1402 --with-working-dir[=<DIR>] set working directory (default tmp)
1403 SUBDIR subdirectry of local state dirertory
1404 /DIR absolute path to working directory
1405
1406 Some influential environment variables:
1407 CC C compiler command
1408 CFLAGS C compiler flags
1409 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1410 nonstandard directory <lib dir>
1411 LIBS libraries to pass to the linker, e.g. -l<library>
1412 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1413 you have headers in a nonstandard directory <include dir>
1414 CPP C preprocessor
1415
1416 Use these variables to override the choices made by `configure' or to help
1417 it to find libraries and programs with nonstandard names/locations.
1418
1419 Report bugs to the package provider.
1420 _ACEOF
1421 ac_status=$?
1422 fi
1423
1424 if test "$ac_init_help" = "recursive"; then
1425 # If there are subdirs, report their specific --help.
1426 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1427 test -d "$ac_dir" ||
1428 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1429 continue
1430 ac_builddir=.
1431
1432 case "$ac_dir" in
1433 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *)
1435 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1436 # A ".." for each directory in $ac_dir_suffix.
1437 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1438 case $ac_top_builddir_sub in
1439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1441 esac ;;
1442 esac
1443 ac_abs_top_builddir=$ac_pwd
1444 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1445 # for backward compatibility:
1446 ac_top_builddir=$ac_top_build_prefix
1447
1448 case $srcdir in
1449 .) # We are building in place.
1450 ac_srcdir=.
1451 ac_top_srcdir=$ac_top_builddir_sub
1452 ac_abs_top_srcdir=$ac_pwd ;;
1453 [\\/]* | ?:[\\/]* ) # Absolute name.
1454 ac_srcdir=$srcdir$ac_dir_suffix;
1455 ac_top_srcdir=$srcdir
1456 ac_abs_top_srcdir=$srcdir ;;
1457 *) # Relative name.
1458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1459 ac_top_srcdir=$ac_top_build_prefix$srcdir
1460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1461 esac
1462 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1463
1464 cd "$ac_dir" || { ac_status=$?; continue; }
1465 # Check for guested configure.
1466 if test -f "$ac_srcdir/configure.gnu"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1469 elif test -f "$ac_srcdir/configure"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure" --help=recursive
1472 else
1473 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1474 fi || ac_status=$?
1475 cd "$ac_pwd" || { ac_status=$?; break; }
1476 done
1477 fi
1478
1479 test -n "$ac_init_help" && exit $ac_status
1480 if $ac_init_version; then
1481 cat <<\_ACEOF
1482 amavisd-milter configure 1.7.2
1483 generated by GNU Autoconf 2.69
1484
1485 Copyright (C) 2012 Free Software Foundation, Inc.
1486 This configure script is free software; the Free Software Foundation
1487 gives unlimited permission to copy, distribute and modify it.
1488 _ACEOF
1489 exit
1490 fi
1491
1492 ## ------------------------ ##
1493 ## Autoconf initialization. ##
1494 ## ------------------------ ##
1495
1496 # ac_fn_c_try_compile LINENO
1497 # --------------------------
1498 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1499 ac_fn_c_try_compile ()
1500 {
1501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1502 rm -f conftest.$ac_objext
1503 if { { ac_try="$ac_compile"
1504 case "(($ac_try" in
1505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1506 *) ac_try_echo=$ac_try;;
1507 esac
1508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1509 $as_echo "$ac_try_echo"; } >&5
1510 (eval "$ac_compile") 2>conftest.err
1511 ac_status=$?
1512 if test -s conftest.err; then
1513 grep -v '^ *+' conftest.err >conftest.er1
1514 cat conftest.er1 >&5
1515 mv -f conftest.er1 conftest.err
1516 fi
1517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1518 test $ac_status = 0; } && {
1519 test -z "$ac_c_werror_flag" ||
1520 test ! -s conftest.err
1521 } && test -s conftest.$ac_objext; then :
1522 ac_retval=0
1523 else
1524 $as_echo "$as_me: failed program was:" >&5
1525 sed 's/^/| /' conftest.$ac_ext >&5
1526
1527 ac_retval=1
1528 fi
1529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1530 as_fn_set_status $ac_retval
1531
1532 } # ac_fn_c_try_compile
1533
1534 # ac_fn_c_try_link LINENO
1535 # -----------------------
1536 # Try to link conftest.$ac_ext, and return whether this succeeded.
1537 ac_fn_c_try_link ()
1538 {
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 rm -f conftest.$ac_objext conftest$ac_exeext
1541 if { { ac_try="$ac_link"
1542 case "(($ac_try" in
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1545 esac
1546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547 $as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_link") 2>conftest.err
1549 ac_status=$?
1550 if test -s conftest.err; then
1551 grep -v '^ *+' conftest.err >conftest.er1
1552 cat conftest.er1 >&5
1553 mv -f conftest.er1 conftest.err
1554 fi
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } && {
1557 test -z "$ac_c_werror_flag" ||
1558 test ! -s conftest.err
1559 } && test -s conftest$ac_exeext && {
1560 test "$cross_compiling" = yes ||
1561 test -x conftest$ac_exeext
1562 }; then :
1563 ac_retval=0
1564 else
1565 $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1567
1568 ac_retval=1
1569 fi
1570 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1571 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1572 # interfere with the next link command; also delete a directory that is
1573 # left behind by Apple's compiler. We do this before executing the actions.
1574 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576 as_fn_set_status $ac_retval
1577
1578 } # ac_fn_c_try_link
1579
1580 # ac_fn_c_check_func LINENO FUNC VAR
1581 # ----------------------------------
1582 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1583 ac_fn_c_check_func ()
1584 {
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587 $as_echo_n "checking for $2... " >&6; }
1588 if eval \${$3+:} false; then :
1589 $as_echo_n "(cached) " >&6
1590 else
1591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592 /* end confdefs.h. */
1593 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1595 #define $2 innocuous_$2
1596
1597 /* System header to define __stub macros and hopefully few prototypes,
1598 which can conflict with char $2 (); below.
1599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1600 <limits.h> exists even on freestanding compilers. */
1601
1602 #ifdef __STDC__
1603 # include <limits.h>
1604 #else
1605 # include <assert.h>
1606 #endif
1607
1608 #undef $2
1609
1610 /* Override any GCC internal prototype to avoid an error.
1611 Use char because int might match the return type of a GCC
1612 builtin and then its argument prototype would still apply. */
1613 #ifdef __cplusplus
1614 extern "C"
1615 #endif
1616 char $2 ();
1617 /* The GNU C library defines this for functions which it implements
1618 to always fail with ENOSYS. Some functions are actually named
1619 something starting with __ and the normal name is an alias. */
1620 #if defined __stub_$2 || defined __stub___$2
1621 choke me
1622 #endif
1623
1624 int
1625 main ()
1626 {
1627 return $2 ();
1628 ;
1629 return 0;
1630 }
1631 _ACEOF
1632 if ac_fn_c_try_link "$LINENO"; then :
1633 eval "$3=yes"
1634 else
1635 eval "$3=no"
1636 fi
1637 rm -f core conftest.err conftest.$ac_objext \
1638 conftest$ac_exeext conftest.$ac_ext
1639 fi
1640 eval ac_res=\$$3
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642 $as_echo "$ac_res" >&6; }
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644
1645 } # ac_fn_c_check_func
1646
1647 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1648 # -------------------------------------------
1649 # Tests whether TYPE exists after having included INCLUDES, setting cache
1650 # variable VAR accordingly.
1651 ac_fn_c_check_type ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if eval \${$3+:} false; then :
1657 $as_echo_n "(cached) " >&6
1658 else
1659 eval "$3=no"
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1662 $4
1663 int
1664 main ()
1665 {
1666 if (sizeof ($2))
1667 return 0;
1668 ;
1669 return 0;
1670 }
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"; then :
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1675 $4
1676 int
1677 main ()
1678 {
1679 if (sizeof (($2)))
1680 return 0;
1681 ;
1682 return 0;
1683 }
1684 _ACEOF
1685 if ac_fn_c_try_compile "$LINENO"; then :
1686
1687 else
1688 eval "$3=yes"
1689 fi
1690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691 fi
1692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1693 fi
1694 eval ac_res=\$$3
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696 $as_echo "$ac_res" >&6; }
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698
1699 } # ac_fn_c_check_type
1700
1701 # ac_fn_c_try_cpp LINENO
1702 # ----------------------
1703 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1704 ac_fn_c_try_cpp ()
1705 {
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if { { ac_try="$ac_cpp conftest.$ac_ext"
1708 case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1715 ac_status=$?
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1720 fi
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } > conftest.i && {
1723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 }; then :
1726 ac_retval=0
1727 else
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1730
1731 ac_retval=1
1732 fi
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_cpp
1737
1738 # ac_fn_c_try_run LINENO
1739 # ----------------------
1740 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1741 # that executables *can* be run.
1742 ac_fn_c_try_run ()
1743 {
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if { { ac_try="$ac_link"
1746 case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_link") 2>&5
1753 ac_status=$?
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1756 { { case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_try") 2>&5
1763 ac_status=$?
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; }; }; then :
1766 ac_retval=0
1767 else
1768 $as_echo "$as_me: program exited with status $ac_status" >&5
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1771
1772 ac_retval=$ac_status
1773 fi
1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 as_fn_set_status $ac_retval
1777
1778 } # ac_fn_c_try_run
1779
1780 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1781 # -------------------------------------------------------
1782 # Tests whether HEADER exists and can be compiled using the include files in
1783 # INCLUDES, setting the cache variable VAR accordingly.
1784 ac_fn_c_check_header_compile ()
1785 {
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788 $as_echo_n "checking for $2... " >&6; }
1789 if eval \${$3+:} false; then :
1790 $as_echo_n "(cached) " >&6
1791 else
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1794 $4
1795 #include <$2>
1796 _ACEOF
1797 if ac_fn_c_try_compile "$LINENO"; then :
1798 eval "$3=yes"
1799 else
1800 eval "$3=no"
1801 fi
1802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803 fi
1804 eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806 $as_echo "$ac_res" >&6; }
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808
1809 } # ac_fn_c_check_header_compile
1810
1811 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1812 # ----------------------------------------------------
1813 # Tries to find if the field MEMBER exists in type AGGR, after including
1814 # INCLUDES, setting cache variable VAR accordingly.
1815 ac_fn_c_check_member ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1819 $as_echo_n "checking for $2.$3... " >&6; }
1820 if eval \${$4+:} false; then :
1821 $as_echo_n "(cached) " >&6
1822 else
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 $5
1826 int
1827 main ()
1828 {
1829 static $2 ac_aggr;
1830 if (ac_aggr.$3)
1831 return 0;
1832 ;
1833 return 0;
1834 }
1835 _ACEOF
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837 eval "$4=yes"
1838 else
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1841 $5
1842 int
1843 main ()
1844 {
1845 static $2 ac_aggr;
1846 if (sizeof ac_aggr.$3)
1847 return 0;
1848 ;
1849 return 0;
1850 }
1851 _ACEOF
1852 if ac_fn_c_try_compile "$LINENO"; then :
1853 eval "$4=yes"
1854 else
1855 eval "$4=no"
1856 fi
1857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1858 fi
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860 fi
1861 eval ac_res=\$$4
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866 } # ac_fn_c_check_member
1867
1868 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1869 # ---------------------------------------------
1870 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1871 # accordingly.
1872 ac_fn_c_check_decl ()
1873 {
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 as_decl_name=`echo $2|sed 's/ *(.*//'`
1876 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1878 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1879 if eval \${$3+:} false; then :
1880 $as_echo_n "(cached) " >&6
1881 else
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 $4
1885 int
1886 main ()
1887 {
1888 #ifndef $as_decl_name
1889 #ifdef __cplusplus
1890 (void) $as_decl_use;
1891 #else
1892 (void) $as_decl_name;
1893 #endif
1894 #endif
1895
1896 ;
1897 return 0;
1898 }
1899 _ACEOF
1900 if ac_fn_c_try_compile "$LINENO"; then :
1901 eval "$3=yes"
1902 else
1903 eval "$3=no"
1904 fi
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906 fi
1907 eval ac_res=\$$3
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911
1912 } # ac_fn_c_check_decl
1913
1914 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1915 # -------------------------------------------------------
1916 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1917 # the include files in INCLUDES and setting the cache variable VAR
1918 # accordingly.
1919 ac_fn_c_check_header_mongrel ()
1920 {
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if eval \${$3+:} false; then :
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926 $as_echo_n "(cached) " >&6
1927 fi
1928 eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 else
1932 # Is the header compilable?
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1934 $as_echo_n "checking $2 usability... " >&6; }
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1937 $4
1938 #include <$2>
1939 _ACEOF
1940 if ac_fn_c_try_compile "$LINENO"; then :
1941 ac_header_compiler=yes
1942 else
1943 ac_header_compiler=no
1944 fi
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1947 $as_echo "$ac_header_compiler" >&6; }
1948
1949 # Is the header present?
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1951 $as_echo_n "checking $2 presence... " >&6; }
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1954 #include <$2>
1955 _ACEOF
1956 if ac_fn_c_try_cpp "$LINENO"; then :
1957 ac_header_preproc=yes
1958 else
1959 ac_header_preproc=no
1960 fi
1961 rm -f conftest.err conftest.i conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1963 $as_echo "$ac_header_preproc" >&6; }
1964
1965 # So? What about this header?
1966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1967 yes:no: )
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1969 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1971 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1972 ;;
1973 no:yes:* )
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1975 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1977 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1979 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1981 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1983 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984 ;;
1985 esac
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if eval \${$3+:} false; then :
1989 $as_echo_n "(cached) " >&6
1990 else
1991 eval "$3=\$ac_header_compiler"
1992 fi
1993 eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 fi
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998
1999 } # ac_fn_c_check_header_mongrel
2000
2001 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2002 # --------------------------------------------
2003 # Tries to find the compile-time value of EXPR in a program that includes
2004 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2005 # computed
2006 ac_fn_c_compute_int ()
2007 {
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 if test "$cross_compiling" = yes; then
2010 # Depending upon the size, compute the lo and hi bounds.
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2013 $4
2014 int
2015 main ()
2016 {
2017 static int test_array [1 - 2 * !(($2) >= 0)];
2018 test_array [0] = 0;
2019 return test_array [0];
2020
2021 ;
2022 return 0;
2023 }
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 ac_lo=0 ac_mid=0
2027 while :; do
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 $4
2031 int
2032 main ()
2033 {
2034 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2035 test_array [0] = 0;
2036 return test_array [0];
2037
2038 ;
2039 return 0;
2040 }
2041 _ACEOF
2042 if ac_fn_c_try_compile "$LINENO"; then :
2043 ac_hi=$ac_mid; break
2044 else
2045 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2046 if test $ac_lo -le $ac_mid; then
2047 ac_lo= ac_hi=
2048 break
2049 fi
2050 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2051 fi
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 done
2054 else
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2057 $4
2058 int
2059 main ()
2060 {
2061 static int test_array [1 - 2 * !(($2) < 0)];
2062 test_array [0] = 0;
2063 return test_array [0];
2064
2065 ;
2066 return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070 ac_hi=-1 ac_mid=-1
2071 while :; do
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 $4
2075 int
2076 main ()
2077 {
2078 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2079 test_array [0] = 0;
2080 return test_array [0];
2081
2082 ;
2083 return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_lo=$ac_mid; break
2088 else
2089 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2090 if test $ac_mid -le $ac_hi; then
2091 ac_lo= ac_hi=
2092 break
2093 fi
2094 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 done
2098 else
2099 ac_lo= ac_hi=
2100 fi
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 fi
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 # Binary search between lo and hi bounds.
2105 while test "x$ac_lo" != "x$ac_hi"; do
2106 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2109 $4
2110 int
2111 main ()
2112 {
2113 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2114 test_array [0] = 0;
2115 return test_array [0];
2116
2117 ;
2118 return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122 ac_hi=$ac_mid
2123 else
2124 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 done
2128 case $ac_lo in #((
2129 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2130 '') ac_retval=1 ;;
2131 esac
2132 else
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2135 $4
2136 static long int longval () { return $2; }
2137 static unsigned long int ulongval () { return $2; }
2138 #include <stdio.h>
2139 #include <stdlib.h>
2140 int
2141 main ()
2142 {
2143
2144 FILE *f = fopen ("conftest.val", "w");
2145 if (! f)
2146 return 1;
2147 if (($2) < 0)
2148 {
2149 long int i = longval ();
2150 if (i != ($2))
2151 return 1;
2152 fprintf (f, "%ld", i);
2153 }
2154 else
2155 {
2156 unsigned long int i = ulongval ();
2157 if (i != ($2))
2158 return 1;
2159 fprintf (f, "%lu", i);
2160 }
2161 /* Do not output a trailing newline, as this causes \r\n confusion
2162 on some platforms. */
2163 return ferror (f) || fclose (f) != 0;
2164
2165 ;
2166 return 0;
2167 }
2168 _ACEOF
2169 if ac_fn_c_try_run "$LINENO"; then :
2170 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2171 else
2172 ac_retval=1
2173 fi
2174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2175 conftest.$ac_objext conftest.beam conftest.$ac_ext
2176 rm -f conftest.val
2177
2178 fi
2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180 as_fn_set_status $ac_retval
2181
2182 } # ac_fn_c_compute_int
2183 cat >config.log <<_ACEOF
2184 This file contains any messages produced by compilers while
2185 running configure, to aid debugging if configure makes a mistake.
2186
2187 It was created by amavisd-milter $as_me 1.7.2, which was
2188 generated by GNU Autoconf 2.69. Invocation command line was
2189
2190 $ $0 $@
2191
2192 _ACEOF
2193 exec 5>>config.log
2194 {
2195 cat <<_ASUNAME
2196 ## --------- ##
2197 ## Platform. ##
2198 ## --------- ##
2199
2200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2205
2206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2207 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2208
2209 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2210 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2212 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2213 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2214 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2215 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2216
2217 _ASUNAME
2218
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 for as_dir in $PATH
2221 do
2222 IFS=$as_save_IFS
2223 test -z "$as_dir" && as_dir=.
2224 $as_echo "PATH: $as_dir"
2225 done
2226 IFS=$as_save_IFS
2227
2228 } >&5
2229
2230 cat >&5 <<_ACEOF
2231
2232
2233 ## ----------- ##
2234 ## Core tests. ##
2235 ## ----------- ##
2236
2237 _ACEOF
2238
2239
2240 # Keep a trace of the command line.
2241 # Strip out --no-create and --no-recursion so they do not pile up.
2242 # Strip out --silent because we don't want to record it for future runs.
2243 # Also quote any args containing shell meta-characters.
2244 # Make two passes to allow for proper duplicate-argument suppression.
2245 ac_configure_args=
2246 ac_configure_args0=
2247 ac_configure_args1=
2248 ac_must_keep_next=false
2249 for ac_pass in 1 2
2250 do
2251 for ac_arg
2252 do
2253 case $ac_arg in
2254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2256 | -silent | --silent | --silen | --sile | --sil)
2257 continue ;;
2258 *\'*)
2259 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2260 esac
2261 case $ac_pass in
2262 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2263 2)
2264 as_fn_append ac_configure_args1 " '$ac_arg'"
2265 if test $ac_must_keep_next = true; then
2266 ac_must_keep_next=false # Got value, back to normal.
2267 else
2268 case $ac_arg in
2269 *=* | --config-cache | -C | -disable-* | --disable-* \
2270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2272 | -with-* | --with-* | -without-* | --without-* | --x)
2273 case "$ac_configure_args0 " in
2274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2275 esac
2276 ;;
2277 -* ) ac_must_keep_next=true ;;
2278 esac
2279 fi
2280 as_fn_append ac_configure_args " '$ac_arg'"
2281 ;;
2282 esac
2283 done
2284 done
2285 { ac_configure_args0=; unset ac_configure_args0;}
2286 { ac_configure_args1=; unset ac_configure_args1;}
2287
2288 # When interrupted or exit'd, cleanup temporary files, and complete
2289 # config.log. We remove comments because anyway the quotes in there
2290 # would cause problems or look ugly.
2291 # WARNING: Use '\'' to represent an apostrophe within the trap.
2292 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2293 trap 'exit_status=$?
2294 # Save into config.log some information that might help in debugging.
2295 {
2296 echo
2297
2298 $as_echo "## ---------------- ##
2299 ## Cache variables. ##
2300 ## ---------------- ##"
2301 echo
2302 # The following way of writing the cache mishandles newlines in values,
2303 (
2304 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2305 eval ac_val=\$$ac_var
2306 case $ac_val in #(
2307 *${as_nl}*)
2308 case $ac_var in #(
2309 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2310 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2311 esac
2312 case $ac_var in #(
2313 _ | IFS | as_nl) ;; #(
2314 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2315 *) { eval $ac_var=; unset $ac_var;} ;;
2316 esac ;;
2317 esac
2318 done
2319 (set) 2>&1 |
2320 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2321 *${as_nl}ac_space=\ *)
2322 sed -n \
2323 "s/'\''/'\''\\\\'\'''\''/g;
2324 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2325 ;; #(
2326 *)
2327 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2328 ;;
2329 esac |
2330 sort
2331 )
2332 echo
2333
2334 $as_echo "## ----------------- ##
2335 ## Output variables. ##
2336 ## ----------------- ##"
2337 echo
2338 for ac_var in $ac_subst_vars
2339 do
2340 eval ac_val=\$$ac_var
2341 case $ac_val in
2342 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2343 esac
2344 $as_echo "$ac_var='\''$ac_val'\''"
2345 done | sort
2346 echo
2347
2348 if test -n "$ac_subst_files"; then
2349 $as_echo "## ------------------- ##
2350 ## File substitutions. ##
2351 ## ------------------- ##"
2352 echo
2353 for ac_var in $ac_subst_files
2354 do
2355 eval ac_val=\$$ac_var
2356 case $ac_val in
2357 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2358 esac
2359 $as_echo "$ac_var='\''$ac_val'\''"
2360 done | sort
2361 echo
2362 fi
2363
2364 if test -s confdefs.h; then
2365 $as_echo "## ----------- ##
2366 ## confdefs.h. ##
2367 ## ----------- ##"
2368 echo
2369 cat confdefs.h
2370 echo
2371 fi
2372 test "$ac_signal" != 0 &&
2373 $as_echo "$as_me: caught signal $ac_signal"
2374 $as_echo "$as_me: exit $exit_status"
2375 } >&5
2376 rm -f core *.core core.conftest.* &&
2377 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2378 exit $exit_status
2379 ' 0
2380 for ac_signal in 1 2 13 15; do
2381 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2382 done
2383 ac_signal=0
2384
2385 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2386 rm -f -r conftest* confdefs.h
2387
2388 $as_echo "/* confdefs.h */" > confdefs.h
2389
2390 # Predefined preprocessor variables.
2391
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_NAME "$PACKAGE_NAME"
2394 _ACEOF
2395
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2398 _ACEOF
2399
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2402 _ACEOF
2403
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_STRING "$PACKAGE_STRING"
2406 _ACEOF
2407
2408 cat >>confdefs.h <<_ACEOF
2409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2410 _ACEOF
2411
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_URL "$PACKAGE_URL"
2414 _ACEOF
2415
2416
2417 # Let the site file select an alternate cache file if it wants to.
2418 # Prefer an explicitly selected file to automatically selected ones.
2419 ac_site_file1=NONE
2420 ac_site_file2=NONE
2421 if test -n "$CONFIG_SITE"; then
2422 # We do not want a PATH search for config.site.
2423 case $CONFIG_SITE in #((
2424 -*) ac_site_file1=./$CONFIG_SITE;;
2425 */*) ac_site_file1=$CONFIG_SITE;;
2426 *) ac_site_file1=./$CONFIG_SITE;;
2427 esac
2428 elif test "x$prefix" != xNONE; then
2429 ac_site_file1=$prefix/share/config.site
2430 ac_site_file2=$prefix/etc/config.site
2431 else
2432 ac_site_file1=$ac_default_prefix/share/config.site
2433 ac_site_file2=$ac_default_prefix/etc/config.site
2434 fi
2435 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2436 do
2437 test "x$ac_site_file" = xNONE && continue
2438 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2440 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2441 sed 's/^/| /' "$ac_site_file" >&5
2442 . "$ac_site_file" \
2443 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2445 as_fn_error $? "failed to load site script $ac_site_file
2446 See \`config.log' for more details" "$LINENO" 5; }
2447 fi
2448 done
2449
2450 if test -r "$cache_file"; then
2451 # Some versions of bash will fail to source /dev/null (special files
2452 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2453 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2455 $as_echo "$as_me: loading cache $cache_file" >&6;}
2456 case $cache_file in
2457 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2458 *) . "./$cache_file";;
2459 esac
2460 fi
2461 else
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2463 $as_echo "$as_me: creating cache $cache_file" >&6;}
2464 >$cache_file
2465 fi
2466
2467 # Check that the precious variables saved in the cache have kept the same
2468 # value.
2469 ac_cache_corrupted=false
2470 for ac_var in $ac_precious_vars; do
2471 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2472 eval ac_new_set=\$ac_env_${ac_var}_set
2473 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2474 eval ac_new_val=\$ac_env_${ac_var}_value
2475 case $ac_old_set,$ac_new_set in
2476 set,)
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2478 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2479 ac_cache_corrupted=: ;;
2480 ,set)
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2482 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2483 ac_cache_corrupted=: ;;
2484 ,);;
2485 *)
2486 if test "x$ac_old_val" != "x$ac_new_val"; then
2487 # differences in whitespace do not lead to failure.
2488 ac_old_val_w=`echo x $ac_old_val`
2489 ac_new_val_w=`echo x $ac_new_val`
2490 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2492 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2493 ac_cache_corrupted=:
2494 else
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2496 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2497 eval $ac_var=\$ac_old_val
2498 fi
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2500 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2502 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2503 fi;;
2504 esac
2505 # Pass precious variables to config.status.
2506 if test "$ac_new_set" = set; then
2507 case $ac_new_val in
2508 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2509 *) ac_arg=$ac_var=$ac_new_val ;;
2510 esac
2511 case " $ac_configure_args " in
2512 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2513 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2514 esac
2515 fi
2516 done
2517 if $ac_cache_corrupted; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2521 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2522 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2523 fi
2524 ## -------------------- ##
2525 ## Main body of script. ##
2526 ## -------------------- ##
2527
2528 ac_ext=c
2529 ac_cpp='$CPP $CPPFLAGS'
2530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2533
2534
2535
2536
2537
2538 ac_aux_dir=
2539 for ac_dir in aclocal "$srcdir"/aclocal; do
2540 if test -f "$ac_dir/install-sh"; then
2541 ac_aux_dir=$ac_dir
2542 ac_install_sh="$ac_aux_dir/install-sh -c"
2543 break
2544 elif test -f "$ac_dir/install.sh"; then
2545 ac_aux_dir=$ac_dir
2546 ac_install_sh="$ac_aux_dir/install.sh -c"
2547 break
2548 elif test -f "$ac_dir/shtool"; then
2549 ac_aux_dir=$ac_dir
2550 ac_install_sh="$ac_aux_dir/shtool install -c"
2551 break
2552 fi
2553 done
2554 if test -z "$ac_aux_dir"; then
2555 as_fn_error $? "cannot find install-sh, install.sh, or shtool in aclocal \"$srcdir\"/aclocal" "$LINENO" 5
2556 fi
2557
2558 # These three variables are undocumented and unsupported,
2559 # and are intended to be withdrawn in a future Autoconf release.
2560 # They can cause serious problems if a builder's source tree is in a directory
2561 # whose full name contains unusual characters.
2562 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2563 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2564 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2565
2566
2567
2568 ac_config_headers="$ac_config_headers config.h"
2569
2570
2571 # Make sure we can run config.sub.
2572 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2573 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2574
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2576 $as_echo_n "checking build system type... " >&6; }
2577 if ${ac_cv_build+:} false; then :
2578 $as_echo_n "(cached) " >&6
2579 else
2580 ac_build_alias=$build_alias
2581 test "x$ac_build_alias" = x &&
2582 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2583 test "x$ac_build_alias" = x &&
2584 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2585 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2586 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2587
2588 fi
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2590 $as_echo "$ac_cv_build" >&6; }
2591 case $ac_cv_build in
2592 *-*-*) ;;
2593 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2594 esac
2595 build=$ac_cv_build
2596 ac_save_IFS=$IFS; IFS='-'
2597 set x $ac_cv_build
2598 shift
2599 build_cpu=$1
2600 build_vendor=$2
2601 shift; shift
2602 # Remember, the first character of IFS is used to create $*,
2603 # except with old shells:
2604 build_os=$*
2605 IFS=$ac_save_IFS
2606 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2607
2608
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2610 $as_echo_n "checking host system type... " >&6; }
2611 if ${ac_cv_host+:} false; then :
2612 $as_echo_n "(cached) " >&6
2613 else
2614 if test "x$host_alias" = x; then
2615 ac_cv_host=$ac_cv_build
2616 else
2617 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2618 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2619 fi
2620
2621 fi
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2623 $as_echo "$ac_cv_host" >&6; }
2624 case $ac_cv_host in
2625 *-*-*) ;;
2626 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2627 esac
2628 host=$ac_cv_host
2629 ac_save_IFS=$IFS; IFS='-'
2630 set x $ac_cv_host
2631 shift
2632 host_cpu=$1
2633 host_vendor=$2
2634 shift; shift
2635 # Remember, the first character of IFS is used to create $*,
2636 # except with old shells:
2637 host_os=$*
2638 IFS=$ac_save_IFS
2639 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2640
2641
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2643 $as_echo_n "checking target system type... " >&6; }
2644 if ${ac_cv_target+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 if test "x$target_alias" = x; then
2648 ac_cv_target=$ac_cv_host
2649 else
2650 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2651 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2652 fi
2653
2654 fi
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2656 $as_echo "$ac_cv_target" >&6; }
2657 case $ac_cv_target in
2658 *-*-*) ;;
2659 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2660 esac
2661 target=$ac_cv_target
2662 ac_save_IFS=$IFS; IFS='-'
2663 set x $ac_cv_target
2664 shift
2665 target_cpu=$1
2666 target_vendor=$2
2667 shift; shift
2668 # Remember, the first character of IFS is used to create $*,
2669 # except with old shells:
2670 target_os=$*
2671 IFS=$ac_save_IFS
2672 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2673
2674
2675 # The aliases save the names the user supplied, while $host etc.
2676 # will get canonicalized.
2677 test -n "$target_alias" &&
2678 test "$program_prefix$program_suffix$program_transform_name" = \
2679 NONENONEs,x,x, &&
2680 program_prefix=${target_alias}-
2681
2682 am__api_version='1.16'
2683
2684 # Find a good install program. We prefer a C program (faster),
2685 # so one script is as good as another. But avoid the broken or
2686 # incompatible versions:
2687 # SysV /etc/install, /usr/sbin/install
2688 # SunOS /usr/etc/install
2689 # IRIX /sbin/install
2690 # AIX /bin/install
2691 # AmigaOS /C/install, which installs bootblocks on floppy discs
2692 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2693 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2694 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2695 # OS/2's system install, which has a completely different semantic
2696 # ./install, which can be erroneously created by make from ./install.sh.
2697 # Reject install programs that cannot install multiple files.
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2699 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2700 if test -z "$INSTALL"; then
2701 if ${ac_cv_path_install+:} false; then :
2702 $as_echo_n "(cached) " >&6
2703 else
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2706 do
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 # Account for people who put trailing slashes in PATH elements.
2710 case $as_dir/ in #((
2711 ./ | .// | /[cC]/* | \
2712 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2713 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2714 /usr/ucb/* ) ;;
2715 *)
2716 # OSF1 and SCO ODT 3.0 have their own names for install.
2717 # Don't use installbsd from OSF since it installs stuff as root
2718 # by default.
2719 for ac_prog in ginstall scoinst install; do
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2722 if test $ac_prog = install &&
2723 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2724 # AIX install. It has an incompatible calling convention.
2725 :
2726 elif test $ac_prog = install &&
2727 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2728 # program-specific install script used by HP pwplus--don't use.
2729 :
2730 else
2731 rm -rf conftest.one conftest.two conftest.dir
2732 echo one > conftest.one
2733 echo two > conftest.two
2734 mkdir conftest.dir
2735 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2736 test -s conftest.one && test -s conftest.two &&
2737 test -s conftest.dir/conftest.one &&
2738 test -s conftest.dir/conftest.two
2739 then
2740 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2741 break 3
2742 fi
2743 fi
2744 fi
2745 done
2746 done
2747 ;;
2748 esac
2749
2750 done
2751 IFS=$as_save_IFS
2752
2753 rm -rf conftest.one conftest.two conftest.dir
2754
2755 fi
2756 if test "${ac_cv_path_install+set}" = set; then
2757 INSTALL=$ac_cv_path_install
2758 else
2759 # As a last resort, use the slow shell script. Don't cache a
2760 # value for INSTALL within a source directory, because that will
2761 # break other packages using the cache if that directory is
2762 # removed, or if the value is a relative name.
2763 INSTALL=$ac_install_sh
2764 fi
2765 fi
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2767 $as_echo "$INSTALL" >&6; }
2768
2769 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2770 # It thinks the first close brace ends the variable substitution.
2771 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2772
2773 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2774
2775 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2776
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2778 $as_echo_n "checking whether build environment is sane... " >&6; }
2779 # Reject unsafe characters in $srcdir or the absolute working directory
2780 # name. Accept space and tab only in the latter.
2781 am_lf='
2782 '
2783 case `pwd` in
2784 *[\\\"\#\$\&\'\`$am_lf]*)
2785 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2786 esac
2787 case $srcdir in
2788 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2789 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2790 esac
2791
2792 # Do 'set' in a subshell so we don't clobber the current shell's
2793 # arguments. Must try -L first in case configure is actually a
2794 # symlink; some systems play weird games with the mod time of symlinks
2795 # (eg FreeBSD returns the mod time of the symlink's containing
2796 # directory).
2797 if (
2798 am_has_slept=no
2799 for am_try in 1 2; do
2800 echo "timestamp, slept: $am_has_slept" > conftest.file
2801 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2802 if test "$*" = "X"; then
2803 # -L didn't work.
2804 set X `ls -t "$srcdir/configure" conftest.file`
2805 fi
2806 if test "$*" != "X $srcdir/configure conftest.file" \
2807 && test "$*" != "X conftest.file $srcdir/configure"; then
2808
2809 # If neither matched, then we have a broken ls. This can happen
2810 # if, for instance, CONFIG_SHELL is bash and it inherits a
2811 # broken ls alias from the environment. This has actually
2812 # happened. Such a system could not be considered "sane".
2813 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2814 alias in your environment" "$LINENO" 5
2815 fi
2816 if test "$2" = conftest.file || test $am_try -eq 2; then
2817 break
2818 fi
2819 # Just in case.
2820 sleep 1
2821 am_has_slept=yes
2822 done
2823 test "$2" = conftest.file
2824 )
2825 then
2826 # Ok.
2827 :
2828 else
2829 as_fn_error $? "newly created file is older than distributed files!
2830 Check your system clock" "$LINENO" 5
2831 fi
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2833 $as_echo "yes" >&6; }
2834 # If we didn't sleep, we still need to ensure time stamps of config.status and
2835 # generated files are strictly newer.
2836 am_sleep_pid=
2837 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2838 ( sleep 1 ) &
2839 am_sleep_pid=$!
2840 fi
2841
2842 rm -f conftest.file
2843
2844 test "$program_prefix" != NONE &&
2845 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2846 # Use a double $ so make ignores it.
2847 test "$program_suffix" != NONE &&
2848 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2849 # Double any \ or $.
2850 # By default was `s,x,x', remove it if useless.
2851 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2852 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2853
2854 # Expand $ac_aux_dir to an absolute path.
2855 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2856
2857 if test x"${MISSING+set}" != xset; then
2858 MISSING="\${SHELL} '$am_aux_dir/missing'"
2859 fi
2860 # Use eval to expand $SHELL
2861 if eval "$MISSING --is-lightweight"; then
2862 am_missing_run="$MISSING "
2863 else
2864 am_missing_run=
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2866 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2867 fi
2868
2869 if test x"${install_sh+set}" != xset; then
2870 case $am_aux_dir in
2871 *\ * | *\ *)
2872 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2873 *)
2874 install_sh="\${SHELL} $am_aux_dir/install-sh"
2875 esac
2876 fi
2877
2878 # Installed binaries are usually stripped using 'strip' when the user
2879 # run "make install-strip". However 'strip' might not be the right
2880 # tool to use in cross-compilation environments, therefore Automake
2881 # will honor the 'STRIP' environment variable to overrule this program.
2882 if test "$cross_compiling" != no; then
2883 if test -n "$ac_tool_prefix"; then
2884 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2885 set dummy ${ac_tool_prefix}strip; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if ${ac_cv_prog_STRIP+:} false; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 if test -n "$STRIP"; then
2892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905 done
2906 done
2907 IFS=$as_save_IFS
2908
2909 fi
2910 fi
2911 STRIP=$ac_cv_prog_STRIP
2912 if test -n "$STRIP"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2914 $as_echo "$STRIP" >&6; }
2915 else
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2918 fi
2919
2920
2921 fi
2922 if test -z "$ac_cv_prog_STRIP"; then
2923 ac_ct_STRIP=$STRIP
2924 # Extract the first word of "strip", so it can be a program name with args.
2925 set dummy strip; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 if test -n "$ac_ct_STRIP"; then
2932 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941 ac_cv_prog_ac_ct_STRIP="strip"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2944 fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2952 if test -n "$ac_ct_STRIP"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2954 $as_echo "$ac_ct_STRIP" >&6; }
2955 else
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2958 fi
2959
2960 if test "x$ac_ct_STRIP" = x; then
2961 STRIP=":"
2962 else
2963 case $cross_compiling:$ac_tool_warned in
2964 yes:)
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2967 ac_tool_warned=yes ;;
2968 esac
2969 STRIP=$ac_ct_STRIP
2970 fi
2971 else
2972 STRIP="$ac_cv_prog_STRIP"
2973 fi
2974
2975 fi
2976 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2977
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2979 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2980 if test -z "$MKDIR_P"; then
2981 if ${ac_cv_path_mkdir+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2986 do
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_prog in mkdir gmkdir; do
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2992 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2993 'mkdir (GNU coreutils) '* | \
2994 'mkdir (coreutils) '* | \
2995 'mkdir (fileutils) '4.1*)
2996 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2997 break 3;;
2998 esac
2999 done
3000 done
3001 done
3002 IFS=$as_save_IFS
3003
3004 fi
3005
3006 test -d ./--version && rmdir ./--version
3007 if test "${ac_cv_path_mkdir+set}" = set; then
3008 MKDIR_P="$ac_cv_path_mkdir -p"
3009 else
3010 # As a last resort, use the slow shell script. Don't cache a
3011 # value for MKDIR_P within a source directory, because that will
3012 # break other packages using the cache if that directory is
3013 # removed, or if the value is a relative name.
3014 MKDIR_P="$ac_install_sh -d"
3015 fi
3016 fi
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3018 $as_echo "$MKDIR_P" >&6; }
3019
3020 for ac_prog in gawk mawk nawk awk
3021 do
3022 # Extract the first word of "$ac_prog", so it can be a program name with args.
3023 set dummy $ac_prog; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if ${ac_cv_prog_AWK+:} false; then :
3027 $as_echo_n "(cached) " >&6
3028 else
3029 if test -n "$AWK"; then
3030 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3034 do
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_AWK="$ac_prog"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3042 fi
3043 done
3044 done
3045 IFS=$as_save_IFS
3046
3047 fi
3048 fi
3049 AWK=$ac_cv_prog_AWK
3050 if test -n "$AWK"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3052 $as_echo "$AWK" >&6; }
3053 else
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3056 fi
3057
3058
3059 test -n "$AWK" && break
3060 done
3061
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3063 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3064 set x ${MAKE-make}
3065 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3066 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3067 $as_echo_n "(cached) " >&6
3068 else
3069 cat >conftest.make <<\_ACEOF
3070 SHELL = /bin/sh
3071 all:
3072 @echo '@@@%%%=$(MAKE)=@@@%%%'
3073 _ACEOF
3074 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3075 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3076 *@@@%%%=?*=@@@%%%*)
3077 eval ac_cv_prog_make_${ac_make}_set=yes;;
3078 *)
3079 eval ac_cv_prog_make_${ac_make}_set=no;;
3080 esac
3081 rm -f conftest.make
3082 fi
3083 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3085 $as_echo "yes" >&6; }
3086 SET_MAKE=
3087 else
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3090 SET_MAKE="MAKE=${MAKE-make}"
3091 fi
3092
3093 rm -rf .tst 2>/dev/null
3094 mkdir .tst 2>/dev/null
3095 if test -d .tst; then
3096 am__leading_dot=.
3097 else
3098 am__leading_dot=_
3099 fi
3100 rmdir .tst 2>/dev/null
3101
3102 # Check whether --enable-silent-rules was given.
3103 if test "${enable_silent_rules+set}" = set; then :
3104 enableval=$enable_silent_rules;
3105 fi
3106
3107 case $enable_silent_rules in # (((
3108 yes) AM_DEFAULT_VERBOSITY=0;;
3109 no) AM_DEFAULT_VERBOSITY=1;;
3110 *) AM_DEFAULT_VERBOSITY=1;;
3111 esac
3112 am_make=${MAKE-make}
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3114 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3115 if ${am_cv_make_support_nested_variables+:} false; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 if $as_echo 'TRUE=$(BAR$(V))
3119 BAR0=false
3120 BAR1=true
3121 V=1
3122 am__doit:
3123 @$(TRUE)
3124 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3125 am_cv_make_support_nested_variables=yes
3126 else
3127 am_cv_make_support_nested_variables=no
3128 fi
3129 fi
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3131 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3132 if test $am_cv_make_support_nested_variables = yes; then
3133 AM_V='$(V)'
3134 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3135 else
3136 AM_V=$AM_DEFAULT_VERBOSITY
3137 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3138 fi
3139 AM_BACKSLASH='\'
3140
3141 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3142 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3143 # is not polluted with repeated "-I."
3144 am__isrc=' -I$(srcdir)'
3145 # test to see if srcdir already configured
3146 if test -f $srcdir/config.status; then
3147 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3148 fi
3149 fi
3150
3151 # test whether we have cygpath
3152 if test -z "$CYGPATH_W"; then
3153 if (cygpath --version) >/dev/null 2>/dev/null; then
3154 CYGPATH_W='cygpath -w'
3155 else
3156 CYGPATH_W=echo
3157 fi
3158 fi
3159
3160
3161 # Define the identity of the package.
3162 PACKAGE='amavisd-milter'
3163 VERSION='1.7.2'
3164
3165
3166 cat >>confdefs.h <<_ACEOF
3167 #define PACKAGE "$PACKAGE"
3168 _ACEOF
3169
3170
3171 cat >>confdefs.h <<_ACEOF
3172 #define VERSION "$VERSION"
3173 _ACEOF
3174
3175 # Some tools Automake needs.
3176
3177 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3178
3179
3180 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3181
3182
3183 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3184
3185
3186 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3187
3188
3189 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3190
3191 # For better backward compatibility. To be removed once Automake 1.9.x
3192 # dies out for good. For more background, see:
3193 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3194 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3195 mkdir_p='$(MKDIR_P)'
3196
3197 # We need awk for the "check" target (and possibly the TAP driver). The
3198 # system "awk" is bad on some platforms.
3199 # Always define AMTAR for backward compatibility. Yes, it's still used
3200 # in the wild :-( We should find a proper way to deprecate it ...
3201 AMTAR='$${TAR-tar}'
3202
3203
3204 # We'll loop over all known methods to create a tar archive until one works.
3205 _am_tools='gnutar pax cpio none'
3206
3207 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3208
3209
3210
3211
3212
3213
3214 # POSIX will say in a future version that running "rm -f" with no argument
3215 # is OK; and we want to be able to make that assumption in our Makefile
3216 # recipes. So use an aggressive probe to check that the usage we want is
3217 # actually supported "in the wild" to an acceptable degree.
3218 # See automake bug#10828.
3219 # To make any issue more visible, cause the running configure to be aborted
3220 # by default if the 'rm' program in use doesn't match our expectations; the
3221 # user can still override this though.
3222 if rm -f && rm -fr && rm -rf; then : OK; else
3223 cat >&2 <<'END'
3224 Oops!
3225
3226 Your 'rm' program seems unable to run without file operands specified
3227 on the command line, even when the '-f' option is present. This is contrary
3228 to the behaviour of most rm programs out there, and not conforming with
3229 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3230
3231 Please tell bug-automake@gnu.org about your system, including the value
3232 of your $PATH and any error possibly output before this message. This
3233 can help us improve future automake versions.
3234
3235 END
3236 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3237 echo 'Configuration will proceed anyway, since you have set the' >&2
3238 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3239 echo >&2
3240 else
3241 cat >&2 <<'END'
3242 Aborting the configuration process, to ensure you take notice of the issue.
3243
3244 You can download and install GNU coreutils to get an 'rm' implementation
3245 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3246
3247 If you want to complete the configuration process using your problematic
3248 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3249 to "yes", and re-run configure.
3250
3251 END
3252 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3253 fi
3254 fi
3255
3256
3257 # Kludge to keep autoconf from adding -g -O2
3258 CFLAGS=" $CFLAGS"
3259
3260
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3262 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3263 set x ${MAKE-make}
3264 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3265 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 cat >conftest.make <<\_ACEOF
3269 SHELL = /bin/sh
3270 all:
3271 @echo '@@@%%%=$(MAKE)=@@@%%%'
3272 _ACEOF
3273 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3274 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3275 *@@@%%%=?*=@@@%%%*)
3276 eval ac_cv_prog_make_${ac_make}_set=yes;;
3277 *)
3278 eval ac_cv_prog_make_${ac_make}_set=no;;
3279 esac
3280 rm -f conftest.make
3281 fi
3282 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284 $as_echo "yes" >&6; }
3285 SET_MAKE=
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 SET_MAKE="MAKE=${MAKE-make}"
3290 fi
3291
3292 if test -n "$ac_tool_prefix"; then
3293 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3294 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 $as_echo_n "checking for $ac_word... " >&6; }
3297 if ${ac_cv_prog_RANLIB+:} false; then :
3298 $as_echo_n "(cached) " >&6
3299 else
3300 if test -n "$RANLIB"; then
3301 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3302 else
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3305 do
3306 IFS=$as_save_IFS
3307 test -z "$as_dir" && as_dir=.
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 break 2
3313 fi
3314 done
3315 done
3316 IFS=$as_save_IFS
3317
3318 fi
3319 fi
3320 RANLIB=$ac_cv_prog_RANLIB
3321 if test -n "$RANLIB"; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3323 $as_echo "$RANLIB" >&6; }
3324 else
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3327 fi
3328
3329
3330 fi
3331 if test -z "$ac_cv_prog_RANLIB"; then
3332 ac_ct_RANLIB=$RANLIB
3333 # Extract the first word of "ranlib", so it can be a program name with args.
3334 set dummy ranlib; ac_word=$2
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336 $as_echo_n "checking for $ac_word... " >&6; }
3337 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3338 $as_echo_n "(cached) " >&6
3339 else
3340 if test -n "$ac_ct_RANLIB"; then
3341 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3342 else
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 for as_dir in $PATH
3345 do
3346 IFS=$as_save_IFS
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350 ac_cv_prog_ac_ct_RANLIB="ranlib"
3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 break 2
3353 fi
3354 done
3355 done
3356 IFS=$as_save_IFS
3357
3358 fi
3359 fi
3360 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3361 if test -n "$ac_ct_RANLIB"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3363 $as_echo "$ac_ct_RANLIB" >&6; }
3364 else
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 fi
3368
3369 if test "x$ac_ct_RANLIB" = x; then
3370 RANLIB=":"
3371 else
3372 case $cross_compiling:$ac_tool_warned in
3373 yes:)
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3376 ac_tool_warned=yes ;;
3377 esac
3378 RANLIB=$ac_ct_RANLIB
3379 fi
3380 else
3381 RANLIB="$ac_cv_prog_RANLIB"
3382 fi
3383
3384
3385 ac_ext=c
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390 if test -n "$ac_tool_prefix"; then
3391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3392 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_CC+:} false; then :
3396 $as_echo_n "(cached) " >&6
3397 else
3398 if test -n "$CC"; then
3399 ac_cv_prog_CC="$CC" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 break 2
3411 fi
3412 done
3413 done
3414 IFS=$as_save_IFS
3415
3416 fi
3417 fi
3418 CC=$ac_cv_prog_CC
3419 if test -n "$CC"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3421 $as_echo "$CC" >&6; }
3422 else
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 fi
3426
3427
3428 fi
3429 if test -z "$ac_cv_prog_CC"; then
3430 ac_ct_CC=$CC
3431 # Extract the first word of "gcc", so it can be a program name with args.
3432 set dummy gcc; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3436 $as_echo_n "(cached) " >&6
3437 else
3438 if test -n "$ac_ct_CC"; then
3439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448 ac_cv_prog_ac_ct_CC="gcc"
3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 break 2
3451 fi
3452 done
3453 done
3454 IFS=$as_save_IFS
3455
3456 fi
3457 fi
3458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3459 if test -n "$ac_ct_CC"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3461 $as_echo "$ac_ct_CC" >&6; }
3462 else
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3465 fi
3466
3467 if test "x$ac_ct_CC" = x; then
3468 CC=""
3469 else
3470 case $cross_compiling:$ac_tool_warned in
3471 yes:)
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3474 ac_tool_warned=yes ;;
3475 esac
3476 CC=$ac_ct_CC
3477 fi
3478 else
3479 CC="$ac_cv_prog_CC"
3480 fi
3481
3482 if test -z "$CC"; then
3483 if test -n "$ac_tool_prefix"; then
3484 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3485 set dummy ${ac_tool_prefix}cc; ac_word=$2
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3487 $as_echo_n "checking for $ac_word... " >&6; }
3488 if ${ac_cv_prog_CC+:} false; then :
3489 $as_echo_n "(cached) " >&6
3490 else
3491 if test -n "$CC"; then
3492 ac_cv_prog_CC="$CC" # Let the user override the test.
3493 else
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3496 do
3497 IFS=$as_save_IFS
3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3501 ac_cv_prog_CC="${ac_tool_prefix}cc"
3502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3503 break 2
3504 fi
3505 done
3506 done
3507 IFS=$as_save_IFS
3508
3509 fi
3510 fi
3511 CC=$ac_cv_prog_CC
3512 if test -n "$CC"; then
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3514 $as_echo "$CC" >&6; }
3515 else
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3518 fi
3519
3520
3521 fi
3522 fi
3523 if test -z "$CC"; then
3524 # Extract the first word of "cc", so it can be a program name with args.
3525 set dummy cc; ac_word=$2
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 $as_echo_n "checking for $ac_word... " >&6; }
3528 if ${ac_cv_prog_CC+:} false; then :
3529 $as_echo_n "(cached) " >&6
3530 else
3531 if test -n "$CC"; then
3532 ac_cv_prog_CC="$CC" # Let the user override the test.
3533 else
3534 ac_prog_rejected=no
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3537 do
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3543 ac_prog_rejected=yes
3544 continue
3545 fi
3546 ac_cv_prog_CC="cc"
3547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 break 2
3549 fi
3550 done
3551 done
3552 IFS=$as_save_IFS
3553
3554 if test $ac_prog_rejected = yes; then
3555 # We found a bogon in the path, so make sure we never use it.
3556 set dummy $ac_cv_prog_CC
3557 shift
3558 if test $# != 0; then
3559 # We chose a different compiler from the bogus one.
3560 # However, it has the same basename, so the bogon will be chosen
3561 # first if we set CC to just the basename; use the full file name.
3562 shift
3563 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3564 fi
3565 fi
3566 fi
3567 fi
3568 CC=$ac_cv_prog_CC
3569 if test -n "$CC"; then
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3571 $as_echo "$CC" >&6; }
3572 else
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3575 fi
3576
3577
3578 fi
3579 if test -z "$CC"; then
3580 if test -n "$ac_tool_prefix"; then
3581 for ac_prog in cl.exe
3582 do
3583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if ${ac_cv_prog_CC+:} false; then :
3588 $as_echo_n "(cached) " >&6
3589 else
3590 if test -n "$CC"; then
3591 ac_cv_prog_CC="$CC" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3595 do
3596 IFS=$as_save_IFS
3597 test -z "$as_dir" && as_dir=.
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3600 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 break 2
3603 fi
3604 done
3605 done
3606 IFS=$as_save_IFS
3607
3608 fi
3609 fi
3610 CC=$ac_cv_prog_CC
3611 if test -n "$CC"; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3613 $as_echo "$CC" >&6; }
3614 else
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3617 fi
3618
3619
3620 test -n "$CC" && break
3621 done
3622 fi
3623 if test -z "$CC"; then
3624 ac_ct_CC=$CC
3625 for ac_prog in cl.exe
3626 do
3627 # Extract the first word of "$ac_prog", so it can be a program name with args.
3628 set dummy $ac_prog; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 if test -n "$ac_ct_CC"; then
3635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3636 else
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3639 do
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3644 ac_cv_prog_ac_ct_CC="$ac_prog"
3645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 break 2
3647 fi
3648 done
3649 done
3650 IFS=$as_save_IFS
3651
3652 fi
3653 fi
3654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3655 if test -n "$ac_ct_CC"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3657 $as_echo "$ac_ct_CC" >&6; }
3658 else
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3661 fi
3662
3663
3664 test -n "$ac_ct_CC" && break
3665 done
3666
3667 if test "x$ac_ct_CC" = x; then
3668 CC=""
3669 else
3670 case $cross_compiling:$ac_tool_warned in
3671 yes:)
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3674 ac_tool_warned=yes ;;
3675 esac
3676 CC=$ac_ct_CC
3677 fi
3678 fi
3679
3680 fi
3681
3682
3683 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685 as_fn_error $? "no acceptable C compiler found in \$PATH
3686 See \`config.log' for more details" "$LINENO" 5; }
3687
3688 # Provide some information about the compiler.
3689 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3690 set X $ac_compile
3691 ac_compiler=$2
3692 for ac_option in --version -v -V -qversion; do
3693 { { ac_try="$ac_compiler $ac_option >&5"
3694 case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699 $as_echo "$ac_try_echo"; } >&5
3700 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3701 ac_status=$?
3702 if test -s conftest.err; then
3703 sed '10a\
3704 ... rest of stderr output deleted ...
3705 10q' conftest.err >conftest.er1
3706 cat conftest.er1 >&5
3707 fi
3708 rm -f conftest.er1 conftest.err
3709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710 test $ac_status = 0; }
3711 done
3712
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3715
3716 int
3717 main ()
3718 {
3719
3720 ;
3721 return 0;
3722 }
3723 _ACEOF
3724 ac_clean_files_save=$ac_clean_files
3725 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3726 # Try to create an executable without -o first, disregard a.out.
3727 # It will help us diagnose broken compilers, and finding out an intuition
3728 # of exeext.
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3730 $as_echo_n "checking whether the C compiler works... " >&6; }
3731 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3732
3733 # The possible output files:
3734 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3735
3736 ac_rmfiles=
3737 for ac_file in $ac_files
3738 do
3739 case $ac_file in
3740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3741 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3742 esac
3743 done
3744 rm -f $ac_rmfiles
3745
3746 if { { ac_try="$ac_link_default"
3747 case "(($ac_try" in
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3750 esac
3751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752 $as_echo "$ac_try_echo"; } >&5
3753 (eval "$ac_link_default") 2>&5
3754 ac_status=$?
3755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756 test $ac_status = 0; }; then :
3757 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3758 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3759 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3760 # so that the user can short-circuit this test for compilers unknown to
3761 # Autoconf.
3762 for ac_file in $ac_files ''
3763 do
3764 test -f "$ac_file" || continue
3765 case $ac_file in
3766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3767 ;;
3768 [ab].out )
3769 # We found the default executable, but exeext='' is most
3770 # certainly right.
3771 break;;
3772 *.* )
3773 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3774 then :; else
3775 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3776 fi
3777 # We set ac_cv_exeext here because the later test for it is not
3778 # safe: cross compilers may not add the suffix if given an `-o'
3779 # argument, so we may need to know it at that point already.
3780 # Even if this section looks crufty: it has the advantage of
3781 # actually working.
3782 break;;
3783 * )
3784 break;;
3785 esac
3786 done
3787 test "$ac_cv_exeext" = no && ac_cv_exeext=
3788
3789 else
3790 ac_file=''
3791 fi
3792 if test -z "$ac_file"; then :
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3795 $as_echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3797
3798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800 as_fn_error 77 "C compiler cannot create executables
3801 See \`config.log' for more details" "$LINENO" 5; }
3802 else
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3804 $as_echo "yes" >&6; }
3805 fi
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3807 $as_echo_n "checking for C compiler default output file name... " >&6; }
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3809 $as_echo "$ac_file" >&6; }
3810 ac_exeext=$ac_cv_exeext
3811
3812 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3813 ac_clean_files=$ac_clean_files_save
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3815 $as_echo_n "checking for suffix of executables... " >&6; }
3816 if { { ac_try="$ac_link"
3817 case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820 esac
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_link") 2>&5
3824 ac_status=$?
3825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826 test $ac_status = 0; }; then :
3827 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3828 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3829 # work properly (i.e., refer to `conftest.exe'), while it won't with
3830 # `rm'.
3831 for ac_file in conftest.exe conftest conftest.*; do
3832 test -f "$ac_file" || continue
3833 case $ac_file in
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3835 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3836 break;;
3837 * ) break;;
3838 esac
3839 done
3840 else
3841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3844 See \`config.log' for more details" "$LINENO" 5; }
3845 fi
3846 rm -f conftest conftest$ac_cv_exeext
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3848 $as_echo "$ac_cv_exeext" >&6; }
3849
3850 rm -f conftest.$ac_ext
3851 EXEEXT=$ac_cv_exeext
3852 ac_exeext=$EXEEXT
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3855 #include <stdio.h>
3856 int
3857 main ()
3858 {
3859 FILE *f = fopen ("conftest.out", "w");
3860 return ferror (f) || fclose (f) != 0;
3861
3862 ;
3863 return 0;
3864 }
3865 _ACEOF
3866 ac_clean_files="$ac_clean_files conftest.out"
3867 # Check that the compiler produces executables we can run. If not, either
3868 # the compiler is broken, or we cross compile.
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3870 $as_echo_n "checking whether we are cross compiling... " >&6; }
3871 if test "$cross_compiling" != yes; then
3872 { { ac_try="$ac_link"
3873 case "(($ac_try" in
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3876 esac
3877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878 $as_echo "$ac_try_echo"; } >&5
3879 (eval "$ac_link") 2>&5
3880 ac_status=$?
3881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3882 test $ac_status = 0; }
3883 if { ac_try='./conftest$ac_cv_exeext'
3884 { { case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889 $as_echo "$ac_try_echo"; } >&5
3890 (eval "$ac_try") 2>&5
3891 ac_status=$?
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }; }; then
3894 cross_compiling=no
3895 else
3896 if test "$cross_compiling" = maybe; then
3897 cross_compiling=yes
3898 else
3899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901 as_fn_error $? "cannot run C compiled programs.
3902 If you meant to cross compile, use \`--host'.
3903 See \`config.log' for more details" "$LINENO" 5; }
3904 fi
3905 fi
3906 fi
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3908 $as_echo "$cross_compiling" >&6; }
3909
3910 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3911 ac_clean_files=$ac_clean_files_save
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3913 $as_echo_n "checking for suffix of object files... " >&6; }
3914 if ${ac_cv_objext+:} false; then :
3915 $as_echo_n "(cached) " >&6
3916 else
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3919
3920 int
3921 main ()
3922 {
3923
3924 ;
3925 return 0;
3926 }
3927 _ACEOF
3928 rm -f conftest.o conftest.obj
3929 if { { ac_try="$ac_compile"
3930 case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933 esac
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 $as_echo "$ac_try_echo"; } >&5
3936 (eval "$ac_compile") 2>&5
3937 ac_status=$?
3938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939 test $ac_status = 0; }; then :
3940 for ac_file in conftest.o conftest.obj conftest.*; do
3941 test -f "$ac_file" || continue;
3942 case $ac_file in
3943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3945 break;;
3946 esac
3947 done
3948 else
3949 $as_echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3951
3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954 as_fn_error $? "cannot compute suffix of object files: cannot compile
3955 See \`config.log' for more details" "$LINENO" 5; }
3956 fi
3957 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3958 fi
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3960 $as_echo "$ac_cv_objext" >&6; }
3961 OBJEXT=$ac_cv_objext
3962 ac_objext=$OBJEXT
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3964 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3965 if ${ac_cv_c_compiler_gnu+:} false; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3970
3971 int
3972 main ()
3973 {
3974 #ifndef __GNUC__
3975 choke me
3976 #endif
3977
3978 ;
3979 return 0;
3980 }
3981 _ACEOF
3982 if ac_fn_c_try_compile "$LINENO"; then :
3983 ac_compiler_gnu=yes
3984 else
3985 ac_compiler_gnu=no
3986 fi
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3989
3990 fi
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3992 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3993 if test $ac_compiler_gnu = yes; then
3994 GCC=yes
3995 else
3996 GCC=
3997 fi
3998 ac_test_CFLAGS=${CFLAGS+set}
3999 ac_save_CFLAGS=$CFLAGS
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4001 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4002 if ${ac_cv_prog_cc_g+:} false; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 ac_save_c_werror_flag=$ac_c_werror_flag
4006 ac_c_werror_flag=yes
4007 ac_cv_prog_cc_g=no
4008 CFLAGS="-g"
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4011
4012 int
4013 main ()
4014 {
4015
4016 ;
4017 return 0;
4018 }
4019 _ACEOF
4020 if ac_fn_c_try_compile "$LINENO"; then :
4021 ac_cv_prog_cc_g=yes
4022 else
4023 CFLAGS=""
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4026
4027 int
4028 main ()
4029 {
4030
4031 ;
4032 return 0;
4033 }
4034 _ACEOF
4035 if ac_fn_c_try_compile "$LINENO"; then :
4036
4037 else
4038 ac_c_werror_flag=$ac_save_c_werror_flag
4039 CFLAGS="-g"
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4042
4043 int
4044 main ()
4045 {
4046
4047 ;
4048 return 0;
4049 }
4050 _ACEOF
4051 if ac_fn_c_try_compile "$LINENO"; then :
4052 ac_cv_prog_cc_g=yes
4053 fi
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 fi
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 fi
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 ac_c_werror_flag=$ac_save_c_werror_flag
4060 fi
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4062 $as_echo "$ac_cv_prog_cc_g" >&6; }
4063 if test "$ac_test_CFLAGS" = set; then
4064 CFLAGS=$ac_save_CFLAGS
4065 elif test $ac_cv_prog_cc_g = yes; then
4066 if test "$GCC" = yes; then
4067 CFLAGS="-g -O2"
4068 else
4069 CFLAGS="-g"
4070 fi
4071 else
4072 if test "$GCC" = yes; then
4073 CFLAGS="-O2"
4074 else
4075 CFLAGS=
4076 fi
4077 fi
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4079 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4080 if ${ac_cv_prog_cc_c89+:} false; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 ac_cv_prog_cc_c89=no
4084 ac_save_CC=$CC
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4087 #include <stdarg.h>
4088 #include <stdio.h>
4089 struct stat;
4090 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4091 struct buf { int x; };
4092 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4093 static char *e (p, i)
4094 char **p;
4095 int i;
4096 {
4097 return p[i];
4098 }
4099 static char *f (char * (*g) (char **, int), char **p, ...)
4100 {
4101 char *s;
4102 va_list v;
4103 va_start (v,p);
4104 s = g (p, va_arg (v,int));
4105 va_end (v);
4106 return s;
4107 }
4108
4109 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4110 function prototypes and stuff, but not '\xHH' hex character constants.
4111 These don't provoke an error unfortunately, instead are silently treated
4112 as 'x'. The following induces an error, until -std is added to get
4113 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4114 array size at least. It's necessary to write '\x00'==0 to get something
4115 that's true only with -std. */
4116 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4117
4118 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4119 inside strings and character constants. */
4120 #define FOO(x) 'x'
4121 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4122
4123 int test (int i, double x);
4124 struct s1 {int (*f) (int a);};
4125 struct s2 {int (*f) (double a);};
4126 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4127 int argc;
4128 char **argv;
4129 int
4130 main ()
4131 {
4132 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4133 ;
4134 return 0;
4135 }
4136 _ACEOF
4137 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4138 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4139 do
4140 CC="$ac_save_CC $ac_arg"
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_prog_cc_c89=$ac_arg
4143 fi
4144 rm -f core conftest.err conftest.$ac_objext
4145 test "x$ac_cv_prog_cc_c89" != "xno" && break
4146 done
4147 rm -f conftest.$ac_ext
4148 CC=$ac_save_CC
4149
4150 fi
4151 # AC_CACHE_VAL
4152 case "x$ac_cv_prog_cc_c89" in
4153 x)
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4155 $as_echo "none needed" >&6; } ;;
4156 xno)
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4158 $as_echo "unsupported" >&6; } ;;
4159 *)
4160 CC="$CC $ac_cv_prog_cc_c89"
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4162 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4163 esac
4164 if test "x$ac_cv_prog_cc_c89" != xno; then :
4165
4166 fi
4167
4168 ac_ext=c
4169 ac_cpp='$CPP $CPPFLAGS'
4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173
4174 ac_ext=c
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4180 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4181 if ${am_cv_prog_cc_c_o+:} false; then :
4182 $as_echo_n "(cached) " >&6
4183 else
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186
4187 int
4188 main ()
4189 {
4190
4191 ;
4192 return 0;
4193 }
4194 _ACEOF
4195 # Make sure it works both with $CC and with simple cc.
4196 # Following AC_PROG_CC_C_O, we do the test twice because some
4197 # compilers refuse to overwrite an existing .o file with -o,
4198 # though they will create one.
4199 am_cv_prog_cc_c_o=yes
4200 for am_i in 1 2; do
4201 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4202 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); } \
4206 && test -f conftest2.$ac_objext; then
4207 : OK
4208 else
4209 am_cv_prog_cc_c_o=no
4210 break
4211 fi
4212 done
4213 rm -f core conftest*
4214 unset am_i
4215 fi
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4217 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4218 if test "$am_cv_prog_cc_c_o" != yes; then
4219 # Losing compiler, so override with the script.
4220 # FIXME: It is wrong to rewrite CC.
4221 # But if we don't then we get into trouble of one sort or another.
4222 # A longer-term fix would be to have automake use am__CC in this case,
4223 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4224 CC="$am_aux_dir/compile $CC"
4225 fi
4226 ac_ext=c
4227 ac_cpp='$CPP $CPPFLAGS'
4228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4231
4232 DEPDIR="${am__leading_dot}deps"
4233
4234 ac_config_commands="$ac_config_commands depfiles"
4235
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4237 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4238 cat > confinc.mk << 'END'
4239 am__doit:
4240 @echo this is the am__doit target >confinc.out
4241 .PHONY: am__doit
4242 END
4243 am__include="#"
4244 am__quote=
4245 # BSD make does it like this.
4246 echo '.include "confinc.mk" # ignored' > confmf.BSD
4247 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4248 echo 'include confinc.mk # ignored' > confmf.GNU
4249 _am_result=no
4250 for s in GNU BSD; do
4251 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4252 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }
4256 case $?:`cat confinc.out 2>/dev/null` in #(
4257 '0:this is the am__doit target') :
4258 case $s in #(
4259 BSD) :
4260 am__include='.include' am__quote='"' ;; #(
4261 *) :
4262 am__include='include' am__quote='' ;;
4263 esac ;; #(
4264 *) :
4265 ;;
4266 esac
4267 if test "$am__include" != "#"; then
4268 _am_result="yes ($s style)"
4269 break
4270 fi
4271 done
4272 rm -f confinc.* confmf.*
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4274 $as_echo "${_am_result}" >&6; }
4275
4276 # Check whether --enable-dependency-tracking was given.
4277 if test "${enable_dependency_tracking+set}" = set; then :
4278 enableval=$enable_dependency_tracking;
4279 fi
4280
4281 if test "x$enable_dependency_tracking" != xno; then
4282 am_depcomp="$ac_aux_dir/depcomp"
4283 AMDEPBACKSLASH='\'
4284 am__nodep='_no'
4285 fi
4286 if test "x$enable_dependency_tracking" != xno; then
4287 AMDEP_TRUE=
4288 AMDEP_FALSE='#'
4289 else
4290 AMDEP_TRUE='#'
4291 AMDEP_FALSE=
4292 fi
4293
4294
4295
4296 depcc="$CC" am_compiler_list=
4297
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4299 $as_echo_n "checking dependency style of $depcc... " >&6; }
4300 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4301 $as_echo_n "(cached) " >&6
4302 else
4303 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4304 # We make a subdir and do the tests there. Otherwise we can end up
4305 # making bogus files that we don't know about and never remove. For
4306 # instance it was reported that on HP-UX the gcc test will end up
4307 # making a dummy file named 'D' -- because '-MD' means "put the output
4308 # in D".
4309 rm -rf conftest.dir
4310 mkdir conftest.dir
4311 # Copy depcomp to subdir because otherwise we won't find it if we're
4312 # using a relative directory.
4313 cp "$am_depcomp" conftest.dir
4314 cd conftest.dir
4315 # We will build objects and dependencies in a subdirectory because
4316 # it helps to detect inapplicable dependency modes. For instance
4317 # both Tru64's cc and ICC support -MD to output dependencies as a
4318 # side effect of compilation, but ICC will put the dependencies in
4319 # the current directory while Tru64 will put them in the object
4320 # directory.
4321 mkdir sub
4322
4323 am_cv_CC_dependencies_compiler_type=none
4324 if test "$am_compiler_list" = ""; then
4325 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4326 fi
4327 am__universal=false
4328 case " $depcc " in #(
4329 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4330 esac
4331
4332 for depmode in $am_compiler_list; do
4333 # Setup a source with many dependencies, because some compilers
4334 # like to wrap large dependency lists on column 80 (with \), and
4335 # we should not choose a depcomp mode which is confused by this.
4336 #
4337 # We need to recreate these files for each test, as the compiler may
4338 # overwrite some of them when testing with obscure command lines.
4339 # This happens at least with the AIX C compiler.
4340 : > sub/conftest.c
4341 for i in 1 2 3 4 5 6; do
4342 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4343 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4344 # Solaris 10 /bin/sh.
4345 echo '/* dummy */' > sub/conftst$i.h
4346 done
4347 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4348
4349 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4350 # mode. It turns out that the SunPro C++ compiler does not properly
4351 # handle '-M -o', and we need to detect this. Also, some Intel
4352 # versions had trouble with output in subdirs.
4353 am__obj=sub/conftest.${OBJEXT-o}
4354 am__minus_obj="-o $am__obj"
4355 case $depmode in
4356 gcc)
4357 # This depmode causes a compiler race in universal mode.
4358 test "$am__universal" = false || continue
4359 ;;
4360 nosideeffect)
4361 # After this tag, mechanisms are not by side-effect, so they'll
4362 # only be used when explicitly requested.
4363 if test "x$enable_dependency_tracking" = xyes; then
4364 continue
4365 else
4366 break
4367 fi
4368 ;;
4369 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4370 # This compiler won't grok '-c -o', but also, the minuso test has
4371 # not run yet. These depmodes are late enough in the game, and
4372 # so weak that their functioning should not be impacted.
4373 am__obj=conftest.${OBJEXT-o}
4374 am__minus_obj=
4375 ;;
4376 none) break ;;
4377 esac
4378 if depmode=$depmode \
4379 source=sub/conftest.c object=$am__obj \
4380 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4381 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4382 >/dev/null 2>conftest.err &&
4383 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4384 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4385 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4386 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4387 # icc doesn't choke on unknown options, it will just issue warnings
4388 # or remarks (even with -Werror). So we grep stderr for any message
4389 # that says an option was ignored or not supported.
4390 # When given -MP, icc 7.0 and 7.1 complain thusly:
4391 # icc: Command line warning: ignoring option '-M'; no argument required
4392 # The diagnosis changed in icc 8.0:
4393 # icc: Command line remark: option '-MP' not supported
4394 if (grep 'ignoring option' conftest.err ||
4395 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4396 am_cv_CC_dependencies_compiler_type=$depmode
4397 break
4398 fi
4399 fi
4400 done
4401
4402 cd ..
4403 rm -rf conftest.dir
4404 else
4405 am_cv_CC_dependencies_compiler_type=none
4406 fi
4407
4408 fi
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4410 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4411 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4412
4413 if
4414 test "x$enable_dependency_tracking" != xno \
4415 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4416 am__fastdepCC_TRUE=
4417 am__fastdepCC_FALSE='#'
4418 else
4419 am__fastdepCC_TRUE='#'
4420 am__fastdepCC_FALSE=
4421 fi
4422
4423
4424
4425
4426 if test -n "$ac_tool_prefix"; then
4427 for ac_prog in ar lib "link -lib"
4428 do
4429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432 $as_echo_n "checking for $ac_word... " >&6; }
4433 if ${ac_cv_prog_AR+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 if test -n "$AR"; then
4437 ac_cv_prog_AR="$AR" # Let the user override the test.
4438 else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4441 do
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4446 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 break 2
4449 fi
4450 done
4451 done
4452 IFS=$as_save_IFS
4453
4454 fi
4455 fi
4456 AR=$ac_cv_prog_AR
4457 if test -n "$AR"; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4459 $as_echo "$AR" >&6; }
4460 else
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462 $as_echo "no" >&6; }
4463 fi
4464
4465
4466 test -n "$AR" && break
4467 done
4468 fi
4469 if test -z "$AR"; then
4470 ac_ct_AR=$AR
4471 for ac_prog in ar lib "link -lib"
4472 do
4473 # Extract the first word of "$ac_prog", so it can be a program name with args.
4474 set dummy $ac_prog; ac_word=$2
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4476 $as_echo_n "checking for $ac_word... " >&6; }
4477 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 if test -n "$ac_ct_AR"; then
4481 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4482 else
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4485 do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4490 ac_cv_prog_ac_ct_AR="$ac_prog"
4491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 break 2
4493 fi
4494 done
4495 done
4496 IFS=$as_save_IFS
4497
4498 fi
4499 fi
4500 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4501 if test -n "$ac_ct_AR"; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4503 $as_echo "$ac_ct_AR" >&6; }
4504 else
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506 $as_echo "no" >&6; }
4507 fi
4508
4509
4510 test -n "$ac_ct_AR" && break
4511 done
4512
4513 if test "x$ac_ct_AR" = x; then
4514 AR="false"
4515 else
4516 case $cross_compiling:$ac_tool_warned in
4517 yes:)
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4520 ac_tool_warned=yes ;;
4521 esac
4522 AR=$ac_ct_AR
4523 fi
4524 fi
4525
4526 : ${AR=ar}
4527
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4529 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4530 if ${am_cv_ar_interface+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 ac_ext=c
4534 ac_cpp='$CPP $CPPFLAGS'
4535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538
4539 am_cv_ar_interface=ar
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4542 int some_variable = 0;
4543 _ACEOF
4544 if ac_fn_c_try_compile "$LINENO"; then :
4545 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4547 (eval $am_ar_try) 2>&5
4548 ac_status=$?
4549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550 test $ac_status = 0; }
4551 if test "$ac_status" -eq 0; then
4552 am_cv_ar_interface=ar
4553 else
4554 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4556 (eval $am_ar_try) 2>&5
4557 ac_status=$?
4558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4559 test $ac_status = 0; }
4560 if test "$ac_status" -eq 0; then
4561 am_cv_ar_interface=lib
4562 else
4563 am_cv_ar_interface=unknown
4564 fi
4565 fi
4566 rm -f conftest.lib libconftest.a
4567
4568 fi
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 ac_ext=c
4571 ac_cpp='$CPP $CPPFLAGS'
4572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4575
4576 fi
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4578 $as_echo "$am_cv_ar_interface" >&6; }
4579
4580 case $am_cv_ar_interface in
4581 ar)
4582 ;;
4583 lib)
4584 # Microsoft lib, so override with the ar-lib wrapper script.
4585 # FIXME: It is wrong to rewrite AR.
4586 # But if we don't then we get into trouble of one sort or another.
4587 # A longer-term fix would be to have automake use am__AR in this case,
4588 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4589 # similar.
4590 AR="$am_aux_dir/ar-lib $AR"
4591 ;;
4592 unknown)
4593 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4594 ;;
4595 esac
4596
4597
4598 # Check whether --enable-debug was given.
4599 if test "${enable_debug+set}" = set; then :
4600 enableval=$enable_debug;
4601 if test $enableval = "no"
4602 then
4603 enable_debug="no"
4604 else
4605 enable_debug="yes"
4606 fi
4607
4608 else
4609
4610 enable_debug="no"
4611
4612 fi
4613
4614
4615 CFLAGS=" $CFLAGS"
4616
4617
4618
4619 if test "$GCC" = "yes";
4620 then
4621 if test "$enable_debug" = "yes"
4622 then
4623 CFLAGS="-g -O2 $CFLAGS"
4624 CFLAGS="-W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align $CFLAGS"
4625 CFLAGS="-Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes $CFLAGS"
4626 CFLAGS="-Wmissing-declarations -Wnested-externs -Wpointer-arith $CFLAGS"
4627 CFLAGS="-Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings $CFLAGS"
4628 else
4629 CFLAGS="-O2 -DNDEBUG $CFLAGS"
4630 fi
4631 fi
4632
4633 ac_ext=c
4634 ac_cpp='$CPP $CPPFLAGS'
4635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4638
4639
4640
4641
4642
4643 ac_ext=c
4644 ac_cpp='$CPP $CPPFLAGS'
4645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4648
4649 acx_pthread_ok=no
4650
4651 # We used to check for pthread.h first, but this fails if pthread.h
4652 # requires special compiler flags (e.g. on True64 or Sequent).
4653 # It gets checked for in the link test anyway.
4654
4655 # First of all, check if the user has set any of the PTHREAD_LIBS,
4656 # etcetera environment variables, and if threads linking works using
4657 # them:
4658 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
4659 save_CFLAGS="$CFLAGS"
4660 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4661 save_LIBS="$LIBS"
4662 LIBS="$PTHREAD_LIBS $LIBS"
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
4664 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4667
4668 /* Override any GCC internal prototype to avoid an error.
4669 Use char because int might match the return type of a GCC
4670 builtin and then its argument prototype would still apply. */
4671 #ifdef __cplusplus
4672 extern "C"
4673 #endif
4674 char pthread_join ();
4675 int
4676 main ()
4677 {
4678 return pthread_join ();
4679 ;
4680 return 0;
4681 }
4682 _ACEOF
4683 if ac_fn_c_try_link "$LINENO"; then :
4684 acx_pthread_ok=yes
4685 fi
4686 rm -f core conftest.err conftest.$ac_objext \
4687 conftest$ac_exeext conftest.$ac_ext
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
4689 $as_echo "$acx_pthread_ok" >&6; }
4690 if test x"$acx_pthread_ok" = xno; then
4691 PTHREAD_LIBS=""
4692 PTHREAD_CFLAGS=""
4693 fi
4694 LIBS="$save_LIBS"
4695 CFLAGS="$save_CFLAGS"
4696 fi
4697
4698 # We must check for the threads library under a number of different
4699 # names; the ordering is very important because some systems
4700 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4701 # libraries is broken (non-POSIX).
4702
4703 # Create a list of thread flags to try. Items starting with a "-" are
4704 # C compiler flags, and other items are library names, except for "none"
4705 # which indicates that we try without any flags at all, and "pthread-config"
4706 # which is a program returning the flags for the Pth emulation library.
4707
4708 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
4709
4710 # The ordering *is* (sometimes) important. Some notes on the
4711 # individual items follow:
4712
4713 # pthreads: AIX (must check this before -lpthread)
4714 # none: in case threads are in libc; should be tried before -Kthread and
4715 # other compiler flags to prevent continual compiler warnings
4716 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
4717 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
4718 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
4719 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
4720 # -pthreads: Solaris/gcc
4721 # -mthreads: Mingw32/gcc, Lynx/gcc
4722 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
4723 # doesn't hurt to check since this sometimes defines pthreads too;
4724 # also defines -D_REENTRANT)
4725 # ... -mt is also the pthreads flag for HP/aCC
4726 # pthread: Linux, etcetera
4727 # --thread-safe: KAI C++
4728 # pthread-config: use pthread-config program (for GNU Pth library)
4729
4730 case "${host_cpu}-${host_os}" in
4731 *solaris*)
4732
4733 # On Solaris (at least, for some versions), libc contains stubbed
4734 # (non-functional) versions of the pthreads routines, so link-based
4735 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
4736 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
4737 # a function called by this macro, so we could check for that, but
4738 # who knows whether they'll stub that too in a future libc.) So,
4739 # we'll just look for -pthreads and -lpthread first:
4740
4741 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
4742 ;;
4743 esac
4744
4745 if test x"$acx_pthread_ok" = xno; then
4746 for flag in $acx_pthread_flags; do
4747
4748 case $flag in
4749 none)
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
4751 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
4752 ;;
4753
4754 -*)
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
4756 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
4757 PTHREAD_CFLAGS="$flag"
4758 ;;
4759
4760 pthread-config)
4761 # Extract the first word of "pthread-config", so it can be a program name with args.
4762 set dummy pthread-config; ac_word=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if ${ac_cv_prog_acx_pthread_config+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 if test -n "$acx_pthread_config"; then
4769 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
4770 else
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4773 do
4774 IFS=$as_save_IFS
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4778 ac_cv_prog_acx_pthread_config="yes"
4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 break 2
4781 fi
4782 done
4783 done
4784 IFS=$as_save_IFS
4785
4786 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
4787 fi
4788 fi
4789 acx_pthread_config=$ac_cv_prog_acx_pthread_config
4790 if test -n "$acx_pthread_config"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
4792 $as_echo "$acx_pthread_config" >&6; }
4793 else
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4796 fi
4797
4798
4799 if test x"$acx_pthread_config" = xno; then continue; fi
4800 PTHREAD_CFLAGS="`pthread-config --cflags`"
4801 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
4802 ;;
4803
4804 *)
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
4806 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
4807 PTHREAD_LIBS="-l$flag"
4808 ;;
4809 esac
4810
4811 save_LIBS="$LIBS"
4812 save_CFLAGS="$CFLAGS"
4813 LIBS="$PTHREAD_LIBS $LIBS"
4814 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4815
4816 # Check for various functions. We must include pthread.h,
4817 # since some functions may be macros. (On the Sequent, we
4818 # need a special flag -Kthread to make this header compile.)
4819 # We check for pthread_join because it is in -lpthread on IRIX
4820 # while pthread_create is in libc. We check for pthread_attr_init
4821 # due to DEC craziness with -lpthreads. We check for
4822 # pthread_cleanup_push because it is one of the few pthread
4823 # functions on Solaris that doesn't have a non-functional libc stub.
4824 # We try pthread_create on general principles.
4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826 /* end confdefs.h. */
4827 #include <pthread.h>
4828 int
4829 main ()
4830 {
4831 pthread_t th; pthread_join(th, 0);
4832 pthread_attr_init(0); pthread_cleanup_push(0, 0);
4833 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
4834 ;
4835 return 0;
4836 }
4837 _ACEOF
4838 if ac_fn_c_try_link "$LINENO"; then :
4839 acx_pthread_ok=yes
4840 fi
4841 rm -f core conftest.err conftest.$ac_objext \
4842 conftest$ac_exeext conftest.$ac_ext
4843
4844 LIBS="$save_LIBS"
4845 CFLAGS="$save_CFLAGS"
4846
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
4848 $as_echo "$acx_pthread_ok" >&6; }
4849 if test "x$acx_pthread_ok" = xyes; then
4850 break;
4851 fi
4852
4853 PTHREAD_LIBS=""
4854 PTHREAD_CFLAGS=""
4855 done
4856 fi
4857
4858 # Various other checks:
4859 if test "x$acx_pthread_ok" = xyes; then
4860 save_LIBS="$LIBS"
4861 LIBS="$PTHREAD_LIBS $LIBS"
4862 save_CFLAGS="$CFLAGS"
4863 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4864
4865 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
4867 $as_echo_n "checking for joinable pthread attribute... " >&6; }
4868 attr_name=unknown
4869 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4872 #include <pthread.h>
4873 int
4874 main ()
4875 {
4876 int attr=$attr; return attr;
4877 ;
4878 return 0;
4879 }
4880 _ACEOF
4881 if ac_fn_c_try_link "$LINENO"; then :
4882 attr_name=$attr; break
4883 fi
4884 rm -f core conftest.err conftest.$ac_objext \
4885 conftest$ac_exeext conftest.$ac_ext
4886 done
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
4888 $as_echo "$attr_name" >&6; }
4889 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
4890
4891 cat >>confdefs.h <<_ACEOF
4892 #define PTHREAD_CREATE_JOINABLE $attr_name
4893 _ACEOF
4894
4895 fi
4896
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
4898 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
4899 flag=no
4900 case "${host_cpu}-${host_os}" in
4901 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
4902 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
4903 esac
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
4905 $as_echo "${flag}" >&6; }
4906 if test "x$flag" != xno; then
4907 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
4908 fi
4909
4910 LIBS="$save_LIBS"
4911 CFLAGS="$save_CFLAGS"
4912 # More AIX lossage: must compile with xlc_r or cc_r
4913 if test x"$GCC" != xyes; then
4914 for ac_prog in xlc_r cc_r
4915 do
4916 # Extract the first word of "$ac_prog", so it can be a program name with args.
4917 set dummy $ac_prog; ac_word=$2
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919 $as_echo_n "checking for $ac_word... " >&6; }
4920 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
4921 $as_echo_n "(cached) " >&6
4922 else
4923 if test -n "$PTHREAD_CC"; then
4924 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
4925 else
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4928 do
4929 IFS=$as_save_IFS
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933 ac_cv_prog_PTHREAD_CC="$ac_prog"
4934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 break 2
4936 fi
4937 done
4938 done
4939 IFS=$as_save_IFS
4940
4941 fi
4942 fi
4943 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
4944 if test -n "$PTHREAD_CC"; then
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
4946 $as_echo "$PTHREAD_CC" >&6; }
4947 else
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949 $as_echo "no" >&6; }
4950 fi
4951
4952
4953 test -n "$PTHREAD_CC" && break
4954 done
4955 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
4956
4957 else
4958 PTHREAD_CC=$CC
4959 fi
4960
4961 # The next part tries to detect GCC inconsistency with -shared on some
4962 # architectures and systems. The problem is that in certain
4963 # configurations, when -shared is specified, GCC "forgets" to
4964 # internally use various flags which are still necessary.
4965
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
4967 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
4968 check_inconsistencies=yes
4969 case "${host_cpu}-${host_os}" in
4970 *-darwin*) check_inconsistencies=no ;;
4971 esac
4972 if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4975 else
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4977 $as_echo "yes" >&6; }
4978
4979 # In order not to create several levels of indentation, we test
4980 # the value of "$ok" until we find out the cure or run out of
4981 # ideas.
4982 ok="no"
4983
4984 #
4985 # Prepare the flags
4986 #
4987 save_CFLAGS="$CFLAGS"
4988 save_LIBS="$LIBS"
4989 save_CC="$CC"
4990 # Try with the flags determined by the earlier checks.
4991 #
4992 # -Wl,-z,defs forces link-time symbol resolution, so that the
4993 # linking checks with -shared actually have any value
4994 #
4995 # FIXME: -fPIC is required for -shared on many architectures,
4996 # so we specify it here, but the right way would probably be to
4997 # properly detect whether it is actually required.
4998 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
4999 LIBS="$PTHREAD_LIBS $LIBS"
5000 CC="$PTHREAD_CC"
5001
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
5003 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5006 #include <pthread.h>
5007 int
5008 main ()
5009 {
5010 pthread_t th; pthread_join(th, 0);
5011 pthread_attr_init(0); pthread_cleanup_push(0, 0);
5012 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
5013 ;
5014 return 0;
5015 }
5016 _ACEOF
5017 if ac_fn_c_try_link "$LINENO"; then :
5018 ok=yes
5019 fi
5020 rm -f core conftest.err conftest.$ac_objext \
5021 conftest$ac_exeext conftest.$ac_ext
5022
5023 if test "x$ok" = xyes; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5025 $as_echo "yes" >&6; }
5026 else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5029 fi
5030
5031 #
5032 # Linux gcc on some architectures such as mips/mipsel forgets
5033 # about -lpthread
5034 #
5035 if test x"$ok" = xno; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
5037 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
5038 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5041 #include <pthread.h>
5042 int
5043 main ()
5044 {
5045 pthread_t th; pthread_join(th, 0);
5046 pthread_attr_init(0); pthread_cleanup_push(0, 0);
5047 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
5048 ;
5049 return 0;
5050 }
5051 _ACEOF
5052 if ac_fn_c_try_link "$LINENO"; then :
5053 ok=yes
5054 fi
5055 rm -f core conftest.err conftest.$ac_objext \
5056 conftest$ac_exeext conftest.$ac_ext
5057
5058 if test "x$ok" = xyes; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5060 $as_echo "yes" >&6; }
5061 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5065 fi
5066 fi
5067 #
5068 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
5069 #
5070 if test x"$ok" = xno; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
5072 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
5073 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5076 #include <pthread.h>
5077 int
5078 main ()
5079 {
5080 pthread_t th; pthread_join(th, 0);
5081 pthread_attr_init(0); pthread_cleanup_push(0, 0);
5082 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
5083 ;
5084 return 0;
5085 }
5086 _ACEOF
5087 if ac_fn_c_try_link "$LINENO"; then :
5088 ok=yes
5089 fi
5090 rm -f core conftest.err conftest.$ac_objext \
5091 conftest$ac_exeext conftest.$ac_ext
5092
5093 if test "x$ok" = xyes; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5095 $as_echo "yes" >&6; }
5096 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
5097 else
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5100 fi
5101 fi
5102 if test x"$ok" = xno; then
5103 # OK, we have run out of ideas
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
5105 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
5106
5107 # so it's not safe to assume that we may use pthreads
5108 acx_pthread_ok=no
5109 fi
5110
5111 CFLAGS="$save_CFLAGS"
5112 LIBS="$save_LIBS"
5113 CC="$save_CC"
5114 fi
5115 else
5116 PTHREAD_CC="$CC"
5117 fi
5118
5119
5120
5121
5122
5123 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5124 if test x"$acx_pthread_ok" = xyes; then
5125 LIBS="$PTHREAD_LIBS $LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5126 CC="$PTHREAD_CC" $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
5127
5128 :
5129 else
5130 acx_pthread_ok=no
5131 as_fn_error $? "no usable pthreads library found" "$LINENO" 5
5132 fi
5133 ac_ext=c
5134 ac_cpp='$CPP $CPPFLAGS'
5135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5138
5139
5140 for ac_func in sem_timedwait
5141 do :
5142 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
5143 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
5144 cat >>confdefs.h <<_ACEOF
5145 #define HAVE_SEM_TIMEDWAIT 1
5146 _ACEOF
5147
5148 fi
5149 done
5150
5151
5152 ac_ext=c
5153 ac_cpp='$CPP $CPPFLAGS'
5154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5158 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5159 # On Suns, sometimes $CPP names a directory.
5160 if test -n "$CPP" && test -d "$CPP"; then
5161 CPP=
5162 fi
5163 if test -z "$CPP"; then
5164 if ${ac_cv_prog_CPP+:} false; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 # Double quotes because CPP needs to be expanded
5168 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5169 do
5170 ac_preproc_ok=false
5171 for ac_c_preproc_warn_flag in '' yes
5172 do
5173 # Use a header file that comes with gcc, so configuring glibc
5174 # with a fresh cross-compiler works.
5175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5176 # <limits.h> exists even on freestanding compilers.
5177 # On the NeXT, cc -E runs the code through the compiler's parser,
5178 # not just through cpp. "Syntax error" is here to catch this case.
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5181 #ifdef __STDC__
5182 # include <limits.h>
5183 #else
5184 # include <assert.h>
5185 #endif
5186 Syntax error
5187 _ACEOF
5188 if ac_fn_c_try_cpp "$LINENO"; then :
5189
5190 else
5191 # Broken: fails on valid input.
5192 continue
5193 fi
5194 rm -f conftest.err conftest.i conftest.$ac_ext
5195
5196 # OK, works on sane cases. Now check whether nonexistent headers
5197 # can be detected and how.
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200 #include <ac_nonexistent.h>
5201 _ACEOF
5202 if ac_fn_c_try_cpp "$LINENO"; then :
5203 # Broken: success on invalid input.
5204 continue
5205 else
5206 # Passes both tests.
5207 ac_preproc_ok=:
5208 break
5209 fi
5210 rm -f conftest.err conftest.i conftest.$ac_ext
5211
5212 done
5213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5214 rm -f conftest.i conftest.err conftest.$ac_ext
5215 if $ac_preproc_ok; then :
5216 break
5217 fi
5218
5219 done
5220 ac_cv_prog_CPP=$CPP
5221
5222 fi
5223 CPP=$ac_cv_prog_CPP
5224 else
5225 ac_cv_prog_CPP=$CPP
5226 fi
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5228 $as_echo "$CPP" >&6; }
5229 ac_preproc_ok=false
5230 for ac_c_preproc_warn_flag in '' yes
5231 do
5232 # Use a header file that comes with gcc, so configuring glibc
5233 # with a fresh cross-compiler works.
5234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5235 # <limits.h> exists even on freestanding compilers.
5236 # On the NeXT, cc -E runs the code through the compiler's parser,
5237 # not just through cpp. "Syntax error" is here to catch this case.
5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5240 #ifdef __STDC__
5241 # include <limits.h>
5242 #else
5243 # include <assert.h>
5244 #endif
5245 Syntax error
5246 _ACEOF
5247 if ac_fn_c_try_cpp "$LINENO"; then :
5248
5249 else
5250 # Broken: fails on valid input.
5251 continue
5252 fi
5253 rm -f conftest.err conftest.i conftest.$ac_ext
5254
5255 # OK, works on sane cases. Now check whether nonexistent headers
5256 # can be detected and how.
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5259 #include <ac_nonexistent.h>
5260 _ACEOF
5261 if ac_fn_c_try_cpp "$LINENO"; then :
5262 # Broken: success on invalid input.
5263 continue
5264 else
5265 # Passes both tests.
5266 ac_preproc_ok=:
5267 break
5268 fi
5269 rm -f conftest.err conftest.i conftest.$ac_ext
5270
5271 done
5272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5273 rm -f conftest.i conftest.err conftest.$ac_ext
5274 if $ac_preproc_ok; then :
5275
5276 else
5277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5279 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5280 See \`config.log' for more details" "$LINENO" 5; }
5281 fi
5282
5283 ac_ext=c
5284 ac_cpp='$CPP $CPPFLAGS'
5285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5288
5289
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5291 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5292 if ${ac_cv_path_GREP+:} false; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 if test -z "$GREP"; then
5296 ac_path_GREP_found=false
5297 # Loop through the user's path and test for each of PROGNAME-LIST
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5300 do
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_prog in grep ggrep; do
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5306 as_fn_executable_p "$ac_path_GREP" || continue
5307 # Check for GNU ac_path_GREP and select it if it is found.
5308 # Check for GNU $ac_path_GREP
5309 case `"$ac_path_GREP" --version 2>&1` in
5310 *GNU*)
5311 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5312 *)
5313 ac_count=0
5314 $as_echo_n 0123456789 >"conftest.in"
5315 while :
5316 do
5317 cat "conftest.in" "conftest.in" >"conftest.tmp"
5318 mv "conftest.tmp" "conftest.in"
5319 cp "conftest.in" "conftest.nl"
5320 $as_echo 'GREP' >> "conftest.nl"
5321 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5323 as_fn_arith $ac_count + 1 && ac_count=$as_val
5324 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5325 # Best one so far, save it but keep looking for a better one
5326 ac_cv_path_GREP="$ac_path_GREP"
5327 ac_path_GREP_max=$ac_count
5328 fi
5329 # 10*(2^10) chars as input seems more than enough
5330 test $ac_count -gt 10 && break
5331 done
5332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5333 esac
5334
5335 $ac_path_GREP_found && break 3
5336 done
5337 done
5338 done
5339 IFS=$as_save_IFS
5340 if test -z "$ac_cv_path_GREP"; then
5341 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5342 fi
5343 else
5344 ac_cv_path_GREP=$GREP
5345 fi
5346
5347 fi
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5349 $as_echo "$ac_cv_path_GREP" >&6; }
5350 GREP="$ac_cv_path_GREP"
5351
5352
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5354 $as_echo_n "checking for egrep... " >&6; }
5355 if ${ac_cv_path_EGREP+:} false; then :
5356 $as_echo_n "(cached) " >&6
5357 else
5358 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5359 then ac_cv_path_EGREP="$GREP -E"
5360 else
5361 if test -z "$EGREP"; then
5362 ac_path_EGREP_found=false
5363 # Loop through the user's path and test for each of PROGNAME-LIST
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5366 do
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_prog in egrep; do
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5372 as_fn_executable_p "$ac_path_EGREP" || continue
5373 # Check for GNU ac_path_EGREP and select it if it is found.
5374 # Check for GNU $ac_path_EGREP
5375 case `"$ac_path_EGREP" --version 2>&1` in
5376 *GNU*)
5377 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5378 *)
5379 ac_count=0
5380 $as_echo_n 0123456789 >"conftest.in"
5381 while :
5382 do
5383 cat "conftest.in" "conftest.in" >"conftest.tmp"
5384 mv "conftest.tmp" "conftest.in"
5385 cp "conftest.in" "conftest.nl"
5386 $as_echo 'EGREP' >> "conftest.nl"
5387 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5388 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5389 as_fn_arith $ac_count + 1 && ac_count=$as_val
5390 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5391 # Best one so far, save it but keep looking for a better one
5392 ac_cv_path_EGREP="$ac_path_EGREP"
5393 ac_path_EGREP_max=$ac_count
5394 fi
5395 # 10*(2^10) chars as input seems more than enough
5396 test $ac_count -gt 10 && break
5397 done
5398 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5399 esac
5400
5401 $ac_path_EGREP_found && break 3
5402 done
5403 done
5404 done
5405 IFS=$as_save_IFS
5406 if test -z "$ac_cv_path_EGREP"; then
5407 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin"