masqmail
view configure @ 161:6dd3a289989b
listen per default on localhost:25 now
this is a typical setup
for the security POV it might be better to not listen
on any interface by default, but listening on local
interfaces seems to not be a problem
author | meillo@marmaro.de |
---|---|
date | Thu, 08 Jul 2010 11:53:07 +0200 |
parents | e20fe8c9936a |
children | 3914d7cabfbc |
line source
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for masqmail 0.3.0.
4 #
5 # Report bugs to <meillo@marmaro.de>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
181 fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202 fi
203 fi
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and meillo@marmaro.de
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
237 $0: have one."
238 fi
239 exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257 { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337 else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354 else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359 fi # as_fn_arith
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
383 fi
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
389 fi
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
395 fi
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453 }
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
464 *)
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489 else
490 as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500 fi
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522 fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 #
541 # Initializations.
542 #
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
552 # Identity of this package.
553 PACKAGE_NAME='masqmail'
554 PACKAGE_TARNAME='masqmail'
555 PACKAGE_VERSION='0.3.0'
556 PACKAGE_STRING='masqmail 0.3.0'
557 PACKAGE_BUGREPORT='meillo@marmaro.de'
558 PACKAGE_URL=''
560 ac_unique_file="src/masqmail.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 # include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 # include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
597 ac_subst_vars='am__EXEEXT_FALSE
598 am__EXEEXT_TRUE
599 LTLIBOBJS
600 LIBOBJS
601 with_confdir
602 with_spooldir
603 with_logdir
604 USE_LIBLOCKFILE
605 LOCKFILE_LIBS
606 IDENT_LIBS
607 has_ident
608 MD5_LIBS
609 BASE64_LIBS
610 with_group
611 with_user
612 RESOLV_LIBS
613 GLIB_LIBS
614 GLIB_CFLAGS
615 PKG_CONFIG_LIBDIR
616 PKG_CONFIG_PATH
617 PKG_CONFIG
618 RANLIB
619 EGREP
620 GREP
621 CPP
622 am__fastdepCC_FALSE
623 am__fastdepCC_TRUE
624 CCDEPMODE
625 AMDEPBACKSLASH
626 AMDEP_FALSE
627 AMDEP_TRUE
628 am__quote
629 am__include
630 DEPDIR
631 OBJEXT
632 EXEEXT
633 ac_ct_CC
634 CPPFLAGS
635 LDFLAGS
636 CFLAGS
637 CC
638 am__untar
639 am__tar
640 AMTAR
641 am__leading_dot
642 SET_MAKE
643 AWK
644 mkdir_p
645 MKDIR_P
646 INSTALL_STRIP_PROGRAM
647 STRIP
648 install_sh
649 MAKEINFO
650 AUTOHEADER
651 AUTOMAKE
652 AUTOCONF
653 ACLOCAL
654 VERSION
655 PACKAGE
656 CYGPATH_W
657 am__isrc
658 INSTALL_DATA
659 INSTALL_SCRIPT
660 INSTALL_PROGRAM
661 target_alias
662 host_alias
663 build_alias
664 LIBS
665 ECHO_T
666 ECHO_N
667 ECHO_C
668 DEFS
669 mandir
670 localedir
671 libdir
672 psdir
673 pdfdir
674 dvidir
675 htmldir
676 infodir
677 docdir
678 oldincludedir
679 includedir
680 localstatedir
681 sharedstatedir
682 sysconfdir
683 datadir
684 datarootdir
685 libexecdir
686 sbindir
687 bindir
688 program_transform_name
689 prefix
690 exec_prefix
691 PACKAGE_URL
692 PACKAGE_BUGREPORT
693 PACKAGE_STRING
694 PACKAGE_VERSION
695 PACKAGE_TARNAME
696 PACKAGE_NAME
697 PATH_SEPARATOR
698 SHELL'
699 ac_subst_files=''
700 ac_user_opts='
701 enable_option_checking
702 enable_dependency_tracking
703 enable_resolver
704 with_user
705 with_group
706 enable_debug
707 with_glib_static
708 enable_smtp_server
709 enable_pop3
710 enable_auth
711 enable_maildir
712 with_libcrypto
713 enable_ident
714 enable_mserver
715 with_liblockfile
716 with_logdir
717 with_spooldir
718 with_confdir
719 '
720 ac_precious_vars='build_alias
721 host_alias
722 target_alias
723 CC
724 CFLAGS
725 LDFLAGS
726 LIBS
727 CPPFLAGS
728 CPP
729 PKG_CONFIG
730 PKG_CONFIG_PATH
731 PKG_CONFIG_LIBDIR
732 GLIB_CFLAGS
733 GLIB_LIBS'
736 # Initialize some variables set by options.
737 ac_init_help=
738 ac_init_version=false
739 ac_unrecognized_opts=
740 ac_unrecognized_sep=
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
743 cache_file=/dev/null
744 exec_prefix=NONE
745 no_create=
746 no_recursion=
747 prefix=NONE
748 program_prefix=NONE
749 program_suffix=NONE
750 program_transform_name=s,x,x,
751 silent=
752 site=
753 srcdir=
754 verbose=
755 x_includes=NONE
756 x_libraries=NONE
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir='${exec_prefix}/bin'
765 sbindir='${exec_prefix}/sbin'
766 libexecdir='${exec_prefix}/libexec'
767 datarootdir='${prefix}/share'
768 datadir='${datarootdir}'
769 sysconfdir='${prefix}/etc'
770 sharedstatedir='${prefix}/com'
771 localstatedir='${prefix}/var'
772 includedir='${prefix}/include'
773 oldincludedir='/usr/include'
774 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
775 infodir='${datarootdir}/info'
776 htmldir='${docdir}'
777 dvidir='${docdir}'
778 pdfdir='${docdir}'
779 psdir='${docdir}'
780 libdir='${exec_prefix}/lib'
781 localedir='${datarootdir}/locale'
782 mandir='${datarootdir}/man'
784 ac_prev=
785 ac_dashdash=
786 for ac_option
787 do
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\$ac_option
791 ac_prev=
792 continue
793 fi
795 case $ac_option in
796 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
797 *) ac_optarg=yes ;;
798 esac
800 # Accept the important Cygnus configure options, so we can diagnose typos.
802 case $ac_dashdash$ac_option in
803 --)
804 ac_dashdash=yes ;;
806 -bindir | --bindir | --bindi | --bind | --bin | --bi)
807 ac_prev=bindir ;;
808 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
809 bindir=$ac_optarg ;;
811 -build | --build | --buil | --bui | --bu)
812 ac_prev=build_alias ;;
813 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
814 build_alias=$ac_optarg ;;
816 -cache-file | --cache-file | --cache-fil | --cache-fi \
817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
818 ac_prev=cache_file ;;
819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
821 cache_file=$ac_optarg ;;
823 --config-cache | -C)
824 cache_file=config.cache ;;
826 -datadir | --datadir | --datadi | --datad)
827 ac_prev=datadir ;;
828 -datadir=* | --datadir=* | --datadi=* | --datad=*)
829 datadir=$ac_optarg ;;
831 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
832 | --dataroo | --dataro | --datar)
833 ac_prev=datarootdir ;;
834 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
835 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
836 datarootdir=$ac_optarg ;;
838 -disable-* | --disable-*)
839 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
842 as_fn_error "invalid feature name: $ac_useropt"
843 ac_useropt_orig=$ac_useropt
844 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
845 case $ac_user_opts in
846 *"
847 "enable_$ac_useropt"
848 "*) ;;
849 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
850 ac_unrecognized_sep=', ';;
851 esac
852 eval enable_$ac_useropt=no ;;
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
864 -enable-* | --enable-*)
865 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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--enable-$ac_useropt_orig"
876 ac_unrecognized_sep=', ';;
877 esac
878 eval enable_$ac_useropt=\$ac_optarg ;;
880 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
881 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
882 | --exec | --exe | --ex)
883 ac_prev=exec_prefix ;;
884 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
885 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
886 | --exec=* | --exe=* | --ex=*)
887 exec_prefix=$ac_optarg ;;
889 -gas | --gas | --ga | --g)
890 # Obsolete; use --with-gas.
891 with_gas=yes ;;
893 -help | --help | --hel | --he | -h)
894 ac_init_help=long ;;
895 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
896 ac_init_help=recursive ;;
897 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
898 ac_init_help=short ;;
900 -host | --host | --hos | --ho)
901 ac_prev=host_alias ;;
902 -host=* | --host=* | --hos=* | --ho=*)
903 host_alias=$ac_optarg ;;
905 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906 ac_prev=htmldir ;;
907 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908 | --ht=*)
909 htmldir=$ac_optarg ;;
911 -includedir | --includedir | --includedi | --included | --include \
912 | --includ | --inclu | --incl | --inc)
913 ac_prev=includedir ;;
914 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
915 | --includ=* | --inclu=* | --incl=* | --inc=*)
916 includedir=$ac_optarg ;;
918 -infodir | --infodir | --infodi | --infod | --info | --inf)
919 ac_prev=infodir ;;
920 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
921 infodir=$ac_optarg ;;
923 -libdir | --libdir | --libdi | --libd)
924 ac_prev=libdir ;;
925 -libdir=* | --libdir=* | --libdi=* | --libd=*)
926 libdir=$ac_optarg ;;
928 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
929 | --libexe | --libex | --libe)
930 ac_prev=libexecdir ;;
931 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
932 | --libexe=* | --libex=* | --libe=*)
933 libexecdir=$ac_optarg ;;
935 -localedir | --localedir | --localedi | --localed | --locale)
936 ac_prev=localedir ;;
937 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
938 localedir=$ac_optarg ;;
940 -localstatedir | --localstatedir | --localstatedi | --localstated \
941 | --localstate | --localstat | --localsta | --localst | --locals)
942 ac_prev=localstatedir ;;
943 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
944 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
945 localstatedir=$ac_optarg ;;
947 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948 ac_prev=mandir ;;
949 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
950 mandir=$ac_optarg ;;
952 -nfp | --nfp | --nf)
953 # Obsolete; use --without-fp.
954 with_fp=no ;;
956 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
957 | --no-cr | --no-c | -n)
958 no_create=yes ;;
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
962 no_recursion=yes ;;
964 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
965 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
966 | --oldin | --oldi | --old | --ol | --o)
967 ac_prev=oldincludedir ;;
968 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
969 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
970 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
971 oldincludedir=$ac_optarg ;;
973 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974 ac_prev=prefix ;;
975 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
976 prefix=$ac_optarg ;;
978 -program-prefix | --program-prefix | --program-prefi | --program-pref \
979 | --program-pre | --program-pr | --program-p)
980 ac_prev=program_prefix ;;
981 -program-prefix=* | --program-prefix=* | --program-prefi=* \
982 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
983 program_prefix=$ac_optarg ;;
985 -program-suffix | --program-suffix | --program-suffi | --program-suff \
986 | --program-suf | --program-su | --program-s)
987 ac_prev=program_suffix ;;
988 -program-suffix=* | --program-suffix=* | --program-suffi=* \
989 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
990 program_suffix=$ac_optarg ;;
992 -program-transform-name | --program-transform-name \
993 | --program-transform-nam | --program-transform-na \
994 | --program-transform-n | --program-transform- \
995 | --program-transform | --program-transfor \
996 | --program-transfo | --program-transf \
997 | --program-trans | --program-tran \
998 | --progr-tra | --program-tr | --program-t)
999 ac_prev=program_transform_name ;;
1000 -program-transform-name=* | --program-transform-name=* \
1001 | --program-transform-nam=* | --program-transform-na=* \
1002 | --program-transform-n=* | --program-transform-=* \
1003 | --program-transform=* | --program-transfor=* \
1004 | --program-transfo=* | --program-transf=* \
1005 | --program-trans=* | --program-tran=* \
1006 | --progr-tra=* | --program-tr=* | --program-t=*)
1007 program_transform_name=$ac_optarg ;;
1009 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010 ac_prev=pdfdir ;;
1011 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1012 pdfdir=$ac_optarg ;;
1014 -psdir | --psdir | --psdi | --psd | --ps)
1015 ac_prev=psdir ;;
1016 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1017 psdir=$ac_optarg ;;
1019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020 | -silent | --silent | --silen | --sile | --sil)
1021 silent=yes ;;
1023 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1024 ac_prev=sbindir ;;
1025 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1026 | --sbi=* | --sb=*)
1027 sbindir=$ac_optarg ;;
1029 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1030 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1031 | --sharedst | --shareds | --shared | --share | --shar \
1032 | --sha | --sh)
1033 ac_prev=sharedstatedir ;;
1034 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1035 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1036 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1037 | --sha=* | --sh=*)
1038 sharedstatedir=$ac_optarg ;;
1040 -site | --site | --sit)
1041 ac_prev=site ;;
1042 -site=* | --site=* | --sit=*)
1043 site=$ac_optarg ;;
1045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1046 ac_prev=srcdir ;;
1047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1048 srcdir=$ac_optarg ;;
1050 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1051 | --syscon | --sysco | --sysc | --sys | --sy)
1052 ac_prev=sysconfdir ;;
1053 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1054 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1055 sysconfdir=$ac_optarg ;;
1057 -target | --target | --targe | --targ | --tar | --ta | --t)
1058 ac_prev=target_alias ;;
1059 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1060 target_alias=$ac_optarg ;;
1062 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1063 verbose=yes ;;
1065 -version | --version | --versio | --versi | --vers | -V)
1066 ac_init_version=: ;;
1068 -with-* | --with-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error "invalid package name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1076 *"
1077 "with_$ac_useropt"
1078 "*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval with_$ac_useropt=\$ac_optarg ;;
1084 -without-* | --without-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error "invalid package name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1092 *"
1093 "with_$ac_useropt"
1094 "*) ;;
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1097 esac
1098 eval with_$ac_useropt=no ;;
1100 --x)
1101 # Obsolete; use --with-x.
1102 with_x=yes ;;
1104 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1105 | --x-incl | --x-inc | --x-in | --x-i)
1106 ac_prev=x_includes ;;
1107 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1108 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1109 x_includes=$ac_optarg ;;
1111 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1112 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1113 ac_prev=x_libraries ;;
1114 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1115 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1116 x_libraries=$ac_optarg ;;
1118 -*) as_fn_error "unrecognized option: \`$ac_option'
1119 Try \`$0 --help' for more information."
1120 ;;
1122 *=*)
1123 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1124 # Reject names that are not valid shell variable names.
1125 case $ac_envvar in #(
1126 '' | [0-9]* | *[!_$as_cr_alnum]* )
1127 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1128 esac
1129 eval $ac_envvar=\$ac_optarg
1130 export $ac_envvar ;;
1132 *)
1133 # FIXME: should be removed in autoconf 3.0.
1134 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1135 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1136 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1137 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1138 ;;
1140 esac
1141 done
1143 if test -n "$ac_prev"; then
1144 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1145 as_fn_error "missing argument to $ac_option"
1146 fi
1148 if test -n "$ac_unrecognized_opts"; then
1149 case $enable_option_checking in
1150 no) ;;
1151 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1152 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1153 esac
1154 fi
1156 # Check all directory arguments for consistency.
1157 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1158 datadir sysconfdir sharedstatedir localstatedir includedir \
1159 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1160 libdir localedir mandir
1161 do
1162 eval ac_val=\$$ac_var
1163 # Remove trailing slashes.
1164 case $ac_val in
1165 */ )
1166 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1167 eval $ac_var=\$ac_val;;
1168 esac
1169 # Be sure to have absolute directory names.
1170 case $ac_val in
1171 [\\/$]* | ?:[\\/]* ) continue;;
1172 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1173 esac
1174 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1175 done
1177 # There might be people who depend on the old broken behavior: `$host'
1178 # used to hold the argument of --host etc.
1179 # FIXME: To remove some day.
1180 build=$build_alias
1181 host=$host_alias
1182 target=$target_alias
1184 # FIXME: To remove some day.
1185 if test "x$host_alias" != x; then
1186 if test "x$build_alias" = x; then
1187 cross_compiling=maybe
1188 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1189 If a cross compiler is detected then cross compile mode will be used." >&2
1190 elif test "x$build_alias" != "x$host_alias"; then
1191 cross_compiling=yes
1192 fi
1193 fi
1195 ac_tool_prefix=
1196 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1198 test "$silent" = yes && exec 6>/dev/null
1201 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1202 ac_ls_di=`ls -di .` &&
1203 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1204 as_fn_error "working directory cannot be determined"
1205 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1206 as_fn_error "pwd does not report name of working directory"
1209 # Find the source files, if location was not specified.
1210 if test -z "$srcdir"; then
1211 ac_srcdir_defaulted=yes
1212 # Try the directory containing this script, then the parent directory.
1213 ac_confdir=`$as_dirname -- "$as_myself" ||
1214 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1215 X"$as_myself" : 'X\(//\)[^/]' \| \
1216 X"$as_myself" : 'X\(//\)$' \| \
1217 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1218 $as_echo X"$as_myself" |
1219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1220 s//\1/
1221 q
1222 }
1223 /^X\(\/\/\)[^/].*/{
1224 s//\1/
1225 q
1226 }
1227 /^X\(\/\/\)$/{
1228 s//\1/
1229 q
1230 }
1231 /^X\(\/\).*/{
1232 s//\1/
1233 q
1234 }
1235 s/.*/./; q'`
1236 srcdir=$ac_confdir
1237 if test ! -r "$srcdir/$ac_unique_file"; then
1238 srcdir=..
1239 fi
1240 else
1241 ac_srcdir_defaulted=no
1242 fi
1243 if test ! -r "$srcdir/$ac_unique_file"; then
1244 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1245 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1246 fi
1247 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1248 ac_abs_confdir=`(
1249 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1250 pwd)`
1251 # When building in place, set srcdir=.
1252 if test "$ac_abs_confdir" = "$ac_pwd"; then
1253 srcdir=.
1254 fi
1255 # Remove unnecessary trailing slashes from srcdir.
1256 # Double slashes in file names in object file debugging info
1257 # mess up M-x gdb in Emacs.
1258 case $srcdir in
1259 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1260 esac
1261 for ac_var in $ac_precious_vars; do
1262 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1263 eval ac_env_${ac_var}_value=\$${ac_var}
1264 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1265 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1266 done
1268 #
1269 # Report the --help message.
1270 #
1271 if test "$ac_init_help" = "long"; then
1272 # Omit some internal or obsolete options to make the list less imposing.
1273 # This message is too long to be a string in the A/UX 3.1 sh.
1274 cat <<_ACEOF
1275 \`configure' configures masqmail 0.3.0 to adapt to many kinds of systems.
1277 Usage: $0 [OPTION]... [VAR=VALUE]...
1279 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1280 VAR=VALUE. See below for descriptions of some of the useful variables.
1282 Defaults for the options are specified in brackets.
1284 Configuration:
1285 -h, --help display this help and exit
1286 --help=short display options specific to this package
1287 --help=recursive display the short help of all the included packages
1288 -V, --version display version information and exit
1289 -q, --quiet, --silent do not print \`checking...' messages
1290 --cache-file=FILE cache test results in FILE [disabled]
1291 -C, --config-cache alias for \`--cache-file=config.cache'
1292 -n, --no-create do not create output files
1293 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1295 Installation directories:
1296 --prefix=PREFIX install architecture-independent files in PREFIX
1297 [$ac_default_prefix]
1298 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1299 [PREFIX]
1301 By default, \`make install' will install all the files in
1302 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1303 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1304 for instance \`--prefix=\$HOME'.
1306 For better control, use the options below.
1308 Fine tuning of the installation directories:
1309 --bindir=DIR user executables [EPREFIX/bin]
1310 --sbindir=DIR system admin executables [EPREFIX/sbin]
1311 --libexecdir=DIR program executables [EPREFIX/libexec]
1312 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1313 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1314 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1315 --libdir=DIR object code libraries [EPREFIX/lib]
1316 --includedir=DIR C header files [PREFIX/include]
1317 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1318 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1319 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1320 --infodir=DIR info documentation [DATAROOTDIR/info]
1321 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1322 --mandir=DIR man documentation [DATAROOTDIR/man]
1323 --docdir=DIR documentation root [DATAROOTDIR/doc/masqmail]
1324 --htmldir=DIR html documentation [DOCDIR]
1325 --dvidir=DIR dvi documentation [DOCDIR]
1326 --pdfdir=DIR pdf documentation [DOCDIR]
1327 --psdir=DIR ps documentation [DOCDIR]
1328 _ACEOF
1330 cat <<\_ACEOF
1332 Program names:
1333 --program-prefix=PREFIX prepend PREFIX to installed program names
1334 --program-suffix=SUFFIX append SUFFIX to installed program names
1335 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1336 _ACEOF
1337 fi
1339 if test -n "$ac_init_help"; then
1340 case $ac_init_help in
1341 short | recursive ) echo "Configuration of masqmail 0.3.0:";;
1342 esac
1343 cat <<\_ACEOF
1345 Optional Features:
1346 --disable-option-checking ignore unrecognized --enable/--with options
1347 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1348 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1349 --disable-dependency-tracking speeds up one-time build
1350 --enable-dependency-tracking do not reject slow dependency extractors
1351 --disable-resolver disable resolver support
1352 --disable-debug disable debugging
1353 --disable-smtp-server disable smtp server support
1354 --disable-pop3 disable pop3 support
1355 --enable-auth enable AUTH (RFC 2554) client support
1356 --enable-maildir enable qmail style maildir support
1357 --enable-ident enable ident (RFC 1413) support
1358 --enable-mserver enable mserver support
1360 Optional Packages:
1361 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1362 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1363 --with-user=USER set user mail
1364 --with-group=GROUP set group trusted
1365 --with-glib-static=path link glib statically (path mandatory!)
1366 --with-libcrypto use libcrypto
1367 --with-liblockfile use liblock (for Debian)
1368 --with-logdir=DIR set log directory /var/log/masqmail
1369 --with-spooldir=DIR set spool directory /var/spool/masqmail
1370 --with-confdir directory for configuration /etc/masqmail
1372 Some influential environment variables:
1373 CC C compiler command
1374 CFLAGS C compiler flags
1375 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1376 nonstandard directory <lib dir>
1377 LIBS libraries to pass to the linker, e.g. -l<library>
1378 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1379 you have headers in a nonstandard directory <include dir>
1380 CPP C preprocessor
1381 PKG_CONFIG path to pkg-config utility
1382 PKG_CONFIG_PATH
1383 directories to add to pkg-config's search path
1384 PKG_CONFIG_LIBDIR
1385 path overriding pkg-config's built-in search path
1386 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1387 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1389 Use these variables to override the choices made by `configure' or to help
1390 it to find libraries and programs with nonstandard names/locations.
1392 Report bugs to <meillo@marmaro.de>.
1393 _ACEOF
1394 ac_status=$?
1395 fi
1397 if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400 test -d "$ac_dir" ||
1401 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1402 continue
1403 ac_builddir=.
1405 case "$ac_dir" in
1406 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407 *)
1408 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1409 # A ".." for each directory in $ac_dir_suffix.
1410 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1411 case $ac_top_builddir_sub in
1412 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1414 esac ;;
1415 esac
1416 ac_abs_top_builddir=$ac_pwd
1417 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1418 # for backward compatibility:
1419 ac_top_builddir=$ac_top_build_prefix
1421 case $srcdir in
1422 .) # We are building in place.
1423 ac_srcdir=.
1424 ac_top_srcdir=$ac_top_builddir_sub
1425 ac_abs_top_srcdir=$ac_pwd ;;
1426 [\\/]* | ?:[\\/]* ) # Absolute name.
1427 ac_srcdir=$srcdir$ac_dir_suffix;
1428 ac_top_srcdir=$srcdir
1429 ac_abs_top_srcdir=$srcdir ;;
1430 *) # Relative name.
1431 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1432 ac_top_srcdir=$ac_top_build_prefix$srcdir
1433 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1434 esac
1435 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1437 cd "$ac_dir" || { ac_status=$?; continue; }
1438 # Check for guested configure.
1439 if test -f "$ac_srcdir/configure.gnu"; then
1440 echo &&
1441 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1442 elif test -f "$ac_srcdir/configure"; then
1443 echo &&
1444 $SHELL "$ac_srcdir/configure" --help=recursive
1445 else
1446 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1447 fi || ac_status=$?
1448 cd "$ac_pwd" || { ac_status=$?; break; }
1449 done
1450 fi
1452 test -n "$ac_init_help" && exit $ac_status
1453 if $ac_init_version; then
1454 cat <<\_ACEOF
1455 masqmail configure 0.3.0
1456 generated by GNU Autoconf 2.65
1458 Copyright (C) 2009 Free Software Foundation, Inc.
1459 This configure script is free software; the Free Software Foundation
1460 gives unlimited permission to copy, distribute and modify it.
1461 _ACEOF
1462 exit
1463 fi
1465 ## ------------------------ ##
1466 ## Autoconf initialization. ##
1467 ## ------------------------ ##
1469 # ac_fn_c_try_compile LINENO
1470 # --------------------------
1471 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1472 ac_fn_c_try_compile ()
1473 {
1474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1475 rm -f conftest.$ac_objext
1476 if { { ac_try="$ac_compile"
1477 case "(($ac_try" in
1478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1479 *) ac_try_echo=$ac_try;;
1480 esac
1481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1482 $as_echo "$ac_try_echo"; } >&5
1483 (eval "$ac_compile") 2>conftest.err
1484 ac_status=$?
1485 if test -s conftest.err; then
1486 grep -v '^ *+' conftest.err >conftest.er1
1487 cat conftest.er1 >&5
1488 mv -f conftest.er1 conftest.err
1489 fi
1490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1491 test $ac_status = 0; } && {
1492 test -z "$ac_c_werror_flag" ||
1493 test ! -s conftest.err
1494 } && test -s conftest.$ac_objext; then :
1495 ac_retval=0
1496 else
1497 $as_echo "$as_me: failed program was:" >&5
1498 sed 's/^/| /' conftest.$ac_ext >&5
1500 ac_retval=1
1501 fi
1502 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1503 as_fn_set_status $ac_retval
1505 } # ac_fn_c_try_compile
1507 # ac_fn_c_try_link LINENO
1508 # -----------------------
1509 # Try to link conftest.$ac_ext, and return whether this succeeded.
1510 ac_fn_c_try_link ()
1511 {
1512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513 rm -f conftest.$ac_objext conftest$ac_exeext
1514 if { { ac_try="$ac_link"
1515 case "(($ac_try" in
1516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1517 *) ac_try_echo=$ac_try;;
1518 esac
1519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1520 $as_echo "$ac_try_echo"; } >&5
1521 (eval "$ac_link") 2>conftest.err
1522 ac_status=$?
1523 if test -s conftest.err; then
1524 grep -v '^ *+' conftest.err >conftest.er1
1525 cat conftest.er1 >&5
1526 mv -f conftest.er1 conftest.err
1527 fi
1528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1529 test $ac_status = 0; } && {
1530 test -z "$ac_c_werror_flag" ||
1531 test ! -s conftest.err
1532 } && test -s conftest$ac_exeext && {
1533 test "$cross_compiling" = yes ||
1534 $as_test_x conftest$ac_exeext
1535 }; then :
1536 ac_retval=0
1537 else
1538 $as_echo "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1541 ac_retval=1
1542 fi
1543 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1544 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1545 # interfere with the next link command; also delete a directory that is
1546 # left behind by Apple's compiler. We do this before executing the actions.
1547 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1548 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1549 as_fn_set_status $ac_retval
1551 } # ac_fn_c_try_link
1553 # ac_fn_c_try_cpp LINENO
1554 # ----------------------
1555 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_cpp ()
1557 {
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 if { { ac_try="$ac_cpp conftest.$ac_ext"
1560 case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1572 fi
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } >/dev/null && {
1575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 }; then :
1578 ac_retval=0
1579 else
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1583 ac_retval=1
1584 fi
1585 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1586 as_fn_set_status $ac_retval
1588 } # ac_fn_c_try_cpp
1590 # ac_fn_c_try_run LINENO
1591 # ----------------------
1592 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1593 # that executables *can* be run.
1594 ac_fn_c_try_run ()
1595 {
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 if { { ac_try="$ac_link"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_link") 2>&5
1605 ac_status=$?
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1608 { { case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611 esac
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_try") 2>&5
1615 ac_status=$?
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; }; }; then :
1618 ac_retval=0
1619 else
1620 $as_echo "$as_me: program exited with status $ac_status" >&5
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1624 ac_retval=$ac_status
1625 fi
1626 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1627 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1628 as_fn_set_status $ac_retval
1630 } # ac_fn_c_try_run
1632 # ac_fn_c_check_func LINENO FUNC VAR
1633 # ----------------------------------
1634 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1635 ac_fn_c_check_func ()
1636 {
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639 $as_echo_n "checking for $2... " >&6; }
1640 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1641 $as_echo_n "(cached) " >&6
1642 else
1643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644 /* end confdefs.h. */
1645 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1647 #define $2 innocuous_$2
1649 /* System header to define __stub macros and hopefully few prototypes,
1650 which can conflict with char $2 (); below.
1651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1652 <limits.h> exists even on freestanding compilers. */
1654 #ifdef __STDC__
1655 # include <limits.h>
1656 #else
1657 # include <assert.h>
1658 #endif
1660 #undef $2
1662 /* Override any GCC internal prototype to avoid an error.
1663 Use char because int might match the return type of a GCC
1664 builtin and then its argument prototype would still apply. */
1665 #ifdef __cplusplus
1666 extern "C"
1667 #endif
1668 char $2 ();
1669 /* The GNU C library defines this for functions which it implements
1670 to always fail with ENOSYS. Some functions are actually named
1671 something starting with __ and the normal name is an alias. */
1672 #if defined __stub_$2 || defined __stub___$2
1673 choke me
1674 #endif
1676 int
1677 main ()
1678 {
1679 return $2 ();
1680 ;
1681 return 0;
1682 }
1683 _ACEOF
1684 if ac_fn_c_try_link "$LINENO"; then :
1685 eval "$3=yes"
1686 else
1687 eval "$3=no"
1688 fi
1689 rm -f core conftest.err conftest.$ac_objext \
1690 conftest$ac_exeext conftest.$ac_ext
1691 fi
1692 eval ac_res=\$$3
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694 $as_echo "$ac_res" >&6; }
1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1697 } # ac_fn_c_check_func
1699 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1700 # -------------------------------------------------------
1701 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1702 # the include files in INCLUDES and setting the cache variable VAR
1703 # accordingly.
1704 ac_fn_c_check_header_mongrel ()
1705 {
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1711 $as_echo_n "(cached) " >&6
1712 fi
1713 eval ac_res=\$$3
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1716 else
1717 # Is the header compilable?
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1719 $as_echo_n "checking $2 usability... " >&6; }
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1722 $4
1723 #include <$2>
1724 _ACEOF
1725 if ac_fn_c_try_compile "$LINENO"; then :
1726 ac_header_compiler=yes
1727 else
1728 ac_header_compiler=no
1729 fi
1730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1732 $as_echo "$ac_header_compiler" >&6; }
1734 # Is the header present?
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1736 $as_echo_n "checking $2 presence... " >&6; }
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1739 #include <$2>
1740 _ACEOF
1741 if ac_fn_c_try_cpp "$LINENO"; then :
1742 ac_header_preproc=yes
1743 else
1744 ac_header_preproc=no
1745 fi
1746 rm -f conftest.err conftest.$ac_ext
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1748 $as_echo "$ac_header_preproc" >&6; }
1750 # So? What about this header?
1751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1752 yes:no: )
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1754 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1756 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1757 ;;
1758 no:yes:* )
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1760 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1762 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1764 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1766 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1769 ( cat <<\_ASBOX
1770 ## -------------------------------- ##
1771 ## Report this to meillo@marmaro.de ##
1772 ## -------------------------------- ##
1773 _ASBOX
1774 ) | sed "s/^/$as_me: WARNING: /" >&2
1775 ;;
1776 esac
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780 $as_echo_n "(cached) " >&6
1781 else
1782 eval "$3=\$ac_header_compiler"
1783 fi
1784 eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 fi
1788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1790 } # ac_fn_c_check_header_mongrel
1792 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1793 # -------------------------------------------------------
1794 # Tests whether HEADER exists and can be compiled using the include files in
1795 # INCLUDES, setting the cache variable VAR accordingly.
1796 ac_fn_c_check_header_compile ()
1797 {
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1802 $as_echo_n "(cached) " >&6
1803 else
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1806 $4
1807 #include <$2>
1808 _ACEOF
1809 if ac_fn_c_try_compile "$LINENO"; then :
1810 eval "$3=yes"
1811 else
1812 eval "$3=no"
1813 fi
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815 fi
1816 eval ac_res=\$$3
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821 } # ac_fn_c_check_header_compile
1823 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1824 # -------------------------------------------
1825 # Tests whether TYPE exists after having included INCLUDES, setting cache
1826 # variable VAR accordingly.
1827 ac_fn_c_check_type ()
1828 {
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833 $as_echo_n "(cached) " >&6
1834 else
1835 eval "$3=no"
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 $4
1839 int
1840 main ()
1841 {
1842 if (sizeof ($2))
1843 return 0;
1844 ;
1845 return 0;
1846 }
1847 _ACEOF
1848 if ac_fn_c_try_compile "$LINENO"; then :
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1851 $4
1852 int
1853 main ()
1854 {
1855 if (sizeof (($2)))
1856 return 0;
1857 ;
1858 return 0;
1859 }
1860 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1863 else
1864 eval "$3=yes"
1865 fi
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867 fi
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 fi
1870 eval ac_res=\$$3
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875 } # ac_fn_c_check_type
1876 cat >config.log <<_ACEOF
1877 This file contains any messages produced by compilers while
1878 running configure, to aid debugging if configure makes a mistake.
1880 It was created by masqmail $as_me 0.3.0, which was
1881 generated by GNU Autoconf 2.65. Invocation command line was
1883 $ $0 $@
1885 _ACEOF
1886 exec 5>>config.log
1887 {
1888 cat <<_ASUNAME
1889 ## --------- ##
1890 ## Platform. ##
1891 ## --------- ##
1893 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1894 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1895 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1896 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1897 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1899 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1900 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1902 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1903 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1904 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1905 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1906 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1907 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1908 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1910 _ASUNAME
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 $as_echo "PATH: $as_dir"
1918 done
1919 IFS=$as_save_IFS
1921 } >&5
1923 cat >&5 <<_ACEOF
1926 ## ----------- ##
1927 ## Core tests. ##
1928 ## ----------- ##
1930 _ACEOF
1933 # Keep a trace of the command line.
1934 # Strip out --no-create and --no-recursion so they do not pile up.
1935 # Strip out --silent because we don't want to record it for future runs.
1936 # Also quote any args containing shell meta-characters.
1937 # Make two passes to allow for proper duplicate-argument suppression.
1938 ac_configure_args=
1939 ac_configure_args0=
1940 ac_configure_args1=
1941 ac_must_keep_next=false
1942 for ac_pass in 1 2
1943 do
1944 for ac_arg
1945 do
1946 case $ac_arg in
1947 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1949 | -silent | --silent | --silen | --sile | --sil)
1950 continue ;;
1951 *\'*)
1952 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1953 esac
1954 case $ac_pass in
1955 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1956 2)
1957 as_fn_append ac_configure_args1 " '$ac_arg'"
1958 if test $ac_must_keep_next = true; then
1959 ac_must_keep_next=false # Got value, back to normal.
1960 else
1961 case $ac_arg in
1962 *=* | --config-cache | -C | -disable-* | --disable-* \
1963 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1964 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1965 | -with-* | --with-* | -without-* | --without-* | --x)
1966 case "$ac_configure_args0 " in
1967 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1968 esac
1969 ;;
1970 -* ) ac_must_keep_next=true ;;
1971 esac
1972 fi
1973 as_fn_append ac_configure_args " '$ac_arg'"
1974 ;;
1975 esac
1976 done
1977 done
1978 { ac_configure_args0=; unset ac_configure_args0;}
1979 { ac_configure_args1=; unset ac_configure_args1;}
1981 # When interrupted or exit'd, cleanup temporary files, and complete
1982 # config.log. We remove comments because anyway the quotes in there
1983 # would cause problems or look ugly.
1984 # WARNING: Use '\'' to represent an apostrophe within the trap.
1985 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1986 trap 'exit_status=$?
1987 # Save into config.log some information that might help in debugging.
1988 {
1989 echo
1991 cat <<\_ASBOX
1992 ## ---------------- ##
1993 ## Cache variables. ##
1994 ## ---------------- ##
1995 _ASBOX
1996 echo
1997 # The following way of writing the cache mishandles newlines in values,
1998 (
1999 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2000 eval ac_val=\$$ac_var
2001 case $ac_val in #(
2002 *${as_nl}*)
2003 case $ac_var in #(
2004 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2005 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2006 esac
2007 case $ac_var in #(
2008 _ | IFS | as_nl) ;; #(
2009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2010 *) { eval $ac_var=; unset $ac_var;} ;;
2011 esac ;;
2012 esac
2013 done
2014 (set) 2>&1 |
2015 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2016 *${as_nl}ac_space=\ *)
2017 sed -n \
2018 "s/'\''/'\''\\\\'\'''\''/g;
2019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2020 ;; #(
2021 *)
2022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2023 ;;
2024 esac |
2025 sort
2026 )
2027 echo
2029 cat <<\_ASBOX
2030 ## ----------------- ##
2031 ## Output variables. ##
2032 ## ----------------- ##
2033 _ASBOX
2034 echo
2035 for ac_var in $ac_subst_vars
2036 do
2037 eval ac_val=\$$ac_var
2038 case $ac_val in
2039 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2040 esac
2041 $as_echo "$ac_var='\''$ac_val'\''"
2042 done | sort
2043 echo
2045 if test -n "$ac_subst_files"; then
2046 cat <<\_ASBOX
2047 ## ------------------- ##
2048 ## File substitutions. ##
2049 ## ------------------- ##
2050 _ASBOX
2051 echo
2052 for ac_var in $ac_subst_files
2053 do
2054 eval ac_val=\$$ac_var
2055 case $ac_val in
2056 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057 esac
2058 $as_echo "$ac_var='\''$ac_val'\''"
2059 done | sort
2060 echo
2061 fi
2063 if test -s confdefs.h; then
2064 cat <<\_ASBOX
2065 ## ----------- ##
2066 ## confdefs.h. ##
2067 ## ----------- ##
2068 _ASBOX
2069 echo
2070 cat confdefs.h
2071 echo
2072 fi
2073 test "$ac_signal" != 0 &&
2074 $as_echo "$as_me: caught signal $ac_signal"
2075 $as_echo "$as_me: exit $exit_status"
2076 } >&5
2077 rm -f core *.core core.conftest.* &&
2078 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2079 exit $exit_status
2080 ' 0
2081 for ac_signal in 1 2 13 15; do
2082 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2083 done
2084 ac_signal=0
2086 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2087 rm -f -r conftest* confdefs.h
2089 $as_echo "/* confdefs.h */" > confdefs.h
2091 # Predefined preprocessor variables.
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_NAME "$PACKAGE_NAME"
2095 _ACEOF
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2099 _ACEOF
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2103 _ACEOF
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_STRING "$PACKAGE_STRING"
2107 _ACEOF
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2111 _ACEOF
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_URL "$PACKAGE_URL"
2115 _ACEOF
2118 # Let the site file select an alternate cache file if it wants to.
2119 # Prefer an explicitly selected file to automatically selected ones.
2120 ac_site_file1=NONE
2121 ac_site_file2=NONE
2122 if test -n "$CONFIG_SITE"; then
2123 ac_site_file1=$CONFIG_SITE
2124 elif test "x$prefix" != xNONE; then
2125 ac_site_file1=$prefix/share/config.site
2126 ac_site_file2=$prefix/etc/config.site
2127 else
2128 ac_site_file1=$ac_default_prefix/share/config.site
2129 ac_site_file2=$ac_default_prefix/etc/config.site
2130 fi
2131 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2132 do
2133 test "x$ac_site_file" = xNONE && continue
2134 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2136 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2137 sed 's/^/| /' "$ac_site_file" >&5
2138 . "$ac_site_file"
2139 fi
2140 done
2142 if test -r "$cache_file"; then
2143 # Some versions of bash will fail to source /dev/null (special files
2144 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2145 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2147 $as_echo "$as_me: loading cache $cache_file" >&6;}
2148 case $cache_file in
2149 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2150 *) . "./$cache_file";;
2151 esac
2152 fi
2153 else
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2155 $as_echo "$as_me: creating cache $cache_file" >&6;}
2156 >$cache_file
2157 fi
2159 # Check that the precious variables saved in the cache have kept the same
2160 # value.
2161 ac_cache_corrupted=false
2162 for ac_var in $ac_precious_vars; do
2163 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2164 eval ac_new_set=\$ac_env_${ac_var}_set
2165 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2166 eval ac_new_val=\$ac_env_${ac_var}_value
2167 case $ac_old_set,$ac_new_set in
2168 set,)
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2170 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2171 ac_cache_corrupted=: ;;
2172 ,set)
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2174 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2175 ac_cache_corrupted=: ;;
2176 ,);;
2177 *)
2178 if test "x$ac_old_val" != "x$ac_new_val"; then
2179 # differences in whitespace do not lead to failure.
2180 ac_old_val_w=`echo x $ac_old_val`
2181 ac_new_val_w=`echo x $ac_new_val`
2182 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2184 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2185 ac_cache_corrupted=:
2186 else
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2188 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2189 eval $ac_var=\$ac_old_val
2190 fi
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2192 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2194 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2195 fi;;
2196 esac
2197 # Pass precious variables to config.status.
2198 if test "$ac_new_set" = set; then
2199 case $ac_new_val in
2200 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2201 *) ac_arg=$ac_var=$ac_new_val ;;
2202 esac
2203 case " $ac_configure_args " in
2204 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2205 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2206 esac
2207 fi
2208 done
2209 if $ac_cache_corrupted; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2213 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2214 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2215 fi
2216 ## -------------------- ##
2217 ## Main body of script. ##
2218 ## -------------------- ##
2220 ac_ext=c
2221 ac_cpp='$CPP $CPPFLAGS'
2222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228 ac_config_headers="$ac_config_headers config.h"
2230 am__api_version='1.11'
2232 ac_aux_dir=
2233 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2234 for ac_t in install-sh install.sh shtool; do
2235 if test -f "$ac_dir/$ac_t"; then
2236 ac_aux_dir=$ac_dir
2237 ac_install_sh="$ac_aux_dir/$ac_t -c"
2238 break 2
2239 fi
2240 done
2241 done
2242 if test -z "$ac_aux_dir"; then
2243 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2244 fi
2246 # These three variables are undocumented and unsupported,
2247 # and are intended to be withdrawn in a future Autoconf release.
2248 # They can cause serious problems if a builder's source tree is in a directory
2249 # whose full name contains unusual characters.
2250 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2251 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2252 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2255 # Find a good install program. We prefer a C program (faster),
2256 # so one script is as good as another. But avoid the broken or
2257 # incompatible versions:
2258 # SysV /etc/install, /usr/sbin/install
2259 # SunOS /usr/etc/install
2260 # IRIX /sbin/install
2261 # AIX /bin/install
2262 # AmigaOS /C/install, which installs bootblocks on floppy discs
2263 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2264 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2265 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2266 # OS/2's system install, which has a completely different semantic
2267 # ./install, which can be erroneously created by make from ./install.sh.
2268 # Reject install programs that cannot install multiple files.
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2270 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2271 if test -z "$INSTALL"; then
2272 if test "${ac_cv_path_install+set}" = set; then :
2273 $as_echo_n "(cached) " >&6
2274 else
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2277 do
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 # Account for people who put trailing slashes in PATH elements.
2281 case $as_dir/ in #((
2282 ./ | .// | /[cC]/* | \
2283 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2284 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2285 /usr/ucb/* ) ;;
2286 *)
2287 # OSF1 and SCO ODT 3.0 have their own names for install.
2288 # Don't use installbsd from OSF since it installs stuff as root
2289 # by default.
2290 for ac_prog in ginstall scoinst install; do
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2293 if test $ac_prog = install &&
2294 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2295 # AIX install. It has an incompatible calling convention.
2296 :
2297 elif test $ac_prog = install &&
2298 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299 # program-specific install script used by HP pwplus--don't use.
2300 :
2301 else
2302 rm -rf conftest.one conftest.two conftest.dir
2303 echo one > conftest.one
2304 echo two > conftest.two
2305 mkdir conftest.dir
2306 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2307 test -s conftest.one && test -s conftest.two &&
2308 test -s conftest.dir/conftest.one &&
2309 test -s conftest.dir/conftest.two
2310 then
2311 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2312 break 3
2313 fi
2314 fi
2315 fi
2316 done
2317 done
2318 ;;
2319 esac
2321 done
2322 IFS=$as_save_IFS
2324 rm -rf conftest.one conftest.two conftest.dir
2326 fi
2327 if test "${ac_cv_path_install+set}" = set; then
2328 INSTALL=$ac_cv_path_install
2329 else
2330 # As a last resort, use the slow shell script. Don't cache a
2331 # value for INSTALL within a source directory, because that will
2332 # break other packages using the cache if that directory is
2333 # removed, or if the value is a relative name.
2334 INSTALL=$ac_install_sh
2335 fi
2336 fi
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2338 $as_echo "$INSTALL" >&6; }
2340 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2341 # It thinks the first close brace ends the variable substitution.
2342 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2344 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2346 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2349 $as_echo_n "checking whether build environment is sane... " >&6; }
2350 # Just in case
2351 sleep 1
2352 echo timestamp > conftest.file
2353 # Reject unsafe characters in $srcdir or the absolute working directory
2354 # name. Accept space and tab only in the latter.
2355 am_lf='
2356 '
2357 case `pwd` in
2358 *[\\\"\#\$\&\'\`$am_lf]*)
2359 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2360 esac
2361 case $srcdir in
2362 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2363 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2364 esac
2366 # Do `set' in a subshell so we don't clobber the current shell's
2367 # arguments. Must try -L first in case configure is actually a
2368 # symlink; some systems play weird games with the mod time of symlinks
2369 # (eg FreeBSD returns the mod time of the symlink's containing
2370 # directory).
2371 if (
2372 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2373 if test "$*" = "X"; then
2374 # -L didn't work.
2375 set X `ls -t "$srcdir/configure" conftest.file`
2376 fi
2377 rm -f conftest.file
2378 if test "$*" != "X $srcdir/configure conftest.file" \
2379 && test "$*" != "X conftest.file $srcdir/configure"; then
2381 # If neither matched, then we have a broken ls. This can happen
2382 # if, for instance, CONFIG_SHELL is bash and it inherits a
2383 # broken ls alias from the environment. This has actually
2384 # happened. Such a system could not be considered "sane".
2385 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2386 alias in your environment" "$LINENO" 5
2387 fi
2389 test "$2" = conftest.file
2390 )
2391 then
2392 # Ok.
2393 :
2394 else
2395 as_fn_error "newly created file is older than distributed files!
2396 Check your system clock" "$LINENO" 5
2397 fi
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2399 $as_echo "yes" >&6; }
2400 test "$program_prefix" != NONE &&
2401 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2402 # Use a double $ so make ignores it.
2403 test "$program_suffix" != NONE &&
2404 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2405 # Double any \ or $.
2406 # By default was `s,x,x', remove it if useless.
2407 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2408 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2410 # expand $ac_aux_dir to an absolute path
2411 am_aux_dir=`cd $ac_aux_dir && pwd`
2413 if test x"${MISSING+set}" != xset; then
2414 case $am_aux_dir in
2415 *\ * | *\ *)
2416 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2417 *)
2418 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2419 esac
2420 fi
2421 # Use eval to expand $SHELL
2422 if eval "$MISSING --run true"; then
2423 am_missing_run="$MISSING --run "
2424 else
2425 am_missing_run=
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2427 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2428 fi
2430 if test x"${install_sh}" != xset; then
2431 case $am_aux_dir in
2432 *\ * | *\ *)
2433 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2434 *)
2435 install_sh="\${SHELL} $am_aux_dir/install-sh"
2436 esac
2437 fi
2439 # Installed binaries are usually stripped using `strip' when the user
2440 # run `make install-strip'. However `strip' might not be the right
2441 # tool to use in cross-compilation environments, therefore Automake
2442 # will honor the `STRIP' environment variable to overrule this program.
2443 if test "$cross_compiling" != no; then
2444 if test -n "$ac_tool_prefix"; then
2445 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}strip; ac_word=$2
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2448 $as_echo_n "checking for $ac_word... " >&6; }
2449 if test "${ac_cv_prog_STRIP+set}" = set; then :
2450 $as_echo_n "(cached) " >&6
2451 else
2452 if test -n "$STRIP"; then
2453 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 break 2
2465 fi
2466 done
2467 done
2468 IFS=$as_save_IFS
2470 fi
2471 fi
2472 STRIP=$ac_cv_prog_STRIP
2473 if test -n "$STRIP"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2475 $as_echo "$STRIP" >&6; }
2476 else
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2478 $as_echo "no" >&6; }
2479 fi
2482 fi
2483 if test -z "$ac_cv_prog_STRIP"; then
2484 ac_ct_STRIP=$STRIP
2485 # Extract the first word of "strip", so it can be a program name with args.
2486 set dummy strip; ac_word=$2
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2488 $as_echo_n "checking for $ac_word... " >&6; }
2489 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 if test -n "$ac_ct_STRIP"; then
2493 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502 ac_cv_prog_ac_ct_STRIP="strip"
2503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 break 2
2505 fi
2506 done
2507 done
2508 IFS=$as_save_IFS
2510 fi
2511 fi
2512 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2513 if test -n "$ac_ct_STRIP"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2515 $as_echo "$ac_ct_STRIP" >&6; }
2516 else
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518 $as_echo "no" >&6; }
2519 fi
2521 if test "x$ac_ct_STRIP" = x; then
2522 STRIP=":"
2523 else
2524 case $cross_compiling:$ac_tool_warned in
2525 yes:)
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2528 ac_tool_warned=yes ;;
2529 esac
2530 STRIP=$ac_ct_STRIP
2531 fi
2532 else
2533 STRIP="$ac_cv_prog_STRIP"
2534 fi
2536 fi
2537 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2540 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2541 if test -z "$MKDIR_P"; then
2542 if test "${ac_cv_path_mkdir+set}" = set; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2547 do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_prog in mkdir gmkdir; do
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2553 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2554 'mkdir (GNU coreutils) '* | \
2555 'mkdir (coreutils) '* | \
2556 'mkdir (fileutils) '4.1*)
2557 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2558 break 3;;
2559 esac
2560 done
2561 done
2562 done
2563 IFS=$as_save_IFS
2565 fi
2567 test -d ./--version && rmdir ./--version
2568 if test "${ac_cv_path_mkdir+set}" = set; then
2569 MKDIR_P="$ac_cv_path_mkdir -p"
2570 else
2571 # As a last resort, use the slow shell script. Don't cache a
2572 # value for MKDIR_P within a source directory, because that will
2573 # break other packages using the cache if that directory is
2574 # removed, or if the value is a relative name.
2575 MKDIR_P="$ac_install_sh -d"
2576 fi
2577 fi
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2579 $as_echo "$MKDIR_P" >&6; }
2581 mkdir_p="$MKDIR_P"
2582 case $mkdir_p in
2583 [\\/$]* | ?:[\\/]*) ;;
2584 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2585 esac
2587 for ac_prog in gawk mawk nawk awk
2588 do
2589 # Extract the first word of "$ac_prog", so it can be a program name with args.
2590 set dummy $ac_prog; ac_word=$2
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592 $as_echo_n "checking for $ac_word... " >&6; }
2593 if test "${ac_cv_prog_AWK+set}" = set; then :
2594 $as_echo_n "(cached) " >&6
2595 else
2596 if test -n "$AWK"; then
2597 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2601 do
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2606 ac_cv_prog_AWK="$ac_prog"
2607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 break 2
2609 fi
2610 done
2611 done
2612 IFS=$as_save_IFS
2614 fi
2615 fi
2616 AWK=$ac_cv_prog_AWK
2617 if test -n "$AWK"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2619 $as_echo "$AWK" >&6; }
2620 else
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622 $as_echo "no" >&6; }
2623 fi
2626 test -n "$AWK" && break
2627 done
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2630 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2631 set x ${MAKE-make}
2632 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2633 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2634 $as_echo_n "(cached) " >&6
2635 else
2636 cat >conftest.make <<\_ACEOF
2637 SHELL = /bin/sh
2638 all:
2639 @echo '@@@%%%=$(MAKE)=@@@%%%'
2640 _ACEOF
2641 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2642 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2643 *@@@%%%=?*=@@@%%%*)
2644 eval ac_cv_prog_make_${ac_make}_set=yes;;
2645 *)
2646 eval ac_cv_prog_make_${ac_make}_set=no;;
2647 esac
2648 rm -f conftest.make
2649 fi
2650 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2652 $as_echo "yes" >&6; }
2653 SET_MAKE=
2654 else
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2657 SET_MAKE="MAKE=${MAKE-make}"
2658 fi
2660 rm -rf .tst 2>/dev/null
2661 mkdir .tst 2>/dev/null
2662 if test -d .tst; then
2663 am__leading_dot=.
2664 else
2665 am__leading_dot=_
2666 fi
2667 rmdir .tst 2>/dev/null
2669 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2670 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2671 # is not polluted with repeated "-I."
2672 am__isrc=' -I$(srcdir)'
2673 # test to see if srcdir already configured
2674 if test -f $srcdir/config.status; then
2675 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2676 fi
2677 fi
2679 # test whether we have cygpath
2680 if test -z "$CYGPATH_W"; then
2681 if (cygpath --version) >/dev/null 2>/dev/null; then
2682 CYGPATH_W='cygpath -w'
2683 else
2684 CYGPATH_W=echo
2685 fi
2686 fi
2689 # Define the identity of the package.
2690 PACKAGE='masqmail'
2691 VERSION='0.3.0'
2694 cat >>confdefs.h <<_ACEOF
2695 #define PACKAGE "$PACKAGE"
2696 _ACEOF
2699 cat >>confdefs.h <<_ACEOF
2700 #define VERSION "$VERSION"
2701 _ACEOF
2703 # Some tools Automake needs.
2705 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2708 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2711 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2714 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2717 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2719 # We need awk for the "check" target. The system "awk" is bad on
2720 # some platforms.
2721 # Always define AMTAR for backward compatibility.
2723 AMTAR=${AMTAR-"${am_missing_run}tar"}
2725 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2734 ac_ext=c
2735 ac_cpp='$CPP $CPPFLAGS'
2736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739 if test -n "$ac_tool_prefix"; then
2740 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if test "${ac_cv_prog_CC+set}" = set; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 if test -n "$CC"; then
2748 ac_cv_prog_CC="$CC" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 break 2
2760 fi
2761 done
2762 done
2763 IFS=$as_save_IFS
2765 fi
2766 fi
2767 CC=$ac_cv_prog_CC
2768 if test -n "$CC"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2770 $as_echo "$CC" >&6; }
2771 else
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 $as_echo "no" >&6; }
2774 fi
2777 fi
2778 if test -z "$ac_cv_prog_CC"; then
2779 ac_ct_CC=$CC
2780 # Extract the first word of "gcc", so it can be a program name with args.
2781 set dummy gcc; ac_word=$2
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2785 $as_echo_n "(cached) " >&6
2786 else
2787 if test -n "$ac_ct_CC"; then
2788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_ac_ct_CC="gcc"
2798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801 done
2802 done
2803 IFS=$as_save_IFS
2805 fi
2806 fi
2807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2808 if test -n "$ac_ct_CC"; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2810 $as_echo "$ac_ct_CC" >&6; }
2811 else
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2814 fi
2816 if test "x$ac_ct_CC" = x; then
2817 CC=""
2818 else
2819 case $cross_compiling:$ac_tool_warned in
2820 yes:)
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2823 ac_tool_warned=yes ;;
2824 esac
2825 CC=$ac_ct_CC
2826 fi
2827 else
2828 CC="$ac_cv_prog_CC"
2829 fi
2831 if test -z "$CC"; then
2832 if test -n "$ac_tool_prefix"; then
2833 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2834 set dummy ${ac_tool_prefix}cc; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if test "${ac_cv_prog_CC+set}" = set; then :
2838 $as_echo_n "(cached) " >&6
2839 else
2840 if test -n "$CC"; then
2841 ac_cv_prog_CC="$CC" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850 ac_cv_prog_CC="${ac_tool_prefix}cc"
2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854 done
2855 done
2856 IFS=$as_save_IFS
2858 fi
2859 fi
2860 CC=$ac_cv_prog_CC
2861 if test -n "$CC"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2863 $as_echo "$CC" >&6; }
2864 else
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2867 fi
2870 fi
2871 fi
2872 if test -z "$CC"; then
2873 # Extract the first word of "cc", so it can be a program name with args.
2874 set dummy cc; ac_word=$2
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876 $as_echo_n "checking for $ac_word... " >&6; }
2877 if test "${ac_cv_prog_CC+set}" = set; then :
2878 $as_echo_n "(cached) " >&6
2879 else
2880 if test -n "$CC"; then
2881 ac_cv_prog_CC="$CC" # Let the user override the test.
2882 else
2883 ac_prog_rejected=no
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2892 ac_prog_rejected=yes
2893 continue
2894 fi
2895 ac_cv_prog_CC="cc"
2896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2898 fi
2899 done
2900 done
2901 IFS=$as_save_IFS
2903 if test $ac_prog_rejected = yes; then
2904 # We found a bogon in the path, so make sure we never use it.
2905 set dummy $ac_cv_prog_CC
2906 shift
2907 if test $# != 0; then
2908 # We chose a different compiler from the bogus one.
2909 # However, it has the same basename, so the bogon will be chosen
2910 # first if we set CC to just the basename; use the full file name.
2911 shift
2912 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2913 fi
2914 fi
2915 fi
2916 fi
2917 CC=$ac_cv_prog_CC
2918 if test -n "$CC"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2920 $as_echo "$CC" >&6; }
2921 else
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2924 fi
2927 fi
2928 if test -z "$CC"; then
2929 if test -n "$ac_tool_prefix"; then
2930 for ac_prog in cl.exe
2931 do
2932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if test "${ac_cv_prog_CC+set}" = set; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 if test -n "$CC"; then
2940 ac_cv_prog_CC="$CC" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2957 fi
2958 fi
2959 CC=$ac_cv_prog_CC
2960 if test -n "$CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2969 test -n "$CC" && break
2970 done
2971 fi
2972 if test -z "$CC"; then
2973 ac_ct_CC=$CC
2974 for ac_prog in cl.exe
2975 do
2976 # Extract the first word of "$ac_prog", so it can be a program name with args.
2977 set dummy $ac_prog; ac_word=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2981 $as_echo_n "(cached) " >&6
2982 else
2983 if test -n "$ac_ct_CC"; then
2984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989 IFS=$as_save_IFS
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993 ac_cv_prog_ac_ct_CC="$ac_prog"
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 break 2
2996 fi
2997 done
2998 done
2999 IFS=$as_save_IFS
3001 fi
3002 fi
3003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3004 if test -n "$ac_ct_CC"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3006 $as_echo "$ac_ct_CC" >&6; }
3007 else
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3010 fi
3013 test -n "$ac_ct_CC" && break
3014 done
3016 if test "x$ac_ct_CC" = x; then
3017 CC=""
3018 else
3019 case $cross_compiling:$ac_tool_warned in
3020 yes:)
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3023 ac_tool_warned=yes ;;
3024 esac
3025 CC=$ac_ct_CC
3026 fi
3027 fi
3029 fi
3032 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3034 as_fn_error "no acceptable C compiler found in \$PATH
3035 See \`config.log' for more details." "$LINENO" 5; }
3037 # Provide some information about the compiler.
3038 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3039 set X $ac_compile
3040 ac_compiler=$2
3041 for ac_option in --version -v -V -qversion; do
3042 { { ac_try="$ac_compiler $ac_option >&5"
3043 case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3048 $as_echo "$ac_try_echo"; } >&5
3049 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3050 ac_status=$?
3051 if test -s conftest.err; then
3052 sed '10a\
3053 ... rest of stderr output deleted ...
3054 10q' conftest.err >conftest.er1
3055 cat conftest.er1 >&5
3056 fi
3057 rm -f conftest.er1 conftest.err
3058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3059 test $ac_status = 0; }
3060 done
3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063 /* end confdefs.h. */
3065 int
3066 main ()
3067 {
3069 ;
3070 return 0;
3071 }
3072 _ACEOF
3073 ac_clean_files_save=$ac_clean_files
3074 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3075 # Try to create an executable without -o first, disregard a.out.
3076 # It will help us diagnose broken compilers, and finding out an intuition
3077 # of exeext.
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3079 $as_echo_n "checking whether the C compiler works... " >&6; }
3080 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3082 # The possible output files:
3083 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3085 ac_rmfiles=
3086 for ac_file in $ac_files
3087 do
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3090 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3091 esac
3092 done
3093 rm -f $ac_rmfiles
3095 if { { ac_try="$ac_link_default"
3096 case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099 esac
3100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101 $as_echo "$ac_try_echo"; } >&5
3102 (eval "$ac_link_default") 2>&5
3103 ac_status=$?
3104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105 test $ac_status = 0; }; then :
3106 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3107 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3108 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3109 # so that the user can short-circuit this test for compilers unknown to
3110 # Autoconf.
3111 for ac_file in $ac_files ''
3112 do
3113 test -f "$ac_file" || continue
3114 case $ac_file in
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3116 ;;
3117 [ab].out )
3118 # We found the default executable, but exeext='' is most
3119 # certainly right.
3120 break;;
3121 *.* )
3122 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3123 then :; else
3124 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3125 fi
3126 # We set ac_cv_exeext here because the later test for it is not
3127 # safe: cross compilers may not add the suffix if given an `-o'
3128 # argument, so we may need to know it at that point already.
3129 # Even if this section looks crufty: it has the advantage of
3130 # actually working.
3131 break;;
3132 * )
3133 break;;
3134 esac
3135 done
3136 test "$ac_cv_exeext" = no && ac_cv_exeext=
3138 else
3139 ac_file=''
3140 fi
3141 if test -z "$ac_file"; then :
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 $as_echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149 { as_fn_set_status 77
3150 as_fn_error "C compiler cannot create executables
3151 See \`config.log' for more details." "$LINENO" 5; }; }
3152 else
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3154 $as_echo "yes" >&6; }
3155 fi
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3157 $as_echo_n "checking for C compiler default output file name... " >&6; }
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3159 $as_echo "$ac_file" >&6; }
3160 ac_exeext=$ac_cv_exeext
3162 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3163 ac_clean_files=$ac_clean_files_save
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3165 $as_echo_n "checking for suffix of executables... " >&6; }
3166 if { { ac_try="$ac_link"
3167 case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170 esac
3171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172 $as_echo "$ac_try_echo"; } >&5
3173 (eval "$ac_link") 2>&5
3174 ac_status=$?
3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176 test $ac_status = 0; }; then :
3177 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3178 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3179 # work properly (i.e., refer to `conftest.exe'), while it won't with
3180 # `rm'.
3181 for ac_file in conftest.exe conftest conftest.*; do
3182 test -f "$ac_file" || continue
3183 case $ac_file in
3184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3185 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3186 break;;
3187 * ) break;;
3188 esac
3189 done
3190 else
3191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193 as_fn_error "cannot compute suffix of executables: cannot compile and link
3194 See \`config.log' for more details." "$LINENO" 5; }
3195 fi
3196 rm -f conftest conftest$ac_cv_exeext
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3198 $as_echo "$ac_cv_exeext" >&6; }
3200 rm -f conftest.$ac_ext
3201 EXEEXT=$ac_cv_exeext
3202 ac_exeext=$EXEEXT
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3205 #include <stdio.h>
3206 int
3207 main ()
3208 {
3209 FILE *f = fopen ("conftest.out", "w");
3210 return ferror (f) || fclose (f) != 0;
3212 ;
3213 return 0;
3214 }
3215 _ACEOF
3216 ac_clean_files="$ac_clean_files conftest.out"
3217 # Check that the compiler produces executables we can run. If not, either
3218 # the compiler is broken, or we cross compile.
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3220 $as_echo_n "checking whether we are cross compiling... " >&6; }
3221 if test "$cross_compiling" != yes; then
3222 { { ac_try="$ac_link"
3223 case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226 esac
3227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3228 $as_echo "$ac_try_echo"; } >&5
3229 (eval "$ac_link") 2>&5
3230 ac_status=$?
3231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3232 test $ac_status = 0; }
3233 if { ac_try='./conftest$ac_cv_exeext'
3234 { { case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237 esac
3238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239 $as_echo "$ac_try_echo"; } >&5
3240 (eval "$ac_try") 2>&5
3241 ac_status=$?
3242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3243 test $ac_status = 0; }; }; then
3244 cross_compiling=no
3245 else
3246 if test "$cross_compiling" = maybe; then
3247 cross_compiling=yes
3248 else
3249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251 as_fn_error "cannot run C compiled programs.
3252 If you meant to cross compile, use \`--host'.
3253 See \`config.log' for more details." "$LINENO" 5; }
3254 fi
3255 fi
3256 fi
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3258 $as_echo "$cross_compiling" >&6; }
3260 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3261 ac_clean_files=$ac_clean_files_save
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3263 $as_echo_n "checking for suffix of object files... " >&6; }
3264 if test "${ac_cv_objext+set}" = set; then :
3265 $as_echo_n "(cached) " >&6
3266 else
3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268 /* end confdefs.h. */
3270 int
3271 main ()
3272 {
3274 ;
3275 return 0;
3276 }
3277 _ACEOF
3278 rm -f conftest.o conftest.obj
3279 if { { ac_try="$ac_compile"
3280 case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285 $as_echo "$ac_try_echo"; } >&5
3286 (eval "$ac_compile") 2>&5
3287 ac_status=$?
3288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289 test $ac_status = 0; }; then :
3290 for ac_file in conftest.o conftest.obj conftest.*; do
3291 test -f "$ac_file" || continue;
3292 case $ac_file in
3293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3294 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3295 break;;
3296 esac
3297 done
3298 else
3299 $as_echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304 as_fn_error "cannot compute suffix of object files: cannot compile
3305 See \`config.log' for more details." "$LINENO" 5; }
3306 fi
3307 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3308 fi
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3310 $as_echo "$ac_cv_objext" >&6; }
3311 OBJEXT=$ac_cv_objext
3312 ac_objext=$OBJEXT
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3314 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3315 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3316 $as_echo_n "(cached) " >&6
3317 else
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3321 int
3322 main ()
3323 {
3324 #ifndef __GNUC__
3325 choke me
3326 #endif
3328 ;
3329 return 0;
3330 }
3331 _ACEOF
3332 if ac_fn_c_try_compile "$LINENO"; then :
3333 ac_compiler_gnu=yes
3334 else
3335 ac_compiler_gnu=no
3336 fi
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3340 fi
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3342 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3343 if test $ac_compiler_gnu = yes; then
3344 GCC=yes
3345 else
3346 GCC=
3347 fi
3348 ac_test_CFLAGS=${CFLAGS+set}
3349 ac_save_CFLAGS=$CFLAGS
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3351 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3352 if test "${ac_cv_prog_cc_g+set}" = set; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 ac_save_c_werror_flag=$ac_c_werror_flag
3356 ac_c_werror_flag=yes
3357 ac_cv_prog_cc_g=no
3358 CFLAGS="-g"
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3362 int
3363 main ()
3364 {
3366 ;
3367 return 0;
3368 }
3369 _ACEOF
3370 if ac_fn_c_try_compile "$LINENO"; then :
3371 ac_cv_prog_cc_g=yes
3372 else
3373 CFLAGS=""
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h. */
3377 int
3378 main ()
3379 {
3381 ;
3382 return 0;
3383 }
3384 _ACEOF
3385 if ac_fn_c_try_compile "$LINENO"; then :
3387 else
3388 ac_c_werror_flag=$ac_save_c_werror_flag
3389 CFLAGS="-g"
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h. */
3393 int
3394 main ()
3395 {
3397 ;
3398 return 0;
3399 }
3400 _ACEOF
3401 if ac_fn_c_try_compile "$LINENO"; then :
3402 ac_cv_prog_cc_g=yes
3403 fi
3404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 fi
3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407 fi
3408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409 ac_c_werror_flag=$ac_save_c_werror_flag
3410 fi
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3412 $as_echo "$ac_cv_prog_cc_g" >&6; }
3413 if test "$ac_test_CFLAGS" = set; then
3414 CFLAGS=$ac_save_CFLAGS
3415 elif test $ac_cv_prog_cc_g = yes; then
3416 if test "$GCC" = yes; then
3417 CFLAGS="-g -O2"
3418 else
3419 CFLAGS="-g"
3420 fi
3421 else
3422 if test "$GCC" = yes; then
3423 CFLAGS="-O2"
3424 else
3425 CFLAGS=
3426 fi
3427 fi
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3429 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3430 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3431 $as_echo_n "(cached) " >&6
3432 else
3433 ac_cv_prog_cc_c89=no
3434 ac_save_CC=$CC
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3437 #include <stdarg.h>
3438 #include <stdio.h>
3439 #include <sys/types.h>
3440 #include <sys/stat.h>
3441 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3442 struct buf { int x; };
3443 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3444 static char *e (p, i)
3445 char **p;
3446 int i;
3447 {
3448 return p[i];
3449 }
3450 static char *f (char * (*g) (char **, int), char **p, ...)
3451 {
3452 char *s;
3453 va_list v;
3454 va_start (v,p);
3455 s = g (p, va_arg (v,int));
3456 va_end (v);
3457 return s;
3458 }
3460 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3461 function prototypes and stuff, but not '\xHH' hex character constants.
3462 These don't provoke an error unfortunately, instead are silently treated
3463 as 'x'. The following induces an error, until -std is added to get
3464 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3465 array size at least. It's necessary to write '\x00'==0 to get something
3466 that's true only with -std. */
3467 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3469 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3470 inside strings and character constants. */
3471 #define FOO(x) 'x'
3472 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3474 int test (int i, double x);
3475 struct s1 {int (*f) (int a);};
3476 struct s2 {int (*f) (double a);};
3477 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3478 int argc;
3479 char **argv;
3480 int
3481 main ()
3482 {
3483 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3484 ;
3485 return 0;
3486 }
3487 _ACEOF
3488 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3489 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3490 do
3491 CC="$ac_save_CC $ac_arg"
3492 if ac_fn_c_try_compile "$LINENO"; then :
3493 ac_cv_prog_cc_c89=$ac_arg
3494 fi
3495 rm -f core conftest.err conftest.$ac_objext
3496 test "x$ac_cv_prog_cc_c89" != "xno" && break
3497 done
3498 rm -f conftest.$ac_ext
3499 CC=$ac_save_CC
3501 fi
3502 # AC_CACHE_VAL
3503 case "x$ac_cv_prog_cc_c89" in
3504 x)
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3506 $as_echo "none needed" >&6; } ;;
3507 xno)
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3509 $as_echo "unsupported" >&6; } ;;
3510 *)
3511 CC="$CC $ac_cv_prog_cc_c89"
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3513 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3514 esac
3515 if test "x$ac_cv_prog_cc_c89" != xno; then :
3517 fi
3519 ac_ext=c
3520 ac_cpp='$CPP $CPPFLAGS'
3521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3524 DEPDIR="${am__leading_dot}deps"
3526 ac_config_commands="$ac_config_commands depfiles"
3529 am_make=${MAKE-make}
3530 cat > confinc << 'END'
3531 am__doit:
3532 @echo this is the am__doit target
3533 .PHONY: am__doit
3534 END
3535 # If we don't find an include directive, just comment out the code.
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3537 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3538 am__include="#"
3539 am__quote=
3540 _am_result=none
3541 # First try GNU make style include.
3542 echo "include confinc" > confmf
3543 # Ignore all kinds of additional output from `make'.
3544 case `$am_make -s -f confmf 2> /dev/null` in #(
3545 *the\ am__doit\ target*)
3546 am__include=include
3547 am__quote=
3548 _am_result=GNU
3549 ;;
3550 esac
3551 # Now try BSD make style include.
3552 if test "$am__include" = "#"; then
3553 echo '.include "confinc"' > confmf
3554 case `$am_make -s -f confmf 2> /dev/null` in #(
3555 *the\ am__doit\ target*)
3556 am__include=.include
3557 am__quote="\""
3558 _am_result=BSD
3559 ;;
3560 esac
3561 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3565 $as_echo "$_am_result" >&6; }
3566 rm -f confinc confmf
3568 # Check whether --enable-dependency-tracking was given.
3569 if test "${enable_dependency_tracking+set}" = set; then :
3570 enableval=$enable_dependency_tracking;
3571 fi
3573 if test "x$enable_dependency_tracking" != xno; then
3574 am_depcomp="$ac_aux_dir/depcomp"
3575 AMDEPBACKSLASH='\'
3576 fi
3577 if test "x$enable_dependency_tracking" != xno; then
3578 AMDEP_TRUE=
3579 AMDEP_FALSE='#'
3580 else
3581 AMDEP_TRUE='#'
3582 AMDEP_FALSE=
3583 fi
3587 depcc="$CC" am_compiler_list=
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3590 $as_echo_n "checking dependency style of $depcc... " >&6; }
3591 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3595 # We make a subdir and do the tests there. Otherwise we can end up
3596 # making bogus files that we don't know about and never remove. For
3597 # instance it was reported that on HP-UX the gcc test will end up
3598 # making a dummy file named `D' -- because `-MD' means `put the output
3599 # in D'.
3600 mkdir conftest.dir
3601 # Copy depcomp to subdir because otherwise we won't find it if we're
3602 # using a relative directory.
3603 cp "$am_depcomp" conftest.dir
3604 cd conftest.dir
3605 # We will build objects and dependencies in a subdirectory because
3606 # it helps to detect inapplicable dependency modes. For instance
3607 # both Tru64's cc and ICC support -MD to output dependencies as a
3608 # side effect of compilation, but ICC will put the dependencies in
3609 # the current directory while Tru64 will put them in the object
3610 # directory.
3611 mkdir sub
3613 am_cv_CC_dependencies_compiler_type=none
3614 if test "$am_compiler_list" = ""; then
3615 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3616 fi
3617 am__universal=false
3618 case " $depcc " in #(
3619 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3620 esac
3622 for depmode in $am_compiler_list; do
3623 # Setup a source with many dependencies, because some compilers
3624 # like to wrap large dependency lists on column 80 (with \), and
3625 # we should not choose a depcomp mode which is confused by this.
3626 #
3627 # We need to recreate these files for each test, as the compiler may
3628 # overwrite some of them when testing with obscure command lines.
3629 # This happens at least with the AIX C compiler.
3630 : > sub/conftest.c
3631 for i in 1 2 3 4 5 6; do
3632 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3633 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3634 # Solaris 8's {/usr,}/bin/sh.
3635 touch sub/conftst$i.h
3636 done
3637 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3639 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3640 # mode. It turns out that the SunPro C++ compiler does not properly
3641 # handle `-M -o', and we need to detect this. Also, some Intel
3642 # versions had trouble with output in subdirs
3643 am__obj=sub/conftest.${OBJEXT-o}
3644 am__minus_obj="-o $am__obj"
3645 case $depmode in
3646 gcc)
3647 # This depmode causes a compiler race in universal mode.
3648 test "$am__universal" = false || continue
3649 ;;
3650 nosideeffect)
3651 # after this tag, mechanisms are not by side-effect, so they'll
3652 # only be used when explicitly requested
3653 if test "x$enable_dependency_tracking" = xyes; then
3654 continue
3655 else
3656 break
3657 fi
3658 ;;
3659 msvisualcpp | msvcmsys)
3660 # This compiler won't grok `-c -o', but also, the minuso test has
3661 # not run yet. These depmodes are late enough in the game, and
3662 # so weak that their functioning should not be impacted.
3663 am__obj=conftest.${OBJEXT-o}
3664 am__minus_obj=
3665 ;;
3666 none) break ;;
3667 esac
3668 if depmode=$depmode \
3669 source=sub/conftest.c object=$am__obj \
3670 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3671 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3672 >/dev/null 2>conftest.err &&
3673 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3674 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3675 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3676 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3677 # icc doesn't choke on unknown options, it will just issue warnings
3678 # or remarks (even with -Werror). So we grep stderr for any message
3679 # that says an option was ignored or not supported.
3680 # When given -MP, icc 7.0 and 7.1 complain thusly:
3681 # icc: Command line warning: ignoring option '-M'; no argument required
3682 # The diagnosis changed in icc 8.0:
3683 # icc: Command line remark: option '-MP' not supported
3684 if (grep 'ignoring option' conftest.err ||
3685 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3686 am_cv_CC_dependencies_compiler_type=$depmode
3687 break
3688 fi
3689 fi
3690 done
3692 cd ..
3693 rm -rf conftest.dir
3694 else
3695 am_cv_CC_dependencies_compiler_type=none
3696 fi
3698 fi
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3700 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3701 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3703 if
3704 test "x$enable_dependency_tracking" != xno \
3705 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3706 am__fastdepCC_TRUE=
3707 am__fastdepCC_FALSE='#'
3708 else
3709 am__fastdepCC_TRUE='#'
3710 am__fastdepCC_FALSE=
3711 fi
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3716 $as_echo_n "checking for library containing strerror... " >&6; }
3717 if test "${ac_cv_search_strerror+set}" = set; then :
3718 $as_echo_n "(cached) " >&6
3719 else
3720 ac_func_search_save_LIBS=$LIBS
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3724 /* Override any GCC internal prototype to avoid an error.
3725 Use char because int might match the return type of a GCC
3726 builtin and then its argument prototype would still apply. */
3727 #ifdef __cplusplus
3728 extern "C"
3729 #endif
3730 char strerror ();
3731 int
3732 main ()
3733 {
3734 return strerror ();
3735 ;
3736 return 0;
3737 }
3738 _ACEOF
3739 for ac_lib in '' cposix; do
3740 if test -z "$ac_lib"; then
3741 ac_res="none required"
3742 else
3743 ac_res=-l$ac_lib
3744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3745 fi
3746 if ac_fn_c_try_link "$LINENO"; then :
3747 ac_cv_search_strerror=$ac_res
3748 fi
3749 rm -f core conftest.err conftest.$ac_objext \
3750 conftest$ac_exeext
3751 if test "${ac_cv_search_strerror+set}" = set; then :
3752 break
3753 fi
3754 done
3755 if test "${ac_cv_search_strerror+set}" = set; then :
3757 else
3758 ac_cv_search_strerror=no
3759 fi
3760 rm conftest.$ac_ext
3761 LIBS=$ac_func_search_save_LIBS
3762 fi
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3764 $as_echo "$ac_cv_search_strerror" >&6; }
3765 ac_res=$ac_cv_search_strerror
3766 if test "$ac_res" != no; then :
3767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3769 fi
3771 ac_ext=c
3772 ac_cpp='$CPP $CPPFLAGS'
3773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3777 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3778 # On Suns, sometimes $CPP names a directory.
3779 if test -n "$CPP" && test -d "$CPP"; then
3780 CPP=
3781 fi
3782 if test -z "$CPP"; then
3783 if test "${ac_cv_prog_CPP+set}" = set; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 # Double quotes because CPP needs to be expanded
3787 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3788 do
3789 ac_preproc_ok=false
3790 for ac_c_preproc_warn_flag in '' yes
3791 do
3792 # Use a header file that comes with gcc, so configuring glibc
3793 # with a fresh cross-compiler works.
3794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3795 # <limits.h> exists even on freestanding compilers.
3796 # On the NeXT, cc -E runs the code through the compiler's parser,
3797 # not just through cpp. "Syntax error" is here to catch this case.
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3800 #ifdef __STDC__
3801 # include <limits.h>
3802 #else
3803 # include <assert.h>
3804 #endif
3805 Syntax error
3806 _ACEOF
3807 if ac_fn_c_try_cpp "$LINENO"; then :
3809 else
3810 # Broken: fails on valid input.
3811 continue
3812 fi
3813 rm -f conftest.err conftest.$ac_ext
3815 # OK, works on sane cases. Now check whether nonexistent headers
3816 # can be detected and how.
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3819 #include <ac_nonexistent.h>
3820 _ACEOF
3821 if ac_fn_c_try_cpp "$LINENO"; then :
3822 # Broken: success on invalid input.
3823 continue
3824 else
3825 # Passes both tests.
3826 ac_preproc_ok=:
3827 break
3828 fi
3829 rm -f conftest.err conftest.$ac_ext
3831 done
3832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3833 rm -f conftest.err conftest.$ac_ext
3834 if $ac_preproc_ok; then :
3835 break
3836 fi
3838 done
3839 ac_cv_prog_CPP=$CPP
3841 fi
3842 CPP=$ac_cv_prog_CPP
3843 else
3844 ac_cv_prog_CPP=$CPP
3845 fi
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3847 $as_echo "$CPP" >&6; }
3848 ac_preproc_ok=false
3849 for ac_c_preproc_warn_flag in '' yes
3850 do
3851 # Use a header file that comes with gcc, so configuring glibc
3852 # with a fresh cross-compiler works.
3853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3854 # <limits.h> exists even on freestanding compilers.
3855 # On the NeXT, cc -E runs the code through the compiler's parser,
3856 # not just through cpp. "Syntax error" is here to catch this case.
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859 #ifdef __STDC__
3860 # include <limits.h>
3861 #else
3862 # include <assert.h>
3863 #endif
3864 Syntax error
3865 _ACEOF
3866 if ac_fn_c_try_cpp "$LINENO"; then :
3868 else
3869 # Broken: fails on valid input.
3870 continue
3871 fi
3872 rm -f conftest.err conftest.$ac_ext
3874 # OK, works on sane cases. Now check whether nonexistent headers
3875 # can be detected and how.
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 #include <ac_nonexistent.h>
3879 _ACEOF
3880 if ac_fn_c_try_cpp "$LINENO"; then :
3881 # Broken: success on invalid input.
3882 continue
3883 else
3884 # Passes both tests.
3885 ac_preproc_ok=:
3886 break
3887 fi
3888 rm -f conftest.err conftest.$ac_ext
3890 done
3891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3892 rm -f conftest.err conftest.$ac_ext
3893 if $ac_preproc_ok; then :
3895 else
3896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3898 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3899 See \`config.log' for more details." "$LINENO" 5; }
3900 fi
3902 ac_ext=c
3903 ac_cpp='$CPP $CPPFLAGS'
3904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3910 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3911 if test "${ac_cv_path_GREP+set}" = set; then :
3912 $as_echo_n "(cached) " >&6
3913 else
3914 if test -z "$GREP"; then
3915 ac_path_GREP_found=false
3916 # Loop through the user's path and test for each of PROGNAME-LIST
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3919 do
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
3922 for ac_prog in grep ggrep; do
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3925 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3926 # Check for GNU ac_path_GREP and select it if it is found.
3927 # Check for GNU $ac_path_GREP
3928 case `"$ac_path_GREP" --version 2>&1` in
3929 *GNU*)
3930 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3931 *)
3932 ac_count=0
3933 $as_echo_n 0123456789 >"conftest.in"
3934 while :
3935 do
3936 cat "conftest.in" "conftest.in" >"conftest.tmp"
3937 mv "conftest.tmp" "conftest.in"
3938 cp "conftest.in" "conftest.nl"
3939 $as_echo 'GREP' >> "conftest.nl"
3940 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3941 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3942 as_fn_arith $ac_count + 1 && ac_count=$as_val
3943 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3944 # Best one so far, save it but keep looking for a better one
3945 ac_cv_path_GREP="$ac_path_GREP"
3946 ac_path_GREP_max=$ac_count
3947 fi
3948 # 10*(2^10) chars as input seems more than enough
3949 test $ac_count -gt 10 && break
3950 done
3951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3952 esac
3954 $ac_path_GREP_found && break 3
3955 done
3956 done
3957 done
3958 IFS=$as_save_IFS
3959 if test -z "$ac_cv_path_GREP"; then
3960 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3961 fi
3962 else
3963 ac_cv_path_GREP=$GREP
3964 fi
3966 fi
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3968 $as_echo "$ac_cv_path_GREP" >&6; }
3969 GREP="$ac_cv_path_GREP"
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3973 $as_echo_n "checking for egrep... " >&6; }
3974 if test "${ac_cv_path_EGREP+set}" = set; then :
3975 $as_echo_n "(cached) " >&6
3976 else
3977 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3978 then ac_cv_path_EGREP="$GREP -E"
3979 else
3980 if test -z "$EGREP"; then
3981 ac_path_EGREP_found=false
3982 # Loop through the user's path and test for each of PROGNAME-LIST
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3985 do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 for ac_prog in egrep; do
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3991 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3992 # Check for GNU ac_path_EGREP and select it if it is found.
3993 # Check for GNU $ac_path_EGREP
3994 case `"$ac_path_EGREP" --version 2>&1` in
3995 *GNU*)
3996 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3997 *)
3998 ac_count=0
3999 $as_echo_n 0123456789 >"conftest.in"
4000 while :
4001 do
4002 cat "conftest.in" "conftest.in" >"conftest.tmp"
4003 mv "conftest.tmp" "conftest.in"
4004 cp "conftest.in" "conftest.nl"
4005 $as_echo 'EGREP' >> "conftest.nl"
4006 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4007 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4008 as_fn_arith $ac_count + 1 && ac_count=$as_val
4009 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4010 # Best one so far, save it but keep looking for a better one
4011 ac_cv_path_EGREP="$ac_path_EGREP"
4012 ac_path_EGREP_max=$ac_count
4013 fi
4014 # 10*(2^10) chars as input seems more than enough
4015 test $ac_count -gt 10 && break
4016 done
4017 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4018 esac
4020 $ac_path_EGREP_found && break 3
4021 done
4022 done
4023 done
4024 IFS=$as_save_IFS
4025 if test -z "$ac_cv_path_EGREP"; then
4026 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4027 fi
4028 else
4029 ac_cv_path_EGREP=$EGREP
4030 fi
4032 fi
4033 fi
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4035 $as_echo "$ac_cv_path_EGREP" >&6; }
4036 EGREP="$ac_cv_path_EGREP"
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4040 $as_echo_n "checking for ANSI C header files... " >&6; }
4041 if test "${ac_cv_header_stdc+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046 #include <stdlib.h>
4047 #include <stdarg.h>
4048 #include <string.h>
4049 #include <float.h>
4051 int
4052 main ()
4053 {
4055 ;
4056 return 0;
4057 }
4058 _ACEOF
4059 if ac_fn_c_try_compile "$LINENO"; then :
4060 ac_cv_header_stdc=yes
4061 else
4062 ac_cv_header_stdc=no
4063 fi
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 if test $ac_cv_header_stdc = yes; then
4067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4070 #include <string.h>
4072 _ACEOF
4073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4074 $EGREP "memchr" >/dev/null 2>&1; then :
4076 else
4077 ac_cv_header_stdc=no
4078 fi
4079 rm -f conftest*
4081 fi
4083 if test $ac_cv_header_stdc = yes; then
4084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4087 #include <stdlib.h>
4089 _ACEOF
4090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4091 $EGREP "free" >/dev/null 2>&1; then :
4093 else
4094 ac_cv_header_stdc=no
4095 fi
4096 rm -f conftest*
4098 fi
4100 if test $ac_cv_header_stdc = yes; then
4101 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4102 if test "$cross_compiling" = yes; then :
4103 :
4104 else
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4107 #include <ctype.h>
4108 #include <stdlib.h>
4109 #if ((' ' & 0x0FF) == 0x020)
4110 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4111 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4112 #else
4113 # define ISLOWER(c) \
4114 (('a' <= (c) && (c) <= 'i') \
4115 || ('j' <= (c) && (c) <= 'r') \
4116 || ('s' <= (c) && (c) <= 'z'))
4117 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4118 #endif
4120 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4121 int
4122 main ()
4123 {
4124 int i;
4125 for (i = 0; i < 256; i++)
4126 if (XOR (islower (i), ISLOWER (i))
4127 || toupper (i) != TOUPPER (i))
4128 return 2;
4129 return 0;
4130 }
4131 _ACEOF
4132 if ac_fn_c_try_run "$LINENO"; then :
4134 else
4135 ac_cv_header_stdc=no
4136 fi
4137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4138 conftest.$ac_objext conftest.beam conftest.$ac_ext
4139 fi
4141 fi
4142 fi
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4144 $as_echo "$ac_cv_header_stdc" >&6; }
4145 if test $ac_cv_header_stdc = yes; then
4147 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4149 fi
4151 if test -n "$ac_tool_prefix"; then
4152 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4153 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155 $as_echo_n "checking for $ac_word... " >&6; }
4156 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 if test -n "$RANLIB"; then
4160 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4164 do
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4169 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 break 2
4172 fi
4173 done
4174 done
4175 IFS=$as_save_IFS
4177 fi
4178 fi
4179 RANLIB=$ac_cv_prog_RANLIB
4180 if test -n "$RANLIB"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4182 $as_echo "$RANLIB" >&6; }
4183 else
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 $as_echo "no" >&6; }
4186 fi
4189 fi
4190 if test -z "$ac_cv_prog_RANLIB"; then
4191 ac_ct_RANLIB=$RANLIB
4192 # Extract the first word of "ranlib", so it can be a program name with args.
4193 set dummy ranlib; ac_word=$2
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195 $as_echo_n "checking for $ac_word... " >&6; }
4196 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4197 $as_echo_n "(cached) " >&6
4198 else
4199 if test -n "$ac_ct_RANLIB"; then
4200 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4201 else
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH
4204 do
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
4207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4209 ac_cv_prog_ac_ct_RANLIB="ranlib"
4210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4211 break 2
4212 fi
4213 done
4214 done
4215 IFS=$as_save_IFS
4217 fi
4218 fi
4219 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4220 if test -n "$ac_ct_RANLIB"; then
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4222 $as_echo "$ac_ct_RANLIB" >&6; }
4223 else
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225 $as_echo "no" >&6; }
4226 fi
4228 if test "x$ac_ct_RANLIB" = x; then
4229 RANLIB=":"
4230 else
4231 case $cross_compiling:$ac_tool_warned in
4232 yes:)
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4235 ac_tool_warned=yes ;;
4236 esac
4237 RANLIB=$ac_ct_RANLIB
4238 fi
4239 else
4240 RANLIB="$ac_cv_prog_RANLIB"
4241 fi
4250 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4251 if test -n "$ac_tool_prefix"; then
4252 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4253 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255 $as_echo_n "checking for $ac_word... " >&6; }
4256 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 case $PKG_CONFIG in
4260 [\\/]* | ?:[\\/]*)
4261 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4262 ;;
4263 *)
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 for as_dir in $PATH
4266 do
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4271 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 break 2
4274 fi
4275 done
4276 done
4277 IFS=$as_save_IFS
4279 ;;
4280 esac
4281 fi
4282 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4283 if test -n "$PKG_CONFIG"; then
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4285 $as_echo "$PKG_CONFIG" >&6; }
4286 else
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4289 fi
4292 fi
4293 if test -z "$ac_cv_path_PKG_CONFIG"; then
4294 ac_pt_PKG_CONFIG=$PKG_CONFIG
4295 # Extract the first word of "pkg-config", so it can be a program name with args.
4296 set dummy pkg-config; ac_word=$2
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298 $as_echo_n "checking for $ac_word... " >&6; }
4299 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4300 $as_echo_n "(cached) " >&6
4301 else
4302 case $ac_pt_PKG_CONFIG in
4303 [\\/]* | ?:[\\/]*)
4304 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4305 ;;
4306 *)
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 for as_dir in $PATH
4309 do
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4314 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 break 2
4317 fi
4318 done
4319 done
4320 IFS=$as_save_IFS
4322 ;;
4323 esac
4324 fi
4325 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4326 if test -n "$ac_pt_PKG_CONFIG"; then
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4328 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4329 else
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331 $as_echo "no" >&6; }
4332 fi
4334 if test "x$ac_pt_PKG_CONFIG" = x; then
4335 PKG_CONFIG=""
4336 else
4337 case $cross_compiling:$ac_tool_warned in
4338 yes:)
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4341 ac_tool_warned=yes ;;
4342 esac
4343 PKG_CONFIG=$ac_pt_PKG_CONFIG
4344 fi
4345 else
4346 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4347 fi
4349 fi
4350 if test -n "$PKG_CONFIG"; then
4351 _pkg_min_version=0.9.0
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4353 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4354 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356 $as_echo "yes" >&6; }
4357 else
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4360 PKG_CONFIG=""
4361 fi
4362 fi
4364 pkg_failed=no
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
4366 $as_echo_n "checking for GLIB... " >&6; }
4368 if test -n "$GLIB_CFLAGS"; then
4369 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
4370 elif test -n "$PKG_CONFIG"; then
4371 if test -n "$PKG_CONFIG" && \
4372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
4373 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
4374 ac_status=$?
4375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376 test $ac_status = 0; }; then
4377 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
4378 else
4379 pkg_failed=yes
4380 fi
4381 else
4382 pkg_failed=untried
4383 fi
4384 if test -n "$GLIB_LIBS"; then
4385 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
4386 elif test -n "$PKG_CONFIG"; then
4387 if test -n "$PKG_CONFIG" && \
4388 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
4389 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
4390 ac_status=$?
4391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4392 test $ac_status = 0; }; then
4393 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
4394 else
4395 pkg_failed=yes
4396 fi
4397 else
4398 pkg_failed=untried
4399 fi
4403 if test $pkg_failed = yes; then
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4407 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4408 _pkg_short_errors_supported=yes
4409 else
4410 _pkg_short_errors_supported=no
4411 fi
4412 if test $_pkg_short_errors_supported = yes; then
4413 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
4414 else
4415 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
4416 fi
4417 # Put the nasty error message in config.log where it belongs
4418 echo "$GLIB_PKG_ERRORS" >&5
4420 as_fn_error "Package requirements (glib-2.0) were not met:
4422 $GLIB_PKG_ERRORS
4424 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4425 installed software in a non-standard prefix.
4427 Alternatively, you may set the environment variables GLIB_CFLAGS
4428 and GLIB_LIBS to avoid the need to call pkg-config.
4429 See the pkg-config man page for more details." "$LINENO" 5
4430 elif test $pkg_failed = untried; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 $as_echo "no" >&6; }
4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
4436 is in your PATH or set the PKG_CONFIG environment variable to the full
4437 path to pkg-config.
4439 Alternatively, you may set the environment variables GLIB_CFLAGS
4440 and GLIB_LIBS to avoid the need to call pkg-config.
4441 See the pkg-config man page for more details.
4443 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4444 See \`config.log' for more details." "$LINENO" 5; }
4445 else
4446 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
4447 GLIB_LIBS=$pkg_cv_GLIB_LIBS
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4449 $as_echo "yes" >&6; }
4451 fi
4455 # Check whether --enable-resolver was given.
4456 if test "${enable_resolver+set}" = set; then :
4457 enableval=$enable_resolver; if test "$enable_resolver" != 'no'; then
4458 resolver_enabled='yes'
4459 fi
4460 else
4461 resolver_enabled='yes'
4463 fi
4466 if test "$resolver_enabled" = yes; then
4468 $as_echo "#define ENABLE_RESOLVER 1" >>confdefs.h
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lc" >&5
4471 $as_echo_n "checking for res_search in -lc... " >&6; }
4472 if test "${ac_cv_lib_c_res_search+set}" = set; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 ac_check_lib_save_LIBS=$LIBS
4476 LIBS="-lc $LIBS"
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4480 /* Override any GCC internal prototype to avoid an error.
4481 Use char because int might match the return type of a GCC
4482 builtin and then its argument prototype would still apply. */
4483 #ifdef __cplusplus
4484 extern "C"
4485 #endif
4486 char res_search ();
4487 int
4488 main ()
4489 {
4490 return res_search ();
4491 ;
4492 return 0;
4493 }
4494 _ACEOF
4495 if ac_fn_c_try_link "$LINENO"; then :
4496 ac_cv_lib_c_res_search=yes
4497 else
4498 ac_cv_lib_c_res_search=no
4499 fi
4500 rm -f core conftest.err conftest.$ac_objext \
4501 conftest$ac_exeext conftest.$ac_ext
4502 LIBS=$ac_check_lib_save_LIBS
4503 fi
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_res_search" >&5
4505 $as_echo "$ac_cv_lib_c_res_search" >&6; }
4506 if test "x$ac_cv_lib_c_res_search" = x""yes; then :
4507 need_resolv=no
4508 else
4509 need_resolv=yes
4510 fi
4512 if test "$need_resolv" = yes; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
4514 $as_echo_n "checking for res_search in -lresolv... " >&6; }
4515 if test "${ac_cv_lib_resolv_res_search+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 ac_check_lib_save_LIBS=$LIBS
4519 LIBS="-lresolv $LIBS"
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4523 /* Override any GCC internal prototype to avoid an error.
4524 Use char because int might match the return type of a GCC
4525 builtin and then its argument prototype would still apply. */
4526 #ifdef __cplusplus
4527 extern "C"
4528 #endif
4529 char res_search ();
4530 int
4531 main ()
4532 {
4533 return res_search ();
4534 ;
4535 return 0;
4536 }
4537 _ACEOF
4538 if ac_fn_c_try_link "$LINENO"; then :
4539 ac_cv_lib_resolv_res_search=yes
4540 else
4541 ac_cv_lib_resolv_res_search=no
4542 fi
4543 rm -f core conftest.err conftest.$ac_objext \
4544 conftest$ac_exeext conftest.$ac_ext
4545 LIBS=$ac_check_lib_save_LIBS
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
4548 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
4549 if test "x$ac_cv_lib_resolv_res_search" = x""yes; then :
4550 has_resolv=yes; RESOLV_LIBS="-lresolv"
4551 else
4552 has_resolv=no
4553 fi
4555 if test "$has_resolv" = no; then
4556 saved_LIBS="$LIBS"
4557 LIBS="$LIBS -lresolv"
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
4559 $as_echo_n "checking for res_search in -lresolv... " >&6; }
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h. */
4562 #include <resolv.h>
4563 int
4564 main ()
4565 {
4566 res_search (0, 0, 0, 0, 0);
4567 ;
4568 return 0;
4569 }
4570 _ACEOF
4571 if ac_fn_c_try_link "$LINENO"; then :
4572 RESOLV_LIBS="-lresolv"; has_resolv=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4573 $as_echo "yes" >&6; }
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4577 fi
4578 rm -f core conftest.err conftest.$ac_objext \
4579 conftest$ac_exeext conftest.$ac_ext;
4580 LIBS="$saved_LIBS"
4581 fi
4582 if test "$has_resolv" = no; then
4583 as_fn_error "\"no libresolv\"" "$LINENO" 5
4584 RESOLV_LIBS=''
4585 fi
4586 fi
4587 else
4588 RESOLV_LIBS=''
4589 fi
4592 for ac_func in getline
4593 do :
4594 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
4595 if test "x$ac_cv_func_getline" = x""yes; then :
4596 cat >>confdefs.h <<_ACEOF
4597 #define HAVE_GETLINE 1
4598 _ACEOF
4600 fi
4601 done
4604 for ac_func in fdatasync
4605 do :
4606 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
4607 if test "x$ac_cv_func_fdatasync" = x""yes; then :
4608 cat >>confdefs.h <<_ACEOF
4609 #define HAVE_FDATASYNC 1
4610 _ACEOF
4612 fi
4613 done
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4617 $as_echo_n "checking for ANSI C header files... " >&6; }
4618 if test "${ac_cv_header_stdc+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4623 #include <stdlib.h>
4624 #include <stdarg.h>
4625 #include <string.h>
4626 #include <float.h>
4628 int
4629 main ()
4630 {
4632 ;
4633 return 0;
4634 }
4635 _ACEOF
4636 if ac_fn_c_try_compile "$LINENO"; then :
4637 ac_cv_header_stdc=yes
4638 else
4639 ac_cv_header_stdc=no
4640 fi
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 if test $ac_cv_header_stdc = yes; then
4644 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4647 #include <string.h>
4649 _ACEOF
4650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4651 $EGREP "memchr" >/dev/null 2>&1; then :
4653 else
4654 ac_cv_header_stdc=no
4655 fi
4656 rm -f conftest*
4658 fi
4660 if test $ac_cv_header_stdc = yes; then
4661 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4664 #include <stdlib.h>
4666 _ACEOF
4667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4668 $EGREP "free" >/dev/null 2>&1; then :
4670 else
4671 ac_cv_header_stdc=no
4672 fi
4673 rm -f conftest*
4675 fi
4677 if test $ac_cv_header_stdc = yes; then
4678 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4679 if test "$cross_compiling" = yes; then :
4680 :
4681 else
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4684 #include <ctype.h>
4685 #include <stdlib.h>
4686 #if ((' ' & 0x0FF) == 0x020)
4687 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4688 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4689 #else
4690 # define ISLOWER(c) \
4691 (('a' <= (c) && (c) <= 'i') \
4692 || ('j' <= (c) && (c) <= 'r') \
4693 || ('s' <= (c) && (c) <= 'z'))
4694 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4695 #endif
4697 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4698 int
4699 main ()
4700 {
4701 int i;
4702 for (i = 0; i < 256; i++)
4703 if (XOR (islower (i), ISLOWER (i))
4704 || toupper (i) != TOUPPER (i))
4705 return 2;
4706 return 0;
4707 }
4708 _ACEOF
4709 if ac_fn_c_try_run "$LINENO"; then :
4711 else
4712 ac_cv_header_stdc=no
4713 fi
4714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4715 conftest.$ac_objext conftest.beam conftest.$ac_ext
4716 fi
4718 fi
4719 fi
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4721 $as_echo "$ac_cv_header_stdc" >&6; }
4722 if test $ac_cv_header_stdc = yes; then
4724 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4726 fi
4728 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4729 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4730 inttypes.h stdint.h unistd.h
4731 do :
4732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4733 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4734 "
4735 eval as_val=\$$as_ac_Header
4736 if test "x$as_val" = x""yes; then :
4737 cat >>confdefs.h <<_ACEOF
4738 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4739 _ACEOF
4741 fi
4743 done
4746 for ac_header in fcntl.h sys/time.h syslog.h unistd.h
4747 do :
4748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4749 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4750 eval as_val=\$$as_ac_Header
4751 if test "x$as_val" = x""yes; then :
4752 cat >>confdefs.h <<_ACEOF
4753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4754 _ACEOF
4756 fi
4758 done
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4762 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4763 if test "${ac_cv_c_const+set}" = set; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4769 int
4770 main ()
4771 {
4772 /* FIXME: Include the comments suggested by Paul. */
4773 #ifndef __cplusplus
4774 /* Ultrix mips cc rejects this. */
4775 typedef int charset[2];
4776 const charset cs;
4777 /* SunOS 4.1.1 cc rejects this. */
4778 char const *const *pcpcc;
4779 char **ppc;
4780 /* NEC SVR4.0.2 mips cc rejects this. */
4781 struct point {int x, y;};
4782 static struct point const zero = {0,0};
4783 /* AIX XL C 1.02.0.0 rejects this.
4784 It does not let you subtract one const X* pointer from another in
4785 an arm of an if-expression whose if-part is not a constant
4786 expression */
4787 const char *g = "string";
4788 pcpcc = &g + (g ? g-g : 0);
4789 /* HPUX 7.0 cc rejects these. */
4790 ++pcpcc;
4791 ppc = (char**) pcpcc;
4792 pcpcc = (char const *const *) ppc;
4793 { /* SCO 3.2v4 cc rejects this. */
4794 char *t;
4795 char const *s = 0 ? (char *) 0 : (char const *) 0;
4797 *t++ = 0;
4798 if (s) return 0;
4799 }
4800 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4801 int x[] = {25, 17};
4802 const int *foo = &x[0];
4803 ++foo;
4804 }
4805 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4806 typedef const int *iptr;
4807 iptr p = 0;
4808 ++p;
4809 }
4810 { /* AIX XL C 1.02.0.0 rejects this saying
4811 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4812 struct s { int j; const int *ap[3]; };
4813 struct s *b; b->j = 5;
4814 }
4815 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4816 const int foo = 10;
4817 if (!foo) return 0;
4818 }
4819 return !cs[0] && !zero.x;
4820 #endif
4822 ;
4823 return 0;
4824 }
4825 _ACEOF
4826 if ac_fn_c_try_compile "$LINENO"; then :
4827 ac_cv_c_const=yes
4828 else
4829 ac_cv_c_const=no
4830 fi
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832 fi
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4834 $as_echo "$ac_cv_c_const" >&6; }
4835 if test $ac_cv_c_const = no; then
4837 $as_echo "#define const /**/" >>confdefs.h
4839 fi
4841 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
4842 if test "x$ac_cv_type_pid_t" = x""yes; then :
4844 else
4846 cat >>confdefs.h <<_ACEOF
4847 #define pid_t int
4848 _ACEOF
4850 fi
4852 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4853 if test "x$ac_cv_type_size_t" = x""yes; then :
4855 else
4857 cat >>confdefs.h <<_ACEOF
4858 #define size_t unsigned int
4859 _ACEOF
4861 fi
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4864 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4865 if test "${ac_cv_header_time+set}" = set; then :
4866 $as_echo_n "(cached) " >&6
4867 else
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4870 #include <sys/types.h>
4871 #include <sys/time.h>
4872 #include <time.h>
4874 int
4875 main ()
4876 {
4877 if ((struct tm *) 0)
4878 return 0;
4879 ;
4880 return 0;
4881 }
4882 _ACEOF
4883 if ac_fn_c_try_compile "$LINENO"; then :
4884 ac_cv_header_time=yes
4885 else
4886 ac_cv_header_time=no
4887 fi
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 fi
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4891 $as_echo "$ac_cv_header_time" >&6; }
4892 if test $ac_cv_header_time = yes; then
4894 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4896 fi
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4899 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4900 if test "${ac_cv_struct_tm+set}" = set; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4905 #include <sys/types.h>
4906 #include <time.h>
4908 int
4909 main ()
4910 {
4911 struct tm tm;
4912 int *p = &tm.tm_sec;
4913 return !p;
4914 ;
4915 return 0;
4916 }
4917 _ACEOF
4918 if ac_fn_c_try_compile "$LINENO"; then :
4919 ac_cv_struct_tm=time.h
4920 else
4921 ac_cv_struct_tm=sys/time.h
4922 fi
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 fi
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4926 $as_echo "$ac_cv_struct_tm" >&6; }
4927 if test $ac_cv_struct_tm = sys/time.h; then
4929 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4931 fi
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
4935 $as_echo_n "checking for working POSIX fnmatch... " >&6; }
4936 if test "${ac_cv_func_fnmatch_works+set}" = set; then :
4937 $as_echo_n "(cached) " >&6
4938 else
4939 # Some versions of Solaris, SCO, and the GNU C Library
4940 # have a broken or incompatible fnmatch.
4941 # So we run a test program. If we are cross-compiling, take no chance.
4942 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
4943 if test "$cross_compiling" = yes; then :
4944 ac_cv_func_fnmatch_works=cross
4945 else
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 #include <fnmatch.h>
4949 # define y(a, b, c) (fnmatch (a, b, c) == 0)
4950 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
4952 int
4953 main ()
4954 {
4955 return
4956 (!(y ("a*", "abc", 0)
4957 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
4958 && y ("a\\\\bc", "abc", 0)
4959 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
4960 && y ("*x", ".x", 0)
4961 && n ("*x", ".x", FNM_PERIOD)
4962 && 1));
4963 ;
4964 return 0;
4965 }
4966 _ACEOF
4967 if ac_fn_c_try_run "$LINENO"; then :
4968 ac_cv_func_fnmatch_works=yes
4969 else
4970 ac_cv_func_fnmatch_works=no
4971 fi
4972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4973 conftest.$ac_objext conftest.beam conftest.$ac_ext
4974 fi
4976 fi
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
4978 $as_echo "$ac_cv_func_fnmatch_works" >&6; }
4979 if test $ac_cv_func_fnmatch_works = yes; then :
4981 $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
4983 fi
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4987 $as_echo_n "checking return type of signal handlers... " >&6; }
4988 if test "${ac_cv_type_signal+set}" = set; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993 #include <sys/types.h>
4994 #include <signal.h>
4996 int
4997 main ()
4998 {
4999 return *(signal (0, 0)) (0) == 1;
5000 ;
5001 return 0;
5002 }
5003 _ACEOF
5004 if ac_fn_c_try_compile "$LINENO"; then :
5005 ac_cv_type_signal=int
5006 else
5007 ac_cv_type_signal=void
5008 fi
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010 fi
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5012 $as_echo "$ac_cv_type_signal" >&6; }
5014 cat >>confdefs.h <<_ACEOF
5015 #define RETSIGTYPE $ac_cv_type_signal
5016 _ACEOF
5019 for ac_func in strftime
5020 do :
5021 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
5022 if test "x$ac_cv_func_strftime" = x""yes; then :
5023 cat >>confdefs.h <<_ACEOF
5024 #define HAVE_STRFTIME 1
5025 _ACEOF
5027 else
5028 # strftime is in -lintl on SCO UNIX.
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
5030 $as_echo_n "checking for strftime in -lintl... " >&6; }
5031 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 ac_check_lib_save_LIBS=$LIBS
5035 LIBS="-lintl $LIBS"
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h. */
5039 /* Override any GCC internal prototype to avoid an error.
5040 Use char because int might match the return type of a GCC
5041 builtin and then its argument prototype would still apply. */
5042 #ifdef __cplusplus
5043 extern "C"
5044 #endif
5045 char strftime ();
5046 int
5047 main ()
5048 {
5049 return strftime ();
5050 ;
5051 return 0;
5052 }
5053 _ACEOF
5054 if ac_fn_c_try_link "$LINENO"; then :
5055 ac_cv_lib_intl_strftime=yes
5056 else
5057 ac_cv_lib_intl_strftime=no
5058 fi
5059 rm -f core conftest.err conftest.$ac_objext \
5060 conftest$ac_exeext conftest.$ac_ext
5061 LIBS=$ac_check_lib_save_LIBS
5062 fi
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
5064 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
5065 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
5066 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
5068 LIBS="-lintl $LIBS"
5069 fi
5071 fi
5072 done
5074 for ac_func in vprintf
5075 do :
5076 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
5077 if test "x$ac_cv_func_vprintf" = x""yes; then :
5078 cat >>confdefs.h <<_ACEOF
5079 #define HAVE_VPRINTF 1
5080 _ACEOF
5082 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5083 if test "x$ac_cv_func__doprnt" = x""yes; then :
5085 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5087 fi
5089 fi
5090 done
5093 for ac_func in select socket strerror strstr
5094 do :
5095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5096 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5097 eval as_val=\$$as_ac_var
5098 if test "x$as_val" = x""yes; then :
5099 cat >>confdefs.h <<_ACEOF
5100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5101 _ACEOF
5103 fi
5104 done
5108 # Check whether --with-user was given.
5109 if test "${with_user+set}" = set; then :
5110 withval=$with_user;
5111 fi
5113 if test "x$with_user" = 'x'; then
5114 with_user='mail'
5115 fi
5118 # Check whether --with-group was given.
5119 if test "${with_group+set}" = set; then :
5120 withval=$with_group;
5121 fi
5123 if test "x$with_group" = 'x'; then
5124 with_group='trusted'
5125 fi
5127 # Check whether --enable-debug was given.
5128 if test "${enable_debug+set}" = set; then :
5129 enableval=$enable_debug; if test "x$enable_debug" != 'xno'; then
5130 debug_enabled='yes'
5131 fi
5132 else
5133 debug_enabled='yes'
5135 fi
5137 if test "x$debug_enabled" = xyes; then
5139 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
5141 fi
5144 cat >>confdefs.h <<_ACEOF
5145 #define DEF_MAIL_USER "${with_user}"
5146 _ACEOF
5150 cat >>confdefs.h <<_ACEOF
5151 #define DEF_MAIL_GROUP "${with_group}"
5152 _ACEOF
5157 # Check whether --with-glib_static was given.
5158 if test "${with_glib_static+set}" = set; then :
5159 withval=$with_glib_static;
5160 fi
5162 if test "x$with_glib_static" != 'x'; then
5163 GLIB_LIBS=$with_glib_static
5165 fi
5167 MD5_LIBS=''
5168 BASE64_LIBS=''
5170 # Check whether --enable-smtp_server was given.
5171 if test "${enable_smtp_server+set}" = set; then :
5172 enableval=$enable_smtp_server; if test "x$enable_smtp_server" != 'xno'; then
5173 smtp_server_enabled='yes'
5174 fi
5175 else
5176 smtp_server_enabled='yes'
5178 fi
5180 if test "x$smtp_server_enabled" = xyes; then
5182 $as_echo "#define ENABLE_SMTP_SERVER 1" >>confdefs.h
5184 fi
5186 # Check whether --enable-pop3 was given.
5187 if test "${enable_pop3+set}" = set; then :
5188 enableval=$enable_pop3; if test "x$enable_pop3" != 'xno'; then
5189 pop3_enabled='yes'
5190 fi
5191 else
5192 pop3_enabled='yes'
5194 fi
5196 if test "x$pop3_enabled" = xyes; then
5198 $as_echo "#define ENABLE_POP3 1" >>confdefs.h
5200 # MD5_LIBS='md5/libmd5c.a'
5201 need_md5='yes'
5202 fi
5204 # Check whether --enable-auth was given.
5205 if test "${enable_auth+set}" = set; then :
5206 enableval=$enable_auth; if test "x$enable_auth" != 'xno'; then
5207 auth_enabled='yes'
5208 fi
5209 fi
5211 if test "x$auth_enabled" = xyes; then
5213 $as_echo "#define ENABLE_AUTH 1" >>confdefs.h
5215 BASE64_LIBS='base64/libbase64.a'
5216 # MD5_LIBS='md5/libmd5c.a'
5217 need_md5='yes'
5218 fi
5221 # Check whether --enable-maildir was given.
5222 if test "${enable_maildir+set}" = set; then :
5223 enableval=$enable_maildir; if test "x$enable_maildir" != 'xno'; then
5224 maildir_enabled='yes'
5225 fi
5226 fi
5228 if test "x$maildir_enabled" = xyes; then
5230 $as_echo "#define ENABLE_MAILDIR 1" >>confdefs.h
5232 fi
5235 # Check whether --with-libcrypto was given.
5236 if test "${with_libcrypto+set}" = set; then :
5237 withval=$with_libcrypto;
5238 fi
5240 if test "x$with_libcrypto" != 'xyes'; then
5241 with_libcrypto='no'
5242 fi
5244 if test "x$need_md5" = 'xyes'; then
5245 if test "x$with_libcrypto" = "xyes"; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5 in -lcrypto" >&5
5247 $as_echo_n "checking for MD5 in -lcrypto... " >&6; }
5248 if test "${ac_cv_lib_crypto_MD5+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 ac_check_lib_save_LIBS=$LIBS
5252 LIBS="-lcrypto $LIBS"
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5256 /* Override any GCC internal prototype to avoid an error.
5257 Use char because int might match the return type of a GCC
5258 builtin and then its argument prototype would still apply. */
5259 #ifdef __cplusplus
5260 extern "C"
5261 #endif
5262 char MD5 ();
5263 int
5264 main ()
5265 {
5266 return MD5 ();
5267 ;
5268 return 0;
5269 }
5270 _ACEOF
5271 if ac_fn_c_try_link "$LINENO"; then :
5272 ac_cv_lib_crypto_MD5=yes
5273 else
5274 ac_cv_lib_crypto_MD5=no
5275 fi
5276 rm -f core conftest.err conftest.$ac_objext \
5277 conftest$ac_exeext conftest.$ac_ext
5278 LIBS=$ac_check_lib_save_LIBS
5279 fi
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_MD5" >&5
5281 $as_echo "$ac_cv_lib_crypto_MD5" >&6; }
5282 if test "x$ac_cv_lib_crypto_MD5" = x""yes; then :
5283 has_crypto='yes'
5284 else
5285 as_fn_error "'no libcrypto'" "$LINENO" 5
5286 fi
5288 if test "x$has_crypto" = 'xyes'; then
5290 $as_echo "#define USE_LIB_CRYPTO 1" >>confdefs.h
5292 MD5_LIBS='-lcrypto'
5293 fi
5294 else
5295 MD5_LIBS='md5/libmd5c.a'
5296 fi
5297 fi
5300 IDENT_LIBS=''
5301 # Check whether --enable-ident was given.
5302 if test "${enable_ident+set}" = set; then :
5303 enableval=$enable_ident; if test "x$enable_ident" != 'xno'; then
5304 ident_enabled='yes'
5305 fi
5306 fi
5309 if test "x$ident_enabled" = xyes; then
5311 $as_echo "#define ENABLE_IDENT 1" >>confdefs.h
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ident_id in -lident" >&5
5314 $as_echo_n "checking for ident_id in -lident... " >&6; }
5315 if test "${ac_cv_lib_ident_ident_id+set}" = set; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 ac_check_lib_save_LIBS=$LIBS
5319 LIBS="-lident $LIBS"
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5323 /* Override any GCC internal prototype to avoid an error.
5324 Use char because int might match the return type of a GCC
5325 builtin and then its argument prototype would still apply. */
5326 #ifdef __cplusplus
5327 extern "C"
5328 #endif
5329 char ident_id ();
5330 int
5331 main ()
5332 {
5333 return ident_id ();
5334 ;
5335 return 0;
5336 }
5337 _ACEOF
5338 if ac_fn_c_try_link "$LINENO"; then :
5339 ac_cv_lib_ident_ident_id=yes
5340 else
5341 ac_cv_lib_ident_ident_id=no
5342 fi
5343 rm -f core conftest.err conftest.$ac_objext \
5344 conftest$ac_exeext conftest.$ac_ext
5345 LIBS=$ac_check_lib_save_LIBS
5346 fi
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ident_ident_id" >&5
5348 $as_echo "$ac_cv_lib_ident_ident_id" >&6; }
5349 if test "x$ac_cv_lib_ident_ident_id" = x""yes; then :
5350 IDENT_LIBS='-lident'
5351 else
5352 IDENT_LIBS='libident/libident.a'
5353 fi
5355 fi
5358 # Check whether --enable-mserver was given.
5359 if test "${enable_mserver+set}" = set; then :
5360 enableval=$enable_mserver; if test "x$enable_mserver" != 'xno'; then
5361 mserver_enabled='yes'
5362 fi
5363 fi
5365 if test "x$mserver_enabled" = xyes; then
5367 $as_echo "#define ENABLE_MSERVER 1" >>confdefs.h
5369 fi
5372 # Check whether --with-liblockfile was given.
5373 if test "${with_liblockfile+set}" = set; then :
5374 withval=$with_liblockfile;
5375 fi
5377 if test "x$with_liblockfile" != 'x'; then
5378 with_liblockfile='yes'
5379 fi
5380 if test "x$with_liblockfile" = xyes; then
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
5382 $as_echo_n "checking for maillock in -llockfile... " >&6; }
5383 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 ac_check_lib_save_LIBS=$LIBS
5387 LIBS="-llockfile $LIBS"
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5391 /* Override any GCC internal prototype to avoid an error.
5392 Use char because int might match the return type of a GCC
5393 builtin and then its argument prototype would still apply. */
5394 #ifdef __cplusplus
5395 extern "C"
5396 #endif
5397 char maillock ();
5398 int
5399 main ()
5400 {
5401 return maillock ();
5402 ;
5403 return 0;
5404 }
5405 _ACEOF
5406 if ac_fn_c_try_link "$LINENO"; then :
5407 ac_cv_lib_lockfile_maillock=yes
5408 else
5409 ac_cv_lib_lockfile_maillock=no
5410 fi
5411 rm -f core conftest.err conftest.$ac_objext \
5412 conftest$ac_exeext conftest.$ac_ext
5413 LIBS=$ac_check_lib_save_LIBS
5414 fi
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
5416 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
5417 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
5418 has_lockfile=yes
5419 else
5420 as_fn_error "\"no liblockfile\"" "$LINENO" 5
5421 fi
5423 LOCKFILE_LIBS='-llockfile'
5425 $as_echo "#define USE_LIBLOCKFILE 1" >>confdefs.h
5427 else
5428 LOCKFILE_LIBS=''
5429 fi
5434 # Check whether --with-logdir was given.
5435 if test "${with_logdir+set}" = set; then :
5436 withval=$with_logdir;
5437 else
5438 with_logdir='/var/log/masqmail/'
5440 fi
5443 cat >>confdefs.h <<_ACEOF
5444 #define LOG_DIR "${with_logdir}"
5445 _ACEOF
5450 # Check whether --with-spooldir was given.
5451 if test "${with_spooldir+set}" = set; then :
5452 withval=$with_spooldir;
5453 else
5454 with_spooldir='/var/spool/masqmail/'
5456 fi
5459 cat >>confdefs.h <<_ACEOF
5460 #define SPOOL_DIR "${with_spooldir}"
5461 _ACEOF
5466 # Check whether --with-confdir was given.
5467 if test "${with_confdir+set}" = set; then :
5468 withval=$with_confdir;
5469 else
5470 with_confdir='/etc/masqmail'
5472 fi
5475 cat >>confdefs.h <<_ACEOF
5476 #define CONF_DIR "${with_confdir}"
5477 _ACEOF
5481 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5484 cat >>confdefs.h <<_ACEOF
5485 #define DATA_DIR "`eval eval echo $datadir`/masqmail"
5486 _ACEOF
5489 if test "x${exec_prefix}" != 'xNONE'; then
5491 cat >>confdefs.h <<_ACEOF
5492 #define SBINDIR "${exec_prefix}/sbin"
5493 _ACEOF
5495 else
5496 if test "x${prefix}" != 'xNONE'; then
5497 cat >>confdefs.h <<_ACEOF
5498 #define SBINDIR "${prefix}/sbin"
5499 _ACEOF
5501 else
5502 cat >>confdefs.h <<_ACEOF
5503 #define SBINDIR "/usr/sbin"
5504 _ACEOF
5506 fi
5507 fi
5509 ac_config_files="$ac_config_files Makefile src/Makefile src/base64/Makefile src/md5/Makefile src/libident/Makefile man/Makefile"
5511 cat >confcache <<\_ACEOF
5512 # This file is a shell script that caches the results of configure
5513 # tests run on this system so they can be shared between configure
5514 # scripts and configure runs, see configure's option --config-cache.
5515 # It is not useful on other systems. If it contains results you don't
5516 # want to keep, you may remove or edit it.
5517 #
5518 # config.status only pays attention to the cache file if you give it
5519 # the --recheck option to rerun configure.
5520 #
5521 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5522 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5523 # following values.
5525 _ACEOF
5527 # The following way of writing the cache mishandles newlines in values,
5528 # but we know of no workaround that is simple, portable, and efficient.
5529 # So, we kill variables containing newlines.
5530 # Ultrix sh set writes to stderr and can't be redirected directly,
5531 # and sets the high bit in the cache file unless we assign to the vars.
5532 (
5533 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5534 eval ac_val=\$$ac_var
5535 case $ac_val in #(
5536 *${as_nl}*)
5537 case $ac_var in #(
5538 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5539 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5540 esac
5541 case $ac_var in #(
5542 _ | IFS | as_nl) ;; #(
5543 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5544 *) { eval $ac_var=; unset $ac_var;} ;;
5545 esac ;;
5546 esac
5547 done
5549 (set) 2>&1 |
5550 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5551 *${as_nl}ac_space=\ *)
5552 # `set' does not quote correctly, so add quotes: double-quote
5553 # substitution turns \\\\ into \\, and sed turns \\ into \.
5554 sed -n \
5555 "s/'/'\\\\''/g;
5556 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5557 ;; #(
5558 *)
5559 # `set' quotes correctly as required by POSIX, so do not add quotes.
5560 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5561 ;;
5562 esac |
5563 sort
5564 ) |
5565 sed '
5566 /^ac_cv_env_/b end
5567 t clear
5568 :clear
5569 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5570 t end
5571 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5572 :end' >>confcache
5573 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5574 if test -w "$cache_file"; then
5575 test "x$cache_file" != "x/dev/null" &&
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5577 $as_echo "$as_me: updating cache $cache_file" >&6;}
5578 cat confcache >$cache_file
5579 else
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5581 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5582 fi
5583 fi
5584 rm -f confcache
5586 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5587 # Let make expand exec_prefix.
5588 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5590 DEFS=-DHAVE_CONFIG_H
5592 ac_libobjs=
5593 ac_ltlibobjs=
5594 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5595 # 1. Remove the extension, and $U if already installed.
5596 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5597 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5598 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5599 # will be set to the directory where LIBOBJS objects are built.
5600 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5601 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5602 done
5603 LIBOBJS=$ac_libobjs
5605 LTLIBOBJS=$ac_ltlibobjs
5608 if test -n "$EXEEXT"; then
5609 am__EXEEXT_TRUE=
5610 am__EXEEXT_FALSE='#'
5611 else
5612 am__EXEEXT_TRUE='#'
5613 am__EXEEXT_FALSE=
5614 fi
5616 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5617 as_fn_error "conditional \"AMDEP\" was never defined.
5618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5619 fi
5620 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5621 as_fn_error "conditional \"am__fastdepCC\" was never defined.
5622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5623 fi
5625 : ${CONFIG_STATUS=./config.status}
5626 ac_write_fail=0
5627 ac_clean_files_save=$ac_clean_files
5628 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5630 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5631 as_write_fail=0
5632 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5633 #! $SHELL
5634 # Generated by $as_me.
5635 # Run this file to recreate the current configuration.
5636 # Compiler output produced by configure, useful for debugging
5637 # configure, is in config.log if it exists.
5639 debug=false
5640 ac_cs_recheck=false
5641 ac_cs_silent=false
5643 SHELL=\${CONFIG_SHELL-$SHELL}
5644 export SHELL
5645 _ASEOF
5646 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5647 ## -------------------- ##
5648 ## M4sh Initialization. ##
5649 ## -------------------- ##
5651 # Be more Bourne compatible
5652 DUALCASE=1; export DUALCASE # for MKS sh
5653 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5654 emulate sh
5655 NULLCMD=:
5656 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5657 # is contrary to our usage. Disable this feature.
5658 alias -g '${1+"$@"}'='"$@"'
5659 setopt NO_GLOB_SUBST
5660 else
5661 case `(set -o) 2>/dev/null` in #(
5662 *posix*) :
5663 set -o posix ;; #(
5664 *) :
5665 ;;
5666 esac
5667 fi
5670 as_nl='
5671 '
5672 export as_nl
5673 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5674 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5675 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5676 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5677 # Prefer a ksh shell builtin over an external printf program on Solaris,
5678 # but without wasting forks for bash or zsh.
5679 if test -z "$BASH_VERSION$ZSH_VERSION" \
5680 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5681 as_echo='print -r --'
5682 as_echo_n='print -rn --'
5683 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5684 as_echo='printf %s\n'
5685 as_echo_n='printf %s'
5686 else
5687 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5688 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5689 as_echo_n='/usr/ucb/echo -n'
5690 else
5691 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5692 as_echo_n_body='eval
5693 arg=$1;
5694 case $arg in #(
5695 *"$as_nl"*)
5696 expr "X$arg" : "X\\(.*\\)$as_nl";
5697 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5698 esac;
5699 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5700 '
5701 export as_echo_n_body
5702 as_echo_n='sh -c $as_echo_n_body as_echo'
5703 fi
5704 export as_echo_body
5705 as_echo='sh -c $as_echo_body as_echo'
5706 fi
5708 # The user is always right.
5709 if test "${PATH_SEPARATOR+set}" != set; then
5710 PATH_SEPARATOR=:
5711 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5712 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5713 PATH_SEPARATOR=';'
5714 }
5715 fi
5718 # IFS
5719 # We need space, tab and new line, in precisely that order. Quoting is
5720 # there to prevent editors from complaining about space-tab.
5721 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5722 # splitting by setting IFS to empty value.)
5723 IFS=" "" $as_nl"
5725 # Find who we are. Look in the path if we contain no directory separator.
5726 case $0 in #((
5727 *[\\/]* ) as_myself=$0 ;;
5728 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 for as_dir in $PATH
5730 do
5731 IFS=$as_save_IFS
5732 test -z "$as_dir" && as_dir=.
5733 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5734 done
5735 IFS=$as_save_IFS
5737 ;;
5738 esac
5739 # We did not find ourselves, most probably we were run as `sh COMMAND'
5740 # in which case we are not to be found in the path.
5741 if test "x$as_myself" = x; then
5742 as_myself=$0
5743 fi
5744 if test ! -f "$as_myself"; then
5745 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5746 exit 1
5747 fi
5749 # Unset variables that we do not need and which cause bugs (e.g. in
5750 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5751 # suppresses any "Segmentation fault" message there. '((' could
5752 # trigger a bug in pdksh 5.2.14.
5753 for as_var in BASH_ENV ENV MAIL MAILPATH
5754 do eval test x\${$as_var+set} = xset \
5755 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5756 done
5757 PS1='$ '
5758 PS2='> '
5759 PS4='+ '
5761 # NLS nuisances.
5762 LC_ALL=C
5763 export LC_ALL
5764 LANGUAGE=C
5765 export LANGUAGE
5767 # CDPATH.
5768 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5771 # as_fn_error ERROR [LINENO LOG_FD]
5772 # ---------------------------------
5773 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5774 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5775 # script with status $?, using 1 if that was 0.
5776 as_fn_error ()
5777 {
5778 as_status=$?; test $as_status -eq 0 && as_status=1
5779 if test "$3"; then
5780 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5781 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5782 fi
5783 $as_echo "$as_me: error: $1" >&2
5784 as_fn_exit $as_status
5785 } # as_fn_error
5788 # as_fn_set_status STATUS
5789 # -----------------------
5790 # Set $? to STATUS, without forking.
5791 as_fn_set_status ()
5792 {
5793 return $1
5794 } # as_fn_set_status
5796 # as_fn_exit STATUS
5797 # -----------------
5798 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5799 as_fn_exit ()
5800 {
5801 set +e
5802 as_fn_set_status $1
5803 exit $1
5804 } # as_fn_exit
5806 # as_fn_unset VAR
5807 # ---------------
5808 # Portably unset VAR.
5809 as_fn_unset ()
5810 {
5811 { eval $1=; unset $1;}
5812 }
5813 as_unset=as_fn_unset
5814 # as_fn_append VAR VALUE
5815 # ----------------------
5816 # Append the text in VALUE to the end of the definition contained in VAR. Take
5817 # advantage of any shell optimizations that allow amortized linear growth over
5818 # repeated appends, instead of the typical quadratic growth present in naive
5819 # implementations.
5820 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5821 eval 'as_fn_append ()
5822 {
5823 eval $1+=\$2
5824 }'
5825 else
5826 as_fn_append ()
5827 {
5828 eval $1=\$$1\$2
5829 }
5830 fi # as_fn_append
5832 # as_fn_arith ARG...
5833 # ------------------
5834 # Perform arithmetic evaluation on the ARGs, and store the result in the
5835 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5836 # must be portable across $(()) and expr.
5837 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5838 eval 'as_fn_arith ()
5839 {
5840 as_val=$(( $* ))
5841 }'
5842 else
5843 as_fn_arith ()
5844 {
5845 as_val=`expr "$@" || test $? -eq 1`
5846 }
5847 fi # as_fn_arith
5850 if expr a : '\(a\)' >/dev/null 2>&1 &&
5851 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5852 as_expr=expr
5853 else
5854 as_expr=false
5855 fi
5857 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5858 as_basename=basename
5859 else
5860 as_basename=false
5861 fi
5863 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5864 as_dirname=dirname
5865 else
5866 as_dirname=false
5867 fi
5869 as_me=`$as_basename -- "$0" ||
5870 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5871 X"$0" : 'X\(//\)$' \| \
5872 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5873 $as_echo X/"$0" |
5874 sed '/^.*\/\([^/][^/]*\)\/*$/{
5875 s//\1/
5876 q
5877 }
5878 /^X\/\(\/\/\)$/{
5879 s//\1/
5880 q
5881 }
5882 /^X\/\(\/\).*/{
5883 s//\1/
5884 q
5885 }
5886 s/.*/./; q'`
5888 # Avoid depending upon Character Ranges.
5889 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5890 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5891 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5892 as_cr_digits='0123456789'
5893 as_cr_alnum=$as_cr_Letters$as_cr_digits
5895 ECHO_C= ECHO_N= ECHO_T=
5896 case `echo -n x` in #(((((
5897 -n*)
5898 case `echo 'xy\c'` in
5899 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5900 xy) ECHO_C='\c';;
5901 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5902 ECHO_T=' ';;
5903 esac;;
5904 *)
5905 ECHO_N='-n';;
5906 esac
5908 rm -f conf$$ conf$$.exe conf$$.file
5909 if test -d conf$$.dir; then
5910 rm -f conf$$.dir/conf$$.file
5911 else
5912 rm -f conf$$.dir
5913 mkdir conf$$.dir 2>/dev/null
5914 fi
5915 if (echo >conf$$.file) 2>/dev/null; then
5916 if ln -s conf$$.file conf$$ 2>/dev/null; then
5917 as_ln_s='ln -s'
5918 # ... but there are two gotchas:
5919 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5920 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5921 # In both cases, we have to default to `cp -p'.
5922 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5923 as_ln_s='cp -p'
5924 elif ln conf$$.file conf$$ 2>/dev/null; then
5925 as_ln_s=ln
5926 else
5927 as_ln_s='cp -p'
5928 fi
5929 else
5930 as_ln_s='cp -p'
5931 fi
5932 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5933 rmdir conf$$.dir 2>/dev/null
5936 # as_fn_mkdir_p
5937 # -------------
5938 # Create "$as_dir" as a directory, including parents if necessary.
5939 as_fn_mkdir_p ()
5940 {
5942 case $as_dir in #(
5943 -*) as_dir=./$as_dir;;
5944 esac
5945 test -d "$as_dir" || eval $as_mkdir_p || {
5946 as_dirs=
5947 while :; do
5948 case $as_dir in #(
5949 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5950 *) as_qdir=$as_dir;;
5951 esac
5952 as_dirs="'$as_qdir' $as_dirs"
5953 as_dir=`$as_dirname -- "$as_dir" ||
5954 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5955 X"$as_dir" : 'X\(//\)[^/]' \| \
5956 X"$as_dir" : 'X\(//\)$' \| \
5957 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5958 $as_echo X"$as_dir" |
5959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5960 s//\1/
5961 q
5962 }
5963 /^X\(\/\/\)[^/].*/{
5964 s//\1/
5965 q
5966 }
5967 /^X\(\/\/\)$/{
5968 s//\1/
5969 q
5970 }
5971 /^X\(\/\).*/{
5972 s//\1/
5973 q
5974 }
5975 s/.*/./; q'`
5976 test -d "$as_dir" && break
5977 done
5978 test -z "$as_dirs" || eval "mkdir $as_dirs"
5979 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5982 } # as_fn_mkdir_p
5983 if mkdir -p . 2>/dev/null; then
5984 as_mkdir_p='mkdir -p "$as_dir"'
5985 else
5986 test -d ./-p && rmdir ./-p
5987 as_mkdir_p=false
5988 fi
5990 if test -x / >/dev/null 2>&1; then
5991 as_test_x='test -x'
5992 else
5993 if ls -dL / >/dev/null 2>&1; then
5994 as_ls_L_option=L
5995 else
5996 as_ls_L_option=
5997 fi
5998 as_test_x='
5999 eval sh -c '\''
6000 if test -d "$1"; then
6001 test -d "$1/.";
6002 else
6003 case $1 in #(
6004 -*)set "./$1";;
6005 esac;
6006 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6007 ???[sx]*):;;*)false;;esac;fi
6008 '\'' sh
6009 '
6010 fi
6011 as_executable_p=$as_test_x
6013 # Sed expression to map a string onto a valid CPP name.
6014 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6016 # Sed expression to map a string onto a valid variable name.
6017 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6020 exec 6>&1
6021 ## ----------------------------------- ##
6022 ## Main body of $CONFIG_STATUS script. ##
6023 ## ----------------------------------- ##
6024 _ASEOF
6025 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6028 # Save the log message, to keep $0 and so on meaningful, and to
6029 # report actual input values of CONFIG_FILES etc. instead of their
6030 # values after options handling.
6031 ac_log="
6032 This file was extended by masqmail $as_me 0.3.0, which was
6033 generated by GNU Autoconf 2.65. Invocation command line was
6035 CONFIG_FILES = $CONFIG_FILES
6036 CONFIG_HEADERS = $CONFIG_HEADERS
6037 CONFIG_LINKS = $CONFIG_LINKS
6038 CONFIG_COMMANDS = $CONFIG_COMMANDS
6039 $ $0 $@
6041 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6042 "
6044 _ACEOF
6046 case $ac_config_files in *"
6047 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6048 esac
6050 case $ac_config_headers in *"
6051 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6052 esac
6055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6056 # Files that config.status was made for.
6057 config_files="$ac_config_files"
6058 config_headers="$ac_config_headers"
6059 config_commands="$ac_config_commands"
6061 _ACEOF
6063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6064 ac_cs_usage="\
6065 \`$as_me' instantiates files and other configuration actions
6066 from templates according to the current configuration. Unless the files
6067 and actions are specified as TAGs, all are instantiated by default.
6069 Usage: $0 [OPTION]... [TAG]...
6071 -h, --help print this help, then exit
6072 -V, --version print version number and configuration settings, then exit
6073 --config print configuration, then exit
6074 -q, --quiet, --silent
6075 do not print progress messages
6076 -d, --debug don't remove temporary files
6077 --recheck update $as_me by reconfiguring in the same conditions
6078 --file=FILE[:TEMPLATE]
6079 instantiate the configuration file FILE
6080 --header=FILE[:TEMPLATE]
6081 instantiate the configuration header FILE
6083 Configuration files:
6084 $config_files
6086 Configuration headers:
6087 $config_headers
6089 Configuration commands:
6090 $config_commands
6092 Report bugs to <meillo@marmaro.de>."
6094 _ACEOF
6095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6096 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6097 ac_cs_version="\\
6098 masqmail config.status 0.3.0
6099 configured by $0, generated by GNU Autoconf 2.65,
6100 with options \\"\$ac_cs_config\\"
6102 Copyright (C) 2009 Free Software Foundation, Inc.
6103 This config.status script is free software; the Free Software Foundation
6104 gives unlimited permission to copy, distribute and modify it."
6106 ac_pwd='$ac_pwd'
6107 srcdir='$srcdir'
6108 INSTALL='$INSTALL'
6109 MKDIR_P='$MKDIR_P'
6110 AWK='$AWK'
6111 test -n "\$AWK" || AWK=awk
6112 _ACEOF
6114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6115 # The default lists apply if the user does not specify any file.
6116 ac_need_defaults=:
6117 while test $# != 0
6118 do
6119 case $1 in
6120 --*=*)
6121 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6122 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6123 ac_shift=:
6124 ;;
6125 *)
6126 ac_option=$1
6127 ac_optarg=$2
6128 ac_shift=shift
6129 ;;
6130 esac
6132 case $ac_option in
6133 # Handling of the options.
6134 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6135 ac_cs_recheck=: ;;
6136 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6137 $as_echo "$ac_cs_version"; exit ;;
6138 --config | --confi | --conf | --con | --co | --c )
6139 $as_echo "$ac_cs_config"; exit ;;
6140 --debug | --debu | --deb | --de | --d | -d )
6141 debug=: ;;
6142 --file | --fil | --fi | --f )
6143 $ac_shift
6144 case $ac_optarg in
6145 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6146 esac
6147 as_fn_append CONFIG_FILES " '$ac_optarg'"
6148 ac_need_defaults=false;;
6149 --header | --heade | --head | --hea )
6150 $ac_shift
6151 case $ac_optarg in
6152 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6153 esac
6154 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6155 ac_need_defaults=false;;
6156 --he | --h)
6157 # Conflict between --help and --header
6158 as_fn_error "ambiguous option: \`$1'
6159 Try \`$0 --help' for more information.";;
6160 --help | --hel | -h )
6161 $as_echo "$ac_cs_usage"; exit ;;
6162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6163 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6164 ac_cs_silent=: ;;
6166 # This is an error.
6167 -*) as_fn_error "unrecognized option: \`$1'
6168 Try \`$0 --help' for more information." ;;
6170 *) as_fn_append ac_config_targets " $1"
6171 ac_need_defaults=false ;;
6173 esac
6174 shift
6175 done
6177 ac_configure_extra_args=
6179 if $ac_cs_silent; then
6180 exec 6>/dev/null
6181 ac_configure_extra_args="$ac_configure_extra_args --silent"
6182 fi
6184 _ACEOF
6185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6186 if \$ac_cs_recheck; then
6187 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6188 shift
6189 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6190 CONFIG_SHELL='$SHELL'
6191 export CONFIG_SHELL
6192 exec "\$@"
6193 fi
6195 _ACEOF
6196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6197 exec 5>>config.log
6198 {
6199 echo
6200 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6201 ## Running $as_me. ##
6202 _ASBOX
6203 $as_echo "$ac_log"
6204 } >&5
6206 _ACEOF
6207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6208 #
6209 # INIT-COMMANDS
6210 #
6211 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6213 _ACEOF
6215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6217 # Handling of arguments.
6218 for ac_config_target in $ac_config_targets
6219 do
6220 case $ac_config_target in
6221 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6222 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6223 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6224 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6225 "src/base64/Makefile") CONFIG_FILES="$CONFIG_FILES src/base64/Makefile" ;;
6226 "src/md5/Makefile") CONFIG_FILES="$CONFIG_FILES src/md5/Makefile" ;;
6227 "src/libident/Makefile") CONFIG_FILES="$CONFIG_FILES src/libident/Makefile" ;;
6228 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
6230 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6231 esac
6232 done
6235 # If the user did not use the arguments to specify the items to instantiate,
6236 # then the envvar interface is used. Set only those that are not.
6237 # We use the long form for the default assignment because of an extremely
6238 # bizarre bug on SunOS 4.1.3.
6239 if $ac_need_defaults; then
6240 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6241 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6242 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6243 fi
6245 # Have a temporary directory for convenience. Make it in the build tree
6246 # simply because there is no reason against having it here, and in addition,
6247 # creating and moving files from /tmp can sometimes cause problems.
6248 # Hook for its removal unless debugging.
6249 # Note that there is a small window in which the directory will not be cleaned:
6250 # after its creation but before its name has been assigned to `$tmp'.
6251 $debug ||
6252 {
6253 tmp=
6254 trap 'exit_status=$?
6255 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6256 ' 0
6257 trap 'as_fn_exit 1' 1 2 13 15
6258 }
6259 # Create a (secure) tmp directory for tmp files.
6261 {
6262 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6263 test -n "$tmp" && test -d "$tmp"
6264 } ||
6265 {
6266 tmp=./conf$$-$RANDOM
6267 (umask 077 && mkdir "$tmp")
6268 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6270 # Set up the scripts for CONFIG_FILES section.
6271 # No need to generate them if there are no CONFIG_FILES.
6272 # This happens for instance with `./config.status config.h'.
6273 if test -n "$CONFIG_FILES"; then
6276 ac_cr=`echo X | tr X '\015'`
6277 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6278 # But we know of no other shell where ac_cr would be empty at this
6279 # point, so we can use a bashism as a fallback.
6280 if test "x$ac_cr" = x; then
6281 eval ac_cr=\$\'\\r\'
6282 fi
6283 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6284 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6285 ac_cs_awk_cr='\r'
6286 else
6287 ac_cs_awk_cr=$ac_cr
6288 fi
6290 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6291 _ACEOF
6294 {
6295 echo "cat >conf$$subs.awk <<_ACEOF" &&
6296 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6297 echo "_ACEOF"
6298 } >conf$$subs.sh ||
6299 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6300 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6301 ac_delim='%!_!# '
6302 for ac_last_try in false false false false false :; do
6303 . ./conf$$subs.sh ||
6304 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6306 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6307 if test $ac_delim_n = $ac_delim_num; then
6308 break
6309 elif $ac_last_try; then
6310 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6311 else
6312 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6313 fi
6314 done
6315 rm -f conf$$subs.sh
6317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6318 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6319 _ACEOF
6320 sed -n '
6321 h
6322 s/^/S["/; s/!.*/"]=/
6323 p
6324 g
6325 s/^[^!]*!//
6326 :repl
6327 t repl
6328 s/'"$ac_delim"'$//
6329 t delim
6330 :nl
6331 h
6332 s/\(.\{148\}\)..*/\1/
6333 t more1
6334 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6335 p
6336 n
6337 b repl
6338 :more1
6339 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6340 p
6341 g
6342 s/.\{148\}//
6343 t nl
6344 :delim
6345 h
6346 s/\(.\{148\}\)..*/\1/
6347 t more2
6348 s/["\\]/\\&/g; s/^/"/; s/$/"/
6349 p
6350 b
6351 :more2
6352 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6353 p
6354 g
6355 s/.\{148\}//
6356 t delim
6357 ' <conf$$subs.awk | sed '
6358 /^[^""]/{
6359 N
6360 s/\n//
6361 }
6362 ' >>$CONFIG_STATUS || ac_write_fail=1
6363 rm -f conf$$subs.awk
6364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6365 _ACAWK
6366 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6367 for (key in S) S_is_set[key] = 1
6368 FS = ""
6370 }
6371 {
6372 line = $ 0
6373 nfields = split(line, field, "@")
6374 substed = 0
6375 len = length(field[1])
6376 for (i = 2; i < nfields; i++) {
6377 key = field[i]
6378 keylen = length(key)
6379 if (S_is_set[key]) {
6380 value = S[key]
6381 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6382 len += length(value) + length(field[++i])
6383 substed = 1
6384 } else
6385 len += 1 + keylen
6386 }
6388 print line
6389 }
6391 _ACAWK
6392 _ACEOF
6393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6394 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6395 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6396 else
6397 cat
6398 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6399 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6400 _ACEOF
6402 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6403 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6404 # trailing colons and then remove the whole line if VPATH becomes empty
6405 # (actually we leave an empty line to preserve line numbers).
6406 if test "x$srcdir" = x.; then
6407 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6408 s/:*\$(srcdir):*/:/
6409 s/:*\${srcdir}:*/:/
6410 s/:*@srcdir@:*/:/
6411 s/^\([^=]*=[ ]*\):*/\1/
6412 s/:*$//
6413 s/^[^=]*=[ ]*$//
6414 }'
6415 fi
6417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6418 fi # test -n "$CONFIG_FILES"
6420 # Set up the scripts for CONFIG_HEADERS section.
6421 # No need to generate them if there are no CONFIG_HEADERS.
6422 # This happens for instance with `./config.status Makefile'.
6423 if test -n "$CONFIG_HEADERS"; then
6424 cat >"$tmp/defines.awk" <<\_ACAWK ||
6425 BEGIN {
6426 _ACEOF
6428 # Transform confdefs.h into an awk script `defines.awk', embedded as
6429 # here-document in config.status, that substitutes the proper values into
6430 # config.h.in to produce config.h.
6432 # Create a delimiter string that does not exist in confdefs.h, to ease
6433 # handling of long lines.
6434 ac_delim='%!_!# '
6435 for ac_last_try in false false :; do
6436 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6437 if test -z "$ac_t"; then
6438 break
6439 elif $ac_last_try; then
6440 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6441 else
6442 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6443 fi
6444 done
6446 # For the awk script, D is an array of macro values keyed by name,
6447 # likewise P contains macro parameters if any. Preserve backslash
6448 # newline sequences.
6450 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6451 sed -n '
6452 s/.\{148\}/&'"$ac_delim"'/g
6453 t rset
6454 :rset
6455 s/^[ ]*#[ ]*define[ ][ ]*/ /
6456 t def
6457 d
6458 :def
6459 s/\\$//
6460 t bsnl
6461 s/["\\]/\\&/g
6462 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6463 D["\1"]=" \3"/p
6464 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6465 d
6466 :bsnl
6467 s/["\\]/\\&/g
6468 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6469 D["\1"]=" \3\\\\\\n"\\/p
6470 t cont
6471 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6472 t cont
6473 d
6474 :cont
6475 n
6476 s/.\{148\}/&'"$ac_delim"'/g
6477 t clear
6478 :clear
6479 s/\\$//
6480 t bsnlc
6481 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6482 d
6483 :bsnlc
6484 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6485 b cont
6486 ' <confdefs.h | sed '
6487 s/'"$ac_delim"'/"\\\
6488 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6491 for (key in D) D_is_set[key] = 1
6492 FS = ""
6493 }
6494 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6495 line = \$ 0
6496 split(line, arg, " ")
6497 if (arg[1] == "#") {
6498 defundef = arg[2]
6499 mac1 = arg[3]
6500 } else {
6501 defundef = substr(arg[1], 2)
6502 mac1 = arg[2]
6503 }
6504 split(mac1, mac2, "(") #)
6505 macro = mac2[1]
6506 prefix = substr(line, 1, index(line, defundef) - 1)
6507 if (D_is_set[macro]) {
6508 # Preserve the white space surrounding the "#".
6509 print prefix "define", macro P[macro] D[macro]
6510 next
6511 } else {
6512 # Replace #undef with comments. This is necessary, for example,
6513 # in the case of _POSIX_SOURCE, which is predefined and required
6514 # on some systems where configure will not decide to define it.
6515 if (defundef == "undef") {
6516 print "/*", prefix defundef, macro, "*/"
6517 next
6518 }
6519 }
6520 }
6521 { print }
6522 _ACAWK
6523 _ACEOF
6524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6525 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6526 fi # test -n "$CONFIG_HEADERS"
6529 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6530 shift
6531 for ac_tag
6532 do
6533 case $ac_tag in
6534 :[FHLC]) ac_mode=$ac_tag; continue;;
6535 esac
6536 case $ac_mode$ac_tag in
6537 :[FHL]*:*);;
6538 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6539 :[FH]-) ac_tag=-:-;;
6540 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6541 esac
6542 ac_save_IFS=$IFS
6543 IFS=:
6544 set x $ac_tag
6545 IFS=$ac_save_IFS
6546 shift
6547 ac_file=$1
6548 shift
6550 case $ac_mode in
6551 :L) ac_source=$1;;
6552 :[FH])
6553 ac_file_inputs=
6554 for ac_f
6555 do
6556 case $ac_f in
6557 -) ac_f="$tmp/stdin";;
6558 *) # Look for the file first in the build tree, then in the source tree
6559 # (if the path is not absolute). The absolute path cannot be DOS-style,
6560 # because $ac_f cannot contain `:'.
6561 test -f "$ac_f" ||
6562 case $ac_f in
6563 [\\/$]*) false;;
6564 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6565 esac ||
6566 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6567 esac
6568 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6569 as_fn_append ac_file_inputs " '$ac_f'"
6570 done
6572 # Let's still pretend it is `configure' which instantiates (i.e., don't
6573 # use $as_me), people would be surprised to read:
6574 # /* config.h. Generated by config.status. */
6575 configure_input='Generated from '`
6576 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6577 `' by configure.'
6578 if test x"$ac_file" != x-; then
6579 configure_input="$ac_file. $configure_input"
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6581 $as_echo "$as_me: creating $ac_file" >&6;}
6582 fi
6583 # Neutralize special characters interpreted by sed in replacement strings.
6584 case $configure_input in #(
6585 *\&* | *\|* | *\\* )
6586 ac_sed_conf_input=`$as_echo "$configure_input" |
6587 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6588 *) ac_sed_conf_input=$configure_input;;
6589 esac
6591 case $ac_tag in
6592 *:-:* | *:-) cat >"$tmp/stdin" \
6593 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6594 esac
6595 ;;
6596 esac
6598 ac_dir=`$as_dirname -- "$ac_file" ||
6599 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6600 X"$ac_file" : 'X\(//\)[^/]' \| \
6601 X"$ac_file" : 'X\(//\)$' \| \
6602 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6603 $as_echo X"$ac_file" |
6604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6605 s//\1/
6606 q
6607 }
6608 /^X\(\/\/\)[^/].*/{
6609 s//\1/
6610 q
6611 }
6612 /^X\(\/\/\)$/{
6613 s//\1/
6614 q
6615 }
6616 /^X\(\/\).*/{
6617 s//\1/
6618 q
6619 }
6620 s/.*/./; q'`
6621 as_dir="$ac_dir"; as_fn_mkdir_p
6622 ac_builddir=.
6624 case "$ac_dir" in
6625 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6626 *)
6627 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6628 # A ".." for each directory in $ac_dir_suffix.
6629 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6630 case $ac_top_builddir_sub in
6631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6633 esac ;;
6634 esac
6635 ac_abs_top_builddir=$ac_pwd
6636 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6637 # for backward compatibility:
6638 ac_top_builddir=$ac_top_build_prefix
6640 case $srcdir in
6641 .) # We are building in place.
6642 ac_srcdir=.
6643 ac_top_srcdir=$ac_top_builddir_sub
6644 ac_abs_top_srcdir=$ac_pwd ;;
6645 [\\/]* | ?:[\\/]* ) # Absolute name.
6646 ac_srcdir=$srcdir$ac_dir_suffix;
6647 ac_top_srcdir=$srcdir
6648 ac_abs_top_srcdir=$srcdir ;;
6649 *) # Relative name.
6650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6651 ac_top_srcdir=$ac_top_build_prefix$srcdir
6652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6653 esac
6654 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6657 case $ac_mode in
6658 :F)
6659 #
6660 # CONFIG_FILE
6661 #
6663 case $INSTALL in
6664 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6665 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6666 esac
6667 ac_MKDIR_P=$MKDIR_P
6668 case $MKDIR_P in
6669 [\\/$]* | ?:[\\/]* ) ;;
6670 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6671 esac
6672 _ACEOF
6674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6675 # If the template does not know about datarootdir, expand it.
6676 # FIXME: This hack should be removed a few years after 2.60.
6677 ac_datarootdir_hack=; ac_datarootdir_seen=
6678 ac_sed_dataroot='
6679 /datarootdir/ {
6680 p
6681 q
6682 }
6683 /@datadir@/p
6684 /@docdir@/p
6685 /@infodir@/p
6686 /@localedir@/p
6687 /@mandir@/p'
6688 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6689 *datarootdir*) ac_datarootdir_seen=yes;;
6690 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6692 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6693 _ACEOF
6694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6695 ac_datarootdir_hack='
6696 s&@datadir@&$datadir&g
6697 s&@docdir@&$docdir&g
6698 s&@infodir@&$infodir&g
6699 s&@localedir@&$localedir&g
6700 s&@mandir@&$mandir&g
6701 s&\\\${datarootdir}&$datarootdir&g' ;;
6702 esac
6703 _ACEOF
6705 # Neutralize VPATH when `$srcdir' = `.'.
6706 # Shell code in configure.ac might set extrasub.
6707 # FIXME: do we really want to maintain this feature?
6708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6709 ac_sed_extra="$ac_vpsub
6710 $extrasub
6711 _ACEOF
6712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6713 :t
6714 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6715 s|@configure_input@|$ac_sed_conf_input|;t t
6716 s&@top_builddir@&$ac_top_builddir_sub&;t t
6717 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6718 s&@srcdir@&$ac_srcdir&;t t
6719 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6720 s&@top_srcdir@&$ac_top_srcdir&;t t
6721 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6722 s&@builddir@&$ac_builddir&;t t
6723 s&@abs_builddir@&$ac_abs_builddir&;t t
6724 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6725 s&@INSTALL@&$ac_INSTALL&;t t
6726 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6727 $ac_datarootdir_hack
6728 "
6729 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6730 || as_fn_error "could not create $ac_file" "$LINENO" 5
6732 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6733 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6734 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6736 which seems to be undefined. Please make sure it is defined." >&5
6737 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6738 which seems to be undefined. Please make sure it is defined." >&2;}
6740 rm -f "$tmp/stdin"
6741 case $ac_file in
6742 -) cat "$tmp/out" && rm -f "$tmp/out";;
6743 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6744 esac \
6745 || as_fn_error "could not create $ac_file" "$LINENO" 5
6746 ;;
6747 :H)
6748 #
6749 # CONFIG_HEADER
6750 #
6751 if test x"$ac_file" != x-; then
6752 {
6753 $as_echo "/* $configure_input */" \
6754 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6755 } >"$tmp/config.h" \
6756 || as_fn_error "could not create $ac_file" "$LINENO" 5
6757 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6759 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6760 else
6761 rm -f "$ac_file"
6762 mv "$tmp/config.h" "$ac_file" \
6763 || as_fn_error "could not create $ac_file" "$LINENO" 5
6764 fi
6765 else
6766 $as_echo "/* $configure_input */" \
6767 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6768 || as_fn_error "could not create -" "$LINENO" 5
6769 fi
6770 # Compute "$ac_file"'s index in $config_headers.
6771 _am_arg="$ac_file"
6772 _am_stamp_count=1
6773 for _am_header in $config_headers :; do
6774 case $_am_header in
6775 $_am_arg | $_am_arg:* )
6776 break ;;
6777 * )
6778 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6779 esac
6780 done
6781 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6782 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6783 X"$_am_arg" : 'X\(//\)[^/]' \| \
6784 X"$_am_arg" : 'X\(//\)$' \| \
6785 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6786 $as_echo X"$_am_arg" |
6787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6788 s//\1/
6789 q
6790 }
6791 /^X\(\/\/\)[^/].*/{
6792 s//\1/
6793 q
6794 }
6795 /^X\(\/\/\)$/{
6796 s//\1/
6797 q
6798 }
6799 /^X\(\/\).*/{
6800 s//\1/
6801 q
6802 }
6803 s/.*/./; q'`/stamp-h$_am_stamp_count
6804 ;;
6806 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6807 $as_echo "$as_me: executing $ac_file commands" >&6;}
6808 ;;
6809 esac
6812 case $ac_file$ac_mode in
6813 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6814 # Autoconf 2.62 quotes --file arguments for eval, but not when files
6815 # are listed without --file. Let's play safe and only enable the eval
6816 # if we detect the quoting.
6817 case $CONFIG_FILES in
6818 *\'*) eval set x "$CONFIG_FILES" ;;
6819 *) set x $CONFIG_FILES ;;
6820 esac
6821 shift
6822 for mf
6823 do
6824 # Strip MF so we end up with the name of the file.
6825 mf=`echo "$mf" | sed -e 's/:.*$//'`
6826 # Check whether this is an Automake generated Makefile or not.
6827 # We used to match only the files named `Makefile.in', but
6828 # some people rename them; so instead we look at the file content.
6829 # Grep'ing the first line is not enough: some people post-process
6830 # each Makefile.in and add a new line on top of each file to say so.
6831 # Grep'ing the whole file is not good either: AIX grep has a line
6832 # limit of 2048, but all sed's we know have understand at least 4000.
6833 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6834 dirpart=`$as_dirname -- "$mf" ||
6835 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6836 X"$mf" : 'X\(//\)[^/]' \| \
6837 X"$mf" : 'X\(//\)$' \| \
6838 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6839 $as_echo X"$mf" |
6840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6841 s//\1/
6842 q
6843 }
6844 /^X\(\/\/\)[^/].*/{
6845 s//\1/
6846 q
6847 }
6848 /^X\(\/\/\)$/{
6849 s//\1/
6850 q
6851 }
6852 /^X\(\/\).*/{
6853 s//\1/
6854 q
6855 }
6856 s/.*/./; q'`
6857 else
6858 continue
6859 fi
6860 # Extract the definition of DEPDIR, am__include, and am__quote
6861 # from the Makefile without running `make'.
6862 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6863 test -z "$DEPDIR" && continue
6864 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6865 test -z "am__include" && continue
6866 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6867 # When using ansi2knr, U may be empty or an underscore; expand it
6868 U=`sed -n 's/^U = //p' < "$mf"`
6869 # Find all dependency output files, they are included files with
6870 # $(DEPDIR) in their names. We invoke sed twice because it is the
6871 # simplest approach to changing $(DEPDIR) to its actual value in the
6872 # expansion.
6873 for file in `sed -n "
6874 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6875 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6876 # Make sure the directory exists.
6877 test -f "$dirpart/$file" && continue
6878 fdir=`$as_dirname -- "$file" ||
6879 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6880 X"$file" : 'X\(//\)[^/]' \| \
6881 X"$file" : 'X\(//\)$' \| \
6882 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6883 $as_echo X"$file" |
6884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6885 s//\1/
6886 q
6887 }
6888 /^X\(\/\/\)[^/].*/{
6889 s//\1/
6890 q
6891 }
6892 /^X\(\/\/\)$/{
6893 s//\1/
6894 q
6895 }
6896 /^X\(\/\).*/{
6897 s//\1/
6898 q
6899 }
6900 s/.*/./; q'`
6901 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6902 # echo "creating $dirpart/$file"
6903 echo '# dummy' > "$dirpart/$file"
6904 done
6905 done
6906 }
6907 ;;
6909 esac
6910 done # for ac_tag
6913 as_fn_exit 0
6914 _ACEOF
6915 ac_clean_files=$ac_clean_files_save
6917 test $ac_write_fail = 0 ||
6918 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6921 # configure is writing to config.log, and then calls config.status.
6922 # config.status does its own redirection, appending to config.log.
6923 # Unfortunately, on DOS this fails, as config.log is still kept open
6924 # by configure, so config.status won't be able to write to it; its
6925 # output is simply discarded. So we exec the FD to /dev/null,
6926 # effectively closing config.log, so it can be properly (re)opened and
6927 # appended to by config.status. When coming back to configure, we
6928 # need to make the FD available again.
6929 if test "$no_create" != yes; then
6930 ac_cs_success=:
6931 ac_config_status_args=
6932 test "$silent" = yes &&
6933 ac_config_status_args="$ac_config_status_args --quiet"
6934 exec 5>/dev/null
6935 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6936 exec 5>>config.log
6937 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6938 # would make configure fail if this is the last instruction.
6939 $ac_cs_success || as_fn_exit $?
6940 fi
6941 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6943 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6944 fi