ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/configure
Revision: 1.48
Committed: Tue Jun 21 16:27:32 2011 UTC (12 years, 10 months ago) by root
Branch: MAIN
Changes since 1.47: +10 -10 lines
Log Message:
*** empty log message ***

File Contents

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