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