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