ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/configure
Revision: 1.46
Committed: Sun Mar 6 13:49:49 2011 UTC (13 years, 2 months ago) by root
Branch: MAIN
Changes since 1.45: +462 -239 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
556
557 ac_unique_file="src/gvpe.C"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_subst_vars='am__EXEEXT_FALSE
595 am__EXEEXT_TRUE
596 LTLIBOBJS
597 LIBOBJS
598 INCLUDES
599 ROHC_FALSE
600 ROHC_TRUE
601 LDFLAGS_DAEMON
602 HAVE_TUNTAP
603 LINUX_IF_TUN_H
604 ALLOCA
605 CXXCPP
606 IFSUBTYPE
607 IFTYPE
608 RANLIB
609 LN_S
610 EGREP
611 GREP
612 am__fastdepCXX_FALSE
613 am__fastdepCXX_TRUE
614 CXXDEPMODE
615 ac_ct_CXX
616 CXXFLAGS
617 CXX
618 CPP
619 POSUB
620 LTLIBINTL
621 LIBINTL
622 INTLLIBS
623 LTLIBICONV
624 LIBICONV
625 USE_NLS
626 am__fastdepCC_FALSE
627 am__fastdepCC_TRUE
628 CCDEPMODE
629 AMDEPBACKSLASH
630 AMDEP_FALSE
631 AMDEP_TRUE
632 am__quote
633 am__include
634 DEPDIR
635 OBJEXT
636 EXEEXT
637 ac_ct_CC
638 CPPFLAGS
639 LDFLAGS
640 CFLAGS
641 CC
642 MSGMERGE
643 XGETTEXT
644 GMSGFMT
645 MSGFMT
646 MKINSTALLDIRS
647 MAINT
648 MAINTAINER_MODE_FALSE
649 MAINTAINER_MODE_TRUE
650 am__untar
651 am__tar
652 AMTAR
653 am__leading_dot
654 SET_MAKE
655 AWK
656 mkdir_p
657 MKDIR_P
658 INSTALL_STRIP_PROGRAM
659 STRIP
660 install_sh
661 MAKEINFO
662 AUTOHEADER
663 AUTOMAKE
664 AUTOCONF
665 ACLOCAL
666 VERSION
667 PACKAGE
668 CYGPATH_W
669 am__isrc
670 INSTALL_DATA
671 INSTALL_SCRIPT
672 INSTALL_PROGRAM
673 target_os
674 target_vendor
675 target_cpu
676 target
677 host_os
678 host_vendor
679 host_cpu
680 host
681 build_os
682 build_vendor
683 build_cpu
684 build
685 target_alias
686 host_alias
687 build_alias
688 LIBS
689 ECHO_T
690 ECHO_N
691 ECHO_C
692 DEFS
693 mandir
694 localedir
695 libdir
696 psdir
697 pdfdir
698 dvidir
699 htmldir
700 infodir
701 docdir
702 oldincludedir
703 includedir
704 localstatedir
705 sharedstatedir
706 sysconfdir
707 datadir
708 datarootdir
709 libexecdir
710 sbindir
711 bindir
712 program_transform_name
713 prefix
714 exec_prefix
715 PACKAGE_URL
716 PACKAGE_BUGREPORT
717 PACKAGE_STRING
718 PACKAGE_VERSION
719 PACKAGE_TARNAME
720 PACKAGE_NAME
721 PATH_SEPARATOR
722 SHELL'
723 ac_subst_files=''
724 ac_user_opts='
725 enable_option_checking
726 enable_maintainer_mode
727 enable_dependency_tracking
728 with_gnu_ld
729 enable_rpath
730 with_libiconv_prefix
731 enable_nls
732 with_libintl_prefix
733 enable_iftype
734 with_kernel
735 with_openssl_include
736 with_openssl_lib
737 enable_static_daemon
738 enable_icmp
739 enable_tcp
740 enable_http_proxy
741 enable_dns
742 enable_hmac_length
743 enable_rand_length
744 enable_max_mtu
745 enable_compression
746 enable_cipher
747 enable_digest
748 '
749 ac_precious_vars='build_alias
750 host_alias
751 target_alias
752 CC
753 CFLAGS
754 LDFLAGS
755 LIBS
756 CPPFLAGS
757 CPP
758 CXX
759 CXXFLAGS
760 CCC
761 CXXCPP'
762
763
764 # Initialize some variables set by options.
765 ac_init_help=
766 ac_init_version=false
767 ac_unrecognized_opts=
768 ac_unrecognized_sep=
769 # The variables have the same names as the options, with
770 # dashes changed to underlines.
771 cache_file=/dev/null
772 exec_prefix=NONE
773 no_create=
774 no_recursion=
775 prefix=NONE
776 program_prefix=NONE
777 program_suffix=NONE
778 program_transform_name=s,x,x,
779 silent=
780 site=
781 srcdir=
782 verbose=
783 x_includes=NONE
784 x_libraries=NONE
785
786 # Installation directory options.
787 # These are left unexpanded so users can "make install exec_prefix=/foo"
788 # and all the variables that are supposed to be based on exec_prefix
789 # by default will actually change.
790 # Use braces instead of parens because sh, perl, etc. also accept them.
791 # (The list follows the same order as the GNU Coding Standards.)
792 bindir='${exec_prefix}/bin'
793 sbindir='${exec_prefix}/sbin'
794 libexecdir='${exec_prefix}/libexec'
795 datarootdir='${prefix}/share'
796 datadir='${datarootdir}'
797 sysconfdir='${prefix}/etc'
798 sharedstatedir='${prefix}/com'
799 localstatedir='${prefix}/var'
800 includedir='${prefix}/include'
801 oldincludedir='/usr/include'
802 docdir='${datarootdir}/doc/${PACKAGE}'
803 infodir='${datarootdir}/info'
804 htmldir='${docdir}'
805 dvidir='${docdir}'
806 pdfdir='${docdir}'
807 psdir='${docdir}'
808 libdir='${exec_prefix}/lib'
809 localedir='${datarootdir}/locale'
810 mandir='${datarootdir}/man'
811
812 ac_prev=
813 ac_dashdash=
814 for ac_option
815 do
816 # If the previous option needs an argument, assign it.
817 if test -n "$ac_prev"; then
818 eval $ac_prev=\$ac_option
819 ac_prev=
820 continue
821 fi
822
823 case $ac_option in
824 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 *=) ac_optarg= ;;
826 *) ac_optarg=yes ;;
827 esac
828
829 # Accept the important Cygnus configure options, so we can diagnose typos.
830
831 case $ac_dashdash$ac_option in
832 --)
833 ac_dashdash=yes ;;
834
835 -bindir | --bindir | --bindi | --bind | --bin | --bi)
836 ac_prev=bindir ;;
837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838 bindir=$ac_optarg ;;
839
840 -build | --build | --buil | --bui | --bu)
841 ac_prev=build_alias ;;
842 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
843 build_alias=$ac_optarg ;;
844
845 -cache-file | --cache-file | --cache-fil | --cache-fi \
846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847 ac_prev=cache_file ;;
848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
850 cache_file=$ac_optarg ;;
851
852 --config-cache | -C)
853 cache_file=config.cache ;;
854
855 -datadir | --datadir | --datadi | --datad)
856 ac_prev=datadir ;;
857 -datadir=* | --datadir=* | --datadi=* | --datad=*)
858 datadir=$ac_optarg ;;
859
860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861 | --dataroo | --dataro | --datar)
862 ac_prev=datarootdir ;;
863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865 datarootdir=$ac_optarg ;;
866
867 -disable-* | --disable-*)
868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error $? "invalid feature name: $ac_useropt"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
875 *"
876 "enable_$ac_useropt"
877 "*) ;;
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
880 esac
881 eval enable_$ac_useropt=no ;;
882
883 -docdir | --docdir | --docdi | --doc | --do)
884 ac_prev=docdir ;;
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 docdir=$ac_optarg ;;
887
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889 ac_prev=dvidir ;;
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 dvidir=$ac_optarg ;;
892
893 -enable-* | --enable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error $? "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902 "enable_$ac_useropt"
903 "*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=\$ac_optarg ;;
908
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
917
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
920 with_gas=yes ;;
921
922 -help | --help | --hel | --he | -h)
923 ac_init_help=long ;;
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
928
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
933
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 ac_prev=htmldir ;;
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 | --ht=*)
938 htmldir=$ac_optarg ;;
939
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
946
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 ac_prev=infodir ;;
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
951
952 -libdir | --libdir | --libdi | --libd)
953 ac_prev=libdir ;;
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 libdir=$ac_optarg ;;
956
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
963
964 -localedir | --localedir | --localedi | --localed | --locale)
965 ac_prev=localedir ;;
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
968
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
975
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 ac_prev=mandir ;;
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979 mandir=$ac_optarg ;;
980
981 -nfp | --nfp | --nf)
982 # Obsolete; use --without-fp.
983 with_fp=no ;;
984
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
987 no_create=yes ;;
988
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 no_recursion=yes ;;
992
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1001
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 ac_prev=prefix ;;
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1006
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1013
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1020
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1037
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 ac_prev=pdfdir ;;
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1042
1043 -psdir | --psdir | --psdi | --psd | --ps)
1044 ac_prev=psdir ;;
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 psdir=$ac_optarg ;;
1047
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 silent=yes ;;
1051
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 ac_prev=sbindir ;;
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 | --sbi=* | --sb=*)
1056 sbindir=$ac_optarg ;;
1057
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1061 | --sha | --sh)
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 | --sha=* | --sh=*)
1067 sharedstatedir=$ac_optarg ;;
1068
1069 -site | --site | --sit)
1070 ac_prev=site ;;
1071 -site=* | --site=* | --sit=*)
1072 site=$ac_optarg ;;
1073
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 ac_prev=srcdir ;;
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1078
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1085
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1090
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 verbose=yes ;;
1093
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1096
1097 -with-* | --with-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error $? "invalid package name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1105 *"
1106 "with_$ac_useropt"
1107 "*) ;;
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1110 esac
1111 eval with_$ac_useropt=\$ac_optarg ;;
1112
1113 -without-* | --without-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=no ;;
1128
1129 --x)
1130 # Obsolete; use --with-x.
1131 with_x=yes ;;
1132
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1139
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1146
1147 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1148 Try \`$0 --help' for more information"
1149 ;;
1150
1151 *=*)
1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
1154 case $ac_envvar in #(
1155 '' | [0-9]* | *[!_$as_cr_alnum]* )
1156 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1157 esac
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1160
1161 *)
1162 # FIXME: should be removed in autoconf 3.0.
1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167 ;;
1168
1169 esac
1170 done
1171
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 as_fn_error $? "missing argument to $ac_option"
1175 fi
1176
1177 if test -n "$ac_unrecognized_opts"; then
1178 case $enable_option_checking in
1179 no) ;;
1180 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1182 esac
1183 fi
1184
1185 # Check all directory arguments for consistency.
1186 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187 datadir sysconfdir sharedstatedir localstatedir includedir \
1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189 libdir localedir mandir
1190 do
1191 eval ac_val=\$$ac_var
1192 # Remove trailing slashes.
1193 case $ac_val in
1194 */ )
1195 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196 eval $ac_var=\$ac_val;;
1197 esac
1198 # Be sure to have absolute directory names.
1199 case $ac_val in
1200 [\\/$]* | ?:[\\/]* ) continue;;
1201 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1202 esac
1203 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1204 done
1205
1206 # There might be people who depend on the old broken behavior: `$host'
1207 # used to hold the argument of --host etc.
1208 # FIXME: To remove some day.
1209 build=$build_alias
1210 host=$host_alias
1211 target=$target_alias
1212
1213 # FIXME: To remove some day.
1214 if test "x$host_alias" != x; then
1215 if test "x$build_alias" = x; then
1216 cross_compiling=maybe
1217 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1218 If a cross compiler is detected then cross compile mode will be used" >&2
1219 elif test "x$build_alias" != "x$host_alias"; then
1220 cross_compiling=yes
1221 fi
1222 fi
1223
1224 ac_tool_prefix=
1225 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1226
1227 test "$silent" = yes && exec 6>/dev/null
1228
1229
1230 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di=`ls -di .` &&
1232 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error $? "working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error $? "pwd does not report name of working directory"
1236
1237
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 s//\1/
1250 q
1251 }
1252 /^X\(\/\/\)[^/].*/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)$/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\).*/{
1261 s//\1/
1262 q
1263 }
1264 s/.*/./; q'`
1265 srcdir=$ac_confdir
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 srcdir=..
1268 fi
1269 else
1270 ac_srcdir_defaulted=no
1271 fi
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1275 fi
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 ac_abs_confdir=`(
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1279 pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 srcdir=.
1283 fi
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1296
1297 #
1298 # Report the --help message.
1299 #
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1303 cat <<_ACEOF
1304 \`configure' configures this package to adapt to many kinds of systems.
1305
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1310
1311 Defaults for the options are specified in brackets.
1312
1313 Configuration:
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking ...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1328 [PREFIX]
1329
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1334
1335 For better control, use the options below.
1336
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1357 _ACEOF
1358
1359 cat <<\_ACEOF
1360
1361 Program names:
1362 --program-prefix=PREFIX prepend PREFIX to installed program names
1363 --program-suffix=SUFFIX append SUFFIX to installed program names
1364 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1365
1366 System types:
1367 --build=BUILD configure for building on BUILD [guessed]
1368 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1369 --target=TARGET configure for building compilers for TARGET [HOST]
1370 _ACEOF
1371 fi
1372
1373 if test -n "$ac_init_help"; then
1374
1375 cat <<\_ACEOF
1376
1377 Optional Features:
1378 --disable-option-checking ignore unrecognized --enable/--with options
1379 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1380 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1381 --enable-maintainer-mode enable make rules and dependencies not useful
1382 (and sometimes confusing) to the casual installer
1383 --disable-dependency-tracking speeds up one-time build
1384 --enable-dependency-tracking do not reject slow dependency extractors
1385 --disable-rpath do not hardcode runtime library paths
1386 --disable-nls do not use Native Language Support
1387 --enable-iftype=TYPE/SUBTYPE
1388 Use kernel/net device interface TYPE/SUBTYPE.
1389 Working combinations are (see doc/gvpe.osdep.5.pod):
1390 "native/linux" "tincd/linux" "tincd/netbsd"
1391 "tincd/freebsd" "tincd/openbsd" "native/darwin"
1392 "tincd/darwin" "native/cygwin"; Untested
1393 combinations are: "tincd/bsd" "tincd/solaris"
1394 "tincd/mingw" "tincd/raw_socket" "tincd/uml_socket";
1395 Broken combinations are: "tincd/cygwin"; The default
1396 is to autodetect.
1397 --enable-static-daemon enable statically linked daemon.
1398 --disable-icmp enable icmp protocol support (default enabled).
1399 --disable-tcp enable tcp protocol support (default enabled).
1400 --disable-http-proxy enable http proxy connect support (default enabled).
1401 --enable-dns enable dns tunnel protocol support (default
1402 disabled).
1403 --enable-hmac-length=BYTES
1404 use a hmac of length BYTES bytes (default 12).
1405 Allowed values are 4, 8, 12, 16.
1406 --enable-rand-length=BYTES
1407 use BYTES bytes of extra randomness (default 8).
1408 Allowed values are 0, 4, 8.
1409 --enable-max-mtu=BYTES enable mtu sizes upto BYTES bytes (default 1500).
1410 Use 9100 for jumbogram support.
1411 --disable-compression Disable compression support.
1412 --enable-cipher=CIPHER Select the symmetric cipher (default "aes-128").
1413 Must be one of "bf" (blowfish), "aes-128"
1414 (rijndael), "aes-192" or "aes-256".
1415 --enable-digest=CIPHER Select the digest algorithm to use (default
1416 "ripemd160"). Must be one of "sha512", "sha256",
1417 "sha1" (somewhat insecure), "ripemd160", "md5"
1418 (insecure) or "md4" (insecure).
1419
1420 Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-gnu-ld assume the C compiler uses GNU ld default=no
1424 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1425 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1426 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1427 --without-libintl-prefix don't search for libintl in includedir and libdir
1428 --with-kernel=dir give the directory with kernel sources
1429 (default: /usr/src/linux)
1430 --with-openssl-include=DIR OpenSSL headers directory (without trailing /openssl)
1431 --with-openssl-lib=DIR OpenSSL library directory
1432
1433 Some influential environment variables:
1434 CC C compiler command
1435 CFLAGS C compiler flags
1436 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1437 nonstandard directory <lib dir>
1438 LIBS libraries to pass to the linker, e.g. -l<library>
1439 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1440 you have headers in a nonstandard directory <include dir>
1441 CPP C preprocessor
1442 CXX C++ compiler command
1443 CXXFLAGS C++ compiler flags
1444 CXXCPP C++ preprocessor
1445
1446 Use these variables to override the choices made by `configure' or to help
1447 it to find libraries and programs with nonstandard names/locations.
1448
1449 Report bugs to the package provider.
1450 _ACEOF
1451 ac_status=$?
1452 fi
1453
1454 if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457 test -d "$ac_dir" ||
1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 continue
1460 ac_builddir=.
1461
1462 case "$ac_dir" in
1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 *)
1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 esac ;;
1472 esac
1473 ac_abs_top_builddir=$ac_pwd
1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475 # for backward compatibility:
1476 ac_top_builddir=$ac_top_build_prefix
1477
1478 case $srcdir in
1479 .) # We are building in place.
1480 ac_srcdir=.
1481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
1484 ac_srcdir=$srcdir$ac_dir_suffix;
1485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1487 *) # Relative name.
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491 esac
1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493
1494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure" --help=recursive
1502 else
1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504 fi || ac_status=$?
1505 cd "$ac_pwd" || { ac_status=$?; break; }
1506 done
1507 fi
1508
1509 test -n "$ac_init_help" && exit $ac_status
1510 if $ac_init_version; then
1511 cat <<\_ACEOF
1512 configure
1513 generated by GNU Autoconf 2.67
1514
1515 Copyright (C) 2010 Free Software Foundation, Inc.
1516 This configure script is free software; the Free Software Foundation
1517 gives unlimited permission to copy, distribute and modify it.
1518 _ACEOF
1519 exit
1520 fi
1521
1522 ## ------------------------ ##
1523 ## Autoconf initialization. ##
1524 ## ------------------------ ##
1525
1526 # ac_fn_c_try_compile LINENO
1527 # --------------------------
1528 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1529 ac_fn_c_try_compile ()
1530 {
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 rm -f conftest.$ac_objext
1533 if { { ac_try="$ac_compile"
1534 case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_compile") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1546 fi
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest.$ac_objext; then :
1552 ac_retval=0
1553 else
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1556
1557 ac_retval=1
1558 fi
1559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560 as_fn_set_status $ac_retval
1561
1562 } # ac_fn_c_try_compile
1563
1564 # ac_fn_c_try_link LINENO
1565 # -----------------------
1566 # Try to link conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_link ()
1568 {
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext conftest$ac_exeext
1571 if { { ac_try="$ac_link"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_link") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest$ac_exeext && {
1590 test "$cross_compiling" = yes ||
1591 $as_test_x conftest$ac_exeext
1592 }; then :
1593 ac_retval=0
1594 else
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1597
1598 ac_retval=1
1599 fi
1600 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602 # interfere with the next link command; also delete a directory that is
1603 # left behind by Apple's compiler. We do this before executing the actions.
1604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1606 as_fn_set_status $ac_retval
1607
1608 } # ac_fn_c_try_link
1609
1610 # ac_fn_c_try_cpp LINENO
1611 # ----------------------
1612 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_cpp ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 if { { ac_try="$ac_cpp conftest.$ac_ext"
1617 case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1629 fi
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } > conftest.i && {
1632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 }; then :
1635 ac_retval=0
1636 else
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1
1641 fi
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 as_fn_set_status $ac_retval
1644
1645 } # ac_fn_c_try_cpp
1646
1647 # ac_fn_cxx_try_compile LINENO
1648 # ----------------------------
1649 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_cxx_try_compile ()
1651 {
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 rm -f conftest.$ac_objext
1654 if { { ac_try="$ac_compile"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_compile") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1667 fi
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && {
1670 test -z "$ac_cxx_werror_flag" ||
1671 test ! -s conftest.err
1672 } && test -s conftest.$ac_objext; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=1
1679 fi
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681 as_fn_set_status $ac_retval
1682
1683 } # ac_fn_cxx_try_compile
1684
1685 # ac_fn_cxx_try_cpp LINENO
1686 # ------------------------
1687 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_cxx_try_cpp ()
1689 {
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if { { ac_try="$ac_cpp conftest.$ac_ext"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1699 ac_status=$?
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1704 fi
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } > conftest.i && {
1707 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1708 test ! -s conftest.err
1709 }; then :
1710 ac_retval=0
1711 else
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1714
1715 ac_retval=1
1716 fi
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718 as_fn_set_status $ac_retval
1719
1720 } # ac_fn_cxx_try_cpp
1721
1722 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1723 # ---------------------------------------------------------
1724 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1725 # the include files in INCLUDES and setting the cache variable VAR
1726 # accordingly.
1727 ac_fn_cxx_check_header_mongrel ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if eval "test \"\${$3+set}\"" = set; then :
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if eval "test \"\${$3+set}\"" = set; then :
1734 $as_echo_n "(cached) " >&6
1735 fi
1736 eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 else
1740 # Is the header compilable?
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1742 $as_echo_n "checking $2 usability... " >&6; }
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 $4
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_cxx_try_compile "$LINENO"; then :
1749 ac_header_compiler=yes
1750 else
1751 ac_header_compiler=no
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1755 $as_echo "$ac_header_compiler" >&6; }
1756
1757 # Is the header present?
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1759 $as_echo_n "checking $2 presence... " >&6; }
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 #include <$2>
1763 _ACEOF
1764 if ac_fn_cxx_try_cpp "$LINENO"; then :
1765 ac_header_preproc=yes
1766 else
1767 ac_header_preproc=no
1768 fi
1769 rm -f conftest.err conftest.i conftest.$ac_ext
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1771 $as_echo "$ac_header_preproc" >&6; }
1772
1773 # So? What about this header?
1774 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1775 yes:no: )
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1777 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1779 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780 ;;
1781 no:yes:* )
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1783 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1785 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1787 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1789 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1791 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1792 ;;
1793 esac
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval "test \"\${$3+set}\"" = set; then :
1797 $as_echo_n "(cached) " >&6
1798 else
1799 eval "$3=\$ac_header_compiler"
1800 fi
1801 eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 fi
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806
1807 } # ac_fn_cxx_check_header_mongrel
1808
1809 # ac_fn_cxx_try_run LINENO
1810 # ------------------------
1811 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1812 # that executables *can* be run.
1813 ac_fn_cxx_try_run ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if { { ac_try="$ac_link"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>&5
1824 ac_status=$?
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1827 { { case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_try") 2>&5
1834 ac_status=$?
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; }; }; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: program exited with status $ac_status" >&5
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=$ac_status
1844 fi
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 as_fn_set_status $ac_retval
1848
1849 } # ac_fn_cxx_try_run
1850
1851 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1852 # ---------------------------------------------------------
1853 # Tests whether HEADER exists and can be compiled using the include files in
1854 # INCLUDES, setting the cache variable VAR accordingly.
1855 ac_fn_cxx_check_header_compile ()
1856 {
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if eval "test \"\${$3+set}\"" = set; then :
1861 $as_echo_n "(cached) " >&6
1862 else
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 $4
1866 #include <$2>
1867 _ACEOF
1868 if ac_fn_cxx_try_compile "$LINENO"; then :
1869 eval "$3=yes"
1870 else
1871 eval "$3=no"
1872 fi
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874 fi
1875 eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879
1880 } # ac_fn_cxx_check_header_compile
1881
1882 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1883 # ---------------------------------------------
1884 # Tests whether TYPE exists after having included INCLUDES, setting cache
1885 # variable VAR accordingly.
1886 ac_fn_cxx_check_type ()
1887 {
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if eval "test \"\${$3+set}\"" = set; then :
1892 $as_echo_n "(cached) " >&6
1893 else
1894 eval "$3=no"
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1897 $4
1898 int
1899 main ()
1900 {
1901 if (sizeof ($2))
1902 return 0;
1903 ;
1904 return 0;
1905 }
1906 _ACEOF
1907 if ac_fn_cxx_try_compile "$LINENO"; then :
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1910 $4
1911 int
1912 main ()
1913 {
1914 if (sizeof (($2)))
1915 return 0;
1916 ;
1917 return 0;
1918 }
1919 _ACEOF
1920 if ac_fn_cxx_try_compile "$LINENO"; then :
1921
1922 else
1923 eval "$3=yes"
1924 fi
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 fi
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 fi
1929 eval ac_res=\$$3
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1932 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933
1934 } # ac_fn_cxx_check_type
1935
1936 # ac_fn_c_try_run LINENO
1937 # ----------------------
1938 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1939 # that executables *can* be run.
1940 ac_fn_c_try_run ()
1941 {
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 if { { ac_try="$ac_link"
1944 case "(($ac_try" in
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1947 esac
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_link") 2>&5
1951 ac_status=$?
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1954 { { case "(($ac_try" in
1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956 *) ac_try_echo=$ac_try;;
1957 esac
1958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959 $as_echo "$ac_try_echo"; } >&5
1960 (eval "$ac_try") 2>&5
1961 ac_status=$?
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; }; }; then :
1964 ac_retval=0
1965 else
1966 $as_echo "$as_me: program exited with status $ac_status" >&5
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1969
1970 ac_retval=$ac_status
1971 fi
1972 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974 as_fn_set_status $ac_retval
1975
1976 } # ac_fn_c_try_run
1977
1978 # ac_fn_c_check_func LINENO FUNC VAR
1979 # ----------------------------------
1980 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1981 ac_fn_c_check_func ()
1982 {
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if eval "test \"\${$3+set}\"" = set; then :
1987 $as_echo_n "(cached) " >&6
1988 else
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1991 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1993 #define $2 innocuous_$2
1994
1995 /* System header to define __stub macros and hopefully few prototypes,
1996 which can conflict with char $2 (); below.
1997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1998 <limits.h> exists even on freestanding compilers. */
1999
2000 #ifdef __STDC__
2001 # include <limits.h>
2002 #else
2003 # include <assert.h>
2004 #endif
2005
2006 #undef $2
2007
2008 /* Override any GCC internal prototype to avoid an error.
2009 Use char because int might match the return type of a GCC
2010 builtin and then its argument prototype would still apply. */
2011 #ifdef __cplusplus
2012 extern "C"
2013 #endif
2014 char $2 ();
2015 /* The GNU C library defines this for functions which it implements
2016 to always fail with ENOSYS. Some functions are actually named
2017 something starting with __ and the normal name is an alias. */
2018 #if defined __stub_$2 || defined __stub___$2
2019 choke me
2020 #endif
2021
2022 int
2023 main ()
2024 {
2025 return $2 ();
2026 ;
2027 return 0;
2028 }
2029 _ACEOF
2030 if ac_fn_c_try_link "$LINENO"; then :
2031 eval "$3=yes"
2032 else
2033 eval "$3=no"
2034 fi
2035 rm -f core conftest.err conftest.$ac_objext \
2036 conftest$ac_exeext conftest.$ac_ext
2037 fi
2038 eval ac_res=\$$3
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2042
2043 } # ac_fn_c_check_func
2044
2045 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2046 # -------------------------------------------------------
2047 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2048 # the include files in INCLUDES and setting the cache variable VAR
2049 # accordingly.
2050 ac_fn_c_check_header_mongrel ()
2051 {
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 if eval "test \"\${$3+set}\"" = set; then :
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval "test \"\${$3+set}\"" = set; then :
2057 $as_echo_n "(cached) " >&6
2058 fi
2059 eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 else
2063 # Is the header compilable?
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2065 $as_echo_n "checking $2 usability... " >&6; }
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2068 $4
2069 #include <$2>
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 ac_header_compiler=yes
2073 else
2074 ac_header_compiler=no
2075 fi
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2078 $as_echo "$ac_header_compiler" >&6; }
2079
2080 # Is the header present?
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2082 $as_echo_n "checking $2 presence... " >&6; }
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 #include <$2>
2086 _ACEOF
2087 if ac_fn_c_try_cpp "$LINENO"; then :
2088 ac_header_preproc=yes
2089 else
2090 ac_header_preproc=no
2091 fi
2092 rm -f conftest.err conftest.i conftest.$ac_ext
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2094 $as_echo "$ac_header_preproc" >&6; }
2095
2096 # So? What about this header?
2097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2098 yes:no: )
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2100 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2102 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2103 ;;
2104 no:yes:* )
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2106 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2108 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2110 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2112 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2114 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2115 ;;
2116 esac
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2118 $as_echo_n "checking for $2... " >&6; }
2119 if eval "test \"\${$3+set}\"" = set; then :
2120 $as_echo_n "(cached) " >&6
2121 else
2122 eval "$3=\$ac_header_compiler"
2123 fi
2124 eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 fi
2128 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2129
2130 } # ac_fn_c_check_header_mongrel
2131
2132 # ac_fn_cxx_try_link LINENO
2133 # -------------------------
2134 # Try to link conftest.$ac_ext, and return whether this succeeded.
2135 ac_fn_cxx_try_link ()
2136 {
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138 rm -f conftest.$ac_objext conftest$ac_exeext
2139 if { { ac_try="$ac_link"
2140 case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_link") 2>conftest.err
2147 ac_status=$?
2148 if test -s conftest.err; then
2149 grep -v '^ *+' conftest.err >conftest.er1
2150 cat conftest.er1 >&5
2151 mv -f conftest.er1 conftest.err
2152 fi
2153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154 test $ac_status = 0; } && {
2155 test -z "$ac_cxx_werror_flag" ||
2156 test ! -s conftest.err
2157 } && test -s conftest$ac_exeext && {
2158 test "$cross_compiling" = yes ||
2159 $as_test_x conftest$ac_exeext
2160 }; then :
2161 ac_retval=0
2162 else
2163 $as_echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2165
2166 ac_retval=1
2167 fi
2168 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2169 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2170 # interfere with the next link command; also delete a directory that is
2171 # left behind by Apple's compiler. We do this before executing the actions.
2172 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174 as_fn_set_status $ac_retval
2175
2176 } # ac_fn_cxx_try_link
2177
2178 # ac_fn_cxx_check_func LINENO FUNC VAR
2179 # ------------------------------------
2180 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2181 ac_fn_cxx_check_func ()
2182 {
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2185 $as_echo_n "checking for $2... " >&6; }
2186 if eval "test \"\${$3+set}\"" = set; then :
2187 $as_echo_n "(cached) " >&6
2188 else
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2191 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2193 #define $2 innocuous_$2
2194
2195 /* System header to define __stub macros and hopefully few prototypes,
2196 which can conflict with char $2 (); below.
2197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2198 <limits.h> exists even on freestanding compilers. */
2199
2200 #ifdef __STDC__
2201 # include <limits.h>
2202 #else
2203 # include <assert.h>
2204 #endif
2205
2206 #undef $2
2207
2208 /* Override any GCC internal prototype to avoid an error.
2209 Use char because int might match the return type of a GCC
2210 builtin and then its argument prototype would still apply. */
2211 #ifdef __cplusplus
2212 extern "C"
2213 #endif
2214 char $2 ();
2215 /* The GNU C library defines this for functions which it implements
2216 to always fail with ENOSYS. Some functions are actually named
2217 something starting with __ and the normal name is an alias. */
2218 #if defined __stub_$2 || defined __stub___$2
2219 choke me
2220 #endif
2221
2222 int
2223 main ()
2224 {
2225 return $2 ();
2226 ;
2227 return 0;
2228 }
2229 _ACEOF
2230 if ac_fn_cxx_try_link "$LINENO"; then :
2231 eval "$3=yes"
2232 else
2233 eval "$3=no"
2234 fi
2235 rm -f core conftest.err conftest.$ac_objext \
2236 conftest$ac_exeext conftest.$ac_ext
2237 fi
2238 eval ac_res=\$$3
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240 $as_echo "$ac_res" >&6; }
2241 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2242
2243 } # ac_fn_cxx_check_func
2244 cat >config.log <<_ACEOF
2245 This file contains any messages produced by compilers while
2246 running configure, to aid debugging if configure makes a mistake.
2247
2248 It was created by $as_me, which was
2249 generated by GNU Autoconf 2.67. Invocation command line was
2250
2251 $ $0 $@
2252
2253 _ACEOF
2254 exec 5>>config.log
2255 {
2256 cat <<_ASUNAME
2257 ## --------- ##
2258 ## Platform. ##
2259 ## --------- ##
2260
2261 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2262 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2263 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2264 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2265 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2266
2267 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2268 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2269
2270 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2271 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2272 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2273 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2274 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2275 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2276 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2277
2278 _ASUNAME
2279
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2282 do
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 $as_echo "PATH: $as_dir"
2286 done
2287 IFS=$as_save_IFS
2288
2289 } >&5
2290
2291 cat >&5 <<_ACEOF
2292
2293
2294 ## ----------- ##
2295 ## Core tests. ##
2296 ## ----------- ##
2297
2298 _ACEOF
2299
2300
2301 # Keep a trace of the command line.
2302 # Strip out --no-create and --no-recursion so they do not pile up.
2303 # Strip out --silent because we don't want to record it for future runs.
2304 # Also quote any args containing shell meta-characters.
2305 # Make two passes to allow for proper duplicate-argument suppression.
2306 ac_configure_args=
2307 ac_configure_args0=
2308 ac_configure_args1=
2309 ac_must_keep_next=false
2310 for ac_pass in 1 2
2311 do
2312 for ac_arg
2313 do
2314 case $ac_arg in
2315 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2317 | -silent | --silent | --silen | --sile | --sil)
2318 continue ;;
2319 *\'*)
2320 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2321 esac
2322 case $ac_pass in
2323 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2324 2)
2325 as_fn_append ac_configure_args1 " '$ac_arg'"
2326 if test $ac_must_keep_next = true; then
2327 ac_must_keep_next=false # Got value, back to normal.
2328 else
2329 case $ac_arg in
2330 *=* | --config-cache | -C | -disable-* | --disable-* \
2331 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2332 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2333 | -with-* | --with-* | -without-* | --without-* | --x)
2334 case "$ac_configure_args0 " in
2335 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2336 esac
2337 ;;
2338 -* ) ac_must_keep_next=true ;;
2339 esac
2340 fi
2341 as_fn_append ac_configure_args " '$ac_arg'"
2342 ;;
2343 esac
2344 done
2345 done
2346 { ac_configure_args0=; unset ac_configure_args0;}
2347 { ac_configure_args1=; unset ac_configure_args1;}
2348
2349 # When interrupted or exit'd, cleanup temporary files, and complete
2350 # config.log. We remove comments because anyway the quotes in there
2351 # would cause problems or look ugly.
2352 # WARNING: Use '\'' to represent an apostrophe within the trap.
2353 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2354 trap 'exit_status=$?
2355 # Save into config.log some information that might help in debugging.
2356 {
2357 echo
2358
2359 $as_echo "## ---------------- ##
2360 ## Cache variables. ##
2361 ## ---------------- ##"
2362 echo
2363 # The following way of writing the cache mishandles newlines in values,
2364 (
2365 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2366 eval ac_val=\$$ac_var
2367 case $ac_val in #(
2368 *${as_nl}*)
2369 case $ac_var in #(
2370 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2371 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2372 esac
2373 case $ac_var in #(
2374 _ | IFS | as_nl) ;; #(
2375 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2376 *) { eval $ac_var=; unset $ac_var;} ;;
2377 esac ;;
2378 esac
2379 done
2380 (set) 2>&1 |
2381 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2382 *${as_nl}ac_space=\ *)
2383 sed -n \
2384 "s/'\''/'\''\\\\'\'''\''/g;
2385 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2386 ;; #(
2387 *)
2388 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2389 ;;
2390 esac |
2391 sort
2392 )
2393 echo
2394
2395 $as_echo "## ----------------- ##
2396 ## Output variables. ##
2397 ## ----------------- ##"
2398 echo
2399 for ac_var in $ac_subst_vars
2400 do
2401 eval ac_val=\$$ac_var
2402 case $ac_val in
2403 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2404 esac
2405 $as_echo "$ac_var='\''$ac_val'\''"
2406 done | sort
2407 echo
2408
2409 if test -n "$ac_subst_files"; then
2410 $as_echo "## ------------------- ##
2411 ## File substitutions. ##
2412 ## ------------------- ##"
2413 echo
2414 for ac_var in $ac_subst_files
2415 do
2416 eval ac_val=\$$ac_var
2417 case $ac_val in
2418 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2419 esac
2420 $as_echo "$ac_var='\''$ac_val'\''"
2421 done | sort
2422 echo
2423 fi
2424
2425 if test -s confdefs.h; then
2426 $as_echo "## ----------- ##
2427 ## confdefs.h. ##
2428 ## ----------- ##"
2429 echo
2430 cat confdefs.h
2431 echo
2432 fi
2433 test "$ac_signal" != 0 &&
2434 $as_echo "$as_me: caught signal $ac_signal"
2435 $as_echo "$as_me: exit $exit_status"
2436 } >&5
2437 rm -f core *.core core.conftest.* &&
2438 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2439 exit $exit_status
2440 ' 0
2441 for ac_signal in 1 2 13 15; do
2442 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2443 done
2444 ac_signal=0
2445
2446 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2447 rm -f -r conftest* confdefs.h
2448
2449 $as_echo "/* confdefs.h */" > confdefs.h
2450
2451 # Predefined preprocessor variables.
2452
2453 cat >>confdefs.h <<_ACEOF
2454 #define PACKAGE_NAME "$PACKAGE_NAME"
2455 _ACEOF
2456
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2459 _ACEOF
2460
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2463 _ACEOF
2464
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_STRING "$PACKAGE_STRING"
2467 _ACEOF
2468
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2471 _ACEOF
2472
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_URL "$PACKAGE_URL"
2475 _ACEOF
2476
2477
2478 # Let the site file select an alternate cache file if it wants to.
2479 # Prefer an explicitly selected file to automatically selected ones.
2480 ac_site_file1=NONE
2481 ac_site_file2=NONE
2482 if test -n "$CONFIG_SITE"; then
2483 # We do not want a PATH search for config.site.
2484 case $CONFIG_SITE in #((
2485 -*) ac_site_file1=./$CONFIG_SITE;;
2486 */*) ac_site_file1=$CONFIG_SITE;;
2487 *) ac_site_file1=./$CONFIG_SITE;;
2488 esac
2489 elif test "x$prefix" != xNONE; then
2490 ac_site_file1=$prefix/share/config.site
2491 ac_site_file2=$prefix/etc/config.site
2492 else
2493 ac_site_file1=$ac_default_prefix/share/config.site
2494 ac_site_file2=$ac_default_prefix/etc/config.site
2495 fi
2496 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2497 do
2498 test "x$ac_site_file" = xNONE && continue
2499 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2501 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2502 sed 's/^/| /' "$ac_site_file" >&5
2503 . "$ac_site_file" \
2504 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2506 as_fn_error $? "failed to load site script $ac_site_file
2507 See \`config.log' for more details" "$LINENO" 5 ; }
2508 fi
2509 done
2510
2511 if test -r "$cache_file"; then
2512 # Some versions of bash will fail to source /dev/null (special files
2513 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2514 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2516 $as_echo "$as_me: loading cache $cache_file" >&6;}
2517 case $cache_file in
2518 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2519 *) . "./$cache_file";;
2520 esac
2521 fi
2522 else
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2524 $as_echo "$as_me: creating cache $cache_file" >&6;}
2525 >$cache_file
2526 fi
2527
2528 # Check that the precious variables saved in the cache have kept the same
2529 # value.
2530 ac_cache_corrupted=false
2531 for ac_var in $ac_precious_vars; do
2532 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2533 eval ac_new_set=\$ac_env_${ac_var}_set
2534 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2535 eval ac_new_val=\$ac_env_${ac_var}_value
2536 case $ac_old_set,$ac_new_set in
2537 set,)
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2539 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2540 ac_cache_corrupted=: ;;
2541 ,set)
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2543 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2544 ac_cache_corrupted=: ;;
2545 ,);;
2546 *)
2547 if test "x$ac_old_val" != "x$ac_new_val"; then
2548 # differences in whitespace do not lead to failure.
2549 ac_old_val_w=`echo x $ac_old_val`
2550 ac_new_val_w=`echo x $ac_new_val`
2551 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2553 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2554 ac_cache_corrupted=:
2555 else
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2557 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2558 eval $ac_var=\$ac_old_val
2559 fi
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2561 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2563 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2564 fi;;
2565 esac
2566 # Pass precious variables to config.status.
2567 if test "$ac_new_set" = set; then
2568 case $ac_new_val in
2569 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2570 *) ac_arg=$ac_var=$ac_new_val ;;
2571 esac
2572 case " $ac_configure_args " in
2573 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2574 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2575 esac
2576 fi
2577 done
2578 if $ac_cache_corrupted; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2582 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2583 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2584 fi
2585 ## -------------------- ##
2586 ## Main body of script. ##
2587 ## -------------------- ##
2588
2589 ac_ext=c
2590 ac_cpp='$CPP $CPPFLAGS'
2591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2594
2595
2596
2597 ac_aux_dir=
2598 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2599 if test -f "$ac_dir/install-sh"; then
2600 ac_aux_dir=$ac_dir
2601 ac_install_sh="$ac_aux_dir/install-sh -c"
2602 break
2603 elif test -f "$ac_dir/install.sh"; then
2604 ac_aux_dir=$ac_dir
2605 ac_install_sh="$ac_aux_dir/install.sh -c"
2606 break
2607 elif test -f "$ac_dir/shtool"; then
2608 ac_aux_dir=$ac_dir
2609 ac_install_sh="$ac_aux_dir/shtool install -c"
2610 break
2611 fi
2612 done
2613 if test -z "$ac_aux_dir"; then
2614 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2615 fi
2616
2617 # These three variables are undocumented and unsupported,
2618 # and are intended to be withdrawn in a future Autoconf release.
2619 # They can cause serious problems if a builder's source tree is in a directory
2620 # whose full name contains unusual characters.
2621 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2622 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2623 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2624
2625
2626 # Make sure we can run config.sub.
2627 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2628 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2629
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2631 $as_echo_n "checking build system type... " >&6; }
2632 if test "${ac_cv_build+set}" = set; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 ac_build_alias=$build_alias
2636 test "x$ac_build_alias" = x &&
2637 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2638 test "x$ac_build_alias" = x &&
2639 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2640 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2641 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2642
2643 fi
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2645 $as_echo "$ac_cv_build" >&6; }
2646 case $ac_cv_build in
2647 *-*-*) ;;
2648 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2649 esac
2650 build=$ac_cv_build
2651 ac_save_IFS=$IFS; IFS='-'
2652 set x $ac_cv_build
2653 shift
2654 build_cpu=$1
2655 build_vendor=$2
2656 shift; shift
2657 # Remember, the first character of IFS is used to create $*,
2658 # except with old shells:
2659 build_os=$*
2660 IFS=$ac_save_IFS
2661 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2662
2663
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2665 $as_echo_n "checking host system type... " >&6; }
2666 if test "${ac_cv_host+set}" = set; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 if test "x$host_alias" = x; then
2670 ac_cv_host=$ac_cv_build
2671 else
2672 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2673 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2674 fi
2675
2676 fi
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2678 $as_echo "$ac_cv_host" >&6; }
2679 case $ac_cv_host in
2680 *-*-*) ;;
2681 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2682 esac
2683 host=$ac_cv_host
2684 ac_save_IFS=$IFS; IFS='-'
2685 set x $ac_cv_host
2686 shift
2687 host_cpu=$1
2688 host_vendor=$2
2689 shift; shift
2690 # Remember, the first character of IFS is used to create $*,
2691 # except with old shells:
2692 host_os=$*
2693 IFS=$ac_save_IFS
2694 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2695
2696
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2698 $as_echo_n "checking target system type... " >&6; }
2699 if test "${ac_cv_target+set}" = set; then :
2700 $as_echo_n "(cached) " >&6
2701 else
2702 if test "x$target_alias" = x; then
2703 ac_cv_target=$ac_cv_host
2704 else
2705 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2706 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2707 fi
2708
2709 fi
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2711 $as_echo "$ac_cv_target" >&6; }
2712 case $ac_cv_target in
2713 *-*-*) ;;
2714 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2715 esac
2716 target=$ac_cv_target
2717 ac_save_IFS=$IFS; IFS='-'
2718 set x $ac_cv_target
2719 shift
2720 target_cpu=$1
2721 target_vendor=$2
2722 shift; shift
2723 # Remember, the first character of IFS is used to create $*,
2724 # except with old shells:
2725 target_os=$*
2726 IFS=$ac_save_IFS
2727 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2728
2729
2730 # The aliases save the names the user supplied, while $host etc.
2731 # will get canonicalized.
2732 test -n "$target_alias" &&
2733 test "$program_prefix$program_suffix$program_transform_name" = \
2734 NONENONEs,x,x, &&
2735 program_prefix=${target_alias}-
2736 am__api_version='1.11'
2737
2738 # Find a good install program. We prefer a C program (faster),
2739 # so one script is as good as another. But avoid the broken or
2740 # incompatible versions:
2741 # SysV /etc/install, /usr/sbin/install
2742 # SunOS /usr/etc/install
2743 # IRIX /sbin/install
2744 # AIX /bin/install
2745 # AmigaOS /C/install, which installs bootblocks on floppy discs
2746 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2747 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2748 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2749 # OS/2's system install, which has a completely different semantic
2750 # ./install, which can be erroneously created by make from ./install.sh.
2751 # Reject install programs that cannot install multiple files.
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2753 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2754 if test -z "$INSTALL"; then
2755 if test "${ac_cv_path_install+set}" = set; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2760 do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 # Account for people who put trailing slashes in PATH elements.
2764 case $as_dir/ in #((
2765 ./ | .// | /[cC]/* | \
2766 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2767 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2768 /usr/ucb/* ) ;;
2769 *)
2770 # OSF1 and SCO ODT 3.0 have their own names for install.
2771 # Don't use installbsd from OSF since it installs stuff as root
2772 # by default.
2773 for ac_prog in ginstall scoinst install; do
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2776 if test $ac_prog = install &&
2777 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2778 # AIX install. It has an incompatible calling convention.
2779 :
2780 elif test $ac_prog = install &&
2781 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2782 # program-specific install script used by HP pwplus--don't use.
2783 :
2784 else
2785 rm -rf conftest.one conftest.two conftest.dir
2786 echo one > conftest.one
2787 echo two > conftest.two
2788 mkdir conftest.dir
2789 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2790 test -s conftest.one && test -s conftest.two &&
2791 test -s conftest.dir/conftest.one &&
2792 test -s conftest.dir/conftest.two
2793 then
2794 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2795 break 3
2796 fi
2797 fi
2798 fi
2799 done
2800 done
2801 ;;
2802 esac
2803
2804 done
2805 IFS=$as_save_IFS
2806
2807 rm -rf conftest.one conftest.two conftest.dir
2808
2809 fi
2810 if test "${ac_cv_path_install+set}" = set; then
2811 INSTALL=$ac_cv_path_install
2812 else
2813 # As a last resort, use the slow shell script. Don't cache a
2814 # value for INSTALL within a source directory, because that will
2815 # break other packages using the cache if that directory is
2816 # removed, or if the value is a relative name.
2817 INSTALL=$ac_install_sh
2818 fi
2819 fi
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2821 $as_echo "$INSTALL" >&6; }
2822
2823 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2824 # It thinks the first close brace ends the variable substitution.
2825 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2826
2827 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2828
2829 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2830
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2832 $as_echo_n "checking whether build environment is sane... " >&6; }
2833 # Just in case
2834 sleep 1
2835 echo timestamp > conftest.file
2836 # Reject unsafe characters in $srcdir or the absolute working directory
2837 # name. Accept space and tab only in the latter.
2838 am_lf='
2839 '
2840 case `pwd` in
2841 *[\\\"\#\$\&\'\`$am_lf]*)
2842 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2843 esac
2844 case $srcdir in
2845 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2846 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2847 esac
2848
2849 # Do `set' in a subshell so we don't clobber the current shell's
2850 # arguments. Must try -L first in case configure is actually a
2851 # symlink; some systems play weird games with the mod time of symlinks
2852 # (eg FreeBSD returns the mod time of the symlink's containing
2853 # directory).
2854 if (
2855 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2856 if test "$*" = "X"; then
2857 # -L didn't work.
2858 set X `ls -t "$srcdir/configure" conftest.file`
2859 fi
2860 rm -f conftest.file
2861 if test "$*" != "X $srcdir/configure conftest.file" \
2862 && test "$*" != "X conftest.file $srcdir/configure"; then
2863
2864 # If neither matched, then we have a broken ls. This can happen
2865 # if, for instance, CONFIG_SHELL is bash and it inherits a
2866 # broken ls alias from the environment. This has actually
2867 # happened. Such a system could not be considered "sane".
2868 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2869 alias in your environment" "$LINENO" 5
2870 fi
2871
2872 test "$2" = conftest.file
2873 )
2874 then
2875 # Ok.
2876 :
2877 else
2878 as_fn_error $? "newly created file is older than distributed files!
2879 Check your system clock" "$LINENO" 5
2880 fi
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2882 $as_echo "yes" >&6; }
2883 test "$program_prefix" != NONE &&
2884 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2885 # Use a double $ so make ignores it.
2886 test "$program_suffix" != NONE &&
2887 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2888 # Double any \ or $.
2889 # By default was `s,x,x', remove it if useless.
2890 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2891 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2892
2893 # expand $ac_aux_dir to an absolute path
2894 am_aux_dir=`cd $ac_aux_dir && pwd`
2895
2896 if test x"${MISSING+set}" != xset; then
2897 case $am_aux_dir in
2898 *\ * | *\ *)
2899 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2900 *)
2901 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2902 esac
2903 fi
2904 # Use eval to expand $SHELL
2905 if eval "$MISSING --run true"; then
2906 am_missing_run="$MISSING --run "
2907 else
2908 am_missing_run=
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2910 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2911 fi
2912
2913 if test x"${install_sh}" != xset; then
2914 case $am_aux_dir in
2915 *\ * | *\ *)
2916 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2917 *)
2918 install_sh="\${SHELL} $am_aux_dir/install-sh"
2919 esac
2920 fi
2921
2922 # Installed binaries are usually stripped using `strip' when the user
2923 # run `make install-strip'. However `strip' might not be the right
2924 # tool to use in cross-compilation environments, therefore Automake
2925 # will honor the `STRIP' environment variable to overrule this program.
2926 if test "$cross_compiling" != no; then
2927 if test -n "$ac_tool_prefix"; then
2928 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2929 set dummy ${ac_tool_prefix}strip; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if test "${ac_cv_prog_STRIP+set}" = set; then :
2933 $as_echo_n "(cached) " >&6
2934 else
2935 if test -n "$STRIP"; then
2936 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949 done
2950 done
2951 IFS=$as_save_IFS
2952
2953 fi
2954 fi
2955 STRIP=$ac_cv_prog_STRIP
2956 if test -n "$STRIP"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2958 $as_echo "$STRIP" >&6; }
2959 else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2962 fi
2963
2964
2965 fi
2966 if test -z "$ac_cv_prog_STRIP"; then
2967 ac_ct_STRIP=$STRIP
2968 # Extract the first word of "strip", so it can be a program name with args.
2969 set dummy strip; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 if test -n "$ac_ct_STRIP"; then
2976 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 ac_cv_prog_ac_ct_STRIP="strip"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989 done
2990 done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2996 if test -n "$ac_ct_STRIP"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2998 $as_echo "$ac_ct_STRIP" >&6; }
2999 else
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 fi
3003
3004 if test "x$ac_ct_STRIP" = x; then
3005 STRIP=":"
3006 else
3007 case $cross_compiling:$ac_tool_warned in
3008 yes:)
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3011 ac_tool_warned=yes ;;
3012 esac
3013 STRIP=$ac_ct_STRIP
3014 fi
3015 else
3016 STRIP="$ac_cv_prog_STRIP"
3017 fi
3018
3019 fi
3020 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3021
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3023 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3024 if test -z "$MKDIR_P"; then
3025 if test "${ac_cv_path_mkdir+set}" = set; then :
3026 $as_echo_n "(cached) " >&6
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3030 do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_prog in mkdir gmkdir; do
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3036 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3037 'mkdir (GNU coreutils) '* | \
3038 'mkdir (coreutils) '* | \
3039 'mkdir (fileutils) '4.1*)
3040 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3041 break 3;;
3042 esac
3043 done
3044 done
3045 done
3046 IFS=$as_save_IFS
3047
3048 fi
3049
3050 test -d ./--version && rmdir ./--version
3051 if test "${ac_cv_path_mkdir+set}" = set; then
3052 MKDIR_P="$ac_cv_path_mkdir -p"
3053 else
3054 # As a last resort, use the slow shell script. Don't cache a
3055 # value for MKDIR_P within a source directory, because that will
3056 # break other packages using the cache if that directory is
3057 # removed, or if the value is a relative name.
3058 MKDIR_P="$ac_install_sh -d"
3059 fi
3060 fi
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3062 $as_echo "$MKDIR_P" >&6; }
3063
3064 mkdir_p="$MKDIR_P"
3065 case $mkdir_p in
3066 [\\/$]* | ?:[\\/]*) ;;
3067 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3068 esac
3069
3070 for ac_prog in gawk mawk nawk awk
3071 do
3072 # Extract the first word of "$ac_prog", so it can be a program name with args.
3073 set dummy $ac_prog; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if test "${ac_cv_prog_AWK+set}" = set; then :
3077 $as_echo_n "(cached) " >&6
3078 else
3079 if test -n "$AWK"; then
3080 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089 ac_cv_prog_AWK="$ac_prog"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3092 fi
3093 done
3094 done
3095 IFS=$as_save_IFS
3096
3097 fi
3098 fi
3099 AWK=$ac_cv_prog_AWK
3100 if test -n "$AWK"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3102 $as_echo "$AWK" >&6; }
3103 else
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3106 fi
3107
3108
3109 test -n "$AWK" && break
3110 done
3111
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3113 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3114 set x ${MAKE-make}
3115 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3116 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 cat >conftest.make <<\_ACEOF
3120 SHELL = /bin/sh
3121 all:
3122 @echo '@@@%%%=$(MAKE)=@@@%%%'
3123 _ACEOF
3124 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3125 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3126 *@@@%%%=?*=@@@%%%*)
3127 eval ac_cv_prog_make_${ac_make}_set=yes;;
3128 *)
3129 eval ac_cv_prog_make_${ac_make}_set=no;;
3130 esac
3131 rm -f conftest.make
3132 fi
3133 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3135 $as_echo "yes" >&6; }
3136 SET_MAKE=
3137 else
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3140 SET_MAKE="MAKE=${MAKE-make}"
3141 fi
3142
3143 rm -rf .tst 2>/dev/null
3144 mkdir .tst 2>/dev/null
3145 if test -d .tst; then
3146 am__leading_dot=.
3147 else
3148 am__leading_dot=_
3149 fi
3150 rmdir .tst 2>/dev/null
3151
3152 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3153 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3154 # is not polluted with repeated "-I."
3155 am__isrc=' -I$(srcdir)'
3156 # test to see if srcdir already configured
3157 if test -f $srcdir/config.status; then
3158 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3159 fi
3160 fi
3161
3162 # test whether we have cygpath
3163 if test -z "$CYGPATH_W"; then
3164 if (cygpath --version) >/dev/null 2>/dev/null; then
3165 CYGPATH_W='cygpath -w'
3166 else
3167 CYGPATH_W=echo
3168 fi
3169 fi
3170
3171
3172 # Define the identity of the package.
3173 PACKAGE=gvpe
3174 VERSION=2.24
3175
3176
3177 cat >>confdefs.h <<_ACEOF
3178 #define PACKAGE "$PACKAGE"
3179 _ACEOF
3180
3181
3182 cat >>confdefs.h <<_ACEOF
3183 #define VERSION "$VERSION"
3184 _ACEOF
3185
3186 # Some tools Automake needs.
3187
3188 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3189
3190
3191 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3192
3193
3194 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3195
3196
3197 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3198
3199
3200 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3201
3202 # We need awk for the "check" target. The system "awk" is bad on
3203 # some platforms.
3204 # Always define AMTAR for backward compatibility.
3205
3206 AMTAR=${AMTAR-"${am_missing_run}tar"}
3207
3208 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3209
3210
3211
3212
3213
3214 ac_config_headers="$ac_config_headers config.h"
3215
3216
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3218 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3219 # Check whether --enable-maintainer-mode was given.
3220 if test "${enable_maintainer_mode+set}" = set; then :
3221 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3222 else
3223 USE_MAINTAINER_MODE=no
3224 fi
3225
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3227 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3228 if test $USE_MAINTAINER_MODE = yes; then
3229 MAINTAINER_MODE_TRUE=
3230 MAINTAINER_MODE_FALSE='#'
3231 else
3232 MAINTAINER_MODE_TRUE='#'
3233 MAINTAINER_MODE_FALSE=
3234 fi
3235
3236 MAINT=$MAINTAINER_MODE_TRUE
3237
3238
3239
3240
3241
3242
3243
3244
3245 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
3246
3247 for k in m4 ; do ACLOCAL="$ACLOCAL -I $k" ; done
3248
3249
3250
3251 MKINSTALLDIRS=
3252 if test -n "$ac_aux_dir"; then
3253 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3254 fi
3255 if test -z "$MKINSTALLDIRS"; then
3256 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3257 fi
3258
3259
3260
3261
3262
3263 # Extract the first word of "msgfmt", so it can be a program name with args.
3264 set dummy msgfmt; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if test "${ac_cv_path_MSGFMT+set}" = set; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 case "$MSGFMT" in
3271 /*)
3272 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3273 ;;
3274 *)
3275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3276 for ac_dir in $PATH; do
3277 test -z "$ac_dir" && ac_dir=.
3278 if test -f $ac_dir/$ac_word; then
3279 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3280 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3281 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3282 break
3283 fi
3284 fi
3285 done
3286 IFS="$ac_save_ifs"
3287 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3288 ;;
3289 esac
3290 fi
3291 MSGFMT="$ac_cv_path_MSGFMT"
3292 if test "$MSGFMT" != ":"; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3294 $as_echo "$MSGFMT" >&6; }
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3298 fi
3299
3300 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3301 set dummy gmsgfmt; ac_word=$2
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 $as_echo_n "checking for $ac_word... " >&6; }
3304 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 case $GMSGFMT in
3308 [\\/]* | ?:[\\/]*)
3309 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3310 ;;
3311 *)
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3314 do
3315 IFS=$as_save_IFS
3316 test -z "$as_dir" && as_dir=.
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3319 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 break 2
3322 fi
3323 done
3324 done
3325 IFS=$as_save_IFS
3326
3327 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3328 ;;
3329 esac
3330 fi
3331 GMSGFMT=$ac_cv_path_GMSGFMT
3332 if test -n "$GMSGFMT"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3334 $as_echo "$GMSGFMT" >&6; }
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 fi
3339
3340
3341
3342 # Extract the first word of "xgettext", so it can be a program name with args.
3343 set dummy xgettext; ac_word=$2
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 case "$XGETTEXT" in
3350 /*)
3351 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3352 ;;
3353 *)
3354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3355 for ac_dir in $PATH; do
3356 test -z "$ac_dir" && ac_dir=.
3357 if test -f $ac_dir/$ac_word; then
3358 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3359 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3360 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3361 break
3362 fi
3363 fi
3364 done
3365 IFS="$ac_save_ifs"
3366 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3367 ;;
3368 esac
3369 fi
3370 XGETTEXT="$ac_cv_path_XGETTEXT"
3371 if test "$XGETTEXT" != ":"; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3373 $as_echo "$XGETTEXT" >&6; }
3374 else
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3377 fi
3378
3379 rm -f messages.po
3380
3381 # Extract the first word of "msgmerge", so it can be a program name with args.
3382 set dummy msgmerge; ac_word=$2
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3384 $as_echo_n "checking for $ac_word... " >&6; }
3385 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
3386 $as_echo_n "(cached) " >&6
3387 else
3388 case "$MSGMERGE" in
3389 /*)
3390 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3391 ;;
3392 *)
3393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3394 for ac_dir in $PATH; do
3395 test -z "$ac_dir" && ac_dir=.
3396 if test -f $ac_dir/$ac_word; then
3397 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3398 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
3399 break
3400 fi
3401 fi
3402 done
3403 IFS="$ac_save_ifs"
3404 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3405 ;;
3406 esac
3407 fi
3408 MSGMERGE="$ac_cv_path_MSGMERGE"
3409 if test "$MSGMERGE" != ":"; then
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3411 $as_echo "$MSGMERGE" >&6; }
3412 else
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3415 fi
3416
3417
3418 if test "$GMSGFMT" != ":"; then
3419 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3420 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3421 : ;
3422 else
3423 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3425 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
3426 GMSGFMT=":"
3427 fi
3428 fi
3429
3430 if test "$XGETTEXT" != ":"; then
3431 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3432 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3433 : ;
3434 else
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
3436 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
3437 XGETTEXT=":"
3438 fi
3439 rm -f messages.po
3440 fi
3441
3442 ac_config_commands="$ac_config_commands default-1"
3443
3444
3445
3446 if test "X$prefix" = "XNONE"; then
3447 acl_final_prefix="$ac_default_prefix"
3448 else
3449 acl_final_prefix="$prefix"
3450 fi
3451 if test "X$exec_prefix" = "XNONE"; then
3452 acl_final_exec_prefix='${prefix}'
3453 else
3454 acl_final_exec_prefix="$exec_prefix"
3455 fi
3456 acl_save_prefix="$prefix"
3457 prefix="$acl_final_prefix"
3458 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3459 prefix="$acl_save_prefix"
3460
3461 DEPDIR="${am__leading_dot}deps"
3462
3463 ac_config_commands="$ac_config_commands depfiles"
3464
3465
3466 am_make=${MAKE-make}
3467 cat > confinc << 'END'
3468 am__doit:
3469 @echo this is the am__doit target
3470 .PHONY: am__doit
3471 END
3472 # If we don't find an include directive, just comment out the code.
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3474 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3475 am__include="#"
3476 am__quote=
3477 _am_result=none
3478 # First try GNU make style include.
3479 echo "include confinc" > confmf
3480 # Ignore all kinds of additional output from `make'.
3481 case `$am_make -s -f confmf 2> /dev/null` in #(
3482 *the\ am__doit\ target*)
3483 am__include=include
3484 am__quote=
3485 _am_result=GNU
3486 ;;
3487 esac
3488 # Now try BSD make style include.
3489 if test "$am__include" = "#"; then
3490 echo '.include "confinc"' > confmf
3491 case `$am_make -s -f confmf 2> /dev/null` in #(
3492 *the\ am__doit\ target*)
3493 am__include=.include
3494 am__quote="\""
3495 _am_result=BSD
3496 ;;
3497 esac
3498 fi
3499
3500
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3502 $as_echo "$_am_result" >&6; }
3503 rm -f confinc confmf
3504
3505 # Check whether --enable-dependency-tracking was given.
3506 if test "${enable_dependency_tracking+set}" = set; then :
3507 enableval=$enable_dependency_tracking;
3508 fi
3509
3510 if test "x$enable_dependency_tracking" != xno; then
3511 am_depcomp="$ac_aux_dir/depcomp"
3512 AMDEPBACKSLASH='\'
3513 fi
3514 if test "x$enable_dependency_tracking" != xno; then
3515 AMDEP_TRUE=
3516 AMDEP_FALSE='#'
3517 else
3518 AMDEP_TRUE='#'
3519 AMDEP_FALSE=
3520 fi
3521
3522
3523 ac_ext=c
3524 ac_cpp='$CPP $CPPFLAGS'
3525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528 if test -n "$ac_tool_prefix"; then
3529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532 $as_echo_n "checking for $ac_word... " >&6; }
3533 if test "${ac_cv_prog_CC+set}" = set; then :
3534 $as_echo_n "(cached) " >&6
3535 else
3536 if test -n "$CC"; then
3537 ac_cv_prog_CC="$CC" # Let the user override the test.
3538 else
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH
3541 do
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3546 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 break 2
3549 fi
3550 done
3551 done
3552 IFS=$as_save_IFS
3553
3554 fi
3555 fi
3556 CC=$ac_cv_prog_CC
3557 if test -n "$CC"; then
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3559 $as_echo "$CC" >&6; }
3560 else
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3563 fi
3564
3565
3566 fi
3567 if test -z "$ac_cv_prog_CC"; then
3568 ac_ct_CC=$CC
3569 # Extract the first word of "gcc", so it can be a program name with args.
3570 set dummy gcc; ac_word=$2
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572 $as_echo_n "checking for $ac_word... " >&6; }
3573 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3574 $as_echo_n "(cached) " >&6
3575 else
3576 if test -n "$ac_ct_CC"; then
3577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3578 else
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH
3581 do
3582 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=.
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3586 ac_cv_prog_ac_ct_CC="gcc"
3587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 break 2
3589 fi
3590 done
3591 done
3592 IFS=$as_save_IFS
3593
3594 fi
3595 fi
3596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3597 if test -n "$ac_ct_CC"; then
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3599 $as_echo "$ac_ct_CC" >&6; }
3600 else
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 $as_echo "no" >&6; }
3603 fi
3604
3605 if test "x$ac_ct_CC" = x; then
3606 CC=""
3607 else
3608 case $cross_compiling:$ac_tool_warned in
3609 yes:)
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3612 ac_tool_warned=yes ;;
3613 esac
3614 CC=$ac_ct_CC
3615 fi
3616 else
3617 CC="$ac_cv_prog_CC"
3618 fi
3619
3620 if test -z "$CC"; then
3621 if test -n "$ac_tool_prefix"; then
3622 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3623 set dummy ${ac_tool_prefix}cc; ac_word=$2
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3625 $as_echo_n "checking for $ac_word... " >&6; }
3626 if test "${ac_cv_prog_CC+set}" = set; then :
3627 $as_echo_n "(cached) " >&6
3628 else
3629 if test -n "$CC"; then
3630 ac_cv_prog_CC="$CC" # Let the user override the test.
3631 else
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635 IFS=$as_save_IFS
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3639 ac_cv_prog_CC="${ac_tool_prefix}cc"
3640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 break 2
3642 fi
3643 done
3644 done
3645 IFS=$as_save_IFS
3646
3647 fi
3648 fi
3649 CC=$ac_cv_prog_CC
3650 if test -n "$CC"; then
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3652 $as_echo "$CC" >&6; }
3653 else
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3656 fi
3657
3658
3659 fi
3660 fi
3661 if test -z "$CC"; then
3662 # Extract the first word of "cc", so it can be a program name with args.
3663 set dummy cc; ac_word=$2
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3665 $as_echo_n "checking for $ac_word... " >&6; }
3666 if test "${ac_cv_prog_CC+set}" = set; then :
3667 $as_echo_n "(cached) " >&6
3668 else
3669 if test -n "$CC"; then
3670 ac_cv_prog_CC="$CC" # Let the user override the test.
3671 else
3672 ac_prog_rejected=no
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH
3675 do
3676 IFS=$as_save_IFS
3677 test -z "$as_dir" && as_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3680 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3681 ac_prog_rejected=yes
3682 continue
3683 fi
3684 ac_cv_prog_CC="cc"
3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3686 break 2
3687 fi
3688 done
3689 done
3690 IFS=$as_save_IFS
3691
3692 if test $ac_prog_rejected = yes; then
3693 # We found a bogon in the path, so make sure we never use it.
3694 set dummy $ac_cv_prog_CC
3695 shift
3696 if test $# != 0; then
3697 # We chose a different compiler from the bogus one.
3698 # However, it has the same basename, so the bogon will be chosen
3699 # first if we set CC to just the basename; use the full file name.
3700 shift
3701 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3702 fi
3703 fi
3704 fi
3705 fi
3706 CC=$ac_cv_prog_CC
3707 if test -n "$CC"; then
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3709 $as_echo "$CC" >&6; }
3710 else
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3713 fi
3714
3715
3716 fi
3717 if test -z "$CC"; then
3718 if test -n "$ac_tool_prefix"; then
3719 for ac_prog in cl.exe
3720 do
3721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3722 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3724 $as_echo_n "checking for $ac_word... " >&6; }
3725 if test "${ac_cv_prog_CC+set}" = set; then :
3726 $as_echo_n "(cached) " >&6
3727 else
3728 if test -n "$CC"; then
3729 ac_cv_prog_CC="$CC" # Let the user override the test.
3730 else
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3733 do
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3738 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 break 2
3741 fi
3742 done
3743 done
3744 IFS=$as_save_IFS
3745
3746 fi
3747 fi
3748 CC=$ac_cv_prog_CC
3749 if test -n "$CC"; then
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3751 $as_echo "$CC" >&6; }
3752 else
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3754 $as_echo "no" >&6; }
3755 fi
3756
3757
3758 test -n "$CC" && break
3759 done
3760 fi
3761 if test -z "$CC"; then
3762 ac_ct_CC=$CC
3763 for ac_prog in cl.exe
3764 do
3765 # Extract the first word of "$ac_prog", so it can be a program name with args.
3766 set dummy $ac_prog; ac_word=$2
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3768 $as_echo_n "checking for $ac_word... " >&6; }
3769 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3770 $as_echo_n "(cached) " >&6
3771 else
3772 if test -n "$ac_ct_CC"; then
3773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3774 else
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH
3777 do
3778 IFS=$as_save_IFS
3779 test -z "$as_dir" && as_dir=.
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3782 ac_cv_prog_ac_ct_CC="$ac_prog"
3783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3784 break 2
3785 fi
3786 done
3787 done
3788 IFS=$as_save_IFS
3789
3790 fi
3791 fi
3792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3793 if test -n "$ac_ct_CC"; then
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3795 $as_echo "$ac_ct_CC" >&6; }
3796 else
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3798 $as_echo "no" >&6; }
3799 fi
3800
3801
3802 test -n "$ac_ct_CC" && break
3803 done
3804
3805 if test "x$ac_ct_CC" = x; then
3806 CC=""
3807 else
3808 case $cross_compiling:$ac_tool_warned in
3809 yes:)
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3812 ac_tool_warned=yes ;;
3813 esac
3814 CC=$ac_ct_CC
3815 fi
3816 fi
3817
3818 fi
3819
3820
3821 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3823 as_fn_error $? "no acceptable C compiler found in \$PATH
3824 See \`config.log' for more details" "$LINENO" 5 ; }
3825
3826 # Provide some information about the compiler.
3827 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3828 set X $ac_compile
3829 ac_compiler=$2
3830 for ac_option in --version -v -V -qversion; do
3831 { { ac_try="$ac_compiler $ac_option >&5"
3832 case "(($ac_try" in
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3835 esac
3836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837 $as_echo "$ac_try_echo"; } >&5
3838 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3839 ac_status=$?
3840 if test -s conftest.err; then
3841 sed '10a\
3842 ... rest of stderr output deleted ...
3843 10q' conftest.err >conftest.er1
3844 cat conftest.er1 >&5
3845 fi
3846 rm -f conftest.er1 conftest.err
3847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3848 test $ac_status = 0; }
3849 done
3850
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3853
3854 int
3855 main ()
3856 {
3857
3858 ;
3859 return 0;
3860 }
3861 _ACEOF
3862 ac_clean_files_save=$ac_clean_files
3863 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3864 # Try to create an executable without -o first, disregard a.out.
3865 # It will help us diagnose broken compilers, and finding out an intuition
3866 # of exeext.
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3868 $as_echo_n "checking whether the C compiler works... " >&6; }
3869 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3870
3871 # The possible output files:
3872 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3873
3874 ac_rmfiles=
3875 for ac_file in $ac_files
3876 do
3877 case $ac_file in
3878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3879 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3880 esac
3881 done
3882 rm -f $ac_rmfiles
3883
3884 if { { ac_try="$ac_link_default"
3885 case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888 esac
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_link_default") 2>&5
3892 ac_status=$?
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; then :
3895 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3896 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3897 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3898 # so that the user can short-circuit this test for compilers unknown to
3899 # Autoconf.
3900 for ac_file in $ac_files ''
3901 do
3902 test -f "$ac_file" || continue
3903 case $ac_file in
3904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3905 ;;
3906 [ab].out )
3907 # We found the default executable, but exeext='' is most
3908 # certainly right.
3909 break;;
3910 *.* )
3911 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3912 then :; else
3913 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3914 fi
3915 # We set ac_cv_exeext here because the later test for it is not
3916 # safe: cross compilers may not add the suffix if given an `-o'
3917 # argument, so we may need to know it at that point already.
3918 # Even if this section looks crufty: it has the advantage of
3919 # actually working.
3920 break;;
3921 * )
3922 break;;
3923 esac
3924 done
3925 test "$ac_cv_exeext" = no && ac_cv_exeext=
3926
3927 else
3928 ac_file=''
3929 fi
3930 if test -z "$ac_file"; then :
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
3933 $as_echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3935
3936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 as_fn_error 77 "C compiler cannot create executables
3939 See \`config.log' for more details" "$LINENO" 5 ; }
3940 else
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3942 $as_echo "yes" >&6; }
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3945 $as_echo_n "checking for C compiler default output file name... " >&6; }
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3947 $as_echo "$ac_file" >&6; }
3948 ac_exeext=$ac_cv_exeext
3949
3950 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3951 ac_clean_files=$ac_clean_files_save
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3953 $as_echo_n "checking for suffix of executables... " >&6; }
3954 if { { ac_try="$ac_link"
3955 case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_link") 2>&5
3962 ac_status=$?
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; then :
3965 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3966 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3967 # work properly (i.e., refer to `conftest.exe'), while it won't with
3968 # `rm'.
3969 for ac_file in conftest.exe conftest conftest.*; do
3970 test -f "$ac_file" || continue
3971 case $ac_file in
3972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3973 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3974 break;;
3975 * ) break;;
3976 esac
3977 done
3978 else
3979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3981 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3982 See \`config.log' for more details" "$LINENO" 5 ; }
3983 fi
3984 rm -f conftest conftest$ac_cv_exeext
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3986 $as_echo "$ac_cv_exeext" >&6; }
3987
3988 rm -f conftest.$ac_ext
3989 EXEEXT=$ac_cv_exeext
3990 ac_exeext=$EXEEXT
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
3993 #include <stdio.h>
3994 int
3995 main ()
3996 {
3997 FILE *f = fopen ("conftest.out", "w");
3998 return ferror (f) || fclose (f) != 0;
3999
4000 ;
4001 return 0;
4002 }
4003 _ACEOF
4004 ac_clean_files="$ac_clean_files conftest.out"
4005 # Check that the compiler produces executables we can run. If not, either
4006 # the compiler is broken, or we cross compile.
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4008 $as_echo_n "checking whether we are cross compiling... " >&6; }
4009 if test "$cross_compiling" != yes; then
4010 { { ac_try="$ac_link"
4011 case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4014 esac
4015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016 $as_echo "$ac_try_echo"; } >&5
4017 (eval "$ac_link") 2>&5
4018 ac_status=$?
4019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020 test $ac_status = 0; }
4021 if { ac_try='./conftest$ac_cv_exeext'
4022 { { case "(($ac_try" in
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4025 esac
4026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4027 $as_echo "$ac_try_echo"; } >&5
4028 (eval "$ac_try") 2>&5
4029 ac_status=$?
4030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4031 test $ac_status = 0; }; }; then
4032 cross_compiling=no
4033 else
4034 if test "$cross_compiling" = maybe; then
4035 cross_compiling=yes
4036 else
4037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error $? "cannot run C compiled programs.
4040 If you meant to cross compile, use \`--host'.
4041 See \`config.log' for more details" "$LINENO" 5 ; }
4042 fi
4043 fi
4044 fi
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4046 $as_echo "$cross_compiling" >&6; }
4047
4048 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4049 ac_clean_files=$ac_clean_files_save
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4051 $as_echo_n "checking for suffix of object files... " >&6; }
4052 if test "${ac_cv_objext+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4057
4058 int
4059 main ()
4060 {
4061
4062 ;
4063 return 0;
4064 }
4065 _ACEOF
4066 rm -f conftest.o conftest.obj
4067 if { { ac_try="$ac_compile"
4068 case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071 esac
4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 $as_echo "$ac_try_echo"; } >&5
4074 (eval "$ac_compile") 2>&5
4075 ac_status=$?
4076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077 test $ac_status = 0; }; then :
4078 for ac_file in conftest.o conftest.obj conftest.*; do
4079 test -f "$ac_file" || continue;
4080 case $ac_file in
4081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4082 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4083 break;;
4084 esac
4085 done
4086 else
4087 $as_echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4089
4090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4092 as_fn_error $? "cannot compute suffix of object files: cannot compile
4093 See \`config.log' for more details" "$LINENO" 5 ; }
4094 fi
4095 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4096 fi
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4098 $as_echo "$ac_cv_objext" >&6; }
4099 OBJEXT=$ac_cv_objext
4100 ac_objext=$OBJEXT
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4102 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4103 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4104 $as_echo_n "(cached) " >&6
4105 else
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4108
4109 int
4110 main ()
4111 {
4112 #ifndef __GNUC__
4113 choke me
4114 #endif
4115
4116 ;
4117 return 0;
4118 }
4119 _ACEOF
4120 if ac_fn_c_try_compile "$LINENO"; then :
4121 ac_compiler_gnu=yes
4122 else
4123 ac_compiler_gnu=no
4124 fi
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4127
4128 fi
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4130 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4131 if test $ac_compiler_gnu = yes; then
4132 GCC=yes
4133 else
4134 GCC=
4135 fi
4136 ac_test_CFLAGS=${CFLAGS+set}
4137 ac_save_CFLAGS=$CFLAGS
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4139 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4140 if test "${ac_cv_prog_cc_g+set}" = set; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 ac_save_c_werror_flag=$ac_c_werror_flag
4144 ac_c_werror_flag=yes
4145 ac_cv_prog_cc_g=no
4146 CFLAGS="-g"
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149
4150 int
4151 main ()
4152 {
4153
4154 ;
4155 return 0;
4156 }
4157 _ACEOF
4158 if ac_fn_c_try_compile "$LINENO"; then :
4159 ac_cv_prog_cc_g=yes
4160 else
4161 CFLAGS=""
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164
4165 int
4166 main ()
4167 {
4168
4169 ;
4170 return 0;
4171 }
4172 _ACEOF
4173 if ac_fn_c_try_compile "$LINENO"; then :
4174
4175 else
4176 ac_c_werror_flag=$ac_save_c_werror_flag
4177 CFLAGS="-g"
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4180
4181 int
4182 main ()
4183 {
4184
4185 ;
4186 return 0;
4187 }
4188 _ACEOF
4189 if ac_fn_c_try_compile "$LINENO"; then :
4190 ac_cv_prog_cc_g=yes
4191 fi
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 fi
4194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195 fi
4196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197 ac_c_werror_flag=$ac_save_c_werror_flag
4198 fi
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4200 $as_echo "$ac_cv_prog_cc_g" >&6; }
4201 if test "$ac_test_CFLAGS" = set; then
4202 CFLAGS=$ac_save_CFLAGS
4203 elif test $ac_cv_prog_cc_g = yes; then
4204 if test "$GCC" = yes; then
4205 CFLAGS="-g -O2"
4206 else
4207 CFLAGS="-g"
4208 fi
4209 else
4210 if test "$GCC" = yes; then
4211 CFLAGS="-O2"
4212 else
4213 CFLAGS=
4214 fi
4215 fi
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4217 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4218 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 ac_cv_prog_cc_c89=no
4222 ac_save_CC=$CC
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4225 #include <stdarg.h>
4226 #include <stdio.h>
4227 #include <sys/types.h>
4228 #include <sys/stat.h>
4229 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4230 struct buf { int x; };
4231 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4232 static char *e (p, i)
4233 char **p;
4234 int i;
4235 {
4236 return p[i];
4237 }
4238 static char *f (char * (*g) (char **, int), char **p, ...)
4239 {
4240 char *s;
4241 va_list v;
4242 va_start (v,p);
4243 s = g (p, va_arg (v,int));
4244 va_end (v);
4245 return s;
4246 }
4247
4248 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4249 function prototypes and stuff, but not '\xHH' hex character constants.
4250 These don't provoke an error unfortunately, instead are silently treated
4251 as 'x'. The following induces an error, until -std is added to get
4252 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4253 array size at least. It's necessary to write '\x00'==0 to get something
4254 that's true only with -std. */
4255 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4256
4257 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4258 inside strings and character constants. */
4259 #define FOO(x) 'x'
4260 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4261
4262 int test (int i, double x);
4263 struct s1 {int (*f) (int a);};
4264 struct s2 {int (*f) (double a);};
4265 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4266 int argc;
4267 char **argv;
4268 int
4269 main ()
4270 {
4271 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4272 ;
4273 return 0;
4274 }
4275 _ACEOF
4276 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4277 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4278 do
4279 CC="$ac_save_CC $ac_arg"
4280 if ac_fn_c_try_compile "$LINENO"; then :
4281 ac_cv_prog_cc_c89=$ac_arg
4282 fi
4283 rm -f core conftest.err conftest.$ac_objext
4284 test "x$ac_cv_prog_cc_c89" != "xno" && break
4285 done
4286 rm -f conftest.$ac_ext
4287 CC=$ac_save_CC
4288
4289 fi
4290 # AC_CACHE_VAL
4291 case "x$ac_cv_prog_cc_c89" in
4292 x)
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4294 $as_echo "none needed" >&6; } ;;
4295 xno)
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4297 $as_echo "unsupported" >&6; } ;;
4298 *)
4299 CC="$CC $ac_cv_prog_cc_c89"
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4301 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4302 esac
4303 if test "x$ac_cv_prog_cc_c89" != xno; then :
4304
4305 fi
4306
4307 ac_ext=c
4308 ac_cpp='$CPP $CPPFLAGS'
4309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312
4313 depcc="$CC" am_compiler_list=
4314
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4316 $as_echo_n "checking dependency style of $depcc... " >&6; }
4317 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4318 $as_echo_n "(cached) " >&6
4319 else
4320 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4321 # We make a subdir and do the tests there. Otherwise we can end up
4322 # making bogus files that we don't know about and never remove. For
4323 # instance it was reported that on HP-UX the gcc test will end up
4324 # making a dummy file named `D' -- because `-MD' means `put the output
4325 # in D'.
4326 mkdir conftest.dir
4327 # Copy depcomp to subdir because otherwise we won't find it if we're
4328 # using a relative directory.
4329 cp "$am_depcomp" conftest.dir
4330 cd conftest.dir
4331 # We will build objects and dependencies in a subdirectory because
4332 # it helps to detect inapplicable dependency modes. For instance
4333 # both Tru64's cc and ICC support -MD to output dependencies as a
4334 # side effect of compilation, but ICC will put the dependencies in
4335 # the current directory while Tru64 will put them in the object
4336 # directory.
4337 mkdir sub
4338
4339 am_cv_CC_dependencies_compiler_type=none
4340 if test "$am_compiler_list" = ""; then
4341 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4342 fi
4343 am__universal=false
4344 case " $depcc " in #(
4345 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4346 esac
4347
4348 for depmode in $am_compiler_list; do
4349 # Setup a source with many dependencies, because some compilers
4350 # like to wrap large dependency lists on column 80 (with \), and
4351 # we should not choose a depcomp mode which is confused by this.
4352 #
4353 # We need to recreate these files for each test, as the compiler may
4354 # overwrite some of them when testing with obscure command lines.
4355 # This happens at least with the AIX C compiler.
4356 : > sub/conftest.c
4357 for i in 1 2 3 4 5 6; do
4358 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4359 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4360 # Solaris 8's {/usr,}/bin/sh.
4361 touch sub/conftst$i.h
4362 done
4363 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4364
4365 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4366 # mode. It turns out that the SunPro C++ compiler does not properly
4367 # handle `-M -o', and we need to detect this. Also, some Intel
4368 # versions had trouble with output in subdirs
4369 am__obj=sub/conftest.${OBJEXT-o}
4370 am__minus_obj="-o $am__obj"
4371 case $depmode in
4372 gcc)
4373 # This depmode causes a compiler race in universal mode.
4374 test "$am__universal" = false || continue
4375 ;;
4376 nosideeffect)
4377 # after this tag, mechanisms are not by side-effect, so they'll
4378 # only be used when explicitly requested
4379 if test "x$enable_dependency_tracking" = xyes; then
4380 continue
4381 else
4382 break
4383 fi
4384 ;;
4385 msvisualcpp | msvcmsys)
4386 # This compiler won't grok `-c -o', but also, the minuso test has
4387 # not run yet. These depmodes are late enough in the game, and
4388 # so weak that their functioning should not be impacted.
4389 am__obj=conftest.${OBJEXT-o}
4390 am__minus_obj=
4391 ;;
4392 none) break ;;
4393 esac
4394 if depmode=$depmode \
4395 source=sub/conftest.c object=$am__obj \
4396 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4397 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4398 >/dev/null 2>conftest.err &&
4399 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4400 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4401 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4402 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4403 # icc doesn't choke on unknown options, it will just issue warnings
4404 # or remarks (even with -Werror). So we grep stderr for any message
4405 # that says an option was ignored or not supported.
4406 # When given -MP, icc 7.0 and 7.1 complain thusly:
4407 # icc: Command line warning: ignoring option '-M'; no argument required
4408 # The diagnosis changed in icc 8.0:
4409 # icc: Command line remark: option '-MP' not supported
4410 if (grep 'ignoring option' conftest.err ||
4411 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4412 am_cv_CC_dependencies_compiler_type=$depmode
4413 break
4414 fi
4415 fi
4416 done
4417
4418 cd ..
4419 rm -rf conftest.dir
4420 else
4421 am_cv_CC_dependencies_compiler_type=none
4422 fi
4423
4424 fi
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4426 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4427 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4428
4429 if
4430 test "x$enable_dependency_tracking" != xno \
4431 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4432 am__fastdepCC_TRUE=
4433 am__fastdepCC_FALSE='#'
4434 else
4435 am__fastdepCC_TRUE='#'
4436 am__fastdepCC_FALSE=
4437 fi
4438
4439
4440
4441 # Check whether --with-gnu-ld was given.
4442 if test "${with_gnu_ld+set}" = set; then :
4443 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4444 else
4445 with_gnu_ld=no
4446 fi
4447
4448 ac_prog=ld
4449 if test "$GCC" = yes; then
4450 # Check if gcc -print-prog-name=ld gives a path.
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4452 $as_echo_n "checking for ld used by GCC... " >&6; }
4453 case $host in
4454 *-*-mingw*)
4455 # gcc leaves a trailing carriage return which upsets mingw
4456 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4457 *)
4458 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4459 esac
4460 case $ac_prog in
4461 # Accept absolute paths.
4462 [\\/]* | [A-Za-z]:[\\/]*)
4463 re_direlt='/[^/][^/]*/\.\./'
4464 # Canonicalize the path of ld
4465 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4466 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4467 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4468 done
4469 test -z "$LD" && LD="$ac_prog"
4470 ;;
4471 "")
4472 # If it fails, then pretend we aren't using GCC.
4473 ac_prog=ld
4474 ;;
4475 *)
4476 # If it is relative, then search for the first ld in PATH.
4477 with_gnu_ld=unknown
4478 ;;
4479 esac
4480 elif test "$with_gnu_ld" = yes; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4482 $as_echo_n "checking for GNU ld... " >&6; }
4483 else
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4485 $as_echo_n "checking for non-GNU ld... " >&6; }
4486 fi
4487 if test "${acl_cv_path_LD+set}" = set; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 if test -z "$LD"; then
4491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4492 for ac_dir in $PATH; do
4493 test -z "$ac_dir" && ac_dir=.
4494 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4495 acl_cv_path_LD="$ac_dir/$ac_prog"
4496 # Check to see if the program is GNU ld. I'd rather use --version,
4497 # but apparently some GNU ld's only accept -v.
4498 # Break only if it was the GNU/non-GNU ld that we prefer.
4499 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4500 test "$with_gnu_ld" != no && break
4501 else
4502 test "$with_gnu_ld" != yes && break
4503 fi
4504 fi
4505 done
4506 IFS="$ac_save_ifs"
4507 else
4508 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4509 fi
4510 fi
4511
4512 LD="$acl_cv_path_LD"
4513 if test -n "$LD"; then
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4515 $as_echo "$LD" >&6; }
4516 else
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518 $as_echo "no" >&6; }
4519 fi
4520 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4522 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4523 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4527 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4528 acl_cv_prog_gnu_ld=yes
4529 else
4530 acl_cv_prog_gnu_ld=no
4531 fi
4532 fi
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4534 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4535 with_gnu_ld=$acl_cv_prog_gnu_ld
4536
4537
4538
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4540 $as_echo_n "checking for shared library run path origin... " >&6; }
4541 if test "${acl_cv_rpath+set}" = set; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544
4545 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4546 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4547 . ./conftest.sh
4548 rm -f ./conftest.sh
4549 acl_cv_rpath=done
4550
4551 fi
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4553 $as_echo "$acl_cv_rpath" >&6; }
4554 wl="$acl_cv_wl"
4555 libext="$acl_cv_libext"
4556 shlibext="$acl_cv_shlibext"
4557 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4558 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4559 hardcode_direct="$acl_cv_hardcode_direct"
4560 hardcode_minus_L="$acl_cv_hardcode_minus_L"
4561 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
4562 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
4563 # Check whether --enable-rpath was given.
4564 if test "${enable_rpath+set}" = set; then :
4565 enableval=$enable_rpath; :
4566 else
4567 enable_rpath=yes
4568 fi
4569
4570
4571
4572
4573
4574
4575
4576
4577 use_additional=yes
4578
4579 acl_save_prefix="$prefix"
4580 prefix="$acl_final_prefix"
4581 acl_save_exec_prefix="$exec_prefix"
4582 exec_prefix="$acl_final_exec_prefix"
4583
4584 eval additional_includedir=\"$includedir\"
4585 eval additional_libdir=\"$libdir\"
4586
4587 exec_prefix="$acl_save_exec_prefix"
4588 prefix="$acl_save_prefix"
4589
4590
4591 # Check whether --with-libiconv-prefix was given.
4592 if test "${with_libiconv_prefix+set}" = set; then :
4593 withval=$with_libiconv_prefix;
4594 if test "X$withval" = "Xno"; then
4595 use_additional=no
4596 else
4597 if test "X$withval" = "X"; then
4598
4599 acl_save_prefix="$prefix"
4600 prefix="$acl_final_prefix"
4601 acl_save_exec_prefix="$exec_prefix"
4602 exec_prefix="$acl_final_exec_prefix"
4603
4604 eval additional_includedir=\"$includedir\"
4605 eval additional_libdir=\"$libdir\"
4606
4607 exec_prefix="$acl_save_exec_prefix"
4608 prefix="$acl_save_prefix"
4609
4610 else
4611 additional_includedir="$withval/include"
4612 additional_libdir="$withval/lib"
4613 fi
4614 fi
4615
4616 fi
4617
4618 LIBICONV=
4619 LTLIBICONV=
4620 INCICONV=
4621 rpathdirs=
4622 ltrpathdirs=
4623 names_already_handled=
4624 names_next_round='iconv '
4625 while test -n "$names_next_round"; do
4626 names_this_round="$names_next_round"
4627 names_next_round=
4628 for name in $names_this_round; do
4629 already_handled=
4630 for n in $names_already_handled; do
4631 if test "$n" = "$name"; then
4632 already_handled=yes
4633 break
4634 fi
4635 done
4636 if test -z "$already_handled"; then
4637 names_already_handled="$names_already_handled $name"
4638 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4639 eval value=\"\$HAVE_LIB$uppername\"
4640 if test -n "$value"; then
4641 if test "$value" = yes; then
4642 eval value=\"\$LIB$uppername\"
4643 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4644 eval value=\"\$LTLIB$uppername\"
4645 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4646 else
4647 :
4648 fi
4649 else
4650 found_dir=
4651 found_la=
4652 found_so=
4653 found_a=
4654 if test $use_additional = yes; then
4655 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4656 found_dir="$additional_libdir"
4657 found_so="$additional_libdir/lib$name.$shlibext"
4658 if test -f "$additional_libdir/lib$name.la"; then
4659 found_la="$additional_libdir/lib$name.la"
4660 fi
4661 else
4662 if test -f "$additional_libdir/lib$name.$libext"; then
4663 found_dir="$additional_libdir"
4664 found_a="$additional_libdir/lib$name.$libext"
4665 if test -f "$additional_libdir/lib$name.la"; then
4666 found_la="$additional_libdir/lib$name.la"
4667 fi
4668 fi
4669 fi
4670 fi
4671 if test "X$found_dir" = "X"; then
4672 for x in $LDFLAGS $LTLIBICONV; do
4673
4674 acl_save_prefix="$prefix"
4675 prefix="$acl_final_prefix"
4676 acl_save_exec_prefix="$exec_prefix"
4677 exec_prefix="$acl_final_exec_prefix"
4678 eval x=\"$x\"
4679 exec_prefix="$acl_save_exec_prefix"
4680 prefix="$acl_save_prefix"
4681
4682 case "$x" in
4683 -L*)
4684 dir=`echo "X$x" | sed -e 's/^X-L//'`
4685 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4686 found_dir="$dir"
4687 found_so="$dir/lib$name.$shlibext"
4688 if test -f "$dir/lib$name.la"; then
4689 found_la="$dir/lib$name.la"
4690 fi
4691 else
4692 if test -f "$dir/lib$name.$libext"; then
4693 found_dir="$dir"
4694 found_a="$dir/lib$name.$libext"
4695 if test -f "$dir/lib$name.la"; then
4696 found_la="$dir/lib$name.la"
4697 fi
4698 fi
4699 fi
4700 ;;
4701 esac
4702 if test "X$found_dir" != "X"; then
4703 break
4704 fi
4705 done
4706 fi
4707 if test "X$found_dir" != "X"; then
4708 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4709 if test "X$found_so" != "X"; then
4710 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4711 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4712 else
4713 haveit=
4714 for x in $ltrpathdirs; do
4715 if test "X$x" = "X$found_dir"; then
4716 haveit=yes
4717 break
4718 fi
4719 done
4720 if test -z "$haveit"; then
4721 ltrpathdirs="$ltrpathdirs $found_dir"
4722 fi
4723 if test "$hardcode_direct" = yes; then
4724 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4725 else
4726 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4727 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4728 haveit=
4729 for x in $rpathdirs; do
4730 if test "X$x" = "X$found_dir"; then
4731 haveit=yes
4732 break
4733 fi
4734 done
4735 if test -z "$haveit"; then
4736 rpathdirs="$rpathdirs $found_dir"
4737 fi
4738 else
4739 haveit=
4740 for x in $LDFLAGS $LIBICONV; do
4741
4742 acl_save_prefix="$prefix"
4743 prefix="$acl_final_prefix"
4744 acl_save_exec_prefix="$exec_prefix"
4745 exec_prefix="$acl_final_exec_prefix"
4746 eval x=\"$x\"
4747 exec_prefix="$acl_save_exec_prefix"
4748 prefix="$acl_save_prefix"
4749
4750 if test "X$x" = "X-L$found_dir"; then
4751 haveit=yes
4752 break
4753 fi
4754 done
4755 if test -z "$haveit"; then
4756 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4757 fi
4758 if test "$hardcode_minus_L" != no; then
4759 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4760 else
4761 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4762 fi
4763 fi
4764 fi
4765 fi
4766 else
4767 if test "X$found_a" != "X"; then
4768 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4769 else
4770 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4771 fi
4772 fi
4773 additional_includedir=
4774 case "$found_dir" in
4775 */lib | */lib/)
4776 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4777 additional_includedir="$basedir/include"
4778 ;;
4779 esac
4780 if test "X$additional_includedir" != "X"; then
4781 if test "X$additional_includedir" != "X/usr/include"; then
4782 haveit=
4783 if test "X$additional_includedir" = "X/usr/local/include"; then
4784 if test -n "$GCC"; then
4785 case $host_os in
4786 linux*) haveit=yes;;
4787 esac
4788 fi
4789 fi
4790 if test -z "$haveit"; then
4791 for x in $CPPFLAGS $INCICONV; do
4792
4793 acl_save_prefix="$prefix"
4794 prefix="$acl_final_prefix"
4795 acl_save_exec_prefix="$exec_prefix"
4796 exec_prefix="$acl_final_exec_prefix"
4797 eval x=\"$x\"
4798 exec_prefix="$acl_save_exec_prefix"
4799 prefix="$acl_save_prefix"
4800
4801 if test "X$x" = "X-I$additional_includedir"; then
4802 haveit=yes
4803 break
4804 fi
4805 done
4806 if test -z "$haveit"; then
4807 if test -d "$additional_includedir"; then
4808 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4809 fi
4810 fi
4811 fi
4812 fi
4813 fi
4814 if test -n "$found_la"; then
4815 save_libdir="$libdir"
4816 case "$found_la" in
4817 */* | *\\*) . "$found_la" ;;
4818 *) . "./$found_la" ;;
4819 esac
4820 libdir="$save_libdir"
4821 for dep in $dependency_libs; do
4822 case "$dep" in
4823 -L*)
4824 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4825 if test "X$additional_libdir" != "X/usr/lib"; then
4826 haveit=
4827 if test "X$additional_libdir" = "X/usr/local/lib"; then
4828 if test -n "$GCC"; then
4829 case $host_os in
4830 linux*) haveit=yes;;
4831 esac
4832 fi
4833 fi
4834 if test -z "$haveit"; then
4835 haveit=
4836 for x in $LDFLAGS $LIBICONV; do
4837
4838 acl_save_prefix="$prefix"
4839 prefix="$acl_final_prefix"
4840 acl_save_exec_prefix="$exec_prefix"
4841 exec_prefix="$acl_final_exec_prefix"
4842 eval x=\"$x\"
4843 exec_prefix="$acl_save_exec_prefix"
4844 prefix="$acl_save_prefix"
4845
4846 if test "X$x" = "X-L$additional_libdir"; then
4847 haveit=yes
4848 break
4849 fi
4850 done
4851 if test -z "$haveit"; then
4852 if test -d "$additional_libdir"; then
4853 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4854 fi
4855 fi
4856 haveit=
4857 for x in $LDFLAGS $LTLIBICONV; do
4858
4859 acl_save_prefix="$prefix"
4860 prefix="$acl_final_prefix"
4861 acl_save_exec_prefix="$exec_prefix"
4862 exec_prefix="$acl_final_exec_prefix"
4863 eval x=\"$x\"
4864 exec_prefix="$acl_save_exec_prefix"
4865 prefix="$acl_save_prefix"
4866
4867 if test "X$x" = "X-L$additional_libdir"; then
4868 haveit=yes
4869 break
4870 fi
4871 done
4872 if test -z "$haveit"; then
4873 if test -d "$additional_libdir"; then
4874 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4875 fi
4876 fi
4877 fi
4878 fi
4879 ;;
4880 -R*)
4881 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4882 if test "$enable_rpath" != no; then
4883 haveit=
4884 for x in $rpathdirs; do
4885 if test "X$x" = "X$dir"; then
4886 haveit=yes
4887 break
4888 fi
4889 done
4890 if test -z "$haveit"; then
4891 rpathdirs="$rpathdirs $dir"
4892 fi
4893 haveit=
4894 for x in $ltrpathdirs; do
4895 if test "X$x" = "X$dir"; then
4896 haveit=yes
4897 break
4898 fi
4899 done
4900 if test -z "$haveit"; then
4901 ltrpathdirs="$ltrpathdirs $dir"
4902 fi
4903 fi
4904 ;;
4905 -l*)
4906 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4907 ;;
4908 *.la)
4909 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4910 ;;
4911 *)
4912 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4913 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4914 ;;
4915 esac
4916 done
4917 fi
4918 else
4919 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4920 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4921 fi
4922 fi
4923 fi
4924 done
4925 done
4926 if test "X$rpathdirs" != "X"; then
4927 if test -n "$hardcode_libdir_separator"; then
4928 alldirs=
4929 for found_dir in $rpathdirs; do
4930 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4931 done
4932 acl_save_libdir="$libdir"
4933 libdir="$alldirs"
4934 eval flag=\"$hardcode_libdir_flag_spec\"
4935 libdir="$acl_save_libdir"
4936 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4937 else
4938 for found_dir in $rpathdirs; do
4939 acl_save_libdir="$libdir"
4940 libdir="$found_dir"
4941 eval flag=\"$hardcode_libdir_flag_spec\"
4942 libdir="$acl_save_libdir"
4943 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4944 done
4945 fi
4946 fi
4947 if test "X$ltrpathdirs" != "X"; then
4948 for found_dir in $ltrpathdirs; do
4949 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4950 done
4951 fi
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4971 $as_echo_n "checking whether NLS is requested... " >&6; }
4972 # Check whether --enable-nls was given.
4973 if test "${enable_nls+set}" = set; then :
4974 enableval=$enable_nls; USE_NLS=$enableval
4975 else
4976 USE_NLS=yes
4977 fi
4978
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4980 $as_echo "$USE_NLS" >&6; }
4981
4982
4983
4984 LIBINTL=
4985 LTLIBINTL=
4986 POSUB=
4987
4988 if test "$USE_NLS" = "yes"; then
4989 gt_use_preinstalled_gnugettext=no
4990
4991
4992
4993
4994
4995
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
4997 $as_echo_n "checking for GNU gettext in libc... " >&6; }
4998 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5003 #include <libintl.h>
5004 extern int _nl_msg_cat_cntr;
5005 extern int *_nl_domain_bindings;
5006 int
5007 main ()
5008 {
5009 bindtextdomain ("", "");
5010 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5011 ;
5012 return 0;
5013 }
5014 _ACEOF
5015 if ac_fn_c_try_link "$LINENO"; then :
5016 gt_cv_func_gnugettext1_libc=yes
5017 else
5018 gt_cv_func_gnugettext1_libc=no
5019 fi
5020 rm -f core conftest.err conftest.$ac_objext \
5021 conftest$ac_exeext conftest.$ac_ext
5022 fi
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
5024 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
5025
5026 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5027
5028
5029
5030
5031
5032 am_save_CPPFLAGS="$CPPFLAGS"
5033
5034 for element in $INCICONV; do
5035 haveit=
5036 for x in $CPPFLAGS; do
5037
5038 acl_save_prefix="$prefix"
5039 prefix="$acl_final_prefix"
5040 acl_save_exec_prefix="$exec_prefix"
5041 exec_prefix="$acl_final_exec_prefix"
5042 eval x=\"$x\"
5043 exec_prefix="$acl_save_exec_prefix"
5044 prefix="$acl_save_prefix"
5045
5046 if test "X$x" = "X$element"; then
5047 haveit=yes
5048 break
5049 fi
5050 done
5051 if test -z "$haveit"; then
5052 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5053 fi
5054 done
5055
5056
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5058 $as_echo_n "checking for iconv... " >&6; }
5059 if test "${am_cv_func_iconv+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062
5063 am_cv_func_iconv="no, consider installing GNU libiconv"
5064 am_cv_lib_iconv=no
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5067 #include <stdlib.h>
5068 #include <iconv.h>
5069 int
5070 main ()
5071 {
5072 iconv_t cd = iconv_open("","");
5073 iconv(cd,NULL,NULL,NULL,NULL);
5074 iconv_close(cd);
5075 ;
5076 return 0;
5077 }
5078 _ACEOF
5079 if ac_fn_c_try_link "$LINENO"; then :
5080 am_cv_func_iconv=yes
5081 fi
5082 rm -f core conftest.err conftest.$ac_objext \
5083 conftest$ac_exeext conftest.$ac_ext
5084 if test "$am_cv_func_iconv" != yes; then
5085 am_save_LIBS="$LIBS"
5086 LIBS="$LIBS $LIBICONV"
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089 #include <stdlib.h>
5090 #include <iconv.h>
5091 int
5092 main ()
5093 {
5094 iconv_t cd = iconv_open("","");
5095 iconv(cd,NULL,NULL,NULL,NULL);
5096 iconv_close(cd);
5097 ;
5098 return 0;
5099 }
5100 _ACEOF
5101 if ac_fn_c_try_link "$LINENO"; then :
5102 am_cv_lib_iconv=yes
5103 am_cv_func_iconv=yes
5104 fi
5105 rm -f core conftest.err conftest.$ac_objext \
5106 conftest$ac_exeext conftest.$ac_ext
5107 LIBS="$am_save_LIBS"
5108 fi
5109
5110 fi
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5112 $as_echo "$am_cv_func_iconv" >&6; }
5113 if test "$am_cv_func_iconv" = yes; then
5114
5115 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5116
5117 fi
5118 if test "$am_cv_lib_iconv" = yes; then
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5120 $as_echo_n "checking how to link with libiconv... " >&6; }
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5122 $as_echo "$LIBICONV" >&6; }
5123 else
5124 CPPFLAGS="$am_save_CPPFLAGS"
5125 LIBICONV=
5126 LTLIBICONV=
5127 fi
5128
5129
5130
5131
5132
5133
5134 use_additional=yes
5135
5136 acl_save_prefix="$prefix"
5137 prefix="$acl_final_prefix"
5138 acl_save_exec_prefix="$exec_prefix"
5139 exec_prefix="$acl_final_exec_prefix"
5140
5141 eval additional_includedir=\"$includedir\"
5142 eval additional_libdir=\"$libdir\"
5143
5144 exec_prefix="$acl_save_exec_prefix"
5145 prefix="$acl_save_prefix"
5146
5147
5148 # Check whether --with-libintl-prefix was given.
5149 if test "${with_libintl_prefix+set}" = set; then :
5150 withval=$with_libintl_prefix;
5151 if test "X$withval" = "Xno"; then
5152 use_additional=no
5153 else
5154 if test "X$withval" = "X"; then
5155
5156 acl_save_prefix="$prefix"
5157 prefix="$acl_final_prefix"
5158 acl_save_exec_prefix="$exec_prefix"
5159 exec_prefix="$acl_final_exec_prefix"
5160
5161 eval additional_includedir=\"$includedir\"
5162 eval additional_libdir=\"$libdir\"
5163
5164 exec_prefix="$acl_save_exec_prefix"
5165 prefix="$acl_save_prefix"
5166
5167 else
5168 additional_includedir="$withval/include"
5169 additional_libdir="$withval/lib"
5170 fi
5171 fi
5172
5173 fi
5174
5175 LIBINTL=
5176 LTLIBINTL=
5177 INCINTL=
5178 rpathdirs=
5179 ltrpathdirs=
5180 names_already_handled=
5181 names_next_round='intl '
5182 while test -n "$names_next_round"; do
5183 names_this_round="$names_next_round"
5184 names_next_round=
5185 for name in $names_this_round; do
5186 already_handled=
5187 for n in $names_already_handled; do
5188 if test "$n" = "$name"; then
5189 already_handled=yes
5190 break
5191 fi
5192 done
5193 if test -z "$already_handled"; then
5194 names_already_handled="$names_already_handled $name"
5195 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5196 eval value=\"\$HAVE_LIB$uppername\"
5197 if test -n "$value"; then
5198 if test "$value" = yes; then
5199 eval value=\"\$LIB$uppername\"
5200 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5201 eval value=\"\$LTLIB$uppername\"
5202 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5203 else
5204 :
5205 fi
5206 else
5207 found_dir=
5208 found_la=
5209 found_so=
5210 found_a=
5211 if test $use_additional = yes; then
5212 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5213 found_dir="$additional_libdir"
5214 found_so="$additional_libdir/lib$name.$shlibext"
5215 if test -f "$additional_libdir/lib$name.la"; then
5216 found_la="$additional_libdir/lib$name.la"
5217 fi
5218 else
5219 if test -f "$additional_libdir/lib$name.$libext"; then
5220 found_dir="$additional_libdir"
5221 found_a="$additional_libdir/lib$name.$libext"
5222 if test -f "$additional_libdir/lib$name.la"; then
5223 found_la="$additional_libdir/lib$name.la"
5224 fi
5225 fi
5226 fi
5227 fi
5228 if test "X$found_dir" = "X"; then
5229 for x in $LDFLAGS $LTLIBINTL; do
5230
5231 acl_save_prefix="$prefix"
5232 prefix="$acl_final_prefix"
5233 acl_save_exec_prefix="$exec_prefix"
5234 exec_prefix="$acl_final_exec_prefix"
5235 eval x=\"$x\"
5236 exec_prefix="$acl_save_exec_prefix"
5237 prefix="$acl_save_prefix"
5238
5239 case "$x" in
5240 -L*)
5241 dir=`echo "X$x" | sed -e 's/^X-L//'`
5242 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5243 found_dir="$dir"
5244 found_so="$dir/lib$name.$shlibext"
5245 if test -f "$dir/lib$name.la"; then
5246 found_la="$dir/lib$name.la"
5247 fi
5248 else
5249 if test -f "$dir/lib$name.$libext"; then
5250 found_dir="$dir"
5251 found_a="$dir/lib$name.$libext"
5252 if test -f "$dir/lib$name.la"; then
5253 found_la="$dir/lib$name.la"
5254 fi
5255 fi
5256 fi
5257 ;;
5258 esac
5259 if test "X$found_dir" != "X"; then
5260 break
5261 fi
5262 done
5263 fi
5264 if test "X$found_dir" != "X"; then
5265 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5266 if test "X$found_so" != "X"; then
5267 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5268 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5269 else
5270 haveit=
5271 for x in $ltrpathdirs; do
5272 if test "X$x" = "X$found_dir"; then
5273 haveit=yes
5274 break
5275 fi
5276 done
5277 if test -z "$haveit"; then
5278 ltrpathdirs="$ltrpathdirs $found_dir"
5279 fi
5280 if test "$hardcode_direct" = yes; then
5281 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5282 else
5283 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5284 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5285 haveit=
5286 for x in $rpathdirs; do
5287 if test "X$x" = "X$found_dir"; then
5288 haveit=yes
5289 break
5290 fi
5291 done
5292 if test -z "$haveit"; then
5293 rpathdirs="$rpathdirs $found_dir"
5294 fi
5295 else
5296 haveit=
5297 for x in $LDFLAGS $LIBINTL; do
5298
5299 acl_save_prefix="$prefix"
5300 prefix="$acl_final_prefix"
5301 acl_save_exec_prefix="$exec_prefix"
5302 exec_prefix="$acl_final_exec_prefix"
5303 eval x=\"$x\"
5304 exec_prefix="$acl_save_exec_prefix"
5305 prefix="$acl_save_prefix"
5306
5307 if test "X$x" = "X-L$found_dir"; then
5308 haveit=yes
5309 break
5310 fi
5311 done
5312 if test -z "$haveit"; then
5313 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5314 fi
5315 if test "$hardcode_minus_L" != no; then
5316 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5317 else
5318 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5319 fi
5320 fi
5321 fi
5322 fi
5323 else
5324 if test "X$found_a" != "X"; then
5325 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5326 else
5327 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5328 fi
5329 fi
5330 additional_includedir=
5331 case "$found_dir" in
5332 */lib | */lib/)
5333 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5334 additional_includedir="$basedir/include"
5335 ;;
5336 esac
5337 if test "X$additional_includedir" != "X"; then
5338 if test "X$additional_includedir" != "X/usr/include"; then
5339 haveit=
5340 if test "X$additional_includedir" = "X/usr/local/include"; then
5341 if test -n "$GCC"; then
5342 case $host_os in
5343 linux*) haveit=yes;;
5344 esac
5345 fi
5346 fi
5347 if test -z "$haveit"; then
5348 for x in $CPPFLAGS $INCINTL; do
5349
5350 acl_save_prefix="$prefix"
5351 prefix="$acl_final_prefix"
5352 acl_save_exec_prefix="$exec_prefix"
5353 exec_prefix="$acl_final_exec_prefix"
5354 eval x=\"$x\"
5355 exec_prefix="$acl_save_exec_prefix"
5356 prefix="$acl_save_prefix"
5357
5358 if test "X$x" = "X-I$additional_includedir"; then
5359 haveit=yes
5360 break
5361 fi
5362 done
5363 if test -z "$haveit"; then
5364 if test -d "$additional_includedir"; then
5365 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5366 fi
5367 fi
5368 fi
5369 fi
5370 fi
5371 if test -n "$found_la"; then
5372 save_libdir="$libdir"
5373 case "$found_la" in
5374 */* | *\\*) . "$found_la" ;;
5375 *) . "./$found_la" ;;
5376 esac
5377 libdir="$save_libdir"
5378 for dep in $dependency_libs; do
5379 case "$dep" in
5380 -L*)
5381 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5382 if test "X$additional_libdir" != "X/usr/lib"; then
5383 haveit=
5384 if test "X$additional_libdir" = "X/usr/local/lib"; then
5385 if test -n "$GCC"; then
5386 case $host_os in
5387 linux*) haveit=yes;;
5388 esac
5389 fi
5390 fi
5391 if test -z "$haveit"; then
5392 haveit=
5393 for x in $LDFLAGS $LIBINTL; do
5394
5395 acl_save_prefix="$prefix"
5396 prefix="$acl_final_prefix"
5397 acl_save_exec_prefix="$exec_prefix"
5398 exec_prefix="$acl_final_exec_prefix"
5399 eval x=\"$x\"
5400 exec_prefix="$acl_save_exec_prefix"
5401 prefix="$acl_save_prefix"
5402
5403 if test "X$x" = "X-L$additional_libdir"; then
5404 haveit=yes
5405 break
5406 fi
5407 done
5408 if test -z "$haveit"; then
5409 if test -d "$additional_libdir"; then
5410 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5411 fi
5412 fi
5413 haveit=
5414 for x in $LDFLAGS $LTLIBINTL; do
5415
5416 acl_save_prefix="$prefix"
5417 prefix="$acl_final_prefix"
5418 acl_save_exec_prefix="$exec_prefix"
5419 exec_prefix="$acl_final_exec_prefix"
5420 eval x=\"$x\"
5421 exec_prefix="$acl_save_exec_prefix"
5422 prefix="$acl_save_prefix"
5423
5424 if test "X$x" = "X-L$additional_libdir"; then
5425 haveit=yes
5426 break
5427 fi
5428 done
5429 if test -z "$haveit"; then
5430 if test -d "$additional_libdir"; then
5431 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5432 fi
5433 fi
5434 fi
5435 fi
5436 ;;
5437 -R*)
5438 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5439 if test "$enable_rpath" != no; then
5440 haveit=
5441 for x in $rpathdirs; do
5442 if test "X$x" = "X$dir"; then
5443 haveit=yes
5444 break
5445 fi
5446 done
5447 if test -z "$haveit"; then
5448 rpathdirs="$rpathdirs $dir"
5449 fi
5450 haveit=
5451 for x in $ltrpathdirs; do
5452 if test "X$x" = "X$dir"; then
5453 haveit=yes
5454 break
5455 fi
5456 done
5457 if test -z "$haveit"; then
5458 ltrpathdirs="$ltrpathdirs $dir"
5459 fi
5460 fi
5461 ;;
5462 -l*)
5463 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5464 ;;
5465 *.la)
5466 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5467 ;;
5468 *)
5469 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5470 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5471 ;;
5472 esac
5473 done
5474 fi
5475 else
5476 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5477 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5478 fi
5479 fi
5480 fi
5481 done
5482 done
5483 if test "X$rpathdirs" != "X"; then
5484 if test -n "$hardcode_libdir_separator"; then
5485 alldirs=
5486 for found_dir in $rpathdirs; do
5487 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5488 done
5489 acl_save_libdir="$libdir"
5490 libdir="$alldirs"
5491 eval flag=\"$hardcode_libdir_flag_spec\"
5492 libdir="$acl_save_libdir"
5493 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5494 else
5495 for found_dir in $rpathdirs; do
5496 acl_save_libdir="$libdir"
5497 libdir="$found_dir"
5498 eval flag=\"$hardcode_libdir_flag_spec\"
5499 libdir="$acl_save_libdir"
5500 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5501 done
5502 fi
5503 fi
5504 if test "X$ltrpathdirs" != "X"; then
5505 for found_dir in $ltrpathdirs; do
5506 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5507 done
5508 fi
5509
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5511 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
5512 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 gt_save_CPPFLAGS="$CPPFLAGS"
5516 CPPFLAGS="$CPPFLAGS $INCINTL"
5517 gt_save_LIBS="$LIBS"
5518 LIBS="$LIBS $LIBINTL"
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 #include <libintl.h>
5522 extern int _nl_msg_cat_cntr;
5523 extern
5524 #ifdef __cplusplus
5525 "C"
5526 #endif
5527 const char *_nl_expand_alias ();
5528 int
5529 main ()
5530 {
5531 bindtextdomain ("", "");
5532 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5533 ;
5534 return 0;
5535 }
5536 _ACEOF
5537 if ac_fn_c_try_link "$LINENO"; then :
5538 gt_cv_func_gnugettext1_libintl=yes
5539 else
5540 gt_cv_func_gnugettext1_libintl=no
5541 fi
5542 rm -f core conftest.err conftest.$ac_objext \
5543 conftest$ac_exeext conftest.$ac_ext
5544 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5545 LIBS="$LIBS $LIBICONV"
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548 #include <libintl.h>
5549 extern int _nl_msg_cat_cntr;
5550 extern
5551 #ifdef __cplusplus
5552 "C"
5553 #endif
5554 const char *_nl_expand_alias ();
5555 int
5556 main ()
5557 {
5558 bindtextdomain ("", "");
5559 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5560 ;
5561 return 0;
5562 }
5563 _ACEOF
5564 if ac_fn_c_try_link "$LINENO"; then :
5565 LIBINTL="$LIBINTL $LIBICONV"
5566 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5567 gt_cv_func_gnugettext1_libintl=yes
5568
5569 fi
5570 rm -f core conftest.err conftest.$ac_objext \
5571 conftest$ac_exeext conftest.$ac_ext
5572 fi
5573 CPPFLAGS="$gt_save_CPPFLAGS"
5574 LIBS="$gt_save_LIBS"
5575 fi
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
5577 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
5578 fi
5579
5580 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5581 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5582 && test "$PACKAGE" != gettext; }; then
5583 gt_use_preinstalled_gnugettext=yes
5584 else
5585 LIBINTL=
5586 LTLIBINTL=
5587 INCINTL=
5588 fi
5589
5590
5591
5592 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5593 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5594
5595 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5596
5597 else
5598 USE_NLS=no
5599 fi
5600 fi
5601
5602 if test "$USE_NLS" = "yes"; then
5603
5604 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5605 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
5607 $as_echo_n "checking how to link with libintl... " >&6; }
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
5609 $as_echo "$LIBINTL" >&6; }
5610
5611 for element in $INCINTL; do
5612 haveit=
5613 for x in $CPPFLAGS; do
5614
5615 acl_save_prefix="$prefix"
5616 prefix="$acl_final_prefix"
5617 acl_save_exec_prefix="$exec_prefix"
5618 exec_prefix="$acl_final_exec_prefix"
5619 eval x=\"$x\"
5620 exec_prefix="$acl_save_exec_prefix"
5621 prefix="$acl_save_prefix"
5622
5623 if test "X$x" = "X$element"; then
5624 haveit=yes
5625 break
5626 fi
5627 done
5628 if test -z "$haveit"; then
5629 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5630 fi
5631 done
5632
5633 fi
5634
5635
5636 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
5637
5638
5639 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
5640
5641 fi
5642
5643 POSUB=po
5644 fi
5645
5646
5647
5648 INTLLIBS="$LIBINTL"
5649
5650
5651
5652
5653
5654
5655
5656
5657 # Enable GNU extensions.
5658 # Define this here, not in acconfig's @TOP@ section, since definitions
5659 # in the latter don't make it into the configure-time tests.
5660
5661 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5662
5663
5664 # do NOT define POSIX_SOURCE, sicne this clashes with many BSDs
5665
5666 ALL_LINGUAS=""
5667
5668 ac_ext=c
5669 ac_cpp='$CPP $CPPFLAGS'
5670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5674 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5675 # On Suns, sometimes $CPP names a directory.
5676 if test -n "$CPP" && test -d "$CPP"; then
5677 CPP=
5678 fi
5679 if test -z "$CPP"; then
5680 if test "${ac_cv_prog_CPP+set}" = set; then :
5681 $as_echo_n "(cached) " >&6
5682 else
5683 # Double quotes because CPP needs to be expanded
5684 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5685 do
5686 ac_preproc_ok=false
5687 for ac_c_preproc_warn_flag in '' yes
5688 do
5689 # Use a header file that comes with gcc, so configuring glibc
5690 # with a fresh cross-compiler works.
5691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5692 # <limits.h> exists even on freestanding compilers.
5693 # On the NeXT, cc -E runs the code through the compiler's parser,
5694 # not just through cpp. "Syntax error" is here to catch this case.
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 #ifdef __STDC__
5698 # include <limits.h>
5699 #else
5700 # include <assert.h>
5701 #endif
5702 Syntax error
5703 _ACEOF
5704 if ac_fn_c_try_cpp "$LINENO"; then :
5705
5706 else
5707 # Broken: fails on valid input.
5708 continue
5709 fi
5710 rm -f conftest.err conftest.i conftest.$ac_ext
5711
5712 # OK, works on sane cases. Now check whether nonexistent headers
5713 # can be detected and how.
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5716 #include <ac_nonexistent.h>
5717 _ACEOF
5718 if ac_fn_c_try_cpp "$LINENO"; then :
5719 # Broken: success on invalid input.
5720 continue
5721 else
5722 # Passes both tests.
5723 ac_preproc_ok=:
5724 break
5725 fi
5726 rm -f conftest.err conftest.i conftest.$ac_ext
5727
5728 done
5729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5730 rm -f conftest.i conftest.err conftest.$ac_ext
5731 if $ac_preproc_ok; then :
5732 break
5733 fi
5734
5735 done
5736 ac_cv_prog_CPP=$CPP
5737
5738 fi
5739 CPP=$ac_cv_prog_CPP
5740 else
5741 ac_cv_prog_CPP=$CPP
5742 fi
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5744 $as_echo "$CPP" >&6; }
5745 ac_preproc_ok=false
5746 for ac_c_preproc_warn_flag in '' yes
5747 do
5748 # Use a header file that comes with gcc, so configuring glibc
5749 # with a fresh cross-compiler works.
5750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5751 # <limits.h> exists even on freestanding compilers.
5752 # On the NeXT, cc -E runs the code through the compiler's parser,
5753 # not just through cpp. "Syntax error" is here to catch this case.
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5756 #ifdef __STDC__
5757 # include <limits.h>
5758 #else
5759 # include <assert.h>
5760 #endif
5761 Syntax error
5762 _ACEOF
5763 if ac_fn_c_try_cpp "$LINENO"; then :
5764
5765 else
5766 # Broken: fails on valid input.
5767 continue
5768 fi
5769 rm -f conftest.err conftest.i conftest.$ac_ext
5770
5771 # OK, works on sane cases. Now check whether nonexistent headers
5772 # can be detected and how.
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5775 #include <ac_nonexistent.h>
5776 _ACEOF
5777 if ac_fn_c_try_cpp "$LINENO"; then :
5778 # Broken: success on invalid input.
5779 continue
5780 else
5781 # Passes both tests.
5782 ac_preproc_ok=:
5783 break
5784 fi
5785 rm -f conftest.err conftest.i conftest.$ac_ext
5786
5787 done
5788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5789 rm -f conftest.i conftest.err conftest.$ac_ext
5790 if $ac_preproc_ok; then :
5791
5792 else
5793 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5795 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5796 See \`config.log' for more details" "$LINENO" 5 ; }
5797 fi
5798
5799 ac_ext=c
5800 ac_cpp='$CPP $CPPFLAGS'
5801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5804
5805 ac_ext=cpp
5806 ac_cpp='$CXXCPP $CPPFLAGS'
5807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5810 if test -z "$CXX"; then
5811 if test -n "$CCC"; then
5812 CXX=$CCC
5813 else
5814 if test -n "$ac_tool_prefix"; then
5815 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5816 do
5817 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5818 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if test "${ac_cv_prog_CXX+set}" = set; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 if test -n "$CXX"; then
5825 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5826 else
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 for as_dir in $PATH
5829 do
5830 IFS=$as_save_IFS
5831 test -z "$as_dir" && as_dir=.
5832 for ac_exec_ext in '' $ac_executable_extensions; do
5833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5834 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 break 2
5837 fi
5838 done
5839 done
5840 IFS=$as_save_IFS
5841
5842 fi
5843 fi
5844 CXX=$ac_cv_prog_CXX
5845 if test -n "$CXX"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5847 $as_echo "$CXX" >&6; }
5848 else
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5851 fi
5852
5853
5854 test -n "$CXX" && break
5855 done
5856 fi
5857 if test -z "$CXX"; then
5858 ac_ct_CXX=$CXX
5859 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5860 do
5861 # Extract the first word of "$ac_prog", so it can be a program name with args.
5862 set dummy $ac_prog; ac_word=$2
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 $as_echo_n "checking for $ac_word... " >&6; }
5865 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 if test -n "$ac_ct_CXX"; then
5869 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5870 else
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5878 ac_cv_prog_ac_ct_CXX="$ac_prog"
5879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 break 2
5881 fi
5882 done
5883 done
5884 IFS=$as_save_IFS
5885
5886 fi
5887 fi
5888 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5889 if test -n "$ac_ct_CXX"; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5891 $as_echo "$ac_ct_CXX" >&6; }
5892 else
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 $as_echo "no" >&6; }
5895 fi
5896
5897
5898 test -n "$ac_ct_CXX" && break
5899 done
5900
5901 if test "x$ac_ct_CXX" = x; then
5902 CXX="g++"
5903 else
5904 case $cross_compiling:$ac_tool_warned in
5905 yes:)
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5908 ac_tool_warned=yes ;;
5909 esac
5910 CXX=$ac_ct_CXX
5911 fi
5912 fi
5913
5914 fi
5915 fi
5916 # Provide some information about the compiler.
5917 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5918 set X $ac_compile
5919 ac_compiler=$2
5920 for ac_option in --version -v -V -qversion; do
5921 { { ac_try="$ac_compiler $ac_option >&5"
5922 case "(($ac_try" in
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5925 esac
5926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5927 $as_echo "$ac_try_echo"; } >&5
5928 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5929 ac_status=$?
5930 if test -s conftest.err; then
5931 sed '10a\
5932 ... rest of stderr output deleted ...
5933 10q' conftest.err >conftest.er1
5934 cat conftest.er1 >&5
5935 fi
5936 rm -f conftest.er1 conftest.err
5937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5938 test $ac_status = 0; }
5939 done
5940
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5942 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5943 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5944 $as_echo_n "(cached) " >&6
5945 else
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5948
5949 int
5950 main ()
5951 {
5952 #ifndef __GNUC__
5953 choke me
5954 #endif
5955
5956 ;
5957 return 0;
5958 }
5959 _ACEOF
5960 if ac_fn_cxx_try_compile "$LINENO"; then :
5961 ac_compiler_gnu=yes
5962 else
5963 ac_compiler_gnu=no
5964 fi
5965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5967
5968 fi
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5970 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5971 if test $ac_compiler_gnu = yes; then
5972 GXX=yes
5973 else
5974 GXX=
5975 fi
5976 ac_test_CXXFLAGS=${CXXFLAGS+set}
5977 ac_save_CXXFLAGS=$CXXFLAGS
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5979 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5980 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
5982 else
5983 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5984 ac_cxx_werror_flag=yes
5985 ac_cv_prog_cxx_g=no
5986 CXXFLAGS="-g"
5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h. */
5989
5990 int
5991 main ()
5992 {
5993
5994 ;
5995 return 0;
5996 }
5997 _ACEOF
5998 if ac_fn_cxx_try_compile "$LINENO"; then :
5999 ac_cv_prog_cxx_g=yes
6000 else
6001 CXXFLAGS=""
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004
6005 int
6006 main ()
6007 {
6008
6009 ;
6010 return 0;
6011 }
6012 _ACEOF
6013 if ac_fn_cxx_try_compile "$LINENO"; then :
6014
6015 else
6016 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6017 CXXFLAGS="-g"
6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019 /* end confdefs.h. */
6020
6021 int
6022 main ()
6023 {
6024
6025 ;
6026 return 0;
6027 }
6028 _ACEOF
6029 if ac_fn_cxx_try_compile "$LINENO"; then :
6030 ac_cv_prog_cxx_g=yes
6031 fi
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 fi
6034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035 fi
6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6038 fi
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6040 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6041 if test "$ac_test_CXXFLAGS" = set; then
6042 CXXFLAGS=$ac_save_CXXFLAGS
6043 elif test $ac_cv_prog_cxx_g = yes; then
6044 if test "$GXX" = yes; then
6045 CXXFLAGS="-g -O2"
6046 else
6047 CXXFLAGS="-g"
6048 fi
6049 else
6050 if test "$GXX" = yes; then
6051 CXXFLAGS="-O2"
6052 else
6053 CXXFLAGS=
6054 fi
6055 fi
6056 ac_ext=c
6057 ac_cpp='$CPP $CPPFLAGS'
6058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6061
6062 depcc="$CXX" am_compiler_list=
6063
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6065 $as_echo_n "checking dependency style of $depcc... " >&6; }
6066 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6067 $as_echo_n "(cached) " >&6
6068 else
6069 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6070 # We make a subdir and do the tests there. Otherwise we can end up
6071 # making bogus files that we don't know about and never remove. For
6072 # instance it was reported that on HP-UX the gcc test will end up
6073 # making a dummy file named `D' -- because `-MD' means `put the output
6074 # in D'.
6075 mkdir conftest.dir
6076 # Copy depcomp to subdir because otherwise we won't find it if we're
6077 # using a relative directory.
6078 cp "$am_depcomp" conftest.dir
6079 cd conftest.dir
6080 # We will build objects and dependencies in a subdirectory because
6081 # it helps to detect inapplicable dependency modes. For instance
6082 # both Tru64's cc and ICC support -MD to output dependencies as a
6083 # side effect of compilation, but ICC will put the dependencies in
6084 # the current directory while Tru64 will put them in the object
6085 # directory.
6086 mkdir sub
6087
6088 am_cv_CXX_dependencies_compiler_type=none
6089 if test "$am_compiler_list" = ""; then
6090 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6091 fi
6092 am__universal=false
6093 case " $depcc " in #(
6094 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6095 esac
6096
6097 for depmode in $am_compiler_list; do
6098 # Setup a source with many dependencies, because some compilers
6099 # like to wrap large dependency lists on column 80 (with \), and
6100 # we should not choose a depcomp mode which is confused by this.
6101 #
6102 # We need to recreate these files for each test, as the compiler may
6103 # overwrite some of them when testing with obscure command lines.
6104 # This happens at least with the AIX C compiler.
6105 : > sub/conftest.c
6106 for i in 1 2 3 4 5 6; do
6107 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6108 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6109 # Solaris 8's {/usr,}/bin/sh.
6110 touch sub/conftst$i.h
6111 done
6112 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6113
6114 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6115 # mode. It turns out that the SunPro C++ compiler does not properly
6116 # handle `-M -o', and we need to detect this. Also, some Intel
6117 # versions had trouble with output in subdirs
6118 am__obj=sub/conftest.${OBJEXT-o}
6119 am__minus_obj="-o $am__obj"
6120 case $depmode in
6121 gcc)
6122 # This depmode causes a compiler race in universal mode.
6123 test "$am__universal" = false || continue
6124 ;;
6125 nosideeffect)
6126 # after this tag, mechanisms are not by side-effect, so they'll
6127 # only be used when explicitly requested
6128 if test "x$enable_dependency_tracking" = xyes; then
6129 continue
6130 else
6131 break
6132 fi
6133 ;;
6134 msvisualcpp | msvcmsys)
6135 # This compiler won't grok `-c -o', but also, the minuso test has
6136 # not run yet. These depmodes are late enough in the game, and
6137 # so weak that their functioning should not be impacted.
6138 am__obj=conftest.${OBJEXT-o}
6139 am__minus_obj=
6140 ;;
6141 none) break ;;
6142 esac
6143 if depmode=$depmode \
6144 source=sub/conftest.c object=$am__obj \
6145 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6146 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6147 >/dev/null 2>conftest.err &&
6148 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6149 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6150 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6151 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6152 # icc doesn't choke on unknown options, it will just issue warnings
6153 # or remarks (even with -Werror). So we grep stderr for any message
6154 # that says an option was ignored or not supported.
6155 # When given -MP, icc 7.0 and 7.1 complain thusly:
6156 # icc: Command line warning: ignoring option '-M'; no argument required
6157 # The diagnosis changed in icc 8.0:
6158 # icc: Command line remark: option '-MP' not supported
6159 if (grep 'ignoring option' conftest.err ||
6160 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6161 am_cv_CXX_dependencies_compiler_type=$depmode
6162 break
6163 fi
6164 fi
6165 done
6166
6167 cd ..
6168 rm -rf conftest.dir
6169 else
6170 am_cv_CXX_dependencies_compiler_type=none
6171 fi
6172
6173 fi
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6175 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6176 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6177
6178 if
6179 test "x$enable_dependency_tracking" != xno \
6180 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6181 am__fastdepCXX_TRUE=
6182 am__fastdepCXX_FALSE='#'
6183 else
6184 am__fastdepCXX_TRUE='#'
6185 am__fastdepCXX_FALSE=
6186 fi
6187
6188
6189
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6191 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6192 if test "${ac_cv_path_GREP+set}" = set; then :
6193 $as_echo_n "(cached) " >&6
6194 else
6195 if test -z "$GREP"; then
6196 ac_path_GREP_found=false
6197 # Loop through the user's path and test for each of PROGNAME-LIST
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6200 do
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_prog in grep ggrep; do
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6206 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6207 # Check for GNU ac_path_GREP and select it if it is found.
6208 # Check for GNU $ac_path_GREP
6209 case `"$ac_path_GREP" --version 2>&1` in
6210 *GNU*)
6211 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6212 *)
6213 ac_count=0
6214 $as_echo_n 0123456789 >"conftest.in"
6215 while :
6216 do
6217 cat "conftest.in" "conftest.in" >"conftest.tmp"
6218 mv "conftest.tmp" "conftest.in"
6219 cp "conftest.in" "conftest.nl"
6220 $as_echo 'GREP' >> "conftest.nl"
6221 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6222 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6223 as_fn_arith $ac_count + 1 && ac_count=$as_val
6224 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6225 # Best one so far, save it but keep looking for a better one
6226 ac_cv_path_GREP="$ac_path_GREP"
6227 ac_path_GREP_max=$ac_count
6228 fi
6229 # 10*(2^10) chars as input seems more than enough
6230 test $ac_count -gt 10 && break
6231 done
6232 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6233 esac
6234
6235 $ac_path_GREP_found && break 3
6236 done
6237 done
6238 done
6239 IFS=$as_save_IFS
6240 if test -z "$ac_cv_path_GREP"; then
6241 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6242 fi
6243 else
6244 ac_cv_path_GREP=$GREP
6245 fi
6246
6247 fi
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6249 $as_echo "$ac_cv_path_GREP" >&6; }
6250 GREP="$ac_cv_path_GREP"
6251
6252
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6254 $as_echo_n "checking for egrep... " >&6; }
6255 if test "${ac_cv_path_EGREP+set}" = set; then :
6256 $as_echo_n "(cached) " >&6
6257 else
6258 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6259 then ac_cv_path_EGREP="$GREP -E"
6260 else
6261 if test -z "$EGREP"; then
6262 ac_path_EGREP_found=false
6263 # Loop through the user's path and test for each of PROGNAME-LIST
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6266 do
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_prog in egrep; do
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6272 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6273 # Check for GNU ac_path_EGREP and select it if it is found.
6274 # Check for GNU $ac_path_EGREP
6275 case `"$ac_path_EGREP" --version 2>&1` in
6276 *GNU*)
6277 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6278 *)
6279 ac_count=0
6280 $as_echo_n 0123456789 >"conftest.in"
6281 while :
6282 do
6283 cat "conftest.in" "conftest.in" >"conftest.tmp"
6284 mv "conftest.tmp" "conftest.in"
6285 cp "conftest.in" "conftest.nl"
6286 $as_echo 'EGREP' >> "conftest.nl"
6287 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6288 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6289 as_fn_arith $ac_count + 1 && ac_count=$as_val
6290 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6291 # Best one so far, save it but keep looking for a better one
6292 ac_cv_path_EGREP="$ac_path_EGREP"
6293 ac_path_EGREP_max=$ac_count
6294 fi
6295 # 10*(2^10) chars as input seems more than enough
6296 test $ac_count -gt 10 && break
6297 done
6298 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6299 esac
6300
6301 $ac_path_EGREP_found && break 3
6302 done
6303 done
6304 done
6305 IFS=$as_save_IFS
6306 if test -z "$ac_cv_path_EGREP"; then
6307 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6308 fi
6309 else
6310 ac_cv_path_EGREP=$EGREP
6311 fi
6312
6313 fi
6314 fi
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6316 $as_echo "$ac_cv_path_EGREP" >&6; }
6317 EGREP="$ac_cv_path_EGREP"
6318
6319
6320 if test $ac_cv_c_compiler_gnu = yes; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6322 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
6323 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
6324 $as_echo_n "(cached) " >&6
6325 else
6326 ac_pattern="Autoconf.*'x'"
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6329 #include <sgtty.h>
6330 Autoconf TIOCGETP
6331 _ACEOF
6332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6333 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6334 ac_cv_prog_gcc_traditional=yes
6335 else
6336 ac_cv_prog_gcc_traditional=no
6337 fi
6338 rm -f conftest*
6339
6340
6341 if test $ac_cv_prog_gcc_traditional = no; then
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6344 #include <termio.h>
6345 Autoconf TCGETA
6346 _ACEOF
6347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6348 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6349 ac_cv_prog_gcc_traditional=yes
6350 fi
6351 rm -f conftest*
6352
6353 fi
6354 fi
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6356 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6357 if test $ac_cv_prog_gcc_traditional = yes; then
6358 CC="$CC -traditional"
6359 fi
6360 fi
6361
6362 for ac_prog in gawk mawk nawk awk
6363 do
6364 # Extract the first word of "$ac_prog", so it can be a program name with args.
6365 set dummy $ac_prog; ac_word=$2
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367 $as_echo_n "checking for $ac_word... " >&6; }
6368 if test "${ac_cv_prog_AWK+set}" = set; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6371 if test -n "$AWK"; then
6372 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6373 else
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6376 do
6377 IFS=$as_save_IFS
6378 test -z "$as_dir" && as_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6381 ac_cv_prog_AWK="$ac_prog"
6382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 break 2
6384 fi
6385 done
6386 done
6387 IFS=$as_save_IFS
6388
6389 fi
6390 fi
6391 AWK=$ac_cv_prog_AWK
6392 if test -n "$AWK"; then
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6394 $as_echo "$AWK" >&6; }
6395 else
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 $as_echo "no" >&6; }
6398 fi
6399
6400
6401 test -n "$AWK" && break
6402 done
6403
6404
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6406 $as_echo_n "checking whether ln -s works... " >&6; }
6407 LN_S=$as_ln_s
6408 if test "$LN_S" = "ln -s"; then
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6410 $as_echo "yes" >&6; }
6411 else
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6413 $as_echo "no, using $LN_S" >&6; }
6414 fi
6415
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6417 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6418 set x ${MAKE-make}
6419 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6420 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6423 cat >conftest.make <<\_ACEOF
6424 SHELL = /bin/sh
6425 all:
6426 @echo '@@@%%%=$(MAKE)=@@@%%%'
6427 _ACEOF
6428 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6429 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6430 *@@@%%%=?*=@@@%%%*)
6431 eval ac_cv_prog_make_${ac_make}_set=yes;;
6432 *)
6433 eval ac_cv_prog_make_${ac_make}_set=no;;
6434 esac
6435 rm -f conftest.make
6436 fi
6437 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6439 $as_echo "yes" >&6; }
6440 SET_MAKE=
6441 else
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443 $as_echo "no" >&6; }
6444 SET_MAKE="MAKE=${MAKE-make}"
6445 fi
6446
6447 if test -n "$ac_tool_prefix"; then
6448 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6449 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 if test -n "$RANLIB"; then
6456 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6457 else
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6460 do
6461 IFS=$as_save_IFS
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6465 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 break 2
6468 fi
6469 done
6470 done
6471 IFS=$as_save_IFS
6472
6473 fi
6474 fi
6475 RANLIB=$ac_cv_prog_RANLIB
6476 if test -n "$RANLIB"; then
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6478 $as_echo "$RANLIB" >&6; }
6479 else
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6482 fi
6483
6484
6485 fi
6486 if test -z "$ac_cv_prog_RANLIB"; then
6487 ac_ct_RANLIB=$RANLIB
6488 # Extract the first word of "ranlib", so it can be a program name with args.
6489 set dummy ranlib; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 if test -n "$ac_ct_RANLIB"; then
6496 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501 IFS=$as_save_IFS
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6505 ac_cv_prog_ac_ct_RANLIB="ranlib"
6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 break 2
6508 fi
6509 done
6510 done
6511 IFS=$as_save_IFS
6512
6513 fi
6514 fi
6515 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6516 if test -n "$ac_ct_RANLIB"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6518 $as_echo "$ac_ct_RANLIB" >&6; }
6519 else
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6522 fi
6523
6524 if test "x$ac_ct_RANLIB" = x; then
6525 RANLIB=":"
6526 else
6527 case $cross_compiling:$ac_tool_warned in
6528 yes:)
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6531 ac_tool_warned=yes ;;
6532 esac
6533 RANLIB=$ac_ct_RANLIB
6534 fi
6535 else
6536 RANLIB="$ac_cv_prog_RANLIB"
6537 fi
6538
6539
6540 # Check whether --enable-iftype was given.
6541 if test "${enable_iftype+set}" = set; then :
6542 enableval=$enable_iftype;
6543 IFTYPE=`echo $enableval | sed s%/.*%%`
6544 IFSUBTYPE=`echo $enableval | sed s%.*/%%`
6545
6546
6547 fi
6548
6549
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel networking interface type" >&5
6551 $as_echo_n "checking for kernel networking interface type... " >&6; }
6552
6553 if test "x$IFTYPE" = "x"; then
6554 case $target_os in
6555 *linux*)
6556 IFTYPE=native
6557 IFSUBTYPE=linux
6558
6559 $as_echo "#define HAVE_LINUX 1" >>confdefs.h
6560
6561 ;;
6562 *freebsd*)
6563 IFTYPE=tincd
6564 IFSUBTYPE=freebsd
6565
6566 $as_echo "#define HAVE_FREEBSD 1" >>confdefs.h
6567
6568 ;;
6569 *darwin*)
6570 IFTYPE=native
6571 IFSUBTYPE=darwin
6572
6573 $as_echo "#define HAVE_DARWIN 1" >>confdefs.h
6574
6575 ;;
6576 *solaris*)
6577 IFTYPE=tincd
6578 IFSUBTYPE=solaris
6579
6580 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
6581
6582 ;;
6583 *openbsd*)
6584 IFTYPE=tincd
6585 IFSUBTYPE=openbsd
6586
6587 $as_echo "#define HAVE_OPENBSD 1" >>confdefs.h
6588
6589 ;;
6590 *netbsd*)
6591 IFTYPE=tincd
6592 IFSUBTYPE=netbsd
6593
6594 $as_echo "#define HAVE_NETBSD 1" >>confdefs.h
6595
6596 ;;
6597 *cygwin*)
6598 IFTYPE=native
6599 IFSUBTYPE=cygwin
6600
6601 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
6602
6603 ;;
6604 *)
6605 as_fn_error $? "\"Unknown operating system.\"" "$LINENO" 5
6606 ;;
6607 esac
6608 fi
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IFTYPE/$IFSUBTYPE" >&5
6610 $as_echo "$IFTYPE/$IFSUBTYPE" >&6; }
6611 IFTYPE=$IFTYPE
6612
6613 IFSUBTYPE=$IFSUBTYPE
6614
6615
6616 cat >>confdefs.h <<_ACEOF
6617 #define IFTYPE "$IFTYPE"
6618 _ACEOF
6619
6620
6621 cat >>confdefs.h <<_ACEOF
6622 #define IFSUBTYPE "$IFSUBTYPE"
6623 _ACEOF
6624
6625
6626 cat >confcache <<\_ACEOF
6627 # This file is a shell script that caches the results of configure
6628 # tests run on this system so they can be shared between configure
6629 # scripts and configure runs, see configure's option --config-cache.
6630 # It is not useful on other systems. If it contains results you don't
6631 # want to keep, you may remove or edit it.
6632 #
6633 # config.status only pays attention to the cache file if you give it
6634 # the --recheck option to rerun configure.
6635 #
6636 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6637 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6638 # following values.
6639
6640 _ACEOF
6641
6642 # The following way of writing the cache mishandles newlines in values,
6643 # but we know of no workaround that is simple, portable, and efficient.
6644 # So, we kill variables containing newlines.
6645 # Ultrix sh set writes to stderr and can't be redirected directly,
6646 # and sets the high bit in the cache file unless we assign to the vars.
6647 (
6648 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6649 eval ac_val=\$$ac_var
6650 case $ac_val in #(
6651 *${as_nl}*)
6652 case $ac_var in #(
6653 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6654 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6655 esac
6656 case $ac_var in #(
6657 _ | IFS | as_nl) ;; #(
6658 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6659 *) { eval $ac_var=; unset $ac_var;} ;;
6660 esac ;;
6661 esac
6662 done
6663
6664 (set) 2>&1 |
6665 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6666 *${as_nl}ac_space=\ *)
6667 # `set' does not quote correctly, so add quotes: double-quote
6668 # substitution turns \\\\ into \\, and sed turns \\ into \.
6669 sed -n \
6670 "s/'/'\\\\''/g;
6671 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6672 ;; #(
6673 *)
6674 # `set' quotes correctly as required by POSIX, so do not add quotes.
6675 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6676 ;;
6677 esac |
6678 sort
6679 ) |
6680 sed '
6681 /^ac_cv_env_/b end
6682 t clear
6683 :clear
6684 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6685 t end
6686 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6687 :end' >>confcache
6688 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6689 if test -w "$cache_file"; then
6690 test "x$cache_file" != "x/dev/null" &&
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6692 $as_echo "$as_me: updating cache $cache_file" >&6;}
6693 cat confcache >$cache_file
6694 else
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6696 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6697 fi
6698 fi
6699 rm -f confcache
6700
6701
6702 ac_ext=cpp
6703 ac_cpp='$CXXCPP $CPPFLAGS'
6704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6707
6708
6709 ac_ext=cpp
6710 ac_cpp='$CXXCPP $CPPFLAGS'
6711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6715 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6716 if test -z "$CXXCPP"; then
6717 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720 # Double quotes because CXXCPP needs to be expanded
6721 for CXXCPP in "$CXX -E" "/lib/cpp"
6722 do
6723 ac_preproc_ok=false
6724 for ac_cxx_preproc_warn_flag in '' yes
6725 do
6726 # Use a header file that comes with gcc, so configuring glibc
6727 # with a fresh cross-compiler works.
6728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6729 # <limits.h> exists even on freestanding compilers.
6730 # On the NeXT, cc -E runs the code through the compiler's parser,
6731 # not just through cpp. "Syntax error" is here to catch this case.
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6734 #ifdef __STDC__
6735 # include <limits.h>
6736 #else
6737 # include <assert.h>
6738 #endif
6739 Syntax error
6740 _ACEOF
6741 if ac_fn_cxx_try_cpp "$LINENO"; then :
6742
6743 else
6744 # Broken: fails on valid input.
6745 continue
6746 fi
6747 rm -f conftest.err conftest.i conftest.$ac_ext
6748
6749 # OK, works on sane cases. Now check whether nonexistent headers
6750 # can be detected and how.
6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6753 #include <ac_nonexistent.h>
6754 _ACEOF
6755 if ac_fn_cxx_try_cpp "$LINENO"; then :
6756 # Broken: success on invalid input.
6757 continue
6758 else
6759 # Passes both tests.
6760 ac_preproc_ok=:
6761 break
6762 fi
6763 rm -f conftest.err conftest.i conftest.$ac_ext
6764
6765 done
6766 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6767 rm -f conftest.i conftest.err conftest.$ac_ext
6768 if $ac_preproc_ok; then :
6769 break
6770 fi
6771
6772 done
6773 ac_cv_prog_CXXCPP=$CXXCPP
6774
6775 fi
6776 CXXCPP=$ac_cv_prog_CXXCPP
6777 else
6778 ac_cv_prog_CXXCPP=$CXXCPP
6779 fi
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6781 $as_echo "$CXXCPP" >&6; }
6782 ac_preproc_ok=false
6783 for ac_cxx_preproc_warn_flag in '' yes
6784 do
6785 # Use a header file that comes with gcc, so configuring glibc
6786 # with a fresh cross-compiler works.
6787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6788 # <limits.h> exists even on freestanding compilers.
6789 # On the NeXT, cc -E runs the code through the compiler's parser,
6790 # not just through cpp. "Syntax error" is here to catch this case.
6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6793 #ifdef __STDC__
6794 # include <limits.h>
6795 #else
6796 # include <assert.h>
6797 #endif
6798 Syntax error
6799 _ACEOF
6800 if ac_fn_cxx_try_cpp "$LINENO"; then :
6801
6802 else
6803 # Broken: fails on valid input.
6804 continue
6805 fi
6806 rm -f conftest.err conftest.i conftest.$ac_ext
6807
6808 # OK, works on sane cases. Now check whether nonexistent headers
6809 # can be detected and how.
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 #include <ac_nonexistent.h>
6813 _ACEOF
6814 if ac_fn_cxx_try_cpp "$LINENO"; then :
6815 # Broken: success on invalid input.
6816 continue
6817 else
6818 # Passes both tests.
6819 ac_preproc_ok=:
6820 break
6821 fi
6822 rm -f conftest.err conftest.i conftest.$ac_ext
6823
6824 done
6825 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6826 rm -f conftest.i conftest.err conftest.$ac_ext
6827 if $ac_preproc_ok; then :
6828
6829 else
6830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6832 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6833 See \`config.log' for more details" "$LINENO" 5 ; }
6834 fi
6835
6836 ac_ext=cpp
6837 ac_cpp='$CXXCPP $CPPFLAGS'
6838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6841
6842
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6844 $as_echo_n "checking for ANSI C header files... " >&6; }
6845 if test "${ac_cv_header_stdc+set}" = set; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 #include <stdlib.h>
6851 #include <stdarg.h>
6852 #include <string.h>
6853 #include <float.h>
6854
6855 int
6856 main ()
6857 {
6858
6859 ;
6860 return 0;
6861 }
6862 _ACEOF
6863 if ac_fn_cxx_try_compile "$LINENO"; then :
6864 ac_cv_header_stdc=yes
6865 else
6866 ac_cv_header_stdc=no
6867 fi
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869
6870 if test $ac_cv_header_stdc = yes; then
6871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874 #include <string.h>
6875
6876 _ACEOF
6877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6878 $EGREP "memchr" >/dev/null 2>&1; then :
6879
6880 else
6881 ac_cv_header_stdc=no
6882 fi
6883 rm -f conftest*
6884
6885 fi
6886
6887 if test $ac_cv_header_stdc = yes; then
6888 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6891 #include <stdlib.h>
6892
6893 _ACEOF
6894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6895 $EGREP "free" >/dev/null 2>&1; then :
6896
6897 else
6898 ac_cv_header_stdc=no
6899 fi
6900 rm -f conftest*
6901
6902 fi
6903
6904 if test $ac_cv_header_stdc = yes; then
6905 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6906 if test "$cross_compiling" = yes; then :
6907 :
6908 else
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6911 #include <ctype.h>
6912 #include <stdlib.h>
6913 #if ((' ' & 0x0FF) == 0x020)
6914 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6915 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6916 #else
6917 # define ISLOWER(c) \
6918 (('a' <= (c) && (c) <= 'i') \
6919 || ('j' <= (c) && (c) <= 'r') \
6920 || ('s' <= (c) && (c) <= 'z'))
6921 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6922 #endif
6923
6924 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6925 int
6926 main ()
6927 {
6928 int i;
6929 for (i = 0; i < 256; i++)
6930 if (XOR (islower (i), ISLOWER (i))
6931 || toupper (i) != TOUPPER (i))
6932 return 2;
6933 return 0;
6934 }
6935 _ACEOF
6936 if ac_fn_cxx_try_run "$LINENO"; then :
6937
6938 else
6939 ac_cv_header_stdc=no
6940 fi
6941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6942 conftest.$ac_objext conftest.beam conftest.$ac_ext
6943 fi
6944
6945 fi
6946 fi
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6948 $as_echo "$ac_cv_header_stdc" >&6; }
6949 if test $ac_cv_header_stdc = yes; then
6950
6951 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6952
6953 fi
6954
6955 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6956 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6957 inttypes.h stdint.h unistd.h
6958 do :
6959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6960 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6961 "
6962 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6963 cat >>confdefs.h <<_ACEOF
6964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6965 _ACEOF
6966
6967 fi
6968
6969 done
6970
6971
6972 for ac_header in tr1/unordered_map ext/hash_map clocale
6973 do :
6974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6975 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6976 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6977 cat >>confdefs.h <<_ACEOF
6978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6979 _ACEOF
6980
6981 fi
6982
6983 done
6984
6985
6986 for ac_header in fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \
6987 sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h \
6988 sys/mman.h netinet/in.h
6989 do :
6990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6991 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6992 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6993 cat >>confdefs.h <<_ACEOF
6994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6995 _ACEOF
6996
6997 fi
6998
6999 done
7000
7001 for ac_header in arpa/inet.h net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h
7002 do :
7003 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7004 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
7005 #include <sys/types.h>
7006 #include <sys/socket.h>
7007 #ifdef HAVE_NETINET_IN_H
7008 # include <netinet/in.h>
7009 #endif
7010 #ifdef HAVE_ARPA_INET_H
7011 # include <arpa/inet.h>
7012 #endif
7013 #ifdef HAVE_NETINET_IN_SYSTM_H
7014 # include <netinet/in_systm.h>
7015 #endif
7016
7017 "
7018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7019 cat >>confdefs.h <<_ACEOF
7020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7021 _ACEOF
7022
7023 fi
7024
7025 done
7026
7027
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7029 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7030 if test "${ac_cv_c_const+set}" = set; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h. */
7035
7036 int
7037 main ()
7038 {
7039 /* FIXME: Include the comments suggested by Paul. */
7040 #ifndef __cplusplus
7041 /* Ultrix mips cc rejects this. */
7042 typedef int charset[2];
7043 const charset cs;
7044 /* SunOS 4.1.1 cc rejects this. */
7045 char const *const *pcpcc;
7046 char **ppc;
7047 /* NEC SVR4.0.2 mips cc rejects this. */
7048 struct point {int x, y;};
7049 static struct point const zero = {0,0};
7050 /* AIX XL C 1.02.0.0 rejects this.
7051 It does not let you subtract one const X* pointer from another in
7052 an arm of an if-expression whose if-part is not a constant
7053 expression */
7054 const char *g = "string";
7055 pcpcc = &g + (g ? g-g : 0);
7056 /* HPUX 7.0 cc rejects these. */
7057 ++pcpcc;
7058 ppc = (char**) pcpcc;
7059 pcpcc = (char const *const *) ppc;
7060 { /* SCO 3.2v4 cc rejects this. */
7061 char *t;
7062 char const *s = 0 ? (char *) 0 : (char const *) 0;
7063
7064 *t++ = 0;
7065 if (s) return 0;
7066 }
7067 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7068 int x[] = {25, 17};
7069 const int *foo = &x[0];
7070 ++foo;
7071 }
7072 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7073 typedef const int *iptr;
7074 iptr p = 0;
7075 ++p;
7076 }
7077 { /* AIX XL C 1.02.0.0 rejects this saying
7078 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7079 struct s { int j; const int *ap[3]; };
7080 struct s *b; b->j = 5;
7081 }
7082 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7083 const int foo = 10;
7084 if (!foo) return 0;
7085 }
7086 return !cs[0] && !zero.x;
7087 #endif
7088
7089 ;
7090 return 0;
7091 }
7092 _ACEOF
7093 if ac_fn_cxx_try_compile "$LINENO"; then :
7094 ac_cv_c_const=yes
7095 else
7096 ac_cv_c_const=no
7097 fi
7098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7099 fi
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7101 $as_echo "$ac_cv_c_const" >&6; }
7102 if test $ac_cv_c_const = no; then
7103
7104 $as_echo "#define const /**/" >>confdefs.h
7105
7106 fi
7107
7108 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7109 if test "x$ac_cv_type_pid_t" = x""yes; then :
7110
7111 else
7112
7113 cat >>confdefs.h <<_ACEOF
7114 #define pid_t int
7115 _ACEOF
7116
7117 fi
7118
7119 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7120 if test "x$ac_cv_type_size_t" = x""yes; then :
7121
7122 else
7123
7124 cat >>confdefs.h <<_ACEOF
7125 #define size_t unsigned int
7126 _ACEOF
7127
7128 fi
7129
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7131 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7132 if test "${ac_cv_header_time+set}" = set; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7137 #include <sys/types.h>
7138 #include <sys/time.h>
7139 #include <time.h>
7140
7141 int
7142 main ()
7143 {
7144 if ((struct tm *) 0)
7145 return 0;
7146 ;
7147 return 0;
7148 }
7149 _ACEOF
7150 if ac_fn_cxx_try_compile "$LINENO"; then :
7151 ac_cv_header_time=yes
7152 else
7153 ac_cv_header_time=no
7154 fi
7155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7156 fi
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7158 $as_echo "$ac_cv_header_time" >&6; }
7159 if test $ac_cv_header_time = yes; then
7160
7161 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7162
7163 fi
7164
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7166 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7167 if test "${ac_cv_struct_tm+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
7169 else
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7172 #include <sys/types.h>
7173 #include <time.h>
7174
7175 int
7176 main ()
7177 {
7178 struct tm tm;
7179 int *p = &tm.tm_sec;
7180 return !p;
7181 ;
7182 return 0;
7183 }
7184 _ACEOF
7185 if ac_fn_cxx_try_compile "$LINENO"; then :
7186 ac_cv_struct_tm=time.h
7187 else
7188 ac_cv_struct_tm=sys/time.h
7189 fi
7190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191 fi
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7193 $as_echo "$ac_cv_struct_tm" >&6; }
7194 if test $ac_cv_struct_tm = sys/time.h; then
7195
7196 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7197
7198 fi
7199
7200
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
7202 $as_echo_n "checking for socklen_t... " >&6; }
7203 if test "${ac_cv_type_socklen_t+set}" = set; then :
7204 $as_echo_n "(cached) " >&6
7205 else
7206
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7209 #include <sys/types.h>
7210 #include <sys/socket.h>
7211 int
7212 main ()
7213 {
7214 socklen_t len = 42; return len;
7215 ;
7216 return 0;
7217 }
7218 _ACEOF
7219 if ac_fn_cxx_try_compile "$LINENO"; then :
7220 ac_cv_type_socklen_t=yes
7221 else
7222 ac_cv_type_socklen_t=no
7223 fi
7224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7225
7226 fi
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
7228 $as_echo "$ac_cv_type_socklen_t" >&6; }
7229 if test $ac_cv_type_socklen_t = yes; then
7230
7231 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
7232
7233 fi
7234
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
7236 $as_echo_n "checking for struct addrinfo... " >&6; }
7237 if test "${ac_cv_struct_addrinfo+set}" = set; then :
7238 $as_echo_n "(cached) " >&6
7239 else
7240
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7243 #include <sys/types.h>
7244 #include <sys/socket.h>
7245 #include <netdb.h>
7246 int
7247 main ()
7248 {
7249 struct addrinfo ai; ai.ai_family = AF_INET; return ai.ai_family;
7250 ;
7251 return 0;
7252 }
7253 _ACEOF
7254 if ac_fn_cxx_try_compile "$LINENO"; then :
7255 ac_cv_struct_addrinfo=yes
7256 else
7257 ac_cv_struct_addrinfo=no
7258 fi
7259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7260
7261 fi
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
7263 $as_echo "$ac_cv_struct_addrinfo" >&6; }
7264 if test $ac_cv_struct_addrinfo = yes; then
7265
7266 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7267
7268 fi
7269
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7271 $as_echo_n "checking return type of signal handlers... " >&6; }
7272 if test "${ac_cv_type_signal+set}" = set; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7277 #include <sys/types.h>
7278 #include <signal.h>
7279
7280 int
7281 main ()
7282 {
7283 return *(signal (0, 0)) (0) == 1;
7284 ;
7285 return 0;
7286 }
7287 _ACEOF
7288 if ac_fn_cxx_try_compile "$LINENO"; then :
7289 ac_cv_type_signal=int
7290 else
7291 ac_cv_type_signal=void
7292 fi
7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294 fi
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7296 $as_echo "$ac_cv_type_signal" >&6; }
7297
7298 cat >>confdefs.h <<_ACEOF
7299 #define RETSIGTYPE $ac_cv_type_signal
7300 _ACEOF
7301
7302
7303
7304 ac_ext=c
7305 ac_cpp='$CPP $CPPFLAGS'
7306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7309
7310
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7312 $as_echo_n "checking for ANSI C header files... " >&6; }
7313 if test "${ac_cv_header_stdc+set}" = set; then :
7314 $as_echo_n "(cached) " >&6
7315 else
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7318 #include <stdlib.h>
7319 #include <stdarg.h>
7320 #include <string.h>
7321 #include <float.h>
7322
7323 int
7324 main ()
7325 {
7326
7327 ;
7328 return 0;
7329 }
7330 _ACEOF
7331 if ac_fn_c_try_compile "$LINENO"; then :
7332 ac_cv_header_stdc=yes
7333 else
7334 ac_cv_header_stdc=no
7335 fi
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337
7338 if test $ac_cv_header_stdc = yes; then
7339 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7342 #include <string.h>
7343
7344 _ACEOF
7345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7346 $EGREP "memchr" >/dev/null 2>&1; then :
7347
7348 else
7349 ac_cv_header_stdc=no
7350 fi
7351 rm -f conftest*
7352
7353 fi
7354
7355 if test $ac_cv_header_stdc = yes; then
7356 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7359 #include <stdlib.h>
7360
7361 _ACEOF
7362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7363 $EGREP "free" >/dev/null 2>&1; then :
7364
7365 else
7366 ac_cv_header_stdc=no
7367 fi
7368 rm -f conftest*
7369
7370 fi
7371
7372 if test $ac_cv_header_stdc = yes; then
7373 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7374 if test "$cross_compiling" = yes; then :
7375 :
7376 else
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7379 #include <ctype.h>
7380 #include <stdlib.h>
7381 #if ((' ' & 0x0FF) == 0x020)
7382 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7383 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7384 #else
7385 # define ISLOWER(c) \
7386 (('a' <= (c) && (c) <= 'i') \
7387 || ('j' <= (c) && (c) <= 'r') \
7388 || ('s' <= (c) && (c) <= 'z'))
7389 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7390 #endif
7391
7392 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7393 int
7394 main ()
7395 {
7396 int i;
7397 for (i = 0; i < 256; i++)
7398 if (XOR (islower (i), ISLOWER (i))
7399 || toupper (i) != TOUPPER (i))
7400 return 2;
7401 return 0;
7402 }
7403 _ACEOF
7404 if ac_fn_c_try_run "$LINENO"; then :
7405
7406 else
7407 ac_cv_header_stdc=no
7408 fi
7409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7410 conftest.$ac_objext conftest.beam conftest.$ac_ext
7411 fi
7412
7413 fi
7414 fi
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7416 $as_echo "$ac_cv_header_stdc" >&6; }
7417 if test $ac_cv_header_stdc = yes; then
7418
7419 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7420
7421 fi
7422
7423
7424 for ac_func in asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall
7425 do :
7426 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7427 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7428 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7429 cat >>confdefs.h <<_ACEOF
7430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7431 _ACEOF
7432
7433 fi
7434 done
7435
7436
7437 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7438 # for constant arguments. Useless!
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7440 $as_echo_n "checking for working alloca.h... " >&6; }
7441 if test "${ac_cv_working_alloca_h+set}" = set; then :
7442 $as_echo_n "(cached) " >&6
7443 else
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7446 #include <alloca.h>
7447 int
7448 main ()
7449 {
7450 char *p = (char *) alloca (2 * sizeof (int));
7451 if (p) return 0;
7452 ;
7453 return 0;
7454 }
7455 _ACEOF
7456 if ac_fn_c_try_link "$LINENO"; then :
7457 ac_cv_working_alloca_h=yes
7458 else
7459 ac_cv_working_alloca_h=no
7460 fi
7461 rm -f core conftest.err conftest.$ac_objext \
7462 conftest$ac_exeext conftest.$ac_ext
7463 fi
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7465 $as_echo "$ac_cv_working_alloca_h" >&6; }
7466 if test $ac_cv_working_alloca_h = yes; then
7467
7468 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7469
7470 fi
7471
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7473 $as_echo_n "checking for alloca... " >&6; }
7474 if test "${ac_cv_func_alloca_works+set}" = set; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7479 #ifdef __GNUC__
7480 # define alloca __builtin_alloca
7481 #else
7482 # ifdef _MSC_VER
7483 # include <malloc.h>
7484 # define alloca _alloca
7485 # else
7486 # ifdef HAVE_ALLOCA_H
7487 # include <alloca.h>
7488 # else
7489 # ifdef _AIX
7490 #pragma alloca
7491 # else
7492 # ifndef alloca /* predefined by HP cc +Olibcalls */
7493 char *alloca ();
7494 # endif
7495 # endif
7496 # endif
7497 # endif
7498 #endif
7499
7500 int
7501 main ()
7502 {
7503 char *p = (char *) alloca (1);
7504 if (p) return 0;
7505 ;
7506 return 0;
7507 }
7508 _ACEOF
7509 if ac_fn_c_try_link "$LINENO"; then :
7510 ac_cv_func_alloca_works=yes
7511 else
7512 ac_cv_func_alloca_works=no
7513 fi
7514 rm -f core conftest.err conftest.$ac_objext \
7515 conftest$ac_exeext conftest.$ac_ext
7516 fi
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7518 $as_echo "$ac_cv_func_alloca_works" >&6; }
7519
7520 if test $ac_cv_func_alloca_works = yes; then
7521
7522 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7523
7524 else
7525 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7526 # that cause trouble. Some versions do not even contain alloca or
7527 # contain a buggy version. If you still want to use their alloca,
7528 # use ar to extract alloca.o from them instead of compiling alloca.c.
7529
7530 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7531
7532 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7533
7534
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7536 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7537 if test "${ac_cv_os_cray+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541 /* end confdefs.h. */
7542 #if defined CRAY && ! defined CRAY2
7543 webecray
7544 #else
7545 wenotbecray
7546 #endif
7547
7548 _ACEOF
7549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7550 $EGREP "webecray" >/dev/null 2>&1; then :
7551 ac_cv_os_cray=yes
7552 else
7553 ac_cv_os_cray=no
7554 fi
7555 rm -f conftest*
7556
7557 fi
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7559 $as_echo "$ac_cv_os_cray" >&6; }
7560 if test $ac_cv_os_cray = yes; then
7561 for ac_func in _getb67 GETB67 getb67; do
7562 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7563 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7564 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7565
7566 cat >>confdefs.h <<_ACEOF
7567 #define CRAY_STACKSEG_END $ac_func
7568 _ACEOF
7569
7570 break
7571 fi
7572
7573 done
7574 fi
7575
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7577 $as_echo_n "checking stack direction for C alloca... " >&6; }
7578 if test "${ac_cv_c_stack_direction+set}" = set; then :
7579 $as_echo_n "(cached) " >&6
7580 else
7581 if test "$cross_compiling" = yes; then :
7582 ac_cv_c_stack_direction=0
7583 else
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7586 $ac_includes_default
7587 int
7588 find_stack_direction ()
7589 {
7590 static char *addr = 0;
7591 auto char dummy;
7592 if (addr == 0)
7593 {
7594 addr = &dummy;
7595 return find_stack_direction ();
7596 }
7597 else
7598 return (&dummy > addr) ? 1 : -1;
7599 }
7600
7601 int
7602 main ()
7603 {
7604 return find_stack_direction () < 0;
7605 }
7606 _ACEOF
7607 if ac_fn_c_try_run "$LINENO"; then :
7608 ac_cv_c_stack_direction=1
7609 else
7610 ac_cv_c_stack_direction=-1
7611 fi
7612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7613 conftest.$ac_objext conftest.beam conftest.$ac_ext
7614 fi
7615
7616 fi
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7618 $as_echo "$ac_cv_c_stack_direction" >&6; }
7619 cat >>confdefs.h <<_ACEOF
7620 #define STACK_DIRECTION $ac_cv_c_stack_direction
7621 _ACEOF
7622
7623
7624 fi
7625
7626
7627
7628 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
7629 if test "x$ac_cv_func_socket" = x""yes; then :
7630
7631 else
7632
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7634 $as_echo_n "checking for connect in -lsocket... " >&6; }
7635 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7636 $as_echo_n "(cached) " >&6
7637 else
7638 ac_check_lib_save_LIBS=$LIBS
7639 LIBS="-lsocket $LIBS"
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7642
7643 /* Override any GCC internal prototype to avoid an error.
7644 Use char because int might match the return type of a GCC
7645 builtin and then its argument prototype would still apply. */
7646 #ifdef __cplusplus
7647 extern "C"
7648 #endif
7649 char connect ();
7650 int
7651 main ()
7652 {
7653 return connect ();
7654 ;
7655 return 0;
7656 }
7657 _ACEOF
7658 if ac_fn_c_try_link "$LINENO"; then :
7659 ac_cv_lib_socket_connect=yes
7660 else
7661 ac_cv_lib_socket_connect=no
7662 fi
7663 rm -f core conftest.err conftest.$ac_objext \
7664 conftest$ac_exeext conftest.$ac_ext
7665 LIBS=$ac_check_lib_save_LIBS
7666 fi
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7668 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7669 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7670 cat >>confdefs.h <<_ACEOF
7671 #define HAVE_LIBSOCKET 1
7672 _ACEOF
7673
7674 LIBS="-lsocket $LIBS"
7675
7676 fi
7677
7678
7679 fi
7680
7681 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7682 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7683
7684 else
7685
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7687 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7688 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7689 $as_echo_n "(cached) " >&6
7690 else
7691 ac_check_lib_save_LIBS=$LIBS
7692 LIBS="-lnsl $LIBS"
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7695
7696 /* Override any GCC internal prototype to avoid an error.
7697 Use char because int might match the return type of a GCC
7698 builtin and then its argument prototype would still apply. */
7699 #ifdef __cplusplus
7700 extern "C"
7701 #endif
7702 char gethostbyname ();
7703 int
7704 main ()
7705 {
7706 return gethostbyname ();
7707 ;
7708 return 0;
7709 }
7710 _ACEOF
7711 if ac_fn_c_try_link "$LINENO"; then :
7712 ac_cv_lib_nsl_gethostbyname=yes
7713 else
7714 ac_cv_lib_nsl_gethostbyname=no
7715 fi
7716 rm -f core conftest.err conftest.$ac_objext \
7717 conftest$ac_exeext conftest.$ac_ext
7718 LIBS=$ac_check_lib_save_LIBS
7719 fi
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7721 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7722 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7723 cat >>confdefs.h <<_ACEOF
7724 #define HAVE_LIBNSL 1
7725 _ACEOF
7726
7727 LIBS="-lnsl $LIBS"
7728
7729 fi
7730
7731
7732 fi
7733
7734
7735
7736 for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h
7737 do :
7738 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7739 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7740 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7741 cat >>confdefs.h <<_ACEOF
7742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7743 _ACEOF
7744
7745 fi
7746
7747 done
7748
7749
7750 for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
7751 do :
7752 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7753 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7754 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7755 cat >>confdefs.h <<_ACEOF
7756 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7757 _ACEOF
7758
7759 fi
7760 done
7761
7762
7763 for ac_func in clock_gettime
7764 do :
7765 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
7766 if test "x$ac_cv_func_clock_gettime" = x""yes; then :
7767 cat >>confdefs.h <<_ACEOF
7768 #define HAVE_CLOCK_GETTIME 1
7769 _ACEOF
7770
7771 else
7772
7773 if test $(uname) = Linux; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
7775 $as_echo_n "checking for clock_gettime syscall... " >&6; }
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778 #include <unistd.h>
7779 #include <sys/syscall.h>
7780 #include <time.h>
7781 int
7782 main ()
7783 {
7784 struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
7785 ;
7786 return 0;
7787 }
7788 _ACEOF
7789 if ac_fn_c_try_link "$LINENO"; then :
7790 ac_have_clock_syscall=1
7791
7792 $as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
7793
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7795 $as_echo "yes" >&6; }
7796 else
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7799 fi
7800 rm -f core conftest.err conftest.$ac_objext \
7801 conftest$ac_exeext conftest.$ac_ext
7802 fi
7803 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
7805 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
7806 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 ac_check_lib_save_LIBS=$LIBS
7810 LIBS="-lrt $LIBS"
7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h. */
7813
7814 /* Override any GCC internal prototype to avoid an error.
7815 Use char because int might match the return type of a GCC
7816 builtin and then its argument prototype would still apply. */
7817 #ifdef __cplusplus
7818 extern "C"
7819 #endif
7820 char clock_gettime ();
7821 int
7822 main ()
7823 {
7824 return clock_gettime ();
7825 ;
7826 return 0;
7827 }
7828 _ACEOF
7829 if ac_fn_c_try_link "$LINENO"; then :
7830 ac_cv_lib_rt_clock_gettime=yes
7831 else
7832 ac_cv_lib_rt_clock_gettime=no
7833 fi
7834 rm -f core conftest.err conftest.$ac_objext \
7835 conftest$ac_exeext conftest.$ac_ext
7836 LIBS=$ac_check_lib_save_LIBS
7837 fi
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
7839 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
7840 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
7841 cat >>confdefs.h <<_ACEOF
7842 #define HAVE_LIBRT 1
7843 _ACEOF
7844
7845 LIBS="-lrt $LIBS"
7846
7847 fi
7848
7849 unset ac_cv_func_clock_gettime
7850 for ac_func in clock_gettime
7851 do :
7852 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
7853 if test "x$ac_cv_func_clock_gettime" = x""yes; then :
7854 cat >>confdefs.h <<_ACEOF
7855 #define HAVE_CLOCK_GETTIME 1
7856 _ACEOF
7857
7858 fi
7859 done
7860
7861 fi
7862
7863 fi
7864 done
7865
7866
7867 for ac_func in nanosleep
7868 do :
7869 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
7870 if test "x$ac_cv_func_nanosleep" = x""yes; then :
7871 cat >>confdefs.h <<_ACEOF
7872 #define HAVE_NANOSLEEP 1
7873 _ACEOF
7874
7875 else
7876
7877 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
7879 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
7880 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 ac_check_lib_save_LIBS=$LIBS
7884 LIBS="-lrt $LIBS"
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7887
7888 /* Override any GCC internal prototype to avoid an error.
7889 Use char because int might match the return type of a GCC
7890 builtin and then its argument prototype would still apply. */
7891 #ifdef __cplusplus
7892 extern "C"
7893 #endif
7894 char nanosleep ();
7895 int
7896 main ()
7897 {
7898 return nanosleep ();
7899 ;
7900 return 0;
7901 }
7902 _ACEOF
7903 if ac_fn_c_try_link "$LINENO"; then :
7904 ac_cv_lib_rt_nanosleep=yes
7905 else
7906 ac_cv_lib_rt_nanosleep=no
7907 fi
7908 rm -f core conftest.err conftest.$ac_objext \
7909 conftest$ac_exeext conftest.$ac_ext
7910 LIBS=$ac_check_lib_save_LIBS
7911 fi
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
7913 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
7914 if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
7915 cat >>confdefs.h <<_ACEOF
7916 #define HAVE_LIBRT 1
7917 _ACEOF
7918
7919 LIBS="-lrt $LIBS"
7920
7921 fi
7922
7923 unset ac_cv_func_nanosleep
7924 for ac_func in nanosleep
7925 do :
7926 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
7927 if test "x$ac_cv_func_nanosleep" = x""yes; then :
7928 cat >>confdefs.h <<_ACEOF
7929 #define HAVE_NANOSLEEP 1
7930 _ACEOF
7931
7932 fi
7933 done
7934
7935 fi
7936
7937 fi
7938 done
7939
7940
7941 if test -z "$LIBEV_M4_AVOID_LIBM"; then
7942 LIBM=m
7943 fi
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
7945 $as_echo_n "checking for library containing floor... " >&6; }
7946 if test "${ac_cv_search_floor+set}" = set; then :
7947 $as_echo_n "(cached) " >&6
7948 else
7949 ac_func_search_save_LIBS=$LIBS
7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h. */
7952
7953 /* Override any GCC internal prototype to avoid an error.
7954 Use char because int might match the return type of a GCC
7955 builtin and then its argument prototype would still apply. */
7956 #ifdef __cplusplus
7957 extern "C"
7958 #endif
7959 char floor ();
7960 int
7961 main ()
7962 {
7963 return floor ();
7964 ;
7965 return 0;
7966 }
7967 _ACEOF
7968 for ac_lib in '' $LIBM; do
7969 if test -z "$ac_lib"; then
7970 ac_res="none required"
7971 else
7972 ac_res=-l$ac_lib
7973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7974 fi
7975 if ac_fn_c_try_link "$LINENO"; then :
7976 ac_cv_search_floor=$ac_res
7977 fi
7978 rm -f core conftest.err conftest.$ac_objext \
7979 conftest$ac_exeext
7980 if test "${ac_cv_search_floor+set}" = set; then :
7981 break
7982 fi
7983 done
7984 if test "${ac_cv_search_floor+set}" = set; then :
7985
7986 else
7987 ac_cv_search_floor=no
7988 fi
7989 rm conftest.$ac_ext
7990 LIBS=$ac_func_search_save_LIBS
7991 fi
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
7993 $as_echo "$ac_cv_search_floor" >&6; }
7994 ac_res=$ac_cv_search_floor
7995 if test "$ac_res" != no; then :
7996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7997
7998 $as_echo "#define HAVE_FLOOR 1" >>confdefs.h
7999
8000 fi
8001
8002
8003
8004
8005 ac_ext=cpp
8006 ac_cpp='$CXXCPP $CPPFLAGS'
8007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8010
8011
8012
8013 cat >confcache <<\_ACEOF
8014 # This file is a shell script that caches the results of configure
8015 # tests run on this system so they can be shared between configure
8016 # scripts and configure runs, see configure's option --config-cache.
8017 # It is not useful on other systems. If it contains results you don't
8018 # want to keep, you may remove or edit it.
8019 #
8020 # config.status only pays attention to the cache file if you give it
8021 # the --recheck option to rerun configure.
8022 #
8023 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8024 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8025 # following values.
8026
8027 _ACEOF
8028
8029 # The following way of writing the cache mishandles newlines in values,
8030 # but we know of no workaround that is simple, portable, and efficient.
8031 # So, we kill variables containing newlines.
8032 # Ultrix sh set writes to stderr and can't be redirected directly,
8033 # and sets the high bit in the cache file unless we assign to the vars.
8034 (
8035 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8036 eval ac_val=\$$ac_var
8037 case $ac_val in #(
8038 *${as_nl}*)
8039 case $ac_var in #(
8040 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8041 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8042 esac
8043 case $ac_var in #(
8044 _ | IFS | as_nl) ;; #(
8045 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8046 *) { eval $ac_var=; unset $ac_var;} ;;
8047 esac ;;
8048 esac
8049 done
8050
8051 (set) 2>&1 |
8052 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8053 *${as_nl}ac_space=\ *)
8054 # `set' does not quote correctly, so add quotes: double-quote
8055 # substitution turns \\\\ into \\, and sed turns \\ into \.
8056 sed -n \
8057 "s/'/'\\\\''/g;
8058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8059 ;; #(
8060 *)
8061 # `set' quotes correctly as required by POSIX, so do not add quotes.
8062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8063 ;;
8064 esac |
8065 sort
8066 ) |
8067 sed '
8068 /^ac_cv_env_/b end
8069 t clear
8070 :clear
8071 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8072 t end
8073 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8074 :end' >>confcache
8075 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8076 if test -w "$cache_file"; then
8077 test "x$cache_file" != "x/dev/null" &&
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8079 $as_echo "$as_me: updating cache $cache_file" >&6;}
8080 cat confcache >$cache_file
8081 else
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8083 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8084 fi
8085 fi
8086 rm -f confcache
8087
8088
8089
8090 # Check whether --with-kernel was given.
8091 if test "${with_kernel+set}" = set; then :
8092 withval=$with_kernel; kerneldir="$withval"
8093 else
8094 kerneldir="/usr/src/linux"
8095
8096 fi
8097
8098
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linux/if_tun.h" >&5
8100 $as_echo_n "checking for linux/if_tun.h... " >&6; }
8101 if test "${tinc_cv_linux_if_tun_h+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8107 #include "$kerneldir/include/linux/if_tun.h"
8108 int
8109 main ()
8110 {
8111 int a = IFF_TAP;
8112 ;
8113 return 0;
8114 }
8115 _ACEOF
8116 if ac_fn_cxx_try_compile "$LINENO"; then :
8117 if_tun_h="\"$kerneldir/include/linux/if_tun.h\""
8118 else
8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h. */
8121 #include <linux/if_tun.h>
8122 int
8123 main ()
8124 {
8125 int a = IFF_TAP;
8126 ;
8127 return 0;
8128 }
8129 _ACEOF
8130 if ac_fn_cxx_try_compile "$LINENO"; then :
8131 if_tun_h="default"
8132 else
8133 if_tun_h="no"
8134
8135 fi
8136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137
8138 fi
8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8140
8141 if test $if_tun_h = no; then
8142 tinc_cv_linux_if_tun_h=none
8143 else
8144 tinc_cv_linux_if_tun_h="$if_tun_h"
8145 fi
8146
8147 fi
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tinc_cv_linux_if_tun_h" >&5
8149 $as_echo "$tinc_cv_linux_if_tun_h" >&6; }
8150
8151 if test $tinc_cv_linux_if_tun_h != none; then
8152
8153 $as_echo "#define HAVE_TUNTAP 1" >>confdefs.h
8154
8155 if test $tinc_cv_linux_if_tun_h != default; then
8156
8157 cat >>confdefs.h <<_ACEOF
8158 #define LINUX_IF_TUN_H $tinc_cv_linux_if_tun_h
8159 _ACEOF
8160
8161 fi
8162 fi
8163
8164
8165
8166
8167
8168 tinc_ac_save_CPPFLAGS="$CPPFLAGS"
8169
8170
8171 # Check whether --with-openssl-include was given.
8172 if test "${with_openssl_include+set}" = set; then :
8173 withval=$with_openssl_include; openssl_include="$withval"
8174 CFLAGS="$CFLAGS -I$withval"
8175 CPPFLAGS="$CPPFLAGS -I$withval"
8176
8177 fi
8178
8179
8180
8181 # Check whether --with-openssl-lib was given.
8182 if test "${with_openssl_lib+set}" = set; then :
8183 withval=$with_openssl_lib; openssl_lib="$withval"
8184 LIBS="$LIBS -L$withval"
8185
8186 fi
8187
8188
8189 for ac_header in openssl/evp.h openssl/rsa.h openssl/rand.h openssl/err.h openssl/sha.h openssl/pem.h
8190 do :
8191 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8192 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8193 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8194 cat >>confdefs.h <<_ACEOF
8195 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8196 _ACEOF
8197
8198 else
8199 as_fn_error $? "OpenSSL header files not found." "$LINENO" 5 ; break
8200
8201 fi
8202
8203 done
8204
8205
8206 CPPFLAGS="$tinc_ac_save_CPPFLAGS"
8207
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_version in -lcrypto" >&5
8209 $as_echo_n "checking for SHA1_version in -lcrypto... " >&6; }
8210 if test "${ac_cv_lib_crypto_SHA1_version+set}" = set; then :
8211 $as_echo_n "(cached) " >&6
8212 else
8213 ac_check_lib_save_LIBS=$LIBS
8214 LIBS="-lcrypto $LIBS"
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8217
8218 /* Override any GCC internal prototype to avoid an error.
8219 Use char because int might match the return type of a GCC
8220 builtin and then its argument prototype would still apply. */
8221 #ifdef __cplusplus
8222 extern "C"
8223 #endif
8224 char SHA1_version ();
8225 int
8226 main ()
8227 {
8228 return SHA1_version ();
8229 ;
8230 return 0;
8231 }
8232 _ACEOF
8233 if ac_fn_cxx_try_link "$LINENO"; then :
8234 ac_cv_lib_crypto_SHA1_version=yes
8235 else
8236 ac_cv_lib_crypto_SHA1_version=no
8237 fi
8238 rm -f core conftest.err conftest.$ac_objext \
8239 conftest$ac_exeext conftest.$ac_ext
8240 LIBS=$ac_check_lib_save_LIBS
8241 fi
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_version" >&5
8243 $as_echo "$ac_cv_lib_crypto_SHA1_version" >&6; }
8244 if test "x$ac_cv_lib_crypto_SHA1_version" = x""yes; then :
8245 LIBS="$LIBS -lcrypto"
8246 else
8247 as_fn_error $? "OpenSSL libraries not found." "$LINENO" 5
8248
8249 fi
8250
8251
8252 for ac_func in RAND_pseudo_bytes OPENSSL_add_all_algorithms_noconf OpenSSL_add_all_algorithms SSLeay_add_all_algorithms
8253 do :
8254 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8255 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
8256 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8257 cat >>confdefs.h <<_ACEOF
8258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8259 _ACEOF
8260
8261 fi
8262 done
8263
8264
8265 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8266 if test "x$ac_cv_func_dlopen" = x""yes; then :
8267
8268 else
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8270 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8271 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 ac_check_lib_save_LIBS=$LIBS
8275 LIBS="-ldl $LIBS"
8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277 /* end confdefs.h. */
8278
8279 /* Override any GCC internal prototype to avoid an error.
8280 Use char because int might match the return type of a GCC
8281 builtin and then its argument prototype would still apply. */
8282 #ifdef __cplusplus
8283 extern "C"
8284 #endif
8285 char dlopen ();
8286 int
8287 main ()
8288 {
8289 return dlopen ();
8290 ;
8291 return 0;
8292 }
8293 _ACEOF
8294 if ac_fn_cxx_try_link "$LINENO"; then :
8295 ac_cv_lib_dl_dlopen=yes
8296 else
8297 ac_cv_lib_dl_dlopen=no
8298 fi
8299 rm -f core conftest.err conftest.$ac_objext \
8300 conftest$ac_exeext conftest.$ac_ext
8301 LIBS=$ac_check_lib_save_LIBS
8302 fi
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8304 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8305 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8306 LIBS="$LIBS -ldl"
8307 else
8308 as_fn_error $? "OpenSSL depends on libdl." "$LINENO" 5
8309
8310 fi
8311
8312
8313 fi
8314
8315
8316 ac_fn_cxx_check_func "$LINENO" "inflate" "ac_cv_func_inflate"
8317 if test "x$ac_cv_func_inflate" = x""yes; then :
8318
8319 else
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
8321 $as_echo_n "checking for inflate in -lz... " >&6; }
8322 if test "${ac_cv_lib_z_inflate+set}" = set; then :
8323 $as_echo_n "(cached) " >&6
8324 else
8325 ac_check_lib_save_LIBS=$LIBS
8326 LIBS="-lz $LIBS"
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8329
8330 /* Override any GCC internal prototype to avoid an error.
8331 Use char because int might match the return type of a GCC
8332 builtin and then its argument prototype would still apply. */
8333 #ifdef __cplusplus
8334 extern "C"
8335 #endif
8336 char inflate ();
8337 int
8338 main ()
8339 {
8340 return inflate ();
8341 ;
8342 return 0;
8343 }
8344 _ACEOF
8345 if ac_fn_cxx_try_link "$LINENO"; then :
8346 ac_cv_lib_z_inflate=yes
8347 else
8348 ac_cv_lib_z_inflate=no
8349 fi
8350 rm -f core conftest.err conftest.$ac_objext \
8351 conftest$ac_exeext conftest.$ac_ext
8352 LIBS=$ac_check_lib_save_LIBS
8353 fi
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
8355 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8356 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
8357 LIBS="$LIBS -lz"
8358 else
8359 as_fn_error $? "OpenSSL depends on libz." "$LINENO" 5
8360
8361 fi
8362
8363
8364 fi
8365
8366
8367 if test "x$openssl_include" != x; then
8368 CXXFLAGS="$CXXFLAGS -I$openssl_include"
8369 fi
8370
8371 # Check whether --enable-static-daemon was given.
8372 if test "${enable_static_daemon+set}" = set; then :
8373 enableval=$enable_static_daemon; LDFLAGS_DAEMON=-static
8374
8375 fi
8376
8377
8378
8379
8380 if test x$rohc = xtrue; then
8381 ROHC_TRUE=
8382 ROHC_FALSE='#'
8383 else
8384 ROHC_TRUE='#'
8385 ROHC_FALSE=
8386 fi
8387
8388
8389
8390 ICMP=1
8391 # Check whether --enable-icmp was given.
8392 if test "${enable_icmp+set}" = set; then :
8393 enableval=$enable_icmp; if test "x$enableval" = xno; then
8394 ICMP=0
8395 fi
8396
8397 fi
8398
8399 if test "x$ICMP" = x1; then
8400
8401 cat >>confdefs.h <<_ACEOF
8402 #define ENABLE_ICMP 1
8403 _ACEOF
8404
8405 fi
8406
8407 TCP=1
8408 # Check whether --enable-tcp was given.
8409 if test "${enable_tcp+set}" = set; then :
8410 enableval=$enable_tcp; if test "x$enableval" = xno; then
8411 TCP=0
8412 fi
8413
8414 fi
8415
8416 if test "x$TCP" = x1; then
8417
8418 cat >>confdefs.h <<_ACEOF
8419 #define ENABLE_TCP 1
8420 _ACEOF
8421
8422 fi
8423
8424 HTTP=1
8425 # Check whether --enable-http-proxy was given.
8426 if test "${enable_http_proxy+set}" = set; then :
8427 enableval=$enable_http_proxy; if test "x$enableval" = xno; then
8428 HTTP=0
8429 fi
8430
8431 fi
8432
8433 if test "x$HTTP" = x1; then
8434
8435 cat >>confdefs.h <<_ACEOF
8436 #define ENABLE_HTTP_PROXY 1
8437 _ACEOF
8438
8439 fi
8440
8441 # Check whether --enable-dns was given.
8442 if test "${enable_dns+set}" = set; then :
8443 enableval=$enable_dns;
8444 ac_fn_cxx_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
8445 if test "x$ac_cv_header_gmp_h" = x""yes; then :
8446
8447 else
8448 as_fn_error $? "gmp.h not found, required for --enable-dns" "$LINENO" 5
8449 fi
8450
8451
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgmp" >&5
8453 $as_echo_n "checking for main in -lgmp... " >&6; }
8454 if test "${ac_cv_lib_gmp_main+set}" = set; then :
8455 $as_echo_n "(cached) " >&6
8456 else
8457 ac_check_lib_save_LIBS=$LIBS
8458 LIBS="-lgmp $LIBS"
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8461
8462
8463 int
8464 main ()
8465 {
8466 return main ();
8467 ;
8468 return 0;
8469 }
8470 _ACEOF
8471 if ac_fn_cxx_try_link "$LINENO"; then :
8472 ac_cv_lib_gmp_main=yes
8473 else
8474 ac_cv_lib_gmp_main=no
8475 fi
8476 rm -f core conftest.err conftest.$ac_objext \
8477 conftest$ac_exeext conftest.$ac_ext
8478 LIBS=$ac_check_lib_save_LIBS
8479 fi
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_main" >&5
8481 $as_echo "$ac_cv_lib_gmp_main" >&6; }
8482 if test "x$ac_cv_lib_gmp_main" = x""yes; then :
8483 cat >>confdefs.h <<_ACEOF
8484 #define HAVE_LIBGMP 1
8485 _ACEOF
8486
8487 LIBS="-lgmp $LIBS"
8488
8489 else
8490 as_fn_error $? "libgmp not found, required for --enable-dns" "$LINENO" 5
8491 fi
8492
8493
8494
8495 cat >>confdefs.h <<_ACEOF
8496 #define ENABLE_DNS 1
8497 _ACEOF
8498
8499
8500
8501 fi
8502
8503
8504 HMAC=12
8505 # Check whether --enable-hmac-length was given.
8506 if test "${enable_hmac_length+set}" = set; then :
8507 enableval=$enable_hmac_length; HMAC=$enableval
8508
8509 fi
8510
8511
8512 cat >>confdefs.h <<_ACEOF
8513 #define HMACLENGTH $HMAC
8514 _ACEOF
8515
8516
8517 RAND=8
8518 # Check whether --enable-rand-length was given.
8519 if test "${enable_rand_length+set}" = set; then :
8520 enableval=$enable_rand_length; RAND=$enableval
8521
8522 fi
8523
8524
8525 cat >>confdefs.h <<_ACEOF
8526 #define RAND_SIZE $RAND
8527 _ACEOF
8528
8529
8530 MTU=1500
8531 # Check whether --enable-max-mtu was given.
8532 if test "${enable_max_mtu+set}" = set; then :
8533 enableval=$enable_max_mtu; MTU=$enableval
8534
8535 fi
8536
8537
8538 cat >>confdefs.h <<_ACEOF
8539 #define MAX_MTU $MTU + 14
8540 _ACEOF
8541
8542
8543 COMPRESS=1
8544 # Check whether --enable-compression was given.
8545 if test "${enable_compression+set}" = set; then :
8546 enableval=$enable_compression; if test "x$enableval" = xno; then
8547 COMPRESS=0
8548 fi
8549
8550 fi
8551
8552
8553 cat >>confdefs.h <<_ACEOF
8554 #define ENABLE_COMPRESSION $COMPRESS
8555 _ACEOF
8556
8557
8558 CIPHER=aes_128_cbc
8559 # Check whether --enable-cipher was given.
8560 if test "${enable_cipher+set}" = set; then :
8561 enableval=$enable_cipher; if test "x$enableval" = xbf ; then CIPHER=bf_cbc ; fi
8562 if test "x$enableval" = xaes-128; then CIPHER=aes_128_cbc; fi
8563 if test "x$enableval" = xaes-192; then CIPHER=aes_192_cbc; fi
8564 if test "x$enableval" = xaes-256; then CIPHER=aes_256_cbc; fi
8565
8566 fi
8567
8568
8569 cat >>confdefs.h <<_ACEOF
8570 #define ENABLE_CIPHER EVP_${CIPHER}
8571 _ACEOF
8572
8573
8574 DIGEST=ripemd160
8575 # Check whether --enable-digest was given.
8576 if test "${enable_digest+set}" = set; then :
8577 enableval=$enable_digest; if test "x$enableval" = xsha512 ; then DIGEST=sha512 ; fi
8578 if test "x$enableval" = xsha256 ; then DIGEST=sha256 ; fi
8579 if test "x$enableval" = xsha1 ; then DIGEST=sha1 ; fi
8580 if test "x$enableval" = xripemd160; then DIGEST=ripemd160; fi
8581 if test "x$enableval" = xmd5 ; then DIGEST=md5 ; fi
8582 if test "x$enableval" = xmd4 ; then DIGEST=md4 ; fi
8583
8584 fi
8585
8586
8587 cat >>confdefs.h <<_ACEOF
8588 #define ENABLE_DIGEST EVP_${DIGEST}
8589 _ACEOF
8590
8591
8592 if $CXX -v --help 2>&1 | grep -q fno-rtti; then
8593 CXXFLAGS="$CXXFLAGS -fno-rtti"
8594 fi
8595
8596 #if $CXX -v --help 2>&1 | grep -q fexceptions; then
8597 # CXXFLAGS="$CXXFLAGS -fno-exceptions"
8598 #fi
8599
8600 LIBS="$EXTRA_LIBS $LIBS"
8601
8602
8603
8604
8605 ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile doc/Makefile lib/Makefile m4/Makefile"
8606
8607 cat >confcache <<\_ACEOF
8608 # This file is a shell script that caches the results of configure
8609 # tests run on this system so they can be shared between configure
8610 # scripts and configure runs, see configure's option --config-cache.
8611 # It is not useful on other systems. If it contains results you don't
8612 # want to keep, you may remove or edit it.
8613 #
8614 # config.status only pays attention to the cache file if you give it
8615 # the --recheck option to rerun configure.
8616 #
8617 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8618 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8619 # following values.
8620
8621 _ACEOF
8622
8623 # The following way of writing the cache mishandles newlines in values,
8624 # but we know of no workaround that is simple, portable, and efficient.
8625 # So, we kill variables containing newlines.
8626 # Ultrix sh set writes to stderr and can't be redirected directly,
8627 # and sets the high bit in the cache file unless we assign to the vars.
8628 (
8629 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8630 eval ac_val=\$$ac_var
8631 case $ac_val in #(
8632 *${as_nl}*)
8633 case $ac_var in #(
8634 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8635 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8636 esac
8637 case $ac_var in #(
8638 _ | IFS | as_nl) ;; #(
8639 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8640 *) { eval $ac_var=; unset $ac_var;} ;;
8641 esac ;;
8642 esac
8643 done
8644
8645 (set) 2>&1 |
8646 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8647 *${as_nl}ac_space=\ *)
8648 # `set' does not quote correctly, so add quotes: double-quote
8649 # substitution turns \\\\ into \\, and sed turns \\ into \.
8650 sed -n \
8651 "s/'/'\\\\''/g;
8652 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8653 ;; #(
8654 *)
8655 # `set' quotes correctly as required by POSIX, so do not add quotes.
8656 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8657 ;;
8658 esac |
8659 sort
8660 ) |
8661 sed '
8662 /^ac_cv_env_/b end
8663 t clear
8664 :clear
8665 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8666 t end
8667 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8668 :end' >>confcache
8669 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8670 if test -w "$cache_file"; then
8671 test "x$cache_file" != "x/dev/null" &&
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8673 $as_echo "$as_me: updating cache $cache_file" >&6;}
8674 cat confcache >$cache_file
8675 else
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8677 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8678 fi
8679 fi
8680 rm -f confcache
8681
8682 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8683 # Let make expand exec_prefix.
8684 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8685
8686 DEFS=-DHAVE_CONFIG_H
8687
8688 ac_libobjs=
8689 ac_ltlibobjs=
8690 U=
8691 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8692 # 1. Remove the extension, and $U if already installed.
8693 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8694 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8695 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8696 # will be set to the directory where LIBOBJS objects are built.
8697 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8698 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8699 done
8700 LIBOBJS=$ac_libobjs
8701
8702 LTLIBOBJS=$ac_ltlibobjs
8703
8704
8705 if test -n "$EXEEXT"; then
8706 am__EXEEXT_TRUE=
8707 am__EXEEXT_FALSE='#'
8708 else
8709 am__EXEEXT_TRUE='#'
8710 am__EXEEXT_FALSE=
8711 fi
8712
8713 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8714 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
8715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8716 fi
8717 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8718 as_fn_error $? "conditional \"AMDEP\" was never defined.
8719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8720 fi
8721 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8722 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8724 fi
8725 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8726 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
8727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8728 fi
8729 if test -z "${ROHC_TRUE}" && test -z "${ROHC_FALSE}"; then
8730 as_fn_error $? "conditional \"ROHC\" was never defined.
8731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8732 fi
8733
8734 : ${CONFIG_STATUS=./config.status}
8735 ac_write_fail=0
8736 ac_clean_files_save=$ac_clean_files
8737 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8739 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8740 as_write_fail=0
8741 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8742 #! $SHELL
8743 # Generated by $as_me.
8744 # Run this file to recreate the current configuration.
8745 # Compiler output produced by configure, useful for debugging
8746 # configure, is in config.log if it exists.
8747
8748 debug=false
8749 ac_cs_recheck=false
8750 ac_cs_silent=false
8751
8752 SHELL=\${CONFIG_SHELL-$SHELL}
8753 export SHELL
8754 _ASEOF
8755 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8756 ## -------------------- ##
8757 ## M4sh Initialization. ##
8758 ## -------------------- ##
8759
8760 # Be more Bourne compatible
8761 DUALCASE=1; export DUALCASE # for MKS sh
8762 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8763 emulate sh
8764 NULLCMD=:
8765 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8766 # is contrary to our usage. Disable this feature.
8767 alias -g '${1+"$@"}'='"$@"'
8768 setopt NO_GLOB_SUBST
8769 else
8770 case `(set -o) 2>/dev/null` in #(
8771 *posix*) :
8772 set -o posix ;; #(
8773 *) :
8774 ;;
8775 esac
8776 fi
8777
8778
8779 as_nl='
8780 '
8781 export as_nl
8782 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8783 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8784 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8785 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8786 # Prefer a ksh shell builtin over an external printf program on Solaris,
8787 # but without wasting forks for bash or zsh.
8788 if test -z "$BASH_VERSION$ZSH_VERSION" \
8789 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8790 as_echo='print -r --'
8791 as_echo_n='print -rn --'
8792 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8793 as_echo='printf %s\n'
8794 as_echo_n='printf %s'
8795 else
8796 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8797 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8798 as_echo_n='/usr/ucb/echo -n'
8799 else
8800 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8801 as_echo_n_body='eval
8802 arg=$1;
8803 case $arg in #(
8804 *"$as_nl"*)
8805 expr "X$arg" : "X\\(.*\\)$as_nl";
8806 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8807 esac;
8808 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8809 '
8810 export as_echo_n_body
8811 as_echo_n='sh -c $as_echo_n_body as_echo'
8812 fi
8813 export as_echo_body
8814 as_echo='sh -c $as_echo_body as_echo'
8815 fi
8816
8817 # The user is always right.
8818 if test "${PATH_SEPARATOR+set}" != set; then
8819 PATH_SEPARATOR=:
8820 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8821 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8822 PATH_SEPARATOR=';'
8823 }
8824 fi
8825
8826
8827 # IFS
8828 # We need space, tab and new line, in precisely that order. Quoting is
8829 # there to prevent editors from complaining about space-tab.
8830 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8831 # splitting by setting IFS to empty value.)
8832 IFS=" "" $as_nl"
8833
8834 # Find who we are. Look in the path if we contain no directory separator.
8835 case $0 in #((
8836 *[\\/]* ) as_myself=$0 ;;
8837 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8838 for as_dir in $PATH
8839 do
8840 IFS=$as_save_IFS
8841 test -z "$as_dir" && as_dir=.
8842 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8843 done
8844 IFS=$as_save_IFS
8845
8846 ;;
8847 esac
8848 # We did not find ourselves, most probably we were run as `sh COMMAND'
8849 # in which case we are not to be found in the path.
8850 if test "x$as_myself" = x; then
8851 as_myself=$0
8852 fi
8853 if test ! -f "$as_myself"; then
8854 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8855 exit 1
8856 fi
8857
8858 # Unset variables that we do not need and which cause bugs (e.g. in
8859 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8860 # suppresses any "Segmentation fault" message there. '((' could
8861 # trigger a bug in pdksh 5.2.14.
8862 for as_var in BASH_ENV ENV MAIL MAILPATH
8863 do eval test x\${$as_var+set} = xset \
8864 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8865 done
8866 PS1='$ '
8867 PS2='> '
8868 PS4='+ '
8869
8870 # NLS nuisances.
8871 LC_ALL=C
8872 export LC_ALL
8873 LANGUAGE=C
8874 export LANGUAGE
8875
8876 # CDPATH.
8877 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8878
8879
8880 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8881 # ----------------------------------------
8882 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8883 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8884 # script with STATUS, using 1 if that was 0.
8885 as_fn_error ()
8886 {
8887 as_status=$1; test $as_status -eq 0 && as_status=1
8888 if test "$4"; then
8889 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8890 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8891 fi
8892 $as_echo "$as_me: error: $2" >&2
8893 as_fn_exit $as_status
8894 } # as_fn_error
8895
8896
8897 # as_fn_set_status STATUS
8898 # -----------------------
8899 # Set $? to STATUS, without forking.
8900 as_fn_set_status ()
8901 {
8902 return $1
8903 } # as_fn_set_status
8904
8905 # as_fn_exit STATUS
8906 # -----------------
8907 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8908 as_fn_exit ()
8909 {
8910 set +e
8911 as_fn_set_status $1
8912 exit $1
8913 } # as_fn_exit
8914
8915 # as_fn_unset VAR
8916 # ---------------
8917 # Portably unset VAR.
8918 as_fn_unset ()
8919 {
8920 { eval $1=; unset $1;}
8921 }
8922 as_unset=as_fn_unset
8923 # as_fn_append VAR VALUE
8924 # ----------------------
8925 # Append the text in VALUE to the end of the definition contained in VAR. Take
8926 # advantage of any shell optimizations that allow amortized linear growth over
8927 # repeated appends, instead of the typical quadratic growth present in naive
8928 # implementations.
8929 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8930 eval 'as_fn_append ()
8931 {
8932 eval $1+=\$2
8933 }'
8934 else
8935 as_fn_append ()
8936 {
8937 eval $1=\$$1\$2
8938 }
8939 fi # as_fn_append
8940
8941 # as_fn_arith ARG...
8942 # ------------------
8943 # Perform arithmetic evaluation on the ARGs, and store the result in the
8944 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8945 # must be portable across $(()) and expr.
8946 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8947 eval 'as_fn_arith ()
8948 {
8949 as_val=$(( $* ))
8950 }'
8951 else
8952 as_fn_arith ()
8953 {
8954 as_val=`expr "$@" || test $? -eq 1`
8955 }
8956 fi # as_fn_arith
8957
8958
8959 if expr a : '\(a\)' >/dev/null 2>&1 &&
8960 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8961 as_expr=expr
8962 else
8963 as_expr=false
8964 fi
8965
8966 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8967 as_basename=basename
8968 else
8969 as_basename=false
8970 fi
8971
8972 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8973 as_dirname=dirname
8974 else
8975 as_dirname=false
8976 fi
8977
8978 as_me=`$as_basename -- "$0" ||
8979 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8980 X"$0" : 'X\(//\)$' \| \
8981 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8982 $as_echo X/"$0" |
8983 sed '/^.*\/\([^/][^/]*\)\/*$/{
8984 s//\1/
8985 q
8986 }
8987 /^X\/\(\/\/\)$/{
8988 s//\1/
8989 q
8990 }
8991 /^X\/\(\/\).*/{
8992 s//\1/
8993 q
8994 }
8995 s/.*/./; q'`
8996
8997 # Avoid depending upon Character Ranges.
8998 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8999 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9000 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9001 as_cr_digits='0123456789'
9002 as_cr_alnum=$as_cr_Letters$as_cr_digits
9003
9004 ECHO_C= ECHO_N= ECHO_T=
9005 case `echo -n x` in #(((((
9006 -n*)
9007 case `echo 'xy\c'` in
9008 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9009 xy) ECHO_C='\c';;
9010 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9011 ECHO_T=' ';;
9012 esac;;
9013 *)
9014 ECHO_N='-n';;
9015 esac
9016
9017 rm -f conf$$ conf$$.exe conf$$.file
9018 if test -d conf$$.dir; then
9019 rm -f conf$$.dir/conf$$.file
9020 else
9021 rm -f conf$$.dir
9022 mkdir conf$$.dir 2>/dev/null
9023 fi
9024 if (echo >conf$$.file) 2>/dev/null; then
9025 if ln -s conf$$.file conf$$ 2>/dev/null; then
9026 as_ln_s='ln -s'
9027 # ... but there are two gotchas:
9028 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9029 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9030 # In both cases, we have to default to `cp -p'.
9031 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9032 as_ln_s='cp -p'
9033 elif ln conf$$.file conf$$ 2>/dev/null; then
9034 as_ln_s=ln
9035 else
9036 as_ln_s='cp -p'
9037 fi
9038 else
9039 as_ln_s='cp -p'
9040 fi
9041 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9042 rmdir conf$$.dir 2>/dev/null
9043
9044
9045 # as_fn_mkdir_p
9046 # -------------
9047 # Create "$as_dir" as a directory, including parents if necessary.
9048 as_fn_mkdir_p ()
9049 {
9050
9051 case $as_dir in #(
9052 -*) as_dir=./$as_dir;;
9053 esac
9054 test -d "$as_dir" || eval $as_mkdir_p || {
9055 as_dirs=
9056 while :; do
9057 case $as_dir in #(
9058 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9059 *) as_qdir=$as_dir;;
9060 esac
9061 as_dirs="'$as_qdir' $as_dirs"
9062 as_dir=`$as_dirname -- "$as_dir" ||
9063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9064 X"$as_dir" : 'X\(//\)[^/]' \| \
9065 X"$as_dir" : 'X\(//\)$' \| \
9066 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9067 $as_echo X"$as_dir" |
9068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9069 s//\1/
9070 q
9071 }
9072 /^X\(\/\/\)[^/].*/{
9073 s//\1/
9074 q
9075 }
9076 /^X\(\/\/\)$/{
9077 s//\1/
9078 q
9079 }
9080 /^X\(\/\).*/{
9081 s//\1/
9082 q
9083 }
9084 s/.*/./; q'`
9085 test -d "$as_dir" && break
9086 done
9087 test -z "$as_dirs" || eval "mkdir $as_dirs"
9088 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9089
9090
9091 } # as_fn_mkdir_p
9092 if mkdir -p . 2>/dev/null; then
9093 as_mkdir_p='mkdir -p "$as_dir"'
9094 else
9095 test -d ./-p && rmdir ./-p
9096 as_mkdir_p=false
9097 fi
9098
9099 if test -x / >/dev/null 2>&1; then
9100 as_test_x='test -x'
9101 else
9102 if ls -dL / >/dev/null 2>&1; then
9103 as_ls_L_option=L
9104 else
9105 as_ls_L_option=
9106 fi
9107 as_test_x='
9108 eval sh -c '\''
9109 if test -d "$1"; then
9110 test -d "$1/.";
9111 else
9112 case $1 in #(
9113 -*)set "./$1";;
9114 esac;
9115 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9116 ???[sx]*):;;*)false;;esac;fi
9117 '\'' sh
9118 '
9119 fi
9120 as_executable_p=$as_test_x
9121
9122 # Sed expression to map a string onto a valid CPP name.
9123 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9124
9125 # Sed expression to map a string onto a valid variable name.
9126 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9127
9128
9129 exec 6>&1
9130 ## ----------------------------------- ##
9131 ## Main body of $CONFIG_STATUS script. ##
9132 ## ----------------------------------- ##
9133 _ASEOF
9134 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9135
9136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9137 # Save the log message, to keep $0 and so on meaningful, and to
9138 # report actual input values of CONFIG_FILES etc. instead of their
9139 # values after options handling.
9140 ac_log="
9141 This file was extended by $as_me, which was
9142 generated by GNU Autoconf 2.67. Invocation command line was
9143
9144 CONFIG_FILES = $CONFIG_FILES
9145 CONFIG_HEADERS = $CONFIG_HEADERS
9146 CONFIG_LINKS = $CONFIG_LINKS
9147 CONFIG_COMMANDS = $CONFIG_COMMANDS
9148 $ $0 $@
9149
9150 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9151 "
9152
9153 _ACEOF
9154
9155 case $ac_config_files in *"
9156 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9157 esac
9158
9159 case $ac_config_headers in *"
9160 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9161 esac
9162
9163
9164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9165 # Files that config.status was made for.
9166 config_files="$ac_config_files"
9167 config_headers="$ac_config_headers"
9168 config_commands="$ac_config_commands"
9169
9170 _ACEOF
9171
9172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9173 ac_cs_usage="\
9174 \`$as_me' instantiates files and other configuration actions
9175 from templates according to the current configuration. Unless the files
9176 and actions are specified as TAGs, all are instantiated by default.
9177
9178 Usage: $0 [OPTION]... [TAG]...
9179
9180 -h, --help print this help, then exit
9181 -V, --version print version number and configuration settings, then exit
9182 --config print configuration, then exit
9183 -q, --quiet, --silent
9184 do not print progress messages
9185 -d, --debug don't remove temporary files
9186 --recheck update $as_me by reconfiguring in the same conditions
9187 --file=FILE[:TEMPLATE]
9188 instantiate the configuration file FILE
9189 --header=FILE[:TEMPLATE]
9190 instantiate the configuration header FILE
9191
9192 Configuration files:
9193 $config_files
9194
9195 Configuration headers:
9196 $config_headers
9197
9198 Configuration commands:
9199 $config_commands
9200
9201 Report bugs to the package provider."
9202
9203 _ACEOF
9204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9205 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9206 ac_cs_version="\\
9207 config.status
9208 configured by $0, generated by GNU Autoconf 2.67,
9209 with options \\"\$ac_cs_config\\"
9210
9211 Copyright (C) 2010 Free Software Foundation, Inc.
9212 This config.status script is free software; the Free Software Foundation
9213 gives unlimited permission to copy, distribute and modify it."
9214
9215 ac_pwd='$ac_pwd'
9216 srcdir='$srcdir'
9217 INSTALL='$INSTALL'
9218 MKDIR_P='$MKDIR_P'
9219 AWK='$AWK'
9220 test -n "\$AWK" || AWK=awk
9221 _ACEOF
9222
9223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9224 # The default lists apply if the user does not specify any file.
9225 ac_need_defaults=:
9226 while test $# != 0
9227 do
9228 case $1 in
9229 --*=?*)
9230 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9231 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9232 ac_shift=:
9233 ;;
9234 --*=)
9235 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9236 ac_optarg=
9237 ac_shift=:
9238 ;;
9239 *)
9240 ac_option=$1
9241 ac_optarg=$2
9242 ac_shift=shift
9243 ;;
9244 esac
9245
9246 case $ac_option in
9247 # Handling of the options.
9248 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9249 ac_cs_recheck=: ;;
9250 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9251 $as_echo "$ac_cs_version"; exit ;;
9252 --config | --confi | --conf | --con | --co | --c )
9253 $as_echo "$ac_cs_config"; exit ;;
9254 --debug | --debu | --deb | --de | --d | -d )
9255 debug=: ;;
9256 --file | --fil | --fi | --f )
9257 $ac_shift
9258 case $ac_optarg in
9259 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9260 '') as_fn_error $? "missing file argument" ;;
9261 esac
9262 as_fn_append CONFIG_FILES " '$ac_optarg'"
9263 ac_need_defaults=false;;
9264 --header | --heade | --head | --hea )
9265 $ac_shift
9266 case $ac_optarg in
9267 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9268 esac
9269 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9270 ac_need_defaults=false;;
9271 --he | --h)
9272 # Conflict between --help and --header
9273 as_fn_error $? "ambiguous option: \`$1'
9274 Try \`$0 --help' for more information.";;
9275 --help | --hel | -h )
9276 $as_echo "$ac_cs_usage"; exit ;;
9277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9278 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9279 ac_cs_silent=: ;;
9280
9281 # This is an error.
9282 -*) as_fn_error $? "unrecognized option: \`$1'
9283 Try \`$0 --help' for more information." ;;
9284
9285 *) as_fn_append ac_config_targets " $1"
9286 ac_need_defaults=false ;;
9287
9288 esac
9289 shift
9290 done
9291
9292 ac_configure_extra_args=
9293
9294 if $ac_cs_silent; then
9295 exec 6>/dev/null
9296 ac_configure_extra_args="$ac_configure_extra_args --silent"
9297 fi
9298
9299 _ACEOF
9300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9301 if \$ac_cs_recheck; then
9302 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9303 shift
9304 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9305 CONFIG_SHELL='$SHELL'
9306 export CONFIG_SHELL
9307 exec "\$@"
9308 fi
9309
9310 _ACEOF
9311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9312 exec 5>>config.log
9313 {
9314 echo
9315 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9316 ## Running $as_me. ##
9317 _ASBOX
9318 $as_echo "$ac_log"
9319 } >&5
9320
9321 _ACEOF
9322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9323 #
9324 # INIT-COMMANDS
9325 #
9326 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9327 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9328 # from automake.
9329 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
9330 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9331 LINGUAS="${LINGUAS-%UNSET%}"
9332
9333 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9334
9335 _ACEOF
9336
9337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9338
9339 # Handling of arguments.
9340 for ac_config_target in $ac_config_targets
9341 do
9342 case $ac_config_target in
9343 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9344 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9345 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9346 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9347 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9348 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9349 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9350 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
9351 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
9352
9353 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
9354 esac
9355 done
9356
9357
9358 # If the user did not use the arguments to specify the items to instantiate,
9359 # then the envvar interface is used. Set only those that are not.
9360 # We use the long form for the default assignment because of an extremely
9361 # bizarre bug on SunOS 4.1.3.
9362 if $ac_need_defaults; then
9363 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9364 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9365 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9366 fi
9367
9368 # Have a temporary directory for convenience. Make it in the build tree
9369 # simply because there is no reason against having it here, and in addition,
9370 # creating and moving files from /tmp can sometimes cause problems.
9371 # Hook for its removal unless debugging.
9372 # Note that there is a small window in which the directory will not be cleaned:
9373 # after its creation but before its name has been assigned to `$tmp'.
9374 $debug ||
9375 {
9376 tmp=
9377 trap 'exit_status=$?
9378 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9379 ' 0
9380 trap 'as_fn_exit 1' 1 2 13 15
9381 }
9382 # Create a (secure) tmp directory for tmp files.
9383
9384 {
9385 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9386 test -n "$tmp" && test -d "$tmp"
9387 } ||
9388 {
9389 tmp=./conf$$-$RANDOM
9390 (umask 077 && mkdir "$tmp")
9391 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9392
9393 # Set up the scripts for CONFIG_FILES section.
9394 # No need to generate them if there are no CONFIG_FILES.
9395 # This happens for instance with `./config.status config.h'.
9396 if test -n "$CONFIG_FILES"; then
9397
9398
9399 ac_cr=`echo X | tr X '\015'`
9400 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9401 # But we know of no other shell where ac_cr would be empty at this
9402 # point, so we can use a bashism as a fallback.
9403 if test "x$ac_cr" = x; then
9404 eval ac_cr=\$\'\\r\'
9405 fi
9406 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9407 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9408 ac_cs_awk_cr='\\r'
9409 else
9410 ac_cs_awk_cr=$ac_cr
9411 fi
9412
9413 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9414 _ACEOF
9415
9416
9417 {
9418 echo "cat >conf$$subs.awk <<_ACEOF" &&
9419 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9420 echo "_ACEOF"
9421 } >conf$$subs.sh ||
9422 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9423 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9424 ac_delim='%!_!# '
9425 for ac_last_try in false false false false false :; do
9426 . ./conf$$subs.sh ||
9427 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9428
9429 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9430 if test $ac_delim_n = $ac_delim_num; then
9431 break
9432 elif $ac_last_try; then
9433 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9434 else
9435 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9436 fi
9437 done
9438 rm -f conf$$subs.sh
9439
9440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9441 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9442 _ACEOF
9443 sed -n '
9444 h
9445 s/^/S["/; s/!.*/"]=/
9446 p
9447 g
9448 s/^[^!]*!//
9449 :repl
9450 t repl
9451 s/'"$ac_delim"'$//
9452 t delim
9453 :nl
9454 h
9455 s/\(.\{148\}\)..*/\1/
9456 t more1
9457 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9458 p
9459 n
9460 b repl
9461 :more1
9462 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9463 p
9464 g
9465 s/.\{148\}//
9466 t nl
9467 :delim
9468 h
9469 s/\(.\{148\}\)..*/\1/
9470 t more2
9471 s/["\\]/\\&/g; s/^/"/; s/$/"/
9472 p
9473 b
9474 :more2
9475 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9476 p
9477 g
9478 s/.\{148\}//
9479 t delim
9480 ' <conf$$subs.awk | sed '
9481 /^[^""]/{
9482 N
9483 s/\n//
9484 }
9485 ' >>$CONFIG_STATUS || ac_write_fail=1
9486 rm -f conf$$subs.awk
9487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9488 _ACAWK
9489 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9490 for (key in S) S_is_set[key] = 1
9491 FS = ""
9492
9493 }
9494 {
9495 line = $ 0
9496 nfields = split(line, field, "@")
9497 substed = 0
9498 len = length(field[1])
9499 for (i = 2; i < nfields; i++) {
9500 key = field[i]
9501 keylen = length(key)
9502 if (S_is_set[key]) {
9503 value = S[key]
9504 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9505 len += length(value) + length(field[++i])
9506 substed = 1
9507 } else
9508 len += 1 + keylen
9509 }
9510
9511 print line
9512 }
9513
9514 _ACAWK
9515 _ACEOF
9516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9517 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9518 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9519 else
9520 cat
9521 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9522 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9523 _ACEOF
9524
9525 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9526 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9527 # trailing colons and then remove the whole line if VPATH becomes empty
9528 # (actually we leave an empty line to preserve line numbers).
9529 if test "x$srcdir" = x.; then
9530 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9531 h
9532 s///
9533 s/^/:/
9534 s/[ ]*$/:/
9535 s/:\$(srcdir):/:/g
9536 s/:\${srcdir}:/:/g
9537 s/:@srcdir@:/:/g
9538 s/^:*//
9539 s/:*$//
9540 x
9541 s/\(=[ ]*\).*/\1/
9542 G
9543 s/\n//
9544 s/^[^=]*=[ ]*$//
9545 }'
9546 fi
9547
9548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9549 fi # test -n "$CONFIG_FILES"
9550
9551 # Set up the scripts for CONFIG_HEADERS section.
9552 # No need to generate them if there are no CONFIG_HEADERS.
9553 # This happens for instance with `./config.status Makefile'.
9554 if test -n "$CONFIG_HEADERS"; then
9555 cat >"$tmp/defines.awk" <<\_ACAWK ||
9556 BEGIN {
9557 _ACEOF
9558
9559 # Transform confdefs.h into an awk script `defines.awk', embedded as
9560 # here-document in config.status, that substitutes the proper values into
9561 # config.h.in to produce config.h.
9562
9563 # Create a delimiter string that does not exist in confdefs.h, to ease
9564 # handling of long lines.
9565 ac_delim='%!_!# '
9566 for ac_last_try in false false :; do
9567 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9568 if test -z "$ac_t"; then
9569 break
9570 elif $ac_last_try; then
9571 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9572 else
9573 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9574 fi
9575 done
9576
9577 # For the awk script, D is an array of macro values keyed by name,
9578 # likewise P contains macro parameters if any. Preserve backslash
9579 # newline sequences.
9580
9581 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9582 sed -n '
9583 s/.\{148\}/&'"$ac_delim"'/g
9584 t rset
9585 :rset
9586 s/^[ ]*#[ ]*define[ ][ ]*/ /
9587 t def
9588 d
9589 :def
9590 s/\\$//
9591 t bsnl
9592 s/["\\]/\\&/g
9593 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9594 D["\1"]=" \3"/p
9595 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9596 d
9597 :bsnl
9598 s/["\\]/\\&/g
9599 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9600 D["\1"]=" \3\\\\\\n"\\/p
9601 t cont
9602 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9603 t cont
9604 d
9605 :cont
9606 n
9607 s/.\{148\}/&'"$ac_delim"'/g
9608 t clear
9609 :clear
9610 s/\\$//
9611 t bsnlc
9612 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9613 d
9614 :bsnlc
9615 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9616 b cont
9617 ' <confdefs.h | sed '
9618 s/'"$ac_delim"'/"\\\
9619 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9620
9621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9622 for (key in D) D_is_set[key] = 1
9623 FS = ""
9624 }
9625 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9626 line = \$ 0
9627 split(line, arg, " ")
9628 if (arg[1] == "#") {
9629 defundef = arg[2]
9630 mac1 = arg[3]
9631 } else {
9632 defundef = substr(arg[1], 2)
9633 mac1 = arg[2]
9634 }
9635 split(mac1, mac2, "(") #)
9636 macro = mac2[1]
9637 prefix = substr(line, 1, index(line, defundef) - 1)
9638 if (D_is_set[macro]) {
9639 # Preserve the white space surrounding the "#".
9640 print prefix "define", macro P[macro] D[macro]
9641 next
9642 } else {
9643 # Replace #undef with comments. This is necessary, for example,
9644 # in the case of _POSIX_SOURCE, which is predefined and required
9645 # on some systems where configure will not decide to define it.
9646 if (defundef == "undef") {
9647 print "/*", prefix defundef, macro, "*/"
9648 next
9649 }
9650 }
9651 }
9652 { print }
9653 _ACAWK
9654 _ACEOF
9655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9656 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9657 fi # test -n "$CONFIG_HEADERS"
9658
9659
9660 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9661 shift
9662 for ac_tag
9663 do
9664 case $ac_tag in
9665 :[FHLC]) ac_mode=$ac_tag; continue;;
9666 esac
9667 case $ac_mode$ac_tag in
9668 :[FHL]*:*);;
9669 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
9670 :[FH]-) ac_tag=-:-;;
9671 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9672 esac
9673 ac_save_IFS=$IFS
9674 IFS=:
9675 set x $ac_tag
9676 IFS=$ac_save_IFS
9677 shift
9678 ac_file=$1
9679 shift
9680
9681 case $ac_mode in
9682 :L) ac_source=$1;;
9683 :[FH])
9684 ac_file_inputs=
9685 for ac_f
9686 do
9687 case $ac_f in
9688 -) ac_f="$tmp/stdin";;
9689 *) # Look for the file first in the build tree, then in the source tree
9690 # (if the path is not absolute). The absolute path cannot be DOS-style,
9691 # because $ac_f cannot contain `:'.
9692 test -f "$ac_f" ||
9693 case $ac_f in
9694 [\\/$]*) false;;
9695 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9696 esac ||
9697 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
9698 esac
9699 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9700 as_fn_append ac_file_inputs " '$ac_f'"
9701 done
9702
9703 # Let's still pretend it is `configure' which instantiates (i.e., don't
9704 # use $as_me), people would be surprised to read:
9705 # /* config.h. Generated by config.status. */
9706 configure_input='Generated from '`
9707 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9708 `' by configure.'
9709 if test x"$ac_file" != x-; then
9710 configure_input="$ac_file. $configure_input"
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9712 $as_echo "$as_me: creating $ac_file" >&6;}
9713 fi
9714 # Neutralize special characters interpreted by sed in replacement strings.
9715 case $configure_input in #(
9716 *\&* | *\|* | *\\* )
9717 ac_sed_conf_input=`$as_echo "$configure_input" |
9718 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9719 *) ac_sed_conf_input=$configure_input;;
9720 esac
9721
9722 case $ac_tag in
9723 *:-:* | *:-) cat >"$tmp/stdin" \
9724 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9725 esac
9726 ;;
9727 esac
9728
9729 ac_dir=`$as_dirname -- "$ac_file" ||
9730 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9731 X"$ac_file" : 'X\(//\)[^/]' \| \
9732 X"$ac_file" : 'X\(//\)$' \| \
9733 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9734 $as_echo X"$ac_file" |
9735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9736 s//\1/
9737 q
9738 }
9739 /^X\(\/\/\)[^/].*/{
9740 s//\1/
9741 q
9742 }
9743 /^X\(\/\/\)$/{
9744 s//\1/
9745 q
9746 }
9747 /^X\(\/\).*/{
9748 s//\1/
9749 q
9750 }
9751 s/.*/./; q'`
9752 as_dir="$ac_dir"; as_fn_mkdir_p
9753 ac_builddir=.
9754
9755 case "$ac_dir" in
9756 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9757 *)
9758 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9759 # A ".." for each directory in $ac_dir_suffix.
9760 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9761 case $ac_top_builddir_sub in
9762 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9763 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9764 esac ;;
9765 esac
9766 ac_abs_top_builddir=$ac_pwd
9767 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9768 # for backward compatibility:
9769 ac_top_builddir=$ac_top_build_prefix
9770
9771 case $srcdir in
9772 .) # We are building in place.
9773 ac_srcdir=.
9774 ac_top_srcdir=$ac_top_builddir_sub
9775 ac_abs_top_srcdir=$ac_pwd ;;
9776 [\\/]* | ?:[\\/]* ) # Absolute name.
9777 ac_srcdir=$srcdir$ac_dir_suffix;
9778 ac_top_srcdir=$srcdir
9779 ac_abs_top_srcdir=$srcdir ;;
9780 *) # Relative name.
9781 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9782 ac_top_srcdir=$ac_top_build_prefix$srcdir
9783 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9784 esac
9785 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9786
9787
9788 case $ac_mode in
9789 :F)
9790 #
9791 # CONFIG_FILE
9792 #
9793
9794 case $INSTALL in
9795 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9796 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9797 esac
9798 ac_MKDIR_P=$MKDIR_P
9799 case $MKDIR_P in
9800 [\\/$]* | ?:[\\/]* ) ;;
9801 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9802 esac
9803 _ACEOF
9804
9805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9806 # If the template does not know about datarootdir, expand it.
9807 # FIXME: This hack should be removed a few years after 2.60.
9808 ac_datarootdir_hack=; ac_datarootdir_seen=
9809 ac_sed_dataroot='
9810 /datarootdir/ {
9811 p
9812 q
9813 }
9814 /@datadir@/p
9815 /@docdir@/p
9816 /@infodir@/p
9817 /@localedir@/p
9818 /@mandir@/p'
9819 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9820 *datarootdir*) ac_datarootdir_seen=yes;;
9821 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9823 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9824 _ACEOF
9825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9826 ac_datarootdir_hack='
9827 s&@datadir@&$datadir&g
9828 s&@docdir@&$docdir&g
9829 s&@infodir@&$infodir&g
9830 s&@localedir@&$localedir&g
9831 s&@mandir@&$mandir&g
9832 s&\\\${datarootdir}&$datarootdir&g' ;;
9833 esac
9834 _ACEOF
9835
9836 # Neutralize VPATH when `$srcdir' = `.'.
9837 # Shell code in configure.ac might set extrasub.
9838 # FIXME: do we really want to maintain this feature?
9839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9840 ac_sed_extra="$ac_vpsub
9841 $extrasub
9842 _ACEOF
9843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9844 :t
9845 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9846 s|@configure_input@|$ac_sed_conf_input|;t t
9847 s&@top_builddir@&$ac_top_builddir_sub&;t t
9848 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9849 s&@srcdir@&$ac_srcdir&;t t
9850 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9851 s&@top_srcdir@&$ac_top_srcdir&;t t
9852 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9853 s&@builddir@&$ac_builddir&;t t
9854 s&@abs_builddir@&$ac_abs_builddir&;t t
9855 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9856 s&@INSTALL@&$ac_INSTALL&;t t
9857 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9858 $ac_datarootdir_hack
9859 "
9860 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9861 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9862
9863 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9864 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9865 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9867 which seems to be undefined. Please make sure it is defined" >&5
9868 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9869 which seems to be undefined. Please make sure it is defined" >&2;}
9870
9871 rm -f "$tmp/stdin"
9872 case $ac_file in
9873 -) cat "$tmp/out" && rm -f "$tmp/out";;
9874 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9875 esac \
9876 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9877 ;;
9878 :H)
9879 #
9880 # CONFIG_HEADER
9881 #
9882 if test x"$ac_file" != x-; then
9883 {
9884 $as_echo "/* $configure_input */" \
9885 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9886 } >"$tmp/config.h" \
9887 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9888 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9890 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9891 else
9892 rm -f "$ac_file"
9893 mv "$tmp/config.h" "$ac_file" \
9894 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9895 fi
9896 else
9897 $as_echo "/* $configure_input */" \
9898 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9899 || as_fn_error $? "could not create -" "$LINENO" 5
9900 fi
9901 # Compute "$ac_file"'s index in $config_headers.
9902 _am_arg="$ac_file"
9903 _am_stamp_count=1
9904 for _am_header in $config_headers :; do
9905 case $_am_header in
9906 $_am_arg | $_am_arg:* )
9907 break ;;
9908 * )
9909 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9910 esac
9911 done
9912 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9913 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9914 X"$_am_arg" : 'X\(//\)[^/]' \| \
9915 X"$_am_arg" : 'X\(//\)$' \| \
9916 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9917 $as_echo X"$_am_arg" |
9918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9919 s//\1/
9920 q
9921 }
9922 /^X\(\/\/\)[^/].*/{
9923 s//\1/
9924 q
9925 }
9926 /^X\(\/\/\)$/{
9927 s//\1/
9928 q
9929 }
9930 /^X\(\/\).*/{
9931 s//\1/
9932 q
9933 }
9934 s/.*/./; q'`/stamp-h$_am_stamp_count
9935 ;;
9936
9937 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9938 $as_echo "$as_me: executing $ac_file commands" >&6;}
9939 ;;
9940 esac
9941
9942
9943 case $ac_file$ac_mode in
9944 "default-1":C)
9945 for ac_file in $CONFIG_FILES; do
9946 # Support "outfile[:infile[:infile...]]"
9947 case "$ac_file" in
9948 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9949 esac
9950 # PO directories have a Makefile.in generated from Makefile.in.in.
9951 case "$ac_file" in */Makefile.in)
9952 # Adjust a relative srcdir.
9953 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9954 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9955 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9956 # In autoconf-2.13 it is called $ac_given_srcdir.
9957 # In autoconf-2.50 it is called $srcdir.
9958 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9959 case "$ac_given_srcdir" in
9960 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9961 /*) top_srcdir="$ac_given_srcdir" ;;
9962 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9963 esac
9964 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9965 rm -f "$ac_dir/POTFILES"
9966 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9967 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9968 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
9969 # on $ac_dir but don't depend on user-specified configuration
9970 # parameters.
9971 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9972 # The LINGUAS file contains the set of available languages.
9973 if test -n "$ALL_LINGUAS"; then
9974 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9975 fi
9976 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9977 # Hide the ALL_LINGUAS assigment from automake.
9978 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9979 fi
9980 case "$ac_given_srcdir" in
9981 .) srcdirpre= ;;
9982 *) srcdirpre='$(srcdir)/' ;;
9983 esac
9984 POFILES=
9985 GMOFILES=
9986 UPDATEPOFILES=
9987 DUMMYPOFILES=
9988 for lang in $ALL_LINGUAS; do
9989 POFILES="$POFILES $srcdirpre$lang.po"
9990 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9991 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9992 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9993 done
9994 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9995 # environment variable.
9996 INST_LINGUAS=
9997 if test -n "$ALL_LINGUAS"; then
9998 for presentlang in $ALL_LINGUAS; do
9999 useit=no
10000 if test "%UNSET%" != "$LINGUAS"; then
10001 desiredlanguages="$LINGUAS"
10002 else
10003 desiredlanguages="$ALL_LINGUAS"
10004 fi
10005 for desiredlang in $desiredlanguages; do
10006 # Use the presentlang catalog if desiredlang is
10007 # a. equal to presentlang, or
10008 # b. a variant of presentlang (because in this case,
10009 # presentlang can be used as a fallback for messages
10010 # which are not translated in the desiredlang catalog).
10011 case "$desiredlang" in
10012 "$presentlang"*) useit=yes;;
10013 esac
10014 done
10015 if test $useit = yes; then
10016 INST_LINGUAS="$INST_LINGUAS $presentlang"
10017 fi
10018 done
10019 fi
10020 CATALOGS=
10021 if test -n "$INST_LINGUAS"; then
10022 for lang in $INST_LINGUAS; do
10023 CATALOGS="$CATALOGS $lang.gmo"
10024 done
10025 fi
10026 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10027 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10028 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10029 if test -f "$f"; then
10030 case "$f" in
10031 *.orig | *.bak | *~) ;;
10032 *) cat "$f" >> "$ac_dir/Makefile" ;;
10033 esac
10034 fi
10035 done
10036 fi
10037 ;;
10038 esac
10039 done ;;
10040 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10041 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10042 # are listed without --file. Let's play safe and only enable the eval
10043 # if we detect the quoting.
10044 case $CONFIG_FILES in
10045 *\'*) eval set x "$CONFIG_FILES" ;;
10046 *) set x $CONFIG_FILES ;;
10047 esac
10048 shift
10049 for mf
10050 do
10051 # Strip MF so we end up with the name of the file.
10052 mf=`echo "$mf" | sed -e 's/:.*$//'`
10053 # Check whether this is an Automake generated Makefile or not.
10054 # We used to match only the files named `Makefile.in', but
10055 # some people rename them; so instead we look at the file content.
10056 # Grep'ing the first line is not enough: some people post-process
10057 # each Makefile.in and add a new line on top of each file to say so.
10058 # Grep'ing the whole file is not good either: AIX grep has a line
10059 # limit of 2048, but all sed's we know have understand at least 4000.
10060 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10061 dirpart=`$as_dirname -- "$mf" ||
10062 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10063 X"$mf" : 'X\(//\)[^/]' \| \
10064 X"$mf" : 'X\(//\)$' \| \
10065 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10066 $as_echo X"$mf" |
10067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10068 s//\1/
10069 q
10070 }
10071 /^X\(\/\/\)[^/].*/{
10072 s//\1/
10073 q
10074 }
10075 /^X\(\/\/\)$/{
10076 s//\1/
10077 q
10078 }
10079 /^X\(\/\).*/{
10080 s//\1/
10081 q
10082 }
10083 s/.*/./; q'`
10084 else
10085 continue
10086 fi
10087 # Extract the definition of DEPDIR, am__include, and am__quote
10088 # from the Makefile without running `make'.
10089 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10090 test -z "$DEPDIR" && continue
10091 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10092 test -z "am__include" && continue
10093 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10094 # When using ansi2knr, U may be empty or an underscore; expand it
10095 U=`sed -n 's/^U = //p' < "$mf"`
10096 # Find all dependency output files, they are included files with
10097 # $(DEPDIR) in their names. We invoke sed twice because it is the
10098 # simplest approach to changing $(DEPDIR) to its actual value in the
10099 # expansion.
10100 for file in `sed -n "
10101 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10102 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10103 # Make sure the directory exists.
10104 test -f "$dirpart/$file" && continue
10105 fdir=`$as_dirname -- "$file" ||
10106 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10107 X"$file" : 'X\(//\)[^/]' \| \
10108 X"$file" : 'X\(//\)$' \| \
10109 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10110 $as_echo X"$file" |
10111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10112 s//\1/
10113 q
10114 }
10115 /^X\(\/\/\)[^/].*/{
10116 s//\1/
10117 q
10118 }
10119 /^X\(\/\/\)$/{
10120 s//\1/
10121 q
10122 }
10123 /^X\(\/\).*/{
10124 s//\1/
10125 q
10126 }
10127 s/.*/./; q'`
10128 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10129 # echo "creating $dirpart/$file"
10130 echo '# dummy' > "$dirpart/$file"
10131 done
10132 done
10133 }
10134 ;;
10135
10136 esac
10137 done # for ac_tag
10138
10139
10140 as_fn_exit 0
10141 _ACEOF
10142 ac_clean_files=$ac_clean_files_save
10143
10144 test $ac_write_fail = 0 ||
10145 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10146
10147
10148 # configure is writing to config.log, and then calls config.status.
10149 # config.status does its own redirection, appending to config.log.
10150 # Unfortunately, on DOS this fails, as config.log is still kept open
10151 # by configure, so config.status won't be able to write to it; its
10152 # output is simply discarded. So we exec the FD to /dev/null,
10153 # effectively closing config.log, so it can be properly (re)opened and
10154 # appended to by config.status. When coming back to configure, we
10155 # need to make the FD available again.
10156 if test "$no_create" != yes; then
10157 ac_cs_success=:
10158 ac_config_status_args=
10159 test "$silent" = yes &&
10160 ac_config_status_args="$ac_config_status_args --quiet"
10161 exec 5>/dev/null
10162 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10163 exec 5>>config.log
10164 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10165 # would make configure fail if this is the last instruction.
10166 $ac_cs_success || as_fn_exit 1
10167 fi
10168 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10170 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10171 fi
10172
10173
10174 echo
10175 echo "***"
10176 echo "*** Configuration Summary"
10177 echo "***"
10178 echo "*** Kernel Iface: $IFTYPE/$IFSUBTYPE"
10179 echo "*** Cipher used: $CIPHER"
10180 echo "*** Digest used: $DIGEST"
10181 echo "*** HMAC length: $HMAC"
10182 echo "*** RAND used: $RAND"
10183 echo "*** Max. MTU: $MTU"
10184
10185 echo "***"
10186 echo "*** Enable options:"
10187 grep ENABLE_ config.h | sed -e 's/^/*** /'
10188
10189 if test "x$DIGEST" = xmd4; then
10190 echo "***"
10191 echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure"
10192 fi
10193
10194 if test "$HMAC" -lt 12; then
10195 echo "***"
10196 echo "*** WARNING: The hmac length you have chosen ($HMAC) is probably insecure"
10197 fi
10198
10199 if test "$RAND" -lt 8; then
10200 echo "***"
10201 echo "*** WARNING: The random prefix you have chosen ($RAND) is probably insecure"
10202 fi
10203
10204 echo "***"
10205 echo
10206
10207