ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/configure
Revision: 1.41
Committed: Wed Sep 3 04:58:46 2008 UTC (15 years, 8 months ago) by pcg
Branch: MAIN
CVS Tags: rel-2_21
Changes since 1.40: +1 -1 lines
Log Message:
2.21

File Contents

# User Rev Content
1 pcg 1.1 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 pcg 1.33 # Generated by GNU Autoconf 2.61.
4 pcg 1.1 #
5 pcg 1.33 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6     # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 pcg 1.1 # This configure script is free software; the Free Software Foundation
8     # gives unlimited permission to copy, distribute and modify it.
9     ## --------------------- ##
10     ## M4sh Initialization. ##
11     ## --------------------- ##
12    
13 pcg 1.33 # Be more Bourne compatible
14     DUALCASE=1; export DUALCASE # for MKS sh
15 pcg 1.1 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16     emulate sh
17     NULLCMD=:
18     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19     # is contrary to our usage. Disable this feature.
20     alias -g '${1+"$@"}'='"$@"'
21 pcg 1.33 setopt NO_GLOB_SUBST
22     else
23     case `(set -o) 2>/dev/null` in
24     *posix*) set -o posix ;;
25     esac
26    
27     fi
28    
29    
30    
31    
32     # PATH needs CR
33     # Avoid depending upon Character Ranges.
34     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37     as_cr_digits='0123456789'
38     as_cr_alnum=$as_cr_Letters$as_cr_digits
39    
40     # The user is always right.
41     if test "${PATH_SEPARATOR+set}" != set; then
42     echo "#! /bin/sh" >conf$$.sh
43     echo "exit 0" >>conf$$.sh
44     chmod +x conf$$.sh
45     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47     else
48     PATH_SEPARATOR=:
49     fi
50     rm -f conf$$.sh
51 pcg 1.1 fi
52    
53     # Support unset when possible.
54 pcg 1.11 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 pcg 1.1 as_unset=unset
56     else
57     as_unset=false
58     fi
59    
60    
61 pcg 1.33 # IFS
62     # We need space, tab and new line, in precisely that order. Quoting is
63     # there to prevent editors from complaining about space-tab.
64     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65     # splitting by setting IFS to empty value.)
66     as_nl='
67     '
68     IFS=" "" $as_nl"
69    
70     # Find who we are. Look in the path if we contain no directory separator.
71     case $0 in
72     *[\\/]* ) as_myself=$0 ;;
73     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74     for as_dir in $PATH
75     do
76     IFS=$as_save_IFS
77     test -z "$as_dir" && as_dir=.
78     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79     done
80     IFS=$as_save_IFS
81    
82     ;;
83     esac
84     # We did not find ourselves, most probably we were run as `sh COMMAND'
85     # in which case we are not to be found in the path.
86     if test "x$as_myself" = x; then
87     as_myself=$0
88     fi
89     if test ! -f "$as_myself"; then
90     echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91     { (exit 1); exit 1; }
92     fi
93    
94 pcg 1.1 # Work around bugs in pre-3.0 UWIN ksh.
95 pcg 1.33 for as_var in ENV MAIL MAILPATH
96     do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97     done
98 pcg 1.1 PS1='$ '
99     PS2='> '
100     PS4='+ '
101    
102     # NLS nuisances.
103     for as_var in \
104     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106     LC_TELEPHONE LC_TIME
107     do
108 pcg 1.11 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 pcg 1.1 eval $as_var=C; export $as_var
110     else
111 pcg 1.33 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 pcg 1.1 fi
113     done
114    
115     # Required to use basename.
116 pcg 1.33 if expr a : '\(a\)' >/dev/null 2>&1 &&
117     test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 pcg 1.1 as_expr=expr
119     else
120     as_expr=false
121     fi
122    
123 pcg 1.33 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 pcg 1.1 as_basename=basename
125     else
126     as_basename=false
127     fi
128    
129    
130     # Name of the executable.
131 pcg 1.33 as_me=`$as_basename -- "$0" ||
132 pcg 1.1 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133     X"$0" : 'X\(//\)$' \| \
134 pcg 1.33 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 pcg 1.1 echo X/"$0" |
136 pcg 1.33 sed '/^.*\/\([^/][^/]*\)\/*$/{
137     s//\1/
138     q
139     }
140     /^X\/\(\/\/\)$/{
141     s//\1/
142     q
143     }
144     /^X\/\(\/\).*/{
145     s//\1/
146     q
147     }
148     s/.*/./; q'`
149    
150     # CDPATH.
151     $as_unset CDPATH
152    
153 pcg 1.1
154 pcg 1.33 if test "x$CONFIG_SHELL" = x; then
155     if (eval ":") 2>/dev/null; then
156     as_have_required=yes
157     else
158     as_have_required=no
159     fi
160    
161     if test $as_have_required = yes && (eval ":
162     (as_func_return () {
163     (exit \$1)
164     }
165     as_func_success () {
166     as_func_return 0
167     }
168     as_func_failure () {
169     as_func_return 1
170     }
171     as_func_ret_success () {
172     return 0
173     }
174     as_func_ret_failure () {
175     return 1
176     }
177 pcg 1.1
178 pcg 1.33 exitcode=0
179     if as_func_success; then
180     :
181     else
182     exitcode=1
183     echo as_func_success failed.
184     fi
185    
186     if as_func_failure; then
187     exitcode=1
188     echo as_func_failure succeeded.
189     fi
190    
191     if as_func_ret_success; then
192     :
193     else
194     exitcode=1
195     echo as_func_ret_success failed.
196     fi
197 pcg 1.1
198 pcg 1.33 if as_func_ret_failure; then
199     exitcode=1
200     echo as_func_ret_failure succeeded.
201 pcg 1.1 fi
202    
203 pcg 1.33 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204     :
205     else
206     exitcode=1
207     echo positional parameters were not saved.
208     fi
209 pcg 1.1
210 pcg 1.33 test \$exitcode = 0) || { (exit 1); exit 1; }
211 pcg 1.1
212 pcg 1.33 (
213     as_lineno_1=\$LINENO
214     as_lineno_2=\$LINENO
215     test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216     test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217     ") 2> /dev/null; then
218     :
219     else
220     as_candidate_shells=
221 pcg 1.1 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223     do
224     IFS=$as_save_IFS
225     test -z "$as_dir" && as_dir=.
226 pcg 1.33 case $as_dir in
227 pcg 1.1 /*)
228 pcg 1.33 for as_base in sh bash ksh sh5; do
229     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230     done;;
231     esac
232     done
233     IFS=$as_save_IFS
234    
235    
236     for as_shell in $as_candidate_shells $SHELL; do
237     # Try only shells that exist, to save several forks.
238     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239     { ("$as_shell") 2> /dev/null <<\_ASEOF
240     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241     emulate sh
242     NULLCMD=:
243     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244     # is contrary to our usage. Disable this feature.
245     alias -g '${1+"$@"}'='"$@"'
246     setopt NO_GLOB_SUBST
247     else
248     case `(set -o) 2>/dev/null` in
249     *posix*) set -o posix ;;
250     esac
251    
252     fi
253    
254    
255     :
256     _ASEOF
257     }; then
258     CONFIG_SHELL=$as_shell
259     as_have_required=yes
260     if { "$as_shell" 2> /dev/null <<\_ASEOF
261     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262     emulate sh
263     NULLCMD=:
264     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265     # is contrary to our usage. Disable this feature.
266     alias -g '${1+"$@"}'='"$@"'
267     setopt NO_GLOB_SUBST
268     else
269     case `(set -o) 2>/dev/null` in
270     *posix*) set -o posix ;;
271     esac
272    
273     fi
274    
275    
276     :
277     (as_func_return () {
278     (exit $1)
279     }
280     as_func_success () {
281     as_func_return 0
282     }
283     as_func_failure () {
284     as_func_return 1
285     }
286     as_func_ret_success () {
287     return 0
288     }
289     as_func_ret_failure () {
290     return 1
291     }
292    
293     exitcode=0
294     if as_func_success; then
295     :
296     else
297     exitcode=1
298     echo as_func_success failed.
299     fi
300    
301     if as_func_failure; then
302     exitcode=1
303     echo as_func_failure succeeded.
304     fi
305    
306     if as_func_ret_success; then
307     :
308     else
309     exitcode=1
310     echo as_func_ret_success failed.
311     fi
312    
313     if as_func_ret_failure; then
314     exitcode=1
315     echo as_func_ret_failure succeeded.
316     fi
317    
318     if ( set x; as_func_ret_success y && test x = "$1" ); then
319     :
320     else
321     exitcode=1
322     echo positional parameters were not saved.
323     fi
324    
325     test $exitcode = 0) || { (exit 1); exit 1; }
326    
327     (
328     as_lineno_1=$LINENO
329     as_lineno_2=$LINENO
330     test "x$as_lineno_1" != "x$as_lineno_2" &&
331     test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332    
333     _ASEOF
334     }; then
335     break
336     fi
337    
338     fi
339    
340     done
341    
342     if test "x$CONFIG_SHELL" != x; then
343     for as_var in BASH_ENV ENV
344     do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345     done
346     export CONFIG_SHELL
347     exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348     fi
349    
350    
351     if test $as_have_required = no; then
352     echo This script requires a shell more modern than all the
353     echo shells that I found on your system. Please install a
354     echo modern shell, or manually run the script under such a
355     echo shell if you do have one.
356     { (exit 1); exit 1; }
357     fi
358    
359    
360     fi
361    
362     fi
363    
364    
365    
366     (eval "as_func_return () {
367     (exit \$1)
368     }
369     as_func_success () {
370     as_func_return 0
371     }
372     as_func_failure () {
373     as_func_return 1
374     }
375     as_func_ret_success () {
376     return 0
377     }
378     as_func_ret_failure () {
379     return 1
380     }
381    
382     exitcode=0
383     if as_func_success; then
384     :
385     else
386     exitcode=1
387     echo as_func_success failed.
388     fi
389    
390     if as_func_failure; then
391     exitcode=1
392     echo as_func_failure succeeded.
393     fi
394    
395     if as_func_ret_success; then
396     :
397     else
398     exitcode=1
399     echo as_func_ret_success failed.
400     fi
401    
402     if as_func_ret_failure; then
403     exitcode=1
404     echo as_func_ret_failure succeeded.
405     fi
406    
407     if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408     :
409     else
410     exitcode=1
411     echo positional parameters were not saved.
412     fi
413    
414     test \$exitcode = 0") || {
415     echo No shell found that supports shell functions.
416     echo Please tell autoconf@gnu.org about your system,
417     echo including any error possibly output before this
418     echo message
419     }
420    
421    
422    
423 pcg 1.1 as_lineno_1=$LINENO
424     as_lineno_2=$LINENO
425     test "x$as_lineno_1" != "x$as_lineno_2" &&
426 pcg 1.33 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427 pcg 1.1
428     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429     # uniformly replaced by the line number. The first 'sed' inserts a
430 pcg 1.33 # line-number line after each line using $LINENO; the second 'sed'
431     # does the real work. The second script uses 'N' to pair each
432     # line-number line with the line containing $LINENO, and appends
433     # trailing '-' during substitution so that $LINENO is not a special
434     # case at line end.
435 pcg 1.1 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 pcg 1.33 # scripts with optimization help from Paolo Bonzini. Blame Lee
437     # E. McMahon (1931-1989) for sed's syntax. :-)
438     sed -n '
439     p
440     /[$]LINENO/=
441     ' <$as_myself |
442 pcg 1.1 sed '
443 pcg 1.33 s/[$]LINENO.*/&-/
444     t lineno
445     b
446     :lineno
447 pcg 1.1 N
448 pcg 1.33 :loop
449     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 pcg 1.1 t loop
451 pcg 1.33 s/-\n.*//
452 pcg 1.1 ' >$as_me.lineno &&
453 pcg 1.33 chmod +x "$as_me.lineno" ||
454 pcg 1.1 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455     { (exit 1); exit 1; }; }
456    
457     # Don't try to exec as it changes $[0], causing all sort of problems
458     # (the dirname of $[0] is not the place where we might find the
459 pcg 1.33 # original and so on. Autoconf is especially sensitive to this).
460     . "./$as_me.lineno"
461 pcg 1.1 # Exit status is that of the last command.
462     exit
463     }
464    
465    
466 pcg 1.33 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467     as_dirname=dirname
468     else
469     as_dirname=false
470     fi
471    
472     ECHO_C= ECHO_N= ECHO_T=
473     case `echo -n x` in
474     -n*)
475     case `echo 'x\c'` in
476     *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477     *) ECHO_C='\c';;
478     esac;;
479     *)
480     ECHO_N='-n';;
481 pcg 1.1 esac
482    
483 pcg 1.33 if expr a : '\(a\)' >/dev/null 2>&1 &&
484     test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 pcg 1.1 as_expr=expr
486     else
487     as_expr=false
488     fi
489    
490     rm -f conf$$ conf$$.exe conf$$.file
491 pcg 1.33 if test -d conf$$.dir; then
492     rm -f conf$$.dir/conf$$.file
493     else
494     rm -f conf$$.dir
495     mkdir conf$$.dir
496     fi
497 pcg 1.1 echo >conf$$.file
498     if ln -s conf$$.file conf$$ 2>/dev/null; then
499 pcg 1.33 as_ln_s='ln -s'
500     # ... but there are two gotchas:
501     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503     # In both cases, we have to default to `cp -p'.
504     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 pcg 1.1 as_ln_s='cp -p'
506     elif ln conf$$.file conf$$ 2>/dev/null; then
507     as_ln_s=ln
508     else
509     as_ln_s='cp -p'
510     fi
511 pcg 1.33 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512     rmdir conf$$.dir 2>/dev/null
513 pcg 1.1
514     if mkdir -p . 2>/dev/null; then
515     as_mkdir_p=:
516     else
517 pcg 1.11 test -d ./-p && rmdir ./-p
518 pcg 1.1 as_mkdir_p=false
519     fi
520    
521 pcg 1.33 if test -x / >/dev/null 2>&1; then
522     as_test_x='test -x'
523     else
524     if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526     else
527     as_ls_L_option=
528     fi
529     as_test_x='
530     eval sh -c '\''
531     if test -d "$1"; then
532     test -d "$1/.";
533     else
534     case $1 in
535     -*)set "./$1";;
536     esac;
537     case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538     ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540     '
541     fi
542     as_executable_p=$as_test_x
543 pcg 1.1
544     # Sed expression to map a string onto a valid CPP name.
545 pcg 1.11 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546 pcg 1.1
547     # Sed expression to map a string onto a valid variable name.
548 pcg 1.11 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549 pcg 1.1
550    
551    
552 pcg 1.33 exec 7<&0 </dev/null 6>&1
553 pcg 1.1
554     # Name of the host.
555     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556     # so uname gets run too.
557     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558    
559     #
560     # Initializations.
561     #
562     ac_default_prefix=/usr/local
563 pcg 1.33 ac_clean_files=
564 pcg 1.1 ac_config_libobj_dir=.
565 pcg 1.33 LIBOBJS=
566 pcg 1.1 cross_compiling=no
567     subdirs=
568     MFLAGS=
569     MAKEFLAGS=
570     SHELL=${CONFIG_SHELL-/bin/sh}
571    
572     # Identity of this package.
573     PACKAGE_NAME=
574     PACKAGE_TARNAME=
575     PACKAGE_VERSION=
576     PACKAGE_STRING=
577     PACKAGE_BUGREPORT=
578    
579 pcg 1.26 ac_unique_file="src/gvpe.C"
580 pcg 1.1 # Factoring default headers for most tests.
581     ac_includes_default="\
582     #include <stdio.h>
583 pcg 1.33 #ifdef HAVE_SYS_TYPES_H
584 pcg 1.1 # include <sys/types.h>
585     #endif
586 pcg 1.33 #ifdef HAVE_SYS_STAT_H
587 pcg 1.1 # include <sys/stat.h>
588     #endif
589 pcg 1.33 #ifdef STDC_HEADERS
590 pcg 1.1 # include <stdlib.h>
591     # include <stddef.h>
592     #else
593 pcg 1.33 # ifdef HAVE_STDLIB_H
594 pcg 1.1 # include <stdlib.h>
595     # endif
596     #endif
597 pcg 1.33 #ifdef HAVE_STRING_H
598     # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 pcg 1.1 # include <memory.h>
600     # endif
601     # include <string.h>
602     #endif
603 pcg 1.33 #ifdef HAVE_STRINGS_H
604 pcg 1.1 # include <strings.h>
605     #endif
606 pcg 1.33 #ifdef HAVE_INTTYPES_H
607 pcg 1.1 # include <inttypes.h>
608     #endif
609 pcg 1.33 #ifdef HAVE_STDINT_H
610     # include <stdint.h>
611     #endif
612     #ifdef HAVE_UNISTD_H
613 pcg 1.1 # include <unistd.h>
614     #endif"
615    
616 pcg 1.33 ac_subst_vars='SHELL
617     PATH_SEPARATOR
618     PACKAGE_NAME
619     PACKAGE_TARNAME
620     PACKAGE_VERSION
621     PACKAGE_STRING
622     PACKAGE_BUGREPORT
623     exec_prefix
624     prefix
625     program_transform_name
626     bindir
627     sbindir
628     libexecdir
629     datarootdir
630     datadir
631     sysconfdir
632     sharedstatedir
633     localstatedir
634     includedir
635     oldincludedir
636     docdir
637     infodir
638     htmldir
639     dvidir
640     pdfdir
641     psdir
642     libdir
643     localedir
644     mandir
645     DEFS
646     ECHO_C
647     ECHO_N
648     ECHO_T
649     LIBS
650     build_alias
651     host_alias
652     target_alias
653     build
654     build_cpu
655     build_vendor
656     build_os
657     host
658     host_cpu
659     host_vendor
660     host_os
661     target
662     target_cpu
663     target_vendor
664     target_os
665     INSTALL_PROGRAM
666     INSTALL_SCRIPT
667     INSTALL_DATA
668     CYGPATH_W
669     PACKAGE
670     VERSION
671     ACLOCAL
672     AUTOCONF
673     AUTOMAKE
674     AUTOHEADER
675     MAKEINFO
676     AMTAR
677     install_sh
678     STRIP
679     INSTALL_STRIP_PROGRAM
680     AWK
681     SET_MAKE
682     am__leading_dot
683     MAINTAINER_MODE_TRUE
684     MAINTAINER_MODE_FALSE
685     MAINT
686     MKINSTALLDIRS
687     MSGFMT
688     GMSGFMT
689     XGETTEXT
690     MSGMERGE
691     CC
692     CFLAGS
693     LDFLAGS
694     CPPFLAGS
695     ac_ct_CC
696     EXEEXT
697     OBJEXT
698     DEPDIR
699     am__include
700     am__quote
701     AMDEP_TRUE
702     AMDEP_FALSE
703     AMDEPBACKSLASH
704     CCDEPMODE
705     am__fastdepCC_TRUE
706     am__fastdepCC_FALSE
707     USE_NLS
708     LIBICONV
709     LTLIBICONV
710     INTLLIBS
711     LIBINTL
712     LTLIBINTL
713     POSUB
714     CPP
715     CXX
716     CXXFLAGS
717     ac_ct_CXX
718     CXXDEPMODE
719     am__fastdepCXX_TRUE
720     am__fastdepCXX_FALSE
721     GREP
722     EGREP
723     LN_S
724     RANLIB
725     IFTYPE
726     IFSUBTYPE
727     CXXCPP
728     ALLOCA
729     LINUX_IF_TUN_H
730     HAVE_TUNTAP
731     LDFLAGS_DAEMON
732     ROHC_TRUE
733     ROHC_FALSE
734     INCLUDES
735     LIBOBJS
736     LTLIBOBJS'
737 pcg 1.1 ac_subst_files=''
738 pcg 1.33 ac_precious_vars='build_alias
739     host_alias
740     target_alias
741     CC
742     CFLAGS
743     LDFLAGS
744     LIBS
745     CPPFLAGS
746     CPP
747     CXX
748     CXXFLAGS
749     CCC
750     CXXCPP'
751    
752 pcg 1.1
753     # Initialize some variables set by options.
754     ac_init_help=
755     ac_init_version=false
756     # The variables have the same names as the options, with
757     # dashes changed to underlines.
758     cache_file=/dev/null
759     exec_prefix=NONE
760     no_create=
761     no_recursion=
762     prefix=NONE
763     program_prefix=NONE
764     program_suffix=NONE
765     program_transform_name=s,x,x,
766     silent=
767     site=
768     srcdir=
769     verbose=
770     x_includes=NONE
771     x_libraries=NONE
772    
773     # Installation directory options.
774     # These are left unexpanded so users can "make install exec_prefix=/foo"
775     # and all the variables that are supposed to be based on exec_prefix
776     # by default will actually change.
777     # Use braces instead of parens because sh, perl, etc. also accept them.
778 pcg 1.33 # (The list follows the same order as the GNU Coding Standards.)
779 pcg 1.1 bindir='${exec_prefix}/bin'
780     sbindir='${exec_prefix}/sbin'
781     libexecdir='${exec_prefix}/libexec'
782 pcg 1.33 datarootdir='${prefix}/share'
783     datadir='${datarootdir}'
784 pcg 1.1 sysconfdir='${prefix}/etc'
785     sharedstatedir='${prefix}/com'
786     localstatedir='${prefix}/var'
787     includedir='${prefix}/include'
788     oldincludedir='/usr/include'
789 pcg 1.33 docdir='${datarootdir}/doc/${PACKAGE}'
790     infodir='${datarootdir}/info'
791     htmldir='${docdir}'
792     dvidir='${docdir}'
793     pdfdir='${docdir}'
794     psdir='${docdir}'
795     libdir='${exec_prefix}/lib'
796     localedir='${datarootdir}/locale'
797     mandir='${datarootdir}/man'
798 pcg 1.1
799     ac_prev=
800 pcg 1.33 ac_dashdash=
801 pcg 1.1 for ac_option
802     do
803     # If the previous option needs an argument, assign it.
804     if test -n "$ac_prev"; then
805 pcg 1.33 eval $ac_prev=\$ac_option
806 pcg 1.1 ac_prev=
807     continue
808     fi
809    
810 pcg 1.33 case $ac_option in
811     *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812     *) ac_optarg=yes ;;
813     esac
814 pcg 1.1
815     # Accept the important Cygnus configure options, so we can diagnose typos.
816    
817 pcg 1.33 case $ac_dashdash$ac_option in
818     --)
819     ac_dashdash=yes ;;
820 pcg 1.1
821     -bindir | --bindir | --bindi | --bind | --bin | --bi)
822     ac_prev=bindir ;;
823     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824     bindir=$ac_optarg ;;
825    
826     -build | --build | --buil | --bui | --bu)
827     ac_prev=build_alias ;;
828     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
829     build_alias=$ac_optarg ;;
830    
831     -cache-file | --cache-file | --cache-fil | --cache-fi \
832     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
833     ac_prev=cache_file ;;
834     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
835     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
836     cache_file=$ac_optarg ;;
837    
838     --config-cache | -C)
839     cache_file=config.cache ;;
840    
841 pcg 1.33 -datadir | --datadir | --datadi | --datad)
842 pcg 1.1 ac_prev=datadir ;;
843 pcg 1.33 -datadir=* | --datadir=* | --datadi=* | --datad=*)
844 pcg 1.1 datadir=$ac_optarg ;;
845    
846 pcg 1.33 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
847     | --dataroo | --dataro | --datar)
848     ac_prev=datarootdir ;;
849     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
850     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
851     datarootdir=$ac_optarg ;;
852    
853 pcg 1.1 -disable-* | --disable-*)
854     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855     # Reject names that are not valid shell variable names.
856 pcg 1.33 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
857 pcg 1.1 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
858     { (exit 1); exit 1; }; }
859 pcg 1.33 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
860     eval enable_$ac_feature=no ;;
861    
862     -docdir | --docdir | --docdi | --doc | --do)
863     ac_prev=docdir ;;
864     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
865     docdir=$ac_optarg ;;
866    
867     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
868     ac_prev=dvidir ;;
869     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
870     dvidir=$ac_optarg ;;
871 pcg 1.1
872     -enable-* | --enable-*)
873     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
874     # Reject names that are not valid shell variable names.
875 pcg 1.33 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
876 pcg 1.1 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
877     { (exit 1); exit 1; }; }
878 pcg 1.33 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
879     eval enable_$ac_feature=\$ac_optarg ;;
880 pcg 1.1
881     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
882     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
883     | --exec | --exe | --ex)
884     ac_prev=exec_prefix ;;
885     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
886     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
887     | --exec=* | --exe=* | --ex=*)
888     exec_prefix=$ac_optarg ;;
889    
890     -gas | --gas | --ga | --g)
891     # Obsolete; use --with-gas.
892     with_gas=yes ;;
893    
894     -help | --help | --hel | --he | -h)
895     ac_init_help=long ;;
896     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
897     ac_init_help=recursive ;;
898     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
899     ac_init_help=short ;;
900    
901     -host | --host | --hos | --ho)
902     ac_prev=host_alias ;;
903     -host=* | --host=* | --hos=* | --ho=*)
904     host_alias=$ac_optarg ;;
905    
906 pcg 1.33 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
907     ac_prev=htmldir ;;
908     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
909     | --ht=*)
910     htmldir=$ac_optarg ;;
911    
912 pcg 1.1 -includedir | --includedir | --includedi | --included | --include \
913     | --includ | --inclu | --incl | --inc)
914     ac_prev=includedir ;;
915     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
916     | --includ=* | --inclu=* | --incl=* | --inc=*)
917     includedir=$ac_optarg ;;
918    
919     -infodir | --infodir | --infodi | --infod | --info | --inf)
920     ac_prev=infodir ;;
921     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
922     infodir=$ac_optarg ;;
923    
924     -libdir | --libdir | --libdi | --libd)
925     ac_prev=libdir ;;
926     -libdir=* | --libdir=* | --libdi=* | --libd=*)
927     libdir=$ac_optarg ;;
928    
929     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
930     | --libexe | --libex | --libe)
931     ac_prev=libexecdir ;;
932     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
933     | --libexe=* | --libex=* | --libe=*)
934     libexecdir=$ac_optarg ;;
935    
936 pcg 1.33 -localedir | --localedir | --localedi | --localed | --locale)
937     ac_prev=localedir ;;
938     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
939     localedir=$ac_optarg ;;
940    
941 pcg 1.1 -localstatedir | --localstatedir | --localstatedi | --localstated \
942 pcg 1.33 | --localstate | --localstat | --localsta | --localst | --locals)
943 pcg 1.1 ac_prev=localstatedir ;;
944     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
945 pcg 1.33 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
946 pcg 1.1 localstatedir=$ac_optarg ;;
947    
948     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
949     ac_prev=mandir ;;
950     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
951     mandir=$ac_optarg ;;
952    
953     -nfp | --nfp | --nf)
954     # Obsolete; use --without-fp.
955     with_fp=no ;;
956    
957     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
958     | --no-cr | --no-c | -n)
959     no_create=yes ;;
960    
961     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
962     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
963     no_recursion=yes ;;
964    
965     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
966     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
967     | --oldin | --oldi | --old | --ol | --o)
968     ac_prev=oldincludedir ;;
969     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
970     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
971     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
972     oldincludedir=$ac_optarg ;;
973    
974     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
975     ac_prev=prefix ;;
976     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
977     prefix=$ac_optarg ;;
978    
979     -program-prefix | --program-prefix | --program-prefi | --program-pref \
980     | --program-pre | --program-pr | --program-p)
981     ac_prev=program_prefix ;;
982     -program-prefix=* | --program-prefix=* | --program-prefi=* \
983     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
984     program_prefix=$ac_optarg ;;
985    
986     -program-suffix | --program-suffix | --program-suffi | --program-suff \
987     | --program-suf | --program-su | --program-s)
988     ac_prev=program_suffix ;;
989     -program-suffix=* | --program-suffix=* | --program-suffi=* \
990     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
991     program_suffix=$ac_optarg ;;
992    
993     -program-transform-name | --program-transform-name \
994     | --program-transform-nam | --program-transform-na \
995     | --program-transform-n | --program-transform- \
996     | --program-transform | --program-transfor \
997     | --program-transfo | --program-transf \
998     | --program-trans | --program-tran \
999     | --progr-tra | --program-tr | --program-t)
1000     ac_prev=program_transform_name ;;
1001     -program-transform-name=* | --program-transform-name=* \
1002     | --program-transform-nam=* | --program-transform-na=* \
1003     | --program-transform-n=* | --program-transform-=* \
1004     | --program-transform=* | --program-transfor=* \
1005     | --program-transfo=* | --program-transf=* \
1006     | --program-trans=* | --program-tran=* \
1007     | --progr-tra=* | --program-tr=* | --program-t=*)
1008     program_transform_name=$ac_optarg ;;
1009    
1010 pcg 1.33 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1011     ac_prev=pdfdir ;;
1012     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1013     pdfdir=$ac_optarg ;;
1014    
1015     -psdir | --psdir | --psdi | --psd | --ps)
1016     ac_prev=psdir ;;
1017     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1018     psdir=$ac_optarg ;;
1019    
1020 pcg 1.1 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021     | -silent | --silent | --silen | --sile | --sil)
1022     silent=yes ;;
1023    
1024     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1025     ac_prev=sbindir ;;
1026     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1027     | --sbi=* | --sb=*)
1028     sbindir=$ac_optarg ;;
1029    
1030     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1031     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1032     | --sharedst | --shareds | --shared | --share | --shar \
1033     | --sha | --sh)
1034     ac_prev=sharedstatedir ;;
1035     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1036     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1037     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1038     | --sha=* | --sh=*)
1039     sharedstatedir=$ac_optarg ;;
1040    
1041     -site | --site | --sit)
1042     ac_prev=site ;;
1043     -site=* | --site=* | --sit=*)
1044     site=$ac_optarg ;;
1045    
1046     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1047     ac_prev=srcdir ;;
1048     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1049     srcdir=$ac_optarg ;;
1050    
1051     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1052     | --syscon | --sysco | --sysc | --sys | --sy)
1053     ac_prev=sysconfdir ;;
1054     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1055     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1056     sysconfdir=$ac_optarg ;;
1057    
1058     -target | --target | --targe | --targ | --tar | --ta | --t)
1059     ac_prev=target_alias ;;
1060     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1061     target_alias=$ac_optarg ;;
1062    
1063     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1064     verbose=yes ;;
1065    
1066     -version | --version | --versio | --versi | --vers | -V)
1067     ac_init_version=: ;;
1068    
1069     -with-* | --with-*)
1070     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1071     # Reject names that are not valid shell variable names.
1072 pcg 1.33 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073 pcg 1.1 { echo "$as_me: error: invalid package name: $ac_package" >&2
1074     { (exit 1); exit 1; }; }
1075 pcg 1.33 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1076     eval with_$ac_package=\$ac_optarg ;;
1077 pcg 1.1
1078     -without-* | --without-*)
1079     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1080     # Reject names that are not valid shell variable names.
1081 pcg 1.33 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1082 pcg 1.1 { echo "$as_me: error: invalid package name: $ac_package" >&2
1083     { (exit 1); exit 1; }; }
1084 pcg 1.33 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1085     eval with_$ac_package=no ;;
1086 pcg 1.1
1087     --x)
1088     # Obsolete; use --with-x.
1089     with_x=yes ;;
1090    
1091     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1092     | --x-incl | --x-inc | --x-in | --x-i)
1093     ac_prev=x_includes ;;
1094     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1095     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1096     x_includes=$ac_optarg ;;
1097    
1098     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1099     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1100     ac_prev=x_libraries ;;
1101     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1102     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1103     x_libraries=$ac_optarg ;;
1104    
1105     -*) { echo "$as_me: error: unrecognized option: $ac_option
1106     Try \`$0 --help' for more information." >&2
1107     { (exit 1); exit 1; }; }
1108     ;;
1109    
1110     *=*)
1111     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1112     # Reject names that are not valid shell variable names.
1113     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1114     { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1115     { (exit 1); exit 1; }; }
1116 pcg 1.33 eval $ac_envvar=\$ac_optarg
1117 pcg 1.1 export $ac_envvar ;;
1118    
1119     *)
1120     # FIXME: should be removed in autoconf 3.0.
1121     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1122     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1123     echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1124     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125     ;;
1126    
1127     esac
1128     done
1129    
1130     if test -n "$ac_prev"; then
1131     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1132     { echo "$as_me: error: missing argument to $ac_option" >&2
1133     { (exit 1); exit 1; }; }
1134     fi
1135    
1136 pcg 1.33 # Be sure to have absolute directory names.
1137     for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1138     datadir sysconfdir sharedstatedir localstatedir includedir \
1139     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1140     libdir localedir mandir
1141 pcg 1.1 do
1142 pcg 1.33 eval ac_val=\$$ac_var
1143 pcg 1.1 case $ac_val in
1144 pcg 1.33 [\\/$]* | ?:[\\/]* ) continue;;
1145     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1146 pcg 1.1 esac
1147 pcg 1.33 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1148     { (exit 1); exit 1; }; }
1149 pcg 1.1 done
1150    
1151     # There might be people who depend on the old broken behavior: `$host'
1152     # used to hold the argument of --host etc.
1153     # FIXME: To remove some day.
1154     build=$build_alias
1155     host=$host_alias
1156     target=$target_alias
1157    
1158     # FIXME: To remove some day.
1159     if test "x$host_alias" != x; then
1160     if test "x$build_alias" = x; then
1161     cross_compiling=maybe
1162     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1163     If a cross compiler is detected then cross compile mode will be used." >&2
1164     elif test "x$build_alias" != "x$host_alias"; then
1165     cross_compiling=yes
1166     fi
1167     fi
1168    
1169     ac_tool_prefix=
1170     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1171    
1172     test "$silent" = yes && exec 6>/dev/null
1173    
1174    
1175 pcg 1.33 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1176     ac_ls_di=`ls -di .` &&
1177     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1178     { echo "$as_me: error: Working directory cannot be determined" >&2
1179     { (exit 1); exit 1; }; }
1180     test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1181     { echo "$as_me: error: pwd does not report name of working directory" >&2
1182     { (exit 1); exit 1; }; }
1183    
1184    
1185 pcg 1.1 # Find the source files, if location was not specified.
1186     if test -z "$srcdir"; then
1187     ac_srcdir_defaulted=yes
1188 pcg 1.33 # Try the directory containing this script, then the parent directory.
1189     ac_confdir=`$as_dirname -- "$0" ||
1190 pcg 1.1 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1191 pcg 1.11 X"$0" : 'X\(//\)[^/]' \| \
1192     X"$0" : 'X\(//\)$' \| \
1193 pcg 1.33 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1194 pcg 1.1 echo X"$0" |
1195 pcg 1.33 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1196     s//\1/
1197     q
1198     }
1199     /^X\(\/\/\)[^/].*/{
1200     s//\1/
1201     q
1202     }
1203     /^X\(\/\/\)$/{
1204     s//\1/
1205     q
1206     }
1207     /^X\(\/\).*/{
1208     s//\1/
1209     q
1210     }
1211     s/.*/./; q'`
1212 pcg 1.1 srcdir=$ac_confdir
1213 pcg 1.33 if test ! -r "$srcdir/$ac_unique_file"; then
1214 pcg 1.1 srcdir=..
1215     fi
1216     else
1217     ac_srcdir_defaulted=no
1218     fi
1219 pcg 1.33 if test ! -r "$srcdir/$ac_unique_file"; then
1220     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1221     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1222     { (exit 1); exit 1; }; }
1223     fi
1224     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1225     ac_abs_confdir=`(
1226     cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1227     { (exit 1); exit 1; }; }
1228     pwd)`
1229     # When building in place, set srcdir=.
1230     if test "$ac_abs_confdir" = "$ac_pwd"; then
1231     srcdir=.
1232     fi
1233     # Remove unnecessary trailing slashes from srcdir.
1234     # Double slashes in file names in object file debugging info
1235     # mess up M-x gdb in Emacs.
1236     case $srcdir in
1237     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1238     esac
1239     for ac_var in $ac_precious_vars; do
1240     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1241     eval ac_env_${ac_var}_value=\$${ac_var}
1242     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1243     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1244     done
1245    
1246 pcg 1.1 #
1247     # Report the --help message.
1248     #
1249     if test "$ac_init_help" = "long"; then
1250     # Omit some internal or obsolete options to make the list less imposing.
1251     # This message is too long to be a string in the A/UX 3.1 sh.
1252     cat <<_ACEOF
1253     \`configure' configures this package to adapt to many kinds of systems.
1254    
1255     Usage: $0 [OPTION]... [VAR=VALUE]...
1256    
1257     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1258     VAR=VALUE. See below for descriptions of some of the useful variables.
1259    
1260     Defaults for the options are specified in brackets.
1261    
1262     Configuration:
1263     -h, --help display this help and exit
1264     --help=short display options specific to this package
1265     --help=recursive display the short help of all the included packages
1266     -V, --version display version information and exit
1267     -q, --quiet, --silent do not print \`checking...' messages
1268     --cache-file=FILE cache test results in FILE [disabled]
1269     -C, --config-cache alias for \`--cache-file=config.cache'
1270     -n, --no-create do not create output files
1271     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1272    
1273     Installation directories:
1274     --prefix=PREFIX install architecture-independent files in PREFIX
1275 pcg 1.11 [$ac_default_prefix]
1276 pcg 1.1 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 pcg 1.11 [PREFIX]
1278 pcg 1.1
1279     By default, \`make install' will install all the files in
1280     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1281     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1282     for instance \`--prefix=\$HOME'.
1283    
1284     For better control, use the options below.
1285    
1286     Fine tuning of the installation directories:
1287     --bindir=DIR user executables [EPREFIX/bin]
1288     --sbindir=DIR system admin executables [EPREFIX/sbin]
1289     --libexecdir=DIR program executables [EPREFIX/libexec]
1290     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1291     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1292     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1293     --libdir=DIR object code libraries [EPREFIX/lib]
1294     --includedir=DIR C header files [PREFIX/include]
1295     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1296 pcg 1.33 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1297     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1298     --infodir=DIR info documentation [DATAROOTDIR/info]
1299     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1300     --mandir=DIR man documentation [DATAROOTDIR/man]
1301     --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1302     --htmldir=DIR html documentation [DOCDIR]
1303     --dvidir=DIR dvi documentation [DOCDIR]
1304     --pdfdir=DIR pdf documentation [DOCDIR]
1305     --psdir=DIR ps documentation [DOCDIR]
1306 pcg 1.1 _ACEOF
1307    
1308     cat <<\_ACEOF
1309    
1310     Program names:
1311     --program-prefix=PREFIX prepend PREFIX to installed program names
1312     --program-suffix=SUFFIX append SUFFIX to installed program names
1313     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1314    
1315     System types:
1316     --build=BUILD configure for building on BUILD [guessed]
1317     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1318     --target=TARGET configure for building compilers for TARGET [HOST]
1319     _ACEOF
1320     fi
1321    
1322     if test -n "$ac_init_help"; then
1323    
1324     cat <<\_ACEOF
1325    
1326     Optional Features:
1327     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1328     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1329 pcg 1.33 --enable-maintainer-mode enable make rules and dependencies not useful
1330     (and sometimes confusing) to the casual installer
1331     --disable-dependency-tracking Speeds up one-time builds
1332     --enable-dependency-tracking Do not reject slow dependency extractors
1333 pcg 1.1 --disable-rpath do not hardcode runtime library paths
1334     --disable-nls do not use Native Language Support
1335     --enable-iftype=TYPE/SUBTYPE
1336 pcg 1.14 Use kernel/net device interface TYPE/SUBTYPE.
1337 pcg 1.28 Working combinations are (see doc/gvpe.osdep.5.pod):
1338     "native/linux" "tincd/linux" "tincd/netbsd"
1339     "tincd/freebsd" "tincd/openbsd" "native/darwin"
1340 pcg 1.14 "tincd/darwin" "native/cygwin"; Untested
1341 pcg 1.29 combinations are: "tincd/bsd" "tincd/solaris"
1342     "tincd/mingw" "tincd/raw_socket" "tincd/uml_socket";
1343     Broken combinations are: "tincd/cygwin"; The default
1344     is to autodetect.
1345 pcg 1.21 --enable-static-daemon enable statically linked daemon.
1346 pcg 1.14 --enable-icmp enable icmp protocol support (default disabled).
1347     --enable-tcp enable tcp protocol support (default disabled).
1348 pcg 1.17 --enable-dns enable dns tunnel protocol support (DOES NOT WORK).
1349 pcg 1.14 --enable-http-proxy enable http proxy connect support (default
1350     disabled).
1351 pcg 1.1 --enable-hmac-length=BYTES
1352 pcg 1.21 use a hmac of length BYTES bytes (default 12).
1353     Allowed values are 4, 8, 12, 16.
1354 pcg 1.1 --enable-rand-length=BYTES
1355 pcg 1.21 use BYTES bytes of extra randomness (default 8).
1356     Allowed values are 0, 4, 8.
1357 pcg 1.14 --enable-max-mtu=BYTES enable mtu sizes upto BYTES bytes (default 1500).
1358 pcg 1.1 Use 9100 for jumbogram support.
1359 pcg 1.14 --disable-compression Disable compression support.
1360 pcg 1.30 --enable-cipher Select the symmetric cipher (default "aes-128").
1361     Must be one of "bf" (blowfish), "aes-128"
1362     (rijndael), "aes-192" or "aes-256".
1363 pcg 1.33 --enable-digest Select the digest algorithm to use (default
1364     "ripemd160"). Must be one of "sha512", "sha256",
1365     "sha1", "ripemd160", "md5" or "md4" (insecure).
1366 pcg 1.1
1367     Optional Packages:
1368     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1369     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1370     --with-gnu-ld assume the C compiler uses GNU ld default=no
1371     --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1372     --without-libiconv-prefix don't search for libiconv in includedir and libdir
1373     --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1374     --without-libintl-prefix don't search for libintl in includedir and libdir
1375     --with-kernel=dir give the directory with kernel sources
1376     (default: /usr/src/linux)
1377     --with-openssl-include=DIR OpenSSL headers directory (without trailing /openssl)
1378     --with-openssl-lib=DIR OpenSSL library directory
1379    
1380     Some influential environment variables:
1381 pcg 1.14 CC C compiler command
1382     CFLAGS C compiler flags
1383     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1384     nonstandard directory <lib dir>
1385 pcg 1.33 LIBS libraries to pass to the linker, e.g. -l<library>
1386     CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1387     you have headers in a nonstandard directory <include dir>
1388 pcg 1.14 CPP C preprocessor
1389     CXX C++ compiler command
1390     CXXFLAGS C++ compiler flags
1391     CXXCPP C++ preprocessor
1392 pcg 1.1
1393     Use these variables to override the choices made by `configure' or to help
1394     it to find libraries and programs with nonstandard names/locations.
1395    
1396     _ACEOF
1397 pcg 1.33 ac_status=$?
1398 pcg 1.1 fi
1399    
1400     if test "$ac_init_help" = "recursive"; then
1401     # If there are subdirs, report their specific --help.
1402     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1403 pcg 1.33 test -d "$ac_dir" || continue
1404 pcg 1.1 ac_builddir=.
1405    
1406 pcg 1.33 case "$ac_dir" in
1407     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1408     *)
1409 pcg 1.1 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1410 pcg 1.33 # A ".." for each directory in $ac_dir_suffix.
1411     ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1412     case $ac_top_builddir_sub in
1413     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1415     esac ;;
1416     esac
1417     ac_abs_top_builddir=$ac_pwd
1418     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1419     # for backward compatibility:
1420     ac_top_builddir=$ac_top_build_prefix
1421 pcg 1.1
1422     case $srcdir in
1423 pcg 1.33 .) # We are building in place.
1424 pcg 1.1 ac_srcdir=.
1425 pcg 1.33 ac_top_srcdir=$ac_top_builddir_sub
1426     ac_abs_top_srcdir=$ac_pwd ;;
1427     [\\/]* | ?:[\\/]* ) # Absolute name.
1428 pcg 1.1 ac_srcdir=$srcdir$ac_dir_suffix;
1429 pcg 1.33 ac_top_srcdir=$srcdir
1430     ac_abs_top_srcdir=$srcdir ;;
1431     *) # Relative name.
1432     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1433     ac_top_srcdir=$ac_top_build_prefix$srcdir
1434     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1435 pcg 1.11 esac
1436 pcg 1.33 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1437 pcg 1.1
1438 pcg 1.33 cd "$ac_dir" || { ac_status=$?; continue; }
1439     # Check for guested configure.
1440     if test -f "$ac_srcdir/configure.gnu"; then
1441     echo &&
1442     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1443     elif test -f "$ac_srcdir/configure"; then
1444     echo &&
1445     $SHELL "$ac_srcdir/configure" --help=recursive
1446 pcg 1.1 else
1447     echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1448 pcg 1.33 fi || ac_status=$?
1449     cd "$ac_pwd" || { ac_status=$?; break; }
1450 pcg 1.1 done
1451     fi
1452    
1453 pcg 1.33 test -n "$ac_init_help" && exit $ac_status
1454 pcg 1.1 if $ac_init_version; then
1455     cat <<\_ACEOF
1456 pcg 1.33 configure
1457     generated by GNU Autoconf 2.61
1458 pcg 1.1
1459 pcg 1.33 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1460     2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1461 pcg 1.1 This configure script is free software; the Free Software Foundation
1462     gives unlimited permission to copy, distribute and modify it.
1463     _ACEOF
1464 pcg 1.33 exit
1465 pcg 1.1 fi
1466 pcg 1.33 cat >config.log <<_ACEOF
1467 pcg 1.1 This file contains any messages produced by compilers while
1468     running configure, to aid debugging if configure makes a mistake.
1469    
1470     It was created by $as_me, which was
1471 pcg 1.33 generated by GNU Autoconf 2.61. Invocation command line was
1472 pcg 1.1
1473     $ $0 $@
1474    
1475     _ACEOF
1476 pcg 1.33 exec 5>>config.log
1477 pcg 1.1 {
1478     cat <<_ASUNAME
1479     ## --------- ##
1480     ## Platform. ##
1481     ## --------- ##
1482    
1483     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1484     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1485     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1486     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1487     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1488    
1489     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1490     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1491    
1492     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1493     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1494     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1495 pcg 1.33 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1496 pcg 1.1 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1497     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1498     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1499    
1500     _ASUNAME
1501    
1502     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503     for as_dir in $PATH
1504     do
1505     IFS=$as_save_IFS
1506     test -z "$as_dir" && as_dir=.
1507     echo "PATH: $as_dir"
1508     done
1509 pcg 1.33 IFS=$as_save_IFS
1510 pcg 1.1
1511     } >&5
1512    
1513     cat >&5 <<_ACEOF
1514    
1515    
1516     ## ----------- ##
1517     ## Core tests. ##
1518     ## ----------- ##
1519    
1520     _ACEOF
1521    
1522    
1523     # Keep a trace of the command line.
1524     # Strip out --no-create and --no-recursion so they do not pile up.
1525     # Strip out --silent because we don't want to record it for future runs.
1526     # Also quote any args containing shell meta-characters.
1527     # Make two passes to allow for proper duplicate-argument suppression.
1528     ac_configure_args=
1529     ac_configure_args0=
1530     ac_configure_args1=
1531     ac_must_keep_next=false
1532     for ac_pass in 1 2
1533     do
1534     for ac_arg
1535     do
1536     case $ac_arg in
1537     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1538     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1539     | -silent | --silent | --silen | --sile | --sil)
1540     continue ;;
1541 pcg 1.33 *\'*)
1542 pcg 1.1 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1543     esac
1544     case $ac_pass in
1545     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1546     2)
1547     ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1548     if test $ac_must_keep_next = true; then
1549 pcg 1.11 ac_must_keep_next=false # Got value, back to normal.
1550 pcg 1.1 else
1551 pcg 1.11 case $ac_arg in
1552     *=* | --config-cache | -C | -disable-* | --disable-* \
1553     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1554     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1555     | -with-* | --with-* | -without-* | --without-* | --x)
1556     case "$ac_configure_args0 " in
1557     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1558     esac
1559     ;;
1560     -* ) ac_must_keep_next=true ;;
1561     esac
1562 pcg 1.1 fi
1563 pcg 1.33 ac_configure_args="$ac_configure_args '$ac_arg'"
1564 pcg 1.1 ;;
1565     esac
1566     done
1567     done
1568     $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1569     $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1570    
1571     # When interrupted or exit'd, cleanup temporary files, and complete
1572     # config.log. We remove comments because anyway the quotes in there
1573     # would cause problems or look ugly.
1574 pcg 1.33 # WARNING: Use '\'' to represent an apostrophe within the trap.
1575     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1576 pcg 1.1 trap 'exit_status=$?
1577     # Save into config.log some information that might help in debugging.
1578     {
1579     echo
1580    
1581     cat <<\_ASBOX
1582     ## ---------------- ##
1583     ## Cache variables. ##
1584     ## ---------------- ##
1585     _ASBOX
1586     echo
1587     # The following way of writing the cache mishandles newlines in values,
1588 pcg 1.33 (
1589     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1590     eval ac_val=\$$ac_var
1591     case $ac_val in #(
1592     *${as_nl}*)
1593     case $ac_var in #(
1594     *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1595     echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1596     esac
1597     case $ac_var in #(
1598     _ | IFS | as_nl) ;; #(
1599     *) $as_unset $ac_var ;;
1600     esac ;;
1601     esac
1602     done
1603 pcg 1.1 (set) 2>&1 |
1604 pcg 1.33 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1605     *${as_nl}ac_space=\ *)
1606 pcg 1.1 sed -n \
1607 pcg 1.33 "s/'\''/'\''\\\\'\'''\''/g;
1608     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1609     ;; #(
1610 pcg 1.1 *)
1611 pcg 1.33 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1612 pcg 1.1 ;;
1613 pcg 1.33 esac |
1614     sort
1615     )
1616 pcg 1.1 echo
1617    
1618     cat <<\_ASBOX
1619     ## ----------------- ##
1620     ## Output variables. ##
1621     ## ----------------- ##
1622     _ASBOX
1623     echo
1624     for ac_var in $ac_subst_vars
1625     do
1626 pcg 1.33 eval ac_val=\$$ac_var
1627     case $ac_val in
1628     *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1629     esac
1630     echo "$ac_var='\''$ac_val'\''"
1631 pcg 1.1 done | sort
1632     echo
1633    
1634     if test -n "$ac_subst_files"; then
1635     cat <<\_ASBOX
1636 pcg 1.33 ## ------------------- ##
1637     ## File substitutions. ##
1638     ## ------------------- ##
1639 pcg 1.1 _ASBOX
1640     echo
1641     for ac_var in $ac_subst_files
1642     do
1643 pcg 1.33 eval ac_val=\$$ac_var
1644     case $ac_val in
1645     *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1646     esac
1647     echo "$ac_var='\''$ac_val'\''"
1648 pcg 1.1 done | sort
1649     echo
1650     fi
1651    
1652     if test -s confdefs.h; then
1653     cat <<\_ASBOX
1654     ## ----------- ##
1655     ## confdefs.h. ##
1656     ## ----------- ##
1657     _ASBOX
1658     echo
1659 pcg 1.33 cat confdefs.h
1660 pcg 1.1 echo
1661     fi
1662     test "$ac_signal" != 0 &&
1663     echo "$as_me: caught signal $ac_signal"
1664     echo "$as_me: exit $exit_status"
1665     } >&5
1666 pcg 1.33 rm -f core *.core core.conftest.* &&
1667     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1668 pcg 1.1 exit $exit_status
1669 pcg 1.33 ' 0
1670 pcg 1.1 for ac_signal in 1 2 13 15; do
1671     trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1672     done
1673     ac_signal=0
1674    
1675     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1676 pcg 1.33 rm -f -r conftest* confdefs.h
1677 pcg 1.1
1678     # Predefined preprocessor variables.
1679    
1680     cat >>confdefs.h <<_ACEOF
1681     #define PACKAGE_NAME "$PACKAGE_NAME"
1682     _ACEOF
1683    
1684    
1685     cat >>confdefs.h <<_ACEOF
1686     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1687     _ACEOF
1688    
1689    
1690     cat >>confdefs.h <<_ACEOF
1691     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1692     _ACEOF
1693    
1694    
1695     cat >>confdefs.h <<_ACEOF
1696     #define PACKAGE_STRING "$PACKAGE_STRING"
1697     _ACEOF
1698    
1699    
1700     cat >>confdefs.h <<_ACEOF
1701     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1702     _ACEOF
1703    
1704    
1705     # Let the site file select an alternate cache file if it wants to.
1706     # Prefer explicitly selected file to automatically selected ones.
1707 pcg 1.33 if test -n "$CONFIG_SITE"; then
1708     set x "$CONFIG_SITE"
1709     elif test "x$prefix" != xNONE; then
1710     set x "$prefix/share/config.site" "$prefix/etc/config.site"
1711     else
1712     set x "$ac_default_prefix/share/config.site" \
1713     "$ac_default_prefix/etc/config.site"
1714 pcg 1.1 fi
1715 pcg 1.33 shift
1716     for ac_site_file
1717     do
1718 pcg 1.1 if test -r "$ac_site_file"; then
1719     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1720     echo "$as_me: loading site script $ac_site_file" >&6;}
1721     sed 's/^/| /' "$ac_site_file" >&5
1722     . "$ac_site_file"
1723     fi
1724     done
1725    
1726     if test -r "$cache_file"; then
1727     # Some versions of bash will fail to source /dev/null (special
1728     # files actually), so we avoid doing that.
1729     if test -f "$cache_file"; then
1730     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1731     echo "$as_me: loading cache $cache_file" >&6;}
1732     case $cache_file in
1733 pcg 1.33 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1734     *) . "./$cache_file";;
1735 pcg 1.1 esac
1736     fi
1737     else
1738     { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1739     echo "$as_me: creating cache $cache_file" >&6;}
1740     >$cache_file
1741     fi
1742    
1743     # Check that the precious variables saved in the cache have kept the same
1744     # value.
1745     ac_cache_corrupted=false
1746 pcg 1.33 for ac_var in $ac_precious_vars; do
1747 pcg 1.1 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1748     eval ac_new_set=\$ac_env_${ac_var}_set
1749 pcg 1.33 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1750     eval ac_new_val=\$ac_env_${ac_var}_value
1751 pcg 1.1 case $ac_old_set,$ac_new_set in
1752     set,)
1753     { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1754     echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1755     ac_cache_corrupted=: ;;
1756     ,set)
1757     { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1758     echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1759     ac_cache_corrupted=: ;;
1760     ,);;
1761     *)
1762     if test "x$ac_old_val" != "x$ac_new_val"; then
1763 pcg 1.11 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1764 pcg 1.1 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1765 pcg 1.11 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1766 pcg 1.1 echo "$as_me: former value: $ac_old_val" >&2;}
1767 pcg 1.11 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1768 pcg 1.1 echo "$as_me: current value: $ac_new_val" >&2;}
1769 pcg 1.11 ac_cache_corrupted=:
1770 pcg 1.1 fi;;
1771     esac
1772     # Pass precious variables to config.status.
1773     if test "$ac_new_set" = set; then
1774     case $ac_new_val in
1775 pcg 1.33 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1776 pcg 1.1 *) ac_arg=$ac_var=$ac_new_val ;;
1777     esac
1778     case " $ac_configure_args " in
1779     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1780     *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1781     esac
1782     fi
1783     done
1784     if $ac_cache_corrupted; then
1785     { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1786     echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1787     { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1788     echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1789     { (exit 1); exit 1; }; }
1790     fi
1791    
1792    
1793    
1794    
1795    
1796    
1797    
1798    
1799    
1800    
1801    
1802    
1803    
1804    
1805    
1806    
1807    
1808 pcg 1.33 ac_ext=c
1809     ac_cpp='$CPP $CPPFLAGS'
1810     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1811     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1812     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1813 pcg 1.1
1814    
1815 pcg 1.19
1816 pcg 1.1 ac_aux_dir=
1817 pcg 1.33 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1818     if test -f "$ac_dir/install-sh"; then
1819 pcg 1.1 ac_aux_dir=$ac_dir
1820     ac_install_sh="$ac_aux_dir/install-sh -c"
1821     break
1822 pcg 1.33 elif test -f "$ac_dir/install.sh"; then
1823 pcg 1.1 ac_aux_dir=$ac_dir
1824     ac_install_sh="$ac_aux_dir/install.sh -c"
1825     break
1826 pcg 1.33 elif test -f "$ac_dir/shtool"; then
1827 pcg 1.1 ac_aux_dir=$ac_dir
1828     ac_install_sh="$ac_aux_dir/shtool install -c"
1829     break
1830     fi
1831     done
1832     if test -z "$ac_aux_dir"; then
1833 pcg 1.33 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1834     echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1835 pcg 1.1 { (exit 1); exit 1; }; }
1836     fi
1837 pcg 1.33
1838     # These three variables are undocumented and unsupported,
1839     # and are intended to be withdrawn in a future Autoconf release.
1840     # They can cause serious problems if a builder's source tree is in a directory
1841     # whose full name contains unusual characters.
1842     ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1843     ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1844     ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1845    
1846 pcg 1.1
1847     # Make sure we can run config.sub.
1848 pcg 1.33 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1849     { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1850     echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1851 pcg 1.1 { (exit 1); exit 1; }; }
1852    
1853 pcg 1.33 { echo "$as_me:$LINENO: checking build system type" >&5
1854     echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1855 pcg 1.1 if test "${ac_cv_build+set}" = set; then
1856     echo $ECHO_N "(cached) $ECHO_C" >&6
1857     else
1858 pcg 1.33 ac_build_alias=$build_alias
1859     test "x$ac_build_alias" = x &&
1860     ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1861     test "x$ac_build_alias" = x &&
1862 pcg 1.1 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1863     echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1864     { (exit 1); exit 1; }; }
1865 pcg 1.33 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1866     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1867     echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1868 pcg 1.1 { (exit 1); exit 1; }; }
1869    
1870     fi
1871 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1872     echo "${ECHO_T}$ac_cv_build" >&6; }
1873     case $ac_cv_build in
1874     *-*-*) ;;
1875     *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1876     echo "$as_me: error: invalid value of canonical build" >&2;}
1877     { (exit 1); exit 1; }; };;
1878     esac
1879 pcg 1.1 build=$ac_cv_build
1880 pcg 1.33 ac_save_IFS=$IFS; IFS='-'
1881     set x $ac_cv_build
1882     shift
1883     build_cpu=$1
1884     build_vendor=$2
1885     shift; shift
1886     # Remember, the first character of IFS is used to create $*,
1887     # except with old shells:
1888     build_os=$*
1889     IFS=$ac_save_IFS
1890     case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1891 pcg 1.1
1892    
1893 pcg 1.33 { echo "$as_me:$LINENO: checking host system type" >&5
1894     echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1895 pcg 1.1 if test "${ac_cv_host+set}" = set; then
1896     echo $ECHO_N "(cached) $ECHO_C" >&6
1897     else
1898 pcg 1.33 if test "x$host_alias" = x; then
1899     ac_cv_host=$ac_cv_build
1900     else
1901     ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1902     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1903     echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1904 pcg 1.1 { (exit 1); exit 1; }; }
1905 pcg 1.33 fi
1906 pcg 1.1
1907     fi
1908 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1909     echo "${ECHO_T}$ac_cv_host" >&6; }
1910     case $ac_cv_host in
1911     *-*-*) ;;
1912     *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1913     echo "$as_me: error: invalid value of canonical host" >&2;}
1914     { (exit 1); exit 1; }; };;
1915     esac
1916 pcg 1.1 host=$ac_cv_host
1917 pcg 1.33 ac_save_IFS=$IFS; IFS='-'
1918     set x $ac_cv_host
1919     shift
1920     host_cpu=$1
1921     host_vendor=$2
1922     shift; shift
1923     # Remember, the first character of IFS is used to create $*,
1924     # except with old shells:
1925     host_os=$*
1926     IFS=$ac_save_IFS
1927     case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1928 pcg 1.1
1929    
1930 pcg 1.33 { echo "$as_me:$LINENO: checking target system type" >&5
1931     echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1932 pcg 1.1 if test "${ac_cv_target+set}" = set; then
1933     echo $ECHO_N "(cached) $ECHO_C" >&6
1934     else
1935 pcg 1.33 if test "x$target_alias" = x; then
1936     ac_cv_target=$ac_cv_host
1937     else
1938     ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1939     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1940     echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1941 pcg 1.1 { (exit 1); exit 1; }; }
1942 pcg 1.33 fi
1943 pcg 1.1
1944     fi
1945 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1946     echo "${ECHO_T}$ac_cv_target" >&6; }
1947     case $ac_cv_target in
1948     *-*-*) ;;
1949     *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1950     echo "$as_me: error: invalid value of canonical target" >&2;}
1951     { (exit 1); exit 1; }; };;
1952     esac
1953 pcg 1.1 target=$ac_cv_target
1954 pcg 1.33 ac_save_IFS=$IFS; IFS='-'
1955     set x $ac_cv_target
1956     shift
1957     target_cpu=$1
1958     target_vendor=$2
1959     shift; shift
1960     # Remember, the first character of IFS is used to create $*,
1961     # except with old shells:
1962     target_os=$*
1963     IFS=$ac_save_IFS
1964     case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1965 pcg 1.1
1966    
1967     # The aliases save the names the user supplied, while $host etc.
1968     # will get canonicalized.
1969     test -n "$target_alias" &&
1970     test "$program_prefix$program_suffix$program_transform_name" = \
1971     NONENONEs,x,x, &&
1972     program_prefix=${target_alias}-
1973 pcg 1.33 am__api_version="1.7"
1974 pcg 1.1 # Find a good install program. We prefer a C program (faster),
1975     # so one script is as good as another. But avoid the broken or
1976     # incompatible versions:
1977     # SysV /etc/install, /usr/sbin/install
1978     # SunOS /usr/etc/install
1979     # IRIX /sbin/install
1980     # AIX /bin/install
1981     # AmigaOS /C/install, which installs bootblocks on floppy discs
1982     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1983     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1984     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1985 pcg 1.11 # OS/2's system install, which has a completely different semantic
1986 pcg 1.1 # ./install, which can be erroneously created by make from ./install.sh.
1987 pcg 1.33 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1988     echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1989 pcg 1.1 if test -z "$INSTALL"; then
1990     if test "${ac_cv_path_install+set}" = set; then
1991     echo $ECHO_N "(cached) $ECHO_C" >&6
1992     else
1993     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994     for as_dir in $PATH
1995     do
1996     IFS=$as_save_IFS
1997     test -z "$as_dir" && as_dir=.
1998     # Account for people who put trailing slashes in PATH elements.
1999     case $as_dir/ in
2000     ./ | .// | /cC/* | \
2001     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2002 pcg 1.11 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2003 pcg 1.1 /usr/ucb/* ) ;;
2004     *)
2005     # OSF1 and SCO ODT 3.0 have their own names for install.
2006     # Don't use installbsd from OSF since it installs stuff as root
2007     # by default.
2008     for ac_prog in ginstall scoinst install; do
2009     for ac_exec_ext in '' $ac_executable_extensions; do
2010 pcg 1.33 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2011 pcg 1.11 if test $ac_prog = install &&
2012     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2013     # AIX install. It has an incompatible calling convention.
2014     :
2015     elif test $ac_prog = install &&
2016     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2017     # program-specific install script used by HP pwplus--don't use.
2018     :
2019     else
2020     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2021     break 3
2022     fi
2023     fi
2024 pcg 1.1 done
2025     done
2026     ;;
2027     esac
2028     done
2029 pcg 1.33 IFS=$as_save_IFS
2030 pcg 1.1
2031    
2032     fi
2033     if test "${ac_cv_path_install+set}" = set; then
2034     INSTALL=$ac_cv_path_install
2035     else
2036 pcg 1.33 # As a last resort, use the slow shell script. Don't cache a
2037     # value for INSTALL within a source directory, because that will
2038 pcg 1.1 # break other packages using the cache if that directory is
2039 pcg 1.33 # removed, or if the value is a relative name.
2040 pcg 1.1 INSTALL=$ac_install_sh
2041     fi
2042     fi
2043 pcg 1.33 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2044     echo "${ECHO_T}$INSTALL" >&6; }
2045 pcg 1.1
2046     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2047     # It thinks the first close brace ends the variable substitution.
2048     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2049    
2050     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2051    
2052     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2053    
2054 pcg 1.33 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2055     echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2056 pcg 1.1 # Just in case
2057     sleep 1
2058     echo timestamp > conftest.file
2059     # Do `set' in a subshell so we don't clobber the current shell's
2060     # arguments. Must try -L first in case configure is actually a
2061     # symlink; some systems play weird games with the mod time of symlinks
2062     # (eg FreeBSD returns the mod time of the symlink's containing
2063     # directory).
2064     if (
2065     set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2066     if test "$*" = "X"; then
2067     # -L didn't work.
2068     set X `ls -t $srcdir/configure conftest.file`
2069     fi
2070     rm -f conftest.file
2071     if test "$*" != "X $srcdir/configure conftest.file" \
2072     && test "$*" != "X conftest.file $srcdir/configure"; then
2073    
2074     # If neither matched, then we have a broken ls. This can happen
2075     # if, for instance, CONFIG_SHELL is bash and it inherits a
2076     # broken ls alias from the environment. This has actually
2077     # happened. Such a system could not be considered "sane".
2078     { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2079     alias in your environment" >&5
2080     echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2081     alias in your environment" >&2;}
2082     { (exit 1); exit 1; }; }
2083     fi
2084    
2085     test "$2" = conftest.file
2086     )
2087     then
2088     # Ok.
2089     :
2090     else
2091     { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2092     Check your system clock" >&5
2093     echo "$as_me: error: newly created file is older than distributed files!
2094     Check your system clock" >&2;}
2095     { (exit 1); exit 1; }; }
2096     fi
2097 pcg 1.33 { echo "$as_me:$LINENO: result: yes" >&5
2098     echo "${ECHO_T}yes" >&6; }
2099 pcg 1.1 test "$program_prefix" != NONE &&
2100 pcg 1.33 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2101 pcg 1.1 # Use a double $ so make ignores it.
2102     test "$program_suffix" != NONE &&
2103 pcg 1.33 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2104 pcg 1.1 # Double any \ or $. echo might interpret backslashes.
2105     # By default was `s,x,x', remove it if useless.
2106     cat <<\_ACEOF >conftest.sed
2107     s/[\\$]/&&/g;s/;s,x,x,$//
2108     _ACEOF
2109     program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2110 pcg 1.33 rm -f conftest.sed
2111    
2112 pcg 1.1
2113     # expand $ac_aux_dir to an absolute path
2114     am_aux_dir=`cd $ac_aux_dir && pwd`
2115    
2116     test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2117     # Use eval to expand $SHELL
2118     if eval "$MISSING --run true"; then
2119     am_missing_run="$MISSING --run "
2120     else
2121     am_missing_run=
2122     { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2123     echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2124     fi
2125    
2126     for ac_prog in gawk mawk nawk awk
2127     do
2128     # Extract the first word of "$ac_prog", so it can be a program name with args.
2129     set dummy $ac_prog; ac_word=$2
2130 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2131     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2132 pcg 1.1 if test "${ac_cv_prog_AWK+set}" = set; then
2133     echo $ECHO_N "(cached) $ECHO_C" >&6
2134     else
2135     if test -n "$AWK"; then
2136     ac_cv_prog_AWK="$AWK" # Let the user override the test.
2137     else
2138     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139     for as_dir in $PATH
2140     do
2141     IFS=$as_save_IFS
2142     test -z "$as_dir" && as_dir=.
2143     for ac_exec_ext in '' $ac_executable_extensions; do
2144 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2145 pcg 1.1 ac_cv_prog_AWK="$ac_prog"
2146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147     break 2
2148     fi
2149     done
2150     done
2151 pcg 1.33 IFS=$as_save_IFS
2152 pcg 1.1
2153     fi
2154     fi
2155     AWK=$ac_cv_prog_AWK
2156     if test -n "$AWK"; then
2157 pcg 1.33 { echo "$as_me:$LINENO: result: $AWK" >&5
2158     echo "${ECHO_T}$AWK" >&6; }
2159 pcg 1.1 else
2160 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
2161     echo "${ECHO_T}no" >&6; }
2162 pcg 1.1 fi
2163    
2164 pcg 1.33
2165 pcg 1.1 test -n "$AWK" && break
2166     done
2167    
2168 pcg 1.33 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2169     echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2170     set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2171     if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2172 pcg 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
2173     else
2174     cat >conftest.make <<\_ACEOF
2175 pcg 1.33 SHELL = /bin/sh
2176 pcg 1.1 all:
2177 pcg 1.33 @echo '@@@%%%=$(MAKE)=@@@%%%'
2178 pcg 1.1 _ACEOF
2179     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2180 pcg 1.33 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2181     *@@@%%%=?*=@@@%%%*)
2182     eval ac_cv_prog_make_${ac_make}_set=yes;;
2183     *)
2184     eval ac_cv_prog_make_${ac_make}_set=no;;
2185     esac
2186 pcg 1.1 rm -f conftest.make
2187     fi
2188 pcg 1.33 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2189     { echo "$as_me:$LINENO: result: yes" >&5
2190     echo "${ECHO_T}yes" >&6; }
2191 pcg 1.1 SET_MAKE=
2192     else
2193 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
2194     echo "${ECHO_T}no" >&6; }
2195 pcg 1.1 SET_MAKE="MAKE=${MAKE-make}"
2196     fi
2197    
2198     rm -rf .tst 2>/dev/null
2199     mkdir .tst 2>/dev/null
2200     if test -d .tst; then
2201     am__leading_dot=.
2202     else
2203     am__leading_dot=_
2204     fi
2205     rmdir .tst 2>/dev/null
2206    
2207 pcg 1.33 # test to see if srcdir already configured
2208 pcg 1.1 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2209     test -f $srcdir/config.status; then
2210     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2211     echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2212     { (exit 1); exit 1; }; }
2213     fi
2214    
2215     # test whether we have cygpath
2216     if test -z "$CYGPATH_W"; then
2217     if (cygpath --version) >/dev/null 2>/dev/null; then
2218     CYGPATH_W='cygpath -w'
2219     else
2220     CYGPATH_W=echo
2221     fi
2222     fi
2223    
2224    
2225     # Define the identity of the package.
2226 pcg 1.22 PACKAGE=gvpe
2227 pcg 1.41 VERSION=2.21
2228 pcg 1.1
2229    
2230     cat >>confdefs.h <<_ACEOF
2231     #define PACKAGE "$PACKAGE"
2232     _ACEOF
2233    
2234    
2235     cat >>confdefs.h <<_ACEOF
2236     #define VERSION "$VERSION"
2237     _ACEOF
2238    
2239     # Some tools Automake needs.
2240    
2241     ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2242    
2243    
2244     AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2245    
2246    
2247     AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2248    
2249    
2250     AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2251    
2252    
2253     MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2254    
2255 pcg 1.33
2256     AMTAR=${AMTAR-"${am_missing_run}tar"}
2257    
2258 pcg 1.1 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2259    
2260     # Installed binaries are usually stripped using `strip' when the user
2261     # run `make install-strip'. However `strip' might not be the right
2262     # tool to use in cross-compilation environments, therefore Automake
2263     # will honor the `STRIP' environment variable to overrule this program.
2264     if test "$cross_compiling" != no; then
2265     if test -n "$ac_tool_prefix"; then
2266     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2267     set dummy ${ac_tool_prefix}strip; ac_word=$2
2268 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2269     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2270 pcg 1.1 if test "${ac_cv_prog_STRIP+set}" = set; then
2271     echo $ECHO_N "(cached) $ECHO_C" >&6
2272     else
2273     if test -n "$STRIP"; then
2274     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2275     else
2276     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277     for as_dir in $PATH
2278     do
2279     IFS=$as_save_IFS
2280     test -z "$as_dir" && as_dir=.
2281     for ac_exec_ext in '' $ac_executable_extensions; do
2282 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2283 pcg 1.1 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285     break 2
2286     fi
2287     done
2288     done
2289 pcg 1.33 IFS=$as_save_IFS
2290 pcg 1.1
2291     fi
2292     fi
2293     STRIP=$ac_cv_prog_STRIP
2294     if test -n "$STRIP"; then
2295 pcg 1.33 { echo "$as_me:$LINENO: result: $STRIP" >&5
2296     echo "${ECHO_T}$STRIP" >&6; }
2297 pcg 1.1 else
2298 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
2299     echo "${ECHO_T}no" >&6; }
2300 pcg 1.1 fi
2301    
2302 pcg 1.33
2303 pcg 1.1 fi
2304     if test -z "$ac_cv_prog_STRIP"; then
2305     ac_ct_STRIP=$STRIP
2306     # Extract the first word of "strip", so it can be a program name with args.
2307     set dummy strip; ac_word=$2
2308 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2309     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2310 pcg 1.1 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2311     echo $ECHO_N "(cached) $ECHO_C" >&6
2312     else
2313     if test -n "$ac_ct_STRIP"; then
2314     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2315     else
2316     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317     for as_dir in $PATH
2318     do
2319     IFS=$as_save_IFS
2320     test -z "$as_dir" && as_dir=.
2321     for ac_exec_ext in '' $ac_executable_extensions; do
2322 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323 pcg 1.1 ac_cv_prog_ac_ct_STRIP="strip"
2324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325     break 2
2326     fi
2327     done
2328     done
2329 pcg 1.33 IFS=$as_save_IFS
2330 pcg 1.1
2331     fi
2332     fi
2333     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2334     if test -n "$ac_ct_STRIP"; then
2335 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2336     echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2337 pcg 1.1 else
2338 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
2339     echo "${ECHO_T}no" >&6; }
2340 pcg 1.1 fi
2341    
2342 pcg 1.33 if test "x$ac_ct_STRIP" = x; then
2343     STRIP=":"
2344     else
2345     case $cross_compiling:$ac_tool_warned in
2346     yes:)
2347     { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2348     whose name does not start with the host triplet. If you think this
2349     configuration is useful to you, please write to autoconf@gnu.org." >&5
2350     echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2351     whose name does not start with the host triplet. If you think this
2352     configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2353     ac_tool_warned=yes ;;
2354     esac
2355     STRIP=$ac_ct_STRIP
2356     fi
2357 pcg 1.1 else
2358     STRIP="$ac_cv_prog_STRIP"
2359     fi
2360    
2361     fi
2362     INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2363    
2364     # We need awk for the "check" target. The system "awk" is bad on
2365     # some platforms.
2366 pcg 1.32
2367    
2368 pcg 1.1
2369 pcg 1.33 ac_config_headers="$ac_config_headers config.h"
2370 pcg 1.1
2371 pcg 1.33 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2372     echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2373     # Check whether --enable-maintainer-mode was given.
2374 pcg 1.1 if test "${enable_maintainer_mode+set}" = set; then
2375 pcg 1.33 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2376 pcg 1.1 else
2377     USE_MAINTAINER_MODE=no
2378 pcg 1.33 fi
2379    
2380     { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2381     echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2382 pcg 1.1
2383    
2384     if test $USE_MAINTAINER_MODE = yes; then
2385     MAINTAINER_MODE_TRUE=
2386     MAINTAINER_MODE_FALSE='#'
2387     else
2388     MAINTAINER_MODE_TRUE='#'
2389     MAINTAINER_MODE_FALSE=
2390     fi
2391    
2392     MAINT=$MAINTAINER_MODE_TRUE
2393    
2394    
2395    
2396    
2397    
2398    
2399    
2400    
2401    
2402    
2403     test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2404    
2405     for k in m4 ; do ACLOCAL="$ACLOCAL -I $k" ; done
2406    
2407    
2408    
2409     MKINSTALLDIRS=
2410     if test -n "$ac_aux_dir"; then
2411     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2412     fi
2413     if test -z "$MKINSTALLDIRS"; then
2414     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2415     fi
2416    
2417    
2418    
2419    
2420    
2421     # Extract the first word of "msgfmt", so it can be a program name with args.
2422     set dummy msgfmt; ac_word=$2
2423 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2424     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2425 pcg 1.1 if test "${ac_cv_path_MSGFMT+set}" = set; then
2426     echo $ECHO_N "(cached) $ECHO_C" >&6
2427     else
2428     case "$MSGFMT" in
2429     /*)
2430     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2431     ;;
2432     *)
2433     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2434     for ac_dir in $PATH; do
2435     test -z "$ac_dir" && ac_dir=.
2436     if test -f $ac_dir/$ac_word; then
2437     if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
2438     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2439     ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2440     break
2441     fi
2442     fi
2443     done
2444     IFS="$ac_save_ifs"
2445     test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2446     ;;
2447     esac
2448     fi
2449     MSGFMT="$ac_cv_path_MSGFMT"
2450     if test "$MSGFMT" != ":"; then
2451 pcg 1.33 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
2452     echo "${ECHO_T}$MSGFMT" >&6; }
2453 pcg 1.1 else
2454 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
2455     echo "${ECHO_T}no" >&6; }
2456 pcg 1.1 fi
2457    
2458     # Extract the first word of "gmsgfmt", so it can be a program name with args.
2459     set dummy gmsgfmt; ac_word=$2
2460 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 pcg 1.1 if test "${ac_cv_path_GMSGFMT+set}" = set; then
2463     echo $ECHO_N "(cached) $ECHO_C" >&6
2464     else
2465     case $GMSGFMT in
2466     [\\/]* | ?:[\\/]*)
2467     ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2468     ;;
2469     *)
2470     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471     for as_dir in $PATH
2472     do
2473     IFS=$as_save_IFS
2474     test -z "$as_dir" && as_dir=.
2475     for ac_exec_ext in '' $ac_executable_extensions; do
2476 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 pcg 1.1 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479     break 2
2480     fi
2481     done
2482     done
2483 pcg 1.33 IFS=$as_save_IFS
2484 pcg 1.1
2485     test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2486     ;;
2487     esac
2488     fi
2489     GMSGFMT=$ac_cv_path_GMSGFMT
2490     if test -n "$GMSGFMT"; then
2491 pcg 1.33 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
2492     echo "${ECHO_T}$GMSGFMT" >&6; }
2493 pcg 1.1 else
2494 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
2495     echo "${ECHO_T}no" >&6; }
2496 pcg 1.1 fi
2497    
2498    
2499 pcg 1.33
2500 pcg 1.1 # Extract the first word of "xgettext", so it can be a program name with args.
2501     set dummy xgettext; ac_word=$2
2502 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 pcg 1.1 if test "${ac_cv_path_XGETTEXT+set}" = set; then
2505     echo $ECHO_N "(cached) $ECHO_C" >&6
2506     else
2507     case "$XGETTEXT" in
2508     /*)
2509     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2510     ;;
2511     *)
2512     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2513     for ac_dir in $PATH; do
2514     test -z "$ac_dir" && ac_dir=.
2515     if test -f $ac_dir/$ac_word; then
2516     if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
2517     (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
2518     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2519     break
2520     fi
2521     fi
2522     done
2523     IFS="$ac_save_ifs"
2524     test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2525     ;;
2526     esac
2527     fi
2528     XGETTEXT="$ac_cv_path_XGETTEXT"
2529     if test "$XGETTEXT" != ":"; then
2530 pcg 1.33 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
2531     echo "${ECHO_T}$XGETTEXT" >&6; }
2532 pcg 1.1 else
2533 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
2534     echo "${ECHO_T}no" >&6; }
2535 pcg 1.1 fi
2536    
2537     rm -f messages.po
2538    
2539     # Extract the first word of "msgmerge", so it can be a program name with args.
2540     set dummy msgmerge; ac_word=$2
2541 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2542     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2543 pcg 1.1 if test "${ac_cv_path_MSGMERGE+set}" = set; then
2544     echo $ECHO_N "(cached) $ECHO_C" >&6
2545     else
2546     case "$MSGMERGE" in
2547     /*)
2548     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2549     ;;
2550     *)
2551     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2552     for ac_dir in $PATH; do
2553     test -z "$ac_dir" && ac_dir=.
2554     if test -f $ac_dir/$ac_word; then
2555     if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
2556     ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
2557     break
2558     fi
2559     fi
2560     done
2561     IFS="$ac_save_ifs"
2562     test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2563     ;;
2564     esac
2565     fi
2566     MSGMERGE="$ac_cv_path_MSGMERGE"
2567     if test "$MSGMERGE" != ":"; then
2568 pcg 1.33 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2569     echo "${ECHO_T}$MSGMERGE" >&6; }
2570 pcg 1.1 else
2571 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
2572     echo "${ECHO_T}no" >&6; }
2573 pcg 1.1 fi
2574    
2575    
2576     if test "$GMSGFMT" != ":"; then
2577     if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2578     (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2579     : ;
2580     else
2581     GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2582 pcg 1.33 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2583     echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
2584 pcg 1.1 GMSGFMT=":"
2585     fi
2586     fi
2587    
2588     if test "$XGETTEXT" != ":"; then
2589     if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
2590     (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2591     : ;
2592     else
2593 pcg 1.33 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
2594     echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
2595 pcg 1.1 XGETTEXT=":"
2596     fi
2597     rm -f messages.po
2598     fi
2599    
2600 pcg 1.33 ac_config_commands="$ac_config_commands default-1"
2601 pcg 1.1
2602    
2603    
2604     if test "X$prefix" = "XNONE"; then
2605     acl_final_prefix="$ac_default_prefix"
2606     else
2607     acl_final_prefix="$prefix"
2608     fi
2609     if test "X$exec_prefix" = "XNONE"; then
2610     acl_final_exec_prefix='${prefix}'
2611     else
2612     acl_final_exec_prefix="$exec_prefix"
2613     fi
2614     acl_save_prefix="$prefix"
2615     prefix="$acl_final_prefix"
2616     eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
2617     prefix="$acl_save_prefix"
2618    
2619     DEPDIR="${am__leading_dot}deps"
2620    
2621 pcg 1.33 ac_config_commands="$ac_config_commands depfiles"
2622 pcg 1.1
2623    
2624     am_make=${MAKE-make}
2625     cat > confinc << 'END'
2626     am__doit:
2627     @echo done
2628     .PHONY: am__doit
2629     END
2630     # If we don't find an include directive, just comment out the code.
2631 pcg 1.33 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2632     echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2633 pcg 1.1 am__include="#"
2634     am__quote=
2635     _am_result=none
2636     # First try GNU make style include.
2637     echo "include confinc" > confmf
2638     # We grep out `Entering directory' and `Leaving directory'
2639     # messages which can occur if `w' ends up in MAKEFLAGS.
2640     # In particular we don't look at `^make:' because GNU make might
2641     # be invoked under some other name (usually "gmake"), in which
2642     # case it prints its new name instead of `make'.
2643     if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2644     am__include=include
2645     am__quote=
2646     _am_result=GNU
2647     fi
2648     # Now try BSD make style include.
2649     if test "$am__include" = "#"; then
2650     echo '.include "confinc"' > confmf
2651     if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2652     am__include=.include
2653     am__quote="\""
2654     _am_result=BSD
2655     fi
2656     fi
2657    
2658    
2659 pcg 1.33 { echo "$as_me:$LINENO: result: $_am_result" >&5
2660     echo "${ECHO_T}$_am_result" >&6; }
2661 pcg 1.1 rm -f confinc confmf
2662    
2663 pcg 1.33 # Check whether --enable-dependency-tracking was given.
2664 pcg 1.1 if test "${enable_dependency_tracking+set}" = set; then
2665 pcg 1.33 enableval=$enable_dependency_tracking;
2666     fi
2667 pcg 1.1
2668     if test "x$enable_dependency_tracking" != xno; then
2669     am_depcomp="$ac_aux_dir/depcomp"
2670     AMDEPBACKSLASH='\'
2671     fi
2672    
2673    
2674     if test "x$enable_dependency_tracking" != xno; then
2675     AMDEP_TRUE=
2676     AMDEP_FALSE='#'
2677     else
2678     AMDEP_TRUE='#'
2679     AMDEP_FALSE=
2680     fi
2681    
2682    
2683    
2684     ac_ext=c
2685     ac_cpp='$CPP $CPPFLAGS'
2686     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2689     if test -n "$ac_tool_prefix"; then
2690     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2691     set dummy ${ac_tool_prefix}gcc; ac_word=$2
2692 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2693     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2694 pcg 1.1 if test "${ac_cv_prog_CC+set}" = set; then
2695     echo $ECHO_N "(cached) $ECHO_C" >&6
2696     else
2697     if test -n "$CC"; then
2698     ac_cv_prog_CC="$CC" # Let the user override the test.
2699     else
2700     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701     for as_dir in $PATH
2702     do
2703     IFS=$as_save_IFS
2704     test -z "$as_dir" && as_dir=.
2705     for ac_exec_ext in '' $ac_executable_extensions; do
2706 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 pcg 1.1 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709     break 2
2710     fi
2711     done
2712     done
2713 pcg 1.33 IFS=$as_save_IFS
2714 pcg 1.1
2715     fi
2716     fi
2717     CC=$ac_cv_prog_CC
2718     if test -n "$CC"; then
2719 pcg 1.33 { echo "$as_me:$LINENO: result: $CC" >&5
2720     echo "${ECHO_T}$CC" >&6; }
2721 pcg 1.1 else
2722 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
2723     echo "${ECHO_T}no" >&6; }
2724 pcg 1.1 fi
2725    
2726 pcg 1.33
2727 pcg 1.1 fi
2728     if test -z "$ac_cv_prog_CC"; then
2729     ac_ct_CC=$CC
2730     # Extract the first word of "gcc", so it can be a program name with args.
2731     set dummy gcc; ac_word=$2
2732 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2733     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2734 pcg 1.1 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2735     echo $ECHO_N "(cached) $ECHO_C" >&6
2736     else
2737     if test -n "$ac_ct_CC"; then
2738     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2739     else
2740     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741     for as_dir in $PATH
2742     do
2743     IFS=$as_save_IFS
2744     test -z "$as_dir" && as_dir=.
2745     for ac_exec_ext in '' $ac_executable_extensions; do
2746 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747 pcg 1.1 ac_cv_prog_ac_ct_CC="gcc"
2748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749     break 2
2750     fi
2751     done
2752     done
2753 pcg 1.33 IFS=$as_save_IFS
2754 pcg 1.1
2755     fi
2756     fi
2757     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2758     if test -n "$ac_ct_CC"; then
2759 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2760     echo "${ECHO_T}$ac_ct_CC" >&6; }
2761 pcg 1.1 else
2762 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
2763     echo "${ECHO_T}no" >&6; }
2764 pcg 1.1 fi
2765    
2766 pcg 1.33 if test "x$ac_ct_CC" = x; then
2767     CC=""
2768     else
2769     case $cross_compiling:$ac_tool_warned in
2770     yes:)
2771     { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2772     whose name does not start with the host triplet. If you think this
2773     configuration is useful to you, please write to autoconf@gnu.org." >&5
2774     echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2775     whose name does not start with the host triplet. If you think this
2776     configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2777     ac_tool_warned=yes ;;
2778     esac
2779     CC=$ac_ct_CC
2780     fi
2781 pcg 1.1 else
2782     CC="$ac_cv_prog_CC"
2783     fi
2784    
2785     if test -z "$CC"; then
2786 pcg 1.33 if test -n "$ac_tool_prefix"; then
2787     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2788 pcg 1.1 set dummy ${ac_tool_prefix}cc; ac_word=$2
2789 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2790     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2791 pcg 1.1 if test "${ac_cv_prog_CC+set}" = set; then
2792     echo $ECHO_N "(cached) $ECHO_C" >&6
2793     else
2794     if test -n "$CC"; then
2795     ac_cv_prog_CC="$CC" # Let the user override the test.
2796     else
2797     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798     for as_dir in $PATH
2799     do
2800     IFS=$as_save_IFS
2801     test -z "$as_dir" && as_dir=.
2802     for ac_exec_ext in '' $ac_executable_extensions; do
2803 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2804 pcg 1.1 ac_cv_prog_CC="${ac_tool_prefix}cc"
2805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806     break 2
2807     fi
2808     done
2809     done
2810 pcg 1.33 IFS=$as_save_IFS
2811 pcg 1.1
2812     fi
2813     fi
2814     CC=$ac_cv_prog_CC
2815     if test -n "$CC"; then
2816 pcg 1.33 { echo "$as_me:$LINENO: result: $CC" >&5
2817     echo "${ECHO_T}$CC" >&6; }
2818 pcg 1.1 else
2819 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
2820     echo "${ECHO_T}no" >&6; }
2821 pcg 1.1 fi
2822    
2823 pcg 1.33
2824 pcg 1.1 fi
2825     fi
2826     if test -z "$CC"; then
2827     # Extract the first word of "cc", so it can be a program name with args.
2828     set dummy cc; ac_word=$2
2829 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2830     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2831 pcg 1.1 if test "${ac_cv_prog_CC+set}" = set; then
2832     echo $ECHO_N "(cached) $ECHO_C" >&6
2833     else
2834     if test -n "$CC"; then
2835     ac_cv_prog_CC="$CC" # Let the user override the test.
2836     else
2837     ac_prog_rejected=no
2838     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839     for as_dir in $PATH
2840     do
2841     IFS=$as_save_IFS
2842     test -z "$as_dir" && as_dir=.
2843     for ac_exec_ext in '' $ac_executable_extensions; do
2844 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845 pcg 1.1 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2846     ac_prog_rejected=yes
2847     continue
2848     fi
2849     ac_cv_prog_CC="cc"
2850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851     break 2
2852     fi
2853     done
2854     done
2855 pcg 1.33 IFS=$as_save_IFS
2856 pcg 1.1
2857     if test $ac_prog_rejected = yes; then
2858     # We found a bogon in the path, so make sure we never use it.
2859     set dummy $ac_cv_prog_CC
2860     shift
2861     if test $# != 0; then
2862     # We chose a different compiler from the bogus one.
2863     # However, it has the same basename, so the bogon will be chosen
2864     # first if we set CC to just the basename; use the full file name.
2865     shift
2866     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2867     fi
2868     fi
2869     fi
2870     fi
2871     CC=$ac_cv_prog_CC
2872     if test -n "$CC"; then
2873 pcg 1.33 { echo "$as_me:$LINENO: result: $CC" >&5
2874     echo "${ECHO_T}$CC" >&6; }
2875 pcg 1.1 else
2876 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
2877     echo "${ECHO_T}no" >&6; }
2878 pcg 1.1 fi
2879    
2880 pcg 1.33
2881 pcg 1.1 fi
2882     if test -z "$CC"; then
2883     if test -n "$ac_tool_prefix"; then
2884 pcg 1.33 for ac_prog in cl.exe
2885 pcg 1.1 do
2886     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2887     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2888 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2889     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2890 pcg 1.1 if test "${ac_cv_prog_CC+set}" = set; then
2891     echo $ECHO_N "(cached) $ECHO_C" >&6
2892     else
2893     if test -n "$CC"; then
2894     ac_cv_prog_CC="$CC" # Let the user override the test.
2895     else
2896     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897     for as_dir in $PATH
2898     do
2899     IFS=$as_save_IFS
2900     test -z "$as_dir" && as_dir=.
2901     for ac_exec_ext in '' $ac_executable_extensions; do
2902 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903 pcg 1.1 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905     break 2
2906     fi
2907     done
2908     done
2909 pcg 1.33 IFS=$as_save_IFS
2910 pcg 1.1
2911     fi
2912     fi
2913     CC=$ac_cv_prog_CC
2914     if test -n "$CC"; then
2915 pcg 1.33 { echo "$as_me:$LINENO: result: $CC" >&5
2916     echo "${ECHO_T}$CC" >&6; }
2917 pcg 1.1 else
2918 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
2919     echo "${ECHO_T}no" >&6; }
2920 pcg 1.1 fi
2921    
2922 pcg 1.33
2923 pcg 1.1 test -n "$CC" && break
2924     done
2925     fi
2926     if test -z "$CC"; then
2927     ac_ct_CC=$CC
2928 pcg 1.33 for ac_prog in cl.exe
2929 pcg 1.1 do
2930     # Extract the first word of "$ac_prog", so it can be a program name with args.
2931     set dummy $ac_prog; ac_word=$2
2932 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2933     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2934 pcg 1.1 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2935     echo $ECHO_N "(cached) $ECHO_C" >&6
2936     else
2937     if test -n "$ac_ct_CC"; then
2938     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939     else
2940     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941     for as_dir in $PATH
2942     do
2943     IFS=$as_save_IFS
2944     test -z "$as_dir" && as_dir=.
2945     for ac_exec_ext in '' $ac_executable_extensions; do
2946 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947 pcg 1.1 ac_cv_prog_ac_ct_CC="$ac_prog"
2948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949     break 2
2950     fi
2951     done
2952     done
2953 pcg 1.33 IFS=$as_save_IFS
2954 pcg 1.1
2955     fi
2956     fi
2957     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2958     if test -n "$ac_ct_CC"; then
2959 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2960     echo "${ECHO_T}$ac_ct_CC" >&6; }
2961 pcg 1.1 else
2962 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
2963     echo "${ECHO_T}no" >&6; }
2964 pcg 1.1 fi
2965    
2966 pcg 1.33
2967 pcg 1.1 test -n "$ac_ct_CC" && break
2968     done
2969    
2970 pcg 1.33 if test "x$ac_ct_CC" = x; then
2971     CC=""
2972     else
2973     case $cross_compiling:$ac_tool_warned in
2974     yes:)
2975     { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2976     whose name does not start with the host triplet. If you think this
2977     configuration is useful to you, please write to autoconf@gnu.org." >&5
2978     echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2979     whose name does not start with the host triplet. If you think this
2980     configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2981     ac_tool_warned=yes ;;
2982     esac
2983     CC=$ac_ct_CC
2984     fi
2985 pcg 1.1 fi
2986    
2987     fi
2988    
2989    
2990     test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2991     See \`config.log' for more details." >&5
2992     echo "$as_me: error: no acceptable C compiler found in \$PATH
2993     See \`config.log' for more details." >&2;}
2994     { (exit 1); exit 1; }; }
2995    
2996     # Provide some information about the compiler.
2997 pcg 1.33 echo "$as_me:$LINENO: checking for C compiler version" >&5
2998 pcg 1.1 ac_compiler=`set X $ac_compile; echo $2`
2999 pcg 1.33 { (ac_try="$ac_compiler --version >&5"
3000     case "(($ac_try" in
3001     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002     *) ac_try_echo=$ac_try;;
3003     esac
3004     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005     (eval "$ac_compiler --version >&5") 2>&5
3006 pcg 1.1 ac_status=$?
3007     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008     (exit $ac_status); }
3009 pcg 1.33 { (ac_try="$ac_compiler -v >&5"
3010     case "(($ac_try" in
3011     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012     *) ac_try_echo=$ac_try;;
3013     esac
3014     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015     (eval "$ac_compiler -v >&5") 2>&5
3016 pcg 1.1 ac_status=$?
3017     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018     (exit $ac_status); }
3019 pcg 1.33 { (ac_try="$ac_compiler -V >&5"
3020     case "(($ac_try" in
3021     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022     *) ac_try_echo=$ac_try;;
3023     esac
3024     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025     (eval "$ac_compiler -V >&5") 2>&5
3026 pcg 1.1 ac_status=$?
3027     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028     (exit $ac_status); }
3029    
3030     cat >conftest.$ac_ext <<_ACEOF
3031     /* confdefs.h. */
3032     _ACEOF
3033     cat confdefs.h >>conftest.$ac_ext
3034     cat >>conftest.$ac_ext <<_ACEOF
3035     /* end confdefs.h. */
3036    
3037     int
3038     main ()
3039     {
3040    
3041     ;
3042     return 0;
3043     }
3044     _ACEOF
3045     ac_clean_files_save=$ac_clean_files
3046     ac_clean_files="$ac_clean_files a.out a.exe b.out"
3047     # Try to create an executable without -o first, disregard a.out.
3048     # It will help us diagnose broken compilers, and finding out an intuition
3049     # of exeext.
3050 pcg 1.33 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3051     echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3052 pcg 1.1 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3053 pcg 1.33 #
3054     # List of possible output files, starting from the most likely.
3055     # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3056     # only as a last resort. b.out is created by i960 compilers.
3057     ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3058     #
3059     # The IRIX 6 linker writes into existing files which may not be
3060     # executable, retaining their permissions. Remove them first so a
3061     # subsequent execution test works.
3062     ac_rmfiles=
3063     for ac_file in $ac_files
3064     do
3065     case $ac_file in
3066     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3067     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3068     esac
3069     done
3070     rm -f $ac_rmfiles
3071    
3072     if { (ac_try="$ac_link_default"
3073     case "(($ac_try" in
3074     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075     *) ac_try_echo=$ac_try;;
3076     esac
3077     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078     (eval "$ac_link_default") 2>&5
3079 pcg 1.1 ac_status=$?
3080     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081     (exit $ac_status); }; then
3082 pcg 1.33 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3083     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3084     # in a Makefile. We should not override ac_cv_exeext if it was cached,
3085     # so that the user can short-circuit this test for compilers unknown to
3086     # Autoconf.
3087     for ac_file in $ac_files ''
3088 pcg 1.1 do
3089     test -f "$ac_file" || continue
3090     case $ac_file in
3091 pcg 1.33 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3092 pcg 1.11 ;;
3093 pcg 1.1 [ab].out )
3094 pcg 1.11 # We found the default executable, but exeext='' is most
3095     # certainly right.
3096     break;;
3097 pcg 1.1 *.* )
3098 pcg 1.33 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3099     then :; else
3100     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3101     fi
3102     # We set ac_cv_exeext here because the later test for it is not
3103     # safe: cross compilers may not add the suffix if given an `-o'
3104     # argument, so we may need to know it at that point already.
3105     # Even if this section looks crufty: it has the advantage of
3106     # actually working.
3107 pcg 1.11 break;;
3108 pcg 1.1 * )
3109 pcg 1.11 break;;
3110 pcg 1.1 esac
3111     done
3112 pcg 1.33 test "$ac_cv_exeext" = no && ac_cv_exeext=
3113    
3114 pcg 1.1 else
3115 pcg 1.33 ac_file=''
3116     fi
3117    
3118     { echo "$as_me:$LINENO: result: $ac_file" >&5
3119     echo "${ECHO_T}$ac_file" >&6; }
3120     if test -z "$ac_file"; then
3121 pcg 1.1 echo "$as_me: failed program was:" >&5
3122     sed 's/^/| /' conftest.$ac_ext >&5
3123    
3124     { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3125     See \`config.log' for more details." >&5
3126     echo "$as_me: error: C compiler cannot create executables
3127     See \`config.log' for more details." >&2;}
3128     { (exit 77); exit 77; }; }
3129     fi
3130    
3131     ac_exeext=$ac_cv_exeext
3132    
3133 pcg 1.33 # Check that the compiler produces executables we can run. If not, either
3134 pcg 1.1 # the compiler is broken, or we cross compile.
3135 pcg 1.33 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3136     echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3137 pcg 1.1 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3138     # If not cross compiling, check that we can run a simple program.
3139     if test "$cross_compiling" != yes; then
3140     if { ac_try='./$ac_file'
3141 pcg 1.33 { (case "(($ac_try" in
3142     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143     *) ac_try_echo=$ac_try;;
3144     esac
3145     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146     (eval "$ac_try") 2>&5
3147 pcg 1.1 ac_status=$?
3148     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149     (exit $ac_status); }; }; then
3150     cross_compiling=no
3151     else
3152     if test "$cross_compiling" = maybe; then
3153     cross_compiling=yes
3154     else
3155     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3156     If you meant to cross compile, use \`--host'.
3157     See \`config.log' for more details." >&5
3158     echo "$as_me: error: cannot run C compiled programs.
3159     If you meant to cross compile, use \`--host'.
3160     See \`config.log' for more details." >&2;}
3161     { (exit 1); exit 1; }; }
3162     fi
3163     fi
3164     fi
3165 pcg 1.33 { echo "$as_me:$LINENO: result: yes" >&5
3166     echo "${ECHO_T}yes" >&6; }
3167 pcg 1.1
3168     rm -f a.out a.exe conftest$ac_cv_exeext b.out
3169     ac_clean_files=$ac_clean_files_save
3170 pcg 1.33 # Check that the compiler produces executables we can run. If not, either
3171 pcg 1.1 # the compiler is broken, or we cross compile.
3172 pcg 1.33 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3173     echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3174     { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3175     echo "${ECHO_T}$cross_compiling" >&6; }
3176    
3177     { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3178     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3179     if { (ac_try="$ac_link"
3180     case "(($ac_try" in
3181     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182     *) ac_try_echo=$ac_try;;
3183     esac
3184     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185     (eval "$ac_link") 2>&5
3186 pcg 1.1 ac_status=$?
3187     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188     (exit $ac_status); }; then
3189     # If both `conftest.exe' and `conftest' are `present' (well, observable)
3190     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3191     # work properly (i.e., refer to `conftest.exe'), while it won't with
3192     # `rm'.
3193     for ac_file in conftest.exe conftest conftest.*; do
3194     test -f "$ac_file" || continue
3195     case $ac_file in
3196 pcg 1.33 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3197 pcg 1.1 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3198 pcg 1.11 break;;
3199 pcg 1.1 * ) break;;
3200     esac
3201     done
3202     else
3203     { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3204     See \`config.log' for more details." >&5
3205     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3206     See \`config.log' for more details." >&2;}
3207     { (exit 1); exit 1; }; }
3208     fi
3209    
3210     rm -f conftest$ac_cv_exeext
3211 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3212     echo "${ECHO_T}$ac_cv_exeext" >&6; }
3213 pcg 1.1
3214     rm -f conftest.$ac_ext
3215     EXEEXT=$ac_cv_exeext
3216     ac_exeext=$EXEEXT
3217 pcg 1.33 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3218     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3219 pcg 1.1 if test "${ac_cv_objext+set}" = set; then
3220     echo $ECHO_N "(cached) $ECHO_C" >&6
3221     else
3222     cat >conftest.$ac_ext <<_ACEOF
3223     /* confdefs.h. */
3224     _ACEOF
3225     cat confdefs.h >>conftest.$ac_ext
3226     cat >>conftest.$ac_ext <<_ACEOF
3227     /* end confdefs.h. */
3228    
3229     int
3230     main ()
3231     {
3232    
3233     ;
3234     return 0;
3235     }
3236     _ACEOF
3237     rm -f conftest.o conftest.obj
3238 pcg 1.33 if { (ac_try="$ac_compile"
3239     case "(($ac_try" in
3240     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241     *) ac_try_echo=$ac_try;;
3242     esac
3243     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244     (eval "$ac_compile") 2>&5
3245 pcg 1.1 ac_status=$?
3246     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247     (exit $ac_status); }; then
3248 pcg 1.33 for ac_file in conftest.o conftest.obj conftest.*; do
3249     test -f "$ac_file" || continue;
3250 pcg 1.1 case $ac_file in
3251 pcg 1.33 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3252 pcg 1.1 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3253     break;;
3254     esac
3255     done
3256     else
3257     echo "$as_me: failed program was:" >&5
3258     sed 's/^/| /' conftest.$ac_ext >&5
3259    
3260     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3261     See \`config.log' for more details." >&5
3262     echo "$as_me: error: cannot compute suffix of object files: cannot compile
3263     See \`config.log' for more details." >&2;}
3264     { (exit 1); exit 1; }; }
3265     fi
3266    
3267     rm -f conftest.$ac_cv_objext conftest.$ac_ext
3268     fi
3269 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3270     echo "${ECHO_T}$ac_cv_objext" >&6; }
3271 pcg 1.1 OBJEXT=$ac_cv_objext
3272     ac_objext=$OBJEXT
3273 pcg 1.33 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3274     echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3275 pcg 1.1 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3276     echo $ECHO_N "(cached) $ECHO_C" >&6
3277     else
3278     cat >conftest.$ac_ext <<_ACEOF
3279     /* confdefs.h. */
3280     _ACEOF
3281     cat confdefs.h >>conftest.$ac_ext
3282     cat >>conftest.$ac_ext <<_ACEOF
3283     /* end confdefs.h. */
3284    
3285     int
3286     main ()
3287     {
3288     #ifndef __GNUC__
3289     choke me
3290     #endif
3291    
3292     ;
3293     return 0;
3294     }
3295     _ACEOF
3296     rm -f conftest.$ac_objext
3297 pcg 1.33 if { (ac_try="$ac_compile"
3298     case "(($ac_try" in
3299     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300     *) ac_try_echo=$ac_try;;
3301     esac
3302     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303     (eval "$ac_compile") 2>conftest.er1
3304 pcg 1.1 ac_status=$?
3305 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
3306     rm -f conftest.er1
3307     cat conftest.err >&5
3308 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 pcg 1.33 (exit $ac_status); } && {
3310     test -z "$ac_c_werror_flag" ||
3311     test ! -s conftest.err
3312     } && test -s conftest.$ac_objext; then
3313 pcg 1.1 ac_compiler_gnu=yes
3314     else
3315     echo "$as_me: failed program was:" >&5
3316     sed 's/^/| /' conftest.$ac_ext >&5
3317    
3318 pcg 1.33 ac_compiler_gnu=no
3319 pcg 1.1 fi
3320 pcg 1.33
3321     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3322 pcg 1.1 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3323    
3324     fi
3325 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3326     echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3327 pcg 1.1 GCC=`test $ac_compiler_gnu = yes && echo yes`
3328     ac_test_CFLAGS=${CFLAGS+set}
3329     ac_save_CFLAGS=$CFLAGS
3330 pcg 1.33 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3331     echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3332 pcg 1.1 if test "${ac_cv_prog_cc_g+set}" = set; then
3333     echo $ECHO_N "(cached) $ECHO_C" >&6
3334     else
3335 pcg 1.33 ac_save_c_werror_flag=$ac_c_werror_flag
3336     ac_c_werror_flag=yes
3337     ac_cv_prog_cc_g=no
3338     CFLAGS="-g"
3339     cat >conftest.$ac_ext <<_ACEOF
3340 pcg 1.1 /* confdefs.h. */
3341     _ACEOF
3342     cat confdefs.h >>conftest.$ac_ext
3343     cat >>conftest.$ac_ext <<_ACEOF
3344     /* end confdefs.h. */
3345    
3346     int
3347     main ()
3348     {
3349    
3350     ;
3351     return 0;
3352     }
3353     _ACEOF
3354     rm -f conftest.$ac_objext
3355 pcg 1.33 if { (ac_try="$ac_compile"
3356     case "(($ac_try" in
3357     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358     *) ac_try_echo=$ac_try;;
3359     esac
3360     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361     (eval "$ac_compile") 2>conftest.er1
3362 pcg 1.1 ac_status=$?
3363 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
3364     rm -f conftest.er1
3365     cat conftest.err >&5
3366 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 pcg 1.33 (exit $ac_status); } && {
3368     test -z "$ac_c_werror_flag" ||
3369     test ! -s conftest.err
3370     } && test -s conftest.$ac_objext; then
3371     ac_cv_prog_cc_g=yes
3372     else
3373     echo "$as_me: failed program was:" >&5
3374     sed 's/^/| /' conftest.$ac_ext >&5
3375    
3376     CFLAGS=""
3377     cat >conftest.$ac_ext <<_ACEOF
3378     /* confdefs.h. */
3379     _ACEOF
3380     cat confdefs.h >>conftest.$ac_ext
3381     cat >>conftest.$ac_ext <<_ACEOF
3382     /* end confdefs.h. */
3383    
3384     int
3385     main ()
3386     {
3387    
3388     ;
3389     return 0;
3390     }
3391     _ACEOF
3392     rm -f conftest.$ac_objext
3393     if { (ac_try="$ac_compile"
3394     case "(($ac_try" in
3395     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396     *) ac_try_echo=$ac_try;;
3397     esac
3398     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399     (eval "$ac_compile") 2>conftest.er1
3400 pcg 1.11 ac_status=$?
3401 pcg 1.33 grep -v '^ *+' conftest.er1 >conftest.err
3402     rm -f conftest.er1
3403     cat conftest.err >&5
3404 pcg 1.11 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 pcg 1.33 (exit $ac_status); } && {
3406     test -z "$ac_c_werror_flag" ||
3407     test ! -s conftest.err
3408     } && test -s conftest.$ac_objext; then
3409     :
3410     else
3411     echo "$as_me: failed program was:" >&5
3412     sed 's/^/| /' conftest.$ac_ext >&5
3413    
3414     ac_c_werror_flag=$ac_save_c_werror_flag
3415     CFLAGS="-g"
3416     cat >conftest.$ac_ext <<_ACEOF
3417     /* confdefs.h. */
3418     _ACEOF
3419     cat confdefs.h >>conftest.$ac_ext
3420     cat >>conftest.$ac_ext <<_ACEOF
3421     /* end confdefs.h. */
3422    
3423     int
3424     main ()
3425     {
3426    
3427     ;
3428     return 0;
3429     }
3430     _ACEOF
3431     rm -f conftest.$ac_objext
3432     if { (ac_try="$ac_compile"
3433     case "(($ac_try" in
3434     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435     *) ac_try_echo=$ac_try;;
3436     esac
3437     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438     (eval "$ac_compile") 2>conftest.er1
3439 pcg 1.1 ac_status=$?
3440 pcg 1.33 grep -v '^ *+' conftest.er1 >conftest.err
3441     rm -f conftest.er1
3442     cat conftest.err >&5
3443 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 pcg 1.33 (exit $ac_status); } && {
3445     test -z "$ac_c_werror_flag" ||
3446     test ! -s conftest.err
3447     } && test -s conftest.$ac_objext; then
3448 pcg 1.1 ac_cv_prog_cc_g=yes
3449     else
3450     echo "$as_me: failed program was:" >&5
3451     sed 's/^/| /' conftest.$ac_ext >&5
3452    
3453 pcg 1.33
3454     fi
3455    
3456     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457 pcg 1.1 fi
3458 pcg 1.33
3459     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460     fi
3461    
3462     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463     ac_c_werror_flag=$ac_save_c_werror_flag
3464 pcg 1.1 fi
3465 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3466     echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3467 pcg 1.1 if test "$ac_test_CFLAGS" = set; then
3468     CFLAGS=$ac_save_CFLAGS
3469     elif test $ac_cv_prog_cc_g = yes; then
3470     if test "$GCC" = yes; then
3471     CFLAGS="-g -O2"
3472     else
3473     CFLAGS="-g"
3474     fi
3475     else
3476     if test "$GCC" = yes; then
3477     CFLAGS="-O2"
3478     else
3479     CFLAGS=
3480     fi
3481     fi
3482 pcg 1.33 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3483     echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3484     if test "${ac_cv_prog_cc_c89+set}" = set; then
3485 pcg 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
3486     else
3487 pcg 1.33 ac_cv_prog_cc_c89=no
3488 pcg 1.1 ac_save_CC=$CC
3489     cat >conftest.$ac_ext <<_ACEOF
3490     /* confdefs.h. */
3491     _ACEOF
3492     cat confdefs.h >>conftest.$ac_ext
3493     cat >>conftest.$ac_ext <<_ACEOF
3494     /* end confdefs.h. */
3495     #include <stdarg.h>
3496     #include <stdio.h>
3497     #include <sys/types.h>
3498     #include <sys/stat.h>
3499     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3500     struct buf { int x; };
3501     FILE * (*rcsopen) (struct buf *, struct stat *, int);
3502     static char *e (p, i)
3503     char **p;
3504     int i;
3505     {
3506     return p[i];
3507     }
3508     static char *f (char * (*g) (char **, int), char **p, ...)
3509     {
3510     char *s;
3511     va_list v;
3512     va_start (v,p);
3513     s = g (p, va_arg (v,int));
3514     va_end (v);
3515     return s;
3516     }
3517 pcg 1.11
3518     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3519     function prototypes and stuff, but not '\xHH' hex character constants.
3520     These don't provoke an error unfortunately, instead are silently treated
3521 pcg 1.33 as 'x'. The following induces an error, until -std is added to get
3522 pcg 1.11 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3523     array size at least. It's necessary to write '\x00'==0 to get something
3524 pcg 1.33 that's true only with -std. */
3525 pcg 1.11 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3526    
3527 pcg 1.33 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3528     inside strings and character constants. */
3529     #define FOO(x) 'x'
3530     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3531    
3532 pcg 1.1 int test (int i, double x);
3533     struct s1 {int (*f) (int a);};
3534     struct s2 {int (*f) (double a);};
3535     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3536     int argc;
3537     char **argv;
3538     int
3539     main ()
3540     {
3541     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3542     ;
3543     return 0;
3544     }
3545     _ACEOF
3546 pcg 1.33 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3547     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3548 pcg 1.1 do
3549     CC="$ac_save_CC $ac_arg"
3550     rm -f conftest.$ac_objext
3551 pcg 1.33 if { (ac_try="$ac_compile"
3552     case "(($ac_try" in
3553     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554     *) ac_try_echo=$ac_try;;
3555     esac
3556     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557     (eval "$ac_compile") 2>conftest.er1
3558 pcg 1.1 ac_status=$?
3559 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
3560     rm -f conftest.er1
3561     cat conftest.err >&5
3562 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 pcg 1.33 (exit $ac_status); } && {
3564     test -z "$ac_c_werror_flag" ||
3565     test ! -s conftest.err
3566     } && test -s conftest.$ac_objext; then
3567     ac_cv_prog_cc_c89=$ac_arg
3568 pcg 1.1 else
3569     echo "$as_me: failed program was:" >&5
3570     sed 's/^/| /' conftest.$ac_ext >&5
3571    
3572 pcg 1.33
3573 pcg 1.1 fi
3574 pcg 1.33
3575     rm -f core conftest.err conftest.$ac_objext
3576     test "x$ac_cv_prog_cc_c89" != "xno" && break
3577 pcg 1.1 done
3578 pcg 1.33 rm -f conftest.$ac_ext
3579 pcg 1.1 CC=$ac_save_CC
3580    
3581     fi
3582 pcg 1.33 # AC_CACHE_VAL
3583     case "x$ac_cv_prog_cc_c89" in
3584     x)
3585     { echo "$as_me:$LINENO: result: none needed" >&5
3586     echo "${ECHO_T}none needed" >&6; } ;;
3587     xno)
3588     { echo "$as_me:$LINENO: result: unsupported" >&5
3589     echo "${ECHO_T}unsupported" >&6; } ;;
3590 pcg 1.1 *)
3591 pcg 1.33 CC="$CC $ac_cv_prog_cc_c89"
3592     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3593     echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3594 pcg 1.1 esac
3595    
3596 pcg 1.33
3597     ac_ext=c
3598     ac_cpp='$CPP $CPPFLAGS'
3599     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602    
3603     depcc="$CC" am_compiler_list=
3604    
3605     { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3606     echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3607     if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3608     echo $ECHO_N "(cached) $ECHO_C" >&6
3609     else
3610     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3611     # We make a subdir and do the tests there. Otherwise we can end up
3612     # making bogus files that we don't know about and never remove. For
3613     # instance it was reported that on HP-UX the gcc test will end up
3614     # making a dummy file named `D' -- because `-MD' means `put the output
3615 pcg 1.1 # in D'.
3616     mkdir conftest.dir
3617     # Copy depcomp to subdir because otherwise we won't find it if we're
3618     # using a relative directory.
3619     cp "$am_depcomp" conftest.dir
3620     cd conftest.dir
3621     # We will build objects and dependencies in a subdirectory because
3622     # it helps to detect inapplicable dependency modes. For instance
3623     # both Tru64's cc and ICC support -MD to output dependencies as a
3624     # side effect of compilation, but ICC will put the dependencies in
3625     # the current directory while Tru64 will put them in the object
3626     # directory.
3627     mkdir sub
3628    
3629     am_cv_CC_dependencies_compiler_type=none
3630     if test "$am_compiler_list" = ""; then
3631     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3632     fi
3633     for depmode in $am_compiler_list; do
3634     # Setup a source with many dependencies, because some compilers
3635     # like to wrap large dependency lists on column 80 (with \), and
3636     # we should not choose a depcomp mode which is confused by this.
3637     #
3638     # We need to recreate these files for each test, as the compiler may
3639     # overwrite some of them when testing with obscure command lines.
3640     # This happens at least with the AIX C compiler.
3641     : > sub/conftest.c
3642     for i in 1 2 3 4 5 6; do
3643     echo '#include "conftst'$i'.h"' >> sub/conftest.c
3644 pcg 1.33 : > sub/conftst$i.h
3645 pcg 1.1 done
3646     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3647    
3648     case $depmode in
3649     nosideeffect)
3650     # after this tag, mechanisms are not by side-effect, so they'll
3651     # only be used when explicitly requested
3652     if test "x$enable_dependency_tracking" = xyes; then
3653     continue
3654     else
3655     break
3656     fi
3657     ;;
3658     none) break ;;
3659     esac
3660     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3661     # mode. It turns out that the SunPro C++ compiler does not properly
3662     # handle `-M -o', and we need to detect this.
3663     if depmode=$depmode \
3664     source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3665     depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3666     $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3667     >/dev/null 2>conftest.err &&
3668     grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3669     grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3670     ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3671     # icc doesn't choke on unknown options, it will just issue warnings
3672 pcg 1.33 # (even with -Werror). So we grep stderr for any message
3673     # that says an option was ignored.
3674     if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3675 pcg 1.1 am_cv_CC_dependencies_compiler_type=$depmode
3676     break
3677     fi
3678     fi
3679     done
3680    
3681     cd ..
3682     rm -rf conftest.dir
3683     else
3684     am_cv_CC_dependencies_compiler_type=none
3685     fi
3686    
3687     fi
3688 pcg 1.33 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3689     echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3690 pcg 1.1 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3691    
3692    
3693    
3694     if
3695     test "x$enable_dependency_tracking" != xno \
3696     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3697     am__fastdepCC_TRUE=
3698     am__fastdepCC_FALSE='#'
3699     else
3700     am__fastdepCC_TRUE='#'
3701     am__fastdepCC_FALSE=
3702     fi
3703    
3704    
3705    
3706 pcg 1.33 # Check whether --with-gnu-ld was given.
3707 pcg 1.1 if test "${with_gnu_ld+set}" = set; then
3708 pcg 1.33 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3709 pcg 1.1 else
3710     with_gnu_ld=no
3711 pcg 1.33 fi
3712    
3713 pcg 1.1 ac_prog=ld
3714     if test "$GCC" = yes; then
3715     # Check if gcc -print-prog-name=ld gives a path.
3716 pcg 1.33 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3717     echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
3718 pcg 1.1 case $host in
3719     *-*-mingw*)
3720     # gcc leaves a trailing carriage return which upsets mingw
3721     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3722     *)
3723     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3724     esac
3725     case $ac_prog in
3726     # Accept absolute paths.
3727     [\\/]* | [A-Za-z]:[\\/]*)
3728     re_direlt='/[^/][^/]*/\.\./'
3729     # Canonicalize the path of ld
3730     ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3731     while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3732     ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3733     done
3734     test -z "$LD" && LD="$ac_prog"
3735     ;;
3736     "")
3737     # If it fails, then pretend we aren't using GCC.
3738     ac_prog=ld
3739     ;;
3740     *)
3741     # If it is relative, then search for the first ld in PATH.
3742     with_gnu_ld=unknown
3743     ;;
3744     esac
3745     elif test "$with_gnu_ld" = yes; then
3746 pcg 1.33 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3747     echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3748 pcg 1.1 else
3749 pcg 1.33 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3750     echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3751 pcg 1.1 fi
3752     if test "${acl_cv_path_LD+set}" = set; then
3753     echo $ECHO_N "(cached) $ECHO_C" >&6
3754     else
3755     if test -z "$LD"; then
3756     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3757     for ac_dir in $PATH; do
3758     test -z "$ac_dir" && ac_dir=.
3759     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3760     acl_cv_path_LD="$ac_dir/$ac_prog"
3761     # Check to see if the program is GNU ld. I'd rather use --version,
3762     # but apparently some GNU ld's only accept -v.
3763     # Break only if it was the GNU/non-GNU ld that we prefer.
3764     if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3765     test "$with_gnu_ld" != no && break
3766     else
3767     test "$with_gnu_ld" != yes && break
3768     fi
3769     fi
3770     done
3771     IFS="$ac_save_ifs"
3772     else
3773     acl_cv_path_LD="$LD" # Let the user override the test with a path.
3774     fi
3775     fi
3776    
3777     LD="$acl_cv_path_LD"
3778     if test -n "$LD"; then
3779 pcg 1.33 { echo "$as_me:$LINENO: result: $LD" >&5
3780     echo "${ECHO_T}$LD" >&6; }
3781 pcg 1.1 else
3782 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
3783     echo "${ECHO_T}no" >&6; }
3784 pcg 1.1 fi
3785     test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3786     echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3787     { (exit 1); exit 1; }; }
3788 pcg 1.33 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3789     echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3790 pcg 1.1 if test "${acl_cv_prog_gnu_ld+set}" = set; then
3791     echo $ECHO_N "(cached) $ECHO_C" >&6
3792     else
3793     # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3794     if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3795     acl_cv_prog_gnu_ld=yes
3796     else
3797     acl_cv_prog_gnu_ld=no
3798     fi
3799     fi
3800 pcg 1.33 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
3801     echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
3802 pcg 1.1 with_gnu_ld=$acl_cv_prog_gnu_ld
3803    
3804    
3805    
3806 pcg 1.33 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
3807     echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
3808 pcg 1.1 if test "${acl_cv_rpath+set}" = set; then
3809     echo $ECHO_N "(cached) $ECHO_C" >&6
3810     else
3811    
3812     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3813     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3814     . ./conftest.sh
3815     rm -f ./conftest.sh
3816     acl_cv_rpath=done
3817    
3818     fi
3819 pcg 1.33 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
3820     echo "${ECHO_T}$acl_cv_rpath" >&6; }
3821 pcg 1.1 wl="$acl_cv_wl"
3822     libext="$acl_cv_libext"
3823     shlibext="$acl_cv_shlibext"
3824     hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3825     hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3826     hardcode_direct="$acl_cv_hardcode_direct"
3827     hardcode_minus_L="$acl_cv_hardcode_minus_L"
3828     sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
3829     sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
3830 pcg 1.33 # Check whether --enable-rpath was given.
3831 pcg 1.1 if test "${enable_rpath+set}" = set; then
3832 pcg 1.33 enableval=$enable_rpath; :
3833 pcg 1.1 else
3834     enable_rpath=yes
3835 pcg 1.33 fi
3836    
3837 pcg 1.1
3838    
3839    
3840    
3841    
3842    
3843    
3844     use_additional=yes
3845    
3846     acl_save_prefix="$prefix"
3847     prefix="$acl_final_prefix"
3848     acl_save_exec_prefix="$exec_prefix"
3849     exec_prefix="$acl_final_exec_prefix"
3850    
3851     eval additional_includedir=\"$includedir\"
3852     eval additional_libdir=\"$libdir\"
3853    
3854     exec_prefix="$acl_save_exec_prefix"
3855     prefix="$acl_save_prefix"
3856    
3857    
3858 pcg 1.33 # Check whether --with-libiconv-prefix was given.
3859 pcg 1.1 if test "${with_libiconv_prefix+set}" = set; then
3860 pcg 1.33 withval=$with_libiconv_prefix;
3861 pcg 1.1 if test "X$withval" = "Xno"; then
3862     use_additional=no
3863     else
3864     if test "X$withval" = "X"; then
3865    
3866     acl_save_prefix="$prefix"
3867     prefix="$acl_final_prefix"
3868     acl_save_exec_prefix="$exec_prefix"
3869     exec_prefix="$acl_final_exec_prefix"
3870    
3871     eval additional_includedir=\"$includedir\"
3872     eval additional_libdir=\"$libdir\"
3873    
3874     exec_prefix="$acl_save_exec_prefix"
3875     prefix="$acl_save_prefix"
3876    
3877     else
3878     additional_includedir="$withval/include"
3879     additional_libdir="$withval/lib"
3880     fi
3881     fi
3882    
3883 pcg 1.33 fi
3884    
3885 pcg 1.1 LIBICONV=
3886     LTLIBICONV=
3887     INCICONV=
3888     rpathdirs=
3889     ltrpathdirs=
3890     names_already_handled=
3891     names_next_round='iconv '
3892     while test -n "$names_next_round"; do
3893     names_this_round="$names_next_round"
3894     names_next_round=
3895     for name in $names_this_round; do
3896     already_handled=
3897     for n in $names_already_handled; do
3898     if test "$n" = "$name"; then
3899     already_handled=yes
3900     break
3901     fi
3902     done
3903     if test -z "$already_handled"; then
3904     names_already_handled="$names_already_handled $name"
3905     uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3906     eval value=\"\$HAVE_LIB$uppername\"
3907     if test -n "$value"; then
3908     if test "$value" = yes; then
3909     eval value=\"\$LIB$uppername\"
3910     test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
3911     eval value=\"\$LTLIB$uppername\"
3912     test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
3913     else
3914     :
3915     fi
3916     else
3917     found_dir=
3918     found_la=
3919     found_so=
3920     found_a=
3921     if test $use_additional = yes; then
3922     if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3923     found_dir="$additional_libdir"
3924     found_so="$additional_libdir/lib$name.$shlibext"
3925     if test -f "$additional_libdir/lib$name.la"; then
3926     found_la="$additional_libdir/lib$name.la"
3927     fi
3928     else
3929     if test -f "$additional_libdir/lib$name.$libext"; then
3930     found_dir="$additional_libdir"
3931     found_a="$additional_libdir/lib$name.$libext"
3932     if test -f "$additional_libdir/lib$name.la"; then
3933     found_la="$additional_libdir/lib$name.la"
3934     fi
3935     fi
3936     fi
3937     fi
3938     if test "X$found_dir" = "X"; then
3939     for x in $LDFLAGS $LTLIBICONV; do
3940    
3941     acl_save_prefix="$prefix"
3942     prefix="$acl_final_prefix"
3943     acl_save_exec_prefix="$exec_prefix"
3944     exec_prefix="$acl_final_exec_prefix"
3945     eval x=\"$x\"
3946     exec_prefix="$acl_save_exec_prefix"
3947     prefix="$acl_save_prefix"
3948    
3949     case "$x" in
3950     -L*)
3951     dir=`echo "X$x" | sed -e 's/^X-L//'`
3952     if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3953     found_dir="$dir"
3954     found_so="$dir/lib$name.$shlibext"
3955     if test -f "$dir/lib$name.la"; then
3956     found_la="$dir/lib$name.la"
3957     fi
3958     else
3959     if test -f "$dir/lib$name.$libext"; then
3960     found_dir="$dir"
3961     found_a="$dir/lib$name.$libext"
3962     if test -f "$dir/lib$name.la"; then
3963     found_la="$dir/lib$name.la"
3964     fi
3965     fi
3966     fi
3967     ;;
3968     esac
3969     if test "X$found_dir" != "X"; then
3970     break
3971     fi
3972     done
3973     fi
3974     if test "X$found_dir" != "X"; then
3975     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
3976     if test "X$found_so" != "X"; then
3977     if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
3978     LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3979     else
3980     haveit=
3981     for x in $ltrpathdirs; do
3982     if test "X$x" = "X$found_dir"; then
3983     haveit=yes
3984     break
3985     fi
3986     done
3987     if test -z "$haveit"; then
3988     ltrpathdirs="$ltrpathdirs $found_dir"
3989     fi
3990     if test "$hardcode_direct" = yes; then
3991     LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3992     else
3993     if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
3994     LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3995     haveit=
3996     for x in $rpathdirs; do
3997     if test "X$x" = "X$found_dir"; then
3998     haveit=yes
3999     break
4000     fi
4001     done
4002     if test -z "$haveit"; then
4003     rpathdirs="$rpathdirs $found_dir"
4004     fi
4005     else
4006     haveit=
4007     for x in $LDFLAGS $LIBICONV; do
4008    
4009     acl_save_prefix="$prefix"
4010     prefix="$acl_final_prefix"
4011     acl_save_exec_prefix="$exec_prefix"
4012     exec_prefix="$acl_final_exec_prefix"
4013     eval x=\"$x\"
4014     exec_prefix="$acl_save_exec_prefix"
4015     prefix="$acl_save_prefix"
4016    
4017     if test "X$x" = "X-L$found_dir"; then
4018     haveit=yes
4019     break
4020     fi
4021     done
4022     if test -z "$haveit"; then
4023     LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4024     fi
4025     if test "$hardcode_minus_L" != no; then
4026     LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4027     else
4028     LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4029     fi
4030     fi
4031     fi
4032     fi
4033     else
4034     if test "X$found_a" != "X"; then
4035     LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4036     else
4037     LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4038     fi
4039     fi
4040     additional_includedir=
4041     case "$found_dir" in
4042     */lib | */lib/)
4043     basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4044     additional_includedir="$basedir/include"
4045     ;;
4046     esac
4047     if test "X$additional_includedir" != "X"; then
4048     if test "X$additional_includedir" != "X/usr/include"; then
4049     haveit=
4050     if test "X$additional_includedir" = "X/usr/local/include"; then
4051     if test -n "$GCC"; then
4052     case $host_os in
4053     linux*) haveit=yes;;
4054     esac
4055     fi
4056     fi
4057     if test -z "$haveit"; then
4058     for x in $CPPFLAGS $INCICONV; do
4059    
4060     acl_save_prefix="$prefix"
4061     prefix="$acl_final_prefix"
4062     acl_save_exec_prefix="$exec_prefix"
4063     exec_prefix="$acl_final_exec_prefix"
4064     eval x=\"$x\"
4065     exec_prefix="$acl_save_exec_prefix"
4066     prefix="$acl_save_prefix"
4067    
4068     if test "X$x" = "X-I$additional_includedir"; then
4069     haveit=yes
4070     break
4071     fi
4072     done
4073     if test -z "$haveit"; then
4074     if test -d "$additional_includedir"; then
4075     INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4076     fi
4077     fi
4078     fi
4079     fi
4080     fi
4081     if test -n "$found_la"; then
4082     save_libdir="$libdir"
4083     case "$found_la" in
4084     */* | *\\*) . "$found_la" ;;
4085     *) . "./$found_la" ;;
4086     esac
4087     libdir="$save_libdir"
4088     for dep in $dependency_libs; do
4089     case "$dep" in
4090     -L*)
4091     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4092     if test "X$additional_libdir" != "X/usr/lib"; then
4093     haveit=
4094     if test "X$additional_libdir" = "X/usr/local/lib"; then
4095     if test -n "$GCC"; then
4096     case $host_os in
4097     linux*) haveit=yes;;
4098     esac
4099     fi
4100     fi
4101     if test -z "$haveit"; then
4102     haveit=
4103     for x in $LDFLAGS $LIBICONV; do
4104    
4105     acl_save_prefix="$prefix"
4106     prefix="$acl_final_prefix"
4107     acl_save_exec_prefix="$exec_prefix"
4108     exec_prefix="$acl_final_exec_prefix"
4109     eval x=\"$x\"
4110     exec_prefix="$acl_save_exec_prefix"
4111     prefix="$acl_save_prefix"
4112    
4113     if test "X$x" = "X-L$additional_libdir"; then
4114     haveit=yes
4115     break
4116     fi
4117     done
4118     if test -z "$haveit"; then
4119     if test -d "$additional_libdir"; then
4120     LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4121     fi
4122     fi
4123     haveit=
4124     for x in $LDFLAGS $LTLIBICONV; do
4125    
4126     acl_save_prefix="$prefix"
4127     prefix="$acl_final_prefix"
4128     acl_save_exec_prefix="$exec_prefix"
4129     exec_prefix="$acl_final_exec_prefix"
4130     eval x=\"$x\"
4131     exec_prefix="$acl_save_exec_prefix"
4132     prefix="$acl_save_prefix"
4133    
4134     if test "X$x" = "X-L$additional_libdir"; then
4135     haveit=yes
4136     break
4137     fi
4138     done
4139     if test -z "$haveit"; then
4140     if test -d "$additional_libdir"; then
4141     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4142     fi
4143     fi
4144     fi
4145     fi
4146     ;;
4147     -R*)
4148     dir=`echo "X$dep" | sed -e 's/^X-R//'`
4149     if test "$enable_rpath" != no; then
4150     haveit=
4151     for x in $rpathdirs; do
4152     if test "X$x" = "X$dir"; then
4153     haveit=yes
4154     break
4155     fi
4156     done
4157     if test -z "$haveit"; then
4158     rpathdirs="$rpathdirs $dir"
4159     fi
4160     haveit=
4161     for x in $ltrpathdirs; do
4162     if test "X$x" = "X$dir"; then
4163     haveit=yes
4164     break
4165     fi
4166     done
4167     if test -z "$haveit"; then
4168     ltrpathdirs="$ltrpathdirs $dir"
4169     fi
4170     fi
4171     ;;
4172     -l*)
4173     names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4174     ;;
4175     *.la)
4176     names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4177     ;;
4178     *)
4179     LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4180     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4181     ;;
4182     esac
4183     done
4184     fi
4185     else
4186     LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4187     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4188     fi
4189     fi
4190     fi
4191     done
4192     done
4193     if test "X$rpathdirs" != "X"; then
4194     if test -n "$hardcode_libdir_separator"; then
4195     alldirs=
4196     for found_dir in $rpathdirs; do
4197     alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4198     done
4199     acl_save_libdir="$libdir"
4200     libdir="$alldirs"
4201     eval flag=\"$hardcode_libdir_flag_spec\"
4202     libdir="$acl_save_libdir"
4203     LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4204     else
4205     for found_dir in $rpathdirs; do
4206     acl_save_libdir="$libdir"
4207     libdir="$found_dir"
4208     eval flag=\"$hardcode_libdir_flag_spec\"
4209     libdir="$acl_save_libdir"
4210     LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4211     done
4212     fi
4213     fi
4214     if test "X$ltrpathdirs" != "X"; then
4215     for found_dir in $ltrpathdirs; do
4216     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4217     done
4218     fi
4219    
4220    
4221    
4222    
4223    
4224    
4225    
4226    
4227    
4228    
4229    
4230    
4231    
4232    
4233    
4234    
4235    
4236    
4237 pcg 1.33 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4238     echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4239     # Check whether --enable-nls was given.
4240 pcg 1.1 if test "${enable_nls+set}" = set; then
4241 pcg 1.33 enableval=$enable_nls; USE_NLS=$enableval
4242 pcg 1.1 else
4243     USE_NLS=yes
4244 pcg 1.33 fi
4245    
4246     { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4247     echo "${ECHO_T}$USE_NLS" >&6; }
4248 pcg 1.1
4249    
4250    
4251     LIBINTL=
4252     LTLIBINTL=
4253     POSUB=
4254    
4255     if test "$USE_NLS" = "yes"; then
4256     gt_use_preinstalled_gnugettext=no
4257    
4258    
4259    
4260    
4261    
4262    
4263 pcg 1.33 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
4264     echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
4265 pcg 1.1 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
4266     echo $ECHO_N "(cached) $ECHO_C" >&6
4267     else
4268     cat >conftest.$ac_ext <<_ACEOF
4269     /* confdefs.h. */
4270     _ACEOF
4271     cat confdefs.h >>conftest.$ac_ext
4272     cat >>conftest.$ac_ext <<_ACEOF
4273     /* end confdefs.h. */
4274     #include <libintl.h>
4275     extern int _nl_msg_cat_cntr;
4276     extern int *_nl_domain_bindings;
4277     int
4278     main ()
4279     {
4280     bindtextdomain ("", "");
4281     return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
4282     ;
4283     return 0;
4284     }
4285     _ACEOF
4286     rm -f conftest.$ac_objext conftest$ac_exeext
4287 pcg 1.33 if { (ac_try="$ac_link"
4288     case "(($ac_try" in
4289     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290     *) ac_try_echo=$ac_try;;
4291     esac
4292     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293     (eval "$ac_link") 2>conftest.er1
4294 pcg 1.1 ac_status=$?
4295 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
4296     rm -f conftest.er1
4297     cat conftest.err >&5
4298 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 pcg 1.33 (exit $ac_status); } && {
4300     test -z "$ac_c_werror_flag" ||
4301     test ! -s conftest.err
4302     } && test -s conftest$ac_exeext &&
4303     $as_test_x conftest$ac_exeext; then
4304 pcg 1.1 gt_cv_func_gnugettext1_libc=yes
4305     else
4306     echo "$as_me: failed program was:" >&5
4307     sed 's/^/| /' conftest.$ac_ext >&5
4308    
4309 pcg 1.33 gt_cv_func_gnugettext1_libc=no
4310 pcg 1.1 fi
4311 pcg 1.33
4312     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4313 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
4314 pcg 1.1 fi
4315 pcg 1.33 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
4316     echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
4317 pcg 1.1
4318     if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4319    
4320    
4321    
4322    
4323    
4324     am_save_CPPFLAGS="$CPPFLAGS"
4325    
4326     for element in $INCICONV; do
4327     haveit=
4328     for x in $CPPFLAGS; do
4329    
4330     acl_save_prefix="$prefix"
4331     prefix="$acl_final_prefix"
4332     acl_save_exec_prefix="$exec_prefix"
4333     exec_prefix="$acl_final_exec_prefix"
4334     eval x=\"$x\"
4335     exec_prefix="$acl_save_exec_prefix"
4336     prefix="$acl_save_prefix"
4337    
4338     if test "X$x" = "X$element"; then
4339     haveit=yes
4340     break
4341     fi
4342     done
4343     if test -z "$haveit"; then
4344     CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4345     fi
4346     done
4347    
4348    
4349 pcg 1.33 { echo "$as_me:$LINENO: checking for iconv" >&5
4350     echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
4351 pcg 1.1 if test "${am_cv_func_iconv+set}" = set; then
4352     echo $ECHO_N "(cached) $ECHO_C" >&6
4353     else
4354    
4355     am_cv_func_iconv="no, consider installing GNU libiconv"
4356     am_cv_lib_iconv=no
4357     cat >conftest.$ac_ext <<_ACEOF
4358     /* confdefs.h. */
4359     _ACEOF
4360     cat confdefs.h >>conftest.$ac_ext
4361     cat >>conftest.$ac_ext <<_ACEOF
4362     /* end confdefs.h. */
4363     #include <stdlib.h>
4364     #include <iconv.h>
4365     int
4366     main ()
4367     {
4368     iconv_t cd = iconv_open("","");
4369     iconv(cd,NULL,NULL,NULL,NULL);
4370     iconv_close(cd);
4371     ;
4372     return 0;
4373     }
4374     _ACEOF
4375     rm -f conftest.$ac_objext conftest$ac_exeext
4376 pcg 1.33 if { (ac_try="$ac_link"
4377     case "(($ac_try" in
4378     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379     *) ac_try_echo=$ac_try;;
4380     esac
4381     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382     (eval "$ac_link") 2>conftest.er1
4383 pcg 1.1 ac_status=$?
4384 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
4385     rm -f conftest.er1
4386     cat conftest.err >&5
4387 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 pcg 1.33 (exit $ac_status); } && {
4389     test -z "$ac_c_werror_flag" ||
4390     test ! -s conftest.err
4391     } && test -s conftest$ac_exeext &&
4392     $as_test_x conftest$ac_exeext; then
4393 pcg 1.1 am_cv_func_iconv=yes
4394     else
4395     echo "$as_me: failed program was:" >&5
4396     sed 's/^/| /' conftest.$ac_ext >&5
4397    
4398 pcg 1.33
4399 pcg 1.1 fi
4400 pcg 1.33
4401     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4402 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
4403 pcg 1.1 if test "$am_cv_func_iconv" != yes; then
4404     am_save_LIBS="$LIBS"
4405     LIBS="$LIBS $LIBICONV"
4406     cat >conftest.$ac_ext <<_ACEOF
4407     /* confdefs.h. */
4408     _ACEOF
4409     cat confdefs.h >>conftest.$ac_ext
4410     cat >>conftest.$ac_ext <<_ACEOF
4411     /* end confdefs.h. */
4412     #include <stdlib.h>
4413     #include <iconv.h>
4414     int
4415     main ()
4416     {
4417     iconv_t cd = iconv_open("","");
4418     iconv(cd,NULL,NULL,NULL,NULL);
4419     iconv_close(cd);
4420     ;
4421     return 0;
4422     }
4423     _ACEOF
4424     rm -f conftest.$ac_objext conftest$ac_exeext
4425 pcg 1.33 if { (ac_try="$ac_link"
4426     case "(($ac_try" in
4427     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428     *) ac_try_echo=$ac_try;;
4429     esac
4430     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4431     (eval "$ac_link") 2>conftest.er1
4432 pcg 1.1 ac_status=$?
4433 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
4434     rm -f conftest.er1
4435     cat conftest.err >&5
4436 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 pcg 1.33 (exit $ac_status); } && {
4438     test -z "$ac_c_werror_flag" ||
4439     test ! -s conftest.err
4440     } && test -s conftest$ac_exeext &&
4441     $as_test_x conftest$ac_exeext; then
4442 pcg 1.1 am_cv_lib_iconv=yes
4443     am_cv_func_iconv=yes
4444     else
4445     echo "$as_me: failed program was:" >&5
4446     sed 's/^/| /' conftest.$ac_ext >&5
4447    
4448 pcg 1.33
4449 pcg 1.1 fi
4450 pcg 1.33
4451     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4452 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
4453 pcg 1.1 LIBS="$am_save_LIBS"
4454     fi
4455    
4456     fi
4457 pcg 1.33 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4458     echo "${ECHO_T}$am_cv_func_iconv" >&6; }
4459 pcg 1.1 if test "$am_cv_func_iconv" = yes; then
4460    
4461     cat >>confdefs.h <<\_ACEOF
4462     #define HAVE_ICONV 1
4463     _ACEOF
4464    
4465     fi
4466     if test "$am_cv_lib_iconv" = yes; then
4467 pcg 1.33 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
4468     echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
4469     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
4470     echo "${ECHO_T}$LIBICONV" >&6; }
4471 pcg 1.1 else
4472     CPPFLAGS="$am_save_CPPFLAGS"
4473     LIBICONV=
4474     LTLIBICONV=
4475     fi
4476    
4477    
4478    
4479    
4480    
4481    
4482     use_additional=yes
4483    
4484     acl_save_prefix="$prefix"
4485     prefix="$acl_final_prefix"
4486     acl_save_exec_prefix="$exec_prefix"
4487     exec_prefix="$acl_final_exec_prefix"
4488    
4489     eval additional_includedir=\"$includedir\"
4490     eval additional_libdir=\"$libdir\"
4491    
4492     exec_prefix="$acl_save_exec_prefix"
4493     prefix="$acl_save_prefix"
4494    
4495    
4496 pcg 1.33 # Check whether --with-libintl-prefix was given.
4497 pcg 1.1 if test "${with_libintl_prefix+set}" = set; then
4498 pcg 1.33 withval=$with_libintl_prefix;
4499 pcg 1.1 if test "X$withval" = "Xno"; then
4500     use_additional=no
4501     else
4502     if test "X$withval" = "X"; then
4503    
4504     acl_save_prefix="$prefix"
4505     prefix="$acl_final_prefix"
4506     acl_save_exec_prefix="$exec_prefix"
4507     exec_prefix="$acl_final_exec_prefix"
4508    
4509     eval additional_includedir=\"$includedir\"
4510     eval additional_libdir=\"$libdir\"
4511    
4512     exec_prefix="$acl_save_exec_prefix"
4513     prefix="$acl_save_prefix"
4514    
4515     else
4516     additional_includedir="$withval/include"
4517     additional_libdir="$withval/lib"
4518     fi
4519     fi
4520    
4521 pcg 1.33 fi
4522    
4523 pcg 1.1 LIBINTL=
4524     LTLIBINTL=
4525     INCINTL=
4526     rpathdirs=
4527     ltrpathdirs=
4528     names_already_handled=
4529     names_next_round='intl '
4530     while test -n "$names_next_round"; do
4531     names_this_round="$names_next_round"
4532     names_next_round=
4533     for name in $names_this_round; do
4534     already_handled=
4535     for n in $names_already_handled; do
4536     if test "$n" = "$name"; then
4537     already_handled=yes
4538     break
4539     fi
4540     done
4541     if test -z "$already_handled"; then
4542     names_already_handled="$names_already_handled $name"
4543     uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4544     eval value=\"\$HAVE_LIB$uppername\"
4545     if test -n "$value"; then
4546     if test "$value" = yes; then
4547     eval value=\"\$LIB$uppername\"
4548     test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4549     eval value=\"\$LTLIB$uppername\"
4550     test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4551     else
4552     :
4553     fi
4554     else
4555     found_dir=
4556     found_la=
4557     found_so=
4558     found_a=
4559     if test $use_additional = yes; then
4560     if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4561     found_dir="$additional_libdir"
4562     found_so="$additional_libdir/lib$name.$shlibext"
4563     if test -f "$additional_libdir/lib$name.la"; then
4564     found_la="$additional_libdir/lib$name.la"
4565     fi
4566     else
4567     if test -f "$additional_libdir/lib$name.$libext"; then
4568     found_dir="$additional_libdir"
4569     found_a="$additional_libdir/lib$name.$libext"
4570     if test -f "$additional_libdir/lib$name.la"; then
4571     found_la="$additional_libdir/lib$name.la"
4572     fi
4573     fi
4574     fi
4575     fi
4576     if test "X$found_dir" = "X"; then
4577     for x in $LDFLAGS $LTLIBINTL; do
4578    
4579     acl_save_prefix="$prefix"
4580     prefix="$acl_final_prefix"
4581     acl_save_exec_prefix="$exec_prefix"
4582     exec_prefix="$acl_final_exec_prefix"
4583     eval x=\"$x\"
4584     exec_prefix="$acl_save_exec_prefix"
4585     prefix="$acl_save_prefix"
4586    
4587     case "$x" in
4588     -L*)
4589     dir=`echo "X$x" | sed -e 's/^X-L//'`
4590     if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4591     found_dir="$dir"
4592     found_so="$dir/lib$name.$shlibext"
4593     if test -f "$dir/lib$name.la"; then
4594     found_la="$dir/lib$name.la"
4595     fi
4596     else
4597     if test -f "$dir/lib$name.$libext"; then
4598     found_dir="$dir"
4599     found_a="$dir/lib$name.$libext"
4600     if test -f "$dir/lib$name.la"; then
4601     found_la="$dir/lib$name.la"
4602     fi
4603     fi
4604     fi
4605     ;;
4606     esac
4607     if test "X$found_dir" != "X"; then
4608     break
4609     fi
4610     done
4611     fi
4612     if test "X$found_dir" != "X"; then
4613     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4614     if test "X$found_so" != "X"; then
4615     if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4616     LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4617     else
4618     haveit=
4619     for x in $ltrpathdirs; do
4620     if test "X$x" = "X$found_dir"; then
4621     haveit=yes
4622     break
4623     fi
4624     done
4625     if test -z "$haveit"; then
4626     ltrpathdirs="$ltrpathdirs $found_dir"
4627     fi
4628     if test "$hardcode_direct" = yes; then
4629     LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4630     else
4631     if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4632     LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4633     haveit=
4634     for x in $rpathdirs; do
4635     if test "X$x" = "X$found_dir"; then
4636     haveit=yes
4637     break
4638     fi
4639     done
4640     if test -z "$haveit"; then
4641     rpathdirs="$rpathdirs $found_dir"
4642     fi
4643     else
4644     haveit=
4645     for x in $LDFLAGS $LIBINTL; do
4646    
4647     acl_save_prefix="$prefix"
4648     prefix="$acl_final_prefix"
4649     acl_save_exec_prefix="$exec_prefix"
4650     exec_prefix="$acl_final_exec_prefix"
4651     eval x=\"$x\"
4652     exec_prefix="$acl_save_exec_prefix"
4653     prefix="$acl_save_prefix"
4654    
4655     if test "X$x" = "X-L$found_dir"; then
4656     haveit=yes
4657     break
4658     fi
4659     done
4660     if test -z "$haveit"; then
4661     LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
4662     fi
4663     if test "$hardcode_minus_L" != no; then
4664     LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4665     else
4666     LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4667     fi
4668     fi
4669     fi
4670     fi
4671     else
4672     if test "X$found_a" != "X"; then
4673     LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
4674     else
4675     LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
4676     fi
4677     fi
4678     additional_includedir=
4679     case "$found_dir" in
4680     */lib | */lib/)
4681     basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4682     additional_includedir="$basedir/include"
4683     ;;
4684     esac
4685     if test "X$additional_includedir" != "X"; then
4686     if test "X$additional_includedir" != "X/usr/include"; then
4687     haveit=
4688     if test "X$additional_includedir" = "X/usr/local/include"; then
4689     if test -n "$GCC"; then
4690     case $host_os in
4691     linux*) haveit=yes;;
4692     esac
4693     fi
4694     fi
4695     if test -z "$haveit"; then
4696     for x in $CPPFLAGS $INCINTL; do
4697    
4698     acl_save_prefix="$prefix"
4699     prefix="$acl_final_prefix"
4700     acl_save_exec_prefix="$exec_prefix"
4701     exec_prefix="$acl_final_exec_prefix"
4702     eval x=\"$x\"
4703     exec_prefix="$acl_save_exec_prefix"
4704     prefix="$acl_save_prefix"
4705    
4706     if test "X$x" = "X-I$additional_includedir"; then
4707     haveit=yes
4708     break
4709     fi
4710     done
4711     if test -z "$haveit"; then
4712     if test -d "$additional_includedir"; then
4713     INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
4714     fi
4715     fi
4716     fi
4717     fi
4718     fi
4719     if test -n "$found_la"; then
4720     save_libdir="$libdir"
4721     case "$found_la" in
4722     */* | *\\*) . "$found_la" ;;
4723     *) . "./$found_la" ;;
4724     esac
4725     libdir="$save_libdir"
4726     for dep in $dependency_libs; do
4727     case "$dep" in
4728     -L*)
4729     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4730     if test "X$additional_libdir" != "X/usr/lib"; then
4731     haveit=
4732     if test "X$additional_libdir" = "X/usr/local/lib"; then
4733     if test -n "$GCC"; then
4734     case $host_os in
4735     linux*) haveit=yes;;
4736     esac
4737     fi
4738     fi
4739     if test -z "$haveit"; then
4740     haveit=
4741     for x in $LDFLAGS $LIBINTL; do
4742    
4743     acl_save_prefix="$prefix"
4744     prefix="$acl_final_prefix"
4745     acl_save_exec_prefix="$exec_prefix"
4746     exec_prefix="$acl_final_exec_prefix"
4747     eval x=\"$x\"
4748     exec_prefix="$acl_save_exec_prefix"
4749     prefix="$acl_save_prefix"
4750    
4751     if test "X$x" = "X-L$additional_libdir"; then
4752     haveit=yes
4753     break
4754     fi
4755     done
4756     if test -z "$haveit"; then
4757     if test -d "$additional_libdir"; then
4758     LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
4759     fi
4760     fi
4761     haveit=
4762     for x in $LDFLAGS $LTLIBINTL; do
4763    
4764     acl_save_prefix="$prefix"
4765     prefix="$acl_final_prefix"
4766     acl_save_exec_prefix="$exec_prefix"
4767     exec_prefix="$acl_final_exec_prefix"
4768     eval x=\"$x\"
4769     exec_prefix="$acl_save_exec_prefix"
4770     prefix="$acl_save_prefix"
4771    
4772     if test "X$x" = "X-L$additional_libdir"; then
4773     haveit=yes
4774     break
4775     fi
4776     done
4777     if test -z "$haveit"; then
4778     if test -d "$additional_libdir"; then
4779     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
4780     fi
4781     fi
4782     fi
4783     fi
4784     ;;
4785     -R*)
4786     dir=`echo "X$dep" | sed -e 's/^X-R//'`
4787     if test "$enable_rpath" != no; then
4788     haveit=
4789     for x in $rpathdirs; do
4790     if test "X$x" = "X$dir"; then
4791     haveit=yes
4792     break
4793     fi
4794     done
4795     if test -z "$haveit"; then
4796     rpathdirs="$rpathdirs $dir"
4797     fi
4798     haveit=
4799     for x in $ltrpathdirs; do
4800     if test "X$x" = "X$dir"; then
4801     haveit=yes
4802     break
4803     fi
4804     done
4805     if test -z "$haveit"; then
4806     ltrpathdirs="$ltrpathdirs $dir"
4807     fi
4808     fi
4809     ;;
4810     -l*)
4811     names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4812     ;;
4813     *.la)
4814     names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4815     ;;
4816     *)
4817     LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
4818     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
4819     ;;
4820     esac
4821     done
4822     fi
4823     else
4824     LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4825     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
4826     fi
4827     fi
4828     fi
4829     done
4830     done
4831     if test "X$rpathdirs" != "X"; then
4832     if test -n "$hardcode_libdir_separator"; then
4833     alldirs=
4834     for found_dir in $rpathdirs; do
4835     alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4836     done
4837     acl_save_libdir="$libdir"
4838     libdir="$alldirs"
4839     eval flag=\"$hardcode_libdir_flag_spec\"
4840     libdir="$acl_save_libdir"
4841     LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4842     else
4843     for found_dir in $rpathdirs; do
4844     acl_save_libdir="$libdir"
4845     libdir="$found_dir"
4846     eval flag=\"$hardcode_libdir_flag_spec\"
4847     libdir="$acl_save_libdir"
4848     LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4849     done
4850     fi
4851     fi
4852     if test "X$ltrpathdirs" != "X"; then
4853     for found_dir in $ltrpathdirs; do
4854     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
4855     done
4856     fi
4857    
4858 pcg 1.33 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
4859     echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
4860 pcg 1.1 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
4861     echo $ECHO_N "(cached) $ECHO_C" >&6
4862     else
4863     gt_save_CPPFLAGS="$CPPFLAGS"
4864     CPPFLAGS="$CPPFLAGS $INCINTL"
4865     gt_save_LIBS="$LIBS"
4866     LIBS="$LIBS $LIBINTL"
4867     cat >conftest.$ac_ext <<_ACEOF
4868     /* confdefs.h. */
4869     _ACEOF
4870     cat confdefs.h >>conftest.$ac_ext
4871     cat >>conftest.$ac_ext <<_ACEOF
4872     /* end confdefs.h. */
4873     #include <libintl.h>
4874     extern int _nl_msg_cat_cntr;
4875     extern
4876     #ifdef __cplusplus
4877     "C"
4878     #endif
4879     const char *_nl_expand_alias ();
4880     int
4881     main ()
4882     {
4883     bindtextdomain ("", "");
4884     return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4885     ;
4886     return 0;
4887     }
4888     _ACEOF
4889     rm -f conftest.$ac_objext conftest$ac_exeext
4890 pcg 1.33 if { (ac_try="$ac_link"
4891     case "(($ac_try" in
4892     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4893     *) ac_try_echo=$ac_try;;
4894     esac
4895     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4896     (eval "$ac_link") 2>conftest.er1
4897 pcg 1.1 ac_status=$?
4898 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
4899     rm -f conftest.er1
4900     cat conftest.err >&5
4901 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 pcg 1.33 (exit $ac_status); } && {
4903     test -z "$ac_c_werror_flag" ||
4904     test ! -s conftest.err
4905     } && test -s conftest$ac_exeext &&
4906     $as_test_x conftest$ac_exeext; then
4907 pcg 1.1 gt_cv_func_gnugettext1_libintl=yes
4908     else
4909     echo "$as_me: failed program was:" >&5
4910     sed 's/^/| /' conftest.$ac_ext >&5
4911    
4912 pcg 1.33 gt_cv_func_gnugettext1_libintl=no
4913 pcg 1.1 fi
4914 pcg 1.33
4915     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4916 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
4917 pcg 1.1 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
4918     LIBS="$LIBS $LIBICONV"
4919     cat >conftest.$ac_ext <<_ACEOF
4920     /* confdefs.h. */
4921     _ACEOF
4922     cat confdefs.h >>conftest.$ac_ext
4923     cat >>conftest.$ac_ext <<_ACEOF
4924     /* end confdefs.h. */
4925     #include <libintl.h>
4926     extern int _nl_msg_cat_cntr;
4927     extern
4928     #ifdef __cplusplus
4929     "C"
4930     #endif
4931     const char *_nl_expand_alias ();
4932     int
4933     main ()
4934     {
4935     bindtextdomain ("", "");
4936     return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4937     ;
4938     return 0;
4939     }
4940     _ACEOF
4941     rm -f conftest.$ac_objext conftest$ac_exeext
4942 pcg 1.33 if { (ac_try="$ac_link"
4943     case "(($ac_try" in
4944     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945     *) ac_try_echo=$ac_try;;
4946     esac
4947     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4948     (eval "$ac_link") 2>conftest.er1
4949 pcg 1.1 ac_status=$?
4950 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
4951     rm -f conftest.er1
4952     cat conftest.err >&5
4953 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 pcg 1.33 (exit $ac_status); } && {
4955     test -z "$ac_c_werror_flag" ||
4956     test ! -s conftest.err
4957     } && test -s conftest$ac_exeext &&
4958     $as_test_x conftest$ac_exeext; then
4959 pcg 1.1 LIBINTL="$LIBINTL $LIBICONV"
4960     LTLIBINTL="$LTLIBINTL $LTLIBICONV"
4961     gt_cv_func_gnugettext1_libintl=yes
4962    
4963     else
4964     echo "$as_me: failed program was:" >&5
4965     sed 's/^/| /' conftest.$ac_ext >&5
4966    
4967 pcg 1.33
4968 pcg 1.1 fi
4969 pcg 1.33
4970     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4971 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
4972 pcg 1.1 fi
4973     CPPFLAGS="$gt_save_CPPFLAGS"
4974     LIBS="$gt_save_LIBS"
4975     fi
4976 pcg 1.33 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
4977     echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
4978 pcg 1.1 fi
4979    
4980     if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4981     || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4982     && test "$PACKAGE" != gettext; }; then
4983     gt_use_preinstalled_gnugettext=yes
4984     else
4985     LIBINTL=
4986     LTLIBINTL=
4987     INCINTL=
4988     fi
4989    
4990    
4991    
4992     if test "$gt_use_preinstalled_gnugettext" = "yes" \
4993     || test "$nls_cv_use_gnu_gettext" = "yes"; then
4994    
4995     cat >>confdefs.h <<\_ACEOF
4996     #define ENABLE_NLS 1
4997     _ACEOF
4998    
4999     else
5000     USE_NLS=no
5001     fi
5002     fi
5003    
5004     if test "$USE_NLS" = "yes"; then
5005    
5006     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5007     if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5008 pcg 1.33 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
5009     echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
5010     { echo "$as_me:$LINENO: result: $LIBINTL" >&5
5011     echo "${ECHO_T}$LIBINTL" >&6; }
5012 pcg 1.1
5013     for element in $INCINTL; do
5014     haveit=
5015     for x in $CPPFLAGS; do
5016    
5017     acl_save_prefix="$prefix"
5018     prefix="$acl_final_prefix"
5019     acl_save_exec_prefix="$exec_prefix"
5020     exec_prefix="$acl_final_exec_prefix"
5021     eval x=\"$x\"
5022     exec_prefix="$acl_save_exec_prefix"
5023     prefix="$acl_save_prefix"
5024    
5025     if test "X$x" = "X$element"; then
5026     haveit=yes
5027     break
5028     fi
5029     done
5030     if test -z "$haveit"; then
5031     CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5032     fi
5033     done
5034    
5035     fi
5036    
5037    
5038     cat >>confdefs.h <<\_ACEOF
5039     #define HAVE_GETTEXT 1
5040     _ACEOF
5041    
5042    
5043     cat >>confdefs.h <<\_ACEOF
5044     #define HAVE_DCGETTEXT 1
5045     _ACEOF
5046    
5047     fi
5048    
5049     POSUB=po
5050     fi
5051    
5052    
5053    
5054     INTLLIBS="$LIBINTL"
5055    
5056    
5057    
5058    
5059    
5060    
5061    
5062    
5063     # Enable GNU extensions.
5064     # Define this here, not in acconfig's @TOP@ section, since definitions
5065     # in the latter don't make it into the configure-time tests.
5066    
5067     cat >>confdefs.h <<\_ACEOF
5068     #define _GNU_SOURCE 1
5069     _ACEOF
5070    
5071    
5072 pcg 1.13 # do NOT define POSIX_SOURCE, sicne this clashes with many BSDs
5073 pcg 1.1
5074     ALL_LINGUAS=""
5075    
5076     ac_ext=c
5077     ac_cpp='$CPP $CPPFLAGS'
5078     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080     ac_compiler_gnu=$ac_cv_c_compiler_gnu
5081     if test -n "$ac_tool_prefix"; then
5082     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5083     set dummy ${ac_tool_prefix}gcc; ac_word=$2
5084 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5085     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5086 pcg 1.1 if test "${ac_cv_prog_CC+set}" = set; then
5087     echo $ECHO_N "(cached) $ECHO_C" >&6
5088     else
5089     if test -n "$CC"; then
5090     ac_cv_prog_CC="$CC" # Let the user override the test.
5091     else
5092     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093     for as_dir in $PATH
5094     do
5095     IFS=$as_save_IFS
5096     test -z "$as_dir" && as_dir=.
5097     for ac_exec_ext in '' $ac_executable_extensions; do
5098 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099 pcg 1.1 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101     break 2
5102     fi
5103     done
5104     done
5105 pcg 1.33 IFS=$as_save_IFS
5106 pcg 1.1
5107     fi
5108     fi
5109     CC=$ac_cv_prog_CC
5110     if test -n "$CC"; then
5111 pcg 1.33 { echo "$as_me:$LINENO: result: $CC" >&5
5112     echo "${ECHO_T}$CC" >&6; }
5113 pcg 1.1 else
5114 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
5115     echo "${ECHO_T}no" >&6; }
5116 pcg 1.1 fi
5117    
5118 pcg 1.33
5119 pcg 1.1 fi
5120     if test -z "$ac_cv_prog_CC"; then
5121     ac_ct_CC=$CC
5122     # Extract the first word of "gcc", so it can be a program name with args.
5123     set dummy gcc; ac_word=$2
5124 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5125     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5126 pcg 1.1 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5127     echo $ECHO_N "(cached) $ECHO_C" >&6
5128     else
5129     if test -n "$ac_ct_CC"; then
5130     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5131     else
5132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133     for as_dir in $PATH
5134     do
5135     IFS=$as_save_IFS
5136     test -z "$as_dir" && as_dir=.
5137     for ac_exec_ext in '' $ac_executable_extensions; do
5138 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139 pcg 1.1 ac_cv_prog_ac_ct_CC="gcc"
5140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5141     break 2
5142     fi
5143     done
5144     done
5145 pcg 1.33 IFS=$as_save_IFS
5146 pcg 1.1
5147     fi
5148     fi
5149     ac_ct_CC=$ac_cv_prog_ac_ct_CC
5150     if test -n "$ac_ct_CC"; then
5151 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5152     echo "${ECHO_T}$ac_ct_CC" >&6; }
5153 pcg 1.1 else
5154 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
5155     echo "${ECHO_T}no" >&6; }
5156 pcg 1.1 fi
5157    
5158 pcg 1.33 if test "x$ac_ct_CC" = x; then
5159     CC=""
5160     else
5161     case $cross_compiling:$ac_tool_warned in
5162     yes:)
5163     { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5164     whose name does not start with the host triplet. If you think this
5165     configuration is useful to you, please write to autoconf@gnu.org." >&5
5166     echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5167     whose name does not start with the host triplet. If you think this
5168     configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5169     ac_tool_warned=yes ;;
5170     esac
5171     CC=$ac_ct_CC
5172     fi
5173 pcg 1.1 else
5174     CC="$ac_cv_prog_CC"
5175     fi
5176    
5177     if test -z "$CC"; then
5178 pcg 1.33 if test -n "$ac_tool_prefix"; then
5179     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5180 pcg 1.1 set dummy ${ac_tool_prefix}cc; ac_word=$2
5181 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5182     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5183 pcg 1.1 if test "${ac_cv_prog_CC+set}" = set; then
5184     echo $ECHO_N "(cached) $ECHO_C" >&6
5185     else
5186     if test -n "$CC"; then
5187     ac_cv_prog_CC="$CC" # Let the user override the test.
5188     else
5189     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190     for as_dir in $PATH
5191     do
5192     IFS=$as_save_IFS
5193     test -z "$as_dir" && as_dir=.
5194     for ac_exec_ext in '' $ac_executable_extensions; do
5195 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 pcg 1.1 ac_cv_prog_CC="${ac_tool_prefix}cc"
5197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198     break 2
5199     fi
5200     done
5201     done
5202 pcg 1.33 IFS=$as_save_IFS
5203 pcg 1.1
5204     fi
5205     fi
5206     CC=$ac_cv_prog_CC
5207     if test -n "$CC"; then
5208 pcg 1.33 { echo "$as_me:$LINENO: result: $CC" >&5
5209     echo "${ECHO_T}$CC" >&6; }
5210 pcg 1.1 else
5211 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
5212     echo "${ECHO_T}no" >&6; }
5213 pcg 1.1 fi
5214    
5215 pcg 1.33
5216 pcg 1.1 fi
5217     fi
5218     if test -z "$CC"; then
5219     # Extract the first word of "cc", so it can be a program name with args.
5220     set dummy cc; ac_word=$2
5221 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5222     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5223 pcg 1.1 if test "${ac_cv_prog_CC+set}" = set; then
5224     echo $ECHO_N "(cached) $ECHO_C" >&6
5225     else
5226     if test -n "$CC"; then
5227     ac_cv_prog_CC="$CC" # Let the user override the test.
5228     else
5229     ac_prog_rejected=no
5230     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231     for as_dir in $PATH
5232     do
5233     IFS=$as_save_IFS
5234     test -z "$as_dir" && as_dir=.
5235     for ac_exec_ext in '' $ac_executable_extensions; do
5236 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5237 pcg 1.1 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5238     ac_prog_rejected=yes
5239     continue
5240     fi
5241     ac_cv_prog_CC="cc"
5242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243     break 2
5244     fi
5245     done
5246     done
5247 pcg 1.33 IFS=$as_save_IFS
5248 pcg 1.1
5249     if test $ac_prog_rejected = yes; then
5250     # We found a bogon in the path, so make sure we never use it.
5251     set dummy $ac_cv_prog_CC
5252     shift
5253     if test $# != 0; then
5254     # We chose a different compiler from the bogus one.
5255     # However, it has the same basename, so the bogon will be chosen
5256     # first if we set CC to just the basename; use the full file name.
5257     shift
5258     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5259     fi
5260     fi
5261     fi
5262     fi
5263     CC=$ac_cv_prog_CC
5264     if test -n "$CC"; then
5265 pcg 1.33 { echo "$as_me:$LINENO: result: $CC" >&5
5266     echo "${ECHO_T}$CC" >&6; }
5267 pcg 1.1 else
5268 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
5269     echo "${ECHO_T}no" >&6; }
5270 pcg 1.1 fi
5271    
5272 pcg 1.33
5273 pcg 1.1 fi
5274     if test -z "$CC"; then
5275     if test -n "$ac_tool_prefix"; then
5276 pcg 1.33 for ac_prog in cl.exe
5277 pcg 1.1 do
5278     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5279     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5280 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5281     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5282 pcg 1.1 if test "${ac_cv_prog_CC+set}" = set; then
5283     echo $ECHO_N "(cached) $ECHO_C" >&6
5284     else
5285     if test -n "$CC"; then
5286     ac_cv_prog_CC="$CC" # Let the user override the test.
5287     else
5288     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289     for as_dir in $PATH
5290     do
5291     IFS=$as_save_IFS
5292     test -z "$as_dir" && as_dir=.
5293     for ac_exec_ext in '' $ac_executable_extensions; do
5294 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295 pcg 1.1 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297     break 2
5298     fi
5299     done
5300     done
5301 pcg 1.33 IFS=$as_save_IFS
5302 pcg 1.1
5303     fi
5304     fi
5305     CC=$ac_cv_prog_CC
5306     if test -n "$CC"; then
5307 pcg 1.33 { echo "$as_me:$LINENO: result: $CC" >&5
5308     echo "${ECHO_T}$CC" >&6; }
5309 pcg 1.1 else
5310 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
5311     echo "${ECHO_T}no" >&6; }
5312 pcg 1.1 fi
5313    
5314 pcg 1.33
5315 pcg 1.1 test -n "$CC" && break
5316     done
5317     fi
5318     if test -z "$CC"; then
5319     ac_ct_CC=$CC
5320 pcg 1.33 for ac_prog in cl.exe
5321 pcg 1.1 do
5322     # Extract the first word of "$ac_prog", so it can be a program name with args.
5323     set dummy $ac_prog; ac_word=$2
5324 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5325     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5326 pcg 1.1 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5327     echo $ECHO_N "(cached) $ECHO_C" >&6
5328     else
5329     if test -n "$ac_ct_CC"; then
5330     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5331     else
5332     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333     for as_dir in $PATH
5334     do
5335     IFS=$as_save_IFS
5336     test -z "$as_dir" && as_dir=.
5337     for ac_exec_ext in '' $ac_executable_extensions; do
5338 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5339 pcg 1.1 ac_cv_prog_ac_ct_CC="$ac_prog"
5340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5341     break 2
5342     fi
5343     done
5344     done
5345 pcg 1.33 IFS=$as_save_IFS
5346 pcg 1.1
5347     fi
5348     fi
5349     ac_ct_CC=$ac_cv_prog_ac_ct_CC
5350     if test -n "$ac_ct_CC"; then
5351 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5352     echo "${ECHO_T}$ac_ct_CC" >&6; }
5353 pcg 1.1 else
5354 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
5355     echo "${ECHO_T}no" >&6; }
5356 pcg 1.1 fi
5357    
5358 pcg 1.33
5359 pcg 1.1 test -n "$ac_ct_CC" && break
5360     done
5361    
5362 pcg 1.33 if test "x$ac_ct_CC" = x; then
5363     CC=""
5364     else
5365     case $cross_compiling:$ac_tool_warned in
5366     yes:)
5367     { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5368     whose name does not start with the host triplet. If you think this
5369     configuration is useful to you, please write to autoconf@gnu.org." >&5
5370     echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5371     whose name does not start with the host triplet. If you think this
5372     configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5373     ac_tool_warned=yes ;;
5374     esac
5375     CC=$ac_ct_CC
5376     fi
5377 pcg 1.1 fi
5378    
5379     fi
5380    
5381    
5382     test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5383     See \`config.log' for more details." >&5
5384     echo "$as_me: error: no acceptable C compiler found in \$PATH
5385     See \`config.log' for more details." >&2;}
5386     { (exit 1); exit 1; }; }
5387    
5388     # Provide some information about the compiler.
5389 pcg 1.33 echo "$as_me:$LINENO: checking for C compiler version" >&5
5390 pcg 1.1 ac_compiler=`set X $ac_compile; echo $2`
5391 pcg 1.33 { (ac_try="$ac_compiler --version >&5"
5392     case "(($ac_try" in
5393     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394     *) ac_try_echo=$ac_try;;
5395     esac
5396     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397     (eval "$ac_compiler --version >&5") 2>&5
5398 pcg 1.1 ac_status=$?
5399     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400     (exit $ac_status); }
5401 pcg 1.33 { (ac_try="$ac_compiler -v >&5"
5402     case "(($ac_try" in
5403     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404     *) ac_try_echo=$ac_try;;
5405     esac
5406     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407     (eval "$ac_compiler -v >&5") 2>&5
5408 pcg 1.1 ac_status=$?
5409     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410     (exit $ac_status); }
5411 pcg 1.33 { (ac_try="$ac_compiler -V >&5"
5412     case "(($ac_try" in
5413     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414     *) ac_try_echo=$ac_try;;
5415     esac
5416     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417     (eval "$ac_compiler -V >&5") 2>&5
5418 pcg 1.1 ac_status=$?
5419     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420     (exit $ac_status); }
5421    
5422 pcg 1.33 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5423     echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5424 pcg 1.1 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5425     echo $ECHO_N "(cached) $ECHO_C" >&6
5426     else
5427     cat >conftest.$ac_ext <<_ACEOF
5428     /* confdefs.h. */
5429     _ACEOF
5430     cat confdefs.h >>conftest.$ac_ext
5431     cat >>conftest.$ac_ext <<_ACEOF
5432     /* end confdefs.h. */
5433    
5434     int
5435     main ()
5436     {
5437     #ifndef __GNUC__
5438     choke me
5439     #endif
5440    
5441     ;
5442     return 0;
5443     }
5444     _ACEOF
5445     rm -f conftest.$ac_objext
5446 pcg 1.33 if { (ac_try="$ac_compile"
5447     case "(($ac_try" in
5448     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449     *) ac_try_echo=$ac_try;;
5450     esac
5451     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5452     (eval "$ac_compile") 2>conftest.er1
5453 pcg 1.1 ac_status=$?
5454 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
5455     rm -f conftest.er1
5456     cat conftest.err >&5
5457 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 pcg 1.33 (exit $ac_status); } && {
5459     test -z "$ac_c_werror_flag" ||
5460     test ! -s conftest.err
5461     } && test -s conftest.$ac_objext; then
5462 pcg 1.1 ac_compiler_gnu=yes
5463     else
5464     echo "$as_me: failed program was:" >&5
5465     sed 's/^/| /' conftest.$ac_ext >&5
5466    
5467 pcg 1.33 ac_compiler_gnu=no
5468 pcg 1.1 fi
5469 pcg 1.33
5470     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 pcg 1.1 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5472    
5473     fi
5474 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5475     echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5476 pcg 1.1 GCC=`test $ac_compiler_gnu = yes && echo yes`
5477     ac_test_CFLAGS=${CFLAGS+set}
5478     ac_save_CFLAGS=$CFLAGS
5479 pcg 1.33 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5480     echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5481 pcg 1.1 if test "${ac_cv_prog_cc_g+set}" = set; then
5482     echo $ECHO_N "(cached) $ECHO_C" >&6
5483     else
5484 pcg 1.33 ac_save_c_werror_flag=$ac_c_werror_flag
5485     ac_c_werror_flag=yes
5486     ac_cv_prog_cc_g=no
5487     CFLAGS="-g"
5488     cat >conftest.$ac_ext <<_ACEOF
5489 pcg 1.1 /* confdefs.h. */
5490     _ACEOF
5491     cat confdefs.h >>conftest.$ac_ext
5492     cat >>conftest.$ac_ext <<_ACEOF
5493     /* end confdefs.h. */
5494    
5495     int
5496     main ()
5497     {
5498    
5499     ;
5500     return 0;
5501     }
5502     _ACEOF
5503     rm -f conftest.$ac_objext
5504 pcg 1.33 if { (ac_try="$ac_compile"
5505     case "(($ac_try" in
5506     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507     *) ac_try_echo=$ac_try;;
5508     esac
5509     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510     (eval "$ac_compile") 2>conftest.er1
5511 pcg 1.1 ac_status=$?
5512 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
5513     rm -f conftest.er1
5514     cat conftest.err >&5
5515 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 pcg 1.33 (exit $ac_status); } && {
5517     test -z "$ac_c_werror_flag" ||
5518     test ! -s conftest.err
5519     } && test -s conftest.$ac_objext; then
5520 pcg 1.1 ac_cv_prog_cc_g=yes
5521     else
5522     echo "$as_me: failed program was:" >&5
5523     sed 's/^/| /' conftest.$ac_ext >&5
5524    
5525 pcg 1.33 CFLAGS=""
5526     cat >conftest.$ac_ext <<_ACEOF
5527 pcg 1.1 /* confdefs.h. */
5528     _ACEOF
5529     cat confdefs.h >>conftest.$ac_ext
5530     cat >>conftest.$ac_ext <<_ACEOF
5531     /* end confdefs.h. */
5532 pcg 1.33
5533     int
5534     main ()
5535 pcg 1.1 {
5536 pcg 1.33
5537     ;
5538     return 0;
5539 pcg 1.1 }
5540 pcg 1.33 _ACEOF
5541     rm -f conftest.$ac_objext
5542     if { (ac_try="$ac_compile"
5543     case "(($ac_try" in
5544     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545     *) ac_try_echo=$ac_try;;
5546     esac
5547     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548     (eval "$ac_compile") 2>conftest.er1
5549 pcg 1.1 ac_status=$?
5550 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
5551     rm -f conftest.er1
5552     cat conftest.err >&5
5553 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 pcg 1.33 (exit $ac_status); } && {
5555     test -z "$ac_c_werror_flag" ||
5556     test ! -s conftest.err
5557     } && test -s conftest.$ac_objext; then
5558     :
5559 pcg 1.1 else
5560     echo "$as_me: failed program was:" >&5
5561     sed 's/^/| /' conftest.$ac_ext >&5
5562    
5563 pcg 1.33 ac_c_werror_flag=$ac_save_c_werror_flag
5564     CFLAGS="-g"
5565     cat >conftest.$ac_ext <<_ACEOF
5566 pcg 1.1 /* confdefs.h. */
5567     _ACEOF
5568     cat confdefs.h >>conftest.$ac_ext
5569     cat >>conftest.$ac_ext <<_ACEOF
5570     /* end confdefs.h. */
5571 pcg 1.33
5572 pcg 1.1 int
5573     main ()
5574     {
5575 pcg 1.33
5576 pcg 1.1 ;
5577     return 0;
5578     }
5579     _ACEOF
5580     rm -f conftest.$ac_objext
5581 pcg 1.33 if { (ac_try="$ac_compile"
5582     case "(($ac_try" in
5583     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584     *) ac_try_echo=$ac_try;;
5585     esac
5586     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587     (eval "$ac_compile") 2>conftest.er1
5588 pcg 1.1 ac_status=$?
5589 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
5590     rm -f conftest.er1
5591     cat conftest.err >&5
5592 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 pcg 1.33 (exit $ac_status); } && {
5594     test -z "$ac_c_werror_flag" ||
5595     test ! -s conftest.err
5596     } && test -s conftest.$ac_objext; then
5597     ac_cv_prog_cc_g=yes
5598 pcg 1.1 else
5599     echo "$as_me: failed program was:" >&5
5600     sed 's/^/| /' conftest.$ac_ext >&5
5601    
5602 pcg 1.33
5603     fi
5604    
5605     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606     fi
5607    
5608     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609     fi
5610    
5611     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612     ac_c_werror_flag=$ac_save_c_werror_flag
5613     fi
5614     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5615     echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5616     if test "$ac_test_CFLAGS" = set; then
5617     CFLAGS=$ac_save_CFLAGS
5618     elif test $ac_cv_prog_cc_g = yes; then
5619     if test "$GCC" = yes; then
5620     CFLAGS="-g -O2"
5621     else
5622     CFLAGS="-g"
5623     fi
5624     else
5625     if test "$GCC" = yes; then
5626     CFLAGS="-O2"
5627     else
5628     CFLAGS=
5629     fi
5630 pcg 1.1 fi
5631 pcg 1.33 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5632     echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5633     if test "${ac_cv_prog_cc_c89+set}" = set; then
5634     echo $ECHO_N "(cached) $ECHO_C" >&6
5635     else
5636     ac_cv_prog_cc_c89=no
5637     ac_save_CC=$CC
5638     cat >conftest.$ac_ext <<_ACEOF
5639 pcg 1.1 /* confdefs.h. */
5640     _ACEOF
5641     cat confdefs.h >>conftest.$ac_ext
5642     cat >>conftest.$ac_ext <<_ACEOF
5643     /* end confdefs.h. */
5644 pcg 1.33 #include <stdarg.h>
5645     #include <stdio.h>
5646     #include <sys/types.h>
5647     #include <sys/stat.h>
5648     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5649     struct buf { int x; };
5650     FILE * (*rcsopen) (struct buf *, struct stat *, int);
5651     static char *e (p, i)
5652     char **p;
5653     int i;
5654     {
5655     return p[i];
5656     }
5657     static char *f (char * (*g) (char **, int), char **p, ...)
5658     {
5659     char *s;
5660     va_list v;
5661     va_start (v,p);
5662     s = g (p, va_arg (v,int));
5663     va_end (v);
5664     return s;
5665     }
5666    
5667     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5668     function prototypes and stuff, but not '\xHH' hex character constants.
5669     These don't provoke an error unfortunately, instead are silently treated
5670     as 'x'. The following induces an error, until -std is added to get
5671     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5672     array size at least. It's necessary to write '\x00'==0 to get something
5673     that's true only with -std. */
5674     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5675    
5676     /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5677     inside strings and character constants. */
5678     #define FOO(x) 'x'
5679     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5680    
5681     int test (int i, double x);
5682     struct s1 {int (*f) (int a);};
5683     struct s2 {int (*f) (double a);};
5684     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5685     int argc;
5686     char **argv;
5687 pcg 1.1 int
5688     main ()
5689     {
5690 pcg 1.33 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5691 pcg 1.1 ;
5692     return 0;
5693     }
5694     _ACEOF
5695 pcg 1.33 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5696     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5697     do
5698     CC="$ac_save_CC $ac_arg"
5699     rm -f conftest.$ac_objext
5700     if { (ac_try="$ac_compile"
5701     case "(($ac_try" in
5702     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703     *) ac_try_echo=$ac_try;;
5704     esac
5705     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706     (eval "$ac_compile") 2>conftest.er1
5707 pcg 1.1 ac_status=$?
5708 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
5709     rm -f conftest.er1
5710     cat conftest.err >&5
5711 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 pcg 1.33 (exit $ac_status); } && {
5713     test -z "$ac_c_werror_flag" ||
5714     test ! -s conftest.err
5715     } && test -s conftest.$ac_objext; then
5716     ac_cv_prog_cc_c89=$ac_arg
5717 pcg 1.1 else
5718     echo "$as_me: failed program was:" >&5
5719     sed 's/^/| /' conftest.$ac_ext >&5
5720    
5721 pcg 1.33
5722 pcg 1.1 fi
5723 pcg 1.33
5724     rm -f core conftest.err conftest.$ac_objext
5725     test "x$ac_cv_prog_cc_c89" != "xno" && break
5726 pcg 1.1 done
5727 pcg 1.33 rm -f conftest.$ac_ext
5728     CC=$ac_save_CC
5729    
5730 pcg 1.1 fi
5731 pcg 1.33 # AC_CACHE_VAL
5732     case "x$ac_cv_prog_cc_c89" in
5733     x)
5734     { echo "$as_me:$LINENO: result: none needed" >&5
5735     echo "${ECHO_T}none needed" >&6; } ;;
5736     xno)
5737     { echo "$as_me:$LINENO: result: unsupported" >&5
5738     echo "${ECHO_T}unsupported" >&6; } ;;
5739     *)
5740     CC="$CC $ac_cv_prog_cc_c89"
5741     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5742     echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5743     esac
5744 pcg 1.1
5745    
5746     ac_ext=c
5747     ac_cpp='$CPP $CPPFLAGS'
5748     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5749     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5750     ac_compiler_gnu=$ac_cv_c_compiler_gnu
5751    
5752     depcc="$CC" am_compiler_list=
5753    
5754 pcg 1.33 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5755     echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5756 pcg 1.1 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5757     echo $ECHO_N "(cached) $ECHO_C" >&6
5758     else
5759     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5760     # We make a subdir and do the tests there. Otherwise we can end up
5761     # making bogus files that we don't know about and never remove. For
5762     # instance it was reported that on HP-UX the gcc test will end up
5763     # making a dummy file named `D' -- because `-MD' means `put the output
5764     # in D'.
5765     mkdir conftest.dir
5766     # Copy depcomp to subdir because otherwise we won't find it if we're
5767     # using a relative directory.
5768     cp "$am_depcomp" conftest.dir
5769     cd conftest.dir
5770     # We will build objects and dependencies in a subdirectory because
5771     # it helps to detect inapplicable dependency modes. For instance
5772     # both Tru64's cc and ICC support -MD to output dependencies as a
5773     # side effect of compilation, but ICC will put the dependencies in
5774     # the current directory while Tru64 will put them in the object
5775     # directory.
5776     mkdir sub
5777    
5778     am_cv_CC_dependencies_compiler_type=none
5779     if test "$am_compiler_list" = ""; then
5780     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5781     fi
5782     for depmode in $am_compiler_list; do
5783     # Setup a source with many dependencies, because some compilers
5784     # like to wrap large dependency lists on column 80 (with \), and
5785     # we should not choose a depcomp mode which is confused by this.
5786     #
5787     # We need to recreate these files for each test, as the compiler may
5788     # overwrite some of them when testing with obscure command lines.
5789     # This happens at least with the AIX C compiler.
5790     : > sub/conftest.c
5791     for i in 1 2 3 4 5 6; do
5792     echo '#include "conftst'$i'.h"' >> sub/conftest.c
5793 pcg 1.33 : > sub/conftst$i.h
5794 pcg 1.1 done
5795     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5796    
5797     case $depmode in
5798     nosideeffect)
5799     # after this tag, mechanisms are not by side-effect, so they'll
5800     # only be used when explicitly requested
5801     if test "x$enable_dependency_tracking" = xyes; then
5802     continue
5803     else
5804     break
5805     fi
5806     ;;
5807     none) break ;;
5808     esac
5809     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5810     # mode. It turns out that the SunPro C++ compiler does not properly
5811     # handle `-M -o', and we need to detect this.
5812     if depmode=$depmode \
5813     source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5814     depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5815     $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5816     >/dev/null 2>conftest.err &&
5817     grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5818     grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5819     ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5820     # icc doesn't choke on unknown options, it will just issue warnings
5821 pcg 1.33 # (even with -Werror). So we grep stderr for any message
5822     # that says an option was ignored.
5823     if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5824 pcg 1.1 am_cv_CC_dependencies_compiler_type=$depmode
5825     break
5826     fi
5827     fi
5828     done
5829    
5830     cd ..
5831     rm -rf conftest.dir
5832     else
5833     am_cv_CC_dependencies_compiler_type=none
5834     fi
5835    
5836     fi
5837 pcg 1.33 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5838     echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5839 pcg 1.1 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5840    
5841    
5842    
5843     if
5844     test "x$enable_dependency_tracking" != xno \
5845     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5846     am__fastdepCC_TRUE=
5847     am__fastdepCC_FALSE='#'
5848     else
5849     am__fastdepCC_TRUE='#'
5850     am__fastdepCC_FALSE=
5851     fi
5852    
5853    
5854     ac_ext=c
5855     ac_cpp='$CPP $CPPFLAGS'
5856     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5857     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5858     ac_compiler_gnu=$ac_cv_c_compiler_gnu
5859 pcg 1.33 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5860     echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5861 pcg 1.1 # On Suns, sometimes $CPP names a directory.
5862     if test -n "$CPP" && test -d "$CPP"; then
5863     CPP=
5864     fi
5865     if test -z "$CPP"; then
5866     if test "${ac_cv_prog_CPP+set}" = set; then
5867     echo $ECHO_N "(cached) $ECHO_C" >&6
5868     else
5869     # Double quotes because CPP needs to be expanded
5870     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5871     do
5872     ac_preproc_ok=false
5873     for ac_c_preproc_warn_flag in '' yes
5874     do
5875     # Use a header file that comes with gcc, so configuring glibc
5876     # with a fresh cross-compiler works.
5877     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5878     # <limits.h> exists even on freestanding compilers.
5879     # On the NeXT, cc -E runs the code through the compiler's parser,
5880     # not just through cpp. "Syntax error" is here to catch this case.
5881     cat >conftest.$ac_ext <<_ACEOF
5882     /* confdefs.h. */
5883     _ACEOF
5884     cat confdefs.h >>conftest.$ac_ext
5885     cat >>conftest.$ac_ext <<_ACEOF
5886     /* end confdefs.h. */
5887     #ifdef __STDC__
5888     # include <limits.h>
5889     #else
5890     # include <assert.h>
5891     #endif
5892 pcg 1.11 Syntax error
5893 pcg 1.1 _ACEOF
5894 pcg 1.33 if { (ac_try="$ac_cpp conftest.$ac_ext"
5895     case "(($ac_try" in
5896     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897     *) ac_try_echo=$ac_try;;
5898     esac
5899     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5901 pcg 1.1 ac_status=$?
5902     grep -v '^ *+' conftest.er1 >conftest.err
5903     rm -f conftest.er1
5904     cat conftest.err >&5
5905     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 pcg 1.33 (exit $ac_status); } >/dev/null && {
5907     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5908     test ! -s conftest.err
5909     }; then
5910 pcg 1.1 :
5911     else
5912     echo "$as_me: failed program was:" >&5
5913     sed 's/^/| /' conftest.$ac_ext >&5
5914    
5915     # Broken: fails on valid input.
5916     continue
5917     fi
5918 pcg 1.33
5919 pcg 1.1 rm -f conftest.err conftest.$ac_ext
5920    
5921 pcg 1.33 # OK, works on sane cases. Now check whether nonexistent headers
5922 pcg 1.1 # can be detected and how.
5923     cat >conftest.$ac_ext <<_ACEOF
5924     /* confdefs.h. */
5925     _ACEOF
5926     cat confdefs.h >>conftest.$ac_ext
5927     cat >>conftest.$ac_ext <<_ACEOF
5928     /* end confdefs.h. */
5929     #include <ac_nonexistent.h>
5930     _ACEOF
5931 pcg 1.33 if { (ac_try="$ac_cpp conftest.$ac_ext"
5932     case "(($ac_try" in
5933     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934     *) ac_try_echo=$ac_try;;
5935     esac
5936     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5938 pcg 1.1 ac_status=$?
5939     grep -v '^ *+' conftest.er1 >conftest.err
5940     rm -f conftest.er1
5941     cat conftest.err >&5
5942     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 pcg 1.33 (exit $ac_status); } >/dev/null && {
5944     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5945     test ! -s conftest.err
5946     }; then
5947 pcg 1.1 # Broken: success on invalid input.
5948     continue
5949     else
5950     echo "$as_me: failed program was:" >&5
5951     sed 's/^/| /' conftest.$ac_ext >&5
5952    
5953     # Passes both tests.
5954     ac_preproc_ok=:
5955     break
5956     fi
5957 pcg 1.33
5958 pcg 1.1 rm -f conftest.err conftest.$ac_ext
5959    
5960     done
5961     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5962     rm -f conftest.err conftest.$ac_ext
5963     if $ac_preproc_ok; then
5964     break
5965     fi
5966    
5967     done
5968     ac_cv_prog_CPP=$CPP
5969    
5970     fi
5971     CPP=$ac_cv_prog_CPP
5972     else
5973     ac_cv_prog_CPP=$CPP
5974     fi
5975 pcg 1.33 { echo "$as_me:$LINENO: result: $CPP" >&5
5976     echo "${ECHO_T}$CPP" >&6; }
5977 pcg 1.1 ac_preproc_ok=false
5978     for ac_c_preproc_warn_flag in '' yes
5979     do
5980     # Use a header file that comes with gcc, so configuring glibc
5981     # with a fresh cross-compiler works.
5982     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5983     # <limits.h> exists even on freestanding compilers.
5984     # On the NeXT, cc -E runs the code through the compiler's parser,
5985     # not just through cpp. "Syntax error" is here to catch this case.
5986     cat >conftest.$ac_ext <<_ACEOF
5987     /* confdefs.h. */
5988     _ACEOF
5989     cat confdefs.h >>conftest.$ac_ext
5990     cat >>conftest.$ac_ext <<_ACEOF
5991     /* end confdefs.h. */
5992     #ifdef __STDC__
5993     # include <limits.h>
5994     #else
5995     # include <assert.h>
5996     #endif
5997 pcg 1.11 Syntax error
5998 pcg 1.1 _ACEOF
5999 pcg 1.33 if { (ac_try="$ac_cpp conftest.$ac_ext"
6000     case "(($ac_try" in
6001     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002     *) ac_try_echo=$ac_try;;
6003     esac
6004     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6006 pcg 1.1 ac_status=$?
6007     grep -v '^ *+' conftest.er1 >conftest.err
6008     rm -f conftest.er1
6009     cat conftest.err >&5
6010     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 pcg 1.33 (exit $ac_status); } >/dev/null && {
6012     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6013     test ! -s conftest.err
6014     }; then
6015 pcg 1.1 :
6016     else
6017     echo "$as_me: failed program was:" >&5
6018     sed 's/^/| /' conftest.$ac_ext >&5
6019    
6020     # Broken: fails on valid input.
6021     continue
6022     fi
6023 pcg 1.33
6024 pcg 1.1 rm -f conftest.err conftest.$ac_ext
6025    
6026 pcg 1.33 # OK, works on sane cases. Now check whether nonexistent headers
6027 pcg 1.1 # can be detected and how.
6028     cat >conftest.$ac_ext <<_ACEOF
6029     /* confdefs.h. */
6030     _ACEOF
6031     cat confdefs.h >>conftest.$ac_ext
6032     cat >>conftest.$ac_ext <<_ACEOF
6033     /* end confdefs.h. */
6034     #include <ac_nonexistent.h>
6035     _ACEOF
6036 pcg 1.33 if { (ac_try="$ac_cpp conftest.$ac_ext"
6037     case "(($ac_try" in
6038     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039     *) ac_try_echo=$ac_try;;
6040     esac
6041     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6043 pcg 1.1 ac_status=$?
6044     grep -v '^ *+' conftest.er1 >conftest.err
6045     rm -f conftest.er1
6046     cat conftest.err >&5
6047     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 pcg 1.33 (exit $ac_status); } >/dev/null && {
6049     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6050     test ! -s conftest.err
6051     }; then
6052 pcg 1.1 # Broken: success on invalid input.
6053     continue
6054     else
6055     echo "$as_me: failed program was:" >&5
6056     sed 's/^/| /' conftest.$ac_ext >&5
6057    
6058     # Passes both tests.
6059     ac_preproc_ok=:
6060     break
6061     fi
6062 pcg 1.33
6063 pcg 1.1 rm -f conftest.err conftest.$ac_ext
6064    
6065     done
6066     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6067     rm -f conftest.err conftest.$ac_ext
6068     if $ac_preproc_ok; then
6069     :
6070     else
6071     { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6072     See \`config.log' for more details." >&5
6073     echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6074     See \`config.log' for more details." >&2;}
6075     { (exit 1); exit 1; }; }
6076     fi
6077    
6078     ac_ext=c
6079     ac_cpp='$CPP $CPPFLAGS'
6080     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6081     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6082     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6083    
6084 pcg 1.33 ac_ext=cpp
6085 pcg 1.1 ac_cpp='$CXXCPP $CPPFLAGS'
6086     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6087     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6088     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6089 pcg 1.33 if test -z "$CXX"; then
6090     if test -n "$CCC"; then
6091     CXX=$CCC
6092     else
6093     if test -n "$ac_tool_prefix"; then
6094     for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6095 pcg 1.1 do
6096     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6097     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6098 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6099     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6100 pcg 1.1 if test "${ac_cv_prog_CXX+set}" = set; then
6101     echo $ECHO_N "(cached) $ECHO_C" >&6
6102     else
6103     if test -n "$CXX"; then
6104     ac_cv_prog_CXX="$CXX" # Let the user override the test.
6105     else
6106     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107     for as_dir in $PATH
6108     do
6109     IFS=$as_save_IFS
6110     test -z "$as_dir" && as_dir=.
6111     for ac_exec_ext in '' $ac_executable_extensions; do
6112 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6113 pcg 1.1 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6115     break 2
6116     fi
6117     done
6118     done
6119 pcg 1.33 IFS=$as_save_IFS
6120 pcg 1.1
6121     fi
6122     fi
6123     CXX=$ac_cv_prog_CXX
6124     if test -n "$CXX"; then
6125 pcg 1.33 { echo "$as_me:$LINENO: result: $CXX" >&5
6126     echo "${ECHO_T}$CXX" >&6; }
6127 pcg 1.1 else
6128 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
6129     echo "${ECHO_T}no" >&6; }
6130 pcg 1.1 fi
6131    
6132 pcg 1.33
6133 pcg 1.1 test -n "$CXX" && break
6134     done
6135     fi
6136     if test -z "$CXX"; then
6137     ac_ct_CXX=$CXX
6138 pcg 1.33 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6139 pcg 1.1 do
6140     # Extract the first word of "$ac_prog", so it can be a program name with args.
6141     set dummy $ac_prog; ac_word=$2
6142 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6143     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6144 pcg 1.1 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6145     echo $ECHO_N "(cached) $ECHO_C" >&6
6146     else
6147     if test -n "$ac_ct_CXX"; then
6148     ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6149     else
6150     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151     for as_dir in $PATH
6152     do
6153     IFS=$as_save_IFS
6154     test -z "$as_dir" && as_dir=.
6155     for ac_exec_ext in '' $ac_executable_extensions; do
6156 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6157 pcg 1.1 ac_cv_prog_ac_ct_CXX="$ac_prog"
6158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6159     break 2
6160     fi
6161     done
6162     done
6163 pcg 1.33 IFS=$as_save_IFS
6164 pcg 1.1
6165     fi
6166     fi
6167     ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6168     if test -n "$ac_ct_CXX"; then
6169 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6170     echo "${ECHO_T}$ac_ct_CXX" >&6; }
6171 pcg 1.1 else
6172 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
6173     echo "${ECHO_T}no" >&6; }
6174 pcg 1.1 fi
6175    
6176 pcg 1.33
6177 pcg 1.1 test -n "$ac_ct_CXX" && break
6178     done
6179    
6180 pcg 1.33 if test "x$ac_ct_CXX" = x; then
6181     CXX="g++"
6182     else
6183     case $cross_compiling:$ac_tool_warned in
6184     yes:)
6185     { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6186     whose name does not start with the host triplet. If you think this
6187     configuration is useful to you, please write to autoconf@gnu.org." >&5
6188     echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6189     whose name does not start with the host triplet. If you think this
6190     configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6191     ac_tool_warned=yes ;;
6192     esac
6193     CXX=$ac_ct_CXX
6194     fi
6195 pcg 1.1 fi
6196    
6197 pcg 1.33 fi
6198     fi
6199 pcg 1.1 # Provide some information about the compiler.
6200 pcg 1.33 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6201 pcg 1.1 ac_compiler=`set X $ac_compile; echo $2`
6202 pcg 1.33 { (ac_try="$ac_compiler --version >&5"
6203     case "(($ac_try" in
6204     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205     *) ac_try_echo=$ac_try;;
6206     esac
6207     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208     (eval "$ac_compiler --version >&5") 2>&5
6209 pcg 1.1 ac_status=$?
6210     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211     (exit $ac_status); }
6212 pcg 1.33 { (ac_try="$ac_compiler -v >&5"
6213     case "(($ac_try" in
6214     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215     *) ac_try_echo=$ac_try;;
6216     esac
6217     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6218     (eval "$ac_compiler -v >&5") 2>&5
6219 pcg 1.1 ac_status=$?
6220     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221     (exit $ac_status); }
6222 pcg 1.33 { (ac_try="$ac_compiler -V >&5"
6223     case "(($ac_try" in
6224     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225     *) ac_try_echo=$ac_try;;
6226     esac
6227     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228     (eval "$ac_compiler -V >&5") 2>&5
6229 pcg 1.1 ac_status=$?
6230     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231     (exit $ac_status); }
6232    
6233 pcg 1.33 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6234     echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6235 pcg 1.1 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6236     echo $ECHO_N "(cached) $ECHO_C" >&6
6237     else
6238     cat >conftest.$ac_ext <<_ACEOF
6239     /* confdefs.h. */
6240     _ACEOF
6241     cat confdefs.h >>conftest.$ac_ext
6242     cat >>conftest.$ac_ext <<_ACEOF
6243     /* end confdefs.h. */
6244    
6245     int
6246     main ()
6247     {
6248     #ifndef __GNUC__
6249     choke me
6250     #endif
6251    
6252     ;
6253     return 0;
6254     }
6255     _ACEOF
6256     rm -f conftest.$ac_objext
6257 pcg 1.33 if { (ac_try="$ac_compile"
6258     case "(($ac_try" in
6259     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260     *) ac_try_echo=$ac_try;;
6261     esac
6262     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263     (eval "$ac_compile") 2>conftest.er1
6264 pcg 1.1 ac_status=$?
6265 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
6266     rm -f conftest.er1
6267     cat conftest.err >&5
6268 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 pcg 1.33 (exit $ac_status); } && {
6270     test -z "$ac_cxx_werror_flag" ||
6271     test ! -s conftest.err
6272     } && test -s conftest.$ac_objext; then
6273 pcg 1.1 ac_compiler_gnu=yes
6274     else
6275     echo "$as_me: failed program was:" >&5
6276     sed 's/^/| /' conftest.$ac_ext >&5
6277    
6278 pcg 1.33 ac_compiler_gnu=no
6279 pcg 1.1 fi
6280 pcg 1.33
6281     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 pcg 1.1 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6283    
6284     fi
6285 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6286     echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6287 pcg 1.1 GXX=`test $ac_compiler_gnu = yes && echo yes`
6288     ac_test_CXXFLAGS=${CXXFLAGS+set}
6289     ac_save_CXXFLAGS=$CXXFLAGS
6290 pcg 1.33 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6291     echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6292 pcg 1.1 if test "${ac_cv_prog_cxx_g+set}" = set; then
6293     echo $ECHO_N "(cached) $ECHO_C" >&6
6294     else
6295 pcg 1.33 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6296     ac_cxx_werror_flag=yes
6297     ac_cv_prog_cxx_g=no
6298     CXXFLAGS="-g"
6299     cat >conftest.$ac_ext <<_ACEOF
6300 pcg 1.1 /* confdefs.h. */
6301     _ACEOF
6302     cat confdefs.h >>conftest.$ac_ext
6303     cat >>conftest.$ac_ext <<_ACEOF
6304     /* end confdefs.h. */
6305    
6306     int
6307     main ()
6308     {
6309    
6310     ;
6311     return 0;
6312     }
6313     _ACEOF
6314     rm -f conftest.$ac_objext
6315 pcg 1.33 if { (ac_try="$ac_compile"
6316     case "(($ac_try" in
6317     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318     *) ac_try_echo=$ac_try;;
6319     esac
6320     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321     (eval "$ac_compile") 2>conftest.er1
6322 pcg 1.1 ac_status=$?
6323 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
6324     rm -f conftest.er1
6325     cat conftest.err >&5
6326 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 pcg 1.33 (exit $ac_status); } && {
6328     test -z "$ac_cxx_werror_flag" ||
6329     test ! -s conftest.err
6330     } && test -s conftest.$ac_objext; then
6331 pcg 1.1 ac_cv_prog_cxx_g=yes
6332     else
6333     echo "$as_me: failed program was:" >&5
6334     sed 's/^/| /' conftest.$ac_ext >&5
6335    
6336 pcg 1.33 CXXFLAGS=""
6337     cat >conftest.$ac_ext <<_ACEOF
6338 pcg 1.1 /* confdefs.h. */
6339     _ACEOF
6340     cat confdefs.h >>conftest.$ac_ext
6341     cat >>conftest.$ac_ext <<_ACEOF
6342     /* end confdefs.h. */
6343 pcg 1.33
6344 pcg 1.1 int
6345     main ()
6346     {
6347 pcg 1.33
6348 pcg 1.1 ;
6349     return 0;
6350     }
6351     _ACEOF
6352     rm -f conftest.$ac_objext
6353 pcg 1.33 if { (ac_try="$ac_compile"
6354     case "(($ac_try" in
6355     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356     *) ac_try_echo=$ac_try;;
6357     esac
6358     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359     (eval "$ac_compile") 2>conftest.er1
6360 pcg 1.1 ac_status=$?
6361 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
6362     rm -f conftest.er1
6363     cat conftest.err >&5
6364 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 pcg 1.33 (exit $ac_status); } && {
6366     test -z "$ac_cxx_werror_flag" ||
6367     test ! -s conftest.err
6368     } && test -s conftest.$ac_objext; then
6369 pcg 1.1 :
6370     else
6371     echo "$as_me: failed program was:" >&5
6372     sed 's/^/| /' conftest.$ac_ext >&5
6373    
6374 pcg 1.33 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6375     CXXFLAGS="-g"
6376     cat >conftest.$ac_ext <<_ACEOF
6377 pcg 1.1 /* confdefs.h. */
6378     _ACEOF
6379     cat confdefs.h >>conftest.$ac_ext
6380     cat >>conftest.$ac_ext <<_ACEOF
6381     /* end confdefs.h. */
6382 pcg 1.33
6383 pcg 1.1 int
6384     main ()
6385     {
6386 pcg 1.33
6387 pcg 1.1 ;
6388     return 0;
6389     }
6390     _ACEOF
6391     rm -f conftest.$ac_objext
6392 pcg 1.33 if { (ac_try="$ac_compile"
6393     case "(($ac_try" in
6394     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395     *) ac_try_echo=$ac_try;;
6396     esac
6397     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398     (eval "$ac_compile") 2>conftest.er1
6399 pcg 1.1 ac_status=$?
6400 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
6401     rm -f conftest.er1
6402     cat conftest.err >&5
6403 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 pcg 1.33 (exit $ac_status); } && {
6405     test -z "$ac_cxx_werror_flag" ||
6406     test ! -s conftest.err
6407     } && test -s conftest.$ac_objext; then
6408     ac_cv_prog_cxx_g=yes
6409 pcg 1.1 else
6410     echo "$as_me: failed program was:" >&5
6411     sed 's/^/| /' conftest.$ac_ext >&5
6412    
6413 pcg 1.33
6414     fi
6415    
6416     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417 pcg 1.1 fi
6418 pcg 1.33
6419     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420 pcg 1.1 fi
6421    
6422 pcg 1.33 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423     ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6424     fi
6425     { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6426     echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6427     if test "$ac_test_CXXFLAGS" = set; then
6428     CXXFLAGS=$ac_save_CXXFLAGS
6429     elif test $ac_cv_prog_cxx_g = yes; then
6430     if test "$GXX" = yes; then
6431     CXXFLAGS="-g -O2"
6432     else
6433     CXXFLAGS="-g"
6434     fi
6435     else
6436     if test "$GXX" = yes; then
6437     CXXFLAGS="-O2"
6438     else
6439     CXXFLAGS=
6440     fi
6441     fi
6442 pcg 1.1 ac_ext=c
6443     ac_cpp='$CPP $CPPFLAGS'
6444     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6445     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6446     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6447    
6448     depcc="$CXX" am_compiler_list=
6449    
6450 pcg 1.33 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6451     echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6452 pcg 1.1 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6453     echo $ECHO_N "(cached) $ECHO_C" >&6
6454     else
6455     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6456     # We make a subdir and do the tests there. Otherwise we can end up
6457     # making bogus files that we don't know about and never remove. For
6458     # instance it was reported that on HP-UX the gcc test will end up
6459     # making a dummy file named `D' -- because `-MD' means `put the output
6460     # in D'.
6461     mkdir conftest.dir
6462     # Copy depcomp to subdir because otherwise we won't find it if we're
6463     # using a relative directory.
6464     cp "$am_depcomp" conftest.dir
6465     cd conftest.dir
6466     # We will build objects and dependencies in a subdirectory because
6467     # it helps to detect inapplicable dependency modes. For instance
6468     # both Tru64's cc and ICC support -MD to output dependencies as a
6469     # side effect of compilation, but ICC will put the dependencies in
6470     # the current directory while Tru64 will put them in the object
6471     # directory.
6472     mkdir sub
6473    
6474     am_cv_CXX_dependencies_compiler_type=none
6475     if test "$am_compiler_list" = ""; then
6476     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6477     fi
6478     for depmode in $am_compiler_list; do
6479     # Setup a source with many dependencies, because some compilers
6480     # like to wrap large dependency lists on column 80 (with \), and
6481     # we should not choose a depcomp mode which is confused by this.
6482     #
6483     # We need to recreate these files for each test, as the compiler may
6484     # overwrite some of them when testing with obscure command lines.
6485     # This happens at least with the AIX C compiler.
6486     : > sub/conftest.c
6487     for i in 1 2 3 4 5 6; do
6488     echo '#include "conftst'$i'.h"' >> sub/conftest.c
6489 pcg 1.33 : > sub/conftst$i.h
6490 pcg 1.1 done
6491     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6492    
6493     case $depmode in
6494     nosideeffect)
6495     # after this tag, mechanisms are not by side-effect, so they'll
6496     # only be used when explicitly requested
6497     if test "x$enable_dependency_tracking" = xyes; then
6498     continue
6499     else
6500     break
6501     fi
6502     ;;
6503     none) break ;;
6504     esac
6505     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6506     # mode. It turns out that the SunPro C++ compiler does not properly
6507     # handle `-M -o', and we need to detect this.
6508     if depmode=$depmode \
6509     source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6510     depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6511     $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6512     >/dev/null 2>conftest.err &&
6513     grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6514     grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6515     ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6516     # icc doesn't choke on unknown options, it will just issue warnings
6517 pcg 1.33 # (even with -Werror). So we grep stderr for any message
6518     # that says an option was ignored.
6519     if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
6520 pcg 1.1 am_cv_CXX_dependencies_compiler_type=$depmode
6521     break
6522     fi
6523     fi
6524     done
6525    
6526     cd ..
6527     rm -rf conftest.dir
6528     else
6529     am_cv_CXX_dependencies_compiler_type=none
6530     fi
6531    
6532     fi
6533 pcg 1.33 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6534     echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6535 pcg 1.1 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6536    
6537    
6538    
6539     if
6540     test "x$enable_dependency_tracking" != xno \
6541     && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6542     am__fastdepCXX_TRUE=
6543     am__fastdepCXX_FALSE='#'
6544     else
6545     am__fastdepCXX_TRUE='#'
6546     am__fastdepCXX_FALSE=
6547     fi
6548    
6549    
6550    
6551 pcg 1.33 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6552     echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6553     if test "${ac_cv_path_GREP+set}" = set; then
6554     echo $ECHO_N "(cached) $ECHO_C" >&6
6555     else
6556     # Extract the first word of "grep ggrep" to use in msg output
6557     if test -z "$GREP"; then
6558     set dummy grep ggrep; ac_prog_name=$2
6559     if test "${ac_cv_path_GREP+set}" = set; then
6560     echo $ECHO_N "(cached) $ECHO_C" >&6
6561     else
6562     ac_path_GREP_found=false
6563     # Loop through the user's path and test for each of PROGNAME-LIST
6564     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6566     do
6567     IFS=$as_save_IFS
6568     test -z "$as_dir" && as_dir=.
6569     for ac_prog in grep ggrep; do
6570     for ac_exec_ext in '' $ac_executable_extensions; do
6571     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6572     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6573     # Check for GNU ac_path_GREP and select it if it is found.
6574     # Check for GNU $ac_path_GREP
6575     case `"$ac_path_GREP" --version 2>&1` in
6576     *GNU*)
6577     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6578     *)
6579     ac_count=0
6580     echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6581     while :
6582     do
6583     cat "conftest.in" "conftest.in" >"conftest.tmp"
6584     mv "conftest.tmp" "conftest.in"
6585     cp "conftest.in" "conftest.nl"
6586     echo 'GREP' >> "conftest.nl"
6587     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6588     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6589     ac_count=`expr $ac_count + 1`
6590     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6591     # Best one so far, save it but keep looking for a better one
6592     ac_cv_path_GREP="$ac_path_GREP"
6593     ac_path_GREP_max=$ac_count
6594     fi
6595     # 10*(2^10) chars as input seems more than enough
6596     test $ac_count -gt 10 && break
6597     done
6598     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6599     esac
6600    
6601    
6602     $ac_path_GREP_found && break 3
6603     done
6604     done
6605    
6606     done
6607     IFS=$as_save_IFS
6608    
6609    
6610     fi
6611    
6612     GREP="$ac_cv_path_GREP"
6613     if test -z "$GREP"; then
6614     { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6615     echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6616     { (exit 1); exit 1; }; }
6617     fi
6618    
6619     else
6620     ac_cv_path_GREP=$GREP
6621     fi
6622    
6623    
6624     fi
6625     { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6626     echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6627     GREP="$ac_cv_path_GREP"
6628    
6629    
6630     { echo "$as_me:$LINENO: checking for egrep" >&5
6631     echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6632     if test "${ac_cv_path_EGREP+set}" = set; then
6633     echo $ECHO_N "(cached) $ECHO_C" >&6
6634     else
6635     if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6636     then ac_cv_path_EGREP="$GREP -E"
6637     else
6638     # Extract the first word of "egrep" to use in msg output
6639     if test -z "$EGREP"; then
6640     set dummy egrep; ac_prog_name=$2
6641     if test "${ac_cv_path_EGREP+set}" = set; then
6642 pcg 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
6643     else
6644 pcg 1.33 ac_path_EGREP_found=false
6645     # Loop through the user's path and test for each of PROGNAME-LIST
6646     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6648     do
6649     IFS=$as_save_IFS
6650     test -z "$as_dir" && as_dir=.
6651     for ac_prog in egrep; do
6652     for ac_exec_ext in '' $ac_executable_extensions; do
6653     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6654     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6655     # Check for GNU ac_path_EGREP and select it if it is found.
6656     # Check for GNU $ac_path_EGREP
6657     case `"$ac_path_EGREP" --version 2>&1` in
6658     *GNU*)
6659     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6660     *)
6661     ac_count=0
6662     echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6663     while :
6664     do
6665     cat "conftest.in" "conftest.in" >"conftest.tmp"
6666     mv "conftest.tmp" "conftest.in"
6667     cp "conftest.in" "conftest.nl"
6668     echo 'EGREP' >> "conftest.nl"
6669     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6670     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6671     ac_count=`expr $ac_count + 1`
6672     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6673     # Best one so far, save it but keep looking for a better one
6674     ac_cv_path_EGREP="$ac_path_EGREP"
6675     ac_path_EGREP_max=$ac_count
6676 pcg 1.1 fi
6677 pcg 1.33 # 10*(2^10) chars as input seems more than enough
6678     test $ac_count -gt 10 && break
6679     done
6680     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6681     esac
6682    
6683    
6684     $ac_path_EGREP_found && break 3
6685     done
6686     done
6687    
6688     done
6689     IFS=$as_save_IFS
6690    
6691    
6692     fi
6693    
6694     EGREP="$ac_cv_path_EGREP"
6695     if test -z "$EGREP"; then
6696     { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6697     echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6698     { (exit 1); exit 1; }; }
6699     fi
6700    
6701     else
6702     ac_cv_path_EGREP=$EGREP
6703     fi
6704    
6705    
6706     fi
6707 pcg 1.1 fi
6708 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6709     echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6710     EGREP="$ac_cv_path_EGREP"
6711 pcg 1.1
6712    
6713     if test $ac_cv_c_compiler_gnu = yes; then
6714 pcg 1.33 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
6715     echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
6716 pcg 1.1 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6717     echo $ECHO_N "(cached) $ECHO_C" >&6
6718     else
6719     ac_pattern="Autoconf.*'x'"
6720     cat >conftest.$ac_ext <<_ACEOF
6721     /* confdefs.h. */
6722     _ACEOF
6723     cat confdefs.h >>conftest.$ac_ext
6724     cat >>conftest.$ac_ext <<_ACEOF
6725     /* end confdefs.h. */
6726     #include <sgtty.h>
6727     Autoconf TIOCGETP
6728     _ACEOF
6729     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6730     $EGREP "$ac_pattern" >/dev/null 2>&1; then
6731     ac_cv_prog_gcc_traditional=yes
6732     else
6733     ac_cv_prog_gcc_traditional=no
6734     fi
6735     rm -f conftest*
6736    
6737    
6738     if test $ac_cv_prog_gcc_traditional = no; then
6739     cat >conftest.$ac_ext <<_ACEOF
6740     /* confdefs.h. */
6741     _ACEOF
6742     cat confdefs.h >>conftest.$ac_ext
6743     cat >>conftest.$ac_ext <<_ACEOF
6744     /* end confdefs.h. */
6745     #include <termio.h>
6746     Autoconf TCGETA
6747     _ACEOF
6748     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6749     $EGREP "$ac_pattern" >/dev/null 2>&1; then
6750     ac_cv_prog_gcc_traditional=yes
6751     fi
6752     rm -f conftest*
6753    
6754     fi
6755     fi
6756 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6757     echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
6758 pcg 1.1 if test $ac_cv_prog_gcc_traditional = yes; then
6759     CC="$CC -traditional"
6760     fi
6761     fi
6762    
6763     for ac_prog in gawk mawk nawk awk
6764     do
6765     # Extract the first word of "$ac_prog", so it can be a program name with args.
6766     set dummy $ac_prog; ac_word=$2
6767 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6768     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6769 pcg 1.1 if test "${ac_cv_prog_AWK+set}" = set; then
6770     echo $ECHO_N "(cached) $ECHO_C" >&6
6771     else
6772     if test -n "$AWK"; then
6773     ac_cv_prog_AWK="$AWK" # Let the user override the test.
6774     else
6775     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776     for as_dir in $PATH
6777     do
6778     IFS=$as_save_IFS
6779     test -z "$as_dir" && as_dir=.
6780     for ac_exec_ext in '' $ac_executable_extensions; do
6781 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6782 pcg 1.1 ac_cv_prog_AWK="$ac_prog"
6783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784     break 2
6785     fi
6786     done
6787     done
6788 pcg 1.33 IFS=$as_save_IFS
6789 pcg 1.1
6790     fi
6791     fi
6792     AWK=$ac_cv_prog_AWK
6793     if test -n "$AWK"; then
6794 pcg 1.33 { echo "$as_me:$LINENO: result: $AWK" >&5
6795     echo "${ECHO_T}$AWK" >&6; }
6796 pcg 1.1 else
6797 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
6798     echo "${ECHO_T}no" >&6; }
6799 pcg 1.1 fi
6800    
6801 pcg 1.33
6802 pcg 1.1 test -n "$AWK" && break
6803     done
6804    
6805     # Find a good install program. We prefer a C program (faster),
6806     # so one script is as good as another. But avoid the broken or
6807     # incompatible versions:
6808     # SysV /etc/install, /usr/sbin/install
6809     # SunOS /usr/etc/install
6810     # IRIX /sbin/install
6811     # AIX /bin/install
6812     # AmigaOS /C/install, which installs bootblocks on floppy discs
6813     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6814     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6815     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6816 pcg 1.11 # OS/2's system install, which has a completely different semantic
6817 pcg 1.1 # ./install, which can be erroneously created by make from ./install.sh.
6818 pcg 1.33 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6819     echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6820 pcg 1.1 if test -z "$INSTALL"; then
6821     if test "${ac_cv_path_install+set}" = set; then
6822     echo $ECHO_N "(cached) $ECHO_C" >&6
6823     else
6824     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825     for as_dir in $PATH
6826     do
6827     IFS=$as_save_IFS
6828     test -z "$as_dir" && as_dir=.
6829     # Account for people who put trailing slashes in PATH elements.
6830     case $as_dir/ in
6831     ./ | .// | /cC/* | \
6832     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6833 pcg 1.11 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6834 pcg 1.1 /usr/ucb/* ) ;;
6835     *)
6836     # OSF1 and SCO ODT 3.0 have their own names for install.
6837     # Don't use installbsd from OSF since it installs stuff as root
6838     # by default.
6839     for ac_prog in ginstall scoinst install; do
6840     for ac_exec_ext in '' $ac_executable_extensions; do
6841 pcg 1.33 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6842 pcg 1.11 if test $ac_prog = install &&
6843     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6844     # AIX install. It has an incompatible calling convention.
6845     :
6846     elif test $ac_prog = install &&
6847     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6848     # program-specific install script used by HP pwplus--don't use.
6849     :
6850     else
6851     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6852     break 3
6853     fi
6854     fi
6855 pcg 1.1 done
6856     done
6857     ;;
6858     esac
6859     done
6860 pcg 1.33 IFS=$as_save_IFS
6861 pcg 1.1
6862    
6863     fi
6864     if test "${ac_cv_path_install+set}" = set; then
6865     INSTALL=$ac_cv_path_install
6866     else
6867 pcg 1.33 # As a last resort, use the slow shell script. Don't cache a
6868     # value for INSTALL within a source directory, because that will
6869 pcg 1.1 # break other packages using the cache if that directory is
6870 pcg 1.33 # removed, or if the value is a relative name.
6871 pcg 1.1 INSTALL=$ac_install_sh
6872     fi
6873     fi
6874 pcg 1.33 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6875     echo "${ECHO_T}$INSTALL" >&6; }
6876 pcg 1.1
6877     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6878     # It thinks the first close brace ends the variable substitution.
6879     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6880    
6881     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6882    
6883     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6884    
6885 pcg 1.33 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6886     echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6887 pcg 1.1 LN_S=$as_ln_s
6888     if test "$LN_S" = "ln -s"; then
6889 pcg 1.33 { echo "$as_me:$LINENO: result: yes" >&5
6890     echo "${ECHO_T}yes" >&6; }
6891 pcg 1.1 else
6892 pcg 1.33 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6893     echo "${ECHO_T}no, using $LN_S" >&6; }
6894 pcg 1.1 fi
6895    
6896 pcg 1.33 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6897     echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
6898     set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6899     if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6900 pcg 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
6901     else
6902     cat >conftest.make <<\_ACEOF
6903 pcg 1.33 SHELL = /bin/sh
6904 pcg 1.1 all:
6905 pcg 1.33 @echo '@@@%%%=$(MAKE)=@@@%%%'
6906 pcg 1.1 _ACEOF
6907     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6908 pcg 1.33 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6909     *@@@%%%=?*=@@@%%%*)
6910     eval ac_cv_prog_make_${ac_make}_set=yes;;
6911     *)
6912     eval ac_cv_prog_make_${ac_make}_set=no;;
6913     esac
6914 pcg 1.1 rm -f conftest.make
6915     fi
6916 pcg 1.33 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6917     { echo "$as_me:$LINENO: result: yes" >&5
6918     echo "${ECHO_T}yes" >&6; }
6919 pcg 1.1 SET_MAKE=
6920     else
6921 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
6922     echo "${ECHO_T}no" >&6; }
6923 pcg 1.1 SET_MAKE="MAKE=${MAKE-make}"
6924     fi
6925    
6926     if test -n "$ac_tool_prefix"; then
6927     # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6928     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6929 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6930     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6931 pcg 1.1 if test "${ac_cv_prog_RANLIB+set}" = set; then
6932     echo $ECHO_N "(cached) $ECHO_C" >&6
6933     else
6934     if test -n "$RANLIB"; then
6935     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6936     else
6937     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938     for as_dir in $PATH
6939     do
6940     IFS=$as_save_IFS
6941     test -z "$as_dir" && as_dir=.
6942     for ac_exec_ext in '' $ac_executable_extensions; do
6943 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6944 pcg 1.1 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6946     break 2
6947     fi
6948     done
6949     done
6950 pcg 1.33 IFS=$as_save_IFS
6951 pcg 1.1
6952     fi
6953     fi
6954     RANLIB=$ac_cv_prog_RANLIB
6955     if test -n "$RANLIB"; then
6956 pcg 1.33 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6957     echo "${ECHO_T}$RANLIB" >&6; }
6958 pcg 1.1 else
6959 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
6960     echo "${ECHO_T}no" >&6; }
6961 pcg 1.1 fi
6962    
6963 pcg 1.33
6964 pcg 1.1 fi
6965     if test -z "$ac_cv_prog_RANLIB"; then
6966     ac_ct_RANLIB=$RANLIB
6967     # Extract the first word of "ranlib", so it can be a program name with args.
6968     set dummy ranlib; ac_word=$2
6969 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6970     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6971 pcg 1.1 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6972     echo $ECHO_N "(cached) $ECHO_C" >&6
6973     else
6974     if test -n "$ac_ct_RANLIB"; then
6975     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6976     else
6977     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978     for as_dir in $PATH
6979     do
6980     IFS=$as_save_IFS
6981     test -z "$as_dir" && as_dir=.
6982     for ac_exec_ext in '' $ac_executable_extensions; do
6983 pcg 1.33 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984 pcg 1.1 ac_cv_prog_ac_ct_RANLIB="ranlib"
6985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6986     break 2
6987     fi
6988     done
6989     done
6990 pcg 1.33 IFS=$as_save_IFS
6991 pcg 1.1
6992     fi
6993     fi
6994     ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6995     if test -n "$ac_ct_RANLIB"; then
6996 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6997     echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6998 pcg 1.1 else
6999 pcg 1.33 { echo "$as_me:$LINENO: result: no" >&5
7000     echo "${ECHO_T}no" >&6; }
7001 pcg 1.1 fi
7002    
7003 pcg 1.33 if test "x$ac_ct_RANLIB" = x; then
7004     RANLIB=":"
7005     else
7006     case $cross_compiling:$ac_tool_warned in
7007     yes:)
7008     { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7009     whose name does not start with the host triplet. If you think this
7010     configuration is useful to you, please write to autoconf@gnu.org." >&5
7011     echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7012     whose name does not start with the host triplet. If you think this
7013     configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7014     ac_tool_warned=yes ;;
7015     esac
7016     RANLIB=$ac_ct_RANLIB
7017     fi
7018 pcg 1.1 else
7019     RANLIB="$ac_cv_prog_RANLIB"
7020     fi
7021    
7022    
7023 pcg 1.33 # Check whether --enable-iftype was given.
7024 pcg 1.1 if test "${enable_iftype+set}" = set; then
7025 pcg 1.33 enableval=$enable_iftype;
7026 pcg 1.1 IFTYPE=`echo $enableval | sed s%/.*%%`
7027     IFSUBTYPE=`echo $enableval | sed s%.*/%%`
7028    
7029    
7030 pcg 1.33 fi
7031    
7032 pcg 1.1
7033 pcg 1.33 { echo "$as_me:$LINENO: checking for kernel networking interface type" >&5
7034     echo $ECHO_N "checking for kernel networking interface type... $ECHO_C" >&6; }
7035 pcg 1.1
7036     if test "x$IFTYPE" = "x"; then
7037     case $target_os in
7038     *linux*)
7039     IFTYPE=native
7040     IFSUBTYPE=linux
7041    
7042     cat >>confdefs.h <<\_ACEOF
7043     #define HAVE_LINUX 1
7044     _ACEOF
7045    
7046     ;;
7047     *freebsd*)
7048     IFTYPE=tincd
7049     IFSUBTYPE=freebsd
7050    
7051     cat >>confdefs.h <<\_ACEOF
7052     #define HAVE_FREEBSD 1
7053     _ACEOF
7054    
7055     ;;
7056     *darwin*)
7057 pcg 1.27 IFTYPE=native
7058 pcg 1.1 IFSUBTYPE=darwin
7059    
7060     cat >>confdefs.h <<\_ACEOF
7061     #define HAVE_DARWIN 1
7062     _ACEOF
7063    
7064     ;;
7065     *solaris*)
7066     IFTYPE=tincd
7067     IFSUBTYPE=solaris
7068    
7069     cat >>confdefs.h <<\_ACEOF
7070     #define HAVE_SOLARIS 1
7071     _ACEOF
7072    
7073     ;;
7074     *openbsd*)
7075     IFTYPE=tincd
7076     IFSUBTYPE=openbsd
7077    
7078     cat >>confdefs.h <<\_ACEOF
7079     #define HAVE_OPENBSD 1
7080     _ACEOF
7081    
7082     ;;
7083     *netbsd*)
7084     IFTYPE=tincd
7085     IFSUBTYPE=netbsd
7086    
7087     cat >>confdefs.h <<\_ACEOF
7088     #define HAVE_NETBSD 1
7089     _ACEOF
7090    
7091     ;;
7092     *cygwin*)
7093 pcg 1.6 IFTYPE=native
7094 pcg 1.1 IFSUBTYPE=cygwin
7095    
7096     cat >>confdefs.h <<\_ACEOF
7097     #define HAVE_CYGWIN 1
7098     _ACEOF
7099    
7100     ;;
7101     *)
7102     { { echo "$as_me:$LINENO: error: \"Unknown operating system.\"" >&5
7103     echo "$as_me: error: \"Unknown operating system.\"" >&2;}
7104     { (exit 1); exit 1; }; }
7105     ;;
7106     esac
7107     fi
7108 pcg 1.33 { echo "$as_me:$LINENO: result: $IFTYPE/$IFSUBTYPE" >&5
7109     echo "${ECHO_T}$IFTYPE/$IFSUBTYPE" >&6; }
7110 pcg 1.1 IFTYPE=$IFTYPE
7111    
7112     IFSUBTYPE=$IFSUBTYPE
7113    
7114    
7115 pcg 1.9 cat >>confdefs.h <<_ACEOF
7116     #define IFTYPE "$IFTYPE"
7117     _ACEOF
7118    
7119    
7120     cat >>confdefs.h <<_ACEOF
7121     #define IFSUBTYPE "$IFSUBTYPE"
7122     _ACEOF
7123    
7124    
7125 pcg 1.1 cat >confcache <<\_ACEOF
7126     # This file is a shell script that caches the results of configure
7127     # tests run on this system so they can be shared between configure
7128     # scripts and configure runs, see configure's option --config-cache.
7129     # It is not useful on other systems. If it contains results you don't
7130     # want to keep, you may remove or edit it.
7131     #
7132     # config.status only pays attention to the cache file if you give it
7133     # the --recheck option to rerun configure.
7134     #
7135     # `ac_cv_env_foo' variables (set or unset) will be overridden when
7136     # loading this file, other *unset* `ac_cv_foo' will be assigned the
7137     # following values.
7138    
7139     _ACEOF
7140    
7141     # The following way of writing the cache mishandles newlines in values,
7142     # but we know of no workaround that is simple, portable, and efficient.
7143 pcg 1.33 # So, we kill variables containing newlines.
7144 pcg 1.1 # Ultrix sh set writes to stderr and can't be redirected directly,
7145     # and sets the high bit in the cache file unless we assign to the vars.
7146 pcg 1.33 (
7147     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7148     eval ac_val=\$$ac_var
7149     case $ac_val in #(
7150     *${as_nl}*)
7151     case $ac_var in #(
7152     *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7153     echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7154     esac
7155     case $ac_var in #(
7156     _ | IFS | as_nl) ;; #(
7157     *) $as_unset $ac_var ;;
7158     esac ;;
7159     esac
7160     done
7161    
7162 pcg 1.1 (set) 2>&1 |
7163 pcg 1.33 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7164     *${as_nl}ac_space=\ *)
7165 pcg 1.1 # `set' does not quote correctly, so add quotes (double-quote
7166     # substitution turns \\\\ into \\, and sed turns \\ into \).
7167     sed -n \
7168 pcg 1.11 "s/'/'\\\\''/g;
7169     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7170 pcg 1.33 ;; #(
7171 pcg 1.1 *)
7172     # `set' quotes correctly as required by POSIX, so do not add quotes.
7173 pcg 1.33 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7174 pcg 1.1 ;;
7175 pcg 1.33 esac |
7176     sort
7177     ) |
7178 pcg 1.1 sed '
7179 pcg 1.33 /^ac_cv_env_/b end
7180 pcg 1.1 t clear
7181 pcg 1.33 :clear
7182 pcg 1.1 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7183     t end
7184 pcg 1.33 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7185     :end' >>confcache
7186     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7187     if test -w "$cache_file"; then
7188     test "x$cache_file" != "x/dev/null" &&
7189     { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7190     echo "$as_me: updating cache $cache_file" >&6;}
7191 pcg 1.1 cat confcache >$cache_file
7192     else
7193 pcg 1.33 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7194     echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7195 pcg 1.1 fi
7196     fi
7197     rm -f confcache
7198    
7199    
7200 pcg 1.33 ac_ext=cpp
7201 pcg 1.1 ac_cpp='$CXXCPP $CPPFLAGS'
7202     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7203     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7204     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7205    
7206    
7207 pcg 1.33 ac_ext=cpp
7208 pcg 1.1 ac_cpp='$CXXCPP $CPPFLAGS'
7209     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7210     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7211     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7212 pcg 1.33 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7213     echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7214 pcg 1.1 if test -z "$CXXCPP"; then
7215     if test "${ac_cv_prog_CXXCPP+set}" = set; then
7216     echo $ECHO_N "(cached) $ECHO_C" >&6
7217     else
7218     # Double quotes because CXXCPP needs to be expanded
7219     for CXXCPP in "$CXX -E" "/lib/cpp"
7220     do
7221     ac_preproc_ok=false
7222     for ac_cxx_preproc_warn_flag in '' yes
7223     do
7224     # Use a header file that comes with gcc, so configuring glibc
7225     # with a fresh cross-compiler works.
7226     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7227     # <limits.h> exists even on freestanding compilers.
7228     # On the NeXT, cc -E runs the code through the compiler's parser,
7229     # not just through cpp. "Syntax error" is here to catch this case.
7230     cat >conftest.$ac_ext <<_ACEOF
7231     /* confdefs.h. */
7232     _ACEOF
7233     cat confdefs.h >>conftest.$ac_ext
7234     cat >>conftest.$ac_ext <<_ACEOF
7235     /* end confdefs.h. */
7236     #ifdef __STDC__
7237     # include <limits.h>
7238     #else
7239     # include <assert.h>
7240     #endif
7241 pcg 1.11 Syntax error
7242 pcg 1.1 _ACEOF
7243 pcg 1.33 if { (ac_try="$ac_cpp conftest.$ac_ext"
7244     case "(($ac_try" in
7245     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246     *) ac_try_echo=$ac_try;;
7247     esac
7248     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7250 pcg 1.1 ac_status=$?
7251     grep -v '^ *+' conftest.er1 >conftest.err
7252     rm -f conftest.er1
7253     cat conftest.err >&5
7254     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 pcg 1.33 (exit $ac_status); } >/dev/null && {
7256     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7257     test ! -s conftest.err
7258     }; then
7259 pcg 1.1 :
7260     else
7261     echo "$as_me: failed program was:" >&5
7262     sed 's/^/| /' conftest.$ac_ext >&5
7263    
7264     # Broken: fails on valid input.
7265     continue
7266     fi
7267 pcg 1.33
7268 pcg 1.1 rm -f conftest.err conftest.$ac_ext
7269    
7270 pcg 1.33 # OK, works on sane cases. Now check whether nonexistent headers
7271 pcg 1.1 # can be detected and how.
7272     cat >conftest.$ac_ext <<_ACEOF
7273     /* confdefs.h. */
7274     _ACEOF
7275     cat confdefs.h >>conftest.$ac_ext
7276     cat >>conftest.$ac_ext <<_ACEOF
7277     /* end confdefs.h. */
7278     #include <ac_nonexistent.h>
7279     _ACEOF
7280 pcg 1.33 if { (ac_try="$ac_cpp conftest.$ac_ext"
7281     case "(($ac_try" in
7282     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7283     *) ac_try_echo=$ac_try;;
7284     esac
7285     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7286     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7287 pcg 1.1 ac_status=$?
7288     grep -v '^ *+' conftest.er1 >conftest.err
7289     rm -f conftest.er1
7290     cat conftest.err >&5
7291     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 pcg 1.33 (exit $ac_status); } >/dev/null && {
7293     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7294     test ! -s conftest.err
7295     }; then
7296 pcg 1.1 # Broken: success on invalid input.
7297     continue
7298     else
7299     echo "$as_me: failed program was:" >&5
7300     sed 's/^/| /' conftest.$ac_ext >&5
7301    
7302     # Passes both tests.
7303     ac_preproc_ok=:
7304     break
7305     fi
7306 pcg 1.33
7307 pcg 1.1 rm -f conftest.err conftest.$ac_ext
7308    
7309     done
7310     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7311     rm -f conftest.err conftest.$ac_ext
7312     if $ac_preproc_ok; then
7313     break
7314     fi
7315    
7316     done
7317     ac_cv_prog_CXXCPP=$CXXCPP
7318    
7319     fi
7320     CXXCPP=$ac_cv_prog_CXXCPP
7321     else
7322     ac_cv_prog_CXXCPP=$CXXCPP
7323     fi
7324 pcg 1.33 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7325     echo "${ECHO_T}$CXXCPP" >&6; }
7326 pcg 1.1 ac_preproc_ok=false
7327     for ac_cxx_preproc_warn_flag in '' yes
7328     do
7329     # Use a header file that comes with gcc, so configuring glibc
7330     # with a fresh cross-compiler works.
7331     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7332     # <limits.h> exists even on freestanding compilers.
7333     # On the NeXT, cc -E runs the code through the compiler's parser,
7334     # not just through cpp. "Syntax error" is here to catch this case.
7335     cat >conftest.$ac_ext <<_ACEOF
7336     /* confdefs.h. */
7337     _ACEOF
7338     cat confdefs.h >>conftest.$ac_ext
7339     cat >>conftest.$ac_ext <<_ACEOF
7340     /* end confdefs.h. */
7341     #ifdef __STDC__
7342     # include <limits.h>
7343     #else
7344     # include <assert.h>
7345     #endif
7346 pcg 1.11 Syntax error
7347 pcg 1.1 _ACEOF
7348 pcg 1.33 if { (ac_try="$ac_cpp conftest.$ac_ext"
7349     case "(($ac_try" in
7350     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7351     *) ac_try_echo=$ac_try;;
7352     esac
7353     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7354     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7355 pcg 1.1 ac_status=$?
7356     grep -v '^ *+' conftest.er1 >conftest.err
7357     rm -f conftest.er1
7358     cat conftest.err >&5
7359     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 pcg 1.33 (exit $ac_status); } >/dev/null && {
7361     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7362     test ! -s conftest.err
7363     }; then
7364 pcg 1.1 :
7365     else
7366     echo "$as_me: failed program was:" >&5
7367     sed 's/^/| /' conftest.$ac_ext >&5
7368    
7369     # Broken: fails on valid input.
7370     continue
7371     fi
7372 pcg 1.33
7373 pcg 1.1 rm -f conftest.err conftest.$ac_ext
7374    
7375 pcg 1.33 # OK, works on sane cases. Now check whether nonexistent headers
7376 pcg 1.1 # can be detected and how.
7377     cat >conftest.$ac_ext <<_ACEOF
7378     /* confdefs.h. */
7379     _ACEOF
7380     cat confdefs.h >>conftest.$ac_ext
7381     cat >>conftest.$ac_ext <<_ACEOF
7382     /* end confdefs.h. */
7383     #include <ac_nonexistent.h>
7384     _ACEOF
7385 pcg 1.33 if { (ac_try="$ac_cpp conftest.$ac_ext"
7386     case "(($ac_try" in
7387     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7388     *) ac_try_echo=$ac_try;;
7389     esac
7390     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7391     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7392 pcg 1.1 ac_status=$?
7393     grep -v '^ *+' conftest.er1 >conftest.err
7394     rm -f conftest.er1
7395     cat conftest.err >&5
7396     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 pcg 1.33 (exit $ac_status); } >/dev/null && {
7398     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7399     test ! -s conftest.err
7400     }; then
7401 pcg 1.1 # Broken: success on invalid input.
7402     continue
7403     else
7404     echo "$as_me: failed program was:" >&5
7405     sed 's/^/| /' conftest.$ac_ext >&5
7406    
7407     # Passes both tests.
7408     ac_preproc_ok=:
7409     break
7410     fi
7411 pcg 1.33
7412 pcg 1.1 rm -f conftest.err conftest.$ac_ext
7413    
7414     done
7415     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7416     rm -f conftest.err conftest.$ac_ext
7417     if $ac_preproc_ok; then
7418     :
7419     else
7420     { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7421     See \`config.log' for more details." >&5
7422     echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7423     See \`config.log' for more details." >&2;}
7424     { (exit 1); exit 1; }; }
7425     fi
7426    
7427 pcg 1.33 ac_ext=cpp
7428 pcg 1.1 ac_cpp='$CXXCPP $CPPFLAGS'
7429     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7430     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7431     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7432    
7433    
7434 pcg 1.33 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7435     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7436 pcg 1.1 if test "${ac_cv_header_stdc+set}" = set; then
7437     echo $ECHO_N "(cached) $ECHO_C" >&6
7438     else
7439     cat >conftest.$ac_ext <<_ACEOF
7440     /* confdefs.h. */
7441     _ACEOF
7442     cat confdefs.h >>conftest.$ac_ext
7443     cat >>conftest.$ac_ext <<_ACEOF
7444     /* end confdefs.h. */
7445     #include <stdlib.h>
7446     #include <stdarg.h>
7447     #include <string.h>
7448     #include <float.h>
7449    
7450     int
7451     main ()
7452     {
7453    
7454     ;
7455     return 0;
7456     }
7457     _ACEOF
7458     rm -f conftest.$ac_objext
7459 pcg 1.33 if { (ac_try="$ac_compile"
7460     case "(($ac_try" in
7461     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462     *) ac_try_echo=$ac_try;;
7463     esac
7464     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7465     (eval "$ac_compile") 2>conftest.er1
7466 pcg 1.1 ac_status=$?
7467 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
7468     rm -f conftest.er1
7469     cat conftest.err >&5
7470 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 pcg 1.33 (exit $ac_status); } && {
7472     test -z "$ac_cxx_werror_flag" ||
7473     test ! -s conftest.err
7474     } && test -s conftest.$ac_objext; then
7475 pcg 1.1 ac_cv_header_stdc=yes
7476     else
7477     echo "$as_me: failed program was:" >&5
7478     sed 's/^/| /' conftest.$ac_ext >&5
7479    
7480 pcg 1.33 ac_cv_header_stdc=no
7481 pcg 1.1 fi
7482 pcg 1.33
7483     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 pcg 1.1
7485     if test $ac_cv_header_stdc = yes; then
7486     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7487     cat >conftest.$ac_ext <<_ACEOF
7488     /* confdefs.h. */
7489     _ACEOF
7490     cat confdefs.h >>conftest.$ac_ext
7491     cat >>conftest.$ac_ext <<_ACEOF
7492     /* end confdefs.h. */
7493     #include <string.h>
7494    
7495     _ACEOF
7496     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7497     $EGREP "memchr" >/dev/null 2>&1; then
7498     :
7499     else
7500     ac_cv_header_stdc=no
7501     fi
7502     rm -f conftest*
7503    
7504     fi
7505    
7506     if test $ac_cv_header_stdc = yes; then
7507     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7508     cat >conftest.$ac_ext <<_ACEOF
7509     /* confdefs.h. */
7510     _ACEOF
7511     cat confdefs.h >>conftest.$ac_ext
7512     cat >>conftest.$ac_ext <<_ACEOF
7513     /* end confdefs.h. */
7514     #include <stdlib.h>
7515    
7516     _ACEOF
7517     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7518     $EGREP "free" >/dev/null 2>&1; then
7519     :
7520     else
7521     ac_cv_header_stdc=no
7522     fi
7523     rm -f conftest*
7524    
7525     fi
7526    
7527     if test $ac_cv_header_stdc = yes; then
7528     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7529     if test "$cross_compiling" = yes; then
7530     :
7531     else
7532     cat >conftest.$ac_ext <<_ACEOF
7533     /* confdefs.h. */
7534     _ACEOF
7535     cat confdefs.h >>conftest.$ac_ext
7536     cat >>conftest.$ac_ext <<_ACEOF
7537     /* end confdefs.h. */
7538     #include <ctype.h>
7539 pcg 1.33 #include <stdlib.h>
7540 pcg 1.1 #if ((' ' & 0x0FF) == 0x020)
7541     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7542     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7543     #else
7544     # define ISLOWER(c) \
7545 pcg 1.11 (('a' <= (c) && (c) <= 'i') \
7546     || ('j' <= (c) && (c) <= 'r') \
7547     || ('s' <= (c) && (c) <= 'z'))
7548 pcg 1.1 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7549     #endif
7550    
7551     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7552     int
7553     main ()
7554     {
7555     int i;
7556     for (i = 0; i < 256; i++)
7557     if (XOR (islower (i), ISLOWER (i))
7558 pcg 1.11 || toupper (i) != TOUPPER (i))
7559 pcg 1.33 return 2;
7560     return 0;
7561 pcg 1.1 }
7562     _ACEOF
7563     rm -f conftest$ac_exeext
7564 pcg 1.33 if { (ac_try="$ac_link"
7565     case "(($ac_try" in
7566     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567     *) ac_try_echo=$ac_try;;
7568     esac
7569     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7570     (eval "$ac_link") 2>&5
7571 pcg 1.1 ac_status=$?
7572     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7574 pcg 1.33 { (case "(($ac_try" in
7575     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576     *) ac_try_echo=$ac_try;;
7577     esac
7578     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579     (eval "$ac_try") 2>&5
7580 pcg 1.1 ac_status=$?
7581     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582     (exit $ac_status); }; }; then
7583     :
7584     else
7585     echo "$as_me: program exited with status $ac_status" >&5
7586     echo "$as_me: failed program was:" >&5
7587     sed 's/^/| /' conftest.$ac_ext >&5
7588    
7589     ( exit $ac_status )
7590     ac_cv_header_stdc=no
7591     fi
7592 pcg 1.33 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7593 pcg 1.1 fi
7594 pcg 1.33
7595    
7596 pcg 1.1 fi
7597     fi
7598 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7599     echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7600 pcg 1.1 if test $ac_cv_header_stdc = yes; then
7601    
7602     cat >>confdefs.h <<\_ACEOF
7603     #define STDC_HEADERS 1
7604     _ACEOF
7605    
7606     fi
7607    
7608     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7609    
7610    
7611    
7612    
7613    
7614    
7615    
7616    
7617    
7618     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7619 pcg 1.11 inttypes.h stdint.h unistd.h
7620 pcg 1.1 do
7621     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7622 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7623     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7624     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7625 pcg 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
7626     else
7627     cat >conftest.$ac_ext <<_ACEOF
7628     /* confdefs.h. */
7629     _ACEOF
7630     cat confdefs.h >>conftest.$ac_ext
7631     cat >>conftest.$ac_ext <<_ACEOF
7632     /* end confdefs.h. */
7633     $ac_includes_default
7634    
7635     #include <$ac_header>
7636     _ACEOF
7637     rm -f conftest.$ac_objext
7638 pcg 1.33 if { (ac_try="$ac_compile"
7639     case "(($ac_try" in
7640     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641     *) ac_try_echo=$ac_try;;
7642     esac
7643     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7644     (eval "$ac_compile") 2>conftest.er1
7645 pcg 1.1 ac_status=$?
7646 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
7647     rm -f conftest.er1
7648     cat conftest.err >&5
7649 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 pcg 1.33 (exit $ac_status); } && {
7651     test -z "$ac_cxx_werror_flag" ||
7652     test ! -s conftest.err
7653     } && test -s conftest.$ac_objext; then
7654 pcg 1.1 eval "$as_ac_Header=yes"
7655     else
7656     echo "$as_me: failed program was:" >&5
7657     sed 's/^/| /' conftest.$ac_ext >&5
7658    
7659 pcg 1.33 eval "$as_ac_Header=no"
7660 pcg 1.1 fi
7661 pcg 1.33
7662     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7663 pcg 1.1 fi
7664 pcg 1.33 ac_res=`eval echo '${'$as_ac_Header'}'`
7665     { echo "$as_me:$LINENO: result: $ac_res" >&5
7666     echo "${ECHO_T}$ac_res" >&6; }
7667 pcg 1.1 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7668     cat >>confdefs.h <<_ACEOF
7669     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7670     _ACEOF
7671    
7672     fi
7673    
7674     done
7675    
7676    
7677    
7678 pcg 1.26
7679 pcg 1.38
7680     for ac_header in tr1/unordered_map ext/hash_map clocale
7681 pcg 1.1 do
7682     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7683 pcg 1.33 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7684     { echo "$as_me:$LINENO: checking for $ac_header" >&5
7685     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7686     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7687 pcg 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
7688     fi
7689 pcg 1.33 ac_res=`eval echo '${'$as_ac_Header'}'`
7690     { echo "$as_me:$LINENO: result: $ac_res" >&5
7691     echo "${ECHO_T}$ac_res" >&6; }
7692 pcg 1.1 else
7693     # Is the header compilable?
7694 pcg 1.33 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7695     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7696 pcg 1.1 cat >conftest.$ac_ext <<_ACEOF
7697     /* confdefs.h. */
7698     _ACEOF
7699     cat confdefs.h >>conftest.$ac_ext
7700     cat >>conftest.$ac_ext <<_ACEOF
7701     /* end confdefs.h. */
7702     $ac_includes_default
7703     #include <$ac_header>
7704     _ACEOF
7705     rm -f conftest.$ac_objext
7706 pcg 1.33 if { (ac_try="$ac_compile"
7707     case "(($ac_try" in
7708     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709     *) ac_try_echo=$ac_try;;
7710     esac
7711     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7712     (eval "$ac_compile") 2>conftest.er1
7713 pcg 1.1 ac_status=$?
7714 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
7715     rm -f conftest.er1
7716     cat conftest.err >&5
7717 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 pcg 1.33 (exit $ac_status); } && {
7719     test -z "$ac_cxx_werror_flag" ||
7720     test ! -s conftest.err
7721     } && test -s conftest.$ac_objext; then
7722 pcg 1.1 ac_header_compiler=yes
7723     else
7724     echo "$as_me: failed program was:" >&5
7725     sed 's/^/| /' conftest.$ac_ext >&5
7726    
7727 pcg 1.33 ac_header_compiler=no
7728 pcg 1.1 fi
7729 pcg 1.33
7730     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7731     { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7732     echo "${ECHO_T}$ac_header_compiler" >&6; }
7733 pcg 1.1
7734     # Is the header present?
7735 pcg 1.33 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7736     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7737 pcg 1.1 cat >conftest.$ac_ext <<_ACEOF
7738     /* confdefs.h. */
7739     _ACEOF
7740     cat confdefs.h >>conftest.$ac_ext
7741     cat >>conftest.$ac_ext <<_ACEOF
7742     /* end confdefs.h. */
7743     #include <$ac_header>
7744     _ACEOF
7745 pcg 1.33 if { (ac_try="$ac_cpp conftest.$ac_ext"
7746     case "(($ac_try" in
7747     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748     *) ac_try_echo=$ac_try;;
7749     esac
7750     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7752 pcg 1.1 ac_status=$?
7753     grep -v '^ *+' conftest.er1 >conftest.err
7754     rm -f conftest.er1
7755     cat conftest.err >&5
7756     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 pcg 1.33 (exit $ac_status); } >/dev/null && {
7758     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7759     test ! -s conftest.err
7760     }; then
7761 pcg 1.1 ac_header_preproc=yes
7762     else
7763     echo "$as_me: failed program was:" >&5
7764     sed 's/^/| /' conftest.$ac_ext >&5
7765    
7766     ac_header_preproc=no
7767     fi
7768 pcg 1.33
7769 pcg 1.1 rm -f conftest.err conftest.$ac_ext
7770 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7771     echo "${ECHO_T}$ac_header_preproc" >&6; }
7772 pcg 1.1
7773     # So? What about this header?
7774 pcg 1.11 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7775     yes:no: )
7776 pcg 1.1 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7777     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7778 pcg 1.11 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7779     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7780     ac_header_preproc=yes
7781 pcg 1.1 ;;
7782 pcg 1.11 no:yes:* )
7783 pcg 1.1 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7784     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7785 pcg 1.11 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7786     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7787     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7788     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7789     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7790     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7791 pcg 1.1 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7792     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7793 pcg 1.11 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7794     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7795 pcg 1.33
7796 pcg 1.1 ;;
7797     esac
7798 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7799     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7800     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7801 pcg 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
7802     else
7803 pcg 1.11 eval "$as_ac_Header=\$ac_header_preproc"
7804 pcg 1.1 fi
7805 pcg 1.33 ac_res=`eval echo '${'$as_ac_Header'}'`
7806     { echo "$as_me:$LINENO: result: $ac_res" >&5
7807     echo "${ECHO_T}$ac_res" >&6; }
7808 pcg 1.1
7809     fi
7810     if test `eval echo '${'$as_ac_Header'}'` = yes; then
7811     cat >>confdefs.h <<_ACEOF
7812     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7813     _ACEOF
7814    
7815     fi
7816    
7817     done
7818    
7819    
7820    
7821    
7822    
7823    
7824    
7825    
7826    
7827    
7828    
7829    
7830    
7831    
7832    
7833    
7834    
7835    
7836     for ac_header in fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \
7837 pcg 1.13 sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h \
7838 pcg 1.11 sys/mman.h netinet/in.h
7839 pcg 1.1 do
7840     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7841 pcg 1.33 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7842     { echo "$as_me:$LINENO: checking for $ac_header" >&5
7843     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7844     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7845 pcg 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
7846     fi
7847 pcg 1.33 ac_res=`eval echo '${'$as_ac_Header'}'`
7848     { echo "$as_me:$LINENO: result: $ac_res" >&5
7849     echo "${ECHO_T}$ac_res" >&6; }
7850 pcg 1.1 else
7851     # Is the header compilable?
7852 pcg 1.33 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7853     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7854 pcg 1.1 cat >conftest.$ac_ext <<_ACEOF
7855     /* confdefs.h. */
7856     _ACEOF
7857     cat confdefs.h >>conftest.$ac_ext
7858     cat >>conftest.$ac_ext <<_ACEOF
7859     /* end confdefs.h. */
7860     $ac_includes_default
7861     #include <$ac_header>
7862     _ACEOF
7863     rm -f conftest.$ac_objext
7864 pcg 1.33 if { (ac_try="$ac_compile"
7865     case "(($ac_try" in
7866     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867     *) ac_try_echo=$ac_try;;
7868     esac
7869     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870     (eval "$ac_compile") 2>conftest.er1
7871 pcg 1.1 ac_status=$?
7872 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
7873     rm -f conftest.er1
7874     cat conftest.err >&5
7875 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 pcg 1.33 (exit $ac_status); } && {
7877     test -z "$ac_cxx_werror_flag" ||
7878     test ! -s conftest.err
7879     } && test -s conftest.$ac_objext; then
7880 pcg 1.1 ac_header_compiler=yes
7881     else
7882     echo "$as_me: failed program was:" >&5
7883     sed 's/^/| /' conftest.$ac_ext >&5
7884    
7885 pcg 1.33 ac_header_compiler=no
7886 pcg 1.1 fi
7887 pcg 1.33
7888     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7889     { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7890     echo "${ECHO_T}$ac_header_compiler" >&6; }
7891 pcg 1.1
7892     # Is the header present?
7893 pcg 1.33 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7894     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7895 pcg 1.1 cat >conftest.$ac_ext <<_ACEOF
7896     /* confdefs.h. */
7897     _ACEOF
7898     cat confdefs.h >>conftest.$ac_ext
7899     cat >>conftest.$ac_ext <<_ACEOF
7900     /* end confdefs.h. */
7901     #include <$ac_header>
7902     _ACEOF
7903 pcg 1.33 if { (ac_try="$ac_cpp conftest.$ac_ext"
7904     case "(($ac_try" in
7905     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7906     *) ac_try_echo=$ac_try;;
7907     esac
7908     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7909     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7910 pcg 1.1 ac_status=$?
7911     grep -v '^ *+' conftest.er1 >conftest.err
7912     rm -f conftest.er1
7913     cat conftest.err >&5
7914     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 pcg 1.33 (exit $ac_status); } >/dev/null && {
7916     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7917     test ! -s conftest.err
7918     }; then
7919 pcg 1.1 ac_header_preproc=yes
7920     else
7921     echo "$as_me: failed program was:" >&5
7922     sed 's/^/| /' conftest.$ac_ext >&5
7923    
7924     ac_header_preproc=no
7925     fi
7926 pcg 1.33
7927 pcg 1.1 rm -f conftest.err conftest.$ac_ext
7928 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7929     echo "${ECHO_T}$ac_header_preproc" >&6; }
7930 pcg 1.1
7931     # So? What about this header?
7932 pcg 1.11 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7933     yes:no: )
7934 pcg 1.1 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7935     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7936 pcg 1.11 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7937     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7938     ac_header_preproc=yes
7939 pcg 1.1 ;;
7940 pcg 1.11 no:yes:* )
7941 pcg 1.1 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7942     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7943 pcg 1.11 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7944     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7945     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7946     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7947     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7948     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7949 pcg 1.1 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7950     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7951 pcg 1.11 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7952     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7953 pcg 1.33
7954 pcg 1.1 ;;
7955     esac
7956 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7957     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7958     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7959 pcg 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
7960     else
7961 pcg 1.11 eval "$as_ac_Header=\$ac_header_preproc"
7962 pcg 1.1 fi
7963 pcg 1.33 ac_res=`eval echo '${'$as_ac_Header'}'`
7964     { echo "$as_me:$LINENO: result: $ac_res" >&5
7965     echo "${ECHO_T}$ac_res" >&6; }
7966 pcg 1.1
7967     fi
7968     if test `eval echo '${'$as_ac_Header'}'` = yes; then
7969     cat >>confdefs.h <<_ACEOF
7970     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7971     _ACEOF
7972    
7973     fi
7974    
7975     done
7976    
7977    
7978    
7979    
7980    
7981    
7982 pcg 1.13
7983     for ac_header in arpa/inet.h net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h
7984 pcg 1.1 do
7985     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7986 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7987     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7988     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7989 pcg 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
7990     else
7991     cat >conftest.$ac_ext <<_ACEOF
7992     /* confdefs.h. */
7993     _ACEOF
7994     cat confdefs.h >>conftest.$ac_ext
7995     cat >>conftest.$ac_ext <<_ACEOF
7996     /* end confdefs.h. */
7997    
7998     #include <sys/types.h>
7999     #include <sys/socket.h>
8000     #ifdef HAVE_NETINET_IN_H
8001     # include <netinet/in.h>
8002     #endif
8003     #ifdef HAVE_ARPA_INET_H
8004     # include <arpa/inet.h>
8005     #endif
8006     #ifdef HAVE_NETINET_IN_SYSTM_H
8007     # include <netinet/in_systm.h>
8008     #endif
8009    
8010    
8011     #include <$ac_header>
8012     _ACEOF
8013     rm -f conftest.$ac_objext
8014 pcg 1.33 if { (ac_try="$ac_compile"
8015     case "(($ac_try" in
8016     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017     *) ac_try_echo=$ac_try;;
8018     esac
8019     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020     (eval "$ac_compile") 2>conftest.er1
8021 pcg 1.1 ac_status=$?
8022 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8023     rm -f conftest.er1
8024     cat conftest.err >&5
8025 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 pcg 1.33 (exit $ac_status); } && {
8027     test -z "$ac_cxx_werror_flag" ||
8028     test ! -s conftest.err
8029     } && test -s conftest.$ac_objext; then
8030 pcg 1.1 eval "$as_ac_Header=yes"
8031     else
8032     echo "$as_me: failed program was:" >&5
8033     sed 's/^/| /' conftest.$ac_ext >&5
8034    
8035 pcg 1.33 eval "$as_ac_Header=no"
8036 pcg 1.1 fi
8037 pcg 1.33
8038     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8039 pcg 1.1 fi
8040 pcg 1.33 ac_res=`eval echo '${'$as_ac_Header'}'`
8041     { echo "$as_me:$LINENO: result: $ac_res" >&5
8042     echo "${ECHO_T}$ac_res" >&6; }
8043 pcg 1.1 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8044     cat >>confdefs.h <<_ACEOF
8045     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8046     _ACEOF
8047    
8048     fi
8049    
8050     done
8051    
8052    
8053 pcg 1.33 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8054     echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8055 pcg 1.1 if test "${ac_cv_c_const+set}" = set; then
8056     echo $ECHO_N "(cached) $ECHO_C" >&6
8057     else
8058     cat >conftest.$ac_ext <<_ACEOF
8059     /* confdefs.h. */
8060     _ACEOF
8061     cat confdefs.h >>conftest.$ac_ext
8062     cat >>conftest.$ac_ext <<_ACEOF
8063     /* end confdefs.h. */
8064    
8065     int
8066     main ()
8067     {
8068     /* FIXME: Include the comments suggested by Paul. */
8069     #ifndef __cplusplus
8070     /* Ultrix mips cc rejects this. */
8071     typedef int charset[2];
8072 pcg 1.33 const charset cs;
8073 pcg 1.1 /* SunOS 4.1.1 cc rejects this. */
8074 pcg 1.33 char const *const *pcpcc;
8075     char **ppc;
8076 pcg 1.1 /* NEC SVR4.0.2 mips cc rejects this. */
8077     struct point {int x, y;};
8078     static struct point const zero = {0,0};
8079     /* AIX XL C 1.02.0.0 rejects this.
8080     It does not let you subtract one const X* pointer from another in
8081     an arm of an if-expression whose if-part is not a constant
8082     expression */
8083     const char *g = "string";
8084 pcg 1.33 pcpcc = &g + (g ? g-g : 0);
8085 pcg 1.1 /* HPUX 7.0 cc rejects these. */
8086 pcg 1.33 ++pcpcc;
8087     ppc = (char**) pcpcc;
8088     pcpcc = (char const *const *) ppc;
8089 pcg 1.1 { /* SCO 3.2v4 cc rejects this. */
8090     char *t;
8091     char const *s = 0 ? (char *) 0 : (char const *) 0;
8092    
8093     *t++ = 0;
8094 pcg 1.33 if (s) return 0;
8095 pcg 1.1 }
8096     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8097     int x[] = {25, 17};
8098     const int *foo = &x[0];
8099     ++foo;
8100     }
8101     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8102     typedef const int *iptr;
8103     iptr p = 0;
8104     ++p;
8105     }
8106     { /* AIX XL C 1.02.0.0 rejects this saying
8107     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8108     struct s { int j; const int *ap[3]; };
8109     struct s *b; b->j = 5;
8110     }
8111     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8112     const int foo = 10;
8113 pcg 1.33 if (!foo) return 0;
8114 pcg 1.1 }
8115 pcg 1.33 return !cs[0] && !zero.x;
8116 pcg 1.1 #endif
8117    
8118     ;
8119     return 0;
8120     }
8121     _ACEOF
8122     rm -f conftest.$ac_objext
8123 pcg 1.33 if { (ac_try="$ac_compile"
8124     case "(($ac_try" in
8125     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8126     *) ac_try_echo=$ac_try;;
8127     esac
8128     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8129     (eval "$ac_compile") 2>conftest.er1
8130 pcg 1.1 ac_status=$?
8131 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8132     rm -f conftest.er1
8133     cat conftest.err >&5
8134 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 pcg 1.33 (exit $ac_status); } && {
8136     test -z "$ac_cxx_werror_flag" ||
8137     test ! -s conftest.err
8138     } && test -s conftest.$ac_objext; then
8139 pcg 1.1 ac_cv_c_const=yes
8140     else
8141     echo "$as_me: failed program was:" >&5
8142     sed 's/^/| /' conftest.$ac_ext >&5
8143    
8144 pcg 1.33 ac_cv_c_const=no
8145 pcg 1.1 fi
8146 pcg 1.33
8147     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148 pcg 1.1 fi
8149 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8150     echo "${ECHO_T}$ac_cv_c_const" >&6; }
8151 pcg 1.1 if test $ac_cv_c_const = no; then
8152    
8153     cat >>confdefs.h <<\_ACEOF
8154     #define const
8155     _ACEOF
8156    
8157     fi
8158    
8159 pcg 1.33 { echo "$as_me:$LINENO: checking for pid_t" >&5
8160     echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
8161 pcg 1.1 if test "${ac_cv_type_pid_t+set}" = set; then
8162     echo $ECHO_N "(cached) $ECHO_C" >&6
8163     else
8164     cat >conftest.$ac_ext <<_ACEOF
8165     /* confdefs.h. */
8166     _ACEOF
8167     cat confdefs.h >>conftest.$ac_ext
8168     cat >>conftest.$ac_ext <<_ACEOF
8169     /* end confdefs.h. */
8170     $ac_includes_default
8171 pcg 1.33 typedef pid_t ac__type_new_;
8172 pcg 1.1 int
8173     main ()
8174     {
8175 pcg 1.33 if ((ac__type_new_ *) 0)
8176 pcg 1.1 return 0;
8177 pcg 1.33 if (sizeof (ac__type_new_))
8178 pcg 1.1 return 0;
8179     ;
8180     return 0;
8181     }
8182     _ACEOF
8183     rm -f conftest.$ac_objext
8184 pcg 1.33 if { (ac_try="$ac_compile"
8185     case "(($ac_try" in
8186     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187     *) ac_try_echo=$ac_try;;
8188     esac
8189     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190     (eval "$ac_compile") 2>conftest.er1
8191 pcg 1.1 ac_status=$?
8192 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8193     rm -f conftest.er1
8194     cat conftest.err >&5
8195 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 pcg 1.33 (exit $ac_status); } && {
8197     test -z "$ac_cxx_werror_flag" ||
8198     test ! -s conftest.err
8199     } && test -s conftest.$ac_objext; then
8200 pcg 1.1 ac_cv_type_pid_t=yes
8201     else
8202     echo "$as_me: failed program was:" >&5
8203     sed 's/^/| /' conftest.$ac_ext >&5
8204    
8205 pcg 1.33 ac_cv_type_pid_t=no
8206 pcg 1.1 fi
8207 pcg 1.33
8208     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8209 pcg 1.1 fi
8210 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8211     echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
8212 pcg 1.1 if test $ac_cv_type_pid_t = yes; then
8213     :
8214     else
8215    
8216     cat >>confdefs.h <<_ACEOF
8217     #define pid_t int
8218     _ACEOF
8219    
8220     fi
8221    
8222 pcg 1.33 { echo "$as_me:$LINENO: checking for size_t" >&5
8223     echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8224 pcg 1.1 if test "${ac_cv_type_size_t+set}" = set; then
8225     echo $ECHO_N "(cached) $ECHO_C" >&6
8226     else
8227     cat >conftest.$ac_ext <<_ACEOF
8228     /* confdefs.h. */
8229     _ACEOF
8230     cat confdefs.h >>conftest.$ac_ext
8231     cat >>conftest.$ac_ext <<_ACEOF
8232     /* end confdefs.h. */
8233     $ac_includes_default
8234 pcg 1.33 typedef size_t ac__type_new_;
8235 pcg 1.1 int
8236     main ()
8237     {
8238 pcg 1.33 if ((ac__type_new_ *) 0)
8239 pcg 1.1 return 0;
8240 pcg 1.33 if (sizeof (ac__type_new_))
8241 pcg 1.1 return 0;
8242     ;
8243     return 0;
8244     }
8245     _ACEOF
8246     rm -f conftest.$ac_objext
8247 pcg 1.33 if { (ac_try="$ac_compile"
8248     case "(($ac_try" in
8249     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250     *) ac_try_echo=$ac_try;;
8251     esac
8252     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253     (eval "$ac_compile") 2>conftest.er1
8254 pcg 1.1 ac_status=$?
8255 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8256     rm -f conftest.er1
8257     cat conftest.err >&5
8258 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 pcg 1.33 (exit $ac_status); } && {
8260     test -z "$ac_cxx_werror_flag" ||
8261     test ! -s conftest.err
8262     } && test -s conftest.$ac_objext; then
8263 pcg 1.1 ac_cv_type_size_t=yes
8264     else
8265     echo "$as_me: failed program was:" >&5
8266     sed 's/^/| /' conftest.$ac_ext >&5
8267    
8268 pcg 1.33 ac_cv_type_size_t=no
8269 pcg 1.1 fi
8270 pcg 1.33
8271     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8272 pcg 1.1 fi
8273 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8274     echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8275 pcg 1.1 if test $ac_cv_type_size_t = yes; then
8276     :
8277     else
8278    
8279     cat >>confdefs.h <<_ACEOF
8280 pcg 1.33 #define size_t unsigned int
8281 pcg 1.1 _ACEOF
8282    
8283     fi
8284    
8285 pcg 1.33 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8286     echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
8287 pcg 1.1 if test "${ac_cv_header_time+set}" = set; then
8288     echo $ECHO_N "(cached) $ECHO_C" >&6
8289     else
8290     cat >conftest.$ac_ext <<_ACEOF
8291     /* confdefs.h. */
8292     _ACEOF
8293     cat confdefs.h >>conftest.$ac_ext
8294     cat >>conftest.$ac_ext <<_ACEOF
8295     /* end confdefs.h. */
8296     #include <sys/types.h>
8297     #include <sys/time.h>
8298     #include <time.h>
8299    
8300     int
8301     main ()
8302     {
8303     if ((struct tm *) 0)
8304     return 0;
8305     ;
8306     return 0;
8307     }
8308     _ACEOF
8309     rm -f conftest.$ac_objext
8310 pcg 1.33 if { (ac_try="$ac_compile"
8311     case "(($ac_try" in
8312     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313     *) ac_try_echo=$ac_try;;
8314     esac
8315     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316     (eval "$ac_compile") 2>conftest.er1
8317 pcg 1.1 ac_status=$?
8318 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8319     rm -f conftest.er1
8320     cat conftest.err >&5
8321 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 pcg 1.33 (exit $ac_status); } && {
8323     test -z "$ac_cxx_werror_flag" ||
8324     test ! -s conftest.err
8325     } && test -s conftest.$ac_objext; then
8326 pcg 1.1 ac_cv_header_time=yes
8327     else
8328     echo "$as_me: failed program was:" >&5
8329     sed 's/^/| /' conftest.$ac_ext >&5
8330    
8331 pcg 1.33 ac_cv_header_time=no
8332 pcg 1.1 fi
8333 pcg 1.33
8334     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335 pcg 1.1 fi
8336 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8337     echo "${ECHO_T}$ac_cv_header_time" >&6; }
8338 pcg 1.1 if test $ac_cv_header_time = yes; then
8339    
8340     cat >>confdefs.h <<\_ACEOF
8341     #define TIME_WITH_SYS_TIME 1
8342     _ACEOF
8343    
8344     fi
8345    
8346 pcg 1.33 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8347     echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
8348 pcg 1.1 if test "${ac_cv_struct_tm+set}" = set; then
8349     echo $ECHO_N "(cached) $ECHO_C" >&6
8350     else
8351     cat >conftest.$ac_ext <<_ACEOF
8352     /* confdefs.h. */
8353     _ACEOF
8354     cat confdefs.h >>conftest.$ac_ext
8355     cat >>conftest.$ac_ext <<_ACEOF
8356     /* end confdefs.h. */
8357     #include <sys/types.h>
8358     #include <time.h>
8359    
8360     int
8361     main ()
8362     {
8363 pcg 1.33 struct tm tm;
8364     int *p = &tm.tm_sec;
8365     return !p;
8366 pcg 1.1 ;
8367     return 0;
8368     }
8369     _ACEOF
8370     rm -f conftest.$ac_objext
8371 pcg 1.33 if { (ac_try="$ac_compile"
8372     case "(($ac_try" in
8373     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374     *) ac_try_echo=$ac_try;;
8375     esac
8376     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377     (eval "$ac_compile") 2>conftest.er1
8378 pcg 1.1 ac_status=$?
8379 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8380     rm -f conftest.er1
8381     cat conftest.err >&5
8382 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 pcg 1.33 (exit $ac_status); } && {
8384     test -z "$ac_cxx_werror_flag" ||
8385     test ! -s conftest.err
8386     } && test -s conftest.$ac_objext; then
8387 pcg 1.1 ac_cv_struct_tm=time.h
8388     else
8389     echo "$as_me: failed program was:" >&5
8390     sed 's/^/| /' conftest.$ac_ext >&5
8391    
8392 pcg 1.33 ac_cv_struct_tm=sys/time.h
8393 pcg 1.1 fi
8394 pcg 1.33
8395     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396 pcg 1.1 fi
8397 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8398     echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
8399 pcg 1.1 if test $ac_cv_struct_tm = sys/time.h; then
8400    
8401     cat >>confdefs.h <<\_ACEOF
8402     #define TM_IN_SYS_TIME 1
8403     _ACEOF
8404    
8405     fi
8406    
8407    
8408 pcg 1.33 { echo "$as_me:$LINENO: checking for socklen_t" >&5
8409     echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8410 pcg 1.1 if test "${ac_cv_type_socklen_t+set}" = set; then
8411     echo $ECHO_N "(cached) $ECHO_C" >&6
8412     else
8413    
8414     cat >conftest.$ac_ext <<_ACEOF
8415     /* confdefs.h. */
8416     _ACEOF
8417     cat confdefs.h >>conftest.$ac_ext
8418     cat >>conftest.$ac_ext <<_ACEOF
8419     /* end confdefs.h. */
8420     #include <sys/types.h>
8421     #include <sys/socket.h>
8422     int
8423     main ()
8424     {
8425     socklen_t len = 42; return len;
8426     ;
8427     return 0;
8428     }
8429     _ACEOF
8430     rm -f conftest.$ac_objext
8431 pcg 1.33 if { (ac_try="$ac_compile"
8432     case "(($ac_try" in
8433     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434     *) ac_try_echo=$ac_try;;
8435     esac
8436     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437     (eval "$ac_compile") 2>conftest.er1
8438 pcg 1.1 ac_status=$?
8439 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8440     rm -f conftest.er1
8441     cat conftest.err >&5
8442 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 pcg 1.33 (exit $ac_status); } && {
8444     test -z "$ac_cxx_werror_flag" ||
8445     test ! -s conftest.err
8446     } && test -s conftest.$ac_objext; then
8447 pcg 1.1 ac_cv_type_socklen_t=yes
8448     else
8449     echo "$as_me: failed program was:" >&5
8450     sed 's/^/| /' conftest.$ac_ext >&5
8451    
8452 pcg 1.33 ac_cv_type_socklen_t=no
8453 pcg 1.1 fi
8454 pcg 1.33
8455     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 pcg 1.1
8457     fi
8458 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8459     echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
8460 pcg 1.1 if test $ac_cv_type_socklen_t = yes; then
8461    
8462     cat >>confdefs.h <<\_ACEOF
8463     #define HAVE_SOCKLEN_T 1
8464     _ACEOF
8465    
8466     fi
8467    
8468 pcg 1.33 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
8469     echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
8470 pcg 1.1 if test "${ac_cv_struct_addrinfo+set}" = set; then
8471     echo $ECHO_N "(cached) $ECHO_C" >&6
8472     else
8473    
8474     cat >conftest.$ac_ext <<_ACEOF
8475     /* confdefs.h. */
8476     _ACEOF
8477     cat confdefs.h >>conftest.$ac_ext
8478     cat >>conftest.$ac_ext <<_ACEOF
8479     /* end confdefs.h. */
8480     #include <sys/types.h>
8481     #include <sys/socket.h>
8482     #include <netdb.h>
8483     int
8484     main ()
8485     {
8486     struct addrinfo ai; ai.ai_family = AF_INET; return ai.ai_family;
8487     ;
8488     return 0;
8489     }
8490     _ACEOF
8491     rm -f conftest.$ac_objext
8492 pcg 1.33 if { (ac_try="$ac_compile"
8493     case "(($ac_try" in
8494     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495     *) ac_try_echo=$ac_try;;
8496     esac
8497     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498     (eval "$ac_compile") 2>conftest.er1
8499 pcg 1.1 ac_status=$?
8500 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8501     rm -f conftest.er1
8502     cat conftest.err >&5
8503 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 pcg 1.33 (exit $ac_status); } && {
8505     test -z "$ac_cxx_werror_flag" ||
8506     test ! -s conftest.err
8507     } && test -s conftest.$ac_objext; then
8508 pcg 1.1 ac_cv_struct_addrinfo=yes
8509     else
8510     echo "$as_me: failed program was:" >&5
8511     sed 's/^/| /' conftest.$ac_ext >&5
8512    
8513 pcg 1.33 ac_cv_struct_addrinfo=no
8514 pcg 1.1 fi
8515 pcg 1.33
8516     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8517 pcg 1.1
8518     fi
8519 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
8520     echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
8521 pcg 1.1 if test $ac_cv_struct_addrinfo = yes; then
8522    
8523     cat >>confdefs.h <<\_ACEOF
8524     #define HAVE_STRUCT_ADDRINFO 1
8525     _ACEOF
8526    
8527     fi
8528    
8529 pcg 1.33 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8530     echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8531 pcg 1.1 if test "${ac_cv_type_signal+set}" = set; then
8532     echo $ECHO_N "(cached) $ECHO_C" >&6
8533     else
8534     cat >conftest.$ac_ext <<_ACEOF
8535     /* confdefs.h. */
8536     _ACEOF
8537     cat confdefs.h >>conftest.$ac_ext
8538     cat >>conftest.$ac_ext <<_ACEOF
8539     /* end confdefs.h. */
8540     #include <sys/types.h>
8541     #include <signal.h>
8542    
8543     int
8544     main ()
8545     {
8546 pcg 1.33 return *(signal (0, 0)) (0) == 1;
8547 pcg 1.1 ;
8548     return 0;
8549     }
8550     _ACEOF
8551     rm -f conftest.$ac_objext
8552 pcg 1.33 if { (ac_try="$ac_compile"
8553     case "(($ac_try" in
8554     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555     *) ac_try_echo=$ac_try;;
8556     esac
8557     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558     (eval "$ac_compile") 2>conftest.er1
8559 pcg 1.1 ac_status=$?
8560 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8561     rm -f conftest.er1
8562     cat conftest.err >&5
8563 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 pcg 1.33 (exit $ac_status); } && {
8565     test -z "$ac_cxx_werror_flag" ||
8566     test ! -s conftest.err
8567     } && test -s conftest.$ac_objext; then
8568     ac_cv_type_signal=int
8569 pcg 1.1 else
8570     echo "$as_me: failed program was:" >&5
8571     sed 's/^/| /' conftest.$ac_ext >&5
8572    
8573 pcg 1.33 ac_cv_type_signal=void
8574 pcg 1.1 fi
8575 pcg 1.33
8576     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8577 pcg 1.1 fi
8578 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8579     echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8580 pcg 1.1
8581     cat >>confdefs.h <<_ACEOF
8582     #define RETSIGTYPE $ac_cv_type_signal
8583     _ACEOF
8584    
8585    
8586    
8587     ac_ext=c
8588     ac_cpp='$CPP $CPPFLAGS'
8589     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8590     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8591     ac_compiler_gnu=$ac_cv_c_compiler_gnu
8592    
8593    
8594 pcg 1.33 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8595     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8596 pcg 1.1 if test "${ac_cv_header_stdc+set}" = set; then
8597     echo $ECHO_N "(cached) $ECHO_C" >&6
8598     else
8599     cat >conftest.$ac_ext <<_ACEOF
8600     /* confdefs.h. */
8601     _ACEOF
8602     cat confdefs.h >>conftest.$ac_ext
8603     cat >>conftest.$ac_ext <<_ACEOF
8604     /* end confdefs.h. */
8605     #include <stdlib.h>
8606     #include <stdarg.h>
8607     #include <string.h>
8608     #include <float.h>
8609    
8610     int
8611     main ()
8612     {
8613    
8614     ;
8615     return 0;
8616     }
8617     _ACEOF
8618     rm -f conftest.$ac_objext
8619 pcg 1.33 if { (ac_try="$ac_compile"
8620     case "(($ac_try" in
8621     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622     *) ac_try_echo=$ac_try;;
8623     esac
8624     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625     (eval "$ac_compile") 2>conftest.er1
8626 pcg 1.1 ac_status=$?
8627 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8628     rm -f conftest.er1
8629     cat conftest.err >&5
8630 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 pcg 1.33 (exit $ac_status); } && {
8632     test -z "$ac_c_werror_flag" ||
8633     test ! -s conftest.err
8634     } && test -s conftest.$ac_objext; then
8635     ac_cv_header_stdc=yes
8636     else
8637 pcg 1.1 echo "$as_me: failed program was:" >&5
8638     sed 's/^/| /' conftest.$ac_ext >&5
8639    
8640 pcg 1.33 ac_cv_header_stdc=no
8641 pcg 1.1 fi
8642 pcg 1.33
8643     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 pcg 1.1
8645     if test $ac_cv_header_stdc = yes; then
8646     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8647     cat >conftest.$ac_ext <<_ACEOF
8648     /* confdefs.h. */
8649     _ACEOF
8650     cat confdefs.h >>conftest.$ac_ext
8651     cat >>conftest.$ac_ext <<_ACEOF
8652     /* end confdefs.h. */
8653     #include <string.h>
8654    
8655     _ACEOF
8656     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8657     $EGREP "memchr" >/dev/null 2>&1; then
8658     :
8659     else
8660     ac_cv_header_stdc=no
8661     fi
8662     rm -f conftest*
8663    
8664     fi
8665    
8666     if test $ac_cv_header_stdc = yes; then
8667     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8668     cat >conftest.$ac_ext <<_ACEOF
8669     /* confdefs.h. */
8670     _ACEOF
8671     cat confdefs.h >>conftest.$ac_ext
8672     cat >>conftest.$ac_ext <<_ACEOF
8673     /* end confdefs.h. */
8674     #include <stdlib.h>
8675    
8676     _ACEOF
8677     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8678     $EGREP "free" >/dev/null 2>&1; then
8679     :
8680     else
8681     ac_cv_header_stdc=no
8682     fi
8683     rm -f conftest*
8684    
8685     fi
8686    
8687     if test $ac_cv_header_stdc = yes; then
8688     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8689     if test "$cross_compiling" = yes; then
8690     :
8691     else
8692     cat >conftest.$ac_ext <<_ACEOF
8693     /* confdefs.h. */
8694     _ACEOF
8695     cat confdefs.h >>conftest.$ac_ext
8696     cat >>conftest.$ac_ext <<_ACEOF
8697     /* end confdefs.h. */
8698     #include <ctype.h>
8699 pcg 1.33 #include <stdlib.h>
8700 pcg 1.1 #if ((' ' & 0x0FF) == 0x020)
8701     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8702     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8703     #else
8704     # define ISLOWER(c) \
8705 pcg 1.11 (('a' <= (c) && (c) <= 'i') \
8706     || ('j' <= (c) && (c) <= 'r') \
8707     || ('s' <= (c) && (c) <= 'z'))
8708 pcg 1.1 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8709     #endif
8710    
8711     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8712     int
8713     main ()
8714     {
8715     int i;
8716     for (i = 0; i < 256; i++)
8717     if (XOR (islower (i), ISLOWER (i))
8718 pcg 1.11 || toupper (i) != TOUPPER (i))
8719 pcg 1.33 return 2;
8720     return 0;
8721 pcg 1.1 }
8722     _ACEOF
8723     rm -f conftest$ac_exeext
8724 pcg 1.33 if { (ac_try="$ac_link"
8725     case "(($ac_try" in
8726     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8727     *) ac_try_echo=$ac_try;;
8728     esac
8729     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8730     (eval "$ac_link") 2>&5
8731 pcg 1.1 ac_status=$?
8732     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8734 pcg 1.33 { (case "(($ac_try" in
8735     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736     *) ac_try_echo=$ac_try;;
8737     esac
8738     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739     (eval "$ac_try") 2>&5
8740 pcg 1.1 ac_status=$?
8741     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742     (exit $ac_status); }; }; then
8743     :
8744     else
8745     echo "$as_me: program exited with status $ac_status" >&5
8746     echo "$as_me: failed program was:" >&5
8747     sed 's/^/| /' conftest.$ac_ext >&5
8748    
8749     ( exit $ac_status )
8750     ac_cv_header_stdc=no
8751     fi
8752 pcg 1.33 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8753 pcg 1.1 fi
8754 pcg 1.33
8755    
8756 pcg 1.1 fi
8757     fi
8758 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8759     echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8760 pcg 1.1 if test $ac_cv_header_stdc = yes; then
8761    
8762     cat >>confdefs.h <<\_ACEOF
8763     #define STDC_HEADERS 1
8764     _ACEOF
8765    
8766     fi
8767    
8768    
8769    
8770    
8771    
8772    
8773    
8774    
8775    
8776    
8777    
8778    
8779 pcg 1.11 for ac_func in asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall
8780 pcg 1.1 do
8781     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8782 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8783     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8784     if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8785 pcg 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
8786     else
8787     cat >conftest.$ac_ext <<_ACEOF
8788     /* confdefs.h. */
8789     _ACEOF
8790     cat confdefs.h >>conftest.$ac_ext
8791     cat >>conftest.$ac_ext <<_ACEOF
8792     /* end confdefs.h. */
8793 pcg 1.11 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8794     For example, HP-UX 11i <limits.h> declares gettimeofday. */
8795     #define $ac_func innocuous_$ac_func
8796    
8797 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
8798     which can conflict with char $ac_func (); below.
8799     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8800     <limits.h> exists even on freestanding compilers. */
8801 pcg 1.11
8802 pcg 1.1 #ifdef __STDC__
8803     # include <limits.h>
8804     #else
8805     # include <assert.h>
8806     #endif
8807 pcg 1.11
8808     #undef $ac_func
8809    
8810 pcg 1.33 /* Override any GCC internal prototype to avoid an error.
8811     Use char because int might match the return type of a GCC
8812     builtin and then its argument prototype would still apply. */
8813 pcg 1.1 #ifdef __cplusplus
8814     extern "C"
8815     #endif
8816     char $ac_func ();
8817     /* The GNU C library defines this for functions which it implements
8818     to always fail with ENOSYS. Some functions are actually named
8819     something starting with __ and the normal name is an alias. */
8820 pcg 1.33 #if defined __stub_$ac_func || defined __stub___$ac_func
8821 pcg 1.1 choke me
8822     #endif
8823    
8824     int
8825     main ()
8826     {
8827 pcg 1.33 return $ac_func ();
8828 pcg 1.1 ;
8829     return 0;
8830     }
8831     _ACEOF
8832     rm -f conftest.$ac_objext conftest$ac_exeext
8833 pcg 1.33 if { (ac_try="$ac_link"
8834     case "(($ac_try" in
8835     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836     *) ac_try_echo=$ac_try;;
8837     esac
8838     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839     (eval "$ac_link") 2>conftest.er1
8840 pcg 1.1 ac_status=$?
8841 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8842     rm -f conftest.er1
8843     cat conftest.err >&5
8844 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 pcg 1.33 (exit $ac_status); } && {
8846     test -z "$ac_c_werror_flag" ||
8847     test ! -s conftest.err
8848     } && test -s conftest$ac_exeext &&
8849     $as_test_x conftest$ac_exeext; then
8850 pcg 1.1 eval "$as_ac_var=yes"
8851     else
8852     echo "$as_me: failed program was:" >&5
8853     sed 's/^/| /' conftest.$ac_ext >&5
8854    
8855 pcg 1.33 eval "$as_ac_var=no"
8856 pcg 1.1 fi
8857 pcg 1.33
8858     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8859 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
8860 pcg 1.1 fi
8861 pcg 1.33 ac_res=`eval echo '${'$as_ac_var'}'`
8862     { echo "$as_me:$LINENO: result: $ac_res" >&5
8863     echo "${ECHO_T}$ac_res" >&6; }
8864 pcg 1.1 if test `eval echo '${'$as_ac_var'}'` = yes; then
8865     cat >>confdefs.h <<_ACEOF
8866     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8867     _ACEOF
8868    
8869     fi
8870     done
8871    
8872    
8873     # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8874     # for constant arguments. Useless!
8875 pcg 1.33 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8876     echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8877 pcg 1.1 if test "${ac_cv_working_alloca_h+set}" = set; then
8878     echo $ECHO_N "(cached) $ECHO_C" >&6
8879     else
8880     cat >conftest.$ac_ext <<_ACEOF
8881     /* confdefs.h. */
8882     _ACEOF
8883     cat confdefs.h >>conftest.$ac_ext
8884     cat >>conftest.$ac_ext <<_ACEOF
8885     /* end confdefs.h. */
8886     #include <alloca.h>
8887     int
8888     main ()
8889     {
8890     char *p = (char *) alloca (2 * sizeof (int));
8891 pcg 1.33 if (p) return 0;
8892 pcg 1.1 ;
8893     return 0;
8894     }
8895     _ACEOF
8896     rm -f conftest.$ac_objext conftest$ac_exeext
8897 pcg 1.33 if { (ac_try="$ac_link"
8898     case "(($ac_try" in
8899     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900     *) ac_try_echo=$ac_try;;
8901     esac
8902     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8903     (eval "$ac_link") 2>conftest.er1
8904 pcg 1.1 ac_status=$?
8905 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8906     rm -f conftest.er1
8907     cat conftest.err >&5
8908 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 pcg 1.33 (exit $ac_status); } && {
8910     test -z "$ac_c_werror_flag" ||
8911     test ! -s conftest.err
8912     } && test -s conftest$ac_exeext &&
8913     $as_test_x conftest$ac_exeext; then
8914 pcg 1.1 ac_cv_working_alloca_h=yes
8915     else
8916     echo "$as_me: failed program was:" >&5
8917     sed 's/^/| /' conftest.$ac_ext >&5
8918    
8919 pcg 1.33 ac_cv_working_alloca_h=no
8920 pcg 1.1 fi
8921 pcg 1.33
8922     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8923 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
8924 pcg 1.1 fi
8925 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8926     echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8927 pcg 1.1 if test $ac_cv_working_alloca_h = yes; then
8928    
8929     cat >>confdefs.h <<\_ACEOF
8930     #define HAVE_ALLOCA_H 1
8931     _ACEOF
8932    
8933     fi
8934    
8935 pcg 1.33 { echo "$as_me:$LINENO: checking for alloca" >&5
8936     echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8937 pcg 1.1 if test "${ac_cv_func_alloca_works+set}" = set; then
8938     echo $ECHO_N "(cached) $ECHO_C" >&6
8939     else
8940     cat >conftest.$ac_ext <<_ACEOF
8941     /* confdefs.h. */
8942     _ACEOF
8943     cat confdefs.h >>conftest.$ac_ext
8944     cat >>conftest.$ac_ext <<_ACEOF
8945     /* end confdefs.h. */
8946     #ifdef __GNUC__
8947     # define alloca __builtin_alloca
8948     #else
8949     # ifdef _MSC_VER
8950     # include <malloc.h>
8951     # define alloca _alloca
8952     # else
8953 pcg 1.33 # ifdef HAVE_ALLOCA_H
8954 pcg 1.1 # include <alloca.h>
8955     # else
8956     # ifdef _AIX
8957     #pragma alloca
8958     # else
8959     # ifndef alloca /* predefined by HP cc +Olibcalls */
8960     char *alloca ();
8961     # endif
8962     # endif
8963     # endif
8964     # endif
8965     #endif
8966    
8967     int
8968     main ()
8969     {
8970     char *p = (char *) alloca (1);
8971 pcg 1.33 if (p) return 0;
8972 pcg 1.1 ;
8973     return 0;
8974     }
8975     _ACEOF
8976     rm -f conftest.$ac_objext conftest$ac_exeext
8977 pcg 1.33 if { (ac_try="$ac_link"
8978     case "(($ac_try" in
8979     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8980     *) ac_try_echo=$ac_try;;
8981     esac
8982     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8983     (eval "$ac_link") 2>conftest.er1
8984 pcg 1.1 ac_status=$?
8985 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
8986     rm -f conftest.er1
8987     cat conftest.err >&5
8988 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 pcg 1.33 (exit $ac_status); } && {
8990     test -z "$ac_c_werror_flag" ||
8991     test ! -s conftest.err
8992     } && test -s conftest$ac_exeext &&
8993     $as_test_x conftest$ac_exeext; then
8994 pcg 1.1 ac_cv_func_alloca_works=yes
8995     else
8996     echo "$as_me: failed program was:" >&5
8997     sed 's/^/| /' conftest.$ac_ext >&5
8998    
8999 pcg 1.33 ac_cv_func_alloca_works=no
9000 pcg 1.1 fi
9001 pcg 1.33
9002     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9003 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
9004 pcg 1.1 fi
9005 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9006     echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9007 pcg 1.1
9008     if test $ac_cv_func_alloca_works = yes; then
9009    
9010     cat >>confdefs.h <<\_ACEOF
9011     #define HAVE_ALLOCA 1
9012     _ACEOF
9013    
9014     else
9015     # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9016     # that cause trouble. Some versions do not even contain alloca or
9017     # contain a buggy version. If you still want to use their alloca,
9018     # use ar to extract alloca.o from them instead of compiling alloca.c.
9019    
9020 pcg 1.33 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9021 pcg 1.1
9022     cat >>confdefs.h <<\_ACEOF
9023     #define C_ALLOCA 1
9024     _ACEOF
9025    
9026    
9027 pcg 1.33 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9028     echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9029 pcg 1.1 if test "${ac_cv_os_cray+set}" = set; then
9030     echo $ECHO_N "(cached) $ECHO_C" >&6
9031     else
9032     cat >conftest.$ac_ext <<_ACEOF
9033     /* confdefs.h. */
9034     _ACEOF
9035     cat confdefs.h >>conftest.$ac_ext
9036     cat >>conftest.$ac_ext <<_ACEOF
9037     /* end confdefs.h. */
9038 pcg 1.33 #if defined CRAY && ! defined CRAY2
9039 pcg 1.1 webecray
9040     #else
9041     wenotbecray
9042     #endif
9043    
9044     _ACEOF
9045     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9046     $EGREP "webecray" >/dev/null 2>&1; then
9047     ac_cv_os_cray=yes
9048     else
9049     ac_cv_os_cray=no
9050     fi
9051     rm -f conftest*
9052    
9053     fi
9054 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9055     echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9056 pcg 1.1 if test $ac_cv_os_cray = yes; then
9057     for ac_func in _getb67 GETB67 getb67; do
9058     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9059 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9060     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9061     if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9062 pcg 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
9063     else
9064     cat >conftest.$ac_ext <<_ACEOF
9065     /* confdefs.h. */
9066     _ACEOF
9067     cat confdefs.h >>conftest.$ac_ext
9068     cat >>conftest.$ac_ext <<_ACEOF
9069     /* end confdefs.h. */
9070 pcg 1.11 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9071     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9072     #define $ac_func innocuous_$ac_func
9073    
9074 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
9075     which can conflict with char $ac_func (); below.
9076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9077     <limits.h> exists even on freestanding compilers. */
9078 pcg 1.11
9079 pcg 1.1 #ifdef __STDC__
9080     # include <limits.h>
9081     #else
9082     # include <assert.h>
9083     #endif
9084 pcg 1.11
9085     #undef $ac_func
9086    
9087 pcg 1.33 /* Override any GCC internal prototype to avoid an error.
9088     Use char because int might match the return type of a GCC
9089     builtin and then its argument prototype would still apply. */
9090 pcg 1.1 #ifdef __cplusplus
9091     extern "C"
9092     #endif
9093     char $ac_func ();
9094     /* The GNU C library defines this for functions which it implements
9095     to always fail with ENOSYS. Some functions are actually named
9096     something starting with __ and the normal name is an alias. */
9097 pcg 1.33 #if defined __stub_$ac_func || defined __stub___$ac_func
9098 pcg 1.1 choke me
9099     #endif
9100    
9101     int
9102     main ()
9103     {
9104 pcg 1.33 return $ac_func ();
9105 pcg 1.1 ;
9106     return 0;
9107     }
9108     _ACEOF
9109     rm -f conftest.$ac_objext conftest$ac_exeext
9110 pcg 1.33 if { (ac_try="$ac_link"
9111     case "(($ac_try" in
9112     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9113     *) ac_try_echo=$ac_try;;
9114     esac
9115     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9116     (eval "$ac_link") 2>conftest.er1
9117 pcg 1.1 ac_status=$?
9118 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
9119     rm -f conftest.er1
9120     cat conftest.err >&5
9121 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 pcg 1.33 (exit $ac_status); } && {
9123     test -z "$ac_c_werror_flag" ||
9124     test ! -s conftest.err
9125     } && test -s conftest$ac_exeext &&
9126     $as_test_x conftest$ac_exeext; then
9127 pcg 1.1 eval "$as_ac_var=yes"
9128     else
9129     echo "$as_me: failed program was:" >&5
9130     sed 's/^/| /' conftest.$ac_ext >&5
9131    
9132 pcg 1.33 eval "$as_ac_var=no"
9133 pcg 1.1 fi
9134 pcg 1.33
9135     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9136 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
9137 pcg 1.1 fi
9138 pcg 1.33 ac_res=`eval echo '${'$as_ac_var'}'`
9139     { echo "$as_me:$LINENO: result: $ac_res" >&5
9140     echo "${ECHO_T}$ac_res" >&6; }
9141 pcg 1.1 if test `eval echo '${'$as_ac_var'}'` = yes; then
9142    
9143     cat >>confdefs.h <<_ACEOF
9144     #define CRAY_STACKSEG_END $ac_func
9145     _ACEOF
9146    
9147     break
9148     fi
9149    
9150     done
9151     fi
9152    
9153 pcg 1.33 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9154     echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9155 pcg 1.1 if test "${ac_cv_c_stack_direction+set}" = set; then
9156     echo $ECHO_N "(cached) $ECHO_C" >&6
9157     else
9158     if test "$cross_compiling" = yes; then
9159     ac_cv_c_stack_direction=0
9160     else
9161     cat >conftest.$ac_ext <<_ACEOF
9162     /* confdefs.h. */
9163     _ACEOF
9164     cat confdefs.h >>conftest.$ac_ext
9165     cat >>conftest.$ac_ext <<_ACEOF
9166     /* end confdefs.h. */
9167 pcg 1.33 $ac_includes_default
9168 pcg 1.1 int
9169     find_stack_direction ()
9170     {
9171     static char *addr = 0;
9172     auto char dummy;
9173     if (addr == 0)
9174     {
9175     addr = &dummy;
9176     return find_stack_direction ();
9177     }
9178     else
9179     return (&dummy > addr) ? 1 : -1;
9180     }
9181    
9182     int
9183     main ()
9184     {
9185 pcg 1.33 return find_stack_direction () < 0;
9186 pcg 1.1 }
9187     _ACEOF
9188     rm -f conftest$ac_exeext
9189 pcg 1.33 if { (ac_try="$ac_link"
9190     case "(($ac_try" in
9191     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192     *) ac_try_echo=$ac_try;;
9193     esac
9194     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9195     (eval "$ac_link") 2>&5
9196 pcg 1.1 ac_status=$?
9197     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9199 pcg 1.33 { (case "(($ac_try" in
9200     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9201     *) ac_try_echo=$ac_try;;
9202     esac
9203     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9204     (eval "$ac_try") 2>&5
9205 pcg 1.1 ac_status=$?
9206     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207     (exit $ac_status); }; }; then
9208     ac_cv_c_stack_direction=1
9209     else
9210     echo "$as_me: program exited with status $ac_status" >&5
9211     echo "$as_me: failed program was:" >&5
9212     sed 's/^/| /' conftest.$ac_ext >&5
9213    
9214     ( exit $ac_status )
9215     ac_cv_c_stack_direction=-1
9216     fi
9217 pcg 1.33 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9218 pcg 1.1 fi
9219 pcg 1.33
9220    
9221 pcg 1.1 fi
9222 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9223     echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9224 pcg 1.1
9225     cat >>confdefs.h <<_ACEOF
9226     #define STACK_DIRECTION $ac_cv_c_stack_direction
9227     _ACEOF
9228    
9229    
9230     fi
9231    
9232    
9233    
9234 pcg 1.33 { echo "$as_me:$LINENO: checking for socket" >&5
9235     echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
9236 pcg 1.1 if test "${ac_cv_func_socket+set}" = set; then
9237     echo $ECHO_N "(cached) $ECHO_C" >&6
9238     else
9239     cat >conftest.$ac_ext <<_ACEOF
9240     /* confdefs.h. */
9241     _ACEOF
9242     cat confdefs.h >>conftest.$ac_ext
9243     cat >>conftest.$ac_ext <<_ACEOF
9244     /* end confdefs.h. */
9245 pcg 1.11 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
9246     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9247     #define socket innocuous_socket
9248    
9249 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
9250     which can conflict with char socket (); below.
9251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9252     <limits.h> exists even on freestanding compilers. */
9253 pcg 1.11
9254 pcg 1.1 #ifdef __STDC__
9255     # include <limits.h>
9256     #else
9257     # include <assert.h>
9258     #endif
9259 pcg 1.11
9260     #undef socket
9261    
9262 pcg 1.33 /* Override any GCC internal prototype to avoid an error.
9263     Use char because int might match the return type of a GCC
9264     builtin and then its argument prototype would still apply. */
9265 pcg 1.1 #ifdef __cplusplus
9266     extern "C"
9267     #endif
9268     char socket ();
9269     /* The GNU C library defines this for functions which it implements
9270     to always fail with ENOSYS. Some functions are actually named
9271     something starting with __ and the normal name is an alias. */
9272 pcg 1.33 #if defined __stub_socket || defined __stub___socket
9273 pcg 1.1 choke me
9274     #endif
9275    
9276     int
9277     main ()
9278     {
9279 pcg 1.33 return socket ();
9280 pcg 1.1 ;
9281     return 0;
9282     }
9283     _ACEOF
9284     rm -f conftest.$ac_objext conftest$ac_exeext
9285 pcg 1.33 if { (ac_try="$ac_link"
9286     case "(($ac_try" in
9287     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288     *) ac_try_echo=$ac_try;;
9289     esac
9290     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291     (eval "$ac_link") 2>conftest.er1
9292 pcg 1.1 ac_status=$?
9293 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
9294     rm -f conftest.er1
9295     cat conftest.err >&5
9296 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 pcg 1.33 (exit $ac_status); } && {
9298     test -z "$ac_c_werror_flag" ||
9299     test ! -s conftest.err
9300     } && test -s conftest$ac_exeext &&
9301     $as_test_x conftest$ac_exeext; then
9302 pcg 1.1 ac_cv_func_socket=yes
9303     else
9304     echo "$as_me: failed program was:" >&5
9305     sed 's/^/| /' conftest.$ac_ext >&5
9306    
9307 pcg 1.33 ac_cv_func_socket=no
9308 pcg 1.1 fi
9309 pcg 1.33
9310     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9311 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
9312 pcg 1.1 fi
9313 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
9314     echo "${ECHO_T}$ac_cv_func_socket" >&6; }
9315 pcg 1.1 if test $ac_cv_func_socket = yes; then
9316     :
9317     else
9318    
9319    
9320 pcg 1.33 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9321     echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
9322 pcg 1.1 if test "${ac_cv_lib_socket_connect+set}" = set; then
9323     echo $ECHO_N "(cached) $ECHO_C" >&6
9324     else
9325     ac_check_lib_save_LIBS=$LIBS
9326     LIBS="-lsocket $LIBS"
9327     cat >conftest.$ac_ext <<_ACEOF
9328     /* confdefs.h. */
9329     _ACEOF
9330     cat confdefs.h >>conftest.$ac_ext
9331     cat >>conftest.$ac_ext <<_ACEOF
9332     /* end confdefs.h. */
9333    
9334 pcg 1.33 /* Override any GCC internal prototype to avoid an error.
9335     Use char because int might match the return type of a GCC
9336     builtin and then its argument prototype would still apply. */
9337 pcg 1.1 #ifdef __cplusplus
9338     extern "C"
9339     #endif
9340     char connect ();
9341     int
9342     main ()
9343     {
9344 pcg 1.33 return connect ();
9345 pcg 1.1 ;
9346     return 0;
9347     }
9348     _ACEOF
9349     rm -f conftest.$ac_objext conftest$ac_exeext
9350 pcg 1.33 if { (ac_try="$ac_link"
9351     case "(($ac_try" in
9352     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353     *) ac_try_echo=$ac_try;;
9354     esac
9355     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356     (eval "$ac_link") 2>conftest.er1
9357 pcg 1.1 ac_status=$?
9358 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
9359     rm -f conftest.er1
9360     cat conftest.err >&5
9361 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 pcg 1.33 (exit $ac_status); } && {
9363     test -z "$ac_c_werror_flag" ||
9364     test ! -s conftest.err
9365     } && test -s conftest$ac_exeext &&
9366     $as_test_x conftest$ac_exeext; then
9367 pcg 1.1 ac_cv_lib_socket_connect=yes
9368     else
9369     echo "$as_me: failed program was:" >&5
9370     sed 's/^/| /' conftest.$ac_ext >&5
9371    
9372 pcg 1.33 ac_cv_lib_socket_connect=no
9373 pcg 1.1 fi
9374 pcg 1.33
9375     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9376 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
9377 pcg 1.1 LIBS=$ac_check_lib_save_LIBS
9378     fi
9379 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9380     echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
9381 pcg 1.1 if test $ac_cv_lib_socket_connect = yes; then
9382     cat >>confdefs.h <<_ACEOF
9383     #define HAVE_LIBSOCKET 1
9384     _ACEOF
9385    
9386     LIBS="-lsocket $LIBS"
9387    
9388     fi
9389    
9390    
9391     fi
9392    
9393 pcg 1.33 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
9394     echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
9395 pcg 1.1 if test "${ac_cv_func_gethostbyname+set}" = set; then
9396     echo $ECHO_N "(cached) $ECHO_C" >&6
9397     else
9398     cat >conftest.$ac_ext <<_ACEOF
9399     /* confdefs.h. */
9400     _ACEOF
9401     cat confdefs.h >>conftest.$ac_ext
9402     cat >>conftest.$ac_ext <<_ACEOF
9403     /* end confdefs.h. */
9404 pcg 1.11 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9405     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9406     #define gethostbyname innocuous_gethostbyname
9407    
9408 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
9409     which can conflict with char gethostbyname (); below.
9410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9411     <limits.h> exists even on freestanding compilers. */
9412 pcg 1.11
9413 pcg 1.1 #ifdef __STDC__
9414     # include <limits.h>
9415     #else
9416     # include <assert.h>
9417     #endif
9418 pcg 1.11
9419     #undef gethostbyname
9420    
9421 pcg 1.33 /* Override any GCC internal prototype to avoid an error.
9422     Use char because int might match the return type of a GCC
9423     builtin and then its argument prototype would still apply. */
9424 pcg 1.1 #ifdef __cplusplus
9425     extern "C"
9426     #endif
9427     char gethostbyname ();
9428     /* The GNU C library defines this for functions which it implements
9429     to always fail with ENOSYS. Some functions are actually named
9430     something starting with __ and the normal name is an alias. */
9431 pcg 1.33 #if defined __stub_gethostbyname || defined __stub___gethostbyname
9432 pcg 1.1 choke me
9433     #endif
9434    
9435     int
9436     main ()
9437     {
9438 pcg 1.33 return gethostbyname ();
9439 pcg 1.1 ;
9440     return 0;
9441     }
9442     _ACEOF
9443     rm -f conftest.$ac_objext conftest$ac_exeext
9444 pcg 1.33 if { (ac_try="$ac_link"
9445     case "(($ac_try" in
9446     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447     *) ac_try_echo=$ac_try;;
9448     esac
9449     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9450     (eval "$ac_link") 2>conftest.er1
9451 pcg 1.1 ac_status=$?
9452 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
9453     rm -f conftest.er1
9454     cat conftest.err >&5
9455 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 pcg 1.33 (exit $ac_status); } && {
9457     test -z "$ac_c_werror_flag" ||
9458     test ! -s conftest.err
9459     } && test -s conftest$ac_exeext &&
9460     $as_test_x conftest$ac_exeext; then
9461 pcg 1.1 ac_cv_func_gethostbyname=yes
9462     else
9463     echo "$as_me: failed program was:" >&5
9464     sed 's/^/| /' conftest.$ac_ext >&5
9465    
9466 pcg 1.33 ac_cv_func_gethostbyname=no
9467 pcg 1.1 fi
9468 pcg 1.33
9469     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9470 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
9471 pcg 1.1 fi
9472 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9473     echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
9474 pcg 1.1 if test $ac_cv_func_gethostbyname = yes; then
9475     :
9476     else
9477    
9478    
9479 pcg 1.33 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9480     echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
9481 pcg 1.1 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9482     echo $ECHO_N "(cached) $ECHO_C" >&6
9483     else
9484     ac_check_lib_save_LIBS=$LIBS
9485     LIBS="-lnsl $LIBS"
9486     cat >conftest.$ac_ext <<_ACEOF
9487     /* confdefs.h. */
9488     _ACEOF
9489     cat confdefs.h >>conftest.$ac_ext
9490     cat >>conftest.$ac_ext <<_ACEOF
9491     /* end confdefs.h. */
9492    
9493 pcg 1.33 /* Override any GCC internal prototype to avoid an error.
9494     Use char because int might match the return type of a GCC
9495     builtin and then its argument prototype would still apply. */
9496 pcg 1.1 #ifdef __cplusplus
9497     extern "C"
9498     #endif
9499     char gethostbyname ();
9500     int
9501     main ()
9502     {
9503 pcg 1.33 return gethostbyname ();
9504 pcg 1.1 ;
9505     return 0;
9506     }
9507     _ACEOF
9508     rm -f conftest.$ac_objext conftest$ac_exeext
9509 pcg 1.33 if { (ac_try="$ac_link"
9510     case "(($ac_try" in
9511     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512     *) ac_try_echo=$ac_try;;
9513     esac
9514     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515     (eval "$ac_link") 2>conftest.er1
9516 pcg 1.1 ac_status=$?
9517 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
9518     rm -f conftest.er1
9519     cat conftest.err >&5
9520 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 pcg 1.33 (exit $ac_status); } && {
9522     test -z "$ac_c_werror_flag" ||
9523     test ! -s conftest.err
9524     } && test -s conftest$ac_exeext &&
9525     $as_test_x conftest$ac_exeext; then
9526 pcg 1.1 ac_cv_lib_nsl_gethostbyname=yes
9527     else
9528     echo "$as_me: failed program was:" >&5
9529     sed 's/^/| /' conftest.$ac_ext >&5
9530    
9531 pcg 1.33 ac_cv_lib_nsl_gethostbyname=no
9532 pcg 1.1 fi
9533 pcg 1.33
9534     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9535 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
9536 pcg 1.1 LIBS=$ac_check_lib_save_LIBS
9537     fi
9538 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9539     echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
9540 pcg 1.1 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9541     cat >>confdefs.h <<_ACEOF
9542     #define HAVE_LIBNSL 1
9543     _ACEOF
9544    
9545     LIBS="-lnsl $LIBS"
9546    
9547     fi
9548    
9549    
9550     fi
9551    
9552    
9553 pcg 1.34
9554    
9555    
9556    
9557 pcg 1.37
9558    
9559    
9560    
9561 pcg 1.40
9562     for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h
9563 pcg 1.34 do
9564     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9565     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9566     { echo "$as_me:$LINENO: checking for $ac_header" >&5
9567     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9568     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9569     echo $ECHO_N "(cached) $ECHO_C" >&6
9570     fi
9571     ac_res=`eval echo '${'$as_ac_Header'}'`
9572     { echo "$as_me:$LINENO: result: $ac_res" >&5
9573     echo "${ECHO_T}$ac_res" >&6; }
9574     else
9575     # Is the header compilable?
9576     { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9577     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9578     cat >conftest.$ac_ext <<_ACEOF
9579     /* confdefs.h. */
9580     _ACEOF
9581     cat confdefs.h >>conftest.$ac_ext
9582     cat >>conftest.$ac_ext <<_ACEOF
9583     /* end confdefs.h. */
9584     $ac_includes_default
9585     #include <$ac_header>
9586     _ACEOF
9587     rm -f conftest.$ac_objext
9588     if { (ac_try="$ac_compile"
9589     case "(($ac_try" in
9590     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591     *) ac_try_echo=$ac_try;;
9592     esac
9593     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594     (eval "$ac_compile") 2>conftest.er1
9595     ac_status=$?
9596     grep -v '^ *+' conftest.er1 >conftest.err
9597     rm -f conftest.er1
9598     cat conftest.err >&5
9599     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600     (exit $ac_status); } && {
9601     test -z "$ac_c_werror_flag" ||
9602     test ! -s conftest.err
9603     } && test -s conftest.$ac_objext; then
9604     ac_header_compiler=yes
9605     else
9606     echo "$as_me: failed program was:" >&5
9607     sed 's/^/| /' conftest.$ac_ext >&5
9608    
9609     ac_header_compiler=no
9610     fi
9611    
9612     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9613     { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9614     echo "${ECHO_T}$ac_header_compiler" >&6; }
9615    
9616     # Is the header present?
9617     { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9618     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9619     cat >conftest.$ac_ext <<_ACEOF
9620     /* confdefs.h. */
9621     _ACEOF
9622     cat confdefs.h >>conftest.$ac_ext
9623     cat >>conftest.$ac_ext <<_ACEOF
9624     /* end confdefs.h. */
9625     #include <$ac_header>
9626     _ACEOF
9627     if { (ac_try="$ac_cpp conftest.$ac_ext"
9628     case "(($ac_try" in
9629     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630     *) ac_try_echo=$ac_try;;
9631     esac
9632     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9634     ac_status=$?
9635     grep -v '^ *+' conftest.er1 >conftest.err
9636     rm -f conftest.er1
9637     cat conftest.err >&5
9638     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639     (exit $ac_status); } >/dev/null && {
9640     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9641     test ! -s conftest.err
9642     }; then
9643     ac_header_preproc=yes
9644     else
9645     echo "$as_me: failed program was:" >&5
9646     sed 's/^/| /' conftest.$ac_ext >&5
9647    
9648     ac_header_preproc=no
9649     fi
9650    
9651     rm -f conftest.err conftest.$ac_ext
9652     { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9653     echo "${ECHO_T}$ac_header_preproc" >&6; }
9654    
9655     # So? What about this header?
9656     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9657     yes:no: )
9658     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9659     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9661     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9662     ac_header_preproc=yes
9663     ;;
9664     no:yes:* )
9665     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9666     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9667     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9668     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9669     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9670     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9671     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9672     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9674     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9675     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9676     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9677    
9678     ;;
9679     esac
9680     { echo "$as_me:$LINENO: checking for $ac_header" >&5
9681     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9682     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9683     echo $ECHO_N "(cached) $ECHO_C" >&6
9684     else
9685     eval "$as_ac_Header=\$ac_header_preproc"
9686     fi
9687     ac_res=`eval echo '${'$as_ac_Header'}'`
9688     { echo "$as_me:$LINENO: result: $ac_res" >&5
9689     echo "${ECHO_T}$ac_res" >&6; }
9690    
9691     fi
9692     if test `eval echo '${'$as_ac_Header'}'` = yes; then
9693     cat >>confdefs.h <<_ACEOF
9694     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9695     _ACEOF
9696    
9697     fi
9698    
9699     done
9700    
9701    
9702    
9703    
9704 pcg 1.37
9705    
9706    
9707    
9708 pcg 1.40
9709     for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd
9710 pcg 1.34 do
9711     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9712     { echo "$as_me:$LINENO: checking for $ac_func" >&5
9713     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9714     if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9715     echo $ECHO_N "(cached) $ECHO_C" >&6
9716     else
9717     cat >conftest.$ac_ext <<_ACEOF
9718     /* confdefs.h. */
9719     _ACEOF
9720     cat confdefs.h >>conftest.$ac_ext
9721     cat >>conftest.$ac_ext <<_ACEOF
9722     /* end confdefs.h. */
9723     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9724     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9725     #define $ac_func innocuous_$ac_func
9726    
9727     /* System header to define __stub macros and hopefully few prototypes,
9728     which can conflict with char $ac_func (); below.
9729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9730     <limits.h> exists even on freestanding compilers. */
9731    
9732     #ifdef __STDC__
9733     # include <limits.h>
9734     #else
9735     # include <assert.h>
9736     #endif
9737    
9738     #undef $ac_func
9739    
9740     /* Override any GCC internal prototype to avoid an error.
9741     Use char because int might match the return type of a GCC
9742     builtin and then its argument prototype would still apply. */
9743     #ifdef __cplusplus
9744     extern "C"
9745     #endif
9746     char $ac_func ();
9747     /* The GNU C library defines this for functions which it implements
9748     to always fail with ENOSYS. Some functions are actually named
9749     something starting with __ and the normal name is an alias. */
9750     #if defined __stub_$ac_func || defined __stub___$ac_func
9751     choke me
9752     #endif
9753    
9754     int
9755     main ()
9756     {
9757     return $ac_func ();
9758     ;
9759     return 0;
9760     }
9761     _ACEOF
9762     rm -f conftest.$ac_objext conftest$ac_exeext
9763     if { (ac_try="$ac_link"
9764     case "(($ac_try" in
9765     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9766     *) ac_try_echo=$ac_try;;
9767     esac
9768     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769     (eval "$ac_link") 2>conftest.er1
9770     ac_status=$?
9771     grep -v '^ *+' conftest.er1 >conftest.err
9772     rm -f conftest.er1
9773     cat conftest.err >&5
9774     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775     (exit $ac_status); } && {
9776     test -z "$ac_c_werror_flag" ||
9777     test ! -s conftest.err
9778     } && test -s conftest$ac_exeext &&
9779     $as_test_x conftest$ac_exeext; then
9780     eval "$as_ac_var=yes"
9781     else
9782     echo "$as_me: failed program was:" >&5
9783     sed 's/^/| /' conftest.$ac_ext >&5
9784    
9785     eval "$as_ac_var=no"
9786     fi
9787    
9788     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9789     conftest$ac_exeext conftest.$ac_ext
9790     fi
9791     ac_res=`eval echo '${'$as_ac_var'}'`
9792     { echo "$as_me:$LINENO: result: $ac_res" >&5
9793     echo "${ECHO_T}$ac_res" >&6; }
9794     if test `eval echo '${'$as_ac_var'}'` = yes; then
9795     cat >>confdefs.h <<_ACEOF
9796     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9797     _ACEOF
9798    
9799     fi
9800     done
9801    
9802    
9803     { echo "$as_me:$LINENO: checking for clock_gettime" >&5
9804     echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; }
9805     if test "${ac_cv_func_clock_gettime+set}" = set; then
9806     echo $ECHO_N "(cached) $ECHO_C" >&6
9807     else
9808     cat >conftest.$ac_ext <<_ACEOF
9809     /* confdefs.h. */
9810     _ACEOF
9811     cat confdefs.h >>conftest.$ac_ext
9812     cat >>conftest.$ac_ext <<_ACEOF
9813     /* end confdefs.h. */
9814     /* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime.
9815     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9816     #define clock_gettime innocuous_clock_gettime
9817    
9818     /* System header to define __stub macros and hopefully few prototypes,
9819     which can conflict with char clock_gettime (); below.
9820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9821     <limits.h> exists even on freestanding compilers. */
9822    
9823     #ifdef __STDC__
9824     # include <limits.h>
9825     #else
9826     # include <assert.h>
9827     #endif
9828    
9829     #undef clock_gettime
9830    
9831     /* Override any GCC internal prototype to avoid an error.
9832     Use char because int might match the return type of a GCC
9833     builtin and then its argument prototype would still apply. */
9834     #ifdef __cplusplus
9835     extern "C"
9836     #endif
9837     char clock_gettime ();
9838     /* The GNU C library defines this for functions which it implements
9839     to always fail with ENOSYS. Some functions are actually named
9840     something starting with __ and the normal name is an alias. */
9841     #if defined __stub_clock_gettime || defined __stub___clock_gettime
9842     choke me
9843     #endif
9844    
9845     int
9846     main ()
9847     {
9848     return clock_gettime ();
9849     ;
9850     return 0;
9851     }
9852     _ACEOF
9853     rm -f conftest.$ac_objext conftest$ac_exeext
9854     if { (ac_try="$ac_link"
9855     case "(($ac_try" in
9856     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857     *) ac_try_echo=$ac_try;;
9858     esac
9859     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860     (eval "$ac_link") 2>conftest.er1
9861     ac_status=$?
9862     grep -v '^ *+' conftest.er1 >conftest.err
9863     rm -f conftest.er1
9864     cat conftest.err >&5
9865     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866     (exit $ac_status); } && {
9867     test -z "$ac_c_werror_flag" ||
9868     test ! -s conftest.err
9869     } && test -s conftest$ac_exeext &&
9870     $as_test_x conftest$ac_exeext; then
9871     ac_cv_func_clock_gettime=yes
9872     else
9873     echo "$as_me: failed program was:" >&5
9874     sed 's/^/| /' conftest.$ac_ext >&5
9875    
9876     ac_cv_func_clock_gettime=no
9877     fi
9878    
9879     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9880     conftest$ac_exeext conftest.$ac_ext
9881     fi
9882     { echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5
9883     echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
9884     if test $ac_cv_func_clock_gettime = yes; then
9885     :
9886     else
9887    
9888 pcg 1.37 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
9889 pcg 1.34
9890     { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9891     echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
9892     if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
9893     echo $ECHO_N "(cached) $ECHO_C" >&6
9894     else
9895     ac_check_lib_save_LIBS=$LIBS
9896     LIBS="-lrt $LIBS"
9897     cat >conftest.$ac_ext <<_ACEOF
9898     /* confdefs.h. */
9899     _ACEOF
9900     cat confdefs.h >>conftest.$ac_ext
9901     cat >>conftest.$ac_ext <<_ACEOF
9902     /* end confdefs.h. */
9903    
9904     /* Override any GCC internal prototype to avoid an error.
9905     Use char because int might match the return type of a GCC
9906     builtin and then its argument prototype would still apply. */
9907     #ifdef __cplusplus
9908     extern "C"
9909     #endif
9910     char clock_gettime ();
9911     int
9912     main ()
9913     {
9914     return clock_gettime ();
9915     ;
9916     return 0;
9917     }
9918     _ACEOF
9919     rm -f conftest.$ac_objext conftest$ac_exeext
9920     if { (ac_try="$ac_link"
9921     case "(($ac_try" in
9922     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923     *) ac_try_echo=$ac_try;;
9924     esac
9925     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926     (eval "$ac_link") 2>conftest.er1
9927     ac_status=$?
9928     grep -v '^ *+' conftest.er1 >conftest.err
9929     rm -f conftest.er1
9930     cat conftest.err >&5
9931     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932     (exit $ac_status); } && {
9933     test -z "$ac_c_werror_flag" ||
9934     test ! -s conftest.err
9935     } && test -s conftest$ac_exeext &&
9936     $as_test_x conftest$ac_exeext; then
9937     ac_cv_lib_rt_clock_gettime=yes
9938     else
9939     echo "$as_me: failed program was:" >&5
9940     sed 's/^/| /' conftest.$ac_ext >&5
9941    
9942     ac_cv_lib_rt_clock_gettime=no
9943     fi
9944    
9945     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9946     conftest$ac_exeext conftest.$ac_ext
9947     LIBS=$ac_check_lib_save_LIBS
9948     fi
9949     { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9950     echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
9951     if test $ac_cv_lib_rt_clock_gettime = yes; then
9952     cat >>confdefs.h <<_ACEOF
9953     #define HAVE_LIBRT 1
9954     _ACEOF
9955    
9956     LIBS="-lrt $LIBS"
9957    
9958     fi
9959    
9960 pcg 1.38 unset ac_cv_func_clock_gettime
9961 pcg 1.34
9962 pcg 1.35 for ac_func in clock_gettime
9963     do
9964     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9965     { echo "$as_me:$LINENO: checking for $ac_func" >&5
9966     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9967     if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9968     echo $ECHO_N "(cached) $ECHO_C" >&6
9969     else
9970     cat >conftest.$ac_ext <<_ACEOF
9971     /* confdefs.h. */
9972     _ACEOF
9973     cat confdefs.h >>conftest.$ac_ext
9974     cat >>conftest.$ac_ext <<_ACEOF
9975     /* end confdefs.h. */
9976     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9977     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9978     #define $ac_func innocuous_$ac_func
9979    
9980     /* System header to define __stub macros and hopefully few prototypes,
9981     which can conflict with char $ac_func (); below.
9982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9983     <limits.h> exists even on freestanding compilers. */
9984    
9985     #ifdef __STDC__
9986     # include <limits.h>
9987     #else
9988     # include <assert.h>
9989     #endif
9990    
9991     #undef $ac_func
9992    
9993     /* Override any GCC internal prototype to avoid an error.
9994     Use char because int might match the return type of a GCC
9995     builtin and then its argument prototype would still apply. */
9996     #ifdef __cplusplus
9997     extern "C"
9998     #endif
9999     char $ac_func ();
10000     /* The GNU C library defines this for functions which it implements
10001     to always fail with ENOSYS. Some functions are actually named
10002     something starting with __ and the normal name is an alias. */
10003     #if defined __stub_$ac_func || defined __stub___$ac_func
10004     choke me
10005     #endif
10006    
10007     int
10008     main ()
10009     {
10010     return $ac_func ();
10011     ;
10012     return 0;
10013     }
10014     _ACEOF
10015     rm -f conftest.$ac_objext conftest$ac_exeext
10016     if { (ac_try="$ac_link"
10017     case "(($ac_try" in
10018     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019     *) ac_try_echo=$ac_try;;
10020     esac
10021     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10022     (eval "$ac_link") 2>conftest.er1
10023     ac_status=$?
10024     grep -v '^ *+' conftest.er1 >conftest.err
10025     rm -f conftest.er1
10026     cat conftest.err >&5
10027     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028     (exit $ac_status); } && {
10029     test -z "$ac_c_werror_flag" ||
10030     test ! -s conftest.err
10031     } && test -s conftest$ac_exeext &&
10032     $as_test_x conftest$ac_exeext; then
10033     eval "$as_ac_var=yes"
10034     else
10035     echo "$as_me: failed program was:" >&5
10036     sed 's/^/| /' conftest.$ac_ext >&5
10037    
10038     eval "$as_ac_var=no"
10039     fi
10040    
10041     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10042     conftest$ac_exeext conftest.$ac_ext
10043     fi
10044     ac_res=`eval echo '${'$as_ac_var'}'`
10045     { echo "$as_me:$LINENO: result: $ac_res" >&5
10046     echo "${ECHO_T}$ac_res" >&6; }
10047     if test `eval echo '${'$as_ac_var'}'` = yes; then
10048     cat >>confdefs.h <<_ACEOF
10049     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10050     _ACEOF
10051    
10052     fi
10053     done
10054    
10055 pcg 1.37 fi
10056 pcg 1.35
10057 pcg 1.34 fi
10058    
10059    
10060 pcg 1.39 { echo "$as_me:$LINENO: checking for nanosleep" >&5
10061     echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
10062     if test "${ac_cv_func_nanosleep+set}" = set; then
10063     echo $ECHO_N "(cached) $ECHO_C" >&6
10064     else
10065     cat >conftest.$ac_ext <<_ACEOF
10066     /* confdefs.h. */
10067     _ACEOF
10068     cat confdefs.h >>conftest.$ac_ext
10069     cat >>conftest.$ac_ext <<_ACEOF
10070     /* end confdefs.h. */
10071     /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
10072     For example, HP-UX 11i <limits.h> declares gettimeofday. */
10073     #define nanosleep innocuous_nanosleep
10074    
10075     /* System header to define __stub macros and hopefully few prototypes,
10076     which can conflict with char nanosleep (); below.
10077     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10078     <limits.h> exists even on freestanding compilers. */
10079    
10080     #ifdef __STDC__
10081     # include <limits.h>
10082     #else
10083     # include <assert.h>
10084     #endif
10085    
10086     #undef nanosleep
10087    
10088     /* Override any GCC internal prototype to avoid an error.
10089     Use char because int might match the return type of a GCC
10090     builtin and then its argument prototype would still apply. */
10091     #ifdef __cplusplus
10092     extern "C"
10093     #endif
10094     char nanosleep ();
10095     /* The GNU C library defines this for functions which it implements
10096     to always fail with ENOSYS. Some functions are actually named
10097     something starting with __ and the normal name is an alias. */
10098     #if defined __stub_nanosleep || defined __stub___nanosleep
10099     choke me
10100     #endif
10101    
10102     int
10103     main ()
10104     {
10105     return nanosleep ();
10106     ;
10107     return 0;
10108     }
10109     _ACEOF
10110     rm -f conftest.$ac_objext conftest$ac_exeext
10111     if { (ac_try="$ac_link"
10112     case "(($ac_try" in
10113     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114     *) ac_try_echo=$ac_try;;
10115     esac
10116     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117     (eval "$ac_link") 2>conftest.er1
10118     ac_status=$?
10119     grep -v '^ *+' conftest.er1 >conftest.err
10120     rm -f conftest.er1
10121     cat conftest.err >&5
10122     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123     (exit $ac_status); } && {
10124     test -z "$ac_c_werror_flag" ||
10125     test ! -s conftest.err
10126     } && test -s conftest$ac_exeext &&
10127     $as_test_x conftest$ac_exeext; then
10128     ac_cv_func_nanosleep=yes
10129     else
10130     echo "$as_me: failed program was:" >&5
10131     sed 's/^/| /' conftest.$ac_ext >&5
10132    
10133     ac_cv_func_nanosleep=no
10134     fi
10135    
10136     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10137     conftest$ac_exeext conftest.$ac_ext
10138     fi
10139     { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
10140     echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
10141     if test $ac_cv_func_nanosleep = yes; then
10142     :
10143     else
10144    
10145     if test -z "$LIBEV_M4_AVOID_LIBRT"; then
10146    
10147     { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
10148     echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
10149     if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
10150     echo $ECHO_N "(cached) $ECHO_C" >&6
10151     else
10152     ac_check_lib_save_LIBS=$LIBS
10153     LIBS="-lrt $LIBS"
10154     cat >conftest.$ac_ext <<_ACEOF
10155     /* confdefs.h. */
10156     _ACEOF
10157     cat confdefs.h >>conftest.$ac_ext
10158     cat >>conftest.$ac_ext <<_ACEOF
10159     /* end confdefs.h. */
10160    
10161     /* Override any GCC internal prototype to avoid an error.
10162     Use char because int might match the return type of a GCC
10163     builtin and then its argument prototype would still apply. */
10164     #ifdef __cplusplus
10165     extern "C"
10166     #endif
10167     char nanosleep ();
10168     int
10169     main ()
10170     {
10171     return nanosleep ();
10172     ;
10173     return 0;
10174     }
10175     _ACEOF
10176     rm -f conftest.$ac_objext conftest$ac_exeext
10177     if { (ac_try="$ac_link"
10178     case "(($ac_try" in
10179     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10180     *) ac_try_echo=$ac_try;;
10181     esac
10182     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10183     (eval "$ac_link") 2>conftest.er1
10184     ac_status=$?
10185     grep -v '^ *+' conftest.er1 >conftest.err
10186     rm -f conftest.er1
10187     cat conftest.err >&5
10188     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189     (exit $ac_status); } && {
10190     test -z "$ac_c_werror_flag" ||
10191     test ! -s conftest.err
10192     } && test -s conftest$ac_exeext &&
10193     $as_test_x conftest$ac_exeext; then
10194     ac_cv_lib_rt_nanosleep=yes
10195     else
10196     echo "$as_me: failed program was:" >&5
10197     sed 's/^/| /' conftest.$ac_ext >&5
10198    
10199     ac_cv_lib_rt_nanosleep=no
10200     fi
10201    
10202     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10203     conftest$ac_exeext conftest.$ac_ext
10204     LIBS=$ac_check_lib_save_LIBS
10205     fi
10206     { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
10207     echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
10208     if test $ac_cv_lib_rt_nanosleep = yes; then
10209     cat >>confdefs.h <<_ACEOF
10210     #define HAVE_LIBRT 1
10211     _ACEOF
10212    
10213     LIBS="-lrt $LIBS"
10214    
10215     fi
10216    
10217     unset ac_cv_func_nanosleep
10218    
10219     for ac_func in nanosleep
10220     do
10221     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10222     { echo "$as_me:$LINENO: checking for $ac_func" >&5
10223     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10224     if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10225     echo $ECHO_N "(cached) $ECHO_C" >&6
10226     else
10227     cat >conftest.$ac_ext <<_ACEOF
10228     /* confdefs.h. */
10229     _ACEOF
10230     cat confdefs.h >>conftest.$ac_ext
10231     cat >>conftest.$ac_ext <<_ACEOF
10232     /* end confdefs.h. */
10233     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10234     For example, HP-UX 11i <limits.h> declares gettimeofday. */
10235     #define $ac_func innocuous_$ac_func
10236    
10237     /* System header to define __stub macros and hopefully few prototypes,
10238     which can conflict with char $ac_func (); below.
10239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10240     <limits.h> exists even on freestanding compilers. */
10241    
10242     #ifdef __STDC__
10243     # include <limits.h>
10244     #else
10245     # include <assert.h>
10246     #endif
10247    
10248     #undef $ac_func
10249    
10250     /* Override any GCC internal prototype to avoid an error.
10251     Use char because int might match the return type of a GCC
10252     builtin and then its argument prototype would still apply. */
10253     #ifdef __cplusplus
10254     extern "C"
10255     #endif
10256     char $ac_func ();
10257     /* The GNU C library defines this for functions which it implements
10258     to always fail with ENOSYS. Some functions are actually named
10259     something starting with __ and the normal name is an alias. */
10260     #if defined __stub_$ac_func || defined __stub___$ac_func
10261     choke me
10262     #endif
10263    
10264     int
10265     main ()
10266     {
10267     return $ac_func ();
10268     ;
10269     return 0;
10270     }
10271     _ACEOF
10272     rm -f conftest.$ac_objext conftest$ac_exeext
10273     if { (ac_try="$ac_link"
10274     case "(($ac_try" in
10275     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10276     *) ac_try_echo=$ac_try;;
10277     esac
10278     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10279     (eval "$ac_link") 2>conftest.er1
10280     ac_status=$?
10281     grep -v '^ *+' conftest.er1 >conftest.err
10282     rm -f conftest.er1
10283     cat conftest.err >&5
10284     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285     (exit $ac_status); } && {
10286     test -z "$ac_c_werror_flag" ||
10287     test ! -s conftest.err
10288     } && test -s conftest$ac_exeext &&
10289     $as_test_x conftest$ac_exeext; then
10290     eval "$as_ac_var=yes"
10291     else
10292     echo "$as_me: failed program was:" >&5
10293     sed 's/^/| /' conftest.$ac_ext >&5
10294    
10295     eval "$as_ac_var=no"
10296     fi
10297    
10298     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10299     conftest$ac_exeext conftest.$ac_ext
10300     fi
10301     ac_res=`eval echo '${'$as_ac_var'}'`
10302     { echo "$as_me:$LINENO: result: $ac_res" >&5
10303     echo "${ECHO_T}$ac_res" >&6; }
10304     if test `eval echo '${'$as_ac_var'}'` = yes; then
10305     cat >>confdefs.h <<_ACEOF
10306     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10307     _ACEOF
10308    
10309     fi
10310     done
10311    
10312     fi
10313    
10314     fi
10315    
10316    
10317 pcg 1.34
10318 pcg 1.36 { echo "$as_me:$LINENO: checking for ceil in -lm" >&5
10319     echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
10320     if test "${ac_cv_lib_m_ceil+set}" = set; then
10321     echo $ECHO_N "(cached) $ECHO_C" >&6
10322     else
10323     ac_check_lib_save_LIBS=$LIBS
10324     LIBS="-lm $LIBS"
10325     cat >conftest.$ac_ext <<_ACEOF
10326     /* confdefs.h. */
10327     _ACEOF
10328     cat confdefs.h >>conftest.$ac_ext
10329     cat >>conftest.$ac_ext <<_ACEOF
10330     /* end confdefs.h. */
10331    
10332     /* Override any GCC internal prototype to avoid an error.
10333     Use char because int might match the return type of a GCC
10334     builtin and then its argument prototype would still apply. */
10335     #ifdef __cplusplus
10336     extern "C"
10337     #endif
10338     char ceil ();
10339     int
10340     main ()
10341     {
10342     return ceil ();
10343     ;
10344     return 0;
10345     }
10346     _ACEOF
10347     rm -f conftest.$ac_objext conftest$ac_exeext
10348     if { (ac_try="$ac_link"
10349     case "(($ac_try" in
10350     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351     *) ac_try_echo=$ac_try;;
10352     esac
10353     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10354     (eval "$ac_link") 2>conftest.er1
10355     ac_status=$?
10356     grep -v '^ *+' conftest.er1 >conftest.err
10357     rm -f conftest.er1
10358     cat conftest.err >&5
10359     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360     (exit $ac_status); } && {
10361     test -z "$ac_c_werror_flag" ||
10362     test ! -s conftest.err
10363     } && test -s conftest$ac_exeext &&
10364     $as_test_x conftest$ac_exeext; then
10365     ac_cv_lib_m_ceil=yes
10366     else
10367     echo "$as_me: failed program was:" >&5
10368     sed 's/^/| /' conftest.$ac_ext >&5
10369    
10370     ac_cv_lib_m_ceil=no
10371     fi
10372    
10373     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10374     conftest$ac_exeext conftest.$ac_ext
10375     LIBS=$ac_check_lib_save_LIBS
10376     fi
10377     { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
10378     echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
10379     if test $ac_cv_lib_m_ceil = yes; then
10380     cat >>confdefs.h <<_ACEOF
10381     #define HAVE_LIBM 1
10382     _ACEOF
10383    
10384     LIBS="-lm $LIBS"
10385    
10386     fi
10387    
10388    
10389    
10390 pcg 1.34
10391    
10392    
10393 pcg 1.33 ac_ext=cpp
10394 pcg 1.1 ac_cpp='$CXXCPP $CPPFLAGS'
10395     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10396     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10397     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10398    
10399    
10400    
10401     cat >confcache <<\_ACEOF
10402     # This file is a shell script that caches the results of configure
10403     # tests run on this system so they can be shared between configure
10404     # scripts and configure runs, see configure's option --config-cache.
10405     # It is not useful on other systems. If it contains results you don't
10406     # want to keep, you may remove or edit it.
10407     #
10408     # config.status only pays attention to the cache file if you give it
10409     # the --recheck option to rerun configure.
10410     #
10411     # `ac_cv_env_foo' variables (set or unset) will be overridden when
10412     # loading this file, other *unset* `ac_cv_foo' will be assigned the
10413     # following values.
10414    
10415     _ACEOF
10416    
10417     # The following way of writing the cache mishandles newlines in values,
10418     # but we know of no workaround that is simple, portable, and efficient.
10419 pcg 1.33 # So, we kill variables containing newlines.
10420 pcg 1.1 # Ultrix sh set writes to stderr and can't be redirected directly,
10421     # and sets the high bit in the cache file unless we assign to the vars.
10422 pcg 1.33 (
10423     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10424     eval ac_val=\$$ac_var
10425     case $ac_val in #(
10426     *${as_nl}*)
10427     case $ac_var in #(
10428     *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10429     echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10430     esac
10431     case $ac_var in #(
10432     _ | IFS | as_nl) ;; #(
10433     *) $as_unset $ac_var ;;
10434     esac ;;
10435     esac
10436     done
10437    
10438 pcg 1.1 (set) 2>&1 |
10439 pcg 1.33 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10440     *${as_nl}ac_space=\ *)
10441 pcg 1.1 # `set' does not quote correctly, so add quotes (double-quote
10442     # substitution turns \\\\ into \\, and sed turns \\ into \).
10443     sed -n \
10444 pcg 1.11 "s/'/'\\\\''/g;
10445     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10446 pcg 1.33 ;; #(
10447 pcg 1.1 *)
10448     # `set' quotes correctly as required by POSIX, so do not add quotes.
10449 pcg 1.33 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10450 pcg 1.1 ;;
10451 pcg 1.33 esac |
10452     sort
10453     ) |
10454 pcg 1.1 sed '
10455 pcg 1.33 /^ac_cv_env_/b end
10456 pcg 1.1 t clear
10457 pcg 1.33 :clear
10458 pcg 1.1 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10459     t end
10460 pcg 1.33 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10461     :end' >>confcache
10462     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10463     if test -w "$cache_file"; then
10464     test "x$cache_file" != "x/dev/null" &&
10465     { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10466     echo "$as_me: updating cache $cache_file" >&6;}
10467 pcg 1.1 cat confcache >$cache_file
10468     else
10469 pcg 1.33 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10470     echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10471 pcg 1.1 fi
10472     fi
10473     rm -f confcache
10474    
10475    
10476    
10477 pcg 1.33 # Check whether --with-kernel was given.
10478 pcg 1.1 if test "${with_kernel+set}" = set; then
10479 pcg 1.33 withval=$with_kernel; kerneldir="$withval"
10480 pcg 1.1 else
10481     kerneldir="/usr/src/linux"
10482    
10483 pcg 1.33 fi
10484    
10485 pcg 1.1
10486 pcg 1.33 { echo "$as_me:$LINENO: checking for linux/if_tun.h" >&5
10487     echo $ECHO_N "checking for linux/if_tun.h... $ECHO_C" >&6; }
10488 pcg 1.1 if test "${tinc_cv_linux_if_tun_h+set}" = set; then
10489     echo $ECHO_N "(cached) $ECHO_C" >&6
10490     else
10491    
10492     cat >conftest.$ac_ext <<_ACEOF
10493     /* confdefs.h. */
10494     _ACEOF
10495     cat confdefs.h >>conftest.$ac_ext
10496     cat >>conftest.$ac_ext <<_ACEOF
10497     /* end confdefs.h. */
10498     #include "$kerneldir/include/linux/if_tun.h"
10499     int
10500     main ()
10501     {
10502     int a = IFF_TAP;
10503     ;
10504     return 0;
10505     }
10506     _ACEOF
10507     rm -f conftest.$ac_objext
10508 pcg 1.33 if { (ac_try="$ac_compile"
10509     case "(($ac_try" in
10510     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511     *) ac_try_echo=$ac_try;;
10512     esac
10513     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514     (eval "$ac_compile") 2>conftest.er1
10515 pcg 1.1 ac_status=$?
10516 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
10517     rm -f conftest.er1
10518     cat conftest.err >&5
10519 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 pcg 1.33 (exit $ac_status); } && {
10521     test -z "$ac_cxx_werror_flag" ||
10522     test ! -s conftest.err
10523     } && test -s conftest.$ac_objext; then
10524 pcg 1.1 if_tun_h="\"$kerneldir/include/linux/if_tun.h\""
10525     else
10526     echo "$as_me: failed program was:" >&5
10527     sed 's/^/| /' conftest.$ac_ext >&5
10528    
10529 pcg 1.33 cat >conftest.$ac_ext <<_ACEOF
10530 pcg 1.1 /* confdefs.h. */
10531     _ACEOF
10532     cat confdefs.h >>conftest.$ac_ext
10533     cat >>conftest.$ac_ext <<_ACEOF
10534     /* end confdefs.h. */
10535     #include <linux/if_tun.h>
10536     int
10537     main ()
10538     {
10539     int a = IFF_TAP;
10540     ;
10541     return 0;
10542     }
10543     _ACEOF
10544     rm -f conftest.$ac_objext
10545 pcg 1.33 if { (ac_try="$ac_compile"
10546     case "(($ac_try" in
10547     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548     *) ac_try_echo=$ac_try;;
10549     esac
10550     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551     (eval "$ac_compile") 2>conftest.er1
10552 pcg 1.1 ac_status=$?
10553 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
10554     rm -f conftest.er1
10555     cat conftest.err >&5
10556 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 pcg 1.33 (exit $ac_status); } && {
10558     test -z "$ac_cxx_werror_flag" ||
10559     test ! -s conftest.err
10560     } && test -s conftest.$ac_objext; then
10561 pcg 1.1 if_tun_h="default"
10562     else
10563     echo "$as_me: failed program was:" >&5
10564     sed 's/^/| /' conftest.$ac_ext >&5
10565    
10566 pcg 1.33 if_tun_h="no"
10567 pcg 1.1
10568     fi
10569 pcg 1.33
10570     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10571 pcg 1.1
10572     fi
10573 pcg 1.33
10574     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10575 pcg 1.1
10576     if test $if_tun_h = no; then
10577     tinc_cv_linux_if_tun_h=none
10578     else
10579     tinc_cv_linux_if_tun_h="$if_tun_h"
10580     fi
10581    
10582     fi
10583 pcg 1.33 { echo "$as_me:$LINENO: result: $tinc_cv_linux_if_tun_h" >&5
10584     echo "${ECHO_T}$tinc_cv_linux_if_tun_h" >&6; }
10585 pcg 1.1
10586     if test $tinc_cv_linux_if_tun_h != none; then
10587    
10588     cat >>confdefs.h <<\_ACEOF
10589     #define HAVE_TUNTAP 1
10590     _ACEOF
10591    
10592     if test $tinc_cv_linux_if_tun_h != default; then
10593    
10594     cat >>confdefs.h <<_ACEOF
10595     #define LINUX_IF_TUN_H $tinc_cv_linux_if_tun_h
10596     _ACEOF
10597    
10598     fi
10599     fi
10600    
10601    
10602    
10603    
10604 pcg 1.6
10605 pcg 1.1 tinc_ac_save_CPPFLAGS="$CPPFLAGS"
10606    
10607    
10608 pcg 1.33 # Check whether --with-openssl-include was given.
10609 pcg 1.1 if test "${with_openssl_include+set}" = set; then
10610 pcg 1.33 withval=$with_openssl_include; openssl_include="$withval"
10611 pcg 1.1 CFLAGS="$CFLAGS -I$withval"
10612     CPPFLAGS="$CPPFLAGS -I$withval"
10613    
10614 pcg 1.33 fi
10615    
10616 pcg 1.1
10617    
10618 pcg 1.33 # Check whether --with-openssl-lib was given.
10619 pcg 1.1 if test "${with_openssl_lib+set}" = set; then
10620 pcg 1.33 withval=$with_openssl_lib; openssl_lib="$withval"
10621 pcg 1.1 LIBS="$LIBS -L$withval"
10622    
10623 pcg 1.33 fi
10624    
10625 pcg 1.1
10626    
10627    
10628    
10629    
10630    
10631    
10632     for ac_header in openssl/evp.h openssl/rsa.h openssl/rand.h openssl/err.h openssl/sha.h openssl/pem.h
10633     do
10634     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10635 pcg 1.33 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10636     { echo "$as_me:$LINENO: checking for $ac_header" >&5
10637     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10638     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10639 pcg 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
10640     fi
10641 pcg 1.33 ac_res=`eval echo '${'$as_ac_Header'}'`
10642     { echo "$as_me:$LINENO: result: $ac_res" >&5
10643     echo "${ECHO_T}$ac_res" >&6; }
10644 pcg 1.1 else
10645     # Is the header compilable?
10646 pcg 1.33 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10647     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10648 pcg 1.1 cat >conftest.$ac_ext <<_ACEOF
10649     /* confdefs.h. */
10650     _ACEOF
10651     cat confdefs.h >>conftest.$ac_ext
10652     cat >>conftest.$ac_ext <<_ACEOF
10653     /* end confdefs.h. */
10654     $ac_includes_default
10655     #include <$ac_header>
10656     _ACEOF
10657     rm -f conftest.$ac_objext
10658 pcg 1.33 if { (ac_try="$ac_compile"
10659     case "(($ac_try" in
10660     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661     *) ac_try_echo=$ac_try;;
10662     esac
10663     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10664     (eval "$ac_compile") 2>conftest.er1
10665 pcg 1.1 ac_status=$?
10666 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
10667     rm -f conftest.er1
10668     cat conftest.err >&5
10669 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 pcg 1.33 (exit $ac_status); } && {
10671     test -z "$ac_cxx_werror_flag" ||
10672     test ! -s conftest.err
10673     } && test -s conftest.$ac_objext; then
10674 pcg 1.1 ac_header_compiler=yes
10675     else
10676     echo "$as_me: failed program was:" >&5
10677     sed 's/^/| /' conftest.$ac_ext >&5
10678    
10679 pcg 1.33 ac_header_compiler=no
10680 pcg 1.1 fi
10681 pcg 1.33
10682     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10683     { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10684     echo "${ECHO_T}$ac_header_compiler" >&6; }
10685 pcg 1.1
10686     # Is the header present?
10687 pcg 1.33 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10688     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10689 pcg 1.1 cat >conftest.$ac_ext <<_ACEOF
10690     /* confdefs.h. */
10691     _ACEOF
10692     cat confdefs.h >>conftest.$ac_ext
10693     cat >>conftest.$ac_ext <<_ACEOF
10694     /* end confdefs.h. */
10695     #include <$ac_header>
10696     _ACEOF
10697 pcg 1.33 if { (ac_try="$ac_cpp conftest.$ac_ext"
10698     case "(($ac_try" in
10699     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700     *) ac_try_echo=$ac_try;;
10701     esac
10702     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10704 pcg 1.1 ac_status=$?
10705     grep -v '^ *+' conftest.er1 >conftest.err
10706     rm -f conftest.er1
10707     cat conftest.err >&5
10708     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 pcg 1.33 (exit $ac_status); } >/dev/null && {
10710     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10711     test ! -s conftest.err
10712     }; then
10713 pcg 1.1 ac_header_preproc=yes
10714     else
10715     echo "$as_me: failed program was:" >&5
10716     sed 's/^/| /' conftest.$ac_ext >&5
10717    
10718     ac_header_preproc=no
10719     fi
10720 pcg 1.33
10721 pcg 1.1 rm -f conftest.err conftest.$ac_ext
10722 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10723     echo "${ECHO_T}$ac_header_preproc" >&6; }
10724 pcg 1.1
10725     # So? What about this header?
10726 pcg 1.11 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10727     yes:no: )
10728 pcg 1.1 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10729     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10730 pcg 1.11 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10731     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10732     ac_header_preproc=yes
10733 pcg 1.1 ;;
10734 pcg 1.11 no:yes:* )
10735 pcg 1.1 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10736     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10737 pcg 1.11 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10738     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10739     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10740     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10741     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10742     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10743 pcg 1.1 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10744     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10745 pcg 1.11 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10746     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10747 pcg 1.33
10748 pcg 1.1 ;;
10749     esac
10750 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10751     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10752     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10753 pcg 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
10754     else
10755 pcg 1.11 eval "$as_ac_Header=\$ac_header_preproc"
10756 pcg 1.1 fi
10757 pcg 1.33 ac_res=`eval echo '${'$as_ac_Header'}'`
10758     { echo "$as_me:$LINENO: result: $ac_res" >&5
10759     echo "${ECHO_T}$ac_res" >&6; }
10760 pcg 1.1
10761     fi
10762     if test `eval echo '${'$as_ac_Header'}'` = yes; then
10763     cat >>confdefs.h <<_ACEOF
10764     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10765     _ACEOF
10766    
10767     else
10768     { { echo "$as_me:$LINENO: error: OpenSSL header files not found." >&5
10769     echo "$as_me: error: OpenSSL header files not found." >&2;}
10770     { (exit 1); exit 1; }; }; break
10771    
10772     fi
10773    
10774     done
10775    
10776    
10777     CPPFLAGS="$tinc_ac_save_CPPFLAGS"
10778    
10779 pcg 1.33 { echo "$as_me:$LINENO: checking for SHA1_version in -lcrypto" >&5
10780     echo $ECHO_N "checking for SHA1_version in -lcrypto... $ECHO_C" >&6; }
10781 pcg 1.1 if test "${ac_cv_lib_crypto_SHA1_version+set}" = set; then
10782     echo $ECHO_N "(cached) $ECHO_C" >&6
10783     else
10784     ac_check_lib_save_LIBS=$LIBS
10785     LIBS="-lcrypto $LIBS"
10786     cat >conftest.$ac_ext <<_ACEOF
10787     /* confdefs.h. */
10788     _ACEOF
10789     cat confdefs.h >>conftest.$ac_ext
10790     cat >>conftest.$ac_ext <<_ACEOF
10791     /* end confdefs.h. */
10792    
10793 pcg 1.33 /* Override any GCC internal prototype to avoid an error.
10794     Use char because int might match the return type of a GCC
10795     builtin and then its argument prototype would still apply. */
10796 pcg 1.1 #ifdef __cplusplus
10797     extern "C"
10798     #endif
10799     char SHA1_version ();
10800     int
10801     main ()
10802     {
10803 pcg 1.33 return SHA1_version ();
10804 pcg 1.1 ;
10805     return 0;
10806     }
10807     _ACEOF
10808     rm -f conftest.$ac_objext conftest$ac_exeext
10809 pcg 1.33 if { (ac_try="$ac_link"
10810     case "(($ac_try" in
10811     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812     *) ac_try_echo=$ac_try;;
10813     esac
10814     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815     (eval "$ac_link") 2>conftest.er1
10816 pcg 1.1 ac_status=$?
10817 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
10818     rm -f conftest.er1
10819     cat conftest.err >&5
10820 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 pcg 1.33 (exit $ac_status); } && {
10822     test -z "$ac_cxx_werror_flag" ||
10823     test ! -s conftest.err
10824     } && test -s conftest$ac_exeext &&
10825     $as_test_x conftest$ac_exeext; then
10826 pcg 1.1 ac_cv_lib_crypto_SHA1_version=yes
10827     else
10828     echo "$as_me: failed program was:" >&5
10829     sed 's/^/| /' conftest.$ac_ext >&5
10830    
10831 pcg 1.33 ac_cv_lib_crypto_SHA1_version=no
10832 pcg 1.1 fi
10833 pcg 1.33
10834     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10835 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
10836 pcg 1.1 LIBS=$ac_check_lib_save_LIBS
10837     fi
10838 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_SHA1_version" >&5
10839     echo "${ECHO_T}$ac_cv_lib_crypto_SHA1_version" >&6; }
10840 pcg 1.1 if test $ac_cv_lib_crypto_SHA1_version = yes; then
10841     LIBS="$LIBS -lcrypto"
10842     else
10843     { { echo "$as_me:$LINENO: error: OpenSSL libraries not found." >&5
10844     echo "$as_me: error: OpenSSL libraries not found." >&2;}
10845     { (exit 1); exit 1; }; }
10846    
10847     fi
10848    
10849    
10850    
10851    
10852    
10853    
10854     for ac_func in RAND_pseudo_bytes OPENSSL_add_all_algorithms_noconf OpenSSL_add_all_algorithms SSLeay_add_all_algorithms
10855     do
10856     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10857 pcg 1.33 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10858     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10859     if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10860 pcg 1.1 echo $ECHO_N "(cached) $ECHO_C" >&6
10861     else
10862     cat >conftest.$ac_ext <<_ACEOF
10863     /* confdefs.h. */
10864     _ACEOF
10865     cat confdefs.h >>conftest.$ac_ext
10866     cat >>conftest.$ac_ext <<_ACEOF
10867     /* end confdefs.h. */
10868 pcg 1.11 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10869     For example, HP-UX 11i <limits.h> declares gettimeofday. */
10870     #define $ac_func innocuous_$ac_func
10871    
10872 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
10873     which can conflict with char $ac_func (); below.
10874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10875     <limits.h> exists even on freestanding compilers. */
10876 pcg 1.11
10877 pcg 1.1 #ifdef __STDC__
10878     # include <limits.h>
10879     #else
10880     # include <assert.h>
10881     #endif
10882 pcg 1.11
10883     #undef $ac_func
10884    
10885 pcg 1.33 /* Override any GCC internal prototype to avoid an error.
10886     Use char because int might match the return type of a GCC
10887     builtin and then its argument prototype would still apply. */
10888 pcg 1.1 #ifdef __cplusplus
10889     extern "C"
10890     #endif
10891     char $ac_func ();
10892     /* The GNU C library defines this for functions which it implements
10893     to always fail with ENOSYS. Some functions are actually named
10894     something starting with __ and the normal name is an alias. */
10895 pcg 1.33 #if defined __stub_$ac_func || defined __stub___$ac_func
10896 pcg 1.1 choke me
10897     #endif
10898    
10899     int
10900     main ()
10901     {
10902 pcg 1.33 return $ac_func ();
10903 pcg 1.1 ;
10904     return 0;
10905     }
10906     _ACEOF
10907     rm -f conftest.$ac_objext conftest$ac_exeext
10908 pcg 1.33 if { (ac_try="$ac_link"
10909     case "(($ac_try" in
10910     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911     *) ac_try_echo=$ac_try;;
10912     esac
10913     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914     (eval "$ac_link") 2>conftest.er1
10915 pcg 1.1 ac_status=$?
10916 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
10917     rm -f conftest.er1
10918     cat conftest.err >&5
10919 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 pcg 1.33 (exit $ac_status); } && {
10921     test -z "$ac_cxx_werror_flag" ||
10922     test ! -s conftest.err
10923     } && test -s conftest$ac_exeext &&
10924     $as_test_x conftest$ac_exeext; then
10925 pcg 1.1 eval "$as_ac_var=yes"
10926     else
10927     echo "$as_me: failed program was:" >&5
10928     sed 's/^/| /' conftest.$ac_ext >&5
10929    
10930 pcg 1.33 eval "$as_ac_var=no"
10931 pcg 1.1 fi
10932 pcg 1.33
10933     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10934 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
10935 pcg 1.1 fi
10936 pcg 1.33 ac_res=`eval echo '${'$as_ac_var'}'`
10937     { echo "$as_me:$LINENO: result: $ac_res" >&5
10938     echo "${ECHO_T}$ac_res" >&6; }
10939 pcg 1.1 if test `eval echo '${'$as_ac_var'}'` = yes; then
10940     cat >>confdefs.h <<_ACEOF
10941     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10942     _ACEOF
10943    
10944     fi
10945     done
10946    
10947    
10948 pcg 1.33 { echo "$as_me:$LINENO: checking for dlopen" >&5
10949     echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10950 pcg 1.1 if test "${ac_cv_func_dlopen+set}" = set; then
10951     echo $ECHO_N "(cached) $ECHO_C" >&6
10952     else
10953     cat >conftest.$ac_ext <<_ACEOF
10954     /* confdefs.h. */
10955     _ACEOF
10956     cat confdefs.h >>conftest.$ac_ext
10957     cat >>conftest.$ac_ext <<_ACEOF
10958     /* end confdefs.h. */
10959 pcg 1.11 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10960     For example, HP-UX 11i <limits.h> declares gettimeofday. */
10961     #define dlopen innocuous_dlopen
10962    
10963 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
10964     which can conflict with char dlopen (); below.
10965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10966     <limits.h> exists even on freestanding compilers. */
10967 pcg 1.11
10968 pcg 1.1 #ifdef __STDC__
10969     # include <limits.h>
10970     #else
10971     # include <assert.h>
10972     #endif
10973 pcg 1.11
10974     #undef dlopen
10975    
10976 pcg 1.33 /* Override any GCC internal prototype to avoid an error.
10977     Use char because int might match the return type of a GCC
10978     builtin and then its argument prototype would still apply. */
10979 pcg 1.1 #ifdef __cplusplus
10980     extern "C"
10981     #endif
10982     char dlopen ();
10983     /* The GNU C library defines this for functions which it implements
10984     to always fail with ENOSYS. Some functions are actually named
10985     something starting with __ and the normal name is an alias. */
10986 pcg 1.33 #if defined __stub_dlopen || defined __stub___dlopen
10987 pcg 1.1 choke me
10988     #endif
10989    
10990     int
10991     main ()
10992     {
10993 pcg 1.33 return dlopen ();
10994 pcg 1.1 ;
10995     return 0;
10996     }
10997     _ACEOF
10998     rm -f conftest.$ac_objext conftest$ac_exeext
10999 pcg 1.33 if { (ac_try="$ac_link"
11000     case "(($ac_try" in
11001     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002     *) ac_try_echo=$ac_try;;
11003     esac
11004     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005     (eval "$ac_link") 2>conftest.er1
11006 pcg 1.1 ac_status=$?
11007 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
11008     rm -f conftest.er1
11009     cat conftest.err >&5
11010 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 pcg 1.33 (exit $ac_status); } && {
11012     test -z "$ac_cxx_werror_flag" ||
11013     test ! -s conftest.err
11014     } && test -s conftest$ac_exeext &&
11015     $as_test_x conftest$ac_exeext; then
11016 pcg 1.1 ac_cv_func_dlopen=yes
11017     else
11018     echo "$as_me: failed program was:" >&5
11019     sed 's/^/| /' conftest.$ac_ext >&5
11020    
11021 pcg 1.33 ac_cv_func_dlopen=no
11022 pcg 1.1 fi
11023 pcg 1.33
11024     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11025 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
11026 pcg 1.1 fi
11027 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11028     echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11029 pcg 1.1 if test $ac_cv_func_dlopen = yes; then
11030     :
11031     else
11032 pcg 1.33 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11033     echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11034 pcg 1.1 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11035     echo $ECHO_N "(cached) $ECHO_C" >&6
11036     else
11037     ac_check_lib_save_LIBS=$LIBS
11038     LIBS="-ldl $LIBS"
11039     cat >conftest.$ac_ext <<_ACEOF
11040     /* confdefs.h. */
11041     _ACEOF
11042     cat confdefs.h >>conftest.$ac_ext
11043     cat >>conftest.$ac_ext <<_ACEOF
11044     /* end confdefs.h. */
11045    
11046 pcg 1.33 /* Override any GCC internal prototype to avoid an error.
11047     Use char because int might match the return type of a GCC
11048     builtin and then its argument prototype would still apply. */
11049 pcg 1.1 #ifdef __cplusplus
11050     extern "C"
11051     #endif
11052     char dlopen ();
11053     int
11054     main ()
11055     {
11056 pcg 1.33 return dlopen ();
11057 pcg 1.1 ;
11058     return 0;
11059     }
11060     _ACEOF
11061     rm -f conftest.$ac_objext conftest$ac_exeext
11062 pcg 1.33 if { (ac_try="$ac_link"
11063     case "(($ac_try" in
11064     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065     *) ac_try_echo=$ac_try;;
11066     esac
11067     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068     (eval "$ac_link") 2>conftest.er1
11069 pcg 1.1 ac_status=$?
11070 pcg 1.11 grep -v '^ *+' conftest.er1 >conftest.err
11071     rm -f conftest.er1
11072     cat conftest.err >&5
11073 pcg 1.1 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 pcg 1.33 (exit $ac_status); } && {
11075     test -z "$ac_cxx_werror_flag" ||
11076     test ! -s conftest.err
11077     } && test -s conftest$ac_exeext &&
11078     $as_test_x conftest$ac_exeext; then
11079 pcg 1.1 ac_cv_lib_dl_dlopen=yes
11080     else
11081     echo "$as_me: failed program was:" >&5
11082     sed 's/^/| /' conftest.$ac_ext >&5
11083    
11084 pcg 1.33 ac_cv_lib_dl_dlopen=no
11085 pcg 1.1 fi
11086 pcg 1.33
11087     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11088 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
11089 pcg 1.1 LIBS=$ac_check_lib_save_LIBS
11090     fi
11091 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11092     echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11093 pcg 1.1 if test $ac_cv_lib_dl_dlopen = yes; then
11094     LIBS="$LIBS -ldl"
11095     else
11096     { { echo "$as_me:$LINENO: error: OpenSSL depends on libdl." >&5
11097     echo "$as_me: error: OpenSSL depends on libdl." >&2;}
11098     { (exit 1); exit 1; }; }
11099    
11100     fi
11101    
11102    
11103     fi
11104    
11105    
11106 pcg 1.6 if test "x$openssl_include" != x; then
11107     CXXFLAGS="$CXXFLAGS -I$openssl_include"
11108     fi
11109 pcg 1.1
11110 pcg 1.33 # Check whether --enable-static-daemon was given.
11111 pcg 1.21 if test "${enable_static_daemon+set}" = set; then
11112 pcg 1.33 enableval=$enable_static_daemon; LDFLAGS_DAEMON=-static
11113    
11114     fi
11115 pcg 1.21
11116    
11117    
11118 pcg 1.1
11119 pcg 1.16
11120    
11121     if test x$rohc = xtrue; then
11122     ROHC_TRUE=
11123     ROHC_FALSE='#'
11124     else
11125     ROHC_TRUE='#'
11126     ROHC_FALSE=
11127     fi
11128    
11129    
11130 pcg 1.30
11131 pcg 1.33 # Check whether --enable-icmp was given.
11132 pcg 1.1 if test "${enable_icmp+set}" = set; then
11133 pcg 1.33 enableval=$enable_icmp;
11134 pcg 1.1 cat >>confdefs.h <<_ACEOF
11135     #define ENABLE_ICMP 1
11136     _ACEOF
11137    
11138    
11139 pcg 1.33 fi
11140    
11141 pcg 1.1
11142 pcg 1.33 # Check whether --enable-tcp was given.
11143 pcg 1.1 if test "${enable_tcp+set}" = set; then
11144 pcg 1.33 enableval=$enable_tcp;
11145 pcg 1.1 cat >>confdefs.h <<_ACEOF
11146     #define ENABLE_TCP 1
11147     _ACEOF
11148    
11149    
11150 pcg 1.33 fi
11151    
11152 pcg 1.1
11153 pcg 1.33 # Check whether --enable-dns was given.
11154 pcg 1.17 if test "${enable_dns+set}" = set; then
11155 pcg 1.33 enableval=$enable_dns;
11156 pcg 1.24 if test "${ac_cv_header_gmp_h+set}" = set; then
11157 pcg 1.33 { echo "$as_me:$LINENO: checking for gmp.h" >&5
11158     echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6; }
11159 pcg 1.24 if test "${ac_cv_header_gmp_h+set}" = set; then
11160     echo $ECHO_N "(cached) $ECHO_C" >&6
11161     fi
11162 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
11163     echo "${ECHO_T}$ac_cv_header_gmp_h" >&6; }
11164 pcg 1.24 else
11165     # Is the header compilable?
11166 pcg 1.33 { echo "$as_me:$LINENO: checking gmp.h usability" >&5
11167     echo $ECHO_N "checking gmp.h usability... $ECHO_C" >&6; }
11168 pcg 1.24 cat >conftest.$ac_ext <<_ACEOF
11169     /* confdefs.h. */
11170     _ACEOF
11171     cat confdefs.h >>conftest.$ac_ext
11172     cat >>conftest.$ac_ext <<_ACEOF
11173     /* end confdefs.h. */
11174     $ac_includes_default
11175     #include <gmp.h>
11176     _ACEOF
11177     rm -f conftest.$ac_objext
11178 pcg 1.33 if { (ac_try="$ac_compile"
11179     case "(($ac_try" in
11180     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181     *) ac_try_echo=$ac_try;;
11182     esac
11183     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184     (eval "$ac_compile") 2>conftest.er1
11185 pcg 1.24 ac_status=$?
11186     grep -v '^ *+' conftest.er1 >conftest.err
11187     rm -f conftest.er1
11188     cat conftest.err >&5
11189     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 pcg 1.33 (exit $ac_status); } && {
11191     test -z "$ac_cxx_werror_flag" ||
11192     test ! -s conftest.err
11193     } && test -s conftest.$ac_objext; then
11194 pcg 1.24 ac_header_compiler=yes
11195     else
11196     echo "$as_me: failed program was:" >&5
11197     sed 's/^/| /' conftest.$ac_ext >&5
11198    
11199 pcg 1.33 ac_header_compiler=no
11200 pcg 1.24 fi
11201 pcg 1.33
11202     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11203     { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11204     echo "${ECHO_T}$ac_header_compiler" >&6; }
11205 pcg 1.24
11206     # Is the header present?
11207 pcg 1.33 { echo "$as_me:$LINENO: checking gmp.h presence" >&5
11208     echo $ECHO_N "checking gmp.h presence... $ECHO_C" >&6; }
11209 pcg 1.24 cat >conftest.$ac_ext <<_ACEOF
11210     /* confdefs.h. */
11211     _ACEOF
11212     cat confdefs.h >>conftest.$ac_ext
11213     cat >>conftest.$ac_ext <<_ACEOF
11214     /* end confdefs.h. */
11215     #include <gmp.h>
11216     _ACEOF
11217 pcg 1.33 if { (ac_try="$ac_cpp conftest.$ac_ext"
11218     case "(($ac_try" in
11219     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220     *) ac_try_echo=$ac_try;;
11221     esac
11222     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11224 pcg 1.24 ac_status=$?
11225     grep -v '^ *+' conftest.er1 >conftest.err
11226     rm -f conftest.er1
11227     cat conftest.err >&5
11228     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 pcg 1.33 (exit $ac_status); } >/dev/null && {
11230     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11231     test ! -s conftest.err
11232     }; then
11233 pcg 1.24 ac_header_preproc=yes
11234     else
11235     echo "$as_me: failed program was:" >&5
11236     sed 's/^/| /' conftest.$ac_ext >&5
11237    
11238     ac_header_preproc=no
11239     fi
11240 pcg 1.33
11241 pcg 1.24 rm -f conftest.err conftest.$ac_ext
11242 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11243     echo "${ECHO_T}$ac_header_preproc" >&6; }
11244 pcg 1.24
11245     # So? What about this header?
11246     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11247     yes:no: )
11248     { echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
11249     echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11250     { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the compiler's result" >&5
11251     echo "$as_me: WARNING: gmp.h: proceeding with the compiler's result" >&2;}
11252     ac_header_preproc=yes
11253     ;;
11254     no:yes:* )
11255     { echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled" >&5
11256     echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;}
11257     { echo "$as_me:$LINENO: WARNING: gmp.h: check for missing prerequisite headers?" >&5
11258     echo "$as_me: WARNING: gmp.h: check for missing prerequisite headers?" >&2;}
11259     { echo "$as_me:$LINENO: WARNING: gmp.h: see the Autoconf documentation" >&5
11260     echo "$as_me: WARNING: gmp.h: see the Autoconf documentation" >&2;}
11261     { echo "$as_me:$LINENO: WARNING: gmp.h: section \"Present But Cannot Be Compiled\"" >&5
11262     echo "$as_me: WARNING: gmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
11263     { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
11264     echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;}
11265     { echo "$as_me:$LINENO: WARNING: gmp.h: in the future, the compiler will take precedence" >&5
11266     echo "$as_me: WARNING: gmp.h: in the future, the compiler will take precedence" >&2;}
11267 pcg 1.33
11268 pcg 1.24 ;;
11269     esac
11270 pcg 1.33 { echo "$as_me:$LINENO: checking for gmp.h" >&5
11271     echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6; }
11272 pcg 1.24 if test "${ac_cv_header_gmp_h+set}" = set; then
11273     echo $ECHO_N "(cached) $ECHO_C" >&6
11274     else
11275     ac_cv_header_gmp_h=$ac_header_preproc
11276     fi
11277 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
11278     echo "${ECHO_T}$ac_cv_header_gmp_h" >&6; }
11279 pcg 1.24
11280     fi
11281     if test $ac_cv_header_gmp_h = yes; then
11282     :
11283     else
11284     { { echo "$as_me:$LINENO: error: gmp.h not found, required for --enable-dns" >&5
11285     echo "$as_me: error: gmp.h not found, required for --enable-dns" >&2;}
11286     { (exit 1); exit 1; }; }
11287     fi
11288    
11289    
11290    
11291 pcg 1.33 { echo "$as_me:$LINENO: checking for main in -lgmp" >&5
11292     echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6; }
11293 pcg 1.24 if test "${ac_cv_lib_gmp_main+set}" = set; then
11294     echo $ECHO_N "(cached) $ECHO_C" >&6
11295     else
11296     ac_check_lib_save_LIBS=$LIBS
11297     LIBS="-lgmp $LIBS"
11298     cat >conftest.$ac_ext <<_ACEOF
11299     /* confdefs.h. */
11300     _ACEOF
11301     cat confdefs.h >>conftest.$ac_ext
11302     cat >>conftest.$ac_ext <<_ACEOF
11303     /* end confdefs.h. */
11304    
11305    
11306     int
11307     main ()
11308     {
11309 pcg 1.33 return main ();
11310 pcg 1.24 ;
11311     return 0;
11312     }
11313     _ACEOF
11314     rm -f conftest.$ac_objext conftest$ac_exeext
11315 pcg 1.33 if { (ac_try="$ac_link"
11316     case "(($ac_try" in
11317     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318     *) ac_try_echo=$ac_try;;
11319     esac
11320     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321     (eval "$ac_link") 2>conftest.er1
11322 pcg 1.24 ac_status=$?
11323     grep -v '^ *+' conftest.er1 >conftest.err
11324     rm -f conftest.er1
11325     cat conftest.err >&5
11326     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 pcg 1.33 (exit $ac_status); } && {
11328     test -z "$ac_cxx_werror_flag" ||
11329     test ! -s conftest.err
11330     } && test -s conftest$ac_exeext &&
11331     $as_test_x conftest$ac_exeext; then
11332 pcg 1.24 ac_cv_lib_gmp_main=yes
11333     else
11334     echo "$as_me: failed program was:" >&5
11335     sed 's/^/| /' conftest.$ac_ext >&5
11336    
11337 pcg 1.33 ac_cv_lib_gmp_main=no
11338 pcg 1.24 fi
11339 pcg 1.33
11340     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11341 pcg 1.24 conftest$ac_exeext conftest.$ac_ext
11342     LIBS=$ac_check_lib_save_LIBS
11343     fi
11344 pcg 1.33 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5
11345     echo "${ECHO_T}$ac_cv_lib_gmp_main" >&6; }
11346 pcg 1.24 if test $ac_cv_lib_gmp_main = yes; then
11347     cat >>confdefs.h <<_ACEOF
11348     #define HAVE_LIBGMP 1
11349     _ACEOF
11350    
11351     LIBS="-lgmp $LIBS"
11352    
11353     else
11354     { { echo "$as_me:$LINENO: error: libgmp not found, required for --enable-dns" >&5
11355     echo "$as_me: error: libgmp not found, required for --enable-dns" >&2;}
11356     { (exit 1); exit 1; }; }
11357     fi
11358    
11359    
11360    
11361 pcg 1.17 cat >>confdefs.h <<_ACEOF
11362     #define ENABLE_DNS 1
11363     _ACEOF
11364    
11365    
11366 pcg 1.24
11367 pcg 1.33 fi
11368    
11369 pcg 1.17
11370 pcg 1.33 # Check whether --enable-http-proxy was given.
11371 pcg 1.1 if test "${enable_http_proxy+set}" = set; then
11372 pcg 1.33 enableval=$enable_http_proxy;
11373 pcg 1.1 cat >>confdefs.h <<_ACEOF
11374     #define ENABLE_HTTP_PROXY 1
11375     _ACEOF
11376    
11377    
11378 pcg 1.33 fi
11379    
11380 pcg 1.1
11381 pcg 1.21 HMAC=12
11382 pcg 1.33 # Check whether --enable-hmac-length was given.
11383 pcg 1.1 if test "${enable_hmac_length+set}" = set; then
11384 pcg 1.33 enableval=$enable_hmac_length; HMAC=$enableval
11385    
11386     fi
11387 pcg 1.1
11388    
11389     cat >>confdefs.h <<_ACEOF
11390     #define HMACLENGTH $HMAC
11391     _ACEOF
11392    
11393    
11394 pcg 1.21 RAND=8
11395 pcg 1.33 # Check whether --enable-rand-length was given.
11396 pcg 1.1 if test "${enable_rand_length+set}" = set; then
11397 pcg 1.33 enableval=$enable_rand_length; RAND=$enableval
11398    
11399     fi
11400 pcg 1.1
11401    
11402     cat >>confdefs.h <<_ACEOF
11403     #define RAND_SIZE $RAND
11404     _ACEOF
11405    
11406    
11407 pcg 1.21 MTU=1500
11408 pcg 1.33 # Check whether --enable-mtu was given.
11409 pcg 1.1 if test "${enable_mtu+set}" = set; then
11410 pcg 1.33 enableval=$enable_mtu; MTU=$enableval
11411    
11412     fi
11413 pcg 1.1
11414    
11415     cat >>confdefs.h <<_ACEOF
11416     #define MAX_MTU $MTU + 14
11417     _ACEOF
11418    
11419    
11420     COMPRESS=1
11421 pcg 1.33 # Check whether --enable-compression was given.
11422 pcg 1.1 if test "${enable_compression+set}" = set; then
11423 pcg 1.33 enableval=$enable_compression; if test "x$enableval" = xno; then
11424 pcg 1.1 COMPRESS=0
11425     fi
11426    
11427 pcg 1.33 fi
11428    
11429 pcg 1.1
11430     cat >>confdefs.h <<_ACEOF
11431     #define ENABLE_COMPRESSION $COMPRESS
11432     _ACEOF
11433    
11434    
11435 pcg 1.30 CIPHER=aes_128_cbc
11436 pcg 1.33 # Check whether --enable-cipher was given.
11437 pcg 1.1 if test "${enable_cipher+set}" = set; then
11438 pcg 1.33 enableval=$enable_cipher; if test "x$enableval" = xbf ; then CIPHER=bf_cbc ; fi
11439 pcg 1.1 if test "x$enableval" = xaes-128; then CIPHER=aes_128_cbc; fi
11440     if test "x$enableval" = xaes-192; then CIPHER=aes_192_cbc; fi
11441     if test "x$enableval" = xaes-256; then CIPHER=aes_256_cbc; fi
11442    
11443 pcg 1.33 fi
11444    
11445 pcg 1.1
11446     cat >>confdefs.h <<_ACEOF
11447     #define ENABLE_CIPHER EVP_${CIPHER}
11448     _ACEOF
11449    
11450    
11451 pcg 1.30 DIGEST=ripemd160
11452 pcg 1.33 # Check whether --enable-digest was given.
11453 pcg 1.1 if test "${enable_digest+set}" = set; then
11454 pcg 1.33 enableval=$enable_digest; if test "x$enableval" = xsha512 ; then DIGEST=sha512 ; fi
11455     if test "x$enableval" = xsha256 ; then DIGEST=sha256 ; fi
11456 pcg 1.1 if test "x$enableval" = xsha1 ; then DIGEST=sha1 ; fi
11457     if test "x$enableval" = xripemd160; then DIGEST=ripemd160; fi
11458     if test "x$enableval" = xmd5 ; then DIGEST=md5 ; fi
11459     if test "x$enableval" = xmd4 ; then DIGEST=md4 ; fi
11460    
11461 pcg 1.33 fi
11462    
11463 pcg 1.1
11464     cat >>confdefs.h <<_ACEOF
11465     #define ENABLE_DIGEST EVP_${DIGEST}
11466     _ACEOF
11467    
11468    
11469     if $CXX -v --help 2>&1 | grep -q fno-rtti; then
11470     CXXFLAGS="$CXXFLAGS -fno-rtti"
11471     fi
11472    
11473 pcg 1.39 #if $CXX -v --help 2>&1 | grep -q fexceptions; then
11474     # CXXFLAGS="$CXXFLAGS -fno-exceptions"
11475     #fi
11476 pcg 1.1
11477 pcg 1.36 LIBS="$EXTRA_LIBS $LIBS"
11478    
11479 pcg 1.1
11480    
11481    
11482 pcg 1.33 ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile doc/Makefile lib/Makefile m4/Makefile"
11483 pcg 1.19
11484 pcg 1.1 cat >confcache <<\_ACEOF
11485     # This file is a shell script that caches the results of configure
11486     # tests run on this system so they can be shared between configure
11487     # scripts and configure runs, see configure's option --config-cache.
11488     # It is not useful on other systems. If it contains results you don't
11489     # want to keep, you may remove or edit it.
11490     #
11491     # config.status only pays attention to the cache file if you give it
11492     # the --recheck option to rerun configure.
11493     #
11494     # `ac_cv_env_foo' variables (set or unset) will be overridden when
11495     # loading this file, other *unset* `ac_cv_foo' will be assigned the
11496     # following values.
11497    
11498     _ACEOF
11499    
11500     # The following way of writing the cache mishandles newlines in values,
11501     # but we know of no workaround that is simple, portable, and efficient.
11502 pcg 1.33 # So, we kill variables containing newlines.
11503 pcg 1.1 # Ultrix sh set writes to stderr and can't be redirected directly,
11504     # and sets the high bit in the cache file unless we assign to the vars.
11505 pcg 1.33 (
11506     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11507     eval ac_val=\$$ac_var
11508     case $ac_val in #(
11509     *${as_nl}*)
11510     case $ac_var in #(
11511     *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11512     echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11513     esac
11514     case $ac_var in #(
11515     _ | IFS | as_nl) ;; #(
11516     *) $as_unset $ac_var ;;
11517     esac ;;
11518     esac
11519     done
11520    
11521 pcg 1.1 (set) 2>&1 |
11522 pcg 1.33 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11523     *${as_nl}ac_space=\ *)
11524 pcg 1.1 # `set' does not quote correctly, so add quotes (double-quote
11525     # substitution turns \\\\ into \\, and sed turns \\ into \).
11526     sed -n \
11527 pcg 1.11 "s/'/'\\\\''/g;
11528     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11529 pcg 1.33 ;; #(
11530 pcg 1.1 *)
11531     # `set' quotes correctly as required by POSIX, so do not add quotes.
11532 pcg 1.33 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11533 pcg 1.1 ;;
11534 pcg 1.33 esac |
11535     sort
11536     ) |
11537 pcg 1.1 sed '
11538 pcg 1.33 /^ac_cv_env_/b end
11539 pcg 1.1 t clear
11540 pcg 1.33 :clear
11541 pcg 1.1 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11542     t end
11543 pcg 1.33 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11544     :end' >>confcache
11545     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11546     if test -w "$cache_file"; then
11547     test "x$cache_file" != "x/dev/null" &&
11548     { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11549     echo "$as_me: updating cache $cache_file" >&6;}
11550 pcg 1.1 cat confcache >$cache_file
11551     else
11552 pcg 1.33 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11553     echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11554 pcg 1.1 fi
11555     fi
11556     rm -f confcache
11557    
11558     test "x$prefix" = xNONE && prefix=$ac_default_prefix
11559     # Let make expand exec_prefix.
11560     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11561    
11562     DEFS=-DHAVE_CONFIG_H
11563    
11564     ac_libobjs=
11565     ac_ltlibobjs=
11566     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11567     # 1. Remove the extension, and $U if already installed.
11568 pcg 1.33 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11569     ac_i=`echo "$ac_i" | sed "$ac_script"`
11570     # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11571     # will be set to the directory where LIBOBJS objects are built.
11572     ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11573     ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11574 pcg 1.1 done
11575     LIBOBJS=$ac_libobjs
11576    
11577     LTLIBOBJS=$ac_ltlibobjs
11578    
11579    
11580     if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11581     { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11582     Usually this means the macro was only invoked conditionally." >&5
11583     echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11584     Usually this means the macro was only invoked conditionally." >&2;}
11585     { (exit 1); exit 1; }; }
11586     fi
11587     if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11588     { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11589     Usually this means the macro was only invoked conditionally." >&5
11590     echo "$as_me: error: conditional \"AMDEP\" was never defined.
11591     Usually this means the macro was only invoked conditionally." >&2;}
11592     { (exit 1); exit 1; }; }
11593     fi
11594     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11595     { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11596     Usually this means the macro was only invoked conditionally." >&5
11597     echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11598     Usually this means the macro was only invoked conditionally." >&2;}
11599     { (exit 1); exit 1; }; }
11600     fi
11601     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11602     { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11603     Usually this means the macro was only invoked conditionally." >&5
11604     echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11605     Usually this means the macro was only invoked conditionally." >&2;}
11606     { (exit 1); exit 1; }; }
11607     fi
11608     if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11609     { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
11610     Usually this means the macro was only invoked conditionally." >&5
11611     echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
11612     Usually this means the macro was only invoked conditionally." >&2;}
11613     { (exit 1); exit 1; }; }
11614     fi
11615 pcg 1.16 if test -z "${ROHC_TRUE}" && test -z "${ROHC_FALSE}"; then
11616     { { echo "$as_me:$LINENO: error: conditional \"ROHC\" was never defined.
11617     Usually this means the macro was only invoked conditionally." >&5
11618     echo "$as_me: error: conditional \"ROHC\" was never defined.
11619     Usually this means the macro was only invoked conditionally." >&2;}
11620     { (exit 1); exit 1; }; }
11621     fi
11622 pcg 1.1
11623     : ${CONFIG_STATUS=./config.status}
11624     ac_clean_files_save=$ac_clean_files
11625     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11626     { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11627     echo "$as_me: creating $CONFIG_STATUS" >&6;}
11628     cat >$CONFIG_STATUS <<_ACEOF
11629     #! $SHELL
11630     # Generated by $as_me.
11631     # Run this file to recreate the current configuration.
11632     # Compiler output produced by configure, useful for debugging
11633     # configure, is in config.log if it exists.
11634    
11635     debug=false
11636     ac_cs_recheck=false
11637     ac_cs_silent=false
11638     SHELL=\${CONFIG_SHELL-$SHELL}
11639     _ACEOF
11640    
11641     cat >>$CONFIG_STATUS <<\_ACEOF
11642     ## --------------------- ##
11643     ## M4sh Initialization. ##
11644     ## --------------------- ##
11645    
11646 pcg 1.33 # Be more Bourne compatible
11647     DUALCASE=1; export DUALCASE # for MKS sh
11648 pcg 1.1 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11649     emulate sh
11650     NULLCMD=:
11651     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11652     # is contrary to our usage. Disable this feature.
11653     alias -g '${1+"$@"}'='"$@"'
11654 pcg 1.33 setopt NO_GLOB_SUBST
11655     else
11656     case `(set -o) 2>/dev/null` in
11657     *posix*) set -o posix ;;
11658     esac
11659    
11660     fi
11661    
11662    
11663    
11664    
11665     # PATH needs CR
11666     # Avoid depending upon Character Ranges.
11667     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11668     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11669     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11670     as_cr_digits='0123456789'
11671     as_cr_alnum=$as_cr_Letters$as_cr_digits
11672    
11673     # The user is always right.
11674     if test "${PATH_SEPARATOR+set}" != set; then
11675     echo "#! /bin/sh" >conf$$.sh
11676     echo "exit 0" >>conf$$.sh
11677     chmod +x conf$$.sh
11678     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11679     PATH_SEPARATOR=';'
11680     else
11681     PATH_SEPARATOR=:
11682     fi
11683     rm -f conf$$.sh
11684 pcg 1.1 fi
11685    
11686     # Support unset when possible.
11687 pcg 1.11 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11688 pcg 1.1 as_unset=unset
11689     else
11690     as_unset=false
11691     fi
11692    
11693    
11694 pcg 1.33 # IFS
11695     # We need space, tab and new line, in precisely that order. Quoting is
11696     # there to prevent editors from complaining about space-tab.
11697     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11698     # splitting by setting IFS to empty value.)
11699     as_nl='
11700     '
11701     IFS=" "" $as_nl"
11702    
11703     # Find who we are. Look in the path if we contain no directory separator.
11704     case $0 in
11705     *[\\/]* ) as_myself=$0 ;;
11706     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707     for as_dir in $PATH
11708     do
11709     IFS=$as_save_IFS
11710     test -z "$as_dir" && as_dir=.
11711     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11712     done
11713     IFS=$as_save_IFS
11714    
11715     ;;
11716     esac
11717     # We did not find ourselves, most probably we were run as `sh COMMAND'
11718     # in which case we are not to be found in the path.
11719     if test "x$as_myself" = x; then
11720     as_myself=$0
11721     fi
11722     if test ! -f "$as_myself"; then
11723     echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11724     { (exit 1); exit 1; }
11725     fi
11726    
11727 pcg 1.1 # Work around bugs in pre-3.0 UWIN ksh.
11728 pcg 1.33 for as_var in ENV MAIL MAILPATH
11729     do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11730     done
11731 pcg 1.1 PS1='$ '
11732     PS2='> '
11733     PS4='+ '
11734    
11735     # NLS nuisances.
11736     for as_var in \
11737     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11738     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11739     LC_TELEPHONE LC_TIME
11740     do
11741 pcg 1.11 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11742 pcg 1.1 eval $as_var=C; export $as_var
11743     else
11744 pcg 1.33 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11745 pcg 1.1 fi
11746     done
11747    
11748     # Required to use basename.
11749 pcg 1.33 if expr a : '\(a\)' >/dev/null 2>&1 &&
11750     test "X`expr 00001 : '.*\(...\)'`" = X001; then
11751 pcg 1.1 as_expr=expr
11752     else
11753     as_expr=false
11754     fi
11755    
11756 pcg 1.33 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11757 pcg 1.1 as_basename=basename
11758     else
11759     as_basename=false
11760     fi
11761    
11762    
11763     # Name of the executable.
11764 pcg 1.33 as_me=`$as_basename -- "$0" ||
11765 pcg 1.1 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11766     X"$0" : 'X\(//\)$' \| \
11767 pcg 1.33 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11768 pcg 1.1 echo X/"$0" |
11769 pcg 1.33 sed '/^.*\/\([^/][^/]*\)\/*$/{
11770     s//\1/
11771     q
11772     }
11773     /^X\/\(\/\/\)$/{
11774     s//\1/
11775     q
11776     }
11777     /^X\/\(\/\).*/{
11778     s//\1/
11779     q
11780     }
11781     s/.*/./; q'`
11782 pcg 1.1
11783 pcg 1.33 # CDPATH.
11784     $as_unset CDPATH
11785 pcg 1.1
11786    
11787    
11788     as_lineno_1=$LINENO
11789     as_lineno_2=$LINENO
11790     test "x$as_lineno_1" != "x$as_lineno_2" &&
11791 pcg 1.33 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11792 pcg 1.1
11793     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11794     # uniformly replaced by the line number. The first 'sed' inserts a
11795 pcg 1.33 # line-number line after each line using $LINENO; the second 'sed'
11796     # does the real work. The second script uses 'N' to pair each
11797     # line-number line with the line containing $LINENO, and appends
11798     # trailing '-' during substitution so that $LINENO is not a special
11799     # case at line end.
11800 pcg 1.1 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11801 pcg 1.33 # scripts with optimization help from Paolo Bonzini. Blame Lee
11802     # E. McMahon (1931-1989) for sed's syntax. :-)
11803     sed -n '
11804     p
11805     /[$]LINENO/=
11806     ' <$as_myself |
11807 pcg 1.1 sed '
11808 pcg 1.33 s/[$]LINENO.*/&-/
11809     t lineno
11810     b
11811     :lineno
11812 pcg 1.1 N
11813 pcg 1.33 :loop
11814     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11815 pcg 1.1 t loop
11816 pcg 1.33 s/-\n.*//
11817 pcg 1.1 ' >$as_me.lineno &&
11818 pcg 1.33 chmod +x "$as_me.lineno" ||
11819     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11820 pcg 1.1 { (exit 1); exit 1; }; }
11821    
11822     # Don't try to exec as it changes $[0], causing all sort of problems
11823     # (the dirname of $[0] is not the place where we might find the
11824 pcg 1.33 # original and so on. Autoconf is especially sensitive to this).
11825     . "./$as_me.lineno"
11826 pcg 1.1 # Exit status is that of the last command.
11827     exit
11828     }
11829    
11830    
11831 pcg 1.33 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11832     as_dirname=dirname
11833     else
11834     as_dirname=false
11835     fi
11836    
11837     ECHO_C= ECHO_N= ECHO_T=
11838     case `echo -n x` in
11839     -n*)
11840     case `echo 'x\c'` in
11841     *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11842     *) ECHO_C='\c';;
11843     esac;;
11844     *)
11845     ECHO_N='-n';;
11846 pcg 1.1 esac
11847    
11848 pcg 1.33 if expr a : '\(a\)' >/dev/null 2>&1 &&
11849     test "X`expr 00001 : '.*\(...\)'`" = X001; then
11850 pcg 1.1 as_expr=expr
11851     else
11852     as_expr=false
11853     fi
11854    
11855     rm -f conf$$ conf$$.exe conf$$.file
11856 pcg 1.33 if test -d conf$$.dir; then
11857     rm -f conf$$.dir/conf$$.file
11858     else
11859     rm -f conf$$.dir
11860     mkdir conf$$.dir
11861     fi
11862 pcg 1.1 echo >conf$$.file
11863     if ln -s conf$$.file conf$$ 2>/dev/null; then
11864 pcg 1.33 as_ln_s='ln -s'
11865     # ... but there are two gotchas:
11866     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11867     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11868     # In both cases, we have to default to `cp -p'.
11869     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11870 pcg 1.1 as_ln_s='cp -p'
11871     elif ln conf$$.file conf$$ 2>/dev/null; then
11872     as_ln_s=ln
11873     else
11874     as_ln_s='cp -p'
11875     fi
11876 pcg 1.33 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11877     rmdir conf$$.dir 2>/dev/null
11878 pcg 1.1
11879     if mkdir -p . 2>/dev/null; then
11880     as_mkdir_p=:
11881     else
11882 pcg 1.11 test -d ./-p && rmdir ./-p
11883 pcg 1.1 as_mkdir_p=false
11884     fi
11885    
11886 pcg 1.33 if test -x / >/dev/null 2>&1; then
11887     as_test_x='test -x'
11888     else
11889     if ls -dL / >/dev/null 2>&1; then
11890     as_ls_L_option=L
11891     else
11892     as_ls_L_option=
11893     fi
11894     as_test_x='
11895     eval sh -c '\''
11896     if test -d "$1"; then
11897     test -d "$1/.";
11898     else
11899     case $1 in
11900     -*)set "./$1";;
11901     esac;
11902     case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11903     ???[sx]*):;;*)false;;esac;fi
11904     '\'' sh
11905     '
11906     fi
11907     as_executable_p=$as_test_x
11908 pcg 1.1
11909     # Sed expression to map a string onto a valid CPP name.
11910 pcg 1.11 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11911 pcg 1.1
11912     # Sed expression to map a string onto a valid variable name.
11913 pcg 1.11 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11914 pcg 1.1
11915    
11916     exec 6>&1
11917    
11918 pcg 1.33 # Save the log message, to keep $[0] and so on meaningful, and to
11919 pcg 1.1 # report actual input values of CONFIG_FILES etc. instead of their
11920 pcg 1.33 # values after options handling.
11921     ac_log="
11922 pcg 1.1 This file was extended by $as_me, which was
11923 pcg 1.33 generated by GNU Autoconf 2.61. Invocation command line was
11924 pcg 1.1
11925     CONFIG_FILES = $CONFIG_FILES
11926     CONFIG_HEADERS = $CONFIG_HEADERS
11927     CONFIG_LINKS = $CONFIG_LINKS
11928     CONFIG_COMMANDS = $CONFIG_COMMANDS
11929     $ $0 $@
11930    
11931 pcg 1.33 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11932     "
11933    
11934 pcg 1.1 _ACEOF
11935    
11936 pcg 1.33 cat >>$CONFIG_STATUS <<_ACEOF
11937 pcg 1.1 # Files that config.status was made for.
11938 pcg 1.33 config_files="$ac_config_files"
11939     config_headers="$ac_config_headers"
11940     config_commands="$ac_config_commands"
11941 pcg 1.1
11942 pcg 1.33 _ACEOF
11943 pcg 1.1
11944     cat >>$CONFIG_STATUS <<\_ACEOF
11945     ac_cs_usage="\
11946     \`$as_me' instantiates files from templates according to the
11947     current configuration.
11948    
11949     Usage: $0 [OPTIONS] [FILE]...
11950    
11951     -h, --help print this help, then exit
11952 pcg 1.33 -V, --version print version number and configuration settings, then exit
11953 pcg 1.1 -q, --quiet do not print progress messages
11954     -d, --debug don't remove temporary files
11955     --recheck update $as_me by reconfiguring in the same conditions
11956     --file=FILE[:TEMPLATE]
11957 pcg 1.11 instantiate the configuration file FILE
11958 pcg 1.1 --header=FILE[:TEMPLATE]
11959 pcg 1.11 instantiate the configuration header FILE
11960 pcg 1.1
11961     Configuration files:
11962     $config_files
11963    
11964     Configuration headers:
11965     $config_headers
11966    
11967     Configuration commands:
11968     $config_commands
11969    
11970     Report bugs to <bug-autoconf@gnu.org>."
11971 pcg 1.33
11972 pcg 1.1 _ACEOF
11973     cat >>$CONFIG_STATUS <<_ACEOF
11974     ac_cs_version="\\
11975     config.status
11976 pcg 1.33 configured by $0, generated by GNU Autoconf 2.61,
11977     with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11978 pcg 1.1
11979 pcg 1.33 Copyright (C) 2006 Free Software Foundation, Inc.
11980 pcg 1.1 This config.status script is free software; the Free Software Foundation
11981     gives unlimited permission to copy, distribute and modify it."
11982 pcg 1.33
11983     ac_pwd='$ac_pwd'
11984     srcdir='$srcdir'
11985     INSTALL='$INSTALL'
11986 pcg 1.1 _ACEOF
11987    
11988     cat >>$CONFIG_STATUS <<\_ACEOF
11989     # If no file are specified by the user, then we need to provide default
11990     # value. By we need to know if files were specified by the user.
11991     ac_need_defaults=:
11992     while test $# != 0
11993     do
11994     case $1 in
11995     --*=*)
11996 pcg 1.33 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11997     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11998 pcg 1.1 ac_shift=:
11999     ;;
12000 pcg 1.33 *)
12001 pcg 1.1 ac_option=$1
12002     ac_optarg=$2
12003     ac_shift=shift
12004     ;;
12005     esac
12006    
12007     case $ac_option in
12008     # Handling of the options.
12009     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12010     ac_cs_recheck=: ;;
12011 pcg 1.33 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12012     echo "$ac_cs_version"; exit ;;
12013     --debug | --debu | --deb | --de | --d | -d )
12014 pcg 1.1 debug=: ;;
12015     --file | --fil | --fi | --f )
12016     $ac_shift
12017     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12018     ac_need_defaults=false;;
12019     --header | --heade | --head | --hea )
12020     $ac_shift
12021     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12022     ac_need_defaults=false;;
12023 pcg 1.33 --he | --h)
12024     # Conflict between --help and --header
12025     { echo "$as_me: error: ambiguous option: $1
12026     Try \`$0 --help' for more information." >&2
12027     { (exit 1); exit 1; }; };;
12028     --help | --hel | -h )
12029     echo "$ac_cs_usage"; exit ;;
12030 pcg 1.1 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12031     | -silent | --silent | --silen | --sile | --sil | --si | --s)
12032     ac_cs_silent=: ;;
12033    
12034     # This is an error.
12035 pcg 1.33 -*) { echo "$as_me: error: unrecognized option: $1
12036     Try \`$0 --help' for more information." >&2
12037 pcg 1.1 { (exit 1); exit 1; }; } ;;
12038    
12039 pcg 1.33 *) ac_config_targets="$ac_config_targets $1"
12040     ac_need_defaults=false ;;
12041 pcg 1.1
12042     esac
12043     shift
12044     done
12045    
12046     ac_configure_extra_args=
12047    
12048     if $ac_cs_silent; then
12049     exec 6>/dev/null
12050     ac_configure_extra_args="$ac_configure_extra_args --silent"
12051     fi
12052    
12053     _ACEOF
12054     cat >>$CONFIG_STATUS <<_ACEOF
12055     if \$ac_cs_recheck; then
12056 pcg 1.33 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12057     CONFIG_SHELL=$SHELL
12058     export CONFIG_SHELL
12059     exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12060 pcg 1.1 fi
12061    
12062     _ACEOF
12063 pcg 1.33 cat >>$CONFIG_STATUS <<\_ACEOF
12064     exec 5>>config.log
12065     {
12066     echo
12067     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12068     ## Running $as_me. ##
12069     _ASBOX
12070     echo "$ac_log"
12071     } >&5
12072 pcg 1.1
12073 pcg 1.33 _ACEOF
12074 pcg 1.1 cat >>$CONFIG_STATUS <<_ACEOF
12075     #
12076 pcg 1.33 # INIT-COMMANDS
12077 pcg 1.1 #
12078     # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12079     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12080     # from automake.
12081     eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
12082     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12083     LINGUAS="${LINGUAS-%UNSET%}"
12084    
12085     AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12086    
12087     _ACEOF
12088    
12089 pcg 1.33 cat >>$CONFIG_STATUS <<\_ACEOF
12090 pcg 1.1
12091 pcg 1.33 # Handling of arguments.
12092 pcg 1.1 for ac_config_target in $ac_config_targets
12093     do
12094 pcg 1.33 case $ac_config_target in
12095     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12096     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12097     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12098     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12099     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12100     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12101     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12102     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12103     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
12104    
12105 pcg 1.1 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12106     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12107     { (exit 1); exit 1; }; };;
12108     esac
12109     done
12110    
12111 pcg 1.33
12112 pcg 1.1 # If the user did not use the arguments to specify the items to instantiate,
12113     # then the envvar interface is used. Set only those that are not.
12114     # We use the long form for the default assignment because of an extremely
12115     # bizarre bug on SunOS 4.1.3.
12116     if $ac_need_defaults; then
12117     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12118     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12119     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12120     fi
12121    
12122     # Have a temporary directory for convenience. Make it in the build tree
12123 pcg 1.33 # simply because there is no reason against having it here, and in addition,
12124 pcg 1.1 # creating and moving files from /tmp can sometimes cause problems.
12125 pcg 1.33 # Hook for its removal unless debugging.
12126     # Note that there is a small window in which the directory will not be cleaned:
12127     # after its creation but before its name has been assigned to `$tmp'.
12128 pcg 1.1 $debug ||
12129     {
12130 pcg 1.33 tmp=
12131     trap 'exit_status=$?
12132     { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12133     ' 0
12134 pcg 1.1 trap '{ (exit 1); exit 1; }' 1 2 13 15
12135     }
12136     # Create a (secure) tmp directory for tmp files.
12137    
12138     {
12139 pcg 1.33 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12140 pcg 1.1 test -n "$tmp" && test -d "$tmp"
12141     } ||
12142     {
12143 pcg 1.33 tmp=./conf$$-$RANDOM
12144     (umask 077 && mkdir "$tmp")
12145 pcg 1.1 } ||
12146     {
12147     echo "$me: cannot create a temporary directory in ." >&2
12148     { (exit 1); exit 1; }
12149     }
12150    
12151 pcg 1.33 #
12152     # Set up the sed scripts for CONFIG_FILES section.
12153     #
12154    
12155     # No need to generate the scripts if there are no CONFIG_FILES.
12156     # This happens for instance when ./config.status config.h
12157     if test -n "$CONFIG_FILES"; then
12158    
12159 pcg 1.1 _ACEOF
12160    
12161 pcg 1.33
12162    
12163     ac_delim='%!_!# '
12164     for ac_last_try in false false false false false :; do
12165     cat >conf$$subs.sed <<_ACEOF
12166     SHELL!$SHELL$ac_delim
12167     PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12168     PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12169     PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12170     PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12171     PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12172     PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12173     exec_prefix!$exec_prefix$ac_delim
12174     prefix!$prefix$ac_delim
12175     program_transform_name!$program_transform_name$ac_delim
12176     bindir!$bindir$ac_delim
12177     sbindir!$sbindir$ac_delim
12178     libexecdir!$libexecdir$ac_delim
12179     datarootdir!$datarootdir$ac_delim
12180     datadir!$datadir$ac_delim
12181     sysconfdir!$sysconfdir$ac_delim
12182     sharedstatedir!$sharedstatedir$ac_delim
12183     localstatedir!$localstatedir$ac_delim
12184     includedir!$includedir$ac_delim
12185     oldincludedir!$oldincludedir$ac_delim
12186     docdir!$docdir$ac_delim
12187     infodir!$infodir$ac_delim
12188     htmldir!$htmldir$ac_delim
12189     dvidir!$dvidir$ac_delim
12190     pdfdir!$pdfdir$ac_delim
12191     psdir!$psdir$ac_delim
12192     libdir!$libdir$ac_delim
12193     localedir!$localedir$ac_delim
12194     mandir!$mandir$ac_delim
12195     DEFS!$DEFS$ac_delim
12196     ECHO_C!$ECHO_C$ac_delim
12197     ECHO_N!$ECHO_N$ac_delim
12198     ECHO_T!$ECHO_T$ac_delim
12199     LIBS!$LIBS$ac_delim
12200     build_alias!$build_alias$ac_delim
12201     host_alias!$host_alias$ac_delim
12202     target_alias!$target_alias$ac_delim
12203     build!$build$ac_delim
12204     build_cpu!$build_cpu$ac_delim
12205     build_vendor!$build_vendor$ac_delim
12206     build_os!$build_os$ac_delim
12207     host!$host$ac_delim
12208     host_cpu!$host_cpu$ac_delim
12209     host_vendor!$host_vendor$ac_delim
12210     host_os!$host_os$ac_delim
12211     target!$target$ac_delim
12212     target_cpu!$target_cpu$ac_delim
12213     target_vendor!$target_vendor$ac_delim
12214     target_os!$target_os$ac_delim
12215     INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12216     INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12217     INSTALL_DATA!$INSTALL_DATA$ac_delim
12218     CYGPATH_W!$CYGPATH_W$ac_delim
12219     PACKAGE!$PACKAGE$ac_delim
12220     VERSION!$VERSION$ac_delim
12221     ACLOCAL!$ACLOCAL$ac_delim
12222     AUTOCONF!$AUTOCONF$ac_delim
12223     AUTOMAKE!$AUTOMAKE$ac_delim
12224     AUTOHEADER!$AUTOHEADER$ac_delim
12225     MAKEINFO!$MAKEINFO$ac_delim
12226     AMTAR!$AMTAR$ac_delim
12227     install_sh!$install_sh$ac_delim
12228     STRIP!$STRIP$ac_delim
12229     INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
12230     AWK!$AWK$ac_delim
12231     SET_MAKE!$SET_MAKE$ac_delim
12232     am__leading_dot!$am__leading_dot$ac_delim
12233     MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
12234     MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
12235     MAINT!$MAINT$ac_delim
12236     MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
12237     MSGFMT!$MSGFMT$ac_delim
12238     GMSGFMT!$GMSGFMT$ac_delim
12239     XGETTEXT!$XGETTEXT$ac_delim
12240     MSGMERGE!$MSGMERGE$ac_delim
12241     CC!$CC$ac_delim
12242     CFLAGS!$CFLAGS$ac_delim
12243     LDFLAGS!$LDFLAGS$ac_delim
12244     CPPFLAGS!$CPPFLAGS$ac_delim
12245     ac_ct_CC!$ac_ct_CC$ac_delim
12246     EXEEXT!$EXEEXT$ac_delim
12247     OBJEXT!$OBJEXT$ac_delim
12248     DEPDIR!$DEPDIR$ac_delim
12249     am__include!$am__include$ac_delim
12250     am__quote!$am__quote$ac_delim
12251     AMDEP_TRUE!$AMDEP_TRUE$ac_delim
12252     AMDEP_FALSE!$AMDEP_FALSE$ac_delim
12253     AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
12254     CCDEPMODE!$CCDEPMODE$ac_delim
12255     am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
12256     am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
12257     USE_NLS!$USE_NLS$ac_delim
12258     LIBICONV!$LIBICONV$ac_delim
12259     LTLIBICONV!$LTLIBICONV$ac_delim
12260     INTLLIBS!$INTLLIBS$ac_delim
12261     LIBINTL!$LIBINTL$ac_delim
12262     LTLIBINTL!$LTLIBINTL$ac_delim
12263     _ACEOF
12264    
12265     if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12266     break
12267     elif $ac_last_try; then
12268     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12269     echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12270     { (exit 1); exit 1; }; }
12271     else
12272     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12273     fi
12274     done
12275    
12276     ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12277     if test -n "$ac_eof"; then
12278     ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12279     ac_eof=`expr $ac_eof + 1`
12280     fi
12281    
12282 pcg 1.1 cat >>$CONFIG_STATUS <<_ACEOF
12283 pcg 1.33 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12284     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12285     _ACEOF
12286     sed '
12287     s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12288     s/^/s,@/; s/!/@,|#_!!_#|/
12289     :n
12290     t n
12291     s/'"$ac_delim"'$/,g/; t
12292     s/$/\\/; p
12293     N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12294     ' >>$CONFIG_STATUS <conf$$subs.sed
12295     rm -f conf$$subs.sed
12296     cat >>$CONFIG_STATUS <<_ACEOF
12297     CEOF$ac_eof
12298     _ACEOF
12299    
12300 pcg 1.1
12301 pcg 1.33 ac_delim='%!_!# '
12302     for ac_last_try in false false false false false :; do
12303     cat >conf$$subs.sed <<_ACEOF
12304     POSUB!$POSUB$ac_delim
12305     CPP!$CPP$ac_delim
12306     CXX!$CXX$ac_delim
12307     CXXFLAGS!$CXXFLAGS$ac_delim
12308     ac_ct_CXX!$ac_ct_CXX$ac_delim
12309     CXXDEPMODE!$CXXDEPMODE$ac_delim
12310     am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
12311     am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
12312     GREP!$GREP$ac_delim
12313     EGREP!$EGREP$ac_delim
12314     LN_S!$LN_S$ac_delim
12315     RANLIB!$RANLIB$ac_delim
12316     IFTYPE!$IFTYPE$ac_delim
12317     IFSUBTYPE!$IFSUBTYPE$ac_delim
12318     CXXCPP!$CXXCPP$ac_delim
12319     ALLOCA!$ALLOCA$ac_delim
12320     LINUX_IF_TUN_H!$LINUX_IF_TUN_H$ac_delim
12321     HAVE_TUNTAP!$HAVE_TUNTAP$ac_delim
12322     LDFLAGS_DAEMON!$LDFLAGS_DAEMON$ac_delim
12323     ROHC_TRUE!$ROHC_TRUE$ac_delim
12324     ROHC_FALSE!$ROHC_FALSE$ac_delim
12325     INCLUDES!$INCLUDES$ac_delim
12326     LIBOBJS!$LIBOBJS$ac_delim
12327     LTLIBOBJS!$LTLIBOBJS$ac_delim
12328     _ACEOF
12329 pcg 1.1
12330 pcg 1.33 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
12331     break
12332     elif $ac_last_try; then
12333     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12334     echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12335     { (exit 1); exit 1; }; }
12336     else
12337     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12338 pcg 1.1 fi
12339 pcg 1.33 done
12340    
12341     ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12342     if test -n "$ac_eof"; then
12343     ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12344     ac_eof=`expr $ac_eof + 1`
12345     fi
12346 pcg 1.1
12347 pcg 1.33 cat >>$CONFIG_STATUS <<_ACEOF
12348     cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12349     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12350     _ACEOF
12351     sed '
12352     s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12353     s/^/s,@/; s/!/@,|#_!!_#|/
12354     :n
12355     t n
12356     s/'"$ac_delim"'$/,g/; t
12357     s/$/\\/; p
12358     N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12359     ' >>$CONFIG_STATUS <conf$$subs.sed
12360     rm -f conf$$subs.sed
12361     cat >>$CONFIG_STATUS <<_ACEOF
12362     :end
12363     s/|#_!!_#|//g
12364     CEOF$ac_eof
12365 pcg 1.1 _ACEOF
12366 pcg 1.33
12367    
12368     # VPATH may cause trouble with some makes, so we remove $(srcdir),
12369     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12370     # trailing colons and then remove the whole line if VPATH becomes empty
12371     # (actually we leave an empty line to preserve line numbers).
12372     if test "x$srcdir" = x.; then
12373     ac_vpsub='/^[ ]*VPATH[ ]*=/{
12374     s/:*\$(srcdir):*/:/
12375     s/:*\${srcdir}:*/:/
12376     s/:*@srcdir@:*/:/
12377     s/^\([^=]*=[ ]*\):*/\1/
12378     s/:*$//
12379     s/^[^=]*=[ ]*$//
12380     }'
12381     fi
12382    
12383 pcg 1.1 cat >>$CONFIG_STATUS <<\_ACEOF
12384 pcg 1.33 fi # test -n "$CONFIG_FILES"
12385    
12386    
12387     for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
12388     do
12389     case $ac_tag in
12390     :[FHLC]) ac_mode=$ac_tag; continue;;
12391     esac
12392     case $ac_mode$ac_tag in
12393     :[FHL]*:*);;
12394     :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12395     echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12396     { (exit 1); exit 1; }; };;
12397     :[FH]-) ac_tag=-:-;;
12398     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12399     esac
12400     ac_save_IFS=$IFS
12401     IFS=:
12402     set x $ac_tag
12403     IFS=$ac_save_IFS
12404     shift
12405     ac_file=$1
12406     shift
12407    
12408     case $ac_mode in
12409     :L) ac_source=$1;;
12410     :[FH])
12411     ac_file_inputs=
12412     for ac_f
12413     do
12414     case $ac_f in
12415     -) ac_f="$tmp/stdin";;
12416     *) # Look for the file first in the build tree, then in the source tree
12417     # (if the path is not absolute). The absolute path cannot be DOS-style,
12418     # because $ac_f cannot contain `:'.
12419     test -f "$ac_f" ||
12420     case $ac_f in
12421     [\\/$]*) false;;
12422     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12423     esac ||
12424     { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12425     echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12426     { (exit 1); exit 1; }; };;
12427     esac
12428     ac_file_inputs="$ac_file_inputs $ac_f"
12429     done
12430    
12431     # Let's still pretend it is `configure' which instantiates (i.e., don't
12432     # use $as_me), people would be surprised to read:
12433     # /* config.h. Generated by config.status. */
12434     configure_input="Generated from "`IFS=:
12435     echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12436     if test x"$ac_file" != x-; then
12437     configure_input="$ac_file. $configure_input"
12438     { echo "$as_me:$LINENO: creating $ac_file" >&5
12439     echo "$as_me: creating $ac_file" >&6;}
12440     fi
12441    
12442     case $ac_tag in
12443     *:-:* | *:-) cat >"$tmp/stdin";;
12444     esac
12445     ;;
12446 pcg 1.1 esac
12447    
12448 pcg 1.33 ac_dir=`$as_dirname -- "$ac_file" ||
12449 pcg 1.1 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12450 pcg 1.11 X"$ac_file" : 'X\(//\)[^/]' \| \
12451     X"$ac_file" : 'X\(//\)$' \| \
12452 pcg 1.33 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12453 pcg 1.1 echo X"$ac_file" |
12454 pcg 1.33 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12455     s//\1/
12456     q
12457     }
12458     /^X\(\/\/\)[^/].*/{
12459     s//\1/
12460     q
12461     }
12462     /^X\(\/\/\)$/{
12463     s//\1/
12464     q
12465     }
12466     /^X\(\/\).*/{
12467     s//\1/
12468     q
12469     }
12470     s/.*/./; q'`
12471     { as_dir="$ac_dir"
12472     case $as_dir in #(
12473     -*) as_dir=./$as_dir;;
12474     esac
12475     test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12476 pcg 1.1 as_dirs=
12477 pcg 1.33 while :; do
12478     case $as_dir in #(
12479     *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12480     *) as_qdir=$as_dir;;
12481     esac
12482     as_dirs="'$as_qdir' $as_dirs"
12483     as_dir=`$as_dirname -- "$as_dir" ||
12484 pcg 1.1 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12485 pcg 1.11 X"$as_dir" : 'X\(//\)[^/]' \| \
12486     X"$as_dir" : 'X\(//\)$' \| \
12487 pcg 1.33 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12488 pcg 1.1 echo X"$as_dir" |
12489 pcg 1.33 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12490     s//\1/
12491     q
12492     }
12493     /^X\(\/\/\)[^/].*/{
12494     s//\1/
12495     q
12496     }
12497     /^X\(\/\/\)$/{
12498     s//\1/
12499     q
12500     }
12501     /^X\(\/\).*/{
12502     s//\1/
12503     q
12504     }
12505     s/.*/./; q'`
12506     test -d "$as_dir" && break
12507 pcg 1.1 done
12508 pcg 1.33 test -z "$as_dirs" || eval "mkdir $as_dirs"
12509     } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12510     echo "$as_me: error: cannot create directory $as_dir" >&2;}
12511 pcg 1.1 { (exit 1); exit 1; }; }; }
12512     ac_builddir=.
12513    
12514 pcg 1.33 case "$ac_dir" in
12515     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12516     *)
12517 pcg 1.1 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12518 pcg 1.33 # A ".." for each directory in $ac_dir_suffix.
12519     ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12520     case $ac_top_builddir_sub in
12521     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12522     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12523     esac ;;
12524     esac
12525     ac_abs_top_builddir=$ac_pwd
12526     ac_abs_builddir=$ac_pwd$ac_dir_suffix
12527     # for backward compatibility:
12528     ac_top_builddir=$ac_top_build_prefix
12529 pcg 1.1
12530     case $srcdir in
12531 pcg 1.33 .) # We are building in place.
12532 pcg 1.1 ac_srcdir=.
12533 pcg 1.33 ac_top_srcdir=$ac_top_builddir_sub
12534     ac_abs_top_srcdir=$ac_pwd ;;
12535     [\\/]* | ?:[\\/]* ) # Absolute name.
12536 pcg 1.1 ac_srcdir=$srcdir$ac_dir_suffix;
12537 pcg 1.33 ac_top_srcdir=$srcdir
12538     ac_abs_top_srcdir=$srcdir ;;
12539     *) # Relative name.
12540     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12541     ac_top_srcdir=$ac_top_build_prefix$srcdir
12542     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12543 pcg 1.1 esac
12544 pcg 1.33 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12545 pcg 1.11
12546 pcg 1.1
12547 pcg 1.33 case $ac_mode in
12548     :F)
12549     #
12550     # CONFIG_FILE
12551     #
12552 pcg 1.1
12553     case $INSTALL in
12554     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12555 pcg 1.33 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12556 pcg 1.1 esac
12557 pcg 1.33 _ACEOF
12558 pcg 1.1
12559 pcg 1.33 cat >>$CONFIG_STATUS <<\_ACEOF
12560     # If the template does not know about datarootdir, expand it.
12561     # FIXME: This hack should be removed a few years after 2.60.
12562     ac_datarootdir_hack=; ac_datarootdir_seen=
12563    
12564     case `sed -n '/datarootdir/ {
12565     p
12566     q
12567     }
12568     /@datadir@/p
12569     /@docdir@/p
12570     /@infodir@/p
12571     /@localedir@/p
12572     /@mandir@/p
12573     ' $ac_file_inputs` in
12574     *datarootdir*) ac_datarootdir_seen=yes;;
12575     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12576     { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12577     echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12578     _ACEOF
12579     cat >>$CONFIG_STATUS <<_ACEOF
12580     ac_datarootdir_hack='
12581     s&@datadir@&$datadir&g
12582     s&@docdir@&$docdir&g
12583     s&@infodir@&$infodir&g
12584     s&@localedir@&$localedir&g
12585     s&@mandir@&$mandir&g
12586     s&\\\${datarootdir}&$datarootdir&g' ;;
12587     esac
12588     _ACEOF
12589 pcg 1.1
12590 pcg 1.33 # Neutralize VPATH when `$srcdir' = `.'.
12591     # Shell code in configure.ac might set extrasub.
12592     # FIXME: do we really want to maintain this feature?
12593 pcg 1.1 cat >>$CONFIG_STATUS <<_ACEOF
12594     sed "$ac_vpsub
12595     $extrasub
12596     _ACEOF
12597     cat >>$CONFIG_STATUS <<\_ACEOF
12598     :t
12599     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12600 pcg 1.33 s&@configure_input@&$configure_input&;t t
12601     s&@top_builddir@&$ac_top_builddir_sub&;t t
12602     s&@srcdir@&$ac_srcdir&;t t
12603     s&@abs_srcdir@&$ac_abs_srcdir&;t t
12604     s&@top_srcdir@&$ac_top_srcdir&;t t
12605     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12606     s&@builddir@&$ac_builddir&;t t
12607     s&@abs_builddir@&$ac_abs_builddir&;t t
12608     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12609     s&@INSTALL@&$ac_INSTALL&;t t
12610     $ac_datarootdir_hack
12611     " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12612    
12613     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12614     { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12615     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12616     { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12617     which seems to be undefined. Please make sure it is defined." >&5
12618     echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12619     which seems to be undefined. Please make sure it is defined." >&2;}
12620 pcg 1.1
12621 pcg 1.33 rm -f "$tmp/stdin"
12622 pcg 1.1 case $ac_file in
12623 pcg 1.33 -) cat "$tmp/out"; rm -f "$tmp/out";;
12624     *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12625 pcg 1.1 esac
12626 pcg 1.33 ;;
12627     :H)
12628     #
12629     # CONFIG_HEADER
12630     #
12631     _ACEOF
12632    
12633     # Transform confdefs.h into a sed script `conftest.defines', that
12634     # substitutes the proper values into config.h.in to produce config.h.
12635     rm -f conftest.defines conftest.tail
12636     # First, append a space to every undef/define line, to ease matching.
12637     echo 's/$/ /' >conftest.defines
12638     # Then, protect against being on the right side of a sed subst, or in
12639     # an unquoted here document, in config.status. If some macros were
12640     # called several times there might be several #defines for the same
12641     # symbol, which is useless. But do not sort them, since the last
12642     # AC_DEFINE must be honored.
12643     ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12644     # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12645     # NAME is the cpp macro being defined, VALUE is the value it is being given.
12646     # PARAMS is the parameter list in the macro definition--in most cases, it's
12647     # just an empty string.
12648     ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12649     ac_dB='\\)[ (].*,\\1define\\2'
12650     ac_dC=' '
12651     ac_dD=' ,'
12652 pcg 1.1
12653 pcg 1.33 uniq confdefs.h |
12654     sed -n '
12655     t rset
12656     :rset
12657     s/^[ ]*#[ ]*define[ ][ ]*//
12658     t ok
12659     d
12660     :ok
12661     s/[\\&,]/\\&/g
12662     s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12663     s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12664     ' >>conftest.defines
12665 pcg 1.1
12666 pcg 1.33 # Remove the space that was appended to ease matching.
12667     # Then replace #undef with comments. This is necessary, for
12668 pcg 1.1 # example, in the case of _POSIX_SOURCE, which is predefined and required
12669     # on some systems where configure will not decide to define it.
12670 pcg 1.33 # (The regexp can be short, since the line contains either #define or #undef.)
12671     echo 's/ $//
12672     s,^[ #]*u.*,/* & */,' >>conftest.defines
12673    
12674     # Break up conftest.defines:
12675     ac_max_sed_lines=50
12676    
12677     # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12678     # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12679     # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12680     # et cetera.
12681     ac_in='$ac_file_inputs'
12682     ac_out='"$tmp/out1"'
12683     ac_nxt='"$tmp/out2"'
12684    
12685     while :
12686     do
12687     # Write a here document:
12688     cat >>$CONFIG_STATUS <<_ACEOF
12689     # First, check the format of the line:
12690     cat >"\$tmp/defines.sed" <<\\CEOF
12691     /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12692     /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12693     b
12694     :def
12695 pcg 1.1 _ACEOF
12696 pcg 1.33 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12697 pcg 1.1 echo 'CEOF
12698 pcg 1.33 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12699     ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12700     sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12701     grep . conftest.tail >/dev/null || break
12702 pcg 1.1 rm -f conftest.defines
12703     mv conftest.tail conftest.defines
12704     done
12705 pcg 1.33 rm -f conftest.defines conftest.tail
12706 pcg 1.1
12707 pcg 1.33 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12708 pcg 1.1 cat >>$CONFIG_STATUS <<\_ACEOF
12709     if test x"$ac_file" != x-; then
12710 pcg 1.33 echo "/* $configure_input */" >"$tmp/config.h"
12711     cat "$ac_result" >>"$tmp/config.h"
12712     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12713 pcg 1.1 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12714     echo "$as_me: $ac_file is unchanged" >&6;}
12715     else
12716     rm -f $ac_file
12717 pcg 1.33 mv "$tmp/config.h" $ac_file
12718 pcg 1.1 fi
12719     else
12720 pcg 1.33 echo "/* $configure_input */"
12721     cat "$ac_result"
12722 pcg 1.1 fi
12723 pcg 1.33 rm -f "$tmp/out12"
12724 pcg 1.1 # Compute $ac_file's index in $config_headers.
12725     _am_stamp_count=1
12726     for _am_header in $config_headers :; do
12727     case $_am_header in
12728     $ac_file | $ac_file:* )
12729     break ;;
12730     * )
12731     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12732     esac
12733     done
12734 pcg 1.33 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
12735 pcg 1.1 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12736 pcg 1.11 X$ac_file : 'X\(//\)[^/]' \| \
12737     X$ac_file : 'X\(//\)$' \| \
12738 pcg 1.33 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
12739 pcg 1.1 echo X$ac_file |
12740 pcg 1.33 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12741     s//\1/
12742     q
12743     }
12744     /^X\(\/\/\)[^/].*/{
12745     s//\1/
12746     q
12747     }
12748     /^X\(\/\/\)$/{
12749     s//\1/
12750     q
12751     }
12752     /^X\(\/\).*/{
12753     s//\1/
12754     q
12755     }
12756     s/.*/./; q'`/stamp-h$_am_stamp_count
12757     ;;
12758 pcg 1.1
12759 pcg 1.33 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12760     echo "$as_me: executing $ac_file commands" >&6;}
12761     ;;
12762     esac
12763 pcg 1.1
12764    
12765 pcg 1.33 case $ac_file$ac_mode in
12766     "default-1":C)
12767 pcg 1.1 for ac_file in $CONFIG_FILES; do
12768     # Support "outfile[:infile[:infile...]]"
12769     case "$ac_file" in
12770     *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12771     esac
12772     # PO directories have a Makefile.in generated from Makefile.in.in.
12773     case "$ac_file" in */Makefile.in)
12774     # Adjust a relative srcdir.
12775     ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12776     ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12777     ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12778     # In autoconf-2.13 it is called $ac_given_srcdir.
12779     # In autoconf-2.50 it is called $srcdir.
12780     test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12781     case "$ac_given_srcdir" in
12782     .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12783     /*) top_srcdir="$ac_given_srcdir" ;;
12784     *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12785     esac
12786     if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12787     rm -f "$ac_dir/POTFILES"
12788     test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12789     cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12790     # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
12791     # on $ac_dir but don't depend on user-specified configuration
12792     # parameters.
12793     if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12794     # The LINGUAS file contains the set of available languages.
12795     if test -n "$ALL_LINGUAS"; then
12796     test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12797     fi
12798     ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12799     # Hide the ALL_LINGUAS assigment from automake.
12800     eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12801     fi
12802     case "$ac_given_srcdir" in
12803     .) srcdirpre= ;;
12804     *) srcdirpre='$(srcdir)/' ;;
12805     esac
12806     POFILES=
12807     GMOFILES=
12808     UPDATEPOFILES=
12809     DUMMYPOFILES=
12810     for lang in $ALL_LINGUAS; do
12811     POFILES="$POFILES $srcdirpre$lang.po"
12812     GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12813     UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12814     DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12815     done
12816     # CATALOGS depends on both $ac_dir and the user's LINGUAS
12817     # environment variable.
12818     INST_LINGUAS=
12819     if test -n "$ALL_LINGUAS"; then
12820     for presentlang in $ALL_LINGUAS; do
12821     useit=no
12822     if test "%UNSET%" != "$LINGUAS"; then
12823     desiredlanguages="$LINGUAS"
12824     else
12825     desiredlanguages="$ALL_LINGUAS"
12826     fi
12827     for desiredlang in $desiredlanguages; do
12828     # Use the presentlang catalog if desiredlang is
12829     # a. equal to presentlang, or
12830     # b. a variant of presentlang (because in this case,
12831     # presentlang can be used as a fallback for messages
12832     # which are not translated in the desiredlang catalog).
12833     case "$desiredlang" in
12834     "$presentlang"*) useit=yes;;
12835     esac
12836     done
12837     if test $useit = yes; then
12838     INST_LINGUAS="$INST_LINGUAS $presentlang"
12839     fi
12840     done
12841     fi
12842     CATALOGS=
12843     if test -n "$INST_LINGUAS"; then
12844     for lang in $INST_LINGUAS; do
12845     CATALOGS="$CATALOGS $lang.gmo"
12846     done
12847     fi
12848     test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12849     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"
12850     for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12851     if test -f "$f"; then
12852     case "$f" in
12853     *.orig | *.bak | *~) ;;
12854     *) cat "$f" >> "$ac_dir/Makefile" ;;
12855     esac
12856     fi
12857     done
12858     fi
12859     ;;
12860     esac
12861     done ;;
12862 pcg 1.33 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12863 pcg 1.1 # Strip MF so we end up with the name of the file.
12864     mf=`echo "$mf" | sed -e 's/:.*$//'`
12865     # Check whether this is an Automake generated Makefile or not.
12866     # We used to match only the files named `Makefile.in', but
12867     # some people rename them; so instead we look at the file content.
12868     # Grep'ing the first line is not enough: some people post-process
12869     # each Makefile.in and add a new line on top of each file to say so.
12870     # So let's grep whole file.
12871     if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12872 pcg 1.33 dirpart=`$as_dirname -- "$mf" ||
12873 pcg 1.1 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12874 pcg 1.11 X"$mf" : 'X\(//\)[^/]' \| \
12875     X"$mf" : 'X\(//\)$' \| \
12876 pcg 1.33 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12877 pcg 1.1 echo X"$mf" |
12878 pcg 1.33 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12879     s//\1/
12880     q
12881     }
12882     /^X\(\/\/\)[^/].*/{
12883     s//\1/
12884     q
12885     }
12886     /^X\(\/\/\)$/{
12887     s//\1/
12888     q
12889     }
12890     /^X\(\/\).*/{
12891     s//\1/
12892     q
12893     }
12894     s/.*/./; q'`
12895 pcg 1.1 else
12896     continue
12897     fi
12898 pcg 1.33 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12899     # Extract the definition of DEP_FILES from the Makefile without
12900     # running `make'.
12901     DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12902 pcg 1.1 test -z "$DEPDIR" && continue
12903     # When using ansi2knr, U may be empty or an underscore; expand it
12904 pcg 1.33 U=`sed -n -e '/^U = / s///p' < "$mf"`
12905     test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12906     # We invoke sed twice because it is the simplest approach to
12907     # changing $(DEPDIR) to its actual value in the expansion.
12908     for file in `sed -n -e '
12909     /^DEP_FILES = .*\\\\$/ {
12910     s/^DEP_FILES = //
12911     :loop
12912     s/\\\\$//
12913     p
12914     n
12915     /\\\\$/ b loop
12916     p
12917     }
12918     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12919 pcg 1.1 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12920     # Make sure the directory exists.
12921     test -f "$dirpart/$file" && continue
12922 pcg 1.33 fdir=`$as_dirname -- "$file" ||
12923 pcg 1.1 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12924 pcg 1.11 X"$file" : 'X\(//\)[^/]' \| \
12925     X"$file" : 'X\(//\)$' \| \
12926 pcg 1.33 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12927 pcg 1.1 echo X"$file" |
12928 pcg 1.33 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12929     s//\1/
12930     q
12931     }
12932     /^X\(\/\/\)[^/].*/{
12933     s//\1/
12934     q
12935     }
12936     /^X\(\/\/\)$/{
12937     s//\1/
12938     q
12939     }
12940     /^X\(\/\).*/{
12941     s//\1/
12942     q
12943     }
12944     s/.*/./; q'`
12945     { as_dir=$dirpart/$fdir
12946     case $as_dir in #(
12947     -*) as_dir=./$as_dir;;
12948     esac
12949     test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12950 pcg 1.1 as_dirs=
12951 pcg 1.33 while :; do
12952     case $as_dir in #(
12953     *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12954     *) as_qdir=$as_dir;;
12955     esac
12956     as_dirs="'$as_qdir' $as_dirs"
12957     as_dir=`$as_dirname -- "$as_dir" ||
12958 pcg 1.1 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12959 pcg 1.11 X"$as_dir" : 'X\(//\)[^/]' \| \
12960     X"$as_dir" : 'X\(//\)$' \| \
12961 pcg 1.33 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12962 pcg 1.1 echo X"$as_dir" |
12963 pcg 1.33 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12964     s//\1/
12965     q
12966     }
12967     /^X\(\/\/\)[^/].*/{
12968     s//\1/
12969     q
12970     }
12971     /^X\(\/\/\)$/{
12972     s//\1/
12973     q
12974     }
12975     /^X\(\/\).*/{
12976     s//\1/
12977     q
12978     }
12979     s/.*/./; q'`
12980     test -d "$as_dir" && break
12981 pcg 1.1 done
12982 pcg 1.33 test -z "$as_dirs" || eval "mkdir $as_dirs"
12983     } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12984     echo "$as_me: error: cannot create directory $as_dir" >&2;}
12985 pcg 1.1 { (exit 1); exit 1; }; }; }
12986     # echo "creating $dirpart/$file"
12987     echo '# dummy' > "$dirpart/$file"
12988     done
12989     done
12990     ;;
12991 pcg 1.33
12992 pcg 1.1 esac
12993 pcg 1.33 done # for ac_tag
12994 pcg 1.1
12995    
12996     { (exit 0); exit 0; }
12997     _ACEOF
12998     chmod +x $CONFIG_STATUS
12999     ac_clean_files=$ac_clean_files_save
13000    
13001    
13002 pcg 1.30 # configure is writing to config.log, and then calls config.status.
13003     # config.status does its own redirection, appending to config.log.
13004     # Unfortunately, on DOS this fails, as config.log is still kept open
13005     # by configure, so config.status won't be able to write to it; its
13006     # output is simply discarded. So we exec the FD to /dev/null,
13007     # effectively closing config.log, so it can be properly (re)opened and
13008     # appended to by config.status. When coming back to configure, we
13009     # need to make the FD available again.
13010     if test "$no_create" != yes; then
13011     ac_cs_success=:
13012     ac_config_status_args=
13013     test "$silent" = yes &&
13014     ac_config_status_args="$ac_config_status_args --quiet"
13015     exec 5>/dev/null
13016     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13017     exec 5>>config.log
13018     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13019     # would make configure fail if this is the last instruction.
13020     $ac_cs_success || { (exit 1); exit 1; }
13021     fi
13022    
13023 pcg 1.1
13024     echo
13025     echo "***"
13026     echo "*** Configuration Summary"
13027     echo "***"
13028     echo "*** Kernel Iface: $IFTYPE/$IFSUBTYPE"
13029     echo "*** Cipher used: $CIPHER"
13030     echo "*** Digest used: $DIGEST"
13031     echo "*** HMAC length: $HMAC"
13032     echo "*** RAND used: $RAND"
13033     echo "*** Max. MTU: $MTU"
13034 pcg 1.30
13035     echo "***"
13036     echo "*** Enable options:"
13037     grep ENABLE_ config.h | sed -e 's/^/*** /'
13038 pcg 1.15
13039     if test "x$DIGEST" = xmd4; then
13040 pcg 1.1 echo "***"
13041 pcg 1.15 echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure"
13042     fi
13043 pcg 1.1
13044 pcg 1.15 if test "$HMAC" -lt 12; then
13045     echo "***"
13046 pcg 1.17 echo "*** WARNING: The hmac length you have chosen ($HMAC) is probably insecure"
13047 pcg 1.15 fi
13048    
13049     if test "$RAND" -lt 8; then
13050 pcg 1.1 echo "***"
13051 pcg 1.17 echo "*** WARNING: The random prefix you have chosen ($RAND) is probably insecure"
13052 pcg 1.1 fi
13053 pcg 1.15
13054     echo "***"
13055 pcg 1.1 echo
13056    
13057