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