masqmail

view configure @ 59:941413084f56

updated docs; moved files around updated the INSTALL file with content from the old website moved *agenda* and *ipaq files to docs (are they still relevant?)
author meillo@marmaro.de
date Sat, 29 May 2010 22:53:42 +0200
parents 185ba6c0e6f0
children 66d47cc69611
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.2.23.
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.2.23'
556 PACKAGE_STRING='masqmail 0.2.23'
557 PACKAGE_BUGREPORT='meillo@marmaro.de'
558 PACKAGE_URL=''
560 ac_unique_file="src/masqmail.c"
561 ac_default_prefix=/usr
562 # Factoring default headers for most tests.
563 ac_includes_default="\
564 #include <stdio.h>
565 #ifdef HAVE_SYS_TYPES_H
566 # include <sys/types.h>
567 #endif
568 #ifdef HAVE_SYS_STAT_H
569 # include <sys/stat.h>
570 #endif
571 #ifdef STDC_HEADERS
572 # include <stdlib.h>
573 # include <stddef.h>
574 #else
575 # ifdef HAVE_STDLIB_H
576 # include <stdlib.h>
577 # endif
578 #endif
579 #ifdef HAVE_STRING_H
580 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 # include <memory.h>
582 # endif
583 # include <string.h>
584 #endif
585 #ifdef HAVE_STRINGS_H
586 # include <strings.h>
587 #endif
588 #ifdef HAVE_INTTYPES_H
589 # include <inttypes.h>
590 #endif
591 #ifdef HAVE_STDINT_H
592 # include <stdint.h>
593 #endif
594 #ifdef HAVE_UNISTD_H
595 # include <unistd.h>
596 #endif"
598 ac_subst_vars='am__EXEEXT_FALSE
599 am__EXEEXT_TRUE
600 LTLIBOBJS
601 LIBOBJS
602 with_confdir
603 with_spooldir
604 with_logdir
605 USE_LIBLOCKFILE
606 LOCKFILE_LIBS
607 IDENT_LIBS
608 has_ident
609 MD5_LIBS
610 BASE64_LIBS
611 with_group
612 with_user
613 RESOLV_LIBS
614 GLIB_LIBS
615 GLIB_CFLAGS
616 PKG_CONFIG_LIBDIR
617 PKG_CONFIG_PATH
618 PKG_CONFIG
619 RANLIB
620 EGREP
621 GREP
622 CPP
623 am__fastdepCC_FALSE
624 am__fastdepCC_TRUE
625 CCDEPMODE
626 AMDEPBACKSLASH
627 AMDEP_FALSE
628 AMDEP_TRUE
629 am__quote
630 am__include
631 DEPDIR
632 OBJEXT
633 EXEEXT
634 ac_ct_CC
635 CPPFLAGS
636 LDFLAGS
637 CFLAGS
638 CC
639 am__untar
640 am__tar
641 AMTAR
642 am__leading_dot
643 SET_MAKE
644 AWK
645 mkdir_p
646 MKDIR_P
647 INSTALL_STRIP_PROGRAM
648 STRIP
649 install_sh
650 MAKEINFO
651 AUTOHEADER
652 AUTOMAKE
653 AUTOCONF
654 ACLOCAL
655 VERSION
656 PACKAGE
657 CYGPATH_W
658 am__isrc
659 INSTALL_DATA
660 INSTALL_SCRIPT
661 INSTALL_PROGRAM
662 target_alias
663 host_alias
664 build_alias
665 LIBS
666 ECHO_T
667 ECHO_N
668 ECHO_C
669 DEFS
670 mandir
671 localedir
672 libdir
673 psdir
674 pdfdir
675 dvidir
676 htmldir
677 infodir
678 docdir
679 oldincludedir
680 includedir
681 localstatedir
682 sharedstatedir
683 sysconfdir
684 datadir
685 datarootdir
686 libexecdir
687 sbindir
688 bindir
689 program_transform_name
690 prefix
691 exec_prefix
692 PACKAGE_URL
693 PACKAGE_BUGREPORT
694 PACKAGE_STRING
695 PACKAGE_VERSION
696 PACKAGE_TARNAME
697 PACKAGE_NAME
698 PATH_SEPARATOR
699 SHELL'
700 ac_subst_files=''
701 ac_user_opts='
702 enable_option_checking
703 enable_dependency_tracking
704 enable_resolver
705 with_user
706 with_group
707 enable_debug
708 with_glib_static
709 enable_smtp_server
710 enable_pop3
711 enable_auth
712 enable_maildir
713 with_libcrypto
714 enable_ident
715 enable_mserver
716 with_liblockfile
717 with_logdir
718 with_spooldir
719 with_confdir
720 '
721 ac_precious_vars='build_alias
722 host_alias
723 target_alias
724 CC
725 CFLAGS
726 LDFLAGS
727 LIBS
728 CPPFLAGS
729 CPP
730 PKG_CONFIG
731 PKG_CONFIG_PATH
732 PKG_CONFIG_LIBDIR
733 GLIB_CFLAGS
734 GLIB_LIBS'
737 # Initialize some variables set by options.
738 ac_init_help=
739 ac_init_version=false
740 ac_unrecognized_opts=
741 ac_unrecognized_sep=
742 # The variables have the same names as the options, with
743 # dashes changed to underlines.
744 cache_file=/dev/null
745 exec_prefix=NONE
746 no_create=
747 no_recursion=
748 prefix=NONE
749 program_prefix=NONE
750 program_suffix=NONE
751 program_transform_name=s,x,x,
752 silent=
753 site=
754 srcdir=
755 verbose=
756 x_includes=NONE
757 x_libraries=NONE
759 # Installation directory options.
760 # These are left unexpanded so users can "make install exec_prefix=/foo"
761 # and all the variables that are supposed to be based on exec_prefix
762 # by default will actually change.
763 # Use braces instead of parens because sh, perl, etc. also accept them.
764 # (The list follows the same order as the GNU Coding Standards.)
765 bindir='${exec_prefix}/bin'
766 sbindir='${exec_prefix}/sbin'
767 libexecdir='${exec_prefix}/libexec'
768 datarootdir='${prefix}/share'
769 datadir='${datarootdir}'
770 sysconfdir='${prefix}/etc'
771 sharedstatedir='${prefix}/com'
772 localstatedir='${prefix}/var'
773 includedir='${prefix}/include'
774 oldincludedir='/usr/include'
775 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
776 infodir='${datarootdir}/info'
777 htmldir='${docdir}'
778 dvidir='${docdir}'
779 pdfdir='${docdir}'
780 psdir='${docdir}'
781 libdir='${exec_prefix}/lib'
782 localedir='${datarootdir}/locale'
783 mandir='${datarootdir}/man'
785 ac_prev=
786 ac_dashdash=
787 for ac_option
788 do
789 # If the previous option needs an argument, assign it.
790 if test -n "$ac_prev"; then
791 eval $ac_prev=\$ac_option
792 ac_prev=
793 continue
794 fi
796 case $ac_option in
797 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
798 *) ac_optarg=yes ;;
799 esac
801 # Accept the important Cygnus configure options, so we can diagnose typos.
803 case $ac_dashdash$ac_option in
804 --)
805 ac_dashdash=yes ;;
807 -bindir | --bindir | --bindi | --bind | --bin | --bi)
808 ac_prev=bindir ;;
809 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
810 bindir=$ac_optarg ;;
812 -build | --build | --buil | --bui | --bu)
813 ac_prev=build_alias ;;
814 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
815 build_alias=$ac_optarg ;;
817 -cache-file | --cache-file | --cache-fil | --cache-fi \
818 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
819 ac_prev=cache_file ;;
820 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
821 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
822 cache_file=$ac_optarg ;;
824 --config-cache | -C)
825 cache_file=config.cache ;;
827 -datadir | --datadir | --datadi | --datad)
828 ac_prev=datadir ;;
829 -datadir=* | --datadir=* | --datadi=* | --datad=*)
830 datadir=$ac_optarg ;;
832 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
833 | --dataroo | --dataro | --datar)
834 ac_prev=datarootdir ;;
835 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
836 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
837 datarootdir=$ac_optarg ;;
839 -disable-* | --disable-*)
840 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
843 as_fn_error "invalid feature name: $ac_useropt"
844 ac_useropt_orig=$ac_useropt
845 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
846 case $ac_user_opts in
847 *"
848 "enable_$ac_useropt"
849 "*) ;;
850 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
851 ac_unrecognized_sep=', ';;
852 esac
853 eval enable_$ac_useropt=no ;;
855 -docdir | --docdir | --docdi | --doc | --do)
856 ac_prev=docdir ;;
857 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
858 docdir=$ac_optarg ;;
860 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
861 ac_prev=dvidir ;;
862 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
863 dvidir=$ac_optarg ;;
865 -enable-* | --enable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
873 *"
874 "enable_$ac_useropt"
875 "*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=\$ac_optarg ;;
881 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
882 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
883 | --exec | --exe | --ex)
884 ac_prev=exec_prefix ;;
885 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
886 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
887 | --exec=* | --exe=* | --ex=*)
888 exec_prefix=$ac_optarg ;;
890 -gas | --gas | --ga | --g)
891 # Obsolete; use --with-gas.
892 with_gas=yes ;;
894 -help | --help | --hel | --he | -h)
895 ac_init_help=long ;;
896 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
897 ac_init_help=recursive ;;
898 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
899 ac_init_help=short ;;
901 -host | --host | --hos | --ho)
902 ac_prev=host_alias ;;
903 -host=* | --host=* | --hos=* | --ho=*)
904 host_alias=$ac_optarg ;;
906 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
907 ac_prev=htmldir ;;
908 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
909 | --ht=*)
910 htmldir=$ac_optarg ;;
912 -includedir | --includedir | --includedi | --included | --include \
913 | --includ | --inclu | --incl | --inc)
914 ac_prev=includedir ;;
915 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
916 | --includ=* | --inclu=* | --incl=* | --inc=*)
917 includedir=$ac_optarg ;;
919 -infodir | --infodir | --infodi | --infod | --info | --inf)
920 ac_prev=infodir ;;
921 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
922 infodir=$ac_optarg ;;
924 -libdir | --libdir | --libdi | --libd)
925 ac_prev=libdir ;;
926 -libdir=* | --libdir=* | --libdi=* | --libd=*)
927 libdir=$ac_optarg ;;
929 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
930 | --libexe | --libex | --libe)
931 ac_prev=libexecdir ;;
932 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
933 | --libexe=* | --libex=* | --libe=*)
934 libexecdir=$ac_optarg ;;
936 -localedir | --localedir | --localedi | --localed | --locale)
937 ac_prev=localedir ;;
938 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
939 localedir=$ac_optarg ;;
941 -localstatedir | --localstatedir | --localstatedi | --localstated \
942 | --localstate | --localstat | --localsta | --localst | --locals)
943 ac_prev=localstatedir ;;
944 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
945 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
946 localstatedir=$ac_optarg ;;
948 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
949 ac_prev=mandir ;;
950 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
951 mandir=$ac_optarg ;;
953 -nfp | --nfp | --nf)
954 # Obsolete; use --without-fp.
955 with_fp=no ;;
957 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
958 | --no-cr | --no-c | -n)
959 no_create=yes ;;
961 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
962 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
963 no_recursion=yes ;;
965 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
966 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
967 | --oldin | --oldi | --old | --ol | --o)
968 ac_prev=oldincludedir ;;
969 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
970 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
971 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
972 oldincludedir=$ac_optarg ;;
974 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
975 ac_prev=prefix ;;
976 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
977 prefix=$ac_optarg ;;
979 -program-prefix | --program-prefix | --program-prefi | --program-pref \
980 | --program-pre | --program-pr | --program-p)
981 ac_prev=program_prefix ;;
982 -program-prefix=* | --program-prefix=* | --program-prefi=* \
983 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
984 program_prefix=$ac_optarg ;;
986 -program-suffix | --program-suffix | --program-suffi | --program-suff \
987 | --program-suf | --program-su | --program-s)
988 ac_prev=program_suffix ;;
989 -program-suffix=* | --program-suffix=* | --program-suffi=* \
990 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
991 program_suffix=$ac_optarg ;;
993 -program-transform-name | --program-transform-name \
994 | --program-transform-nam | --program-transform-na \
995 | --program-transform-n | --program-transform- \
996 | --program-transform | --program-transfor \
997 | --program-transfo | --program-transf \
998 | --program-trans | --program-tran \
999 | --progr-tra | --program-tr | --program-t)
1000 ac_prev=program_transform_name ;;
1001 -program-transform-name=* | --program-transform-name=* \
1002 | --program-transform-nam=* | --program-transform-na=* \
1003 | --program-transform-n=* | --program-transform-=* \
1004 | --program-transform=* | --program-transfor=* \
1005 | --program-transfo=* | --program-transf=* \
1006 | --program-trans=* | --program-tran=* \
1007 | --progr-tra=* | --program-tr=* | --program-t=*)
1008 program_transform_name=$ac_optarg ;;
1010 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1011 ac_prev=pdfdir ;;
1012 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1013 pdfdir=$ac_optarg ;;
1015 -psdir | --psdir | --psdi | --psd | --ps)
1016 ac_prev=psdir ;;
1017 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1018 psdir=$ac_optarg ;;
1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021 | -silent | --silent | --silen | --sile | --sil)
1022 silent=yes ;;
1024 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1025 ac_prev=sbindir ;;
1026 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1027 | --sbi=* | --sb=*)
1028 sbindir=$ac_optarg ;;
1030 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1031 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1032 | --sharedst | --shareds | --shared | --share | --shar \
1033 | --sha | --sh)
1034 ac_prev=sharedstatedir ;;
1035 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1036 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1037 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1038 | --sha=* | --sh=*)
1039 sharedstatedir=$ac_optarg ;;
1041 -site | --site | --sit)
1042 ac_prev=site ;;
1043 -site=* | --site=* | --sit=*)
1044 site=$ac_optarg ;;
1046 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1047 ac_prev=srcdir ;;
1048 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1049 srcdir=$ac_optarg ;;
1051 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1052 | --syscon | --sysco | --sysc | --sys | --sy)
1053 ac_prev=sysconfdir ;;
1054 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1055 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1056 sysconfdir=$ac_optarg ;;
1058 -target | --target | --targe | --targ | --tar | --ta | --t)
1059 ac_prev=target_alias ;;
1060 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1061 target_alias=$ac_optarg ;;
1063 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1064 verbose=yes ;;
1066 -version | --version | --versio | --versi | --vers | -V)
1067 ac_init_version=: ;;
1069 -with-* | --with-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error "invalid package name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1077 *"
1078 "with_$ac_useropt"
1079 "*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval with_$ac_useropt=\$ac_optarg ;;
1085 -without-* | --without-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error "invalid package name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1093 *"
1094 "with_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval with_$ac_useropt=no ;;
1101 --x)
1102 # Obsolete; use --with-x.
1103 with_x=yes ;;
1105 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1106 | --x-incl | --x-inc | --x-in | --x-i)
1107 ac_prev=x_includes ;;
1108 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1109 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1110 x_includes=$ac_optarg ;;
1112 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1113 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1114 ac_prev=x_libraries ;;
1115 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1116 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1117 x_libraries=$ac_optarg ;;
1119 -*) as_fn_error "unrecognized option: \`$ac_option'
1120 Try \`$0 --help' for more information."
1121 ;;
1123 *=*)
1124 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1125 # Reject names that are not valid shell variable names.
1126 case $ac_envvar in #(
1127 '' | [0-9]* | *[!_$as_cr_alnum]* )
1128 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1129 esac
1130 eval $ac_envvar=\$ac_optarg
1131 export $ac_envvar ;;
1133 *)
1134 # FIXME: should be removed in autoconf 3.0.
1135 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1136 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1137 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1138 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1139 ;;
1141 esac
1142 done
1144 if test -n "$ac_prev"; then
1145 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1146 as_fn_error "missing argument to $ac_option"
1147 fi
1149 if test -n "$ac_unrecognized_opts"; then
1150 case $enable_option_checking in
1151 no) ;;
1152 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1153 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1154 esac
1155 fi
1157 # Check all directory arguments for consistency.
1158 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1159 datadir sysconfdir sharedstatedir localstatedir includedir \
1160 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1161 libdir localedir mandir
1162 do
1163 eval ac_val=\$$ac_var
1164 # Remove trailing slashes.
1165 case $ac_val in
1166 */ )
1167 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1168 eval $ac_var=\$ac_val;;
1169 esac
1170 # Be sure to have absolute directory names.
1171 case $ac_val in
1172 [\\/$]* | ?:[\\/]* ) continue;;
1173 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1174 esac
1175 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1176 done
1178 # There might be people who depend on the old broken behavior: `$host'
1179 # used to hold the argument of --host etc.
1180 # FIXME: To remove some day.
1181 build=$build_alias
1182 host=$host_alias
1183 target=$target_alias
1185 # FIXME: To remove some day.
1186 if test "x$host_alias" != x; then
1187 if test "x$build_alias" = x; then
1188 cross_compiling=maybe
1189 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1190 If a cross compiler is detected then cross compile mode will be used." >&2
1191 elif test "x$build_alias" != "x$host_alias"; then
1192 cross_compiling=yes
1193 fi
1194 fi
1196 ac_tool_prefix=
1197 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1199 test "$silent" = yes && exec 6>/dev/null
1202 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di=`ls -di .` &&
1204 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205 as_fn_error "working directory cannot be determined"
1206 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1207 as_fn_error "pwd does not report name of working directory"
1210 # Find the source files, if location was not specified.
1211 if test -z "$srcdir"; then
1212 ac_srcdir_defaulted=yes
1213 # Try the directory containing this script, then the parent directory.
1214 ac_confdir=`$as_dirname -- "$as_myself" ||
1215 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1216 X"$as_myself" : 'X\(//\)[^/]' \| \
1217 X"$as_myself" : 'X\(//\)$' \| \
1218 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1219 $as_echo X"$as_myself" |
1220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1221 s//\1/
1224 /^X\(\/\/\)[^/].*/{
1225 s//\1/
1228 /^X\(\/\/\)$/{
1229 s//\1/
1232 /^X\(\/\).*/{
1233 s//\1/
1236 s/.*/./; q'`
1237 srcdir=$ac_confdir
1238 if test ! -r "$srcdir/$ac_unique_file"; then
1239 srcdir=..
1240 fi
1241 else
1242 ac_srcdir_defaulted=no
1243 fi
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1245 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1246 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1247 fi
1248 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1249 ac_abs_confdir=`(
1250 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1251 pwd)`
1252 # When building in place, set srcdir=.
1253 if test "$ac_abs_confdir" = "$ac_pwd"; then
1254 srcdir=.
1255 fi
1256 # Remove unnecessary trailing slashes from srcdir.
1257 # Double slashes in file names in object file debugging info
1258 # mess up M-x gdb in Emacs.
1259 case $srcdir in
1260 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1261 esac
1262 for ac_var in $ac_precious_vars; do
1263 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1264 eval ac_env_${ac_var}_value=\$${ac_var}
1265 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1266 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1267 done
1270 # Report the --help message.
1272 if test "$ac_init_help" = "long"; then
1273 # Omit some internal or obsolete options to make the list less imposing.
1274 # This message is too long to be a string in the A/UX 3.1 sh.
1275 cat <<_ACEOF
1276 \`configure' configures masqmail 0.2.23 to adapt to many kinds of systems.
1278 Usage: $0 [OPTION]... [VAR=VALUE]...
1280 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1281 VAR=VALUE. See below for descriptions of some of the useful variables.
1283 Defaults for the options are specified in brackets.
1285 Configuration:
1286 -h, --help display this help and exit
1287 --help=short display options specific to this package
1288 --help=recursive display the short help of all the included packages
1289 -V, --version display version information and exit
1290 -q, --quiet, --silent do not print \`checking...' messages
1291 --cache-file=FILE cache test results in FILE [disabled]
1292 -C, --config-cache alias for \`--cache-file=config.cache'
1293 -n, --no-create do not create output files
1294 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1296 Installation directories:
1297 --prefix=PREFIX install architecture-independent files in PREFIX
1298 [$ac_default_prefix]
1299 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1300 [PREFIX]
1302 By default, \`make install' will install all the files in
1303 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1304 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1305 for instance \`--prefix=\$HOME'.
1307 For better control, use the options below.
1309 Fine tuning of the installation directories:
1310 --bindir=DIR user executables [EPREFIX/bin]
1311 --sbindir=DIR system admin executables [EPREFIX/sbin]
1312 --libexecdir=DIR program executables [EPREFIX/libexec]
1313 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1314 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1315 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1316 --libdir=DIR object code libraries [EPREFIX/lib]
1317 --includedir=DIR C header files [PREFIX/include]
1318 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1319 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1320 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1321 --infodir=DIR info documentation [DATAROOTDIR/info]
1322 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1323 --mandir=DIR man documentation [DATAROOTDIR/man]
1324 --docdir=DIR documentation root [DATAROOTDIR/doc/masqmail]
1325 --htmldir=DIR html documentation [DOCDIR]
1326 --dvidir=DIR dvi documentation [DOCDIR]
1327 --pdfdir=DIR pdf documentation [DOCDIR]
1328 --psdir=DIR ps documentation [DOCDIR]
1329 _ACEOF
1331 cat <<\_ACEOF
1333 Program names:
1334 --program-prefix=PREFIX prepend PREFIX to installed program names
1335 --program-suffix=SUFFIX append SUFFIX to installed program names
1336 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1337 _ACEOF
1338 fi
1340 if test -n "$ac_init_help"; then
1341 case $ac_init_help in
1342 short | recursive ) echo "Configuration of masqmail 0.2.23:";;
1343 esac
1344 cat <<\_ACEOF
1346 Optional Features:
1347 --disable-option-checking ignore unrecognized --enable/--with options
1348 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1349 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1350 --disable-dependency-tracking speeds up one-time build
1351 --enable-dependency-tracking do not reject slow dependency extractors
1352 --disable-resolver disable resolver support
1353 --disable-debug disable debugging
1354 --disable-smtp-server disable smtp server support
1355 --disable-pop3 disable pop3 support
1356 --enable-auth enable AUTH (RFC 2554) client support
1357 --enable-maildir enable qmail style maildir support
1358 --enable-ident enable ident (RFC 1413) support
1359 --enable-mserver enable mserver support
1361 Optional Packages:
1362 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1363 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1364 --with-user=USER set user mail
1365 --with-group=GROUP set group trusted
1366 --with-glib-static=path link glib statically (path mandatory!)
1367 --with-libcrypto use libcrypto
1368 --with-liblockfile use liblock (for Debian)
1369 --with-logdir=DIR set log directory /var/masqmail
1370 --with-spooldir=DIR set spool directory /var/spool/masqmail
1371 --with-confdir directory for configuration /etc/masqmail
1373 Some influential environment variables:
1374 CC C compiler command
1375 CFLAGS C compiler flags
1376 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1377 nonstandard directory <lib dir>
1378 LIBS libraries to pass to the linker, e.g. -l<library>
1379 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1380 you have headers in a nonstandard directory <include dir>
1381 CPP C preprocessor
1382 PKG_CONFIG path to pkg-config utility
1383 PKG_CONFIG_PATH
1384 directories to add to pkg-config's search path
1385 PKG_CONFIG_LIBDIR
1386 path overriding pkg-config's built-in search path
1387 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1388 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1390 Use these variables to override the choices made by `configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1393 Report bugs to <meillo@marmaro.de>.
1394 _ACEOF
1395 ac_status=$?
1396 fi
1398 if test "$ac_init_help" = "recursive"; then
1399 # If there are subdirs, report their specific --help.
1400 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1401 test -d "$ac_dir" ||
1402 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1403 continue
1404 ac_builddir=.
1406 case "$ac_dir" in
1407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1408 *)
1409 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1410 # A ".." for each directory in $ac_dir_suffix.
1411 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1412 case $ac_top_builddir_sub in
1413 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1415 esac ;;
1416 esac
1417 ac_abs_top_builddir=$ac_pwd
1418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1419 # for backward compatibility:
1420 ac_top_builddir=$ac_top_build_prefix
1422 case $srcdir in
1423 .) # We are building in place.
1424 ac_srcdir=.
1425 ac_top_srcdir=$ac_top_builddir_sub
1426 ac_abs_top_srcdir=$ac_pwd ;;
1427 [\\/]* | ?:[\\/]* ) # Absolute name.
1428 ac_srcdir=$srcdir$ac_dir_suffix;
1429 ac_top_srcdir=$srcdir
1430 ac_abs_top_srcdir=$srcdir ;;
1431 *) # Relative name.
1432 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1433 ac_top_srcdir=$ac_top_build_prefix$srcdir
1434 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1435 esac
1436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1438 cd "$ac_dir" || { ac_status=$?; continue; }
1439 # Check for guested configure.
1440 if test -f "$ac_srcdir/configure.gnu"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1443 elif test -f "$ac_srcdir/configure"; then
1444 echo &&
1445 $SHELL "$ac_srcdir/configure" --help=recursive
1446 else
1447 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1448 fi || ac_status=$?
1449 cd "$ac_pwd" || { ac_status=$?; break; }
1450 done
1451 fi
1453 test -n "$ac_init_help" && exit $ac_status
1454 if $ac_init_version; then
1455 cat <<\_ACEOF
1456 masqmail configure 0.2.23
1457 generated by GNU Autoconf 2.65
1459 Copyright (C) 2009 Free Software Foundation, Inc.
1460 This configure script is free software; the Free Software Foundation
1461 gives unlimited permission to copy, distribute and modify it.
1462 _ACEOF
1463 exit
1464 fi
1466 ## ------------------------ ##
1467 ## Autoconf initialization. ##
1468 ## ------------------------ ##
1470 # ac_fn_c_try_compile LINENO
1471 # --------------------------
1472 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1473 ac_fn_c_try_compile ()
1475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1476 rm -f conftest.$ac_objext
1477 if { { ac_try="$ac_compile"
1478 case "(($ac_try" in
1479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1480 *) ac_try_echo=$ac_try;;
1481 esac
1482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1483 $as_echo "$ac_try_echo"; } >&5
1484 (eval "$ac_compile") 2>conftest.err
1485 ac_status=$?
1486 if test -s conftest.err; then
1487 grep -v '^ *+' conftest.err >conftest.er1
1488 cat conftest.er1 >&5
1489 mv -f conftest.er1 conftest.err
1490 fi
1491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1492 test $ac_status = 0; } && {
1493 test -z "$ac_c_werror_flag" ||
1494 test ! -s conftest.err
1495 } && test -s conftest.$ac_objext; then :
1496 ac_retval=0
1497 else
1498 $as_echo "$as_me: failed program was:" >&5
1499 sed 's/^/| /' conftest.$ac_ext >&5
1501 ac_retval=1
1502 fi
1503 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1504 as_fn_set_status $ac_retval
1506 } # ac_fn_c_try_compile
1508 # ac_fn_c_try_link LINENO
1509 # -----------------------
1510 # Try to link conftest.$ac_ext, and return whether this succeeded.
1511 ac_fn_c_try_link ()
1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514 rm -f conftest.$ac_objext conftest$ac_exeext
1515 if { { ac_try="$ac_link"
1516 case "(($ac_try" in
1517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518 *) ac_try_echo=$ac_try;;
1519 esac
1520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521 $as_echo "$ac_try_echo"; } >&5
1522 (eval "$ac_link") 2>conftest.err
1523 ac_status=$?
1524 if test -s conftest.err; then
1525 grep -v '^ *+' conftest.err >conftest.er1
1526 cat conftest.er1 >&5
1527 mv -f conftest.er1 conftest.err
1528 fi
1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530 test $ac_status = 0; } && {
1531 test -z "$ac_c_werror_flag" ||
1532 test ! -s conftest.err
1533 } && test -s conftest$ac_exeext && {
1534 test "$cross_compiling" = yes ||
1535 $as_test_x conftest$ac_exeext
1536 }; then :
1537 ac_retval=0
1538 else
1539 $as_echo "$as_me: failed program was:" >&5
1540 sed 's/^/| /' conftest.$ac_ext >&5
1542 ac_retval=1
1543 fi
1544 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1545 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1546 # interfere with the next link command; also delete a directory that is
1547 # left behind by Apple's compiler. We do this before executing the actions.
1548 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1549 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1550 as_fn_set_status $ac_retval
1552 } # ac_fn_c_try_link
1554 # ac_fn_c_try_cpp LINENO
1555 # ----------------------
1556 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_cpp ()
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 if { { ac_try="$ac_cpp conftest.$ac_ext"
1561 case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1568 ac_status=$?
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1573 fi
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } >/dev/null && {
1576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 }; then :
1579 ac_retval=0
1580 else
1581 $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1584 ac_retval=1
1585 fi
1586 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1587 as_fn_set_status $ac_retval
1589 } # ac_fn_c_try_cpp
1591 # ac_fn_c_try_run LINENO
1592 # ----------------------
1593 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1594 # that executables *can* be run.
1595 ac_fn_c_try_run ()
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 if { { ac_try="$ac_link"
1599 case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_link") 2>&5
1606 ac_status=$?
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1609 { { case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_try") 2>&5
1616 ac_status=$?
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; }; }; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: program exited with status $ac_status" >&5
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1625 ac_retval=$ac_status
1626 fi
1627 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1628 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1629 as_fn_set_status $ac_retval
1631 } # ac_fn_c_try_run
1633 # ac_fn_c_check_func LINENO FUNC VAR
1634 # ----------------------------------
1635 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1636 ac_fn_c_check_func ()
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640 $as_echo_n "checking for $2... " >&6; }
1641 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1642 $as_echo_n "(cached) " >&6
1643 else
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h. */
1646 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1648 #define $2 innocuous_$2
1650 /* System header to define __stub macros and hopefully few prototypes,
1651 which can conflict with char $2 (); below.
1652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1653 <limits.h> exists even on freestanding compilers. */
1655 #ifdef __STDC__
1656 # include <limits.h>
1657 #else
1658 # include <assert.h>
1659 #endif
1661 #undef $2
1663 /* Override any GCC internal prototype to avoid an error.
1664 Use char because int might match the return type of a GCC
1665 builtin and then its argument prototype would still apply. */
1666 #ifdef __cplusplus
1667 extern "C"
1668 #endif
1669 char $2 ();
1670 /* The GNU C library defines this for functions which it implements
1671 to always fail with ENOSYS. Some functions are actually named
1672 something starting with __ and the normal name is an alias. */
1673 #if defined __stub_$2 || defined __stub___$2
1674 choke me
1675 #endif
1677 int
1678 main ()
1680 return $2 ();
1682 return 0;
1684 _ACEOF
1685 if ac_fn_c_try_link "$LINENO"; then :
1686 eval "$3=yes"
1687 else
1688 eval "$3=no"
1689 fi
1690 rm -f core conftest.err conftest.$ac_objext \
1691 conftest$ac_exeext conftest.$ac_ext
1692 fi
1693 eval ac_res=\$$3
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 $as_echo "$ac_res" >&6; }
1696 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698 } # ac_fn_c_check_func
1700 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1701 # -------------------------------------------------------
1702 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1703 # the include files in INCLUDES and setting the cache variable VAR
1704 # accordingly.
1705 ac_fn_c_check_header_mongrel ()
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 $as_echo_n "checking for $2... " >&6; }
1711 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1712 $as_echo_n "(cached) " >&6
1713 fi
1714 eval ac_res=\$$3
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1717 else
1718 # Is the header compilable?
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1720 $as_echo_n "checking $2 usability... " >&6; }
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1723 $4
1724 #include <$2>
1725 _ACEOF
1726 if ac_fn_c_try_compile "$LINENO"; then :
1727 ac_header_compiler=yes
1728 else
1729 ac_header_compiler=no
1730 fi
1731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1733 $as_echo "$ac_header_compiler" >&6; }
1735 # Is the header present?
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1737 $as_echo_n "checking $2 presence... " >&6; }
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1740 #include <$2>
1741 _ACEOF
1742 if ac_fn_c_try_cpp "$LINENO"; then :
1743 ac_header_preproc=yes
1744 else
1745 ac_header_preproc=no
1746 fi
1747 rm -f conftest.err conftest.$ac_ext
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1749 $as_echo "$ac_header_preproc" >&6; }
1751 # So? What about this header?
1752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1753 yes:no: )
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1755 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1757 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1758 ;;
1759 no:yes:* )
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1761 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1763 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1765 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1767 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1769 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1770 ( cat <<\_ASBOX
1771 ## -------------------------------- ##
1772 ## Report this to meillo@marmaro.de ##
1773 ## -------------------------------- ##
1774 _ASBOX
1775 ) | sed "s/^/$as_me: WARNING: /" >&2
1776 ;;
1777 esac
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1781 $as_echo_n "(cached) " >&6
1782 else
1783 eval "$3=\$ac_header_compiler"
1784 fi
1785 eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 fi
1789 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791 } # ac_fn_c_check_header_mongrel
1793 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1794 # -------------------------------------------------------
1795 # Tests whether HEADER exists and can be compiled using the include files in
1796 # INCLUDES, setting the cache variable VAR accordingly.
1797 ac_fn_c_check_header_compile ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1803 $as_echo_n "(cached) " >&6
1804 else
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 $4
1808 #include <$2>
1809 _ACEOF
1810 if ac_fn_c_try_compile "$LINENO"; then :
1811 eval "$3=yes"
1812 else
1813 eval "$3=no"
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 fi
1817 eval ac_res=\$$3
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1822 } # ac_fn_c_check_header_compile
1824 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1825 # -------------------------------------------
1826 # Tests whether TYPE exists after having included INCLUDES, setting cache
1827 # variable VAR accordingly.
1828 ac_fn_c_check_type ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1834 $as_echo_n "(cached) " >&6
1835 else
1836 eval "$3=no"
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 $4
1840 int
1841 main ()
1843 if (sizeof ($2))
1844 return 0;
1846 return 0;
1848 _ACEOF
1849 if ac_fn_c_try_compile "$LINENO"; then :
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1852 $4
1853 int
1854 main ()
1856 if (sizeof (($2)))
1857 return 0;
1859 return 0;
1861 _ACEOF
1862 if ac_fn_c_try_compile "$LINENO"; then :
1864 else
1865 eval "$3=yes"
1866 fi
1867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868 fi
1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870 fi
1871 eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876 } # ac_fn_c_check_type
1877 cat >config.log <<_ACEOF
1878 This file contains any messages produced by compilers while
1879 running configure, to aid debugging if configure makes a mistake.
1881 It was created by masqmail $as_me 0.2.23, which was
1882 generated by GNU Autoconf 2.65. Invocation command line was
1884 $ $0 $@
1886 _ACEOF
1887 exec 5>>config.log
1889 cat <<_ASUNAME
1890 ## --------- ##
1891 ## Platform. ##
1892 ## --------- ##
1894 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1895 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1896 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1897 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1898 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1900 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1901 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1903 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1904 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1905 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1906 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1907 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1908 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1909 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1911 _ASUNAME
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1915 do
1916 IFS=$as_save_IFS
1917 test -z "$as_dir" && as_dir=.
1918 $as_echo "PATH: $as_dir"
1919 done
1920 IFS=$as_save_IFS
1922 } >&5
1924 cat >&5 <<_ACEOF
1927 ## ----------- ##
1928 ## Core tests. ##
1929 ## ----------- ##
1931 _ACEOF
1934 # Keep a trace of the command line.
1935 # Strip out --no-create and --no-recursion so they do not pile up.
1936 # Strip out --silent because we don't want to record it for future runs.
1937 # Also quote any args containing shell meta-characters.
1938 # Make two passes to allow for proper duplicate-argument suppression.
1939 ac_configure_args=
1940 ac_configure_args0=
1941 ac_configure_args1=
1942 ac_must_keep_next=false
1943 for ac_pass in 1 2
1944 do
1945 for ac_arg
1946 do
1947 case $ac_arg in
1948 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1950 | -silent | --silent | --silen | --sile | --sil)
1951 continue ;;
1952 *\'*)
1953 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1954 esac
1955 case $ac_pass in
1956 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1957 2)
1958 as_fn_append ac_configure_args1 " '$ac_arg'"
1959 if test $ac_must_keep_next = true; then
1960 ac_must_keep_next=false # Got value, back to normal.
1961 else
1962 case $ac_arg in
1963 *=* | --config-cache | -C | -disable-* | --disable-* \
1964 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1965 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1966 | -with-* | --with-* | -without-* | --without-* | --x)
1967 case "$ac_configure_args0 " in
1968 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1969 esac
1970 ;;
1971 -* ) ac_must_keep_next=true ;;
1972 esac
1973 fi
1974 as_fn_append ac_configure_args " '$ac_arg'"
1975 ;;
1976 esac
1977 done
1978 done
1979 { ac_configure_args0=; unset ac_configure_args0;}
1980 { ac_configure_args1=; unset ac_configure_args1;}
1982 # When interrupted or exit'd, cleanup temporary files, and complete
1983 # config.log. We remove comments because anyway the quotes in there
1984 # would cause problems or look ugly.
1985 # WARNING: Use '\'' to represent an apostrophe within the trap.
1986 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1987 trap 'exit_status=$?
1988 # Save into config.log some information that might help in debugging.
1990 echo
1992 cat <<\_ASBOX
1993 ## ---------------- ##
1994 ## Cache variables. ##
1995 ## ---------------- ##
1996 _ASBOX
1997 echo
1998 # The following way of writing the cache mishandles newlines in values,
2000 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2001 eval ac_val=\$$ac_var
2002 case $ac_val in #(
2003 *${as_nl}*)
2004 case $ac_var in #(
2005 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2006 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2007 esac
2008 case $ac_var in #(
2009 _ | IFS | as_nl) ;; #(
2010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2011 *) { eval $ac_var=; unset $ac_var;} ;;
2012 esac ;;
2013 esac
2014 done
2015 (set) 2>&1 |
2016 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2017 *${as_nl}ac_space=\ *)
2018 sed -n \
2019 "s/'\''/'\''\\\\'\'''\''/g;
2020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2021 ;; #(
2022 *)
2023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2024 ;;
2025 esac |
2026 sort
2028 echo
2030 cat <<\_ASBOX
2031 ## ----------------- ##
2032 ## Output variables. ##
2033 ## ----------------- ##
2034 _ASBOX
2035 echo
2036 for ac_var in $ac_subst_vars
2037 do
2038 eval ac_val=\$$ac_var
2039 case $ac_val in
2040 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041 esac
2042 $as_echo "$ac_var='\''$ac_val'\''"
2043 done | sort
2044 echo
2046 if test -n "$ac_subst_files"; then
2047 cat <<\_ASBOX
2048 ## ------------------- ##
2049 ## File substitutions. ##
2050 ## ------------------- ##
2051 _ASBOX
2052 echo
2053 for ac_var in $ac_subst_files
2054 do
2055 eval ac_val=\$$ac_var
2056 case $ac_val in
2057 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2058 esac
2059 $as_echo "$ac_var='\''$ac_val'\''"
2060 done | sort
2061 echo
2062 fi
2064 if test -s confdefs.h; then
2065 cat <<\_ASBOX
2066 ## ----------- ##
2067 ## confdefs.h. ##
2068 ## ----------- ##
2069 _ASBOX
2070 echo
2071 cat confdefs.h
2072 echo
2073 fi
2074 test "$ac_signal" != 0 &&
2075 $as_echo "$as_me: caught signal $ac_signal"
2076 $as_echo "$as_me: exit $exit_status"
2077 } >&5
2078 rm -f core *.core core.conftest.* &&
2079 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2080 exit $exit_status
2081 ' 0
2082 for ac_signal in 1 2 13 15; do
2083 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2084 done
2085 ac_signal=0
2087 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2088 rm -f -r conftest* confdefs.h
2090 $as_echo "/* confdefs.h */" > confdefs.h
2092 # Predefined preprocessor variables.
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_NAME "$PACKAGE_NAME"
2096 _ACEOF
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2100 _ACEOF
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2104 _ACEOF
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_STRING "$PACKAGE_STRING"
2108 _ACEOF
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2112 _ACEOF
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_URL "$PACKAGE_URL"
2116 _ACEOF
2119 # Let the site file select an alternate cache file if it wants to.
2120 # Prefer an explicitly selected file to automatically selected ones.
2121 ac_site_file1=NONE
2122 ac_site_file2=NONE
2123 if test -n "$CONFIG_SITE"; then
2124 ac_site_file1=$CONFIG_SITE
2125 elif test "x$prefix" != xNONE; then
2126 ac_site_file1=$prefix/share/config.site
2127 ac_site_file2=$prefix/etc/config.site
2128 else
2129 ac_site_file1=$ac_default_prefix/share/config.site
2130 ac_site_file2=$ac_default_prefix/etc/config.site
2131 fi
2132 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2133 do
2134 test "x$ac_site_file" = xNONE && continue
2135 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2137 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2138 sed 's/^/| /' "$ac_site_file" >&5
2139 . "$ac_site_file"
2140 fi
2141 done
2143 if test -r "$cache_file"; then
2144 # Some versions of bash will fail to source /dev/null (special files
2145 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2146 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2148 $as_echo "$as_me: loading cache $cache_file" >&6;}
2149 case $cache_file in
2150 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2151 *) . "./$cache_file";;
2152 esac
2153 fi
2154 else
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2156 $as_echo "$as_me: creating cache $cache_file" >&6;}
2157 >$cache_file
2158 fi
2160 # Check that the precious variables saved in the cache have kept the same
2161 # value.
2162 ac_cache_corrupted=false
2163 for ac_var in $ac_precious_vars; do
2164 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2165 eval ac_new_set=\$ac_env_${ac_var}_set
2166 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2167 eval ac_new_val=\$ac_env_${ac_var}_value
2168 case $ac_old_set,$ac_new_set in
2169 set,)
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2171 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2172 ac_cache_corrupted=: ;;
2173 ,set)
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2176 ac_cache_corrupted=: ;;
2177 ,);;
2178 *)
2179 if test "x$ac_old_val" != "x$ac_new_val"; then
2180 # differences in whitespace do not lead to failure.
2181 ac_old_val_w=`echo x $ac_old_val`
2182 ac_new_val_w=`echo x $ac_new_val`
2183 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2185 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2186 ac_cache_corrupted=:
2187 else
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2189 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2190 eval $ac_var=\$ac_old_val
2191 fi
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2193 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2195 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2196 fi;;
2197 esac
2198 # Pass precious variables to config.status.
2199 if test "$ac_new_set" = set; then
2200 case $ac_new_val in
2201 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2202 *) ac_arg=$ac_var=$ac_new_val ;;
2203 esac
2204 case " $ac_configure_args " in
2205 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2206 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2207 esac
2208 fi
2209 done
2210 if $ac_cache_corrupted; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2214 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2215 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2216 fi
2217 ## -------------------- ##
2218 ## Main body of script. ##
2219 ## -------------------- ##
2221 ac_ext=c
2222 ac_cpp='$CPP $CPPFLAGS'
2223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229 ac_config_headers="$ac_config_headers config.h"
2231 am__api_version='1.11'
2233 ac_aux_dir=
2234 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2235 for ac_t in install-sh install.sh shtool; do
2236 if test -f "$ac_dir/$ac_t"; then
2237 ac_aux_dir=$ac_dir
2238 ac_install_sh="$ac_aux_dir/$ac_t -c"
2239 break 2
2240 fi
2241 done
2242 done
2243 if test -z "$ac_aux_dir"; then
2244 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2245 fi
2247 # These three variables are undocumented and unsupported,
2248 # and are intended to be withdrawn in a future Autoconf release.
2249 # They can cause serious problems if a builder's source tree is in a directory
2250 # whose full name contains unusual characters.
2251 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2252 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2253 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2256 # Find a good install program. We prefer a C program (faster),
2257 # so one script is as good as another. But avoid the broken or
2258 # incompatible versions:
2259 # SysV /etc/install, /usr/sbin/install
2260 # SunOS /usr/etc/install
2261 # IRIX /sbin/install
2262 # AIX /bin/install
2263 # AmigaOS /C/install, which installs bootblocks on floppy discs
2264 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2265 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2266 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2267 # OS/2's system install, which has a completely different semantic
2268 # ./install, which can be erroneously created by make from ./install.sh.
2269 # Reject install programs that cannot install multiple files.
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2271 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2272 if test -z "$INSTALL"; then
2273 if test "${ac_cv_path_install+set}" = set; then :
2274 $as_echo_n "(cached) " >&6
2275 else
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 for as_dir in $PATH
2278 do
2279 IFS=$as_save_IFS
2280 test -z "$as_dir" && as_dir=.
2281 # Account for people who put trailing slashes in PATH elements.
2282 case $as_dir/ in #((
2283 ./ | .// | /[cC]/* | \
2284 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2285 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2286 /usr/ucb/* ) ;;
2287 *)
2288 # OSF1 and SCO ODT 3.0 have their own names for install.
2289 # Don't use installbsd from OSF since it installs stuff as root
2290 # by default.
2291 for ac_prog in ginstall scoinst install; do
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2294 if test $ac_prog = install &&
2295 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2296 # AIX install. It has an incompatible calling convention.
2298 elif test $ac_prog = install &&
2299 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2300 # program-specific install script used by HP pwplus--don't use.
2302 else
2303 rm -rf conftest.one conftest.two conftest.dir
2304 echo one > conftest.one
2305 echo two > conftest.two
2306 mkdir conftest.dir
2307 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2308 test -s conftest.one && test -s conftest.two &&
2309 test -s conftest.dir/conftest.one &&
2310 test -s conftest.dir/conftest.two
2311 then
2312 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2313 break 3
2314 fi
2315 fi
2316 fi
2317 done
2318 done
2319 ;;
2320 esac
2322 done
2323 IFS=$as_save_IFS
2325 rm -rf conftest.one conftest.two conftest.dir
2327 fi
2328 if test "${ac_cv_path_install+set}" = set; then
2329 INSTALL=$ac_cv_path_install
2330 else
2331 # As a last resort, use the slow shell script. Don't cache a
2332 # value for INSTALL within a source directory, because that will
2333 # break other packages using the cache if that directory is
2334 # removed, or if the value is a relative name.
2335 INSTALL=$ac_install_sh
2336 fi
2337 fi
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2339 $as_echo "$INSTALL" >&6; }
2341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2342 # It thinks the first close brace ends the variable substitution.
2343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2347 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2350 $as_echo_n "checking whether build environment is sane... " >&6; }
2351 # Just in case
2352 sleep 1
2353 echo timestamp > conftest.file
2354 # Reject unsafe characters in $srcdir or the absolute working directory
2355 # name. Accept space and tab only in the latter.
2356 am_lf='
2358 case `pwd` in
2359 *[\\\"\#\$\&\'\`$am_lf]*)
2360 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2361 esac
2362 case $srcdir in
2363 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2364 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2365 esac
2367 # Do `set' in a subshell so we don't clobber the current shell's
2368 # arguments. Must try -L first in case configure is actually a
2369 # symlink; some systems play weird games with the mod time of symlinks
2370 # (eg FreeBSD returns the mod time of the symlink's containing
2371 # directory).
2372 if (
2373 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2374 if test "$*" = "X"; then
2375 # -L didn't work.
2376 set X `ls -t "$srcdir/configure" conftest.file`
2377 fi
2378 rm -f conftest.file
2379 if test "$*" != "X $srcdir/configure conftest.file" \
2380 && test "$*" != "X conftest.file $srcdir/configure"; then
2382 # If neither matched, then we have a broken ls. This can happen
2383 # if, for instance, CONFIG_SHELL is bash and it inherits a
2384 # broken ls alias from the environment. This has actually
2385 # happened. Such a system could not be considered "sane".
2386 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2387 alias in your environment" "$LINENO" 5
2388 fi
2390 test "$2" = conftest.file
2392 then
2393 # Ok.
2395 else
2396 as_fn_error "newly created file is older than distributed files!
2397 Check your system clock" "$LINENO" 5
2398 fi
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2400 $as_echo "yes" >&6; }
2401 test "$program_prefix" != NONE &&
2402 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2403 # Use a double $ so make ignores it.
2404 test "$program_suffix" != NONE &&
2405 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2406 # Double any \ or $.
2407 # By default was `s,x,x', remove it if useless.
2408 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2409 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2411 # expand $ac_aux_dir to an absolute path
2412 am_aux_dir=`cd $ac_aux_dir && pwd`
2414 if test x"${MISSING+set}" != xset; then
2415 case $am_aux_dir in
2416 *\ * | *\ *)
2417 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2418 *)
2419 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2420 esac
2421 fi
2422 # Use eval to expand $SHELL
2423 if eval "$MISSING --run true"; then
2424 am_missing_run="$MISSING --run "
2425 else
2426 am_missing_run=
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2428 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2429 fi
2431 if test x"${install_sh}" != xset; then
2432 case $am_aux_dir in
2433 *\ * | *\ *)
2434 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2435 *)
2436 install_sh="\${SHELL} $am_aux_dir/install-sh"
2437 esac
2438 fi
2440 # Installed binaries are usually stripped using `strip' when the user
2441 # run `make install-strip'. However `strip' might not be the right
2442 # tool to use in cross-compilation environments, therefore Automake
2443 # will honor the `STRIP' environment variable to overrule this program.
2444 if test "$cross_compiling" != no; then
2445 if test -n "$ac_tool_prefix"; then
2446 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2447 set dummy ${ac_tool_prefix}strip; ac_word=$2
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2449 $as_echo_n "checking for $ac_word... " >&6; }
2450 if test "${ac_cv_prog_STRIP+set}" = set; then :
2451 $as_echo_n "(cached) " >&6
2452 else
2453 if test -n "$STRIP"; then
2454 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2455 else
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 for as_dir in $PATH
2458 do
2459 IFS=$as_save_IFS
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2463 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 break 2
2466 fi
2467 done
2468 done
2469 IFS=$as_save_IFS
2471 fi
2472 fi
2473 STRIP=$ac_cv_prog_STRIP
2474 if test -n "$STRIP"; then
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2476 $as_echo "$STRIP" >&6; }
2477 else
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2479 $as_echo "no" >&6; }
2480 fi
2483 fi
2484 if test -z "$ac_cv_prog_STRIP"; then
2485 ac_ct_STRIP=$STRIP
2486 # Extract the first word of "strip", so it can be a program name with args.
2487 set dummy strip; ac_word=$2
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2489 $as_echo_n "checking for $ac_word... " >&6; }
2490 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2491 $as_echo_n "(cached) " >&6
2492 else
2493 if test -n "$ac_ct_STRIP"; then
2494 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2495 else
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH
2498 do
2499 IFS=$as_save_IFS
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503 ac_cv_prog_ac_ct_STRIP="strip"
2504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 break 2
2506 fi
2507 done
2508 done
2509 IFS=$as_save_IFS
2511 fi
2512 fi
2513 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2514 if test -n "$ac_ct_STRIP"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2516 $as_echo "$ac_ct_STRIP" >&6; }
2517 else
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2519 $as_echo "no" >&6; }
2520 fi
2522 if test "x$ac_ct_STRIP" = x; then
2523 STRIP=":"
2524 else
2525 case $cross_compiling:$ac_tool_warned in
2526 yes:)
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2529 ac_tool_warned=yes ;;
2530 esac
2531 STRIP=$ac_ct_STRIP
2532 fi
2533 else
2534 STRIP="$ac_cv_prog_STRIP"
2535 fi
2537 fi
2538 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2541 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2542 if test -z "$MKDIR_P"; then
2543 if test "${ac_cv_path_mkdir+set}" = set; then :
2544 $as_echo_n "(cached) " >&6
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2548 do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_prog in mkdir gmkdir; do
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2554 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2555 'mkdir (GNU coreutils) '* | \
2556 'mkdir (coreutils) '* | \
2557 'mkdir (fileutils) '4.1*)
2558 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2559 break 3;;
2560 esac
2561 done
2562 done
2563 done
2564 IFS=$as_save_IFS
2566 fi
2568 test -d ./--version && rmdir ./--version
2569 if test "${ac_cv_path_mkdir+set}" = set; then
2570 MKDIR_P="$ac_cv_path_mkdir -p"
2571 else
2572 # As a last resort, use the slow shell script. Don't cache a
2573 # value for MKDIR_P within a source directory, because that will
2574 # break other packages using the cache if that directory is
2575 # removed, or if the value is a relative name.
2576 MKDIR_P="$ac_install_sh -d"
2577 fi
2578 fi
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2580 $as_echo "$MKDIR_P" >&6; }
2582 mkdir_p="$MKDIR_P"
2583 case $mkdir_p in
2584 [\\/$]* | ?:[\\/]*) ;;
2585 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2586 esac
2588 for ac_prog in gawk mawk nawk awk
2589 do
2590 # Extract the first word of "$ac_prog", so it can be a program name with args.
2591 set dummy $ac_prog; ac_word=$2
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2593 $as_echo_n "checking for $ac_word... " >&6; }
2594 if test "${ac_cv_prog_AWK+set}" = set; then :
2595 $as_echo_n "(cached) " >&6
2596 else
2597 if test -n "$AWK"; then
2598 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2599 else
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 for as_dir in $PATH
2602 do
2603 IFS=$as_save_IFS
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607 ac_cv_prog_AWK="$ac_prog"
2608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 break 2
2610 fi
2611 done
2612 done
2613 IFS=$as_save_IFS
2615 fi
2616 fi
2617 AWK=$ac_cv_prog_AWK
2618 if test -n "$AWK"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2620 $as_echo "$AWK" >&6; }
2621 else
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623 $as_echo "no" >&6; }
2624 fi
2627 test -n "$AWK" && break
2628 done
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2631 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2632 set x ${MAKE-make}
2633 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2634 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 cat >conftest.make <<\_ACEOF
2638 SHELL = /bin/sh
2639 all:
2640 @echo '@@@%%%=$(MAKE)=@@@%%%'
2641 _ACEOF
2642 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2643 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2644 *@@@%%%=?*=@@@%%%*)
2645 eval ac_cv_prog_make_${ac_make}_set=yes;;
2646 *)
2647 eval ac_cv_prog_make_${ac_make}_set=no;;
2648 esac
2649 rm -f conftest.make
2650 fi
2651 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2653 $as_echo "yes" >&6; }
2654 SET_MAKE=
2655 else
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2658 SET_MAKE="MAKE=${MAKE-make}"
2659 fi
2661 rm -rf .tst 2>/dev/null
2662 mkdir .tst 2>/dev/null
2663 if test -d .tst; then
2664 am__leading_dot=.
2665 else
2666 am__leading_dot=_
2667 fi
2668 rmdir .tst 2>/dev/null
2670 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2671 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2672 # is not polluted with repeated "-I."
2673 am__isrc=' -I$(srcdir)'
2674 # test to see if srcdir already configured
2675 if test -f $srcdir/config.status; then
2676 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2677 fi
2678 fi
2680 # test whether we have cygpath
2681 if test -z "$CYGPATH_W"; then
2682 if (cygpath --version) >/dev/null 2>/dev/null; then
2683 CYGPATH_W='cygpath -w'
2684 else
2685 CYGPATH_W=echo
2686 fi
2687 fi
2690 # Define the identity of the package.
2691 PACKAGE='masqmail'
2692 VERSION='0.2.23'
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE "$PACKAGE"
2697 _ACEOF
2700 cat >>confdefs.h <<_ACEOF
2701 #define VERSION "$VERSION"
2702 _ACEOF
2704 # Some tools Automake needs.
2706 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2709 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2712 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2715 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2718 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2720 # We need awk for the "check" target. The system "awk" is bad on
2721 # some platforms.
2722 # Always define AMTAR for backward compatibility.
2724 AMTAR=${AMTAR-"${am_missing_run}tar"}
2726 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2737 ac_ext=c
2738 ac_cpp='$CPP $CPPFLAGS'
2739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742 if test -n "$ac_tool_prefix"; then
2743 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2744 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2746 $as_echo_n "checking for $ac_word... " >&6; }
2747 if test "${ac_cv_prog_CC+set}" = set; then :
2748 $as_echo_n "(cached) " >&6
2749 else
2750 if test -n "$CC"; then
2751 ac_cv_prog_CC="$CC" # Let the user override the test.
2752 else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2755 do
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 break 2
2763 fi
2764 done
2765 done
2766 IFS=$as_save_IFS
2768 fi
2769 fi
2770 CC=$ac_cv_prog_CC
2771 if test -n "$CC"; then
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2773 $as_echo "$CC" >&6; }
2774 else
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776 $as_echo "no" >&6; }
2777 fi
2780 fi
2781 if test -z "$ac_cv_prog_CC"; then
2782 ac_ct_CC=$CC
2783 # Extract the first word of "gcc", so it can be a program name with args.
2784 set dummy gcc; ac_word=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 if test -n "$ac_ct_CC"; then
2791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_ac_ct_CC="gcc"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804 done
2805 done
2806 IFS=$as_save_IFS
2808 fi
2809 fi
2810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2811 if test -n "$ac_ct_CC"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2813 $as_echo "$ac_ct_CC" >&6; }
2814 else
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2817 fi
2819 if test "x$ac_ct_CC" = x; then
2820 CC=""
2821 else
2822 case $cross_compiling:$ac_tool_warned in
2823 yes:)
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2826 ac_tool_warned=yes ;;
2827 esac
2828 CC=$ac_ct_CC
2829 fi
2830 else
2831 CC="$ac_cv_prog_CC"
2832 fi
2834 if test -z "$CC"; then
2835 if test -n "$ac_tool_prefix"; then
2836 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2837 set dummy ${ac_tool_prefix}cc; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if test "${ac_cv_prog_CC+set}" = set; then :
2841 $as_echo_n "(cached) " >&6
2842 else
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_CC="${ac_tool_prefix}cc"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2861 fi
2862 fi
2863 CC=$ac_cv_prog_CC
2864 if test -n "$CC"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2866 $as_echo "$CC" >&6; }
2867 else
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2870 fi
2873 fi
2874 fi
2875 if test -z "$CC"; then
2876 # Extract the first word of "cc", so it can be a program name with args.
2877 set dummy cc; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if test "${ac_cv_prog_CC+set}" = set; then :
2881 $as_echo_n "(cached) " >&6
2882 else
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2885 else
2886 ac_prog_rejected=no
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2895 ac_prog_rejected=yes
2896 continue
2897 fi
2898 ac_cv_prog_CC="cc"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 break 2
2901 fi
2902 done
2903 done
2904 IFS=$as_save_IFS
2906 if test $ac_prog_rejected = yes; then
2907 # We found a bogon in the path, so make sure we never use it.
2908 set dummy $ac_cv_prog_CC
2909 shift
2910 if test $# != 0; then
2911 # We chose a different compiler from the bogus one.
2912 # However, it has the same basename, so the bogon will be chosen
2913 # first if we set CC to just the basename; use the full file name.
2914 shift
2915 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2916 fi
2917 fi
2918 fi
2919 fi
2920 CC=$ac_cv_prog_CC
2921 if test -n "$CC"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2923 $as_echo "$CC" >&6; }
2924 else
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2927 fi
2930 fi
2931 if test -z "$CC"; then
2932 if test -n "$ac_tool_prefix"; then
2933 for ac_prog in cl.exe
2934 do
2935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if test "${ac_cv_prog_CC+set}" = set; then :
2940 $as_echo_n "(cached) " >&6
2941 else
2942 if test -n "$CC"; then
2943 ac_cv_prog_CC="$CC" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2955 fi
2956 done
2957 done
2958 IFS=$as_save_IFS
2960 fi
2961 fi
2962 CC=$ac_cv_prog_CC
2963 if test -n "$CC"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2965 $as_echo "$CC" >&6; }
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2969 fi
2972 test -n "$CC" && break
2973 done
2974 fi
2975 if test -z "$CC"; then
2976 ac_ct_CC=$CC
2977 for ac_prog in cl.exe
2978 do
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980 set dummy $ac_prog; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2984 $as_echo_n "(cached) " >&6
2985 else
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_ac_ct_CC="$ac_prog"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
2999 fi
3000 done
3001 done
3002 IFS=$as_save_IFS
3004 fi
3005 fi
3006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007 if test -n "$ac_ct_CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3009 $as_echo "$ac_ct_CC" >&6; }
3010 else
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3013 fi
3016 test -n "$ac_ct_CC" && break
3017 done
3019 if test "x$ac_ct_CC" = x; then
3020 CC=""
3021 else
3022 case $cross_compiling:$ac_tool_warned in
3023 yes:)
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3026 ac_tool_warned=yes ;;
3027 esac
3028 CC=$ac_ct_CC
3029 fi
3030 fi
3032 fi
3035 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3037 as_fn_error "no acceptable C compiler found in \$PATH
3038 See \`config.log' for more details." "$LINENO" 5; }
3040 # Provide some information about the compiler.
3041 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3042 set X $ac_compile
3043 ac_compiler=$2
3044 for ac_option in --version -v -V -qversion; do
3045 { { ac_try="$ac_compiler $ac_option >&5"
3046 case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049 esac
3050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3051 $as_echo "$ac_try_echo"; } >&5
3052 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3053 ac_status=$?
3054 if test -s conftest.err; then
3055 sed '10a\
3056 ... rest of stderr output deleted ...
3057 10q' conftest.err >conftest.er1
3058 cat conftest.er1 >&5
3059 fi
3060 rm -f conftest.er1 conftest.err
3061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3062 test $ac_status = 0; }
3063 done
3065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066 /* end confdefs.h. */
3068 int
3069 main ()
3073 return 0;
3075 _ACEOF
3076 ac_clean_files_save=$ac_clean_files
3077 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3078 # Try to create an executable without -o first, disregard a.out.
3079 # It will help us diagnose broken compilers, and finding out an intuition
3080 # of exeext.
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3082 $as_echo_n "checking whether the C compiler works... " >&6; }
3083 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3085 # The possible output files:
3086 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3088 ac_rmfiles=
3089 for ac_file in $ac_files
3090 do
3091 case $ac_file in
3092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3093 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3094 esac
3095 done
3096 rm -f $ac_rmfiles
3098 if { { ac_try="$ac_link_default"
3099 case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102 esac
3103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3104 $as_echo "$ac_try_echo"; } >&5
3105 (eval "$ac_link_default") 2>&5
3106 ac_status=$?
3107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3108 test $ac_status = 0; }; then :
3109 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3110 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3111 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3112 # so that the user can short-circuit this test for compilers unknown to
3113 # Autoconf.
3114 for ac_file in $ac_files ''
3115 do
3116 test -f "$ac_file" || continue
3117 case $ac_file in
3118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3119 ;;
3120 [ab].out )
3121 # We found the default executable, but exeext='' is most
3122 # certainly right.
3123 break;;
3124 *.* )
3125 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3126 then :; else
3127 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3128 fi
3129 # We set ac_cv_exeext here because the later test for it is not
3130 # safe: cross compilers may not add the suffix if given an `-o'
3131 # argument, so we may need to know it at that point already.
3132 # Even if this section looks crufty: it has the advantage of
3133 # actually working.
3134 break;;
3135 * )
3136 break;;
3137 esac
3138 done
3139 test "$ac_cv_exeext" = no && ac_cv_exeext=
3141 else
3142 ac_file=''
3143 fi
3144 if test -z "$ac_file"; then :
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3147 $as_echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152 { as_fn_set_status 77
3153 as_fn_error "C compiler cannot create executables
3154 See \`config.log' for more details." "$LINENO" 5; }; }
3155 else
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3157 $as_echo "yes" >&6; }
3158 fi
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3160 $as_echo_n "checking for C compiler default output file name... " >&6; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3162 $as_echo "$ac_file" >&6; }
3163 ac_exeext=$ac_cv_exeext
3165 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3166 ac_clean_files=$ac_clean_files_save
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3168 $as_echo_n "checking for suffix of executables... " >&6; }
3169 if { { ac_try="$ac_link"
3170 case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175 $as_echo "$ac_try_echo"; } >&5
3176 (eval "$ac_link") 2>&5
3177 ac_status=$?
3178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179 test $ac_status = 0; }; then :
3180 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3181 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3182 # work properly (i.e., refer to `conftest.exe'), while it won't with
3183 # `rm'.
3184 for ac_file in conftest.exe conftest conftest.*; do
3185 test -f "$ac_file" || continue
3186 case $ac_file in
3187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3188 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3189 break;;
3190 * ) break;;
3191 esac
3192 done
3193 else
3194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error "cannot compute suffix of executables: cannot compile and link
3197 See \`config.log' for more details." "$LINENO" 5; }
3198 fi
3199 rm -f conftest conftest$ac_cv_exeext
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3201 $as_echo "$ac_cv_exeext" >&6; }
3203 rm -f conftest.$ac_ext
3204 EXEEXT=$ac_cv_exeext
3205 ac_exeext=$EXEEXT
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3208 #include <stdio.h>
3209 int
3210 main ()
3212 FILE *f = fopen ("conftest.out", "w");
3213 return ferror (f) || fclose (f) != 0;
3216 return 0;
3218 _ACEOF
3219 ac_clean_files="$ac_clean_files conftest.out"
3220 # Check that the compiler produces executables we can run. If not, either
3221 # the compiler is broken, or we cross compile.
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3223 $as_echo_n "checking whether we are cross compiling... " >&6; }
3224 if test "$cross_compiling" != yes; then
3225 { { ac_try="$ac_link"
3226 case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 $as_echo "$ac_try_echo"; } >&5
3232 (eval "$ac_link") 2>&5
3233 ac_status=$?
3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }
3236 if { ac_try='./conftest$ac_cv_exeext'
3237 { { case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240 esac
3241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242 $as_echo "$ac_try_echo"; } >&5
3243 (eval "$ac_try") 2>&5
3244 ac_status=$?
3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246 test $ac_status = 0; }; }; then
3247 cross_compiling=no
3248 else
3249 if test "$cross_compiling" = maybe; then
3250 cross_compiling=yes
3251 else
3252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 as_fn_error "cannot run C compiled programs.
3255 If you meant to cross compile, use \`--host'.
3256 See \`config.log' for more details." "$LINENO" 5; }
3257 fi
3258 fi
3259 fi
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3261 $as_echo "$cross_compiling" >&6; }
3263 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3264 ac_clean_files=$ac_clean_files_save
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3266 $as_echo_n "checking for suffix of object files... " >&6; }
3267 if test "${ac_cv_objext+set}" = set; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 /* end confdefs.h. */
3273 int
3274 main ()
3278 return 0;
3280 _ACEOF
3281 rm -f conftest.o conftest.obj
3282 if { { ac_try="$ac_compile"
3283 case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289 (eval "$ac_compile") 2>&5
3290 ac_status=$?
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }; then :
3293 for ac_file in conftest.o conftest.obj conftest.*; do
3294 test -f "$ac_file" || continue;
3295 case $ac_file in
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3297 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3298 break;;
3299 esac
3300 done
3301 else
3302 $as_echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 as_fn_error "cannot compute suffix of object files: cannot compile
3308 See \`config.log' for more details." "$LINENO" 5; }
3309 fi
3310 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3311 fi
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3313 $as_echo "$ac_cv_objext" >&6; }
3314 OBJEXT=$ac_cv_objext
3315 ac_objext=$OBJEXT
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3317 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3318 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3319 $as_echo_n "(cached) " >&6
3320 else
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3324 int
3325 main ()
3327 #ifndef __GNUC__
3328 choke me
3329 #endif
3332 return 0;
3334 _ACEOF
3335 if ac_fn_c_try_compile "$LINENO"; then :
3336 ac_compiler_gnu=yes
3337 else
3338 ac_compiler_gnu=no
3339 fi
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3343 fi
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3345 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3346 if test $ac_compiler_gnu = yes; then
3347 GCC=yes
3348 else
3349 GCC=
3350 fi
3351 ac_test_CFLAGS=${CFLAGS+set}
3352 ac_save_CFLAGS=$CFLAGS
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3354 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3355 if test "${ac_cv_prog_cc_g+set}" = set; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 ac_save_c_werror_flag=$ac_c_werror_flag
3359 ac_c_werror_flag=yes
3360 ac_cv_prog_cc_g=no
3361 CFLAGS="-g"
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3365 int
3366 main ()
3370 return 0;
3372 _ACEOF
3373 if ac_fn_c_try_compile "$LINENO"; then :
3374 ac_cv_prog_cc_g=yes
3375 else
3376 CFLAGS=""
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3380 int
3381 main ()
3385 return 0;
3387 _ACEOF
3388 if ac_fn_c_try_compile "$LINENO"; then :
3390 else
3391 ac_c_werror_flag=$ac_save_c_werror_flag
3392 CFLAGS="-g"
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3396 int
3397 main ()
3401 return 0;
3403 _ACEOF
3404 if ac_fn_c_try_compile "$LINENO"; then :
3405 ac_cv_prog_cc_g=yes
3406 fi
3407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3408 fi
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 fi
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412 ac_c_werror_flag=$ac_save_c_werror_flag
3413 fi
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3415 $as_echo "$ac_cv_prog_cc_g" >&6; }
3416 if test "$ac_test_CFLAGS" = set; then
3417 CFLAGS=$ac_save_CFLAGS
3418 elif test $ac_cv_prog_cc_g = yes; then
3419 if test "$GCC" = yes; then
3420 CFLAGS="-g -O2"
3421 else
3422 CFLAGS="-g"
3423 fi
3424 else
3425 if test "$GCC" = yes; then
3426 CFLAGS="-O2"
3427 else
3428 CFLAGS=
3429 fi
3430 fi
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3432 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3433 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3434 $as_echo_n "(cached) " >&6
3435 else
3436 ac_cv_prog_cc_c89=no
3437 ac_save_CC=$CC
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3440 #include <stdarg.h>
3441 #include <stdio.h>
3442 #include <sys/types.h>
3443 #include <sys/stat.h>
3444 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3445 struct buf { int x; };
3446 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3447 static char *e (p, i)
3448 char **p;
3449 int i;
3451 return p[i];
3453 static char *f (char * (*g) (char **, int), char **p, ...)
3455 char *s;
3456 va_list v;
3457 va_start (v,p);
3458 s = g (p, va_arg (v,int));
3459 va_end (v);
3460 return s;
3463 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3464 function prototypes and stuff, but not '\xHH' hex character constants.
3465 These don't provoke an error unfortunately, instead are silently treated
3466 as 'x'. The following induces an error, until -std is added to get
3467 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3468 array size at least. It's necessary to write '\x00'==0 to get something
3469 that's true only with -std. */
3470 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3472 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3473 inside strings and character constants. */
3474 #define FOO(x) 'x'
3475 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3477 int test (int i, double x);
3478 struct s1 {int (*f) (int a);};
3479 struct s2 {int (*f) (double a);};
3480 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3481 int argc;
3482 char **argv;
3483 int
3484 main ()
3486 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3488 return 0;
3490 _ACEOF
3491 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3492 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3493 do
3494 CC="$ac_save_CC $ac_arg"
3495 if ac_fn_c_try_compile "$LINENO"; then :
3496 ac_cv_prog_cc_c89=$ac_arg
3497 fi
3498 rm -f core conftest.err conftest.$ac_objext
3499 test "x$ac_cv_prog_cc_c89" != "xno" && break
3500 done
3501 rm -f conftest.$ac_ext
3502 CC=$ac_save_CC
3504 fi
3505 # AC_CACHE_VAL
3506 case "x$ac_cv_prog_cc_c89" in
3507 x)
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3509 $as_echo "none needed" >&6; } ;;
3510 xno)
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3512 $as_echo "unsupported" >&6; } ;;
3513 *)
3514 CC="$CC $ac_cv_prog_cc_c89"
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3516 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3517 esac
3518 if test "x$ac_cv_prog_cc_c89" != xno; then :
3520 fi
3522 ac_ext=c
3523 ac_cpp='$CPP $CPPFLAGS'
3524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527 DEPDIR="${am__leading_dot}deps"
3529 ac_config_commands="$ac_config_commands depfiles"
3532 am_make=${MAKE-make}
3533 cat > confinc << 'END'
3534 am__doit:
3535 @echo this is the am__doit target
3536 .PHONY: am__doit
3537 END
3538 # If we don't find an include directive, just comment out the code.
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3540 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3541 am__include="#"
3542 am__quote=
3543 _am_result=none
3544 # First try GNU make style include.
3545 echo "include confinc" > confmf
3546 # Ignore all kinds of additional output from `make'.
3547 case `$am_make -s -f confmf 2> /dev/null` in #(
3548 *the\ am__doit\ target*)
3549 am__include=include
3550 am__quote=
3551 _am_result=GNU
3552 ;;
3553 esac
3554 # Now try BSD make style include.
3555 if test "$am__include" = "#"; then
3556 echo '.include "confinc"' > confmf
3557 case `$am_make -s -f confmf 2> /dev/null` in #(
3558 *the\ am__doit\ target*)
3559 am__include=.include
3560 am__quote="\""
3561 _am_result=BSD
3562 ;;
3563 esac
3564 fi
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3568 $as_echo "$_am_result" >&6; }
3569 rm -f confinc confmf
3571 # Check whether --enable-dependency-tracking was given.
3572 if test "${enable_dependency_tracking+set}" = set; then :
3573 enableval=$enable_dependency_tracking;
3574 fi
3576 if test "x$enable_dependency_tracking" != xno; then
3577 am_depcomp="$ac_aux_dir/depcomp"
3578 AMDEPBACKSLASH='\'
3579 fi
3580 if test "x$enable_dependency_tracking" != xno; then
3581 AMDEP_TRUE=
3582 AMDEP_FALSE='#'
3583 else
3584 AMDEP_TRUE='#'
3585 AMDEP_FALSE=
3586 fi
3590 depcc="$CC" am_compiler_list=
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3593 $as_echo_n "checking dependency style of $depcc... " >&6; }
3594 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3595 $as_echo_n "(cached) " >&6
3596 else
3597 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3598 # We make a subdir and do the tests there. Otherwise we can end up
3599 # making bogus files that we don't know about and never remove. For
3600 # instance it was reported that on HP-UX the gcc test will end up
3601 # making a dummy file named `D' -- because `-MD' means `put the output
3602 # in D'.
3603 mkdir conftest.dir
3604 # Copy depcomp to subdir because otherwise we won't find it if we're
3605 # using a relative directory.
3606 cp "$am_depcomp" conftest.dir
3607 cd conftest.dir
3608 # We will build objects and dependencies in a subdirectory because
3609 # it helps to detect inapplicable dependency modes. For instance
3610 # both Tru64's cc and ICC support -MD to output dependencies as a
3611 # side effect of compilation, but ICC will put the dependencies in
3612 # the current directory while Tru64 will put them in the object
3613 # directory.
3614 mkdir sub
3616 am_cv_CC_dependencies_compiler_type=none
3617 if test "$am_compiler_list" = ""; then
3618 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3619 fi
3620 am__universal=false
3621 case " $depcc " in #(
3622 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3623 esac
3625 for depmode in $am_compiler_list; do
3626 # Setup a source with many dependencies, because some compilers
3627 # like to wrap large dependency lists on column 80 (with \), and
3628 # we should not choose a depcomp mode which is confused by this.
3630 # We need to recreate these files for each test, as the compiler may
3631 # overwrite some of them when testing with obscure command lines.
3632 # This happens at least with the AIX C compiler.
3633 : > sub/conftest.c
3634 for i in 1 2 3 4 5 6; do
3635 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3636 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3637 # Solaris 8's {/usr,}/bin/sh.
3638 touch sub/conftst$i.h
3639 done
3640 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3642 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3643 # mode. It turns out that the SunPro C++ compiler does not properly
3644 # handle `-M -o', and we need to detect this. Also, some Intel
3645 # versions had trouble with output in subdirs
3646 am__obj=sub/conftest.${OBJEXT-o}
3647 am__minus_obj="-o $am__obj"
3648 case $depmode in
3649 gcc)
3650 # This depmode causes a compiler race in universal mode.
3651 test "$am__universal" = false || continue
3652 ;;
3653 nosideeffect)
3654 # after this tag, mechanisms are not by side-effect, so they'll
3655 # only be used when explicitly requested
3656 if test "x$enable_dependency_tracking" = xyes; then
3657 continue
3658 else
3659 break
3660 fi
3661 ;;
3662 msvisualcpp | msvcmsys)
3663 # This compiler won't grok `-c -o', but also, the minuso test has
3664 # not run yet. These depmodes are late enough in the game, and
3665 # so weak that their functioning should not be impacted.
3666 am__obj=conftest.${OBJEXT-o}
3667 am__minus_obj=
3668 ;;
3669 none) break ;;
3670 esac
3671 if depmode=$depmode \
3672 source=sub/conftest.c object=$am__obj \
3673 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3674 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3675 >/dev/null 2>conftest.err &&
3676 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3677 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3678 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3679 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3680 # icc doesn't choke on unknown options, it will just issue warnings
3681 # or remarks (even with -Werror). So we grep stderr for any message
3682 # that says an option was ignored or not supported.
3683 # When given -MP, icc 7.0 and 7.1 complain thusly:
3684 # icc: Command line warning: ignoring option '-M'; no argument required
3685 # The diagnosis changed in icc 8.0:
3686 # icc: Command line remark: option '-MP' not supported
3687 if (grep 'ignoring option' conftest.err ||
3688 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3689 am_cv_CC_dependencies_compiler_type=$depmode
3690 break
3691 fi
3692 fi
3693 done
3695 cd ..
3696 rm -rf conftest.dir
3697 else
3698 am_cv_CC_dependencies_compiler_type=none
3699 fi
3701 fi
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3703 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3704 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3706 if
3707 test "x$enable_dependency_tracking" != xno \
3708 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3709 am__fastdepCC_TRUE=
3710 am__fastdepCC_FALSE='#'
3711 else
3712 am__fastdepCC_TRUE='#'
3713 am__fastdepCC_FALSE=
3714 fi
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3719 $as_echo_n "checking for library containing strerror... " >&6; }
3720 if test "${ac_cv_search_strerror+set}" = set; then :
3721 $as_echo_n "(cached) " >&6
3722 else
3723 ac_func_search_save_LIBS=$LIBS
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3727 /* Override any GCC internal prototype to avoid an error.
3728 Use char because int might match the return type of a GCC
3729 builtin and then its argument prototype would still apply. */
3730 #ifdef __cplusplus
3731 extern "C"
3732 #endif
3733 char strerror ();
3734 int
3735 main ()
3737 return strerror ();
3739 return 0;
3741 _ACEOF
3742 for ac_lib in '' cposix; do
3743 if test -z "$ac_lib"; then
3744 ac_res="none required"
3745 else
3746 ac_res=-l$ac_lib
3747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3748 fi
3749 if ac_fn_c_try_link "$LINENO"; then :
3750 ac_cv_search_strerror=$ac_res
3751 fi
3752 rm -f core conftest.err conftest.$ac_objext \
3753 conftest$ac_exeext
3754 if test "${ac_cv_search_strerror+set}" = set; then :
3755 break
3756 fi
3757 done
3758 if test "${ac_cv_search_strerror+set}" = set; then :
3760 else
3761 ac_cv_search_strerror=no
3762 fi
3763 rm conftest.$ac_ext
3764 LIBS=$ac_func_search_save_LIBS
3765 fi
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3767 $as_echo "$ac_cv_search_strerror" >&6; }
3768 ac_res=$ac_cv_search_strerror
3769 if test "$ac_res" != no; then :
3770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3772 fi
3774 ac_ext=c
3775 ac_cpp='$CPP $CPPFLAGS'
3776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3780 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3781 # On Suns, sometimes $CPP names a directory.
3782 if test -n "$CPP" && test -d "$CPP"; then
3783 CPP=
3784 fi
3785 if test -z "$CPP"; then
3786 if test "${ac_cv_prog_CPP+set}" = set; then :
3787 $as_echo_n "(cached) " >&6
3788 else
3789 # Double quotes because CPP needs to be expanded
3790 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3791 do
3792 ac_preproc_ok=false
3793 for ac_c_preproc_warn_flag in '' yes
3794 do
3795 # Use a header file that comes with gcc, so configuring glibc
3796 # with a fresh cross-compiler works.
3797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3798 # <limits.h> exists even on freestanding compilers.
3799 # On the NeXT, cc -E runs the code through the compiler's parser,
3800 # not just through cpp. "Syntax error" is here to catch this case.
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3803 #ifdef __STDC__
3804 # include <limits.h>
3805 #else
3806 # include <assert.h>
3807 #endif
3808 Syntax error
3809 _ACEOF
3810 if ac_fn_c_try_cpp "$LINENO"; then :
3812 else
3813 # Broken: fails on valid input.
3814 continue
3815 fi
3816 rm -f conftest.err conftest.$ac_ext
3818 # OK, works on sane cases. Now check whether nonexistent headers
3819 # can be detected and how.
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3822 #include <ac_nonexistent.h>
3823 _ACEOF
3824 if ac_fn_c_try_cpp "$LINENO"; then :
3825 # Broken: success on invalid input.
3826 continue
3827 else
3828 # Passes both tests.
3829 ac_preproc_ok=:
3830 break
3831 fi
3832 rm -f conftest.err conftest.$ac_ext
3834 done
3835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3836 rm -f conftest.err conftest.$ac_ext
3837 if $ac_preproc_ok; then :
3838 break
3839 fi
3841 done
3842 ac_cv_prog_CPP=$CPP
3844 fi
3845 CPP=$ac_cv_prog_CPP
3846 else
3847 ac_cv_prog_CPP=$CPP
3848 fi
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3850 $as_echo "$CPP" >&6; }
3851 ac_preproc_ok=false
3852 for ac_c_preproc_warn_flag in '' yes
3853 do
3854 # Use a header file that comes with gcc, so configuring glibc
3855 # with a fresh cross-compiler works.
3856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3857 # <limits.h> exists even on freestanding compilers.
3858 # On the NeXT, cc -E runs the code through the compiler's parser,
3859 # not just through cpp. "Syntax error" is here to catch this case.
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3862 #ifdef __STDC__
3863 # include <limits.h>
3864 #else
3865 # include <assert.h>
3866 #endif
3867 Syntax error
3868 _ACEOF
3869 if ac_fn_c_try_cpp "$LINENO"; then :
3871 else
3872 # Broken: fails on valid input.
3873 continue
3874 fi
3875 rm -f conftest.err conftest.$ac_ext
3877 # OK, works on sane cases. Now check whether nonexistent headers
3878 # can be detected and how.
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881 #include <ac_nonexistent.h>
3882 _ACEOF
3883 if ac_fn_c_try_cpp "$LINENO"; then :
3884 # Broken: success on invalid input.
3885 continue
3886 else
3887 # Passes both tests.
3888 ac_preproc_ok=:
3889 break
3890 fi
3891 rm -f conftest.err conftest.$ac_ext
3893 done
3894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3895 rm -f conftest.err conftest.$ac_ext
3896 if $ac_preproc_ok; then :
3898 else
3899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3902 See \`config.log' for more details." "$LINENO" 5; }
3903 fi
3905 ac_ext=c
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3913 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3914 if test "${ac_cv_path_GREP+set}" = set; then :
3915 $as_echo_n "(cached) " >&6
3916 else
3917 if test -z "$GREP"; then
3918 ac_path_GREP_found=false
3919 # Loop through the user's path and test for each of PROGNAME-LIST
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3922 do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_prog in grep ggrep; do
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3928 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3929 # Check for GNU ac_path_GREP and select it if it is found.
3930 # Check for GNU $ac_path_GREP
3931 case `"$ac_path_GREP" --version 2>&1` in
3932 *GNU*)
3933 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3934 *)
3935 ac_count=0
3936 $as_echo_n 0123456789 >"conftest.in"
3937 while :
3938 do
3939 cat "conftest.in" "conftest.in" >"conftest.tmp"
3940 mv "conftest.tmp" "conftest.in"
3941 cp "conftest.in" "conftest.nl"
3942 $as_echo 'GREP' >> "conftest.nl"
3943 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3945 as_fn_arith $ac_count + 1 && ac_count=$as_val
3946 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3947 # Best one so far, save it but keep looking for a better one
3948 ac_cv_path_GREP="$ac_path_GREP"
3949 ac_path_GREP_max=$ac_count
3950 fi
3951 # 10*(2^10) chars as input seems more than enough
3952 test $ac_count -gt 10 && break
3953 done
3954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3955 esac
3957 $ac_path_GREP_found && break 3
3958 done
3959 done
3960 done
3961 IFS=$as_save_IFS
3962 if test -z "$ac_cv_path_GREP"; then
3963 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3964 fi
3965 else
3966 ac_cv_path_GREP=$GREP
3967 fi
3969 fi
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3971 $as_echo "$ac_cv_path_GREP" >&6; }
3972 GREP="$ac_cv_path_GREP"
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3976 $as_echo_n "checking for egrep... " >&6; }
3977 if test "${ac_cv_path_EGREP+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3981 then ac_cv_path_EGREP="$GREP -E"
3982 else
3983 if test -z "$EGREP"; then
3984 ac_path_EGREP_found=false
3985 # Loop through the user's path and test for each of PROGNAME-LIST
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3988 do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_prog in egrep; do
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3994 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3995 # Check for GNU ac_path_EGREP and select it if it is found.
3996 # Check for GNU $ac_path_EGREP
3997 case `"$ac_path_EGREP" --version 2>&1` in
3998 *GNU*)
3999 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4000 *)
4001 ac_count=0
4002 $as_echo_n 0123456789 >"conftest.in"
4003 while :
4004 do
4005 cat "conftest.in" "conftest.in" >"conftest.tmp"
4006 mv "conftest.tmp" "conftest.in"
4007 cp "conftest.in" "conftest.nl"
4008 $as_echo 'EGREP' >> "conftest.nl"
4009 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4011 as_fn_arith $ac_count + 1 && ac_count=$as_val
4012 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4013 # Best one so far, save it but keep looking for a better one
4014 ac_cv_path_EGREP="$ac_path_EGREP"
4015 ac_path_EGREP_max=$ac_count
4016 fi
4017 # 10*(2^10) chars as input seems more than enough
4018 test $ac_count -gt 10 && break
4019 done
4020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4021 esac
4023 $ac_path_EGREP_found && break 3
4024 done
4025 done
4026 done
4027 IFS=$as_save_IFS
4028 if test -z "$ac_cv_path_EGREP"; then
4029 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4030 fi
4031 else
4032 ac_cv_path_EGREP=$EGREP
4033 fi
4035 fi
4036 fi
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4038 $as_echo "$ac_cv_path_EGREP" >&6; }
4039 EGREP="$ac_cv_path_EGREP"
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4043 $as_echo_n "checking for ANSI C header files... " >&6; }
4044 if test "${ac_cv_header_stdc+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049 #include <stdlib.h>
4050 #include <stdarg.h>
4051 #include <string.h>
4052 #include <float.h>
4054 int
4055 main ()
4059 return 0;
4061 _ACEOF
4062 if ac_fn_c_try_compile "$LINENO"; then :
4063 ac_cv_header_stdc=yes
4064 else
4065 ac_cv_header_stdc=no
4066 fi
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 if test $ac_cv_header_stdc = yes; then
4070 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4073 #include <string.h>
4075 _ACEOF
4076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4077 $EGREP "memchr" >/dev/null 2>&1; then :
4079 else
4080 ac_cv_header_stdc=no
4081 fi
4082 rm -f conftest*
4084 fi
4086 if test $ac_cv_header_stdc = yes; then
4087 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4090 #include <stdlib.h>
4092 _ACEOF
4093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4094 $EGREP "free" >/dev/null 2>&1; then :
4096 else
4097 ac_cv_header_stdc=no
4098 fi
4099 rm -f conftest*
4101 fi
4103 if test $ac_cv_header_stdc = yes; then
4104 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4105 if test "$cross_compiling" = yes; then :
4107 else
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110 #include <ctype.h>
4111 #include <stdlib.h>
4112 #if ((' ' & 0x0FF) == 0x020)
4113 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4114 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4115 #else
4116 # define ISLOWER(c) \
4117 (('a' <= (c) && (c) <= 'i') \
4118 || ('j' <= (c) && (c) <= 'r') \
4119 || ('s' <= (c) && (c) <= 'z'))
4120 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4121 #endif
4123 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4124 int
4125 main ()
4127 int i;
4128 for (i = 0; i < 256; i++)
4129 if (XOR (islower (i), ISLOWER (i))
4130 || toupper (i) != TOUPPER (i))
4131 return 2;
4132 return 0;
4134 _ACEOF
4135 if ac_fn_c_try_run "$LINENO"; then :
4137 else
4138 ac_cv_header_stdc=no
4139 fi
4140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4141 conftest.$ac_objext conftest.beam conftest.$ac_ext
4142 fi
4144 fi
4145 fi
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4147 $as_echo "$ac_cv_header_stdc" >&6; }
4148 if test $ac_cv_header_stdc = yes; then
4150 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4152 fi
4154 if test -n "$ac_tool_prefix"; then
4155 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4156 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4158 $as_echo_n "checking for $ac_word... " >&6; }
4159 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 if test -n "$RANLIB"; then
4163 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168 IFS=$as_save_IFS
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4172 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 break 2
4175 fi
4176 done
4177 done
4178 IFS=$as_save_IFS
4180 fi
4181 fi
4182 RANLIB=$ac_cv_prog_RANLIB
4183 if test -n "$RANLIB"; then
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4185 $as_echo "$RANLIB" >&6; }
4186 else
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 $as_echo "no" >&6; }
4189 fi
4192 fi
4193 if test -z "$ac_cv_prog_RANLIB"; then
4194 ac_ct_RANLIB=$RANLIB
4195 # Extract the first word of "ranlib", so it can be a program name with args.
4196 set dummy ranlib; ac_word=$2
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4198 $as_echo_n "checking for $ac_word... " >&6; }
4199 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 if test -n "$ac_ct_RANLIB"; then
4203 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4204 else
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4207 do
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212 ac_cv_prog_ac_ct_RANLIB="ranlib"
4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 break 2
4215 fi
4216 done
4217 done
4218 IFS=$as_save_IFS
4220 fi
4221 fi
4222 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4223 if test -n "$ac_ct_RANLIB"; then
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4225 $as_echo "$ac_ct_RANLIB" >&6; }
4226 else
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228 $as_echo "no" >&6; }
4229 fi
4231 if test "x$ac_ct_RANLIB" = x; then
4232 RANLIB=":"
4233 else
4234 case $cross_compiling:$ac_tool_warned in
4235 yes:)
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4238 ac_tool_warned=yes ;;
4239 esac
4240 RANLIB=$ac_ct_RANLIB
4241 fi
4242 else
4243 RANLIB="$ac_cv_prog_RANLIB"
4244 fi
4253 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4254 if test -n "$ac_tool_prefix"; then
4255 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4256 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258 $as_echo_n "checking for $ac_word... " >&6; }
4259 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 case $PKG_CONFIG in
4263 [\\/]* | ?:[\\/]*)
4264 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4265 ;;
4266 *)
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4269 do
4270 IFS=$as_save_IFS
4271 test -z "$as_dir" && as_dir=.
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4274 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4276 break 2
4277 fi
4278 done
4279 done
4280 IFS=$as_save_IFS
4282 ;;
4283 esac
4284 fi
4285 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4286 if test -n "$PKG_CONFIG"; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4288 $as_echo "$PKG_CONFIG" >&6; }
4289 else
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 $as_echo "no" >&6; }
4292 fi
4295 fi
4296 if test -z "$ac_cv_path_PKG_CONFIG"; then
4297 ac_pt_PKG_CONFIG=$PKG_CONFIG
4298 # Extract the first word of "pkg-config", so it can be a program name with args.
4299 set dummy pkg-config; ac_word=$2
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301 $as_echo_n "checking for $ac_word... " >&6; }
4302 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 case $ac_pt_PKG_CONFIG in
4306 [\\/]* | ?:[\\/]*)
4307 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4308 ;;
4309 *)
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4312 do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 break 2
4320 fi
4321 done
4322 done
4323 IFS=$as_save_IFS
4325 ;;
4326 esac
4327 fi
4328 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4329 if test -n "$ac_pt_PKG_CONFIG"; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4331 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4332 else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4335 fi
4337 if test "x$ac_pt_PKG_CONFIG" = x; then
4338 PKG_CONFIG=""
4339 else
4340 case $cross_compiling:$ac_tool_warned in
4341 yes:)
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4344 ac_tool_warned=yes ;;
4345 esac
4346 PKG_CONFIG=$ac_pt_PKG_CONFIG
4347 fi
4348 else
4349 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4350 fi
4352 fi
4353 if test -n "$PKG_CONFIG"; then
4354 _pkg_min_version=0.9.0
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4356 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4357 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4359 $as_echo "yes" >&6; }
4360 else
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4363 PKG_CONFIG=""
4364 fi
4365 fi
4367 pkg_failed=no
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
4369 $as_echo_n "checking for GLIB... " >&6; }
4371 if test -n "$GLIB_CFLAGS"; then
4372 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
4373 elif test -n "$PKG_CONFIG"; then
4374 if test -n "$PKG_CONFIG" && \
4375 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
4376 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
4377 ac_status=$?
4378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4379 test $ac_status = 0; }; then
4380 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
4381 else
4382 pkg_failed=yes
4383 fi
4384 else
4385 pkg_failed=untried
4386 fi
4387 if test -n "$GLIB_LIBS"; then
4388 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
4389 elif test -n "$PKG_CONFIG"; then
4390 if test -n "$PKG_CONFIG" && \
4391 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
4392 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
4393 ac_status=$?
4394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4395 test $ac_status = 0; }; then
4396 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
4397 else
4398 pkg_failed=yes
4399 fi
4400 else
4401 pkg_failed=untried
4402 fi
4406 if test $pkg_failed = yes; then
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408 $as_echo "no" >&6; }
4410 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4411 _pkg_short_errors_supported=yes
4412 else
4413 _pkg_short_errors_supported=no
4414 fi
4415 if test $_pkg_short_errors_supported = yes; then
4416 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
4417 else
4418 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
4419 fi
4420 # Put the nasty error message in config.log where it belongs
4421 echo "$GLIB_PKG_ERRORS" >&5
4423 as_fn_error "Package requirements (glib-2.0) were not met:
4425 $GLIB_PKG_ERRORS
4427 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4428 installed software in a non-standard prefix.
4430 Alternatively, you may set the environment variables GLIB_CFLAGS
4431 and GLIB_LIBS to avoid the need to call pkg-config.
4432 See the pkg-config man page for more details." "$LINENO" 5
4433 elif test $pkg_failed = untried; then
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4438 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
4439 is in your PATH or set the PKG_CONFIG environment variable to the full
4440 path to pkg-config.
4442 Alternatively, you may set the environment variables GLIB_CFLAGS
4443 and GLIB_LIBS to avoid the need to call pkg-config.
4444 See the pkg-config man page for more details.
4446 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4447 See \`config.log' for more details." "$LINENO" 5; }
4448 else
4449 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
4450 GLIB_LIBS=$pkg_cv_GLIB_LIBS
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4452 $as_echo "yes" >&6; }
4454 fi
4458 # Check whether --enable-resolver was given.
4459 if test "${enable_resolver+set}" = set; then :
4460 enableval=$enable_resolver; if test "$enable_resolver" != 'no'; then
4461 resolver_enabled='yes'
4462 fi
4463 else
4464 resolver_enabled='yes'
4466 fi
4469 if test "$resolver_enabled" = yes; then
4471 $as_echo "#define ENABLE_RESOLVER 1" >>confdefs.h
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lc" >&5
4474 $as_echo_n "checking for res_search in -lc... " >&6; }
4475 if test "${ac_cv_lib_c_res_search+set}" = set; then :
4476 $as_echo_n "(cached) " >&6
4477 else
4478 ac_check_lib_save_LIBS=$LIBS
4479 LIBS="-lc $LIBS"
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4483 /* Override any GCC internal prototype to avoid an error.
4484 Use char because int might match the return type of a GCC
4485 builtin and then its argument prototype would still apply. */
4486 #ifdef __cplusplus
4487 extern "C"
4488 #endif
4489 char res_search ();
4490 int
4491 main ()
4493 return res_search ();
4495 return 0;
4497 _ACEOF
4498 if ac_fn_c_try_link "$LINENO"; then :
4499 ac_cv_lib_c_res_search=yes
4500 else
4501 ac_cv_lib_c_res_search=no
4502 fi
4503 rm -f core conftest.err conftest.$ac_objext \
4504 conftest$ac_exeext conftest.$ac_ext
4505 LIBS=$ac_check_lib_save_LIBS
4506 fi
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_res_search" >&5
4508 $as_echo "$ac_cv_lib_c_res_search" >&6; }
4509 if test "x$ac_cv_lib_c_res_search" = x""yes; then :
4510 need_resolv=no
4511 else
4512 need_resolv=yes
4513 fi
4515 if test "$need_resolv" = yes; then
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
4517 $as_echo_n "checking for res_search in -lresolv... " >&6; }
4518 if test "${ac_cv_lib_resolv_res_search+set}" = set; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 ac_check_lib_save_LIBS=$LIBS
4522 LIBS="-lresolv $LIBS"
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4526 /* Override any GCC internal prototype to avoid an error.
4527 Use char because int might match the return type of a GCC
4528 builtin and then its argument prototype would still apply. */
4529 #ifdef __cplusplus
4530 extern "C"
4531 #endif
4532 char res_search ();
4533 int
4534 main ()
4536 return res_search ();
4538 return 0;
4540 _ACEOF
4541 if ac_fn_c_try_link "$LINENO"; then :
4542 ac_cv_lib_resolv_res_search=yes
4543 else
4544 ac_cv_lib_resolv_res_search=no
4545 fi
4546 rm -f core conftest.err conftest.$ac_objext \
4547 conftest$ac_exeext conftest.$ac_ext
4548 LIBS=$ac_check_lib_save_LIBS
4549 fi
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
4551 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
4552 if test "x$ac_cv_lib_resolv_res_search" = x""yes; then :
4553 has_resolv=yes; RESOLV_LIBS="-lresolv"
4554 else
4555 has_resolv=no
4556 fi
4558 if test "$has_resolv" = no; then
4559 saved_LIBS="$LIBS"
4560 LIBS="$LIBS -lresolv"
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
4562 $as_echo_n "checking for res_search in -lresolv... " >&6; }
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4565 #include <resolv.h>
4566 int
4567 main ()
4569 res_search (0, 0, 0, 0, 0);
4571 return 0;
4573 _ACEOF
4574 if ac_fn_c_try_link "$LINENO"; then :
4575 RESOLV_LIBS="-lresolv"; has_resolv=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4576 $as_echo "yes" >&6; }
4577 else
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4580 fi
4581 rm -f core conftest.err conftest.$ac_objext \
4582 conftest$ac_exeext conftest.$ac_ext;
4583 LIBS="$saved_LIBS"
4584 fi
4585 if test "$has_resolv" = no; then
4586 as_fn_error "\"no libresolv\"" "$LINENO" 5
4587 RESOLV_LIBS=''
4588 fi
4589 fi
4590 else
4591 RESOLV_LIBS=''
4592 fi
4595 for ac_func in getline
4596 do :
4597 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
4598 if test "x$ac_cv_func_getline" = x""yes; then :
4599 cat >>confdefs.h <<_ACEOF
4600 #define HAVE_GETLINE 1
4601 _ACEOF
4603 fi
4604 done
4607 for ac_func in fdatasync
4608 do :
4609 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
4610 if test "x$ac_cv_func_fdatasync" = x""yes; then :
4611 cat >>confdefs.h <<_ACEOF
4612 #define HAVE_FDATASYNC 1
4613 _ACEOF
4615 fi
4616 done
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4620 $as_echo_n "checking for ANSI C header files... " >&6; }
4621 if test "${ac_cv_header_stdc+set}" = set; then :
4622 $as_echo_n "(cached) " >&6
4623 else
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626 #include <stdlib.h>
4627 #include <stdarg.h>
4628 #include <string.h>
4629 #include <float.h>
4631 int
4632 main ()
4636 return 0;
4638 _ACEOF
4639 if ac_fn_c_try_compile "$LINENO"; then :
4640 ac_cv_header_stdc=yes
4641 else
4642 ac_cv_header_stdc=no
4643 fi
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646 if test $ac_cv_header_stdc = yes; then
4647 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4650 #include <string.h>
4652 _ACEOF
4653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4654 $EGREP "memchr" >/dev/null 2>&1; then :
4656 else
4657 ac_cv_header_stdc=no
4658 fi
4659 rm -f conftest*
4661 fi
4663 if test $ac_cv_header_stdc = yes; then
4664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4667 #include <stdlib.h>
4669 _ACEOF
4670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4671 $EGREP "free" >/dev/null 2>&1; then :
4673 else
4674 ac_cv_header_stdc=no
4675 fi
4676 rm -f conftest*
4678 fi
4680 if test $ac_cv_header_stdc = yes; then
4681 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4682 if test "$cross_compiling" = yes; then :
4684 else
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687 #include <ctype.h>
4688 #include <stdlib.h>
4689 #if ((' ' & 0x0FF) == 0x020)
4690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4692 #else
4693 # define ISLOWER(c) \
4694 (('a' <= (c) && (c) <= 'i') \
4695 || ('j' <= (c) && (c) <= 'r') \
4696 || ('s' <= (c) && (c) <= 'z'))
4697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4698 #endif
4700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4701 int
4702 main ()
4704 int i;
4705 for (i = 0; i < 256; i++)
4706 if (XOR (islower (i), ISLOWER (i))
4707 || toupper (i) != TOUPPER (i))
4708 return 2;
4709 return 0;
4711 _ACEOF
4712 if ac_fn_c_try_run "$LINENO"; then :
4714 else
4715 ac_cv_header_stdc=no
4716 fi
4717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4718 conftest.$ac_objext conftest.beam conftest.$ac_ext
4719 fi
4721 fi
4722 fi
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4724 $as_echo "$ac_cv_header_stdc" >&6; }
4725 if test $ac_cv_header_stdc = yes; then
4727 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4729 fi
4731 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4732 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4733 inttypes.h stdint.h unistd.h
4734 do :
4735 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4736 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4738 eval as_val=\$$as_ac_Header
4739 if test "x$as_val" = x""yes; then :
4740 cat >>confdefs.h <<_ACEOF
4741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4742 _ACEOF
4744 fi
4746 done
4749 for ac_header in fcntl.h sys/time.h syslog.h unistd.h
4750 do :
4751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4752 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4753 eval as_val=\$$as_ac_Header
4754 if test "x$as_val" = x""yes; then :
4755 cat >>confdefs.h <<_ACEOF
4756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4757 _ACEOF
4759 fi
4761 done
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4765 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4766 if test "${ac_cv_c_const+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4772 int
4773 main ()
4775 /* FIXME: Include the comments suggested by Paul. */
4776 #ifndef __cplusplus
4777 /* Ultrix mips cc rejects this. */
4778 typedef int charset[2];
4779 const charset cs;
4780 /* SunOS 4.1.1 cc rejects this. */
4781 char const *const *pcpcc;
4782 char **ppc;
4783 /* NEC SVR4.0.2 mips cc rejects this. */
4784 struct point {int x, y;};
4785 static struct point const zero = {0,0};
4786 /* AIX XL C 1.02.0.0 rejects this.
4787 It does not let you subtract one const X* pointer from another in
4788 an arm of an if-expression whose if-part is not a constant
4789 expression */
4790 const char *g = "string";
4791 pcpcc = &g + (g ? g-g : 0);
4792 /* HPUX 7.0 cc rejects these. */
4793 ++pcpcc;
4794 ppc = (char**) pcpcc;
4795 pcpcc = (char const *const *) ppc;
4796 { /* SCO 3.2v4 cc rejects this. */
4797 char *t;
4798 char const *s = 0 ? (char *) 0 : (char const *) 0;
4800 *t++ = 0;
4801 if (s) return 0;
4803 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4804 int x[] = {25, 17};
4805 const int *foo = &x[0];
4806 ++foo;
4808 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4809 typedef const int *iptr;
4810 iptr p = 0;
4811 ++p;
4813 { /* AIX XL C 1.02.0.0 rejects this saying
4814 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4815 struct s { int j; const int *ap[3]; };
4816 struct s *b; b->j = 5;
4818 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4819 const int foo = 10;
4820 if (!foo) return 0;
4822 return !cs[0] && !zero.x;
4823 #endif
4826 return 0;
4828 _ACEOF
4829 if ac_fn_c_try_compile "$LINENO"; then :
4830 ac_cv_c_const=yes
4831 else
4832 ac_cv_c_const=no
4833 fi
4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 fi
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4837 $as_echo "$ac_cv_c_const" >&6; }
4838 if test $ac_cv_c_const = no; then
4840 $as_echo "#define const /**/" >>confdefs.h
4842 fi
4844 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
4845 if test "x$ac_cv_type_pid_t" = x""yes; then :
4847 else
4849 cat >>confdefs.h <<_ACEOF
4850 #define pid_t int
4851 _ACEOF
4853 fi
4855 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4856 if test "x$ac_cv_type_size_t" = x""yes; then :
4858 else
4860 cat >>confdefs.h <<_ACEOF
4861 #define size_t unsigned int
4862 _ACEOF
4864 fi
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4867 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4868 if test "${ac_cv_header_time+set}" = set; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873 #include <sys/types.h>
4874 #include <sys/time.h>
4875 #include <time.h>
4877 int
4878 main ()
4880 if ((struct tm *) 0)
4881 return 0;
4883 return 0;
4885 _ACEOF
4886 if ac_fn_c_try_compile "$LINENO"; then :
4887 ac_cv_header_time=yes
4888 else
4889 ac_cv_header_time=no
4890 fi
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 fi
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4894 $as_echo "$ac_cv_header_time" >&6; }
4895 if test $ac_cv_header_time = yes; then
4897 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4899 fi
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4902 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4903 if test "${ac_cv_struct_tm+set}" = set; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4908 #include <sys/types.h>
4909 #include <time.h>
4911 int
4912 main ()
4914 struct tm tm;
4915 int *p = &tm.tm_sec;
4916 return !p;
4918 return 0;
4920 _ACEOF
4921 if ac_fn_c_try_compile "$LINENO"; then :
4922 ac_cv_struct_tm=time.h
4923 else
4924 ac_cv_struct_tm=sys/time.h
4925 fi
4926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927 fi
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4929 $as_echo "$ac_cv_struct_tm" >&6; }
4930 if test $ac_cv_struct_tm = sys/time.h; then
4932 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4934 fi
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
4938 $as_echo_n "checking for working POSIX fnmatch... " >&6; }
4939 if test "${ac_cv_func_fnmatch_works+set}" = set; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 # Some versions of Solaris, SCO, and the GNU C Library
4943 # have a broken or incompatible fnmatch.
4944 # So we run a test program. If we are cross-compiling, take no chance.
4945 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
4946 if test "$cross_compiling" = yes; then :
4947 ac_cv_func_fnmatch_works=cross
4948 else
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951 #include <fnmatch.h>
4952 # define y(a, b, c) (fnmatch (a, b, c) == 0)
4953 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
4955 int
4956 main ()
4958 return
4959 (!(y ("a*", "abc", 0)
4960 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
4961 && y ("a\\\\bc", "abc", 0)
4962 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
4963 && y ("*x", ".x", 0)
4964 && n ("*x", ".x", FNM_PERIOD)
4965 && 1));
4967 return 0;
4969 _ACEOF
4970 if ac_fn_c_try_run "$LINENO"; then :
4971 ac_cv_func_fnmatch_works=yes
4972 else
4973 ac_cv_func_fnmatch_works=no
4974 fi
4975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4976 conftest.$ac_objext conftest.beam conftest.$ac_ext
4977 fi
4979 fi
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
4981 $as_echo "$ac_cv_func_fnmatch_works" >&6; }
4982 if test $ac_cv_func_fnmatch_works = yes; then :
4984 $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
4986 fi
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4990 $as_echo_n "checking return type of signal handlers... " >&6; }
4991 if test "${ac_cv_type_signal+set}" = set; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996 #include <sys/types.h>
4997 #include <signal.h>
4999 int
5000 main ()
5002 return *(signal (0, 0)) (0) == 1;
5004 return 0;
5006 _ACEOF
5007 if ac_fn_c_try_compile "$LINENO"; then :
5008 ac_cv_type_signal=int
5009 else
5010 ac_cv_type_signal=void
5011 fi
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013 fi
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5015 $as_echo "$ac_cv_type_signal" >&6; }
5017 cat >>confdefs.h <<_ACEOF
5018 #define RETSIGTYPE $ac_cv_type_signal
5019 _ACEOF
5022 for ac_func in strftime
5023 do :
5024 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
5025 if test "x$ac_cv_func_strftime" = x""yes; then :
5026 cat >>confdefs.h <<_ACEOF
5027 #define HAVE_STRFTIME 1
5028 _ACEOF
5030 else
5031 # strftime is in -lintl on SCO UNIX.
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
5033 $as_echo_n "checking for strftime in -lintl... " >&6; }
5034 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 ac_check_lib_save_LIBS=$LIBS
5038 LIBS="-lintl $LIBS"
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5042 /* Override any GCC internal prototype to avoid an error.
5043 Use char because int might match the return type of a GCC
5044 builtin and then its argument prototype would still apply. */
5045 #ifdef __cplusplus
5046 extern "C"
5047 #endif
5048 char strftime ();
5049 int
5050 main ()
5052 return strftime ();
5054 return 0;
5056 _ACEOF
5057 if ac_fn_c_try_link "$LINENO"; then :
5058 ac_cv_lib_intl_strftime=yes
5059 else
5060 ac_cv_lib_intl_strftime=no
5061 fi
5062 rm -f core conftest.err conftest.$ac_objext \
5063 conftest$ac_exeext conftest.$ac_ext
5064 LIBS=$ac_check_lib_save_LIBS
5065 fi
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
5067 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
5068 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
5069 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
5071 LIBS="-lintl $LIBS"
5072 fi
5074 fi
5075 done
5077 for ac_func in vprintf
5078 do :
5079 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
5080 if test "x$ac_cv_func_vprintf" = x""yes; then :
5081 cat >>confdefs.h <<_ACEOF
5082 #define HAVE_VPRINTF 1
5083 _ACEOF
5085 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5086 if test "x$ac_cv_func__doprnt" = x""yes; then :
5088 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5090 fi
5092 fi
5093 done
5096 for ac_func in select socket strerror strstr
5097 do :
5098 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5099 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5100 eval as_val=\$$as_ac_var
5101 if test "x$as_val" = x""yes; then :
5102 cat >>confdefs.h <<_ACEOF
5103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5104 _ACEOF
5106 fi
5107 done
5111 # Check whether --with-user was given.
5112 if test "${with_user+set}" = set; then :
5113 withval=$with_user;
5114 fi
5116 if test "x$with_user" = 'x'; then
5117 with_user='mail'
5118 fi
5121 # Check whether --with-group was given.
5122 if test "${with_group+set}" = set; then :
5123 withval=$with_group;
5124 fi
5126 if test "x$with_group" = 'x'; then
5127 with_group='trusted'
5128 fi
5130 # Check whether --enable-debug was given.
5131 if test "${enable_debug+set}" = set; then :
5132 enableval=$enable_debug; if test "x$enable_debug" != 'xno'; then
5133 debug_enabled='yes'
5134 fi
5135 else
5136 debug_enabled='yes'
5138 fi
5140 if test "x$debug_enabled" = xyes; then
5142 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
5144 fi
5147 cat >>confdefs.h <<_ACEOF
5148 #define DEF_MAIL_USER "${with_user}"
5149 _ACEOF
5153 cat >>confdefs.h <<_ACEOF
5154 #define DEF_MAIL_GROUP "${with_group}"
5155 _ACEOF
5160 # Check whether --with-glib_static was given.
5161 if test "${with_glib_static+set}" = set; then :
5162 withval=$with_glib_static;
5163 fi
5165 if test "x$with_glib_static" != 'x'; then
5166 GLIB_LIBS=$with_glib_static
5168 fi
5170 MD5_LIBS=''
5171 BASE64_LIBS=''
5173 # Check whether --enable-smtp_server was given.
5174 if test "${enable_smtp_server+set}" = set; then :
5175 enableval=$enable_smtp_server; if test "x$enable_smtp_server" != 'xno'; then
5176 smtp_server_enabled='yes'
5177 fi
5178 else
5179 smtp_server_enabled='yes'
5181 fi
5183 if test "x$smtp_server_enabled" = xyes; then
5185 $as_echo "#define ENABLE_SMTP_SERVER 1" >>confdefs.h
5187 fi
5189 # Check whether --enable-pop3 was given.
5190 if test "${enable_pop3+set}" = set; then :
5191 enableval=$enable_pop3; if test "x$enable_pop3" != 'xno'; then
5192 pop3_enabled='yes'
5193 fi
5194 else
5195 pop3_enabled='yes'
5197 fi
5199 if test "x$pop3_enabled" = xyes; then
5201 $as_echo "#define ENABLE_POP3 1" >>confdefs.h
5203 # MD5_LIBS='md5/libmd5c.a'
5204 need_md5='yes'
5205 fi
5207 # Check whether --enable-auth was given.
5208 if test "${enable_auth+set}" = set; then :
5209 enableval=$enable_auth; if test "x$enable_auth" != 'xno'; then
5210 auth_enabled='yes'
5211 fi
5212 fi
5214 if test "x$auth_enabled" = xyes; then
5216 $as_echo "#define ENABLE_AUTH 1" >>confdefs.h
5218 BASE64_LIBS='base64/libbase64.a'
5219 # MD5_LIBS='md5/libmd5c.a'
5220 need_md5='yes'
5221 fi
5224 # Check whether --enable-maildir was given.
5225 if test "${enable_maildir+set}" = set; then :
5226 enableval=$enable_maildir; if test "x$enable_maildir" != 'xno'; then
5227 maildir_enabled='yes'
5228 fi
5229 fi
5231 if test "x$maildir_enabled" = xyes; then
5233 $as_echo "#define ENABLE_MAILDIR 1" >>confdefs.h
5235 fi
5238 # Check whether --with-libcrypto was given.
5239 if test "${with_libcrypto+set}" = set; then :
5240 withval=$with_libcrypto;
5241 fi
5243 if test "x$with_libcrypto" != 'xyes'; then
5244 with_libcrypto='no'
5245 fi
5247 if test "x$need_md5" = 'xyes'; then
5248 if test "x$with_libcrypto" = "xyes"; then
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5 in -lcrypto" >&5
5250 $as_echo_n "checking for MD5 in -lcrypto... " >&6; }
5251 if test "${ac_cv_lib_crypto_MD5+set}" = set; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 ac_check_lib_save_LIBS=$LIBS
5255 LIBS="-lcrypto $LIBS"
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h. */
5259 /* Override any GCC internal prototype to avoid an error.
5260 Use char because int might match the return type of a GCC
5261 builtin and then its argument prototype would still apply. */
5262 #ifdef __cplusplus
5263 extern "C"
5264 #endif
5265 char MD5 ();
5266 int
5267 main ()
5269 return MD5 ();
5271 return 0;
5273 _ACEOF
5274 if ac_fn_c_try_link "$LINENO"; then :
5275 ac_cv_lib_crypto_MD5=yes
5276 else
5277 ac_cv_lib_crypto_MD5=no
5278 fi
5279 rm -f core conftest.err conftest.$ac_objext \
5280 conftest$ac_exeext conftest.$ac_ext
5281 LIBS=$ac_check_lib_save_LIBS
5282 fi
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_MD5" >&5
5284 $as_echo "$ac_cv_lib_crypto_MD5" >&6; }
5285 if test "x$ac_cv_lib_crypto_MD5" = x""yes; then :
5286 has_crypto='yes'
5287 else
5288 as_fn_error "'no libcrypto'" "$LINENO" 5
5289 fi
5291 if test "x$has_crypto" = 'xyes'; then
5293 $as_echo "#define USE_LIB_CRYPTO 1" >>confdefs.h
5295 MD5_LIBS='-lcrypto'
5296 fi
5297 else
5298 MD5_LIBS='md5/libmd5c.a'
5299 fi
5300 fi
5303 IDENT_LIBS=''
5304 # Check whether --enable-ident was given.
5305 if test "${enable_ident+set}" = set; then :
5306 enableval=$enable_ident; if test "x$enable_ident" != 'xno'; then
5307 ident_enabled='yes'
5308 fi
5309 fi
5312 if test "x$ident_enabled" = xyes; then
5314 $as_echo "#define ENABLE_IDENT 1" >>confdefs.h
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ident_id in -lident" >&5
5317 $as_echo_n "checking for ident_id in -lident... " >&6; }
5318 if test "${ac_cv_lib_ident_ident_id+set}" = set; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 ac_check_lib_save_LIBS=$LIBS
5322 LIBS="-lident $LIBS"
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5326 /* Override any GCC internal prototype to avoid an error.
5327 Use char because int might match the return type of a GCC
5328 builtin and then its argument prototype would still apply. */
5329 #ifdef __cplusplus
5330 extern "C"
5331 #endif
5332 char ident_id ();
5333 int
5334 main ()
5336 return ident_id ();
5338 return 0;
5340 _ACEOF
5341 if ac_fn_c_try_link "$LINENO"; then :
5342 ac_cv_lib_ident_ident_id=yes
5343 else
5344 ac_cv_lib_ident_ident_id=no
5345 fi
5346 rm -f core conftest.err conftest.$ac_objext \
5347 conftest$ac_exeext conftest.$ac_ext
5348 LIBS=$ac_check_lib_save_LIBS
5349 fi
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ident_ident_id" >&5
5351 $as_echo "$ac_cv_lib_ident_ident_id" >&6; }
5352 if test "x$ac_cv_lib_ident_ident_id" = x""yes; then :
5353 IDENT_LIBS='-lident'
5354 else
5355 IDENT_LIBS='libident/libident.a'
5356 fi
5358 fi
5361 # Check whether --enable-mserver was given.
5362 if test "${enable_mserver+set}" = set; then :
5363 enableval=$enable_mserver; if test "x$enable_mserver" != 'xno'; then
5364 mserver_enabled='yes'
5365 fi
5366 fi
5368 if test "x$mserver_enabled" = xyes; then
5370 $as_echo "#define ENABLE_MSERVER 1" >>confdefs.h
5372 fi
5375 # Check whether --with-liblockfile was given.
5376 if test "${with_liblockfile+set}" = set; then :
5377 withval=$with_liblockfile;
5378 fi
5380 if test "x$with_liblockfile" != 'x'; then
5381 with_liblockfile='yes'
5382 fi
5383 if test "x$with_liblockfile" = xyes; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
5385 $as_echo_n "checking for maillock in -llockfile... " >&6; }
5386 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 ac_check_lib_save_LIBS=$LIBS
5390 LIBS="-llockfile $LIBS"
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5394 /* Override any GCC internal prototype to avoid an error.
5395 Use char because int might match the return type of a GCC
5396 builtin and then its argument prototype would still apply. */
5397 #ifdef __cplusplus
5398 extern "C"
5399 #endif
5400 char maillock ();
5401 int
5402 main ()
5404 return maillock ();
5406 return 0;
5408 _ACEOF
5409 if ac_fn_c_try_link "$LINENO"; then :
5410 ac_cv_lib_lockfile_maillock=yes
5411 else
5412 ac_cv_lib_lockfile_maillock=no
5413 fi
5414 rm -f core conftest.err conftest.$ac_objext \
5415 conftest$ac_exeext conftest.$ac_ext
5416 LIBS=$ac_check_lib_save_LIBS
5417 fi
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
5419 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
5420 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
5421 has_lockfile=yes
5422 else
5423 as_fn_error "\"no liblockfile\"" "$LINENO" 5
5424 fi
5426 LOCKFILE_LIBS='-llockfile'
5428 $as_echo "#define USE_LIBLOCKFILE 1" >>confdefs.h
5430 else
5431 LOCKFILE_LIBS=''
5432 fi
5437 # Check whether --with-logdir was given.
5438 if test "${with_logdir+set}" = set; then :
5439 withval=$with_logdir;
5440 else
5441 with_logdir='/var/log/masqmail/'
5443 fi
5448 # Check whether --with-spooldir was given.
5449 if test "${with_spooldir+set}" = set; then :
5450 withval=$with_spooldir;
5451 else
5452 with_spooldir='/var/spool/masqmail/'
5454 fi
5459 # Check whether --with-confdir was given.
5460 if test "${with_confdir+set}" = set; then :
5461 withval=$with_confdir;
5462 else
5463 with_confdir='/etc/masqmail'
5465 fi
5468 cat >>confdefs.h <<_ACEOF
5469 #define CONF_DIR "${with_confdir}"
5470 _ACEOF
5474 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5477 cat >>confdefs.h <<_ACEOF
5478 #define DATA_DIR "`eval eval echo $datadir`/masqmail"
5479 _ACEOF
5482 if test "x${exec_prefix}" != 'xNONE'; then
5484 cat >>confdefs.h <<_ACEOF
5485 #define SBINDIR "${exec_prefix}/sbin"
5486 _ACEOF
5488 else
5489 if test "x${prefix}" != 'xNONE'; then
5490 cat >>confdefs.h <<_ACEOF
5491 #define SBINDIR "${prefix}/sbin"
5492 _ACEOF
5494 else
5495 cat >>confdefs.h <<_ACEOF
5496 #define SBINDIR "/usr/sbin"
5497 _ACEOF
5499 fi
5500 fi
5502 ac_config_files="$ac_config_files Makefile src/Makefile src/base64/Makefile src/md5/Makefile src/libident/Makefile man/Makefile"
5504 cat >confcache <<\_ACEOF
5505 # This file is a shell script that caches the results of configure
5506 # tests run on this system so they can be shared between configure
5507 # scripts and configure runs, see configure's option --config-cache.
5508 # It is not useful on other systems. If it contains results you don't
5509 # want to keep, you may remove or edit it.
5511 # config.status only pays attention to the cache file if you give it
5512 # the --recheck option to rerun configure.
5514 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5515 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5516 # following values.
5518 _ACEOF
5520 # The following way of writing the cache mishandles newlines in values,
5521 # but we know of no workaround that is simple, portable, and efficient.
5522 # So, we kill variables containing newlines.
5523 # Ultrix sh set writes to stderr and can't be redirected directly,
5524 # and sets the high bit in the cache file unless we assign to the vars.
5526 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5527 eval ac_val=\$$ac_var
5528 case $ac_val in #(
5529 *${as_nl}*)
5530 case $ac_var in #(
5531 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5532 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5533 esac
5534 case $ac_var in #(
5535 _ | IFS | as_nl) ;; #(
5536 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5537 *) { eval $ac_var=; unset $ac_var;} ;;
5538 esac ;;
5539 esac
5540 done
5542 (set) 2>&1 |
5543 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5544 *${as_nl}ac_space=\ *)
5545 # `set' does not quote correctly, so add quotes: double-quote
5546 # substitution turns \\\\ into \\, and sed turns \\ into \.
5547 sed -n \
5548 "s/'/'\\\\''/g;
5549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5550 ;; #(
5551 *)
5552 # `set' quotes correctly as required by POSIX, so do not add quotes.
5553 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5554 ;;
5555 esac |
5556 sort
5557 ) |
5558 sed '
5559 /^ac_cv_env_/b end
5560 t clear
5561 :clear
5562 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5563 t end
5564 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5565 :end' >>confcache
5566 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5567 if test -w "$cache_file"; then
5568 test "x$cache_file" != "x/dev/null" &&
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5570 $as_echo "$as_me: updating cache $cache_file" >&6;}
5571 cat confcache >$cache_file
5572 else
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5574 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5575 fi
5576 fi
5577 rm -f confcache
5579 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5580 # Let make expand exec_prefix.
5581 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5583 DEFS=-DHAVE_CONFIG_H
5585 ac_libobjs=
5586 ac_ltlibobjs=
5587 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5588 # 1. Remove the extension, and $U if already installed.
5589 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5590 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5591 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5592 # will be set to the directory where LIBOBJS objects are built.
5593 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5594 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5595 done
5596 LIBOBJS=$ac_libobjs
5598 LTLIBOBJS=$ac_ltlibobjs
5601 if test -n "$EXEEXT"; then
5602 am__EXEEXT_TRUE=
5603 am__EXEEXT_FALSE='#'
5604 else
5605 am__EXEEXT_TRUE='#'
5606 am__EXEEXT_FALSE=
5607 fi
5609 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5610 as_fn_error "conditional \"AMDEP\" was never defined.
5611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5612 fi
5613 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5614 as_fn_error "conditional \"am__fastdepCC\" was never defined.
5615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5616 fi
5618 : ${CONFIG_STATUS=./config.status}
5619 ac_write_fail=0
5620 ac_clean_files_save=$ac_clean_files
5621 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5623 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5624 as_write_fail=0
5625 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5626 #! $SHELL
5627 # Generated by $as_me.
5628 # Run this file to recreate the current configuration.
5629 # Compiler output produced by configure, useful for debugging
5630 # configure, is in config.log if it exists.
5632 debug=false
5633 ac_cs_recheck=false
5634 ac_cs_silent=false
5636 SHELL=\${CONFIG_SHELL-$SHELL}
5637 export SHELL
5638 _ASEOF
5639 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5640 ## -------------------- ##
5641 ## M4sh Initialization. ##
5642 ## -------------------- ##
5644 # Be more Bourne compatible
5645 DUALCASE=1; export DUALCASE # for MKS sh
5646 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5647 emulate sh
5648 NULLCMD=:
5649 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5650 # is contrary to our usage. Disable this feature.
5651 alias -g '${1+"$@"}'='"$@"'
5652 setopt NO_GLOB_SUBST
5653 else
5654 case `(set -o) 2>/dev/null` in #(
5655 *posix*) :
5656 set -o posix ;; #(
5657 *) :
5658 ;;
5659 esac
5660 fi
5663 as_nl='
5665 export as_nl
5666 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5667 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5668 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5669 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5670 # Prefer a ksh shell builtin over an external printf program on Solaris,
5671 # but without wasting forks for bash or zsh.
5672 if test -z "$BASH_VERSION$ZSH_VERSION" \
5673 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5674 as_echo='print -r --'
5675 as_echo_n='print -rn --'
5676 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5677 as_echo='printf %s\n'
5678 as_echo_n='printf %s'
5679 else
5680 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5681 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5682 as_echo_n='/usr/ucb/echo -n'
5683 else
5684 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5685 as_echo_n_body='eval
5686 arg=$1;
5687 case $arg in #(
5688 *"$as_nl"*)
5689 expr "X$arg" : "X\\(.*\\)$as_nl";
5690 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5691 esac;
5692 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5694 export as_echo_n_body
5695 as_echo_n='sh -c $as_echo_n_body as_echo'
5696 fi
5697 export as_echo_body
5698 as_echo='sh -c $as_echo_body as_echo'
5699 fi
5701 # The user is always right.
5702 if test "${PATH_SEPARATOR+set}" != set; then
5703 PATH_SEPARATOR=:
5704 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5705 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5706 PATH_SEPARATOR=';'
5708 fi
5711 # IFS
5712 # We need space, tab and new line, in precisely that order. Quoting is
5713 # there to prevent editors from complaining about space-tab.
5714 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5715 # splitting by setting IFS to empty value.)
5716 IFS=" "" $as_nl"
5718 # Find who we are. Look in the path if we contain no directory separator.
5719 case $0 in #((
5720 *[\\/]* ) as_myself=$0 ;;
5721 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 for as_dir in $PATH
5723 do
5724 IFS=$as_save_IFS
5725 test -z "$as_dir" && as_dir=.
5726 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5727 done
5728 IFS=$as_save_IFS
5730 ;;
5731 esac
5732 # We did not find ourselves, most probably we were run as `sh COMMAND'
5733 # in which case we are not to be found in the path.
5734 if test "x$as_myself" = x; then
5735 as_myself=$0
5736 fi
5737 if test ! -f "$as_myself"; then
5738 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5739 exit 1
5740 fi
5742 # Unset variables that we do not need and which cause bugs (e.g. in
5743 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5744 # suppresses any "Segmentation fault" message there. '((' could
5745 # trigger a bug in pdksh 5.2.14.
5746 for as_var in BASH_ENV ENV MAIL MAILPATH
5747 do eval test x\${$as_var+set} = xset \
5748 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5749 done
5750 PS1='$ '
5751 PS2='> '
5752 PS4='+ '
5754 # NLS nuisances.
5755 LC_ALL=C
5756 export LC_ALL
5757 LANGUAGE=C
5758 export LANGUAGE
5760 # CDPATH.
5761 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5764 # as_fn_error ERROR [LINENO LOG_FD]
5765 # ---------------------------------
5766 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5767 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5768 # script with status $?, using 1 if that was 0.
5769 as_fn_error ()
5771 as_status=$?; test $as_status -eq 0 && as_status=1
5772 if test "$3"; then
5773 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5774 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5775 fi
5776 $as_echo "$as_me: error: $1" >&2
5777 as_fn_exit $as_status
5778 } # as_fn_error
5781 # as_fn_set_status STATUS
5782 # -----------------------
5783 # Set $? to STATUS, without forking.
5784 as_fn_set_status ()
5786 return $1
5787 } # as_fn_set_status
5789 # as_fn_exit STATUS
5790 # -----------------
5791 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5792 as_fn_exit ()
5794 set +e
5795 as_fn_set_status $1
5796 exit $1
5797 } # as_fn_exit
5799 # as_fn_unset VAR
5800 # ---------------
5801 # Portably unset VAR.
5802 as_fn_unset ()
5804 { eval $1=; unset $1;}
5806 as_unset=as_fn_unset
5807 # as_fn_append VAR VALUE
5808 # ----------------------
5809 # Append the text in VALUE to the end of the definition contained in VAR. Take
5810 # advantage of any shell optimizations that allow amortized linear growth over
5811 # repeated appends, instead of the typical quadratic growth present in naive
5812 # implementations.
5813 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5814 eval 'as_fn_append ()
5816 eval $1+=\$2
5817 }'
5818 else
5819 as_fn_append ()
5821 eval $1=\$$1\$2
5823 fi # as_fn_append
5825 # as_fn_arith ARG...
5826 # ------------------
5827 # Perform arithmetic evaluation on the ARGs, and store the result in the
5828 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5829 # must be portable across $(()) and expr.
5830 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5831 eval 'as_fn_arith ()
5833 as_val=$(( $* ))
5834 }'
5835 else
5836 as_fn_arith ()
5838 as_val=`expr "$@" || test $? -eq 1`
5840 fi # as_fn_arith
5843 if expr a : '\(a\)' >/dev/null 2>&1 &&
5844 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5845 as_expr=expr
5846 else
5847 as_expr=false
5848 fi
5850 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5851 as_basename=basename
5852 else
5853 as_basename=false
5854 fi
5856 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5857 as_dirname=dirname
5858 else
5859 as_dirname=false
5860 fi
5862 as_me=`$as_basename -- "$0" ||
5863 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5864 X"$0" : 'X\(//\)$' \| \
5865 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5866 $as_echo X/"$0" |
5867 sed '/^.*\/\([^/][^/]*\)\/*$/{
5868 s//\1/
5871 /^X\/\(\/\/\)$/{
5872 s//\1/
5875 /^X\/\(\/\).*/{
5876 s//\1/
5879 s/.*/./; q'`
5881 # Avoid depending upon Character Ranges.
5882 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5883 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5884 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5885 as_cr_digits='0123456789'
5886 as_cr_alnum=$as_cr_Letters$as_cr_digits
5888 ECHO_C= ECHO_N= ECHO_T=
5889 case `echo -n x` in #(((((
5890 -n*)
5891 case `echo 'xy\c'` in
5892 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5893 xy) ECHO_C='\c';;
5894 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5895 ECHO_T=' ';;
5896 esac;;
5897 *)
5898 ECHO_N='-n';;
5899 esac
5901 rm -f conf$$ conf$$.exe conf$$.file
5902 if test -d conf$$.dir; then
5903 rm -f conf$$.dir/conf$$.file
5904 else
5905 rm -f conf$$.dir
5906 mkdir conf$$.dir 2>/dev/null
5907 fi
5908 if (echo >conf$$.file) 2>/dev/null; then
5909 if ln -s conf$$.file conf$$ 2>/dev/null; then
5910 as_ln_s='ln -s'
5911 # ... but there are two gotchas:
5912 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5913 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5914 # In both cases, we have to default to `cp -p'.
5915 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5916 as_ln_s='cp -p'
5917 elif ln conf$$.file conf$$ 2>/dev/null; then
5918 as_ln_s=ln
5919 else
5920 as_ln_s='cp -p'
5921 fi
5922 else
5923 as_ln_s='cp -p'
5924 fi
5925 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5926 rmdir conf$$.dir 2>/dev/null
5929 # as_fn_mkdir_p
5930 # -------------
5931 # Create "$as_dir" as a directory, including parents if necessary.
5932 as_fn_mkdir_p ()
5935 case $as_dir in #(
5936 -*) as_dir=./$as_dir;;
5937 esac
5938 test -d "$as_dir" || eval $as_mkdir_p || {
5939 as_dirs=
5940 while :; do
5941 case $as_dir in #(
5942 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5943 *) as_qdir=$as_dir;;
5944 esac
5945 as_dirs="'$as_qdir' $as_dirs"
5946 as_dir=`$as_dirname -- "$as_dir" ||
5947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5948 X"$as_dir" : 'X\(//\)[^/]' \| \
5949 X"$as_dir" : 'X\(//\)$' \| \
5950 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5951 $as_echo X"$as_dir" |
5952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5953 s//\1/
5956 /^X\(\/\/\)[^/].*/{
5957 s//\1/
5960 /^X\(\/\/\)$/{
5961 s//\1/
5964 /^X\(\/\).*/{
5965 s//\1/
5968 s/.*/./; q'`
5969 test -d "$as_dir" && break
5970 done
5971 test -z "$as_dirs" || eval "mkdir $as_dirs"
5972 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5975 } # as_fn_mkdir_p
5976 if mkdir -p . 2>/dev/null; then
5977 as_mkdir_p='mkdir -p "$as_dir"'
5978 else
5979 test -d ./-p && rmdir ./-p
5980 as_mkdir_p=false
5981 fi
5983 if test -x / >/dev/null 2>&1; then
5984 as_test_x='test -x'
5985 else
5986 if ls -dL / >/dev/null 2>&1; then
5987 as_ls_L_option=L
5988 else
5989 as_ls_L_option=
5990 fi
5991 as_test_x='
5992 eval sh -c '\''
5993 if test -d "$1"; then
5994 test -d "$1/.";
5995 else
5996 case $1 in #(
5997 -*)set "./$1";;
5998 esac;
5999 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6000 ???[sx]*):;;*)false;;esac;fi
6001 '\'' sh
6003 fi
6004 as_executable_p=$as_test_x
6006 # Sed expression to map a string onto a valid CPP name.
6007 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6009 # Sed expression to map a string onto a valid variable name.
6010 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6013 exec 6>&1
6014 ## ----------------------------------- ##
6015 ## Main body of $CONFIG_STATUS script. ##
6016 ## ----------------------------------- ##
6017 _ASEOF
6018 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6021 # Save the log message, to keep $0 and so on meaningful, and to
6022 # report actual input values of CONFIG_FILES etc. instead of their
6023 # values after options handling.
6024 ac_log="
6025 This file was extended by masqmail $as_me 0.2.23, which was
6026 generated by GNU Autoconf 2.65. Invocation command line was
6028 CONFIG_FILES = $CONFIG_FILES
6029 CONFIG_HEADERS = $CONFIG_HEADERS
6030 CONFIG_LINKS = $CONFIG_LINKS
6031 CONFIG_COMMANDS = $CONFIG_COMMANDS
6032 $ $0 $@
6034 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6037 _ACEOF
6039 case $ac_config_files in *"
6040 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6041 esac
6043 case $ac_config_headers in *"
6044 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6045 esac
6048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6049 # Files that config.status was made for.
6050 config_files="$ac_config_files"
6051 config_headers="$ac_config_headers"
6052 config_commands="$ac_config_commands"
6054 _ACEOF
6056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6057 ac_cs_usage="\
6058 \`$as_me' instantiates files and other configuration actions
6059 from templates according to the current configuration. Unless the files
6060 and actions are specified as TAGs, all are instantiated by default.
6062 Usage: $0 [OPTION]... [TAG]...
6064 -h, --help print this help, then exit
6065 -V, --version print version number and configuration settings, then exit
6066 --config print configuration, then exit
6067 -q, --quiet, --silent
6068 do not print progress messages
6069 -d, --debug don't remove temporary files
6070 --recheck update $as_me by reconfiguring in the same conditions
6071 --file=FILE[:TEMPLATE]
6072 instantiate the configuration file FILE
6073 --header=FILE[:TEMPLATE]
6074 instantiate the configuration header FILE
6076 Configuration files:
6077 $config_files
6079 Configuration headers:
6080 $config_headers
6082 Configuration commands:
6083 $config_commands
6085 Report bugs to <meillo@marmaro.de>."
6087 _ACEOF
6088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6089 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6090 ac_cs_version="\\
6091 masqmail config.status 0.2.23
6092 configured by $0, generated by GNU Autoconf 2.65,
6093 with options \\"\$ac_cs_config\\"
6095 Copyright (C) 2009 Free Software Foundation, Inc.
6096 This config.status script is free software; the Free Software Foundation
6097 gives unlimited permission to copy, distribute and modify it."
6099 ac_pwd='$ac_pwd'
6100 srcdir='$srcdir'
6101 INSTALL='$INSTALL'
6102 MKDIR_P='$MKDIR_P'
6103 AWK='$AWK'
6104 test -n "\$AWK" || AWK=awk
6105 _ACEOF
6107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6108 # The default lists apply if the user does not specify any file.
6109 ac_need_defaults=:
6110 while test $# != 0
6111 do
6112 case $1 in
6113 --*=*)
6114 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6115 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6116 ac_shift=:
6117 ;;
6118 *)
6119 ac_option=$1
6120 ac_optarg=$2
6121 ac_shift=shift
6122 ;;
6123 esac
6125 case $ac_option in
6126 # Handling of the options.
6127 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6128 ac_cs_recheck=: ;;
6129 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6130 $as_echo "$ac_cs_version"; exit ;;
6131 --config | --confi | --conf | --con | --co | --c )
6132 $as_echo "$ac_cs_config"; exit ;;
6133 --debug | --debu | --deb | --de | --d | -d )
6134 debug=: ;;
6135 --file | --fil | --fi | --f )
6136 $ac_shift
6137 case $ac_optarg in
6138 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6139 esac
6140 as_fn_append CONFIG_FILES " '$ac_optarg'"
6141 ac_need_defaults=false;;
6142 --header | --heade | --head | --hea )
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_HEADERS " '$ac_optarg'"
6148 ac_need_defaults=false;;
6149 --he | --h)
6150 # Conflict between --help and --header
6151 as_fn_error "ambiguous option: \`$1'
6152 Try \`$0 --help' for more information.";;
6153 --help | --hel | -h )
6154 $as_echo "$ac_cs_usage"; exit ;;
6155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6156 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6157 ac_cs_silent=: ;;
6159 # This is an error.
6160 -*) as_fn_error "unrecognized option: \`$1'
6161 Try \`$0 --help' for more information." ;;
6163 *) as_fn_append ac_config_targets " $1"
6164 ac_need_defaults=false ;;
6166 esac
6167 shift
6168 done
6170 ac_configure_extra_args=
6172 if $ac_cs_silent; then
6173 exec 6>/dev/null
6174 ac_configure_extra_args="$ac_configure_extra_args --silent"
6175 fi
6177 _ACEOF
6178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6179 if \$ac_cs_recheck; then
6180 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6181 shift
6182 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6183 CONFIG_SHELL='$SHELL'
6184 export CONFIG_SHELL
6185 exec "\$@"
6186 fi
6188 _ACEOF
6189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6190 exec 5>>config.log
6192 echo
6193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6194 ## Running $as_me. ##
6195 _ASBOX
6196 $as_echo "$ac_log"
6197 } >&5
6199 _ACEOF
6200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6202 # INIT-COMMANDS
6204 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6206 _ACEOF
6208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6210 # Handling of arguments.
6211 for ac_config_target in $ac_config_targets
6212 do
6213 case $ac_config_target in
6214 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6215 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6216 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6217 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6218 "src/base64/Makefile") CONFIG_FILES="$CONFIG_FILES src/base64/Makefile" ;;
6219 "src/md5/Makefile") CONFIG_FILES="$CONFIG_FILES src/md5/Makefile" ;;
6220 "src/libident/Makefile") CONFIG_FILES="$CONFIG_FILES src/libident/Makefile" ;;
6221 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
6223 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6224 esac
6225 done
6228 # If the user did not use the arguments to specify the items to instantiate,
6229 # then the envvar interface is used. Set only those that are not.
6230 # We use the long form for the default assignment because of an extremely
6231 # bizarre bug on SunOS 4.1.3.
6232 if $ac_need_defaults; then
6233 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6234 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6235 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6236 fi
6238 # Have a temporary directory for convenience. Make it in the build tree
6239 # simply because there is no reason against having it here, and in addition,
6240 # creating and moving files from /tmp can sometimes cause problems.
6241 # Hook for its removal unless debugging.
6242 # Note that there is a small window in which the directory will not be cleaned:
6243 # after its creation but before its name has been assigned to `$tmp'.
6244 $debug ||
6246 tmp=
6247 trap 'exit_status=$?
6248 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6249 ' 0
6250 trap 'as_fn_exit 1' 1 2 13 15
6252 # Create a (secure) tmp directory for tmp files.
6255 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6256 test -n "$tmp" && test -d "$tmp"
6257 } ||
6259 tmp=./conf$$-$RANDOM
6260 (umask 077 && mkdir "$tmp")
6261 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6263 # Set up the scripts for CONFIG_FILES section.
6264 # No need to generate them if there are no CONFIG_FILES.
6265 # This happens for instance with `./config.status config.h'.
6266 if test -n "$CONFIG_FILES"; then
6269 ac_cr=`echo X | tr X '\015'`
6270 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6271 # But we know of no other shell where ac_cr would be empty at this
6272 # point, so we can use a bashism as a fallback.
6273 if test "x$ac_cr" = x; then
6274 eval ac_cr=\$\'\\r\'
6275 fi
6276 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6277 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6278 ac_cs_awk_cr='\r'
6279 else
6280 ac_cs_awk_cr=$ac_cr
6281 fi
6283 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6284 _ACEOF
6288 echo "cat >conf$$subs.awk <<_ACEOF" &&
6289 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6290 echo "_ACEOF"
6291 } >conf$$subs.sh ||
6292 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6293 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6294 ac_delim='%!_!# '
6295 for ac_last_try in false false false false false :; do
6296 . ./conf$$subs.sh ||
6297 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6299 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6300 if test $ac_delim_n = $ac_delim_num; then
6301 break
6302 elif $ac_last_try; then
6303 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6304 else
6305 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6306 fi
6307 done
6308 rm -f conf$$subs.sh
6310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6311 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6312 _ACEOF
6313 sed -n '
6315 s/^/S["/; s/!.*/"]=/
6318 s/^[^!]*!//
6319 :repl
6320 t repl
6321 s/'"$ac_delim"'$//
6322 t delim
6323 :nl
6325 s/\(.\{148\}\)..*/\1/
6326 t more1
6327 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6330 b repl
6331 :more1
6332 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6335 s/.\{148\}//
6336 t nl
6337 :delim
6339 s/\(.\{148\}\)..*/\1/
6340 t more2
6341 s/["\\]/\\&/g; s/^/"/; s/$/"/
6344 :more2
6345 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6348 s/.\{148\}//
6349 t delim
6350 ' <conf$$subs.awk | sed '
6351 /^[^""]/{
6353 s/\n//
6355 ' >>$CONFIG_STATUS || ac_write_fail=1
6356 rm -f conf$$subs.awk
6357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6358 _ACAWK
6359 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6360 for (key in S) S_is_set[key] = 1
6361 FS = ""
6365 line = $ 0
6366 nfields = split(line, field, "@")
6367 substed = 0
6368 len = length(field[1])
6369 for (i = 2; i < nfields; i++) {
6370 key = field[i]
6371 keylen = length(key)
6372 if (S_is_set[key]) {
6373 value = S[key]
6374 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6375 len += length(value) + length(field[++i])
6376 substed = 1
6377 } else
6378 len += 1 + keylen
6381 print line
6384 _ACAWK
6385 _ACEOF
6386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6387 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6388 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6389 else
6390 cat
6391 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6392 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6393 _ACEOF
6395 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6396 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6397 # trailing colons and then remove the whole line if VPATH becomes empty
6398 # (actually we leave an empty line to preserve line numbers).
6399 if test "x$srcdir" = x.; then
6400 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6401 s/:*\$(srcdir):*/:/
6402 s/:*\${srcdir}:*/:/
6403 s/:*@srcdir@:*/:/
6404 s/^\([^=]*=[ ]*\):*/\1/
6405 s/:*$//
6406 s/^[^=]*=[ ]*$//
6407 }'
6408 fi
6410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6411 fi # test -n "$CONFIG_FILES"
6413 # Set up the scripts for CONFIG_HEADERS section.
6414 # No need to generate them if there are no CONFIG_HEADERS.
6415 # This happens for instance with `./config.status Makefile'.
6416 if test -n "$CONFIG_HEADERS"; then
6417 cat >"$tmp/defines.awk" <<\_ACAWK ||
6418 BEGIN {
6419 _ACEOF
6421 # Transform confdefs.h into an awk script `defines.awk', embedded as
6422 # here-document in config.status, that substitutes the proper values into
6423 # config.h.in to produce config.h.
6425 # Create a delimiter string that does not exist in confdefs.h, to ease
6426 # handling of long lines.
6427 ac_delim='%!_!# '
6428 for ac_last_try in false false :; do
6429 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6430 if test -z "$ac_t"; then
6431 break
6432 elif $ac_last_try; then
6433 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6434 else
6435 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6436 fi
6437 done
6439 # For the awk script, D is an array of macro values keyed by name,
6440 # likewise P contains macro parameters if any. Preserve backslash
6441 # newline sequences.
6443 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6444 sed -n '
6445 s/.\{148\}/&'"$ac_delim"'/g
6446 t rset
6447 :rset
6448 s/^[ ]*#[ ]*define[ ][ ]*/ /
6449 t def
6451 :def
6452 s/\\$//
6453 t bsnl
6454 s/["\\]/\\&/g
6455 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6456 D["\1"]=" \3"/p
6457 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6459 :bsnl
6460 s/["\\]/\\&/g
6461 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6462 D["\1"]=" \3\\\\\\n"\\/p
6463 t cont
6464 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6465 t cont
6467 :cont
6469 s/.\{148\}/&'"$ac_delim"'/g
6470 t clear
6471 :clear
6472 s/\\$//
6473 t bsnlc
6474 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6476 :bsnlc
6477 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6478 b cont
6479 ' <confdefs.h | sed '
6480 s/'"$ac_delim"'/"\\\
6481 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6484 for (key in D) D_is_set[key] = 1
6485 FS = ""
6487 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6488 line = \$ 0
6489 split(line, arg, " ")
6490 if (arg[1] == "#") {
6491 defundef = arg[2]
6492 mac1 = arg[3]
6493 } else {
6494 defundef = substr(arg[1], 2)
6495 mac1 = arg[2]
6497 split(mac1, mac2, "(") #)
6498 macro = mac2[1]
6499 prefix = substr(line, 1, index(line, defundef) - 1)
6500 if (D_is_set[macro]) {
6501 # Preserve the white space surrounding the "#".
6502 print prefix "define", macro P[macro] D[macro]
6503 next
6504 } else {
6505 # Replace #undef with comments. This is necessary, for example,
6506 # in the case of _POSIX_SOURCE, which is predefined and required
6507 # on some systems where configure will not decide to define it.
6508 if (defundef == "undef") {
6509 print "/*", prefix defundef, macro, "*/"
6510 next
6514 { print }
6515 _ACAWK
6516 _ACEOF
6517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6518 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6519 fi # test -n "$CONFIG_HEADERS"
6522 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6523 shift
6524 for ac_tag
6525 do
6526 case $ac_tag in
6527 :[FHLC]) ac_mode=$ac_tag; continue;;
6528 esac
6529 case $ac_mode$ac_tag in
6530 :[FHL]*:*);;
6531 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6532 :[FH]-) ac_tag=-:-;;
6533 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6534 esac
6535 ac_save_IFS=$IFS
6536 IFS=:
6537 set x $ac_tag
6538 IFS=$ac_save_IFS
6539 shift
6540 ac_file=$1
6541 shift
6543 case $ac_mode in
6544 :L) ac_source=$1;;
6545 :[FH])
6546 ac_file_inputs=
6547 for ac_f
6548 do
6549 case $ac_f in
6550 -) ac_f="$tmp/stdin";;
6551 *) # Look for the file first in the build tree, then in the source tree
6552 # (if the path is not absolute). The absolute path cannot be DOS-style,
6553 # because $ac_f cannot contain `:'.
6554 test -f "$ac_f" ||
6555 case $ac_f in
6556 [\\/$]*) false;;
6557 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6558 esac ||
6559 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6560 esac
6561 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6562 as_fn_append ac_file_inputs " '$ac_f'"
6563 done
6565 # Let's still pretend it is `configure' which instantiates (i.e., don't
6566 # use $as_me), people would be surprised to read:
6567 # /* config.h. Generated by config.status. */
6568 configure_input='Generated from '`
6569 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6570 `' by configure.'
6571 if test x"$ac_file" != x-; then
6572 configure_input="$ac_file. $configure_input"
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6574 $as_echo "$as_me: creating $ac_file" >&6;}
6575 fi
6576 # Neutralize special characters interpreted by sed in replacement strings.
6577 case $configure_input in #(
6578 *\&* | *\|* | *\\* )
6579 ac_sed_conf_input=`$as_echo "$configure_input" |
6580 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6581 *) ac_sed_conf_input=$configure_input;;
6582 esac
6584 case $ac_tag in
6585 *:-:* | *:-) cat >"$tmp/stdin" \
6586 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6587 esac
6588 ;;
6589 esac
6591 ac_dir=`$as_dirname -- "$ac_file" ||
6592 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6593 X"$ac_file" : 'X\(//\)[^/]' \| \
6594 X"$ac_file" : 'X\(//\)$' \| \
6595 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6596 $as_echo X"$ac_file" |
6597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6598 s//\1/
6601 /^X\(\/\/\)[^/].*/{
6602 s//\1/
6605 /^X\(\/\/\)$/{
6606 s//\1/
6609 /^X\(\/\).*/{
6610 s//\1/
6613 s/.*/./; q'`
6614 as_dir="$ac_dir"; as_fn_mkdir_p
6615 ac_builddir=.
6617 case "$ac_dir" in
6618 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6619 *)
6620 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6621 # A ".." for each directory in $ac_dir_suffix.
6622 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6623 case $ac_top_builddir_sub in
6624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6626 esac ;;
6627 esac
6628 ac_abs_top_builddir=$ac_pwd
6629 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6630 # for backward compatibility:
6631 ac_top_builddir=$ac_top_build_prefix
6633 case $srcdir in
6634 .) # We are building in place.
6635 ac_srcdir=.
6636 ac_top_srcdir=$ac_top_builddir_sub
6637 ac_abs_top_srcdir=$ac_pwd ;;
6638 [\\/]* | ?:[\\/]* ) # Absolute name.
6639 ac_srcdir=$srcdir$ac_dir_suffix;
6640 ac_top_srcdir=$srcdir
6641 ac_abs_top_srcdir=$srcdir ;;
6642 *) # Relative name.
6643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6644 ac_top_srcdir=$ac_top_build_prefix$srcdir
6645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6646 esac
6647 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6650 case $ac_mode in
6651 :F)
6653 # CONFIG_FILE
6656 case $INSTALL in
6657 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6658 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6659 esac
6660 ac_MKDIR_P=$MKDIR_P
6661 case $MKDIR_P in
6662 [\\/$]* | ?:[\\/]* ) ;;
6663 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6664 esac
6665 _ACEOF
6667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6668 # If the template does not know about datarootdir, expand it.
6669 # FIXME: This hack should be removed a few years after 2.60.
6670 ac_datarootdir_hack=; ac_datarootdir_seen=
6671 ac_sed_dataroot='
6672 /datarootdir/ {
6676 /@datadir@/p
6677 /@docdir@/p
6678 /@infodir@/p
6679 /@localedir@/p
6680 /@mandir@/p'
6681 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6682 *datarootdir*) ac_datarootdir_seen=yes;;
6683 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6685 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6686 _ACEOF
6687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6688 ac_datarootdir_hack='
6689 s&@datadir@&$datadir&g
6690 s&@docdir@&$docdir&g
6691 s&@infodir@&$infodir&g
6692 s&@localedir@&$localedir&g
6693 s&@mandir@&$mandir&g
6694 s&\\\${datarootdir}&$datarootdir&g' ;;
6695 esac
6696 _ACEOF
6698 # Neutralize VPATH when `$srcdir' = `.'.
6699 # Shell code in configure.ac might set extrasub.
6700 # FIXME: do we really want to maintain this feature?
6701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6702 ac_sed_extra="$ac_vpsub
6703 $extrasub
6704 _ACEOF
6705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6706 :t
6707 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6708 s|@configure_input@|$ac_sed_conf_input|;t t
6709 s&@top_builddir@&$ac_top_builddir_sub&;t t
6710 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6711 s&@srcdir@&$ac_srcdir&;t t
6712 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6713 s&@top_srcdir@&$ac_top_srcdir&;t t
6714 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6715 s&@builddir@&$ac_builddir&;t t
6716 s&@abs_builddir@&$ac_abs_builddir&;t t
6717 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6718 s&@INSTALL@&$ac_INSTALL&;t t
6719 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6720 $ac_datarootdir_hack
6722 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6723 || as_fn_error "could not create $ac_file" "$LINENO" 5
6725 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6726 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6727 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6729 which seems to be undefined. Please make sure it is defined." >&5
6730 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6731 which seems to be undefined. Please make sure it is defined." >&2;}
6733 rm -f "$tmp/stdin"
6734 case $ac_file in
6735 -) cat "$tmp/out" && rm -f "$tmp/out";;
6736 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6737 esac \
6738 || as_fn_error "could not create $ac_file" "$LINENO" 5
6739 ;;
6740 :H)
6742 # CONFIG_HEADER
6744 if test x"$ac_file" != x-; then
6746 $as_echo "/* $configure_input */" \
6747 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6748 } >"$tmp/config.h" \
6749 || as_fn_error "could not create $ac_file" "$LINENO" 5
6750 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6752 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6753 else
6754 rm -f "$ac_file"
6755 mv "$tmp/config.h" "$ac_file" \
6756 || as_fn_error "could not create $ac_file" "$LINENO" 5
6757 fi
6758 else
6759 $as_echo "/* $configure_input */" \
6760 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6761 || as_fn_error "could not create -" "$LINENO" 5
6762 fi
6763 # Compute "$ac_file"'s index in $config_headers.
6764 _am_arg="$ac_file"
6765 _am_stamp_count=1
6766 for _am_header in $config_headers :; do
6767 case $_am_header in
6768 $_am_arg | $_am_arg:* )
6769 break ;;
6770 * )
6771 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6772 esac
6773 done
6774 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6775 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6776 X"$_am_arg" : 'X\(//\)[^/]' \| \
6777 X"$_am_arg" : 'X\(//\)$' \| \
6778 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6779 $as_echo X"$_am_arg" |
6780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6781 s//\1/
6784 /^X\(\/\/\)[^/].*/{
6785 s//\1/
6788 /^X\(\/\/\)$/{
6789 s//\1/
6792 /^X\(\/\).*/{
6793 s//\1/
6796 s/.*/./; q'`/stamp-h$_am_stamp_count
6797 ;;
6799 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6800 $as_echo "$as_me: executing $ac_file commands" >&6;}
6801 ;;
6802 esac
6805 case $ac_file$ac_mode in
6806 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6807 # Autoconf 2.62 quotes --file arguments for eval, but not when files
6808 # are listed without --file. Let's play safe and only enable the eval
6809 # if we detect the quoting.
6810 case $CONFIG_FILES in
6811 *\'*) eval set x "$CONFIG_FILES" ;;
6812 *) set x $CONFIG_FILES ;;
6813 esac
6814 shift
6815 for mf
6816 do
6817 # Strip MF so we end up with the name of the file.
6818 mf=`echo "$mf" | sed -e 's/:.*$//'`
6819 # Check whether this is an Automake generated Makefile or not.
6820 # We used to match only the files named `Makefile.in', but
6821 # some people rename them; so instead we look at the file content.
6822 # Grep'ing the first line is not enough: some people post-process
6823 # each Makefile.in and add a new line on top of each file to say so.
6824 # Grep'ing the whole file is not good either: AIX grep has a line
6825 # limit of 2048, but all sed's we know have understand at least 4000.
6826 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6827 dirpart=`$as_dirname -- "$mf" ||
6828 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6829 X"$mf" : 'X\(//\)[^/]' \| \
6830 X"$mf" : 'X\(//\)$' \| \
6831 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6832 $as_echo X"$mf" |
6833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6834 s//\1/
6837 /^X\(\/\/\)[^/].*/{
6838 s//\1/
6841 /^X\(\/\/\)$/{
6842 s//\1/
6845 /^X\(\/\).*/{
6846 s//\1/
6849 s/.*/./; q'`
6850 else
6851 continue
6852 fi
6853 # Extract the definition of DEPDIR, am__include, and am__quote
6854 # from the Makefile without running `make'.
6855 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6856 test -z "$DEPDIR" && continue
6857 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6858 test -z "am__include" && continue
6859 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6860 # When using ansi2knr, U may be empty or an underscore; expand it
6861 U=`sed -n 's/^U = //p' < "$mf"`
6862 # Find all dependency output files, they are included files with
6863 # $(DEPDIR) in their names. We invoke sed twice because it is the
6864 # simplest approach to changing $(DEPDIR) to its actual value in the
6865 # expansion.
6866 for file in `sed -n "
6867 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6868 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6869 # Make sure the directory exists.
6870 test -f "$dirpart/$file" && continue
6871 fdir=`$as_dirname -- "$file" ||
6872 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6873 X"$file" : 'X\(//\)[^/]' \| \
6874 X"$file" : 'X\(//\)$' \| \
6875 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6876 $as_echo X"$file" |
6877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6878 s//\1/
6881 /^X\(\/\/\)[^/].*/{
6882 s//\1/
6885 /^X\(\/\/\)$/{
6886 s//\1/
6889 /^X\(\/\).*/{
6890 s//\1/
6893 s/.*/./; q'`
6894 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6895 # echo "creating $dirpart/$file"
6896 echo '# dummy' > "$dirpart/$file"
6897 done
6898 done
6900 ;;
6902 esac
6903 done # for ac_tag
6906 as_fn_exit 0
6907 _ACEOF
6908 ac_clean_files=$ac_clean_files_save
6910 test $ac_write_fail = 0 ||
6911 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6914 # configure is writing to config.log, and then calls config.status.
6915 # config.status does its own redirection, appending to config.log.
6916 # Unfortunately, on DOS this fails, as config.log is still kept open
6917 # by configure, so config.status won't be able to write to it; its
6918 # output is simply discarded. So we exec the FD to /dev/null,
6919 # effectively closing config.log, so it can be properly (re)opened and
6920 # appended to by config.status. When coming back to configure, we
6921 # need to make the FD available again.
6922 if test "$no_create" != yes; then
6923 ac_cs_success=:
6924 ac_config_status_args=
6925 test "$silent" = yes &&
6926 ac_config_status_args="$ac_config_status_args --quiet"
6927 exec 5>/dev/null
6928 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6929 exec 5>>config.log
6930 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6931 # would make configure fail if this is the last instruction.
6932 $ac_cs_success || as_fn_exit $?
6933 fi
6934 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6936 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6937 fi