Codebase list squidview / debian/0.70-1
Imported Debian patch 0.70-1 Willi Mann 11 years ago
12 changed file(s) with 5951 addition(s) and 1128 deletion(s). Raw diff Collapse all Expand all
00 >> Squidview history:
1
2 v0.70: 14 March 2006:
3 - applied patch from Debian people to permit compilation in gcc 4.1.
14
25 v0.69: 24 October 2004:
36 - removed an emun for clean compiles on gcc 3.4 - the same patch made by a
5656 NORMAL_UNINSTALL = :
5757 PRE_UNINSTALL = :
5858 POST_UNINSTALL = :
59 host_alias = @host_alias@
60 host_triplet = @host@
61 CC = @CC@
5962 CXX = @CXX@
63 HAVE_LIB = @HAVE_LIB@
64 LIB = @LIB@
65 LTLIB = @LTLIB@
6066 MAKEINFO = @MAKEINFO@
6167 PACKAGE = @PACKAGE@
6268 VERSION = @VERSION@
96102 DATA = $(pkgdata_DATA)
97103
98104 DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
99 Makefile.am Makefile.in NEWS acconfig.h aclocal.m4 config.h.in \
100 configure configure.in install-sh missing mkinstalldirs
105 Makefile.am Makefile.in NEWS aclocal.m4 config.guess config.h.in \
106 config.sub configure configure.in install-sh missing mkinstalldirs
101107
102108
103109 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
140146 rm -f $(srcdir)/stamp-h.in; \
141147 $(MAKE) $(srcdir)/stamp-h.in; \
142148 else :; fi
143 $(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
149 $(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
144150 cd $(top_srcdir) && $(AUTOHEADER)
145151 @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
146152
+0
-7
acconfig.h less more
0 /* Name of package. */
1 #undef PACKAGE
2
3 /* Version of package. */
4 #undef VERSION
5
6 #undef SHAREDIR
88 dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
99 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1010 dnl PARTICULAR PURPOSE.
11
12 # lib-prefix.m4 serial 4 (gettext-0.14.2)
13 dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
14 dnl This file is free software; the Free Software Foundation
15 dnl gives unlimited permission to copy and/or distribute it,
16 dnl with or without modifications, as long as this notice is preserved.
17
18 dnl From Bruno Haible.
19
20 dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
21 dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
22 dnl require excessive bracketing.
23 ifdef([AC_HELP_STRING],
24 [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
25 [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
26
27 dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
28 dnl to access previously installed libraries. The basic assumption is that
29 dnl a user will want packages to use other packages he previously installed
30 dnl with the same --prefix option.
31 dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
32 dnl libraries, but is otherwise very convenient.
33 AC_DEFUN([AC_LIB_PREFIX],
34 [
35 AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
36 AC_REQUIRE([AC_PROG_CC])
37 AC_REQUIRE([AC_CANONICAL_HOST])
38 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
39 dnl By default, look in $includedir and $libdir.
40 use_additional=yes
41 AC_LIB_WITH_FINAL_PREFIX([
42 eval additional_includedir=\"$includedir\"
43 eval additional_libdir=\"$libdir\"
44 ])
45 AC_LIB_ARG_WITH([lib-prefix],
46 [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
47 --without-lib-prefix don't search for libraries in includedir and libdir],
48 [
49 if test "X$withval" = "Xno"; then
50 use_additional=no
51 else
52 if test "X$withval" = "X"; then
53 AC_LIB_WITH_FINAL_PREFIX([
54 eval additional_includedir=\"$includedir\"
55 eval additional_libdir=\"$libdir\"
56 ])
57 else
58 additional_includedir="$withval/include"
59 additional_libdir="$withval/lib"
60 fi
61 fi
62 ])
63 if test $use_additional = yes; then
64 dnl Potentially add $additional_includedir to $CPPFLAGS.
65 dnl But don't add it
66 dnl 1. if it's the standard /usr/include,
67 dnl 2. if it's already present in $CPPFLAGS,
68 dnl 3. if it's /usr/local/include and we are using GCC on Linux,
69 dnl 4. if it doesn't exist as a directory.
70 if test "X$additional_includedir" != "X/usr/include"; then
71 haveit=
72 for x in $CPPFLAGS; do
73 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
74 if test "X$x" = "X-I$additional_includedir"; then
75 haveit=yes
76 break
77 fi
78 done
79 if test -z "$haveit"; then
80 if test "X$additional_includedir" = "X/usr/local/include"; then
81 if test -n "$GCC"; then
82 case $host_os in
83 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
84 esac
85 fi
86 fi
87 if test -z "$haveit"; then
88 if test -d "$additional_includedir"; then
89 dnl Really add $additional_includedir to $CPPFLAGS.
90 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
91 fi
92 fi
93 fi
94 fi
95 dnl Potentially add $additional_libdir to $LDFLAGS.
96 dnl But don't add it
97 dnl 1. if it's the standard /usr/lib,
98 dnl 2. if it's already present in $LDFLAGS,
99 dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
100 dnl 4. if it doesn't exist as a directory.
101 if test "X$additional_libdir" != "X/usr/lib"; then
102 haveit=
103 for x in $LDFLAGS; do
104 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
105 if test "X$x" = "X-L$additional_libdir"; then
106 haveit=yes
107 break
108 fi
109 done
110 if test -z "$haveit"; then
111 if test "X$additional_libdir" = "X/usr/local/lib"; then
112 if test -n "$GCC"; then
113 case $host_os in
114 linux*) haveit=yes;;
115 esac
116 fi
117 fi
118 if test -z "$haveit"; then
119 if test -d "$additional_libdir"; then
120 dnl Really add $additional_libdir to $LDFLAGS.
121 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
122 fi
123 fi
124 fi
125 fi
126 fi
127 ])
128
129 dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
130 dnl acl_final_exec_prefix, containing the values to which $prefix and
131 dnl $exec_prefix will expand at the end of the configure script.
132 AC_DEFUN([AC_LIB_PREPARE_PREFIX],
133 [
134 dnl Unfortunately, prefix and exec_prefix get only finally determined
135 dnl at the end of configure.
136 if test "X$prefix" = "XNONE"; then
137 acl_final_prefix="$ac_default_prefix"
138 else
139 acl_final_prefix="$prefix"
140 fi
141 if test "X$exec_prefix" = "XNONE"; then
142 acl_final_exec_prefix='${prefix}'
143 else
144 acl_final_exec_prefix="$exec_prefix"
145 fi
146 acl_save_prefix="$prefix"
147 prefix="$acl_final_prefix"
148 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
149 prefix="$acl_save_prefix"
150 ])
151
152 dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
153 dnl variables prefix and exec_prefix bound to the values they will have
154 dnl at the end of the configure script.
155 AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
156 [
157 acl_save_prefix="$prefix"
158 prefix="$acl_final_prefix"
159 acl_save_exec_prefix="$exec_prefix"
160 exec_prefix="$acl_final_exec_prefix"
161 $1
162 exec_prefix="$acl_save_exec_prefix"
163 prefix="$acl_save_prefix"
164 ])
165
166 # lib-link.m4 serial 6 (gettext-0.14.3)
167 dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
168 dnl This file is free software; the Free Software Foundation
169 dnl gives unlimited permission to copy and/or distribute it,
170 dnl with or without modifications, as long as this notice is preserved.
171
172 dnl From Bruno Haible.
173
174 AC_PREREQ(2.50)
175
176 dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
177 dnl the libraries corresponding to explicit and implicit dependencies.
178 dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
179 dnl augments the CPPFLAGS variable.
180 AC_DEFUN([AC_LIB_LINKFLAGS],
181 [
182 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
183 AC_REQUIRE([AC_LIB_RPATH])
184 define([Name],[translit([$1],[./-], [___])])
185 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
186 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
187 AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
188 AC_LIB_LINKFLAGS_BODY([$1], [$2])
189 ac_cv_lib[]Name[]_libs="$LIB[]NAME"
190 ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
191 ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
192 ])
193 LIB[]NAME="$ac_cv_lib[]Name[]_libs"
194 LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
195 INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
196 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
197 AC_SUBST([LIB]NAME)
198 AC_SUBST([LTLIB]NAME)
199 dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
200 dnl results of this search when this library appears as a dependency.
201 HAVE_LIB[]NAME=yes
202 undefine([Name])
203 undefine([NAME])
204 ])
205
206 dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
207 dnl searches for libname and the libraries corresponding to explicit and
208 dnl implicit dependencies, together with the specified include files and
209 dnl the ability to compile and link the specified testcode. If found, it
210 dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
211 dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
212 dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
213 dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
214 AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
215 [
216 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
217 AC_REQUIRE([AC_LIB_RPATH])
218 define([Name],[translit([$1],[./-], [___])])
219 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
220 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
221
222 dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
223 dnl accordingly.
224 AC_LIB_LINKFLAGS_BODY([$1], [$2])
225
226 dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
227 dnl because if the user has installed lib[]Name and not disabled its use
228 dnl via --without-lib[]Name-prefix, he wants to use it.
229 ac_save_CPPFLAGS="$CPPFLAGS"
230 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
231
232 AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
233 ac_save_LIBS="$LIBS"
234 LIBS="$LIBS $LIB[]NAME"
235 AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
236 LIBS="$ac_save_LIBS"
237 ])
238 if test "$ac_cv_lib[]Name" = yes; then
239 HAVE_LIB[]NAME=yes
240 AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
241 AC_MSG_CHECKING([how to link with lib[]$1])
242 AC_MSG_RESULT([$LIB[]NAME])
243 else
244 HAVE_LIB[]NAME=no
245 dnl If $LIB[]NAME didn't lead to a usable library, we don't need
246 dnl $INC[]NAME either.
247 CPPFLAGS="$ac_save_CPPFLAGS"
248 LIB[]NAME=
249 LTLIB[]NAME=
250 fi
251 AC_SUBST([HAVE_LIB]NAME)
252 AC_SUBST([LIB]NAME)
253 AC_SUBST([LTLIB]NAME)
254 undefine([Name])
255 undefine([NAME])
256 ])
257
258 dnl Determine the platform dependent parameters needed to use rpath:
259 dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
260 dnl hardcode_direct, hardcode_minus_L.
261 AC_DEFUN([AC_LIB_RPATH],
262 [
263 dnl Tell automake >= 1.10 to complain if config.rpath is missing.
264 m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
265 AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
266 AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
267 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
268 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
269 AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
270 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
271 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
272 . ./conftest.sh
273 rm -f ./conftest.sh
274 acl_cv_rpath=done
275 ])
276 wl="$acl_cv_wl"
277 libext="$acl_cv_libext"
278 shlibext="$acl_cv_shlibext"
279 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
280 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
281 hardcode_direct="$acl_cv_hardcode_direct"
282 hardcode_minus_L="$acl_cv_hardcode_minus_L"
283 dnl Determine whether the user wants rpath handling at all.
284 AC_ARG_ENABLE(rpath,
285 [ --disable-rpath do not hardcode runtime library paths],
286 :, enable_rpath=yes)
287 ])
288
289 dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
290 dnl the libraries corresponding to explicit and implicit dependencies.
291 dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
292 AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
293 [
294 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
295 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
296 dnl By default, look in $includedir and $libdir.
297 use_additional=yes
298 AC_LIB_WITH_FINAL_PREFIX([
299 eval additional_includedir=\"$includedir\"
300 eval additional_libdir=\"$libdir\"
301 ])
302 AC_LIB_ARG_WITH([lib$1-prefix],
303 [ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
304 --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
305 [
306 if test "X$withval" = "Xno"; then
307 use_additional=no
308 else
309 if test "X$withval" = "X"; then
310 AC_LIB_WITH_FINAL_PREFIX([
311 eval additional_includedir=\"$includedir\"
312 eval additional_libdir=\"$libdir\"
313 ])
314 else
315 additional_includedir="$withval/include"
316 additional_libdir="$withval/lib"
317 fi
318 fi
319 ])
320 dnl Search the library and its dependencies in $additional_libdir and
321 dnl $LDFLAGS. Using breadth-first-seach.
322 LIB[]NAME=
323 LTLIB[]NAME=
324 INC[]NAME=
325 rpathdirs=
326 ltrpathdirs=
327 names_already_handled=
328 names_next_round='$1 $2'
329 while test -n "$names_next_round"; do
330 names_this_round="$names_next_round"
331 names_next_round=
332 for name in $names_this_round; do
333 already_handled=
334 for n in $names_already_handled; do
335 if test "$n" = "$name"; then
336 already_handled=yes
337 break
338 fi
339 done
340 if test -z "$already_handled"; then
341 names_already_handled="$names_already_handled $name"
342 dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
343 dnl or AC_LIB_HAVE_LINKFLAGS call.
344 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
345 eval value=\"\$HAVE_LIB$uppername\"
346 if test -n "$value"; then
347 if test "$value" = yes; then
348 eval value=\"\$LIB$uppername\"
349 test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
350 eval value=\"\$LTLIB$uppername\"
351 test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
352 else
353 dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
354 dnl that this library doesn't exist. So just drop it.
355 :
356 fi
357 else
358 dnl Search the library lib$name in $additional_libdir and $LDFLAGS
359 dnl and the already constructed $LIBNAME/$LTLIBNAME.
360 found_dir=
361 found_la=
362 found_so=
363 found_a=
364 if test $use_additional = yes; then
365 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
366 found_dir="$additional_libdir"
367 found_so="$additional_libdir/lib$name.$shlibext"
368 if test -f "$additional_libdir/lib$name.la"; then
369 found_la="$additional_libdir/lib$name.la"
370 fi
371 else
372 if test -f "$additional_libdir/lib$name.$libext"; then
373 found_dir="$additional_libdir"
374 found_a="$additional_libdir/lib$name.$libext"
375 if test -f "$additional_libdir/lib$name.la"; then
376 found_la="$additional_libdir/lib$name.la"
377 fi
378 fi
379 fi
380 fi
381 if test "X$found_dir" = "X"; then
382 for x in $LDFLAGS $LTLIB[]NAME; do
383 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
384 case "$x" in
385 -L*)
386 dir=`echo "X$x" | sed -e 's/^X-L//'`
387 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
388 found_dir="$dir"
389 found_so="$dir/lib$name.$shlibext"
390 if test -f "$dir/lib$name.la"; then
391 found_la="$dir/lib$name.la"
392 fi
393 else
394 if test -f "$dir/lib$name.$libext"; then
395 found_dir="$dir"
396 found_a="$dir/lib$name.$libext"
397 if test -f "$dir/lib$name.la"; then
398 found_la="$dir/lib$name.la"
399 fi
400 fi
401 fi
402 ;;
403 esac
404 if test "X$found_dir" != "X"; then
405 break
406 fi
407 done
408 fi
409 if test "X$found_dir" != "X"; then
410 dnl Found the library.
411 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
412 if test "X$found_so" != "X"; then
413 dnl Linking with a shared library. We attempt to hardcode its
414 dnl directory into the executable's runpath, unless it's the
415 dnl standard /usr/lib.
416 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
417 dnl No hardcoding is needed.
418 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
419 else
420 dnl Use an explicit option to hardcode DIR into the resulting
421 dnl binary.
422 dnl Potentially add DIR to ltrpathdirs.
423 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
424 haveit=
425 for x in $ltrpathdirs; do
426 if test "X$x" = "X$found_dir"; then
427 haveit=yes
428 break
429 fi
430 done
431 if test -z "$haveit"; then
432 ltrpathdirs="$ltrpathdirs $found_dir"
433 fi
434 dnl The hardcoding into $LIBNAME is system dependent.
435 if test "$hardcode_direct" = yes; then
436 dnl Using DIR/libNAME.so during linking hardcodes DIR into the
437 dnl resulting binary.
438 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
439 else
440 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
441 dnl Use an explicit option to hardcode DIR into the resulting
442 dnl binary.
443 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
444 dnl Potentially add DIR to rpathdirs.
445 dnl The rpathdirs will be appended to $LIBNAME at the end.
446 haveit=
447 for x in $rpathdirs; do
448 if test "X$x" = "X$found_dir"; then
449 haveit=yes
450 break
451 fi
452 done
453 if test -z "$haveit"; then
454 rpathdirs="$rpathdirs $found_dir"
455 fi
456 else
457 dnl Rely on "-L$found_dir".
458 dnl But don't add it if it's already contained in the LDFLAGS
459 dnl or the already constructed $LIBNAME
460 haveit=
461 for x in $LDFLAGS $LIB[]NAME; do
462 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
463 if test "X$x" = "X-L$found_dir"; then
464 haveit=yes
465 break
466 fi
467 done
468 if test -z "$haveit"; then
469 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
470 fi
471 if test "$hardcode_minus_L" != no; then
472 dnl FIXME: Not sure whether we should use
473 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
474 dnl here.
475 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
476 else
477 dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
478 dnl here, because this doesn't fit in flags passed to the
479 dnl compiler. So give up. No hardcoding. This affects only
480 dnl very old systems.
481 dnl FIXME: Not sure whether we should use
482 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
483 dnl here.
484 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
485 fi
486 fi
487 fi
488 fi
489 else
490 if test "X$found_a" != "X"; then
491 dnl Linking with a static library.
492 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
493 else
494 dnl We shouldn't come here, but anyway it's good to have a
495 dnl fallback.
496 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
497 fi
498 fi
499 dnl Assume the include files are nearby.
500 additional_includedir=
501 case "$found_dir" in
502 */lib | */lib/)
503 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
504 additional_includedir="$basedir/include"
505 ;;
506 esac
507 if test "X$additional_includedir" != "X"; then
508 dnl Potentially add $additional_includedir to $INCNAME.
509 dnl But don't add it
510 dnl 1. if it's the standard /usr/include,
511 dnl 2. if it's /usr/local/include and we are using GCC on Linux,
512 dnl 3. if it's already present in $CPPFLAGS or the already
513 dnl constructed $INCNAME,
514 dnl 4. if it doesn't exist as a directory.
515 if test "X$additional_includedir" != "X/usr/include"; then
516 haveit=
517 if test "X$additional_includedir" = "X/usr/local/include"; then
518 if test -n "$GCC"; then
519 case $host_os in
520 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
521 esac
522 fi
523 fi
524 if test -z "$haveit"; then
525 for x in $CPPFLAGS $INC[]NAME; do
526 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
527 if test "X$x" = "X-I$additional_includedir"; then
528 haveit=yes
529 break
530 fi
531 done
532 if test -z "$haveit"; then
533 if test -d "$additional_includedir"; then
534 dnl Really add $additional_includedir to $INCNAME.
535 INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
536 fi
537 fi
538 fi
539 fi
540 fi
541 dnl Look for dependencies.
542 if test -n "$found_la"; then
543 dnl Read the .la file. It defines the variables
544 dnl dlname, library_names, old_library, dependency_libs, current,
545 dnl age, revision, installed, dlopen, dlpreopen, libdir.
546 save_libdir="$libdir"
547 case "$found_la" in
548 */* | *\\*) . "$found_la" ;;
549 *) . "./$found_la" ;;
550 esac
551 libdir="$save_libdir"
552 dnl We use only dependency_libs.
553 for dep in $dependency_libs; do
554 case "$dep" in
555 -L*)
556 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
557 dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
558 dnl But don't add it
559 dnl 1. if it's the standard /usr/lib,
560 dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
561 dnl 3. if it's already present in $LDFLAGS or the already
562 dnl constructed $LIBNAME,
563 dnl 4. if it doesn't exist as a directory.
564 if test "X$additional_libdir" != "X/usr/lib"; then
565 haveit=
566 if test "X$additional_libdir" = "X/usr/local/lib"; then
567 if test -n "$GCC"; then
568 case $host_os in
569 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
570 esac
571 fi
572 fi
573 if test -z "$haveit"; then
574 haveit=
575 for x in $LDFLAGS $LIB[]NAME; do
576 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
577 if test "X$x" = "X-L$additional_libdir"; then
578 haveit=yes
579 break
580 fi
581 done
582 if test -z "$haveit"; then
583 if test -d "$additional_libdir"; then
584 dnl Really add $additional_libdir to $LIBNAME.
585 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
586 fi
587 fi
588 haveit=
589 for x in $LDFLAGS $LTLIB[]NAME; do
590 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
591 if test "X$x" = "X-L$additional_libdir"; then
592 haveit=yes
593 break
594 fi
595 done
596 if test -z "$haveit"; then
597 if test -d "$additional_libdir"; then
598 dnl Really add $additional_libdir to $LTLIBNAME.
599 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
600 fi
601 fi
602 fi
603 fi
604 ;;
605 -R*)
606 dir=`echo "X$dep" | sed -e 's/^X-R//'`
607 if test "$enable_rpath" != no; then
608 dnl Potentially add DIR to rpathdirs.
609 dnl The rpathdirs will be appended to $LIBNAME at the end.
610 haveit=
611 for x in $rpathdirs; do
612 if test "X$x" = "X$dir"; then
613 haveit=yes
614 break
615 fi
616 done
617 if test -z "$haveit"; then
618 rpathdirs="$rpathdirs $dir"
619 fi
620 dnl Potentially add DIR to ltrpathdirs.
621 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
622 haveit=
623 for x in $ltrpathdirs; do
624 if test "X$x" = "X$dir"; then
625 haveit=yes
626 break
627 fi
628 done
629 if test -z "$haveit"; then
630 ltrpathdirs="$ltrpathdirs $dir"
631 fi
632 fi
633 ;;
634 -l*)
635 dnl Handle this in the next round.
636 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
637 ;;
638 *.la)
639 dnl Handle this in the next round. Throw away the .la's
640 dnl directory; it is already contained in a preceding -L
641 dnl option.
642 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
643 ;;
644 *)
645 dnl Most likely an immediate library name.
646 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
647 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
648 ;;
649 esac
650 done
651 fi
652 else
653 dnl Didn't find the library; assume it is in the system directories
654 dnl known to the linker and runtime loader. (All the system
655 dnl directories known to the linker should also be known to the
656 dnl runtime loader, otherwise the system is severely misconfigured.)
657 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
658 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
659 fi
660 fi
661 fi
662 done
663 done
664 if test "X$rpathdirs" != "X"; then
665 if test -n "$hardcode_libdir_separator"; then
666 dnl Weird platform: only the last -rpath option counts, the user must
667 dnl pass all path elements in one option. We can arrange that for a
668 dnl single library, but not when more than one $LIBNAMEs are used.
669 alldirs=
670 for found_dir in $rpathdirs; do
671 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
672 done
673 dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
674 acl_save_libdir="$libdir"
675 libdir="$alldirs"
676 eval flag=\"$hardcode_libdir_flag_spec\"
677 libdir="$acl_save_libdir"
678 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
679 else
680 dnl The -rpath options are cumulative.
681 for found_dir in $rpathdirs; do
682 acl_save_libdir="$libdir"
683 libdir="$found_dir"
684 eval flag=\"$hardcode_libdir_flag_spec\"
685 libdir="$acl_save_libdir"
686 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
687 done
688 fi
689 fi
690 if test "X$ltrpathdirs" != "X"; then
691 dnl When using libtool, the option that works for both libraries and
692 dnl executables is -R. The -R options are cumulative.
693 for found_dir in $ltrpathdirs; do
694 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
695 done
696 fi
697 ])
698
699 dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
700 dnl unless already present in VAR.
701 dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
702 dnl contains two or three consecutive elements that belong together.
703 AC_DEFUN([AC_LIB_APPENDTOVAR],
704 [
705 for element in [$2]; do
706 haveit=
707 for x in $[$1]; do
708 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
709 if test "X$x" = "X$element"; then
710 haveit=yes
711 break
712 fi
713 done
714 if test -z "$haveit"; then
715 [$1]="${[$1]}${[$1]:+ }$element"
716 fi
717 done
718 ])
719
720 # lib-ld.m4 serial 3 (gettext-0.13)
721 dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
722 dnl This file is free software; the Free Software Foundation
723 dnl gives unlimited permission to copy and/or distribute it,
724 dnl with or without modifications, as long as this notice is preserved.
725
726 dnl Subroutines of libtool.m4,
727 dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
728 dnl with libtool.m4.
729
730 dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
731 AC_DEFUN([AC_LIB_PROG_LD_GNU],
732 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
733 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
734 case `$LD -v 2>&1 </dev/null` in
735 *GNU* | *'with BFD'*)
736 acl_cv_prog_gnu_ld=yes ;;
737 *)
738 acl_cv_prog_gnu_ld=no ;;
739 esac])
740 with_gnu_ld=$acl_cv_prog_gnu_ld
741 ])
742
743 dnl From libtool-1.4. Sets the variable LD.
744 AC_DEFUN([AC_LIB_PROG_LD],
745 [AC_ARG_WITH(gnu-ld,
746 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
747 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
748 AC_REQUIRE([AC_PROG_CC])dnl
749 AC_REQUIRE([AC_CANONICAL_HOST])dnl
750 # Prepare PATH_SEPARATOR.
751 # The user is always right.
752 if test "${PATH_SEPARATOR+set}" != set; then
753 echo "#! /bin/sh" >conf$$.sh
754 echo "exit 0" >>conf$$.sh
755 chmod +x conf$$.sh
756 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
757 PATH_SEPARATOR=';'
758 else
759 PATH_SEPARATOR=:
760 fi
761 rm -f conf$$.sh
762 fi
763 ac_prog=ld
764 if test "$GCC" = yes; then
765 # Check if gcc -print-prog-name=ld gives a path.
766 AC_MSG_CHECKING([for ld used by GCC])
767 case $host in
768 *-*-mingw*)
769 # gcc leaves a trailing carriage return which upsets mingw
770 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
771 *)
772 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
773 esac
774 case $ac_prog in
775 # Accept absolute paths.
776 [[\\/]* | [A-Za-z]:[\\/]*)]
777 [re_direlt='/[^/][^/]*/\.\./']
778 # Canonicalize the path of ld
779 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
780 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
781 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
782 done
783 test -z "$LD" && LD="$ac_prog"
784 ;;
785 "")
786 # If it fails, then pretend we aren't using GCC.
787 ac_prog=ld
788 ;;
789 *)
790 # If it is relative, then search for the first ld in PATH.
791 with_gnu_ld=unknown
792 ;;
793 esac
794 elif test "$with_gnu_ld" = yes; then
795 AC_MSG_CHECKING([for GNU ld])
796 else
797 AC_MSG_CHECKING([for non-GNU ld])
798 fi
799 AC_CACHE_VAL(acl_cv_path_LD,
800 [if test -z "$LD"; then
801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
802 for ac_dir in $PATH; do
803 test -z "$ac_dir" && ac_dir=.
804 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
805 acl_cv_path_LD="$ac_dir/$ac_prog"
806 # Check to see if the program is GNU ld. I'd rather use --version,
807 # but apparently some GNU ld's only accept -v.
808 # Break only if it was the GNU/non-GNU ld that we prefer.
809 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
810 *GNU* | *'with BFD'*)
811 test "$with_gnu_ld" != no && break ;;
812 *)
813 test "$with_gnu_ld" != yes && break ;;
814 esac
815 fi
816 done
817 IFS="$ac_save_ifs"
818 else
819 acl_cv_path_LD="$LD" # Let the user override the test with a path.
820 fi])
821 LD="$acl_cv_path_LD"
822 if test -n "$LD"; then
823 AC_MSG_RESULT($LD)
824 else
825 AC_MSG_RESULT(no)
826 fi
827 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
828 AC_LIB_PROG_LD_GNU
829 ])
11830
12831 # Like AC_CONFIG_HEADER, but automatically create stamp file.
13832
(New empty file)
0 /* config.h.in. Generated automatically from configure.in by autoheader. */
0 /* config.h.in. Generated from configure.in by autoheader. */
11
2 #undef SHAREDIR
3
4 /* Define if you have the <curses.h> header file. */
2 /* Define to 1 if you have the <curses.h> header file. */
53 #undef HAVE_CURSES_H
64
7 /* Define if you have the <fcntl.h> header file. */
5 /* Define to 1 if you have the <fcntl.h> header file. */
86 #undef HAVE_FCNTL_H
97
10 /* Define if you have the <math.h> header file. */
8 /* Define to 1 if you have the <inttypes.h> header file. */
9 #undef HAVE_INTTYPES_H
10
11 /* Define to 1 if you have the `ncurses' library (-lncurses). */
12 #undef HAVE_LIBNCURSES
13
14 /* Define to 1 if you have the <math.h> header file. */
1115 #undef HAVE_MATH_H
1216
13 /* Define if you have the <signal.h> header file. */
17 /* Define to 1 if you have the <memory.h> header file. */
18 #undef HAVE_MEMORY_H
19
20 /* Define to 1 if you have the <signal.h> header file. */
1421 #undef HAVE_SIGNAL_H
1522
16 /* Define if you have the <stdlib.h> header file. */
23 /* Define to 1 if you have the <stdint.h> header file. */
24 #undef HAVE_STDINT_H
25
26 /* Define to 1 if you have the <stdlib.h> header file. */
1727 #undef HAVE_STDLIB_H
1828
19 /* Define if you have the <sys/stat.h> header file. */
29 /* Define to 1 if you have the <strings.h> header file. */
30 #undef HAVE_STRINGS_H
31
32 /* Define to 1 if you have the <string.h> header file. */
33 #undef HAVE_STRING_H
34
35 /* Define to 1 if you have the <sys/stat.h> header file. */
2036 #undef HAVE_SYS_STAT_H
2137
22 /* Define if you have the <sys/time.h> header file. */
38 /* Define to 1 if you have the <sys/time.h> header file. */
2339 #undef HAVE_SYS_TIME_H
2440
25 /* Define if you have the <sys/types.h> header file. */
41 /* Define to 1 if you have the <sys/types.h> header file. */
2642 #undef HAVE_SYS_TYPES_H
2743
28 /* Define if you have the <time.h> header file. */
44 /* Define to 1 if you have the <time.h> header file. */
2945 #undef HAVE_TIME_H
3046
31 /* Define if you have the <unistd.h> header file. */
47 /* Define to 1 if you have the <unistd.h> header file. */
3248 #undef HAVE_UNISTD_H
33
34 /* Define if you have the ncurses library (-lncurses). */
35 #undef HAVE_LIBNCURSES
3649
3750 /* Name of package */
3851 #undef PACKAGE
3952
53 /* Define to the address where bug reports for this package should be sent. */
54 #undef PACKAGE_BUGREPORT
55
56 /* Define to the full name of this package. */
57 #undef PACKAGE_NAME
58
59 /* Define to the full name and version of this package. */
60 #undef PACKAGE_STRING
61
62 /* Define to the one symbol short name of this package. */
63 #undef PACKAGE_TARNAME
64
65 /* Define to the version of this package. */
66 #undef PACKAGE_VERSION
67
68 /* install_path */
69 #undef SHAREDIR
70
71 /* Define to 1 if you have the ANSI C header files. */
72 #undef STDC_HEADERS
73
4074 /* Version number of package */
4175 #undef VERSION
42
(New empty file)
+5054
-1096
configure less more
00 #! /bin/sh
1
21 # Guess values for system-dependent variables and create Makefiles.
3 # Generated automatically using autoconf version 2.13
4 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
2 # Generated by GNU Autoconf 2.59.
53 #
4 # Copyright (C) 2003 Free Software Foundation, Inc.
65 # This configure script is free software; the Free Software Foundation
76 # gives unlimited permission to copy, distribute and modify it.
8
9 # Defaults:
10 ac_help=
7 ## --------------------- ##
8 ## M4sh Initialization. ##
9 ## --------------------- ##
10
11 # Be Bourne compatible
12 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13 emulate sh
14 NULLCMD=:
15 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16 # is contrary to our usage. Disable this feature.
17 alias -g '${1+"$@"}'='"$@"'
18 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19 set -o posix
20 fi
21 DUALCASE=1; export DUALCASE # for MKS sh
22
23 # Support unset when possible.
24 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25 as_unset=unset
26 else
27 as_unset=false
28 fi
29
30
31 # Work around bugs in pre-3.0 UWIN ksh.
32 $as_unset ENV MAIL MAILPATH
33 PS1='$ '
34 PS2='> '
35 PS4='+ '
36
37 # NLS nuisances.
38 for as_var in \
39 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41 LC_TELEPHONE LC_TIME
42 do
43 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44 eval $as_var=C; export $as_var
45 else
46 $as_unset $as_var
47 fi
48 done
49
50 # Required to use basename.
51 if expr a : '\(a\)' >/dev/null 2>&1; then
52 as_expr=expr
53 else
54 as_expr=false
55 fi
56
57 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
58 as_basename=basename
59 else
60 as_basename=false
61 fi
62
63
64 # Name of the executable.
65 as_me=`$as_basename "$0" ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
70 echo X/"$0" |
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
74 s/.*/./; q'`
75
76
77 # PATH needs CR, and LINENO needs CR and PATH.
78 # Avoid depending upon Character Ranges.
79 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
80 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
82 as_cr_digits='0123456789'
83 as_cr_alnum=$as_cr_Letters$as_cr_digits
84
85 # The user is always right.
86 if test "${PATH_SEPARATOR+set}" != set; then
87 echo "#! /bin/sh" >conf$$.sh
88 echo "exit 0" >>conf$$.sh
89 chmod +x conf$$.sh
90 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
91 PATH_SEPARATOR=';'
92 else
93 PATH_SEPARATOR=:
94 fi
95 rm -f conf$$.sh
96 fi
97
98
99 as_lineno_1=$LINENO
100 as_lineno_2=$LINENO
101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" || {
104 # Find who we are. Look in the path if we contain no path at all
105 # relative or not.
106 case $0 in
107 *[\\/]* ) as_myself=$0 ;;
108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
109 for as_dir in $PATH
110 do
111 IFS=$as_save_IFS
112 test -z "$as_dir" && as_dir=.
113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 done
115
116 ;;
117 esac
118 # We did not find ourselves, most probably we were run as `sh COMMAND'
119 # in which case we are not to be found in the path.
120 if test "x$as_myself" = x; then
121 as_myself=$0
122 fi
123 if test ! -f "$as_myself"; then
124 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125 { (exit 1); exit 1; }; }
126 fi
127 case $CONFIG_SHELL in
128 '')
129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 do
132 IFS=$as_save_IFS
133 test -z "$as_dir" && as_dir=.
134 for as_base in sh bash ksh sh5; do
135 case $as_dir in
136 /*)
137 if ("$as_dir/$as_base" -c '
138 as_lineno_1=$LINENO
139 as_lineno_2=$LINENO
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
143 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
144 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
145 CONFIG_SHELL=$as_dir/$as_base
146 export CONFIG_SHELL
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148 fi;;
149 esac
150 done
151 done
152 ;;
153 esac
154
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
164 sed '
165 N
166 s,$,-,
167 : loop
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 t loop
170 s,-$,,
171 s,^['$as_cr_digits']*\n,,
172 ' >$as_me.lineno &&
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
176
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
180 . ./$as_me.lineno
181 # Exit status is that of the last command.
182 exit
183 }
184
185
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T=' ' ;;
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 esac
192
193 if expr a : '\(a\)' >/dev/null 2>&1; then
194 as_expr=expr
195 else
196 as_expr=false
197 fi
198
199 rm -f conf$$ conf$$.exe conf$$.file
200 echo >conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
206 as_ln_s='cp -p'
207 else
208 as_ln_s='ln -s'
209 fi
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211 as_ln_s=ln
212 else
213 as_ln_s='cp -p'
214 fi
215 rm -f conf$$ conf$$.exe conf$$.file
216
217 if mkdir -p . 2>/dev/null; then
218 as_mkdir_p=:
219 else
220 test -d ./-p && rmdir ./-p
221 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
11253 ac_default_prefix=/usr/local
12 # Any additions from configure.in:
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="squidview.cpp"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP EGREP CXXCPP LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
13313
14314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
15317 # The variables have the same names as the options, with
16318 # dashes changed to underlines.
17 build=NONE
18 cache_file=./config.cache
319 cache_file=/dev/null
19320 exec_prefix=NONE
20 host=NONE
21321 no_create=
22 nonopt=NONE
23322 no_recursion=
24323 prefix=NONE
25324 program_prefix=NONE
28327 silent=
29328 site=
30329 srcdir=
31 target=NONE
32330 verbose=
33331 x_includes=NONE
34332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
35339 bindir='${exec_prefix}/bin'
36340 sbindir='${exec_prefix}/sbin'
37341 libexecdir='${exec_prefix}/libexec'
45349 infodir='${prefix}/info'
46350 mandir='${prefix}/man'
47351
48 # Initialize some other variables.
49 subdirs=
50 MFLAGS= MAKEFLAGS=
51 SHELL=${CONFIG_SHELL-/bin/sh}
52 # Maximum number of lines to put in a shell here document.
53 ac_max_here_lines=12
54
55352 ac_prev=
56353 for ac_option
57354 do
58
59355 # If the previous option needs an argument, assign it.
60356 if test -n "$ac_prev"; then
61357 eval "$ac_prev=\$ac_option"
63359 continue
64360 fi
65361
66 case "$ac_option" in
67 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
68 *) ac_optarg= ;;
69 esac
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
70363
71364 # Accept the important Cygnus configure options, so we can diagnose typos.
72365
73 case "$ac_option" in
366 case $ac_option in
74367
75368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
76369 ac_prev=bindir ;;
77370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
78 bindir="$ac_optarg" ;;
371 bindir=$ac_optarg ;;
79372
80373 -build | --build | --buil | --bui | --bu)
81 ac_prev=build ;;
374 ac_prev=build_alias ;;
82375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
83 build="$ac_optarg" ;;
376 build_alias=$ac_optarg ;;
84377
85378 -cache-file | --cache-file | --cache-fil | --cache-fi \
86379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
87380 ac_prev=cache_file ;;
88381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
89382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
90 cache_file="$ac_optarg" ;;
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
91387
92388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
93389 ac_prev=datadir ;;
94390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
95391 | --da=*)
96 datadir="$ac_optarg" ;;
392 datadir=$ac_optarg ;;
97393
98394 -disable-* | --disable-*)
99 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
100396 # Reject names that are not valid shell variable names.
101 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
102 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
103 fi
104 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
105 eval "enable_${ac_feature}=no" ;;
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
106402
107403 -enable-* | --enable-*)
108 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
109405 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 fi
113 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114 case "$ac_option" in
115 *=*) ;;
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
116412 *) ac_optarg=yes ;;
117413 esac
118 eval "enable_${ac_feature}='$ac_optarg'" ;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
119415
120416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
121417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
124420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
125421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
126422 | --exec=* | --exe=* | --ex=*)
127 exec_prefix="$ac_optarg" ;;
423 exec_prefix=$ac_optarg ;;
128424
129425 -gas | --gas | --ga | --g)
130426 # Obsolete; use --with-gas.
131427 with_gas=yes ;;
132428
133 -help | --help | --hel | --he)
134 # Omit some internal or obsolete options to make the list less imposing.
135 # This message is too long to be a string in the A/UX 3.1 sh.
136 cat << EOF
137 Usage: configure [options] [host]
138 Options: [defaults in brackets after descriptions]
139 Configuration:
140 --cache-file=FILE cache test results in FILE
141 --help print this message
142 --no-create do not create output files
143 --quiet, --silent do not print \`checking...' messages
144 --version print the version of autoconf that created configure
145 Directory and file names:
146 --prefix=PREFIX install architecture-independent files in PREFIX
147 [$ac_default_prefix]
148 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
149 [same as prefix]
150 --bindir=DIR user executables in DIR [EPREFIX/bin]
151 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
152 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
153 --datadir=DIR read-only architecture-independent data in DIR
154 [PREFIX/share]
155 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
156 --sharedstatedir=DIR modifiable architecture-independent data in DIR
157 [PREFIX/com]
158 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
159 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
160 --includedir=DIR C header files in DIR [PREFIX/include]
161 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
162 --infodir=DIR info documentation in DIR [PREFIX/info]
163 --mandir=DIR man documentation in DIR [PREFIX/man]
164 --srcdir=DIR find the sources in DIR [configure dir or ..]
165 --program-prefix=PREFIX prepend PREFIX to installed program names
166 --program-suffix=SUFFIX append SUFFIX to installed program names
167 --program-transform-name=PROGRAM
168 run sed PROGRAM on installed program names
169 EOF
170 cat << EOF
171 Host type:
172 --build=BUILD configure for building on BUILD [BUILD=HOST]
173 --host=HOST configure for HOST [guessed]
174 --target=TARGET configure for TARGET [TARGET=HOST]
175 Features and packages:
176 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
177 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
178 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
179 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
180 --x-includes=DIR X include files are in DIR
181 --x-libraries=DIR X library files are in DIR
182 EOF
183 if test -n "$ac_help"; then
184 echo "--enable and --with options recognized:$ac_help"
185 fi
186 exit 0 ;;
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
187435
188436 -host | --host | --hos | --ho)
189 ac_prev=host ;;
437 ac_prev=host_alias ;;
190438 -host=* | --host=* | --hos=* | --ho=*)
191 host="$ac_optarg" ;;
439 host_alias=$ac_optarg ;;
192440
193441 -includedir | --includedir | --includedi | --included | --include \
194442 | --includ | --inclu | --incl | --inc)
195443 ac_prev=includedir ;;
196444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
197445 | --includ=* | --inclu=* | --incl=* | --inc=*)
198 includedir="$ac_optarg" ;;
446 includedir=$ac_optarg ;;
199447
200448 -infodir | --infodir | --infodi | --infod | --info | --inf)
201449 ac_prev=infodir ;;
202450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
203 infodir="$ac_optarg" ;;
451 infodir=$ac_optarg ;;
204452
205453 -libdir | --libdir | --libdi | --libd)
206454 ac_prev=libdir ;;
207455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
208 libdir="$ac_optarg" ;;
456 libdir=$ac_optarg ;;
209457
210458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
211459 | --libexe | --libex | --libe)
212460 ac_prev=libexecdir ;;
213461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
214462 | --libexe=* | --libex=* | --libe=*)
215 libexecdir="$ac_optarg" ;;
463 libexecdir=$ac_optarg ;;
216464
217465 -localstatedir | --localstatedir | --localstatedi | --localstated \
218466 | --localstate | --localstat | --localsta | --localst \
221469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
222470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
223471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
224 localstatedir="$ac_optarg" ;;
472 localstatedir=$ac_optarg ;;
225473
226474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
227475 ac_prev=mandir ;;
228476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
229 mandir="$ac_optarg" ;;
477 mandir=$ac_optarg ;;
230478
231479 -nfp | --nfp | --nf)
232480 # Obsolete; use --without-fp.
233481 with_fp=no ;;
234482
235483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
236 | --no-cr | --no-c)
484 | --no-cr | --no-c | -n)
237485 no_create=yes ;;
238486
239487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
247495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
248496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
249497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
250 oldincludedir="$ac_optarg" ;;
498 oldincludedir=$ac_optarg ;;
251499
252500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
253501 ac_prev=prefix ;;
254502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
255 prefix="$ac_optarg" ;;
503 prefix=$ac_optarg ;;
256504
257505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
258506 | --program-pre | --program-pr | --program-p)
259507 ac_prev=program_prefix ;;
260508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
261509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
262 program_prefix="$ac_optarg" ;;
510 program_prefix=$ac_optarg ;;
263511
264512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
265513 | --program-suf | --program-su | --program-s)
266514 ac_prev=program_suffix ;;
267515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
268516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
269 program_suffix="$ac_optarg" ;;
517 program_suffix=$ac_optarg ;;
270518
271519 -program-transform-name | --program-transform-name \
272520 | --program-transform-nam | --program-transform-na \
283531 | --program-transfo=* | --program-transf=* \
284532 | --program-trans=* | --program-tran=* \
285533 | --progr-tra=* | --program-tr=* | --program-t=*)
286 program_transform_name="$ac_optarg" ;;
534 program_transform_name=$ac_optarg ;;
287535
288536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
289537 | -silent | --silent | --silen | --sile | --sil)
293541 ac_prev=sbindir ;;
294542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
295543 | --sbi=* | --sb=*)
296 sbindir="$ac_optarg" ;;
544 sbindir=$ac_optarg ;;
297545
298546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
299547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
304552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
305553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
306554 | --sha=* | --sh=*)
307 sharedstatedir="$ac_optarg" ;;
555 sharedstatedir=$ac_optarg ;;
308556
309557 -site | --site | --sit)
310558 ac_prev=site ;;
311559 -site=* | --site=* | --sit=*)
312 site="$ac_optarg" ;;
560 site=$ac_optarg ;;
313561
314562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
315563 ac_prev=srcdir ;;
316564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
317 srcdir="$ac_optarg" ;;
565 srcdir=$ac_optarg ;;
318566
319567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
320568 | --syscon | --sysco | --sysc | --sys | --sy)
321569 ac_prev=sysconfdir ;;
322570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
323571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
324 sysconfdir="$ac_optarg" ;;
572 sysconfdir=$ac_optarg ;;
325573
326574 -target | --target | --targe | --targ | --tar | --ta | --t)
327 ac_prev=target ;;
575 ac_prev=target_alias ;;
328576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
329 target="$ac_optarg" ;;
577 target_alias=$ac_optarg ;;
330578
331579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
332580 verbose=yes ;;
333581
334 -version | --version | --versio | --versi | --vers)
335 echo "configure generated by autoconf version 2.13"
336 exit 0 ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
337584
338585 -with-* | --with-*)
339 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
340587 # Reject names that are not valid shell variable names.
341 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
342 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
343 fi
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
344591 ac_package=`echo $ac_package| sed 's/-/_/g'`
345 case "$ac_option" in
346 *=*) ;;
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
347594 *) ac_optarg=yes ;;
348595 esac
349 eval "with_${ac_package}='$ac_optarg'" ;;
596 eval "with_$ac_package='$ac_optarg'" ;;
350597
351598 -without-* | --without-*)
352 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
353600 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356 fi
357 ac_package=`echo $ac_package| sed 's/-/_/g'`
358 eval "with_${ac_package}=no" ;;
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
359606
360607 --x)
361608 # Obsolete; use --with-x.
366613 ac_prev=x_includes ;;
367614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
368615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
369 x_includes="$ac_optarg" ;;
616 x_includes=$ac_optarg ;;
370617
371618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
372619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
373620 ac_prev=x_libraries ;;
374621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
375622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
376 x_libraries="$ac_optarg" ;;
377
378 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
623 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
379628 ;;
380629
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
381640 *)
382 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
383 echo "configure: warning: $ac_option: invalid host type" 1>&2
384 fi
385 if test "x$nonopt" != xNONE; then
386 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
387 fi
388 nonopt="$ac_option"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
389646 ;;
390647
391648 esac
392649 done
393650
394651 if test -n "$ac_prev"; then
395 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
396 fi
397
398 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
399
400 # File descriptor usage:
401 # 0 standard input
402 # 1 file creation
403 # 2 errors and warnings
404 # 3 some systems may open it to /dev/tty
405 # 4 used on the Kubota Titan
406 # 6 checking for... messages and results
407 # 5 compiler messages saved in config.log
408 if test "$silent" = yes; then
409 exec 6>/dev/null
410 else
411 exec 6>&1
412 fi
413 exec 5>./config.log
414
415 echo "\
416 This file contains any messages produced by compilers while
417 running configure, to aid debugging if configure makes a mistake.
418 " 1>&5
419
420 # Strip out --no-create and --no-recursion so they do not pile up.
421 # Also quote any args containing shell metacharacters.
422 ac_configure_args=
423 for ac_arg
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
424659 do
425 case "$ac_arg" in
426 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
427 | --no-cr | --no-c) ;;
428 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
429 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
430 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
431 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
432 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
433665 esac
434666 done
435667
436 # NLS nuisances.
437 # Only set these to C if already set. These must not be set unconditionally
438 # because not all systems understand e.g. LANG=C (notably SCO).
439 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
440 # Non-C LC_CTYPE values break the ctype check.
441 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
442 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
443 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
444 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
445
446 # confdefs.h avoids OS command line length limits that DEFS can exceed.
447 rm -rf conftest* confdefs.h
448 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
449 echo > confdefs.h
450
451 # A filename unique to this package, relative to the directory that
452 # configure is in, which we can look for to find out if srcdir is correct.
453 ac_unique_file=squidview.cpp
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671 do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
454703
455704 # Find the source files, if location was not specified.
456705 if test -z "$srcdir"; then
457706 ac_srcdir_defaulted=yes
458707 # Try the directory containing this script, then its parent.
459 ac_prog=$0
460 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
461 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
462720 srcdir=$ac_confdir
463 if test ! -r $srcdir/$ac_unique_file; then
721 if test ! -r "$srcdir/$ac_unique_file"; then
464722 srcdir=..
465723 fi
466724 else
467725 ac_srcdir_defaulted=no
468726 fi
469 if test ! -r $srcdir/$ac_unique_file; then
727 if test ! -r "$srcdir/$ac_unique_file"; then
470728 if test "$ac_srcdir_defaulted" = yes; then
471 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
472731 else
473 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
474734 fi
475735 fi
476 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
477
736 (cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CXX_set=${CXX+set}
753 ac_env_CXX_value=$CXX
754 ac_cv_env_CXX_set=${CXX+set}
755 ac_cv_env_CXX_value=$CXX
756 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
757 ac_env_CXXFLAGS_value=$CXXFLAGS
758 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
759 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CC_set=${CC+set}
769 ac_env_CC_value=$CC
770 ac_cv_env_CC_set=${CC+set}
771 ac_cv_env_CC_value=$CC
772 ac_env_CFLAGS_set=${CFLAGS+set}
773 ac_env_CFLAGS_value=$CFLAGS
774 ac_cv_env_CFLAGS_set=${CFLAGS+set}
775 ac_cv_env_CFLAGS_value=$CFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780 ac_env_CXXCPP_set=${CXXCPP+set}
781 ac_env_CXXCPP_value=$CXXCPP
782 ac_cv_env_CXXCPP_set=${CXXCPP+set}
783 ac_cv_env_CXXCPP_value=$CXXCPP
784
785 #
786 # Report the --help message.
787 #
788 if test "$ac_init_help" = "long"; then
789 # Omit some internal or obsolete options to make the list less imposing.
790 # This message is too long to be a string in the A/UX 3.1 sh.
791 cat <<_ACEOF
792 \`configure' configures this package to adapt to many kinds of systems.
793
794 Usage: $0 [OPTION]... [VAR=VALUE]...
795
796 To assign environment variables (e.g., CC, CFLAGS...), specify them as
797 VAR=VALUE. See below for descriptions of some of the useful variables.
798
799 Defaults for the options are specified in brackets.
800
801 Configuration:
802 -h, --help display this help and exit
803 --help=short display options specific to this package
804 --help=recursive display the short help of all the included packages
805 -V, --version display version information and exit
806 -q, --quiet, --silent do not print \`checking...' messages
807 --cache-file=FILE cache test results in FILE [disabled]
808 -C, --config-cache alias for \`--cache-file=config.cache'
809 -n, --no-create do not create output files
810 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811
812 _ACEOF
813
814 cat <<_ACEOF
815 Installation directories:
816 --prefix=PREFIX install architecture-independent files in PREFIX
817 [$ac_default_prefix]
818 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
819 [PREFIX]
820
821 By default, \`make install' will install all the files in
822 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
823 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
824 for instance \`--prefix=\$HOME'.
825
826 For better control, use the options below.
827
828 Fine tuning of the installation directories:
829 --bindir=DIR user executables [EPREFIX/bin]
830 --sbindir=DIR system admin executables [EPREFIX/sbin]
831 --libexecdir=DIR program executables [EPREFIX/libexec]
832 --datadir=DIR read-only architecture-independent data [PREFIX/share]
833 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
834 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
835 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
836 --libdir=DIR object code libraries [EPREFIX/lib]
837 --includedir=DIR C header files [PREFIX/include]
838 --oldincludedir=DIR C header files for non-gcc [/usr/include]
839 --infodir=DIR info documentation [PREFIX/info]
840 --mandir=DIR man documentation [PREFIX/man]
841 _ACEOF
842
843 cat <<\_ACEOF
844
845 Program names:
846 --program-prefix=PREFIX prepend PREFIX to installed program names
847 --program-suffix=SUFFIX append SUFFIX to installed program names
848 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
849 _ACEOF
850 fi
851
852 if test -n "$ac_init_help"; then
853
854 cat <<\_ACEOF
855
856 Some influential environment variables:
857 CXX C++ compiler command
858 CXXFLAGS C++ compiler flags
859 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
860 nonstandard directory <lib dir>
861 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
862 headers in a nonstandard directory <include dir>
863 CC C compiler command
864 CFLAGS C compiler flags
865 CPP C preprocessor
866 CXXCPP C++ preprocessor
867
868 Use these variables to override the choices made by `configure' or to help
869 it to find libraries and programs with nonstandard names/locations.
870
871 _ACEOF
872 fi
873
874 if test "$ac_init_help" = "recursive"; then
875 # If there are subdirs, report their specific --help.
876 ac_popdir=`pwd`
877 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
878 test -d $ac_dir || continue
879 ac_builddir=.
880
881 if test "$ac_dir" != .; then
882 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
883 # A "../" for each directory in $ac_dir_suffix.
884 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
885 else
886 ac_dir_suffix= ac_top_builddir=
887 fi
888
889 case $srcdir in
890 .) # No --srcdir option. We are building in place.
891 ac_srcdir=.
892 if test -z "$ac_top_builddir"; then
893 ac_top_srcdir=.
894 else
895 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
896 fi ;;
897 [\\/]* | ?:[\\/]* ) # Absolute path.
898 ac_srcdir=$srcdir$ac_dir_suffix;
899 ac_top_srcdir=$srcdir ;;
900 *) # Relative path.
901 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
902 ac_top_srcdir=$ac_top_builddir$srcdir ;;
903 esac
904
905 # Do not use `cd foo && pwd` to compute absolute paths, because
906 # the directories may not exist.
907 case `pwd` in
908 .) ac_abs_builddir="$ac_dir";;
909 *)
910 case "$ac_dir" in
911 .) ac_abs_builddir=`pwd`;;
912 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
913 *) ac_abs_builddir=`pwd`/"$ac_dir";;
914 esac;;
915 esac
916 case $ac_abs_builddir in
917 .) ac_abs_top_builddir=${ac_top_builddir}.;;
918 *)
919 case ${ac_top_builddir}. in
920 .) ac_abs_top_builddir=$ac_abs_builddir;;
921 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
922 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
923 esac;;
924 esac
925 case $ac_abs_builddir in
926 .) ac_abs_srcdir=$ac_srcdir;;
927 *)
928 case $ac_srcdir in
929 .) ac_abs_srcdir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
931 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
932 esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_top_srcdir=$ac_top_srcdir;;
936 *)
937 case $ac_top_srcdir in
938 .) ac_abs_top_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
940 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
941 esac;;
942 esac
943
944 cd $ac_dir
945 # Check for guested configure; otherwise get Cygnus style configure.
946 if test -f $ac_srcdir/configure.gnu; then
947 echo
948 $SHELL $ac_srcdir/configure.gnu --help=recursive
949 elif test -f $ac_srcdir/configure; then
950 echo
951 $SHELL $ac_srcdir/configure --help=recursive
952 elif test -f $ac_srcdir/configure.ac ||
953 test -f $ac_srcdir/configure.in; then
954 echo
955 $ac_configure --help
956 else
957 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
958 fi
959 cd $ac_popdir
960 done
961 fi
962
963 test -n "$ac_init_help" && exit 0
964 if $ac_init_version; then
965 cat <<\_ACEOF
966
967 Copyright (C) 2003 Free Software Foundation, Inc.
968 This configure script is free software; the Free Software Foundation
969 gives unlimited permission to copy, distribute and modify it.
970 _ACEOF
971 exit 0
972 fi
973 exec 5>config.log
974 cat >&5 <<_ACEOF
975 This file contains any messages produced by compilers while
976 running configure, to aid debugging if configure makes a mistake.
977
978 It was created by $as_me, which was
979 generated by GNU Autoconf 2.59. Invocation command line was
980
981 $ $0 $@
982
983 _ACEOF
984 {
985 cat <<_ASUNAME
986 ## --------- ##
987 ## Platform. ##
988 ## --------- ##
989
990 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
991 uname -m = `(uname -m) 2>/dev/null || echo unknown`
992 uname -r = `(uname -r) 2>/dev/null || echo unknown`
993 uname -s = `(uname -s) 2>/dev/null || echo unknown`
994 uname -v = `(uname -v) 2>/dev/null || echo unknown`
995
996 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
997 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
998
999 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1000 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1001 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1002 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1003 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1004 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1005 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1006
1007 _ASUNAME
1008
1009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1010 for as_dir in $PATH
1011 do
1012 IFS=$as_save_IFS
1013 test -z "$as_dir" && as_dir=.
1014 echo "PATH: $as_dir"
1015 done
1016
1017 } >&5
1018
1019 cat >&5 <<_ACEOF
1020
1021
1022 ## ----------- ##
1023 ## Core tests. ##
1024 ## ----------- ##
1025
1026 _ACEOF
1027
1028
1029 # Keep a trace of the command line.
1030 # Strip out --no-create and --no-recursion so they do not pile up.
1031 # Strip out --silent because we don't want to record it for future runs.
1032 # Also quote any args containing shell meta-characters.
1033 # Make two passes to allow for proper duplicate-argument suppression.
1034 ac_configure_args=
1035 ac_configure_args0=
1036 ac_configure_args1=
1037 ac_sep=
1038 ac_must_keep_next=false
1039 for ac_pass in 1 2
1040 do
1041 for ac_arg
1042 do
1043 case $ac_arg in
1044 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046 | -silent | --silent | --silen | --sile | --sil)
1047 continue ;;
1048 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1049 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1050 esac
1051 case $ac_pass in
1052 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1053 2)
1054 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1055 if test $ac_must_keep_next = true; then
1056 ac_must_keep_next=false # Got value, back to normal.
1057 else
1058 case $ac_arg in
1059 *=* | --config-cache | -C | -disable-* | --disable-* \
1060 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1061 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1062 | -with-* | --with-* | -without-* | --without-* | --x)
1063 case "$ac_configure_args0 " in
1064 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1065 esac
1066 ;;
1067 -* ) ac_must_keep_next=true ;;
1068 esac
1069 fi
1070 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1071 # Get rid of the leading space.
1072 ac_sep=" "
1073 ;;
1074 esac
1075 done
1076 done
1077 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1078 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1079
1080 # When interrupted or exit'd, cleanup temporary files, and complete
1081 # config.log. We remove comments because anyway the quotes in there
1082 # would cause problems or look ugly.
1083 # WARNING: Be sure not to use single quotes in there, as some shells,
1084 # such as our DU 5.0 friend, will then `close' the trap.
1085 trap 'exit_status=$?
1086 # Save into config.log some information that might help in debugging.
1087 {
1088 echo
1089
1090 cat <<\_ASBOX
1091 ## ---------------- ##
1092 ## Cache variables. ##
1093 ## ---------------- ##
1094 _ASBOX
1095 echo
1096 # The following way of writing the cache mishandles newlines in values,
1097 {
1098 (set) 2>&1 |
1099 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1100 *ac_space=\ *)
1101 sed -n \
1102 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1104 ;;
1105 *)
1106 sed -n \
1107 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1108 ;;
1109 esac;
1110 }
1111 echo
1112
1113 cat <<\_ASBOX
1114 ## ----------------- ##
1115 ## Output variables. ##
1116 ## ----------------- ##
1117 _ASBOX
1118 echo
1119 for ac_var in $ac_subst_vars
1120 do
1121 eval ac_val=$`echo $ac_var`
1122 echo "$ac_var='"'"'$ac_val'"'"'"
1123 done | sort
1124 echo
1125
1126 if test -n "$ac_subst_files"; then
1127 cat <<\_ASBOX
1128 ## ------------- ##
1129 ## Output files. ##
1130 ## ------------- ##
1131 _ASBOX
1132 echo
1133 for ac_var in $ac_subst_files
1134 do
1135 eval ac_val=$`echo $ac_var`
1136 echo "$ac_var='"'"'$ac_val'"'"'"
1137 done | sort
1138 echo
1139 fi
1140
1141 if test -s confdefs.h; then
1142 cat <<\_ASBOX
1143 ## ----------- ##
1144 ## confdefs.h. ##
1145 ## ----------- ##
1146 _ASBOX
1147 echo
1148 sed "/^$/d" confdefs.h | sort
1149 echo
1150 fi
1151 test "$ac_signal" != 0 &&
1152 echo "$as_me: caught signal $ac_signal"
1153 echo "$as_me: exit $exit_status"
1154 } >&5
1155 rm -f core *.core &&
1156 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1157 exit $exit_status
1158 ' 0
1159 for ac_signal in 1 2 13 15; do
1160 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1161 done
1162 ac_signal=0
1163
1164 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1165 rm -rf conftest* confdefs.h
1166 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1167 echo >confdefs.h
1168
1169 # Predefined preprocessor variables.
1170
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_NAME "$PACKAGE_NAME"
1173 _ACEOF
1174
1175
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1178 _ACEOF
1179
1180
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1183 _ACEOF
1184
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_STRING "$PACKAGE_STRING"
1188 _ACEOF
1189
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1193 _ACEOF
1194
1195
1196 # Let the site file select an alternate cache file if it wants to.
4781197 # Prefer explicitly selected file to automatically selected ones.
4791198 if test -z "$CONFIG_SITE"; then
4801199 if test "x$prefix" != xNONE; then
4851204 fi
4861205 for ac_site_file in $CONFIG_SITE; do
4871206 if test -r "$ac_site_file"; then
488 echo "loading site script $ac_site_file"
1207 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1208 echo "$as_me: loading site script $ac_site_file" >&6;}
1209 sed 's/^/| /' "$ac_site_file" >&5
4891210 . "$ac_site_file"
4901211 fi
4911212 done
4921213
4931214 if test -r "$cache_file"; then
494 echo "loading cache $cache_file"
495 . $cache_file
496 else
497 echo "creating cache $cache_file"
498 > $cache_file
1215 # Some versions of bash will fail to source /dev/null (special
1216 # files actually), so we avoid doing that.
1217 if test -f "$cache_file"; then
1218 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1219 echo "$as_me: loading cache $cache_file" >&6;}
1220 case $cache_file in
1221 [\\/]* | ?:[\\/]* ) . $cache_file;;
1222 *) . ./$cache_file;;
1223 esac
1224 fi
1225 else
1226 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1227 echo "$as_me: creating cache $cache_file" >&6;}
1228 >$cache_file
1229 fi
1230
1231 # Check that the precious variables saved in the cache have kept the same
1232 # value.
1233 ac_cache_corrupted=false
1234 for ac_var in `(set) 2>&1 |
1235 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1236 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1237 eval ac_new_set=\$ac_env_${ac_var}_set
1238 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1239 eval ac_new_val="\$ac_env_${ac_var}_value"
1240 case $ac_old_set,$ac_new_set in
1241 set,)
1242 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1243 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1244 ac_cache_corrupted=: ;;
1245 ,set)
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1249 ,);;
1250 *)
1251 if test "x$ac_old_val" != "x$ac_new_val"; then
1252 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1253 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1254 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1255 echo "$as_me: former value: $ac_old_val" >&2;}
1256 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1257 echo "$as_me: current value: $ac_new_val" >&2;}
1258 ac_cache_corrupted=:
1259 fi;;
1260 esac
1261 # Pass precious variables to config.status.
1262 if test "$ac_new_set" = set; then
1263 case $ac_new_val in
1264 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1265 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1266 *) ac_arg=$ac_var=$ac_new_val ;;
1267 esac
1268 case " $ac_configure_args " in
1269 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1270 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1271 esac
1272 fi
1273 done
1274 if $ac_cache_corrupted; then
1275 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1276 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1277 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1278 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1279 { (exit 1); exit 1; }; }
4991280 fi
5001281
5011282 ac_ext=c
502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5031283 ac_cpp='$CPP $CPPFLAGS'
504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
506 cross_compiling=$ac_cv_prog_cc_cross
507
508 ac_exeext=
509 ac_objext=o
510 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
511 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
512 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
513 ac_n= ac_c='
514 ' ac_t=' '
515 else
516 ac_n=-n ac_c= ac_t=
517 fi
518 else
519 ac_n= ac_c='\c' ac_t=
520 fi
521
522
523
524
525
1284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307 ac_config_headers="$ac_config_headers config.h"
1308
1309 ac_config_commands="$ac_config_commands default-1"
1310
1311 am__api_version="1.4"
5261312 ac_aux_dir=
5271313 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
5281314 if test -f $ac_dir/install-sh; then
5331319 ac_aux_dir=$ac_dir
5341320 ac_install_sh="$ac_aux_dir/install.sh -c"
5351321 break
1322 elif test -f $ac_dir/shtool; then
1323 ac_aux_dir=$ac_dir
1324 ac_install_sh="$ac_aux_dir/shtool install -c"
1325 break
5361326 fi
5371327 done
5381328 if test -z "$ac_aux_dir"; then
539 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
540 fi
541 ac_config_guess=$ac_aux_dir/config.guess
542 ac_config_sub=$ac_aux_dir/config.sub
543 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
544
545 am__api_version="1.4"
1329 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1330 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1331 { (exit 1); exit 1; }; }
1332 fi
1333 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1334 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1335 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1336
5461337 # Find a good install program. We prefer a C program (faster),
5471338 # so one script is as good as another. But avoid the broken or
5481339 # incompatible versions:
5501341 # SunOS /usr/etc/install
5511342 # IRIX /sbin/install
5521343 # AIX /bin/install
1344 # AmigaOS /C/install, which installs bootblocks on floppy discs
5531345 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5541346 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5551347 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1348 # OS/2's system install, which has a completely different semantic
5561349 # ./install, which can be erroneously created by make from ./install.sh.
557 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
558 echo "configure:560: checking for a BSD compatible install" >&5
1350 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1351 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5591352 if test -z "$INSTALL"; then
560 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
561 echo $ac_n "(cached) $ac_c" 1>&6
562 else
563 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
564 for ac_dir in $PATH; do
565 # Account for people who put trailing slashes in PATH elements.
566 case "$ac_dir/" in
567 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
568 *)
569 # OSF1 and SCO ODT 3.0 have their own names for install.
570 # Don't use installbsd from OSF since it installs stuff as root
571 # by default.
572 for ac_prog in ginstall scoinst install; do
573 if test -f $ac_dir/$ac_prog; then
1353 if test "${ac_cv_path_install+set}" = set; then
1354 echo $ECHO_N "(cached) $ECHO_C" >&6
1355 else
1356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1357 for as_dir in $PATH
1358 do
1359 IFS=$as_save_IFS
1360 test -z "$as_dir" && as_dir=.
1361 # Account for people who put trailing slashes in PATH elements.
1362 case $as_dir/ in
1363 ./ | .// | /cC/* | \
1364 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1365 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1366 /usr/ucb/* ) ;;
1367 *)
1368 # OSF1 and SCO ODT 3.0 have their own names for install.
1369 # Don't use installbsd from OSF since it installs stuff as root
1370 # by default.
1371 for ac_prog in ginstall scoinst install; do
1372 for ac_exec_ext in '' $ac_executable_extensions; do
1373 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5741374 if test $ac_prog = install &&
575 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1375 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5761376 # AIX install. It has an incompatible calling convention.
5771377 :
1378 elif test $ac_prog = install &&
1379 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1380 # program-specific install script used by HP pwplus--don't use.
1381 :
5781382 else
579 ac_cv_path_install="$ac_dir/$ac_prog -c"
580 break 2
1383 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1384 break 3
5811385 fi
5821386 fi
5831387 done
584 ;;
585 esac
586 done
587 IFS="$ac_save_IFS"
1388 done
1389 ;;
1390 esac
1391 done
1392
5881393
5891394 fi
5901395 if test "${ac_cv_path_install+set}" = set; then
591 INSTALL="$ac_cv_path_install"
1396 INSTALL=$ac_cv_path_install
5921397 else
5931398 # As a last resort, use the slow shell script. We don't cache a
5941399 # path for INSTALL within a source directory, because that will
5951400 # break other packages using the cache if that directory is
5961401 # removed, or if the path is relative.
597 INSTALL="$ac_install_sh"
1402 INSTALL=$ac_install_sh
5981403 fi
5991404 fi
600 echo "$ac_t""$INSTALL" 1>&6
1405 echo "$as_me:$LINENO: result: $INSTALL" >&5
1406 echo "${ECHO_T}$INSTALL" >&6
6011407
6021408 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6031409 # It thinks the first close brace ends the variable substitution.
6041410 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6051411
606 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1412 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6071413
6081414 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6091415
610 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
611 echo "configure:613: checking whether build environment is sane" >&5
1416 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1417 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6121418 # Just in case
6131419 sleep 1
6141420 echo timestamp > conftestfile
6301436 # if, for instance, CONFIG_SHELL is bash and it inherits a
6311437 # broken ls alias from the environment. This has actually
6321438 # happened. Such a system could not be considered "sane".
633 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
634 alias in your environment" 1>&2; exit 1; }
1439 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1440 alias in your environment" >&5
1441 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1442 alias in your environment" >&2;}
1443 { (exit 1); exit 1; }; }
6351444 fi
6361445
6371446 test "$2" = conftestfile
6401449 # Ok.
6411450 :
6421451 else
643 { echo "configure: error: newly created file is older than distributed files!
644 Check your system clock" 1>&2; exit 1; }
1452 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1453 Check your system clock" >&5
1454 echo "$as_me: error: newly created file is older than distributed files!
1455 Check your system clock" >&2;}
1456 { (exit 1); exit 1; }; }
6451457 fi
6461458 rm -f conftest*
647 echo "$ac_t""yes" 1>&6
648 if test "$program_transform_name" = s,x,x,; then
649 program_transform_name=
650 else
651 # Double any \ or $. echo might interpret backslashes.
652 cat <<\EOF_SED > conftestsed
653 s,\\,\\\\,g; s,\$,$$,g
654 EOF_SED
655 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
656 rm -f conftestsed
657 fi
1459 echo "$as_me:$LINENO: result: yes" >&5
1460 echo "${ECHO_T}yes" >&6
6581461 test "$program_prefix" != NONE &&
659 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1462 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6601463 # Use a double $ so make ignores it.
6611464 test "$program_suffix" != NONE &&
662 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
663
664 # sed with no file args requires a program.
665 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
666
667 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
668 echo "configure:670: checking whether ${MAKE-make} sets \${MAKE}" >&5
669 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
670 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
672 else
673 cat > conftestmake <<\EOF
1465 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1466 # Double any \ or $. echo might interpret backslashes.
1467 # By default was `s,x,x', remove it if useless.
1468 cat <<\_ACEOF >conftest.sed
1469 s/[\\$]/&&/g;s/;s,x,x,$//
1470 _ACEOF
1471 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1472 rm conftest.sed
1473
1474 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1475 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1476 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1477 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480 cat >conftest.make <<\_ACEOF
6741481 all:
675 @echo 'ac_maketemp="${MAKE}"'
676 EOF
1482 @echo 'ac_maketemp="$(MAKE)"'
1483 _ACEOF
6771484 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
678 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1485 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6791486 if test -n "$ac_maketemp"; then
6801487 eval ac_cv_prog_make_${ac_make}_set=yes
6811488 else
6821489 eval ac_cv_prog_make_${ac_make}_set=no
6831490 fi
684 rm -f conftestmake
1491 rm -f conftest.make
6851492 fi
6861493 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
687 echo "$ac_t""yes" 1>&6
1494 echo "$as_me:$LINENO: result: yes" >&5
1495 echo "${ECHO_T}yes" >&6
6881496 SET_MAKE=
6891497 else
690 echo "$ac_t""no" 1>&6
1498 echo "$as_me:$LINENO: result: no" >&5
1499 echo "${ECHO_T}no" >&6
6911500 SET_MAKE="MAKE=${MAKE-make}"
6921501 fi
6931502
6941503
6951504 PACKAGE=squidview
6961505
697 VERSION=0.69
1506 VERSION=0.70
6981507
6991508 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
700 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
701 fi
702 cat >> confdefs.h <<EOF
1509 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1510 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1511 { (exit 1); exit 1; }; }
1512 fi
1513
1514 cat >>confdefs.h <<_ACEOF
7031515 #define PACKAGE "$PACKAGE"
704 EOF
705
706 cat >> confdefs.h <<EOF
1516 _ACEOF
1517
1518
1519 cat >>confdefs.h <<_ACEOF
7071520 #define VERSION "$VERSION"
708 EOF
1521 _ACEOF
7091522
7101523
7111524
7121525 missing_dir=`cd $ac_aux_dir && pwd`
713 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
714 echo "configure:716: checking for working aclocal-${am__api_version}" >&5
1526 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1527 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
7151528 # Run test in a subshell; some versions of sh will print an error if
7161529 # an executable is not found, even if stderr is redirected.
7171530 # Redirect stdin to placate older versions of autoconf. Sigh.
7181531 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
7191532 ACLOCAL=aclocal-${am__api_version}
720 echo "$ac_t""found" 1>&6
1533 echo "$as_me:$LINENO: result: found" >&5
1534 echo "${ECHO_T}found" >&6
7211535 else
7221536 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
723 echo "$ac_t""missing" 1>&6
724 fi
725
726 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
727 echo "configure:729: checking for working autoconf" >&5
1537 echo "$as_me:$LINENO: result: missing" >&5
1538 echo "${ECHO_T}missing" >&6
1539 fi
1540
1541 echo "$as_me:$LINENO: checking for working autoconf" >&5
1542 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
7281543 # Run test in a subshell; some versions of sh will print an error if
7291544 # an executable is not found, even if stderr is redirected.
7301545 # Redirect stdin to placate older versions of autoconf. Sigh.
7311546 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
7321547 AUTOCONF=autoconf
733 echo "$ac_t""found" 1>&6
1548 echo "$as_me:$LINENO: result: found" >&5
1549 echo "${ECHO_T}found" >&6
7341550 else
7351551 AUTOCONF="$missing_dir/missing autoconf"
736 echo "$ac_t""missing" 1>&6
737 fi
738
739 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
740 echo "configure:742: checking for working automake-${am__api_version}" >&5
1552 echo "$as_me:$LINENO: result: missing" >&5
1553 echo "${ECHO_T}missing" >&6
1554 fi
1555
1556 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1557 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
7411558 # Run test in a subshell; some versions of sh will print an error if
7421559 # an executable is not found, even if stderr is redirected.
7431560 # Redirect stdin to placate older versions of autoconf. Sigh.
7441561 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
7451562 AUTOMAKE=automake-${am__api_version}
746 echo "$ac_t""found" 1>&6
1563 echo "$as_me:$LINENO: result: found" >&5
1564 echo "${ECHO_T}found" >&6
7471565 else
7481566 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
749 echo "$ac_t""missing" 1>&6
750 fi
751
752 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
753 echo "configure:755: checking for working autoheader" >&5
1567 echo "$as_me:$LINENO: result: missing" >&5
1568 echo "${ECHO_T}missing" >&6
1569 fi
1570
1571 echo "$as_me:$LINENO: checking for working autoheader" >&5
1572 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
7541573 # Run test in a subshell; some versions of sh will print an error if
7551574 # an executable is not found, even if stderr is redirected.
7561575 # Redirect stdin to placate older versions of autoconf. Sigh.
7571576 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
7581577 AUTOHEADER=autoheader
759 echo "$ac_t""found" 1>&6
1578 echo "$as_me:$LINENO: result: found" >&5
1579 echo "${ECHO_T}found" >&6
7601580 else
7611581 AUTOHEADER="$missing_dir/missing autoheader"
762 echo "$ac_t""missing" 1>&6
763 fi
764
765 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
766 echo "configure:768: checking for working makeinfo" >&5
1582 echo "$as_me:$LINENO: result: missing" >&5
1583 echo "${ECHO_T}missing" >&6
1584 fi
1585
1586 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1587 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
7671588 # Run test in a subshell; some versions of sh will print an error if
7681589 # an executable is not found, even if stderr is redirected.
7691590 # Redirect stdin to placate older versions of autoconf. Sigh.
7701591 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
7711592 MAKEINFO=makeinfo
772 echo "$ac_t""found" 1>&6
1593 echo "$as_me:$LINENO: result: found" >&5
1594 echo "${ECHO_T}found" >&6
7731595 else
7741596 MAKEINFO="$missing_dir/missing makeinfo"
775 echo "$ac_t""missing" 1>&6
776 fi
777
778
779 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
780 do
781 # Extract the first word of "$ac_prog", so it can be a program name with args.
782 set dummy $ac_prog; ac_word=$2
783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
784 echo "configure:786: checking for $ac_word" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
1597 echo "$as_me:$LINENO: result: missing" >&5
1598 echo "${ECHO_T}missing" >&6
1599 fi
1600
1601
1602 ac_ext=cc
1603 ac_cpp='$CXXCPP $CPPFLAGS'
1604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1607 if test -n "$ac_tool_prefix"; then
1608 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1609 do
1610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1612 echo "$as_me:$LINENO: checking for $ac_word" >&5
1613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1614 if test "${ac_cv_prog_CXX+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
7871616 else
7881617 if test -n "$CXX"; then
7891618 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7901619 else
791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
792 ac_dummy="$PATH"
793 for ac_dir in $ac_dummy; do
794 test -z "$ac_dir" && ac_dir=.
795 if test -f $ac_dir/$ac_word; then
796 ac_cv_prog_CXX="$ac_prog"
797 break
1620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621 for as_dir in $PATH
1622 do
1623 IFS=$as_save_IFS
1624 test -z "$as_dir" && as_dir=.
1625 for ac_exec_ext in '' $ac_executable_extensions; do
1626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1627 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1629 break 2
1630 fi
1631 done
1632 done
1633
1634 fi
1635 fi
1636 CXX=$ac_cv_prog_CXX
1637 if test -n "$CXX"; then
1638 echo "$as_me:$LINENO: result: $CXX" >&5
1639 echo "${ECHO_T}$CXX" >&6
1640 else
1641 echo "$as_me:$LINENO: result: no" >&5
1642 echo "${ECHO_T}no" >&6
1643 fi
1644
1645 test -n "$CXX" && break
1646 done
1647 fi
1648 if test -z "$CXX"; then
1649 ac_ct_CXX=$CXX
1650 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1651 do
1652 # Extract the first word of "$ac_prog", so it can be a program name with args.
1653 set dummy $ac_prog; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659 if test -n "$ac_ct_CXX"; then
1660 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1661 else
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_ac_ct_CXX="$ac_prog"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1672 fi
1673 done
1674 done
1675
1676 fi
1677 fi
1678 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1679 if test -n "$ac_ct_CXX"; then
1680 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1681 echo "${ECHO_T}$ac_ct_CXX" >&6
1682 else
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1685 fi
1686
1687 test -n "$ac_ct_CXX" && break
1688 done
1689 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1690
1691 CXX=$ac_ct_CXX
1692 fi
1693
1694
1695 # Provide some information about the compiler.
1696 echo "$as_me:$LINENO:" \
1697 "checking for C++ compiler version" >&5
1698 ac_compiler=`set X $ac_compile; echo $2`
1699 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1700 (eval $ac_compiler --version </dev/null >&5) 2>&5
1701 ac_status=$?
1702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703 (exit $ac_status); }
1704 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1705 (eval $ac_compiler -v </dev/null >&5) 2>&5
1706 ac_status=$?
1707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1708 (exit $ac_status); }
1709 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1710 (eval $ac_compiler -V </dev/null >&5) 2>&5
1711 ac_status=$?
1712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1713 (exit $ac_status); }
1714
1715 cat >conftest.$ac_ext <<_ACEOF
1716 /* confdefs.h. */
1717 _ACEOF
1718 cat confdefs.h >>conftest.$ac_ext
1719 cat >>conftest.$ac_ext <<_ACEOF
1720 /* end confdefs.h. */
1721
1722 int
1723 main ()
1724 {
1725
1726 ;
1727 return 0;
1728 }
1729 _ACEOF
1730 ac_clean_files_save=$ac_clean_files
1731 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1732 # Try to create an executable without -o first, disregard a.out.
1733 # It will help us diagnose broken compilers, and finding out an intuition
1734 # of exeext.
1735 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1736 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1737 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1738 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1739 (eval $ac_link_default) 2>&5
1740 ac_status=$?
1741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1742 (exit $ac_status); }; then
1743 # Find the output, starting from the most likely. This scheme is
1744 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1745 # resort.
1746
1747 # Be careful to initialize this variable, since it used to be cached.
1748 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1749 ac_cv_exeext=
1750 # b.out is created by i960 compilers.
1751 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1752 do
1753 test -f "$ac_file" || continue
1754 case $ac_file in
1755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1756 ;;
1757 conftest.$ac_ext )
1758 # This is the source file.
1759 ;;
1760 [ab].out )
1761 # We found the default executable, but exeext='' is most
1762 # certainly right.
1763 break;;
1764 *.* )
1765 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1766 # FIXME: I believe we export ac_cv_exeext for Libtool,
1767 # but it would be cool to find out if it's true. Does anybody
1768 # maintain Libtool? --akim.
1769 export ac_cv_exeext
1770 break;;
1771 * )
1772 break;;
1773 esac
1774 done
1775 else
1776 echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1778
1779 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1780 See \`config.log' for more details." >&5
1781 echo "$as_me: error: C++ compiler cannot create executables
1782 See \`config.log' for more details." >&2;}
1783 { (exit 77); exit 77; }; }
1784 fi
1785
1786 ac_exeext=$ac_cv_exeext
1787 echo "$as_me:$LINENO: result: $ac_file" >&5
1788 echo "${ECHO_T}$ac_file" >&6
1789
1790 # Check the compiler produces executables we can run. If not, either
1791 # the compiler is broken, or we cross compile.
1792 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1793 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1794 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1795 # If not cross compiling, check that we can run a simple program.
1796 if test "$cross_compiling" != yes; then
1797 if { ac_try='./$ac_file'
1798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1799 (eval $ac_try) 2>&5
1800 ac_status=$?
1801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1802 (exit $ac_status); }; }; then
1803 cross_compiling=no
1804 else
1805 if test "$cross_compiling" = maybe; then
1806 cross_compiling=yes
1807 else
1808 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1809 If you meant to cross compile, use \`--host'.
1810 See \`config.log' for more details." >&5
1811 echo "$as_me: error: cannot run C++ compiled programs.
1812 If you meant to cross compile, use \`--host'.
1813 See \`config.log' for more details." >&2;}
1814 { (exit 1); exit 1; }; }
7981815 fi
799 done
800 IFS="$ac_save_ifs"
801 fi
802 fi
803 CXX="$ac_cv_prog_CXX"
804 if test -n "$CXX"; then
805 echo "$ac_t""$CXX" 1>&6
806 else
807 echo "$ac_t""no" 1>&6
808 fi
809
810 test -n "$CXX" && break
1816 fi
1817 fi
1818 echo "$as_me:$LINENO: result: yes" >&5
1819 echo "${ECHO_T}yes" >&6
1820
1821 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1822 ac_clean_files=$ac_clean_files_save
1823 # Check the compiler produces executables we can run. If not, either
1824 # the compiler is broken, or we cross compile.
1825 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1826 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1827 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1828 echo "${ECHO_T}$cross_compiling" >&6
1829
1830 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1831 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1833 (eval $ac_link) 2>&5
1834 ac_status=$?
1835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836 (exit $ac_status); }; then
1837 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1838 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1839 # work properly (i.e., refer to `conftest.exe'), while it won't with
1840 # `rm'.
1841 for ac_file in conftest.exe conftest conftest.*; do
1842 test -f "$ac_file" || continue
1843 case $ac_file in
1844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1845 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1846 export ac_cv_exeext
1847 break;;
1848 * ) break;;
1849 esac
8111850 done
812 test -n "$CXX" || CXX="gcc"
813
814
815 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
816 echo "configure:818: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
817
818 ac_ext=C
819 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
820 ac_cpp='$CXXCPP $CPPFLAGS'
821 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
822 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
823 cross_compiling=$ac_cv_prog_cxx_cross
824
825 cat > conftest.$ac_ext << EOF
826
827 #line 829 "configure"
828 #include "confdefs.h"
829
830 int main(){return(0);}
831 EOF
832 if { (eval echo configure:834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
833 ac_cv_prog_cxx_works=yes
834 # If we can't run a trivial program, we are probably using a cross compiler.
835 if (./conftest; exit) 2>/dev/null; then
836 ac_cv_prog_cxx_cross=no
837 else
838 ac_cv_prog_cxx_cross=yes
839 fi
840 else
841 echo "configure: failed program was:" >&5
842 cat conftest.$ac_ext >&5
843 ac_cv_prog_cxx_works=no
844 fi
845 rm -fr conftest*
846 ac_ext=c
847 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
848 ac_cpp='$CPP $CPPFLAGS'
849 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
850 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
851 cross_compiling=$ac_cv_prog_cc_cross
852
853 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
854 if test $ac_cv_prog_cxx_works = no; then
855 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
856 fi
857 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
858 echo "configure:860: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
859 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
860 cross_compiling=$ac_cv_prog_cxx_cross
861
862 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
863 echo "configure:865: checking whether we are using GNU C++" >&5
864 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
865 echo $ac_n "(cached) $ac_c" 1>&6
866 else
867 cat > conftest.C <<EOF
868 #ifdef __GNUC__
869 yes;
1851 else
1852 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1853 See \`config.log' for more details." >&5
1854 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1855 See \`config.log' for more details." >&2;}
1856 { (exit 1); exit 1; }; }
1857 fi
1858
1859 rm -f conftest$ac_cv_exeext
1860 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1861 echo "${ECHO_T}$ac_cv_exeext" >&6
1862
1863 rm -f conftest.$ac_ext
1864 EXEEXT=$ac_cv_exeext
1865 ac_exeext=$EXEEXT
1866 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1867 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1868 if test "${ac_cv_objext+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1870 else
1871 cat >conftest.$ac_ext <<_ACEOF
1872 /* confdefs.h. */
1873 _ACEOF
1874 cat confdefs.h >>conftest.$ac_ext
1875 cat >>conftest.$ac_ext <<_ACEOF
1876 /* end confdefs.h. */
1877
1878 int
1879 main ()
1880 {
1881
1882 ;
1883 return 0;
1884 }
1885 _ACEOF
1886 rm -f conftest.o conftest.obj
1887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1888 (eval $ac_compile) 2>&5
1889 ac_status=$?
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; then
1892 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1893 case $ac_file in
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1895 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1896 break;;
1897 esac
1898 done
1899 else
1900 echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1902
1903 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1904 See \`config.log' for more details." >&5
1905 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1906 See \`config.log' for more details." >&2;}
1907 { (exit 1); exit 1; }; }
1908 fi
1909
1910 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1911 fi
1912 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1913 echo "${ECHO_T}$ac_cv_objext" >&6
1914 OBJEXT=$ac_cv_objext
1915 ac_objext=$OBJEXT
1916 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1917 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1918 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 cat >conftest.$ac_ext <<_ACEOF
1922 /* confdefs.h. */
1923 _ACEOF
1924 cat confdefs.h >>conftest.$ac_ext
1925 cat >>conftest.$ac_ext <<_ACEOF
1926 /* end confdefs.h. */
1927
1928 int
1929 main ()
1930 {
1931 #ifndef __GNUC__
1932 choke me
8701933 #endif
871 EOF
872 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
873 ac_cv_prog_gxx=yes
874 else
875 ac_cv_prog_gxx=no
876 fi
877 fi
878
879 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
880
881 if test $ac_cv_prog_gxx = yes; then
882 GXX=yes
883 else
884 GXX=
885 fi
886
887 ac_test_CXXFLAGS="${CXXFLAGS+set}"
888 ac_save_CXXFLAGS="$CXXFLAGS"
889 CXXFLAGS=
890 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
891 echo "configure:893: checking whether ${CXX-g++} accepts -g" >&5
892 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
893 echo $ac_n "(cached) $ac_c" 1>&6
894 else
895 echo 'void f(){}' > conftest.cc
896 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1934
1935 ;
1936 return 0;
1937 }
1938 _ACEOF
1939 rm -f conftest.$ac_objext
1940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1941 (eval $ac_compile) 2>conftest.er1
1942 ac_status=$?
1943 grep -v '^ *+' conftest.er1 >conftest.err
1944 rm -f conftest.er1
1945 cat conftest.err >&5
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); } &&
1948 { ac_try='test -z "$ac_cxx_werror_flag"
1949 || test ! -s conftest.err'
1950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951 (eval $ac_try) 2>&5
1952 ac_status=$?
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }; } &&
1955 { ac_try='test -s conftest.$ac_objext'
1956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1957 (eval $ac_try) 2>&5
1958 ac_status=$?
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }; }; then
1961 ac_compiler_gnu=yes
1962 else
1963 echo "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.$ac_ext >&5
1965
1966 ac_compiler_gnu=no
1967 fi
1968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1969 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1970
1971 fi
1972 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1973 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1974 GXX=`test $ac_compiler_gnu = yes && echo yes`
1975 ac_test_CXXFLAGS=${CXXFLAGS+set}
1976 ac_save_CXXFLAGS=$CXXFLAGS
1977 CXXFLAGS="-g"
1978 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1979 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1980 if test "${ac_cv_prog_cxx_g+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983 cat >conftest.$ac_ext <<_ACEOF
1984 /* confdefs.h. */
1985 _ACEOF
1986 cat confdefs.h >>conftest.$ac_ext
1987 cat >>conftest.$ac_ext <<_ACEOF
1988 /* end confdefs.h. */
1989
1990 int
1991 main ()
1992 {
1993
1994 ;
1995 return 0;
1996 }
1997 _ACEOF
1998 rm -f conftest.$ac_objext
1999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2000 (eval $ac_compile) 2>conftest.er1
2001 ac_status=$?
2002 grep -v '^ *+' conftest.er1 >conftest.err
2003 rm -f conftest.er1
2004 cat conftest.err >&5
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); } &&
2007 { ac_try='test -z "$ac_cxx_werror_flag"
2008 || test ! -s conftest.err'
2009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 (eval $ac_try) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; } &&
2014 { ac_try='test -s conftest.$ac_objext'
2015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2016 (eval $ac_try) 2>&5
2017 ac_status=$?
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); }; }; then
8972020 ac_cv_prog_cxx_g=yes
8982021 else
899 ac_cv_prog_cxx_g=no
900 fi
901 rm -f conftest*
902
903 fi
904
905 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2022 echo "$as_me: failed program was:" >&5
2023 sed 's/^/| /' conftest.$ac_ext >&5
2024
2025 ac_cv_prog_cxx_g=no
2026 fi
2027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2028 fi
2029 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2030 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
9062031 if test "$ac_test_CXXFLAGS" = set; then
907 CXXFLAGS="$ac_save_CXXFLAGS"
2032 CXXFLAGS=$ac_save_CXXFLAGS
9082033 elif test $ac_cv_prog_cxx_g = yes; then
9092034 if test "$GXX" = yes; then
9102035 CXXFLAGS="-g -O2"
9182043 CXXFLAGS=
9192044 fi
9202045 fi
2046 for ac_declaration in \
2047 '' \
2048 'extern "C" void std::exit (int) throw (); using std::exit;' \
2049 'extern "C" void std::exit (int); using std::exit;' \
2050 'extern "C" void exit (int) throw ();' \
2051 'extern "C" void exit (int);' \
2052 'void exit (int);'
2053 do
2054 cat >conftest.$ac_ext <<_ACEOF
2055 /* confdefs.h. */
2056 _ACEOF
2057 cat confdefs.h >>conftest.$ac_ext
2058 cat >>conftest.$ac_ext <<_ACEOF
2059 /* end confdefs.h. */
2060 $ac_declaration
2061 #include <stdlib.h>
2062 int
2063 main ()
2064 {
2065 exit (42);
2066 ;
2067 return 0;
2068 }
2069 _ACEOF
2070 rm -f conftest.$ac_objext
2071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2072 (eval $ac_compile) 2>conftest.er1
2073 ac_status=$?
2074 grep -v '^ *+' conftest.er1 >conftest.err
2075 rm -f conftest.er1
2076 cat conftest.err >&5
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); } &&
2079 { ac_try='test -z "$ac_cxx_werror_flag"
2080 || test ! -s conftest.err'
2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082 (eval $ac_try) 2>&5
2083 ac_status=$?
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }; } &&
2086 { ac_try='test -s conftest.$ac_objext'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 (eval $ac_try) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; }; then
2092 :
2093 else
2094 echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2096
2097 continue
2098 fi
2099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2100 cat >conftest.$ac_ext <<_ACEOF
2101 /* confdefs.h. */
2102 _ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h. */
2106 $ac_declaration
2107 int
2108 main ()
2109 {
2110 exit (42);
2111 ;
2112 return 0;
2113 }
2114 _ACEOF
2115 rm -f conftest.$ac_objext
2116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117 (eval $ac_compile) 2>conftest.er1
2118 ac_status=$?
2119 grep -v '^ *+' conftest.er1 >conftest.err
2120 rm -f conftest.er1
2121 cat conftest.err >&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); } &&
2124 { ac_try='test -z "$ac_cxx_werror_flag"
2125 || test ! -s conftest.err'
2126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127 (eval $ac_try) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; } &&
2131 { ac_try='test -s conftest.$ac_objext'
2132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2133 (eval $ac_try) 2>&5
2134 ac_status=$?
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }; }; then
2137 break
2138 else
2139 echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2141
2142 fi
2143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2144 done
2145 rm -f conftest*
2146 if test -n "$ac_declaration"; then
2147 echo '#ifdef __cplusplus' >>confdefs.h
2148 echo $ac_declaration >>confdefs.h
2149 echo '#endif' >>confdefs.h
2150 fi
2151
2152 ac_ext=c
2153 ac_cpp='$CPP $CPPFLAGS'
2154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9212157
9222158 # Find a good install program. We prefer a C program (faster),
9232159 # so one script is as good as another. But avoid the broken or
9262162 # SunOS /usr/etc/install
9272163 # IRIX /sbin/install
9282164 # AIX /bin/install
2165 # AmigaOS /C/install, which installs bootblocks on floppy discs
9292166 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9302167 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9312168 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2169 # OS/2's system install, which has a completely different semantic
9322170 # ./install, which can be erroneously created by make from ./install.sh.
933 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
934 echo "configure:936: checking for a BSD compatible install" >&5
2171 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2172 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9352173 if test -z "$INSTALL"; then
936 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
938 else
939 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
940 for ac_dir in $PATH; do
941 # Account for people who put trailing slashes in PATH elements.
942 case "$ac_dir/" in
943 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
944 *)
945 # OSF1 and SCO ODT 3.0 have their own names for install.
946 # Don't use installbsd from OSF since it installs stuff as root
947 # by default.
948 for ac_prog in ginstall scoinst install; do
949 if test -f $ac_dir/$ac_prog; then
2174 if test "${ac_cv_path_install+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 # Account for people who put trailing slashes in PATH elements.
2183 case $as_dir/ in
2184 ./ | .// | /cC/* | \
2185 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2186 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2187 /usr/ucb/* ) ;;
2188 *)
2189 # OSF1 and SCO ODT 3.0 have their own names for install.
2190 # Don't use installbsd from OSF since it installs stuff as root
2191 # by default.
2192 for ac_prog in ginstall scoinst install; do
2193 for ac_exec_ext in '' $ac_executable_extensions; do
2194 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9502195 if test $ac_prog = install &&
951 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2196 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9522197 # AIX install. It has an incompatible calling convention.
9532198 :
2199 elif test $ac_prog = install &&
2200 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2201 # program-specific install script used by HP pwplus--don't use.
2202 :
9542203 else
955 ac_cv_path_install="$ac_dir/$ac_prog -c"
956 break 2
2204 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2205 break 3
9572206 fi
9582207 fi
9592208 done
960 ;;
961 esac
962 done
963 IFS="$ac_save_IFS"
2209 done
2210 ;;
2211 esac
2212 done
2213
9642214
9652215 fi
9662216 if test "${ac_cv_path_install+set}" = set; then
967 INSTALL="$ac_cv_path_install"
2217 INSTALL=$ac_cv_path_install
9682218 else
9692219 # As a last resort, use the slow shell script. We don't cache a
9702220 # path for INSTALL within a source directory, because that will
9712221 # break other packages using the cache if that directory is
9722222 # removed, or if the path is relative.
973 INSTALL="$ac_install_sh"
2223 INSTALL=$ac_install_sh
9742224 fi
9752225 fi
976 echo "$ac_t""$INSTALL" 1>&6
2226 echo "$as_me:$LINENO: result: $INSTALL" >&5
2227 echo "${ECHO_T}$INSTALL" >&6
9772228
9782229 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9792230 # It thinks the first close brace ends the variable substitution.
9802231 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9812232
982 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2233 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9832234
9842235 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9852236
9862237
987 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
988 echo "configure:990: checking how to run the C preprocessor" >&5
2238
2239 ac_ext=c
2240 ac_cpp='$CPP $CPPFLAGS'
2241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2244 if test -n "$ac_tool_prefix"; then
2245 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2246 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2247 echo "$as_me:$LINENO: checking for $ac_word" >&5
2248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2249 if test "${ac_cv_prog_CC+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252 if test -n "$CC"; then
2253 ac_cv_prog_CC="$CC" # Let the user override the test.
2254 else
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH
2257 do
2258 IFS=$as_save_IFS
2259 test -z "$as_dir" && as_dir=.
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2262 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264 break 2
2265 fi
2266 done
2267 done
2268
2269 fi
2270 fi
2271 CC=$ac_cv_prog_CC
2272 if test -n "$CC"; then
2273 echo "$as_me:$LINENO: result: $CC" >&5
2274 echo "${ECHO_T}$CC" >&6
2275 else
2276 echo "$as_me:$LINENO: result: no" >&5
2277 echo "${ECHO_T}no" >&6
2278 fi
2279
2280 fi
2281 if test -z "$ac_cv_prog_CC"; then
2282 ac_ct_CC=$CC
2283 # Extract the first word of "gcc", so it can be a program name with args.
2284 set dummy gcc; ac_word=$2
2285 echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290 if test -n "$ac_ct_CC"; then
2291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300 ac_cv_prog_ac_ct_CC="gcc"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2303 fi
2304 done
2305 done
2306
2307 fi
2308 fi
2309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2310 if test -n "$ac_ct_CC"; then
2311 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2312 echo "${ECHO_T}$ac_ct_CC" >&6
2313 else
2314 echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2316 fi
2317
2318 CC=$ac_ct_CC
2319 else
2320 CC="$ac_cv_prog_CC"
2321 fi
2322
2323 if test -z "$CC"; then
2324 if test -n "$ac_tool_prefix"; then
2325 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2326 set dummy ${ac_tool_prefix}cc; ac_word=$2
2327 echo "$as_me:$LINENO: checking for $ac_word" >&5
2328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2329 if test "${ac_cv_prog_CC+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332 if test -n "$CC"; then
2333 ac_cv_prog_CC="$CC" # Let the user override the test.
2334 else
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 for as_dir in $PATH
2337 do
2338 IFS=$as_save_IFS
2339 test -z "$as_dir" && as_dir=.
2340 for ac_exec_ext in '' $ac_executable_extensions; do
2341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2342 ac_cv_prog_CC="${ac_tool_prefix}cc"
2343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344 break 2
2345 fi
2346 done
2347 done
2348
2349 fi
2350 fi
2351 CC=$ac_cv_prog_CC
2352 if test -n "$CC"; then
2353 echo "$as_me:$LINENO: result: $CC" >&5
2354 echo "${ECHO_T}$CC" >&6
2355 else
2356 echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6
2358 fi
2359
2360 fi
2361 if test -z "$ac_cv_prog_CC"; then
2362 ac_ct_CC=$CC
2363 # Extract the first word of "cc", so it can be a program name with args.
2364 set dummy cc; ac_word=$2
2365 echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 if test -n "$ac_ct_CC"; then
2371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2375 do
2376 IFS=$as_save_IFS
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2380 ac_cv_prog_ac_ct_CC="cc"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 break 2
2383 fi
2384 done
2385 done
2386
2387 fi
2388 fi
2389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2390 if test -n "$ac_ct_CC"; then
2391 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2392 echo "${ECHO_T}$ac_ct_CC" >&6
2393 else
2394 echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6
2396 fi
2397
2398 CC=$ac_ct_CC
2399 else
2400 CC="$ac_cv_prog_CC"
2401 fi
2402
2403 fi
2404 if test -z "$CC"; then
2405 # Extract the first word of "cc", so it can be a program name with args.
2406 set dummy cc; ac_word=$2
2407 echo "$as_me:$LINENO: checking for $ac_word" >&5
2408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2409 if test "${ac_cv_prog_CC+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2411 else
2412 if test -n "$CC"; then
2413 ac_cv_prog_CC="$CC" # Let the user override the test.
2414 else
2415 ac_prog_rejected=no
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2423 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2424 ac_prog_rejected=yes
2425 continue
2426 fi
2427 ac_cv_prog_CC="cc"
2428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 break 2
2430 fi
2431 done
2432 done
2433
2434 if test $ac_prog_rejected = yes; then
2435 # We found a bogon in the path, so make sure we never use it.
2436 set dummy $ac_cv_prog_CC
2437 shift
2438 if test $# != 0; then
2439 # We chose a different compiler from the bogus one.
2440 # However, it has the same basename, so the bogon will be chosen
2441 # first if we set CC to just the basename; use the full file name.
2442 shift
2443 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2444 fi
2445 fi
2446 fi
2447 fi
2448 CC=$ac_cv_prog_CC
2449 if test -n "$CC"; then
2450 echo "$as_me:$LINENO: result: $CC" >&5
2451 echo "${ECHO_T}$CC" >&6
2452 else
2453 echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6
2455 fi
2456
2457 fi
2458 if test -z "$CC"; then
2459 if test -n "$ac_tool_prefix"; then
2460 for ac_prog in cl
2461 do
2462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2463 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2464 echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2466 if test "${ac_cv_prog_CC+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469 if test -n "$CC"; then
2470 ac_cv_prog_CC="$CC" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2482 fi
2483 done
2484 done
2485
2486 fi
2487 fi
2488 CC=$ac_cv_prog_CC
2489 if test -n "$CC"; then
2490 echo "$as_me:$LINENO: result: $CC" >&5
2491 echo "${ECHO_T}$CC" >&6
2492 else
2493 echo "$as_me:$LINENO: result: no" >&5
2494 echo "${ECHO_T}no" >&6
2495 fi
2496
2497 test -n "$CC" && break
2498 done
2499 fi
2500 if test -z "$CC"; then
2501 ac_ct_CC=$CC
2502 for ac_prog in cl
2503 do
2504 # Extract the first word of "$ac_prog", so it can be a program name with args.
2505 set dummy $ac_prog; ac_word=$2
2506 echo "$as_me:$LINENO: checking for $ac_word" >&5
2507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2508 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511 if test -n "$ac_ct_CC"; then
2512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2513 else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2516 do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2521 ac_cv_prog_ac_ct_CC="$ac_prog"
2522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 break 2
2524 fi
2525 done
2526 done
2527
2528 fi
2529 fi
2530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2531 if test -n "$ac_ct_CC"; then
2532 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2533 echo "${ECHO_T}$ac_ct_CC" >&6
2534 else
2535 echo "$as_me:$LINENO: result: no" >&5
2536 echo "${ECHO_T}no" >&6
2537 fi
2538
2539 test -n "$ac_ct_CC" && break
2540 done
2541
2542 CC=$ac_ct_CC
2543 fi
2544
2545 fi
2546
2547
2548 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2549 See \`config.log' for more details." >&5
2550 echo "$as_me: error: no acceptable C compiler found in \$PATH
2551 See \`config.log' for more details." >&2;}
2552 { (exit 1); exit 1; }; }
2553
2554 # Provide some information about the compiler.
2555 echo "$as_me:$LINENO:" \
2556 "checking for C compiler version" >&5
2557 ac_compiler=`set X $ac_compile; echo $2`
2558 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2559 (eval $ac_compiler --version </dev/null >&5) 2>&5
2560 ac_status=$?
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }
2563 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2564 (eval $ac_compiler -v </dev/null >&5) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }
2568 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2569 (eval $ac_compiler -V </dev/null >&5) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }
2573
2574 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2575 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2576 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579 cat >conftest.$ac_ext <<_ACEOF
2580 /* confdefs.h. */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h. */
2585
2586 int
2587 main ()
2588 {
2589 #ifndef __GNUC__
2590 choke me
2591 #endif
2592
2593 ;
2594 return 0;
2595 }
2596 _ACEOF
2597 rm -f conftest.$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599 (eval $ac_compile) 2>conftest.er1
2600 ac_status=$?
2601 grep -v '^ *+' conftest.er1 >conftest.err
2602 rm -f conftest.er1
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try='test -z "$ac_c_werror_flag"
2607 || test ! -s conftest.err'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; } &&
2613 { ac_try='test -s conftest.$ac_objext'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 (eval $ac_try) 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; }; then
2619 ac_compiler_gnu=yes
2620 else
2621 echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.$ac_ext >&5
2623
2624 ac_compiler_gnu=no
2625 fi
2626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2627 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2628
2629 fi
2630 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2631 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2632 GCC=`test $ac_compiler_gnu = yes && echo yes`
2633 ac_test_CFLAGS=${CFLAGS+set}
2634 ac_save_CFLAGS=$CFLAGS
2635 CFLAGS="-g"
2636 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2637 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2638 if test "${ac_cv_prog_cc_g+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641 cat >conftest.$ac_ext <<_ACEOF
2642 /* confdefs.h. */
2643 _ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2647
2648 int
2649 main ()
2650 {
2651
2652 ;
2653 return 0;
2654 }
2655 _ACEOF
2656 rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658 (eval $ac_compile) 2>conftest.er1
2659 ac_status=$?
2660 grep -v '^ *+' conftest.er1 >conftest.err
2661 rm -f conftest.er1
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try='test -z "$ac_c_werror_flag"
2666 || test ! -s conftest.err'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 (eval $ac_try) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; } &&
2672 { ac_try='test -s conftest.$ac_objext'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 (eval $ac_try) 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2678 ac_cv_prog_cc_g=yes
2679 else
2680 echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682
2683 ac_cv_prog_cc_g=no
2684 fi
2685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686 fi
2687 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2688 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2689 if test "$ac_test_CFLAGS" = set; then
2690 CFLAGS=$ac_save_CFLAGS
2691 elif test $ac_cv_prog_cc_g = yes; then
2692 if test "$GCC" = yes; then
2693 CFLAGS="-g -O2"
2694 else
2695 CFLAGS="-g"
2696 fi
2697 else
2698 if test "$GCC" = yes; then
2699 CFLAGS="-O2"
2700 else
2701 CFLAGS=
2702 fi
2703 fi
2704 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2705 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2706 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709 ac_cv_prog_cc_stdc=no
2710 ac_save_CC=$CC
2711 cat >conftest.$ac_ext <<_ACEOF
2712 /* confdefs.h. */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2717 #include <stdarg.h>
2718 #include <stdio.h>
2719 #include <sys/types.h>
2720 #include <sys/stat.h>
2721 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2722 struct buf { int x; };
2723 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2724 static char *e (p, i)
2725 char **p;
2726 int i;
2727 {
2728 return p[i];
2729 }
2730 static char *f (char * (*g) (char **, int), char **p, ...)
2731 {
2732 char *s;
2733 va_list v;
2734 va_start (v,p);
2735 s = g (p, va_arg (v,int));
2736 va_end (v);
2737 return s;
2738 }
2739
2740 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2741 function prototypes and stuff, but not '\xHH' hex character constants.
2742 These don't provoke an error unfortunately, instead are silently treated
2743 as 'x'. The following induces an error, until -std1 is added to get
2744 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2745 array size at least. It's necessary to write '\x00'==0 to get something
2746 that's true only with -std1. */
2747 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2748
2749 int test (int i, double x);
2750 struct s1 {int (*f) (int a);};
2751 struct s2 {int (*f) (double a);};
2752 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2753 int argc;
2754 char **argv;
2755 int
2756 main ()
2757 {
2758 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2759 ;
2760 return 0;
2761 }
2762 _ACEOF
2763 # Don't try gcc -ansi; that turns off useful extensions and
2764 # breaks some systems' header files.
2765 # AIX -qlanglvl=ansi
2766 # Ultrix and OSF/1 -std1
2767 # HP-UX 10.20 and later -Ae
2768 # HP-UX older versions -Aa -D_HPUX_SOURCE
2769 # SVR4 -Xc -D__EXTENSIONS__
2770 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2771 do
2772 CC="$ac_save_CC $ac_arg"
2773 rm -f conftest.$ac_objext
2774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2775 (eval $ac_compile) 2>conftest.er1
2776 ac_status=$?
2777 grep -v '^ *+' conftest.er1 >conftest.err
2778 rm -f conftest.er1
2779 cat conftest.err >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
2782 { ac_try='test -z "$ac_c_werror_flag"
2783 || test ! -s conftest.err'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 (eval $ac_try) 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; } &&
2789 { ac_try='test -s conftest.$ac_objext'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2795 ac_cv_prog_cc_stdc=$ac_arg
2796 break
2797 else
2798 echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2800
2801 fi
2802 rm -f conftest.err conftest.$ac_objext
2803 done
2804 rm -f conftest.$ac_ext conftest.$ac_objext
2805 CC=$ac_save_CC
2806
2807 fi
2808
2809 case "x$ac_cv_prog_cc_stdc" in
2810 x|xno)
2811 echo "$as_me:$LINENO: result: none needed" >&5
2812 echo "${ECHO_T}none needed" >&6 ;;
2813 *)
2814 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2815 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2816 CC="$CC $ac_cv_prog_cc_stdc" ;;
2817 esac
2818
2819 # Some people use a C++ compiler to compile C. Since we use `exit',
2820 # in C++ we need to declare it. In case someone uses the same compiler
2821 # for both compiling C and C++ we need to have the C++ compiler decide
2822 # the declaration of exit, since it's the most demanding environment.
2823 cat >conftest.$ac_ext <<_ACEOF
2824 #ifndef __cplusplus
2825 choke me
2826 #endif
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>conftest.er1
2831 ac_status=$?
2832 grep -v '^ *+' conftest.er1 >conftest.err
2833 rm -f conftest.er1
2834 cat conftest.err >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } &&
2837 { ac_try='test -z "$ac_c_werror_flag"
2838 || test ! -s conftest.err'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 (eval $ac_try) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; } &&
2844 { ac_try='test -s conftest.$ac_objext'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 (eval $ac_try) 2>&5
2847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; }; then
2850 for ac_declaration in \
2851 '' \
2852 'extern "C" void std::exit (int) throw (); using std::exit;' \
2853 'extern "C" void std::exit (int); using std::exit;' \
2854 'extern "C" void exit (int) throw ();' \
2855 'extern "C" void exit (int);' \
2856 'void exit (int);'
2857 do
2858 cat >conftest.$ac_ext <<_ACEOF
2859 /* confdefs.h. */
2860 _ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2864 $ac_declaration
2865 #include <stdlib.h>
2866 int
2867 main ()
2868 {
2869 exit (42);
2870 ;
2871 return 0;
2872 }
2873 _ACEOF
2874 rm -f conftest.$ac_objext
2875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2876 (eval $ac_compile) 2>conftest.er1
2877 ac_status=$?
2878 grep -v '^ *+' conftest.er1 >conftest.err
2879 rm -f conftest.er1
2880 cat conftest.err >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } &&
2883 { ac_try='test -z "$ac_c_werror_flag"
2884 || test ! -s conftest.err'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 (eval $ac_try) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; } &&
2890 { ac_try='test -s conftest.$ac_objext'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 (eval $ac_try) 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 :
2897 else
2898 echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2900
2901 continue
2902 fi
2903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904 cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h. */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2910 $ac_declaration
2911 int
2912 main ()
2913 {
2914 exit (42);
2915 ;
2916 return 0;
2917 }
2918 _ACEOF
2919 rm -f conftest.$ac_objext
2920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2921 (eval $ac_compile) 2>conftest.er1
2922 ac_status=$?
2923 grep -v '^ *+' conftest.er1 >conftest.err
2924 rm -f conftest.er1
2925 cat conftest.err >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } &&
2928 { ac_try='test -z "$ac_c_werror_flag"
2929 || test ! -s conftest.err'
2930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2931 (eval $ac_try) 2>&5
2932 ac_status=$?
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; } &&
2935 { ac_try='test -s conftest.$ac_objext'
2936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 (eval $ac_try) 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; }; then
2941 break
2942 else
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2945
2946 fi
2947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2948 done
2949 rm -f conftest*
2950 if test -n "$ac_declaration"; then
2951 echo '#ifdef __cplusplus' >>confdefs.h
2952 echo $ac_declaration >>confdefs.h
2953 echo '#endif' >>confdefs.h
2954 fi
2955
2956 else
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960 fi
2961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962 ac_ext=c
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967
2968
2969 ac_ext=c
2970 ac_cpp='$CPP $CPPFLAGS'
2971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2974 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2975 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
9892976 # On Suns, sometimes $CPP names a directory.
9902977 if test -n "$CPP" && test -d "$CPP"; then
9912978 CPP=
9922979 fi
9932980 if test -z "$CPP"; then
994 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
996 else
997 # This must be in double quotes, not single quotes, because CPP may get
998 # substituted into the Makefile and "${CC-cc}" will confuse make.
999 CPP="${CC-cc} -E"
2981 if test "${ac_cv_prog_CPP+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984 # Double quotes because CPP needs to be expanded
2985 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2986 do
2987 ac_preproc_ok=false
2988 for ac_c_preproc_warn_flag in '' yes
2989 do
2990 # Use a header file that comes with gcc, so configuring glibc
2991 # with a fresh cross-compiler works.
2992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2993 # <limits.h> exists even on freestanding compilers.
10002994 # On the NeXT, cc -E runs the code through the compiler's parser,
1001 # not just through cpp.
1002 cat > conftest.$ac_ext <<EOF
1003 #line 1005 "configure"
1004 #include "confdefs.h"
1005 #include <assert.h>
1006 Syntax Error
1007 EOF
1008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1009 { (eval echo configure:1011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1010 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1011 if test -z "$ac_err"; then
2995 # not just through cpp. "Syntax error" is here to catch this case.
2996 cat >conftest.$ac_ext <<_ACEOF
2997 /* confdefs.h. */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3002 #ifdef __STDC__
3003 # include <limits.h>
3004 #else
3005 # include <assert.h>
3006 #endif
3007 Syntax error
3008 _ACEOF
3009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3011 ac_status=$?
3012 grep -v '^ *+' conftest.er1 >conftest.err
3013 rm -f conftest.er1
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } >/dev/null; then
3017 if test -s conftest.err; then
3018 ac_cpp_err=$ac_c_preproc_warn_flag
3019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3020 else
3021 ac_cpp_err=
3022 fi
3023 else
3024 ac_cpp_err=yes
3025 fi
3026 if test -z "$ac_cpp_err"; then
10123027 :
10133028 else
1014 echo "$ac_err" >&5
1015 echo "configure: failed program was:" >&5
1016 cat conftest.$ac_ext >&5
1017 rm -rf conftest*
1018 CPP="${CC-cc} -E -traditional-cpp"
1019 cat > conftest.$ac_ext <<EOF
1020 #line 1022 "configure"
1021 #include "confdefs.h"
1022 #include <assert.h>
1023 Syntax Error
1024 EOF
1025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1026 { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1028 if test -z "$ac_err"; then
3029 echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3031
3032 # Broken: fails on valid input.
3033 continue
3034 fi
3035 rm -f conftest.err conftest.$ac_ext
3036
3037 # OK, works on sane cases. Now check whether non-existent headers
3038 # can be detected and how.
3039 cat >conftest.$ac_ext <<_ACEOF
3040 /* confdefs.h. */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3045 #include <ac_nonexistent.h>
3046 _ACEOF
3047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3049 ac_status=$?
3050 grep -v '^ *+' conftest.er1 >conftest.err
3051 rm -f conftest.er1
3052 cat conftest.err >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } >/dev/null; then
3055 if test -s conftest.err; then
3056 ac_cpp_err=$ac_c_preproc_warn_flag
3057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3058 else
3059 ac_cpp_err=
3060 fi
3061 else
3062 ac_cpp_err=yes
3063 fi
3064 if test -z "$ac_cpp_err"; then
3065 # Broken: success on invalid input.
3066 continue
3067 else
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3070
3071 # Passes both tests.
3072 ac_preproc_ok=:
3073 break
3074 fi
3075 rm -f conftest.err conftest.$ac_ext
3076
3077 done
3078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3079 rm -f conftest.err conftest.$ac_ext
3080 if $ac_preproc_ok; then
3081 break
3082 fi
3083
3084 done
3085 ac_cv_prog_CPP=$CPP
3086
3087 fi
3088 CPP=$ac_cv_prog_CPP
3089 else
3090 ac_cv_prog_CPP=$CPP
3091 fi
3092 echo "$as_me:$LINENO: result: $CPP" >&5
3093 echo "${ECHO_T}$CPP" >&6
3094 ac_preproc_ok=false
3095 for ac_c_preproc_warn_flag in '' yes
3096 do
3097 # Use a header file that comes with gcc, so configuring glibc
3098 # with a fresh cross-compiler works.
3099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3100 # <limits.h> exists even on freestanding compilers.
3101 # On the NeXT, cc -E runs the code through the compiler's parser,
3102 # not just through cpp. "Syntax error" is here to catch this case.
3103 cat >conftest.$ac_ext <<_ACEOF
3104 /* confdefs.h. */
3105 _ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h. */
3109 #ifdef __STDC__
3110 # include <limits.h>
3111 #else
3112 # include <assert.h>
3113 #endif
3114 Syntax error
3115 _ACEOF
3116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3118 ac_status=$?
3119 grep -v '^ *+' conftest.er1 >conftest.err
3120 rm -f conftest.er1
3121 cat conftest.err >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } >/dev/null; then
3124 if test -s conftest.err; then
3125 ac_cpp_err=$ac_c_preproc_warn_flag
3126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3127 else
3128 ac_cpp_err=
3129 fi
3130 else
3131 ac_cpp_err=yes
3132 fi
3133 if test -z "$ac_cpp_err"; then
10293134 :
10303135 else
1031 echo "$ac_err" >&5
1032 echo "configure: failed program was:" >&5
1033 cat conftest.$ac_ext >&5
1034 rm -rf conftest*
1035 CPP="${CC-cc} -nologo -E"
1036 cat > conftest.$ac_ext <<EOF
1037 #line 1039 "configure"
1038 #include "confdefs.h"
1039 #include <assert.h>
1040 Syntax Error
1041 EOF
1042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1043 { (eval echo configure:1045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1045 if test -z "$ac_err"; then
3136 echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3138
3139 # Broken: fails on valid input.
3140 continue
3141 fi
3142 rm -f conftest.err conftest.$ac_ext
3143
3144 # OK, works on sane cases. Now check whether non-existent headers
3145 # can be detected and how.
3146 cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h. */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3152 #include <ac_nonexistent.h>
3153 _ACEOF
3154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3156 ac_status=$?
3157 grep -v '^ *+' conftest.er1 >conftest.err
3158 rm -f conftest.er1
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } >/dev/null; then
3162 if test -s conftest.err; then
3163 ac_cpp_err=$ac_c_preproc_warn_flag
3164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3165 else
3166 ac_cpp_err=
3167 fi
3168 else
3169 ac_cpp_err=yes
3170 fi
3171 if test -z "$ac_cpp_err"; then
3172 # Broken: success on invalid input.
3173 continue
3174 else
3175 echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3177
3178 # Passes both tests.
3179 ac_preproc_ok=:
3180 break
3181 fi
3182 rm -f conftest.err conftest.$ac_ext
3183
3184 done
3185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3186 rm -f conftest.err conftest.$ac_ext
3187 if $ac_preproc_ok; then
10463188 :
10473189 else
1048 echo "$ac_err" >&5
1049 echo "configure: failed program was:" >&5
1050 cat conftest.$ac_ext >&5
1051 rm -rf conftest*
1052 CPP=/lib/cpp
3190 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3191 See \`config.log' for more details." >&5
3192 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3193 See \`config.log' for more details." >&2;}
3194 { (exit 1); exit 1; }; }
3195 fi
3196
3197 ac_ext=c
3198 ac_cpp='$CPP $CPPFLAGS'
3199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202
3203
3204 echo "$as_me:$LINENO: checking for egrep" >&5
3205 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3206 if test "${ac_cv_prog_egrep+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3210 then ac_cv_prog_egrep='grep -E'
3211 else ac_cv_prog_egrep='egrep'
3212 fi
3213 fi
3214 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3215 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3216 EGREP=$ac_cv_prog_egrep
3217
3218
3219 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3220 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3221 if test "${ac_cv_header_stdc+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224 cat >conftest.$ac_ext <<_ACEOF
3225 /* confdefs.h. */
3226 _ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3230 #include <stdlib.h>
3231 #include <stdarg.h>
3232 #include <string.h>
3233 #include <float.h>
3234
3235 int
3236 main ()
3237 {
3238
3239 ;
3240 return 0;
3241 }
3242 _ACEOF
3243 rm -f conftest.$ac_objext
3244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3245 (eval $ac_compile) 2>conftest.er1
3246 ac_status=$?
3247 grep -v '^ *+' conftest.er1 >conftest.err
3248 rm -f conftest.er1
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } &&
3252 { ac_try='test -z "$ac_c_werror_flag"
3253 || test ! -s conftest.err'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; } &&
3259 { ac_try='test -s conftest.$ac_objext'
3260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261 (eval $ac_try) 2>&5
3262 ac_status=$?
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; }; then
3265 ac_cv_header_stdc=yes
3266 else
3267 echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3269
3270 ac_cv_header_stdc=no
3271 fi
3272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3273
3274 if test $ac_cv_header_stdc = yes; then
3275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 #include <string.h>
3283
3284 _ACEOF
3285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3286 $EGREP "memchr" >/dev/null 2>&1; then
3287 :
3288 else
3289 ac_cv_header_stdc=no
10533290 fi
10543291 rm -f conftest*
3292
3293 fi
3294
3295 if test $ac_cv_header_stdc = yes; then
3296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3297 cat >conftest.$ac_ext <<_ACEOF
3298 /* confdefs.h. */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3303 #include <stdlib.h>
3304
3305 _ACEOF
3306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3307 $EGREP "free" >/dev/null 2>&1; then
3308 :
3309 else
3310 ac_cv_header_stdc=no
10553311 fi
10563312 rm -f conftest*
1057 fi
1058 rm -f conftest*
1059 ac_cv_prog_CPP="$CPP"
1060 fi
1061 CPP="$ac_cv_prog_CPP"
1062 else
1063 ac_cv_prog_CPP="$CPP"
1064 fi
1065 echo "$ac_t""$CPP" 1>&6
1066
1067 for ac_hdr in curses.h signal.h sys/time.h sys/types.h sys/stat.h \
3313
3314 fi
3315
3316 if test $ac_cv_header_stdc = yes; then
3317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3318 if test "$cross_compiling" = yes; then
3319 :
3320 else
3321 cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3327 #include <ctype.h>
3328 #if ((' ' & 0x0FF) == 0x020)
3329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3331 #else
3332 # define ISLOWER(c) \
3333 (('a' <= (c) && (c) <= 'i') \
3334 || ('j' <= (c) && (c) <= 'r') \
3335 || ('s' <= (c) && (c) <= 'z'))
3336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3337 #endif
3338
3339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3340 int
3341 main ()
3342 {
3343 int i;
3344 for (i = 0; i < 256; i++)
3345 if (XOR (islower (i), ISLOWER (i))
3346 || toupper (i) != TOUPPER (i))
3347 exit(2);
3348 exit (0);
3349 }
3350 _ACEOF
3351 rm -f conftest$ac_exeext
3352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3353 (eval $ac_link) 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 (eval $ac_try) 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 :
3363 else
3364 echo "$as_me: program exited with status $ac_status" >&5
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3367
3368 ( exit $ac_status )
3369 ac_cv_header_stdc=no
3370 fi
3371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3372 fi
3373 fi
3374 fi
3375 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3376 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3377 if test $ac_cv_header_stdc = yes; then
3378
3379 cat >>confdefs.h <<\_ACEOF
3380 #define STDC_HEADERS 1
3381 _ACEOF
3382
3383 fi
3384
3385 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3396 inttypes.h stdint.h unistd.h
3397 do
3398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3399 echo "$as_me:$LINENO: checking for $ac_header" >&5
3400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404 cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h. */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3410 $ac_includes_default
3411
3412 #include <$ac_header>
3413 _ACEOF
3414 rm -f conftest.$ac_objext
3415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3416 (eval $ac_compile) 2>conftest.er1
3417 ac_status=$?
3418 grep -v '^ *+' conftest.er1 >conftest.err
3419 rm -f conftest.er1
3420 cat conftest.err >&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } &&
3423 { ac_try='test -z "$ac_c_werror_flag"
3424 || test ! -s conftest.err'
3425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426 (eval $ac_try) 2>&5
3427 ac_status=$?
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); }; } &&
3430 { ac_try='test -s conftest.$ac_objext'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 (eval $ac_try) 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; }; then
3436 eval "$as_ac_Header=yes"
3437 else
3438 echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3440
3441 eval "$as_ac_Header=no"
3442 fi
3443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3444 fi
3445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3448 cat >>confdefs.h <<_ACEOF
3449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3450 _ACEOF
3451
3452 fi
3453
3454 done
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467 for ac_header in curses.h signal.h sys/time.h sys/types.h sys/stat.h \
10683468 unistd.h fcntl.h time.h stdlib.h math.h
10693469 do
1070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1072 echo "configure:1074: checking for $ac_hdr" >&5
1073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1075 else
1076 cat > conftest.$ac_ext <<EOF
1077 #line 1079 "configure"
1078 #include "confdefs.h"
1079 #include <$ac_hdr>
1080 EOF
1081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1082 { (eval echo configure:1084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1084 if test -z "$ac_err"; then
1085 rm -rf conftest*
1086 eval "ac_cv_header_$ac_safe=yes"
1087 else
1088 echo "$ac_err" >&5
1089 echo "configure: failed program was:" >&5
1090 cat conftest.$ac_ext >&5
1091 rm -rf conftest*
1092 eval "ac_cv_header_$ac_safe=no"
1093 fi
1094 rm -f conftest*
1095 fi
1096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1097 echo "$ac_t""yes" 1>&6
1098 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1099 cat >> confdefs.h <<EOF
1100 #define $ac_tr_hdr 1
1101 EOF
1102
1103 else
1104 echo "$ac_t""no" 1>&6
1105 \
1106 { echo "configure: error: header missing" 1>&2; exit 1; }
1107 fi
3470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3472 echo "$as_me:$LINENO: checking for $ac_header" >&5
3473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 fi
3477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3479 else
3480 # Is the header compilable?
3481 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3483 cat >conftest.$ac_ext <<_ACEOF
3484 /* confdefs.h. */
3485 _ACEOF
3486 cat confdefs.h >>conftest.$ac_ext
3487 cat >>conftest.$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3489 $ac_includes_default
3490 #include <$ac_header>
3491 _ACEOF
3492 rm -f conftest.$ac_objext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3494 (eval $ac_compile) 2>conftest.er1
3495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } &&
3501 { ac_try='test -z "$ac_c_werror_flag"
3502 || test ! -s conftest.err'
3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 (eval $ac_try) 2>&5
3505 ac_status=$?
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; } &&
3508 { ac_try='test -s conftest.$ac_objext'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 (eval $ac_try) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3514 ac_header_compiler=yes
3515 else
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519 ac_header_compiler=no
3520 fi
3521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3523 echo "${ECHO_T}$ac_header_compiler" >&6
3524
3525 # Is the header present?
3526 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3528 cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h. */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3534 #include <$ac_header>
3535 _ACEOF
3536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3538 ac_status=$?
3539 grep -v '^ *+' conftest.er1 >conftest.err
3540 rm -f conftest.er1
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } >/dev/null; then
3544 if test -s conftest.err; then
3545 ac_cpp_err=$ac_c_preproc_warn_flag
3546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3547 else
3548 ac_cpp_err=
3549 fi
3550 else
3551 ac_cpp_err=yes
3552 fi
3553 if test -z "$ac_cpp_err"; then
3554 ac_header_preproc=yes
3555 else
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3558
3559 ac_header_preproc=no
3560 fi
3561 rm -f conftest.err conftest.$ac_ext
3562 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3563 echo "${ECHO_T}$ac_header_preproc" >&6
3564
3565 # So? What about this header?
3566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3567 yes:no: )
3568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3572 ac_header_preproc=yes
3573 ;;
3574 no:yes:* )
3575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3587 (
3588 cat <<\_ASBOX
3589 ## ------------------------------------------ ##
3590 ## Report this to the AC_PACKAGE_NAME lists. ##
3591 ## ------------------------------------------ ##
3592 _ASBOX
3593 ) |
3594 sed "s/^/$as_me: WARNING: /" >&2
3595 ;;
3596 esac
3597 echo "$as_me:$LINENO: checking for $ac_header" >&5
3598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 else
3602 eval "$as_ac_Header=\$ac_header_preproc"
3603 fi
3604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3606
3607 fi
3608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3609 cat >>confdefs.h <<_ACEOF
3610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3611 _ACEOF
3612
3613 else
3614 \
3615 { { echo "$as_me:$LINENO: error: header missing" >&5
3616 echo "$as_me: error: header missing" >&2;}
3617 { (exit 1); exit 1; }; }
3618 fi
3619
11083620 done
11093621
1110 echo $ac_n "checking for wgetch in -lncurses""... $ac_c" 1>&6
1111 echo "configure:1113: checking for wgetch in -lncurses" >&5
1112 ac_lib_var=`echo ncurses'_'wgetch | sed 'y%./+-%__p_%'`
1113 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1115 else
1116 ac_save_LIBS="$LIBS"
3622
3623 echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
3624 echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6
3625 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628 ac_check_lib_save_LIBS=$LIBS
11173629 LIBS="-lncurses $LIBS"
1118 cat > conftest.$ac_ext <<EOF
1119 #line 1121 "configure"
1120 #include "confdefs.h"
3630 cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h. */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3636
11213637 /* Override any gcc2 internal prototype to avoid an error. */
3638 #ifdef __cplusplus
3639 extern "C"
3640 #endif
11223641 /* We use char because int might match the return type of a gcc2
1123 builtin and then its argument prototype would still apply. */
1124 char wgetch();
1125
1126 int main() {
1127 wgetch()
1128 ; return 0; }
1129 EOF
1130 if { (eval echo configure:1132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1131 rm -rf conftest*
1132 eval "ac_cv_lib_$ac_lib_var=yes"
1133 else
1134 echo "configure: failed program was:" >&5
1135 cat conftest.$ac_ext >&5
1136 rm -rf conftest*
1137 eval "ac_cv_lib_$ac_lib_var=no"
1138 fi
1139 rm -f conftest*
1140 LIBS="$ac_save_LIBS"
1141
1142 fi
1143 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1144 echo "$ac_t""yes" 1>&6
1145 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1146 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1147 cat >> confdefs.h <<EOF
1148 #define $ac_tr_lib 1
1149 EOF
3642 builtin and then its argument prototype would still apply. */
3643 char wgetch ();
3644 int
3645 main ()
3646 {
3647 wgetch ();
3648 ;
3649 return 0;
3650 }
3651 _ACEOF
3652 rm -f conftest.$ac_objext conftest$ac_exeext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3654 (eval $ac_link) 2>conftest.er1
3655 ac_status=$?
3656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } &&
3661 { ac_try='test -z "$ac_c_werror_flag"
3662 || test ! -s conftest.err'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; } &&
3668 { ac_try='test -s conftest$ac_exeext'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; }; then
3674 ac_cv_lib_ncurses_wgetch=yes
3675 else
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3678
3679 ac_cv_lib_ncurses_wgetch=no
3680 fi
3681 rm -f conftest.err conftest.$ac_objext \
3682 conftest$ac_exeext conftest.$ac_ext
3683 LIBS=$ac_check_lib_save_LIBS
3684 fi
3685 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
3686 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6
3687 if test $ac_cv_lib_ncurses_wgetch = yes; then
3688 cat >>confdefs.h <<_ACEOF
3689 #define HAVE_LIBNCURSES 1
3690 _ACEOF
11503691
11513692 LIBS="-lncurses $LIBS"
11523693
11533694 else
1154 echo "$ac_t""no" 1>&6
1155 { echo "configure: error: recent ncurses installed?" 1>&2; exit 1; }
1156 fi
1157
1158
1159 ac_ext=C
1160 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3695 { { echo "$as_me:$LINENO: error: recent ncurses installed?" >&5
3696 echo "$as_me: error: recent ncurses installed?" >&2;}
3697 { (exit 1); exit 1; }; }
3698 fi
3699
3700
3701 ac_ext=cc
11613702 ac_cpp='$CXXCPP $CPPFLAGS'
1162 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1163 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1164 cross_compiling=$ac_cv_prog_cxx_cross
1165
1166 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1167 echo "configure:1169: checking how to run the C++ preprocessor" >&5
3703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3706
3707
3708 ac_ext=cc
3709 ac_cpp='$CXXCPP $CPPFLAGS'
3710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3713 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3714 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11683715 if test -z "$CXXCPP"; then
1169 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1171 else
1172 ac_ext=C
1173 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3716 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719 # Double quotes because CXXCPP needs to be expanded
3720 for CXXCPP in "$CXX -E" "/lib/cpp"
3721 do
3722 ac_preproc_ok=false
3723 for ac_cxx_preproc_warn_flag in '' yes
3724 do
3725 # Use a header file that comes with gcc, so configuring glibc
3726 # with a fresh cross-compiler works.
3727 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3728 # <limits.h> exists even on freestanding compilers.
3729 # On the NeXT, cc -E runs the code through the compiler's parser,
3730 # not just through cpp. "Syntax error" is here to catch this case.
3731 cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h. */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 #ifdef __STDC__
3738 # include <limits.h>
3739 #else
3740 # include <assert.h>
3741 #endif
3742 Syntax error
3743 _ACEOF
3744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3746 ac_status=$?
3747 grep -v '^ *+' conftest.er1 >conftest.err
3748 rm -f conftest.er1
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } >/dev/null; then
3752 if test -s conftest.err; then
3753 ac_cpp_err=$ac_cxx_preproc_warn_flag
3754 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3755 else
3756 ac_cpp_err=
3757 fi
3758 else
3759 ac_cpp_err=yes
3760 fi
3761 if test -z "$ac_cpp_err"; then
3762 :
3763 else
3764 echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3766
3767 # Broken: fails on valid input.
3768 continue
3769 fi
3770 rm -f conftest.err conftest.$ac_ext
3771
3772 # OK, works on sane cases. Now check whether non-existent headers
3773 # can be detected and how.
3774 cat >conftest.$ac_ext <<_ACEOF
3775 /* confdefs.h. */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3780 #include <ac_nonexistent.h>
3781 _ACEOF
3782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3784 ac_status=$?
3785 grep -v '^ *+' conftest.er1 >conftest.err
3786 rm -f conftest.er1
3787 cat conftest.err >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); } >/dev/null; then
3790 if test -s conftest.err; then
3791 ac_cpp_err=$ac_cxx_preproc_warn_flag
3792 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3793 else
3794 ac_cpp_err=
3795 fi
3796 else
3797 ac_cpp_err=yes
3798 fi
3799 if test -z "$ac_cpp_err"; then
3800 # Broken: success on invalid input.
3801 continue
3802 else
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3805
3806 # Passes both tests.
3807 ac_preproc_ok=:
3808 break
3809 fi
3810 rm -f conftest.err conftest.$ac_ext
3811
3812 done
3813 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3814 rm -f conftest.err conftest.$ac_ext
3815 if $ac_preproc_ok; then
3816 break
3817 fi
3818
3819 done
3820 ac_cv_prog_CXXCPP=$CXXCPP
3821
3822 fi
3823 CXXCPP=$ac_cv_prog_CXXCPP
3824 else
3825 ac_cv_prog_CXXCPP=$CXXCPP
3826 fi
3827 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3828 echo "${ECHO_T}$CXXCPP" >&6
3829 ac_preproc_ok=false
3830 for ac_cxx_preproc_warn_flag in '' yes
3831 do
3832 # Use a header file that comes with gcc, so configuring glibc
3833 # with a fresh cross-compiler works.
3834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3835 # <limits.h> exists even on freestanding compilers.
3836 # On the NeXT, cc -E runs the code through the compiler's parser,
3837 # not just through cpp. "Syntax error" is here to catch this case.
3838 cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h. */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #ifdef __STDC__
3845 # include <limits.h>
3846 #else
3847 # include <assert.h>
3848 #endif
3849 Syntax error
3850 _ACEOF
3851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3853 ac_status=$?
3854 grep -v '^ *+' conftest.er1 >conftest.err
3855 rm -f conftest.er1
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } >/dev/null; then
3859 if test -s conftest.err; then
3860 ac_cpp_err=$ac_cxx_preproc_warn_flag
3861 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3862 else
3863 ac_cpp_err=
3864 fi
3865 else
3866 ac_cpp_err=yes
3867 fi
3868 if test -z "$ac_cpp_err"; then
3869 :
3870 else
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3873
3874 # Broken: fails on valid input.
3875 continue
3876 fi
3877 rm -f conftest.err conftest.$ac_ext
3878
3879 # OK, works on sane cases. Now check whether non-existent headers
3880 # can be detected and how.
3881 cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h. */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3887 #include <ac_nonexistent.h>
3888 _ACEOF
3889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3891 ac_status=$?
3892 grep -v '^ *+' conftest.er1 >conftest.err
3893 rm -f conftest.er1
3894 cat conftest.err >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } >/dev/null; then
3897 if test -s conftest.err; then
3898 ac_cpp_err=$ac_cxx_preproc_warn_flag
3899 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3900 else
3901 ac_cpp_err=
3902 fi
3903 else
3904 ac_cpp_err=yes
3905 fi
3906 if test -z "$ac_cpp_err"; then
3907 # Broken: success on invalid input.
3908 continue
3909 else
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3912
3913 # Passes both tests.
3914 ac_preproc_ok=:
3915 break
3916 fi
3917 rm -f conftest.err conftest.$ac_ext
3918
3919 done
3920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3921 rm -f conftest.err conftest.$ac_ext
3922 if $ac_preproc_ok; then
3923 :
3924 else
3925 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3926 See \`config.log' for more details." >&5
3927 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3928 See \`config.log' for more details." >&2;}
3929 { (exit 1); exit 1; }; }
3930 fi
3931
3932 ac_ext=cc
11743933 ac_cpp='$CXXCPP $CPPFLAGS'
1175 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1176 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1177 cross_compiling=$ac_cv_prog_cxx_cross
1178 CXXCPP="${CXX-g++} -E"
1179 cat > conftest.$ac_ext <<EOF
1180 #line 1182 "configure"
1181 #include "confdefs.h"
1182 #include <stdlib.h>
1183 EOF
1184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1185 { (eval echo configure:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1187 if test -z "$ac_err"; then
3934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3937
3938
3939 if test "${ac_cv_header_string+set}" = set; then
3940 echo "$as_me:$LINENO: checking for string" >&5
3941 echo $ECHO_N "checking for string... $ECHO_C" >&6
3942 if test "${ac_cv_header_string+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 fi
3945 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
3946 echo "${ECHO_T}$ac_cv_header_string" >&6
3947 else
3948 # Is the header compilable?
3949 echo "$as_me:$LINENO: checking string usability" >&5
3950 echo $ECHO_N "checking string usability... $ECHO_C" >&6
3951 cat >conftest.$ac_ext <<_ACEOF
3952 /* confdefs.h. */
3953 _ACEOF
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h. */
3957 $ac_includes_default
3958 #include <string>
3959 _ACEOF
3960 rm -f conftest.$ac_objext
3961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3962 (eval $ac_compile) 2>conftest.er1
3963 ac_status=$?
3964 grep -v '^ *+' conftest.er1 >conftest.err
3965 rm -f conftest.er1
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } &&
3969 { ac_try='test -z "$ac_cxx_werror_flag"
3970 || test ! -s conftest.err'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 (eval $ac_try) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; } &&
3976 { ac_try='test -s conftest.$ac_objext'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 (eval $ac_try) 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; }; then
3982 ac_header_compiler=yes
3983 else
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3986
3987 ac_header_compiler=no
3988 fi
3989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3991 echo "${ECHO_T}$ac_header_compiler" >&6
3992
3993 # Is the header present?
3994 echo "$as_me:$LINENO: checking string presence" >&5
3995 echo $ECHO_N "checking string presence... $ECHO_C" >&6
3996 cat >conftest.$ac_ext <<_ACEOF
3997 /* confdefs.h. */
3998 _ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4002 #include <string>
4003 _ACEOF
4004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4006 ac_status=$?
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } >/dev/null; then
4012 if test -s conftest.err; then
4013 ac_cpp_err=$ac_cxx_preproc_warn_flag
4014 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4015 else
4016 ac_cpp_err=
4017 fi
4018 else
4019 ac_cpp_err=yes
4020 fi
4021 if test -z "$ac_cpp_err"; then
4022 ac_header_preproc=yes
4023 else
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4026
4027 ac_header_preproc=no
4028 fi
4029 rm -f conftest.err conftest.$ac_ext
4030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4031 echo "${ECHO_T}$ac_header_preproc" >&6
4032
4033 # So? What about this header?
4034 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4035 yes:no: )
4036 { echo "$as_me:$LINENO: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&5
4037 echo "$as_me: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&2;}
4038 { echo "$as_me:$LINENO: WARNING: string: proceeding with the compiler's result" >&5
4039 echo "$as_me: WARNING: string: proceeding with the compiler's result" >&2;}
4040 ac_header_preproc=yes
4041 ;;
4042 no:yes:* )
4043 { echo "$as_me:$LINENO: WARNING: string: present but cannot be compiled" >&5
4044 echo "$as_me: WARNING: string: present but cannot be compiled" >&2;}
4045 { echo "$as_me:$LINENO: WARNING: string: check for missing prerequisite headers?" >&5
4046 echo "$as_me: WARNING: string: check for missing prerequisite headers?" >&2;}
4047 { echo "$as_me:$LINENO: WARNING: string: see the Autoconf documentation" >&5
4048 echo "$as_me: WARNING: string: see the Autoconf documentation" >&2;}
4049 { echo "$as_me:$LINENO: WARNING: string: section \"Present But Cannot Be Compiled\"" >&5
4050 echo "$as_me: WARNING: string: section \"Present But Cannot Be Compiled\"" >&2;}
4051 { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
4052 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;}
4053 { echo "$as_me:$LINENO: WARNING: string: in the future, the compiler will take precedence" >&5
4054 echo "$as_me: WARNING: string: in the future, the compiler will take precedence" >&2;}
4055 (
4056 cat <<\_ASBOX
4057 ## ------------------------------------------ ##
4058 ## Report this to the AC_PACKAGE_NAME lists. ##
4059 ## ------------------------------------------ ##
4060 _ASBOX
4061 ) |
4062 sed "s/^/$as_me: WARNING: /" >&2
4063 ;;
4064 esac
4065 echo "$as_me:$LINENO: checking for string" >&5
4066 echo $ECHO_N "checking for string... $ECHO_C" >&6
4067 if test "${ac_cv_header_string+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070 ac_cv_header_string=$ac_header_preproc
4071 fi
4072 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
4073 echo "${ECHO_T}$ac_cv_header_string" >&6
4074
4075 fi
4076 if test $ac_cv_header_string = yes; then
11884077 :
11894078 else
1190 echo "$ac_err" >&5
1191 echo "configure: failed program was:" >&5
1192 cat conftest.$ac_ext >&5
1193 rm -rf conftest*
1194 CXXCPP=/lib/cpp
1195 fi
1196 rm -f conftest*
1197 ac_cv_prog_CXXCPP="$CXXCPP"
1198 ac_ext=C
1199 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1200 ac_cpp='$CXXCPP $CPPFLAGS'
1201 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1202 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1203 cross_compiling=$ac_cv_prog_cxx_cross
1204 fi
1205 fi
1206 CXXCPP="$ac_cv_prog_CXXCPP"
1207 echo "$ac_t""$CXXCPP" 1>&6
1208
1209 ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
1210 echo $ac_n "checking for string""... $ac_c" 1>&6
1211 echo "configure:1213: checking for string" >&5
1212 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1214 else
1215 cat > conftest.$ac_ext <<EOF
1216 #line 1218 "configure"
1217 #include "confdefs.h"
1218 #include <string>
1219 EOF
1220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1221 { (eval echo configure:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1223 if test -z "$ac_err"; then
1224 rm -rf conftest*
1225 eval "ac_cv_header_$ac_safe=yes"
1226 else
1227 echo "$ac_err" >&5
1228 echo "configure: failed program was:" >&5
1229 cat conftest.$ac_ext >&5
1230 rm -rf conftest*
1231 eval "ac_cv_header_$ac_safe=no"
1232 fi
1233 rm -f conftest*
1234 fi
1235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1236 echo "$ac_t""yes" 1>&6
4079 { { echo "$as_me:$LINENO: error: C++ STL string class missing" >&5
4080 echo "$as_me: error: C++ STL string class missing" >&2;}
4081 { (exit 1); exit 1; }; }
4082 fi
4083
4084
4085 if test "${ac_cv_header_vector+set}" = set; then
4086 echo "$as_me:$LINENO: checking for vector" >&5
4087 echo $ECHO_N "checking for vector... $ECHO_C" >&6
4088 if test "${ac_cv_header_vector+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 fi
4091 echo "$as_me:$LINENO: result: $ac_cv_header_vector" >&5
4092 echo "${ECHO_T}$ac_cv_header_vector" >&6
4093 else
4094 # Is the header compilable?
4095 echo "$as_me:$LINENO: checking vector usability" >&5
4096 echo $ECHO_N "checking vector usability... $ECHO_C" >&6
4097 cat >conftest.$ac_ext <<_ACEOF
4098 /* confdefs.h. */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103 $ac_includes_default
4104 #include <vector>
4105 _ACEOF
4106 rm -f conftest.$ac_objext
4107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4108 (eval $ac_compile) 2>conftest.er1
4109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } &&
4115 { ac_try='test -z "$ac_cxx_werror_flag"
4116 || test ! -s conftest.err'
4117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 (eval $ac_try) 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; } &&
4122 { ac_try='test -s conftest.$ac_objext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 (eval $ac_try) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 ac_header_compiler=yes
4129 else
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 ac_header_compiler=no
4134 fi
4135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4137 echo "${ECHO_T}$ac_header_compiler" >&6
4138
4139 # Is the header present?
4140 echo "$as_me:$LINENO: checking vector presence" >&5
4141 echo $ECHO_N "checking vector presence... $ECHO_C" >&6
4142 cat >conftest.$ac_ext <<_ACEOF
4143 /* confdefs.h. */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4148 #include <vector>
4149 _ACEOF
4150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4152 ac_status=$?
4153 grep -v '^ *+' conftest.er1 >conftest.err
4154 rm -f conftest.er1
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } >/dev/null; then
4158 if test -s conftest.err; then
4159 ac_cpp_err=$ac_cxx_preproc_warn_flag
4160 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4161 else
4162 ac_cpp_err=
4163 fi
4164 else
4165 ac_cpp_err=yes
4166 fi
4167 if test -z "$ac_cpp_err"; then
4168 ac_header_preproc=yes
4169 else
4170 echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4172
4173 ac_header_preproc=no
4174 fi
4175 rm -f conftest.err conftest.$ac_ext
4176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4177 echo "${ECHO_T}$ac_header_preproc" >&6
4178
4179 # So? What about this header?
4180 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4181 yes:no: )
4182 { echo "$as_me:$LINENO: WARNING: vector: accepted by the compiler, rejected by the preprocessor!" >&5
4183 echo "$as_me: WARNING: vector: accepted by the compiler, rejected by the preprocessor!" >&2;}
4184 { echo "$as_me:$LINENO: WARNING: vector: proceeding with the compiler's result" >&5
4185 echo "$as_me: WARNING: vector: proceeding with the compiler's result" >&2;}
4186 ac_header_preproc=yes
4187 ;;
4188 no:yes:* )
4189 { echo "$as_me:$LINENO: WARNING: vector: present but cannot be compiled" >&5
4190 echo "$as_me: WARNING: vector: present but cannot be compiled" >&2;}
4191 { echo "$as_me:$LINENO: WARNING: vector: check for missing prerequisite headers?" >&5
4192 echo "$as_me: WARNING: vector: check for missing prerequisite headers?" >&2;}
4193 { echo "$as_me:$LINENO: WARNING: vector: see the Autoconf documentation" >&5
4194 echo "$as_me: WARNING: vector: see the Autoconf documentation" >&2;}
4195 { echo "$as_me:$LINENO: WARNING: vector: section \"Present But Cannot Be Compiled\"" >&5
4196 echo "$as_me: WARNING: vector: section \"Present But Cannot Be Compiled\"" >&2;}
4197 { echo "$as_me:$LINENO: WARNING: vector: proceeding with the preprocessor's result" >&5
4198 echo "$as_me: WARNING: vector: proceeding with the preprocessor's result" >&2;}
4199 { echo "$as_me:$LINENO: WARNING: vector: in the future, the compiler will take precedence" >&5
4200 echo "$as_me: WARNING: vector: in the future, the compiler will take precedence" >&2;}
4201 (
4202 cat <<\_ASBOX
4203 ## ------------------------------------------ ##
4204 ## Report this to the AC_PACKAGE_NAME lists. ##
4205 ## ------------------------------------------ ##
4206 _ASBOX
4207 ) |
4208 sed "s/^/$as_me: WARNING: /" >&2
4209 ;;
4210 esac
4211 echo "$as_me:$LINENO: checking for vector" >&5
4212 echo $ECHO_N "checking for vector... $ECHO_C" >&6
4213 if test "${ac_cv_header_vector+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216 ac_cv_header_vector=$ac_header_preproc
4217 fi
4218 echo "$as_me:$LINENO: result: $ac_cv_header_vector" >&5
4219 echo "${ECHO_T}$ac_cv_header_vector" >&6
4220
4221 fi
4222 if test $ac_cv_header_vector = yes; then
12374223 :
12384224 else
1239 echo "$ac_t""no" 1>&6
1240 { echo "configure: error: C++ STL string class missing" 1>&2; exit 1; }
1241 fi
1242
1243 ac_safe=`echo "vector" | sed 'y%./+-%__p_%'`
1244 echo $ac_n "checking for vector""... $ac_c" 1>&6
1245 echo "configure:1247: checking for vector" >&5
1246 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1247 echo $ac_n "(cached) $ac_c" 1>&6
1248 else
1249 cat > conftest.$ac_ext <<EOF
1250 #line 1252 "configure"
1251 #include "confdefs.h"
1252 #include <vector>
1253 EOF
1254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1255 { (eval echo configure:1257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1257 if test -z "$ac_err"; then
1258 rm -rf conftest*
1259 eval "ac_cv_header_$ac_safe=yes"
1260 else
1261 echo "$ac_err" >&5
1262 echo "configure: failed program was:" >&5
1263 cat conftest.$ac_ext >&5
1264 rm -rf conftest*
1265 eval "ac_cv_header_$ac_safe=no"
1266 fi
1267 rm -f conftest*
1268 fi
1269 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1270 echo "$ac_t""yes" 1>&6
4225 { { echo "$as_me:$LINENO: error: C++ STL vector class missing" >&5
4226 echo "$as_me: error: C++ STL vector class missing" >&2;}
4227 { (exit 1); exit 1; }; }
4228 fi
4229
4230
4231 if test "${ac_cv_header_algorithm+set}" = set; then
4232 echo "$as_me:$LINENO: checking for algorithm" >&5
4233 echo $ECHO_N "checking for algorithm... $ECHO_C" >&6
4234 if test "${ac_cv_header_algorithm+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 fi
4237 echo "$as_me:$LINENO: result: $ac_cv_header_algorithm" >&5
4238 echo "${ECHO_T}$ac_cv_header_algorithm" >&6
4239 else
4240 # Is the header compilable?
4241 echo "$as_me:$LINENO: checking algorithm usability" >&5
4242 echo $ECHO_N "checking algorithm usability... $ECHO_C" >&6
4243 cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h. */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4249 $ac_includes_default
4250 #include <algorithm>
4251 _ACEOF
4252 rm -f conftest.$ac_objext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4254 (eval $ac_compile) 2>conftest.er1
4255 ac_status=$?
4256 grep -v '^ *+' conftest.er1 >conftest.err
4257 rm -f conftest.er1
4258 cat conftest.err >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } &&
4261 { ac_try='test -z "$ac_cxx_werror_flag"
4262 || test ! -s conftest.err'
4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 (eval $ac_try) 2>&5
4265 ac_status=$?
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; } &&
4268 { ac_try='test -s conftest.$ac_objext'
4269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270 (eval $ac_try) 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; }; then
4274 ac_header_compiler=yes
4275 else
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4278
4279 ac_header_compiler=no
4280 fi
4281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4282 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4283 echo "${ECHO_T}$ac_header_compiler" >&6
4284
4285 # Is the header present?
4286 echo "$as_me:$LINENO: checking algorithm presence" >&5
4287 echo $ECHO_N "checking algorithm presence... $ECHO_C" >&6
4288 cat >conftest.$ac_ext <<_ACEOF
4289 /* confdefs.h. */
4290 _ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h. */
4294 #include <algorithm>
4295 _ACEOF
4296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4298 ac_status=$?
4299 grep -v '^ *+' conftest.er1 >conftest.err
4300 rm -f conftest.er1
4301 cat conftest.err >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } >/dev/null; then
4304 if test -s conftest.err; then
4305 ac_cpp_err=$ac_cxx_preproc_warn_flag
4306 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4307 else
4308 ac_cpp_err=
4309 fi
4310 else
4311 ac_cpp_err=yes
4312 fi
4313 if test -z "$ac_cpp_err"; then
4314 ac_header_preproc=yes
4315 else
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4318
4319 ac_header_preproc=no
4320 fi
4321 rm -f conftest.err conftest.$ac_ext
4322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4323 echo "${ECHO_T}$ac_header_preproc" >&6
4324
4325 # So? What about this header?
4326 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4327 yes:no: )
4328 { echo "$as_me:$LINENO: WARNING: algorithm: accepted by the compiler, rejected by the preprocessor!" >&5
4329 echo "$as_me: WARNING: algorithm: accepted by the compiler, rejected by the preprocessor!" >&2;}
4330 { echo "$as_me:$LINENO: WARNING: algorithm: proceeding with the compiler's result" >&5
4331 echo "$as_me: WARNING: algorithm: proceeding with the compiler's result" >&2;}
4332 ac_header_preproc=yes
4333 ;;
4334 no:yes:* )
4335 { echo "$as_me:$LINENO: WARNING: algorithm: present but cannot be compiled" >&5
4336 echo "$as_me: WARNING: algorithm: present but cannot be compiled" >&2;}
4337 { echo "$as_me:$LINENO: WARNING: algorithm: check for missing prerequisite headers?" >&5
4338 echo "$as_me: WARNING: algorithm: check for missing prerequisite headers?" >&2;}
4339 { echo "$as_me:$LINENO: WARNING: algorithm: see the Autoconf documentation" >&5
4340 echo "$as_me: WARNING: algorithm: see the Autoconf documentation" >&2;}
4341 { echo "$as_me:$LINENO: WARNING: algorithm: section \"Present But Cannot Be Compiled\"" >&5
4342 echo "$as_me: WARNING: algorithm: section \"Present But Cannot Be Compiled\"" >&2;}
4343 { echo "$as_me:$LINENO: WARNING: algorithm: proceeding with the preprocessor's result" >&5
4344 echo "$as_me: WARNING: algorithm: proceeding with the preprocessor's result" >&2;}
4345 { echo "$as_me:$LINENO: WARNING: algorithm: in the future, the compiler will take precedence" >&5
4346 echo "$as_me: WARNING: algorithm: in the future, the compiler will take precedence" >&2;}
4347 (
4348 cat <<\_ASBOX
4349 ## ------------------------------------------ ##
4350 ## Report this to the AC_PACKAGE_NAME lists. ##
4351 ## ------------------------------------------ ##
4352 _ASBOX
4353 ) |
4354 sed "s/^/$as_me: WARNING: /" >&2
4355 ;;
4356 esac
4357 echo "$as_me:$LINENO: checking for algorithm" >&5
4358 echo $ECHO_N "checking for algorithm... $ECHO_C" >&6
4359 if test "${ac_cv_header_algorithm+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362 ac_cv_header_algorithm=$ac_header_preproc
4363 fi
4364 echo "$as_me:$LINENO: result: $ac_cv_header_algorithm" >&5
4365 echo "${ECHO_T}$ac_cv_header_algorithm" >&6
4366
4367 fi
4368 if test $ac_cv_header_algorithm = yes; then
12714369 :
12724370 else
1273 echo "$ac_t""no" 1>&6
1274 { echo "configure: error: C++ STL vector class missing" 1>&2; exit 1; }
1275 fi
1276
1277 ac_safe=`echo "algorithm" | sed 'y%./+-%__p_%'`
1278 echo $ac_n "checking for algorithm""... $ac_c" 1>&6
1279 echo "configure:1281: checking for algorithm" >&5
1280 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1282 else
1283 cat > conftest.$ac_ext <<EOF
1284 #line 1286 "configure"
1285 #include "confdefs.h"
1286 #include <algorithm>
1287 EOF
1288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1289 { (eval echo configure:1291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1291 if test -z "$ac_err"; then
1292 rm -rf conftest*
1293 eval "ac_cv_header_$ac_safe=yes"
1294 else
1295 echo "$ac_err" >&5
1296 echo "configure: failed program was:" >&5
1297 cat conftest.$ac_ext >&5
1298 rm -rf conftest*
1299 eval "ac_cv_header_$ac_safe=no"
1300 fi
1301 rm -f conftest*
1302 fi
1303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1304 echo "$ac_t""yes" 1>&6
1305 :
1306 else
1307 echo "$ac_t""no" 1>&6
1308 { echo "configure: error: C++ STL algorithm class missing" 1>&2; exit 1; }
1309 fi
4371 { { echo "$as_me:$LINENO: error: C++ STL algorithm class missing" >&5
4372 echo "$as_me: error: C++ STL algorithm class missing" >&2;}
4373 { (exit 1); exit 1; }; }
4374 fi
4375
13104376
13114377
13124378 sv1="$prefix"
13134379 test "x$prefix" = "xNONE" && prefix="$ac_default_prefix"
13144380 sv2=`eval echo $datadir/$PACKAGE`
13154381 prefix="$sv1"
1316 cat >> confdefs.h <<EOF
4382
4383 cat >>confdefs.h <<_ACEOF
13174384 #define SHAREDIR "$sv2"
1318 EOF
1319
1320 trap '' 1 2 15
1321 cat > confcache <<\EOF
4385 _ACEOF
4386
4387 ac_config_files="$ac_config_files Makefile"
4388 cat >confcache <<\_ACEOF
13224389 # This file is a shell script that caches the results of configure
13234390 # tests run on this system so they can be shared between configure
1324 # scripts and configure runs. It is not useful on other systems.
1325 # If it contains results you don't want to keep, you may remove or edit it.
4391 # scripts and configure runs, see configure's option --config-cache.
4392 # It is not useful on other systems. If it contains results you don't
4393 # want to keep, you may remove or edit it.
13264394 #
1327 # By default, configure uses ./config.cache as the cache file,
1328 # creating it if it does not exist already. You can give configure
1329 # the --cache-file=FILE option to use a different cache file; that is
1330 # what configure does when it calls configure scripts in
1331 # subdirectories, so they share the cache.
1332 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1333 # config.status only pays attention to the cache file if you give it the
1334 # --recheck option to rerun configure.
4395 # config.status only pays attention to the cache file if you give it
4396 # the --recheck option to rerun configure.
13354397 #
1336 EOF
4398 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4399 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4400 # following values.
4401
4402 _ACEOF
4403
13374404 # The following way of writing the cache mishandles newlines in values,
13384405 # but we know of no workaround that is simple, portable, and efficient.
13394406 # So, don't put newlines in cache variables' values.
13404407 # Ultrix sh set writes to stderr and can't be redirected directly,
13414408 # and sets the high bit in the cache file unless we assign to the vars.
1342 (set) 2>&1 |
1343 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1344 *ac_space=\ *)
1345 # `set' does not quote correctly, so add quotes (double-quote substitution
1346 # turns \\\\ into \\, and sed turns \\ into \).
1347 sed -n \
1348 -e "s/'/'\\\\''/g" \
1349 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1350 ;;
1351 *)
1352 # `set' quotes correctly as required by POSIX, so do not add quotes.
1353 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1354 ;;
1355 esac >> confcache
1356 if cmp -s $cache_file confcache; then
1357 :
1358 else
4409 {
4410 (set) 2>&1 |
4411 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4412 *ac_space=\ *)
4413 # `set' does not quote correctly, so add quotes (double-quote
4414 # substitution turns \\\\ into \\, and sed turns \\ into \).
4415 sed -n \
4416 "s/'/'\\\\''/g;
4417 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4418 ;;
4419 *)
4420 # `set' quotes correctly as required by POSIX, so do not add quotes.
4421 sed -n \
4422 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4423 ;;
4424 esac;
4425 } |
4426 sed '
4427 t clear
4428 : clear
4429 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4430 t end
4431 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4432 : end' >>confcache
4433 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13594434 if test -w $cache_file; then
1360 echo "updating cache $cache_file"
1361 cat confcache > $cache_file
4435 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4436 cat confcache >$cache_file
13624437 else
13634438 echo "not updating unwritable cache $cache_file"
13644439 fi
13654440 fi
13664441 rm -f confcache
13674442
1368 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1369
13704443 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13714444 # Let make expand exec_prefix.
13724445 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13734446
1374 # Any assignment to VPATH causes Sun make to only execute
1375 # the first set of double-colon rules, so remove it if not needed.
1376 # If there is a colon in the path, we need to keep it.
4447 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4448 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4449 # trailing colons and then remove the whole line if VPATH becomes empty
4450 # (actually we leave an empty line to preserve line numbers).
13774451 if test "x$srcdir" = x.; then
1378 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1379 fi
1380
1381 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4452 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4453 s/:*\$(srcdir):*/:/;
4454 s/:*\${srcdir}:*/:/;
4455 s/:*@srcdir@:*/:/;
4456 s/^\([^=]*=[ ]*\):*/\1/;
4457 s/:*$//;
4458 s/^[^=]*=[ ]*$//;
4459 }'
4460 fi
13824461
13834462 DEFS=-DHAVE_CONFIG_H
13844463
1385 # Without the "./", some shells look in PATH for config.status.
4464 ac_libobjs=
4465 ac_ltlibobjs=
4466 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4467 # 1. Remove the extension, and $U if already installed.
4468 ac_i=`echo "$ac_i" |
4469 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4470 # 2. Add them.
4471 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4472 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4473 done
4474 LIBOBJS=$ac_libobjs
4475
4476 LTLIBOBJS=$ac_ltlibobjs
4477
4478
4479
13864480 : ${CONFIG_STATUS=./config.status}
1387
1388 echo creating $CONFIG_STATUS
1389 rm -f $CONFIG_STATUS
1390 cat > $CONFIG_STATUS <<EOF
1391 #! /bin/sh
1392 # Generated automatically by configure.
4481 ac_clean_files_save=$ac_clean_files
4482 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4483 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4484 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4485 cat >$CONFIG_STATUS <<_ACEOF
4486 #! $SHELL
4487 # Generated by $as_me.
13934488 # Run this file to recreate the current configuration.
1394 # This directory was configured as follows,
1395 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4489 # Compiler output produced by configure, useful for debugging
4490 # configure, is in config.log if it exists.
4491
4492 debug=false
4493 ac_cs_recheck=false
4494 ac_cs_silent=false
4495 SHELL=\${CONFIG_SHELL-$SHELL}
4496 _ACEOF
4497
4498 cat >>$CONFIG_STATUS <<\_ACEOF
4499 ## --------------------- ##
4500 ## M4sh Initialization. ##
4501 ## --------------------- ##
4502
4503 # Be Bourne compatible
4504 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4505 emulate sh
4506 NULLCMD=:
4507 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4508 # is contrary to our usage. Disable this feature.
4509 alias -g '${1+"$@"}'='"$@"'
4510 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4511 set -o posix
4512 fi
4513 DUALCASE=1; export DUALCASE # for MKS sh
4514
4515 # Support unset when possible.
4516 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4517 as_unset=unset
4518 else
4519 as_unset=false
4520 fi
4521
4522
4523 # Work around bugs in pre-3.0 UWIN ksh.
4524 $as_unset ENV MAIL MAILPATH
4525 PS1='$ '
4526 PS2='> '
4527 PS4='+ '
4528
4529 # NLS nuisances.
4530 for as_var in \
4531 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4532 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4533 LC_TELEPHONE LC_TIME
4534 do
4535 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4536 eval $as_var=C; export $as_var
4537 else
4538 $as_unset $as_var
4539 fi
4540 done
4541
4542 # Required to use basename.
4543 if expr a : '\(a\)' >/dev/null 2>&1; then
4544 as_expr=expr
4545 else
4546 as_expr=false
4547 fi
4548
4549 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4550 as_basename=basename
4551 else
4552 as_basename=false
4553 fi
4554
4555
4556 # Name of the executable.
4557 as_me=`$as_basename "$0" ||
4558 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4559 X"$0" : 'X\(//\)$' \| \
4560 X"$0" : 'X\(/\)$' \| \
4561 . : '\(.\)' 2>/dev/null ||
4562 echo X/"$0" |
4563 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4564 /^X\/\(\/\/\)$/{ s//\1/; q; }
4565 /^X\/\(\/\).*/{ s//\1/; q; }
4566 s/.*/./; q'`
4567
4568
4569 # PATH needs CR, and LINENO needs CR and PATH.
4570 # Avoid depending upon Character Ranges.
4571 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4572 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4573 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4574 as_cr_digits='0123456789'
4575 as_cr_alnum=$as_cr_Letters$as_cr_digits
4576
4577 # The user is always right.
4578 if test "${PATH_SEPARATOR+set}" != set; then
4579 echo "#! /bin/sh" >conf$$.sh
4580 echo "exit 0" >>conf$$.sh
4581 chmod +x conf$$.sh
4582 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4583 PATH_SEPARATOR=';'
4584 else
4585 PATH_SEPARATOR=:
4586 fi
4587 rm -f conf$$.sh
4588 fi
4589
4590
4591 as_lineno_1=$LINENO
4592 as_lineno_2=$LINENO
4593 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4594 test "x$as_lineno_1" != "x$as_lineno_2" &&
4595 test "x$as_lineno_3" = "x$as_lineno_2" || {
4596 # Find who we are. Look in the path if we contain no path at all
4597 # relative or not.
4598 case $0 in
4599 *[\\/]* ) as_myself=$0 ;;
4600 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4606 done
4607
4608 ;;
4609 esac
4610 # We did not find ourselves, most probably we were run as `sh COMMAND'
4611 # in which case we are not to be found in the path.
4612 if test "x$as_myself" = x; then
4613 as_myself=$0
4614 fi
4615 if test ! -f "$as_myself"; then
4616 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4617 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4618 { (exit 1); exit 1; }; }
4619 fi
4620 case $CONFIG_SHELL in
4621 '')
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4624 do
4625 IFS=$as_save_IFS
4626 test -z "$as_dir" && as_dir=.
4627 for as_base in sh bash ksh sh5; do
4628 case $as_dir in
4629 /*)
4630 if ("$as_dir/$as_base" -c '
4631 as_lineno_1=$LINENO
4632 as_lineno_2=$LINENO
4633 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4634 test "x$as_lineno_1" != "x$as_lineno_2" &&
4635 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4636 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4637 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4638 CONFIG_SHELL=$as_dir/$as_base
4639 export CONFIG_SHELL
4640 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4641 fi;;
4642 esac
4643 done
4644 done
4645 ;;
4646 esac
4647
4648 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4649 # uniformly replaced by the line number. The first 'sed' inserts a
4650 # line-number line before each line; the second 'sed' does the real
4651 # work. The second script uses 'N' to pair each line-number line
4652 # with the numbered line, and appends trailing '-' during
4653 # substitution so that $LINENO is not a special case at line end.
4654 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4655 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4656 sed '=' <$as_myself |
4657 sed '
4658 N
4659 s,$,-,
4660 : loop
4661 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4662 t loop
4663 s,-$,,
4664 s,^['$as_cr_digits']*\n,,
4665 ' >$as_me.lineno &&
4666 chmod +x $as_me.lineno ||
4667 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4668 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4669 { (exit 1); exit 1; }; }
4670
4671 # Don't try to exec as it changes $[0], causing all sort of problems
4672 # (the dirname of $[0] is not the place where we might find the
4673 # original and so on. Autoconf is especially sensible to this).
4674 . ./$as_me.lineno
4675 # Exit status is that of the last command.
4676 exit
4677 }
4678
4679
4680 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4681 *c*,-n*) ECHO_N= ECHO_C='
4682 ' ECHO_T=' ' ;;
4683 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4684 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4685 esac
4686
4687 if expr a : '\(a\)' >/dev/null 2>&1; then
4688 as_expr=expr
4689 else
4690 as_expr=false
4691 fi
4692
4693 rm -f conf$$ conf$$.exe conf$$.file
4694 echo >conf$$.file
4695 if ln -s conf$$.file conf$$ 2>/dev/null; then
4696 # We could just check for DJGPP; but this test a) works b) is more generic
4697 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4698 if test -f conf$$.exe; then
4699 # Don't use ln at all; we don't have any links
4700 as_ln_s='cp -p'
4701 else
4702 as_ln_s='ln -s'
4703 fi
4704 elif ln conf$$.file conf$$ 2>/dev/null; then
4705 as_ln_s=ln
4706 else
4707 as_ln_s='cp -p'
4708 fi
4709 rm -f conf$$ conf$$.exe conf$$.file
4710
4711 if mkdir -p . 2>/dev/null; then
4712 as_mkdir_p=:
4713 else
4714 test -d ./-p && rmdir ./-p
4715 as_mkdir_p=false
4716 fi
4717
4718 as_executable_p="test -f"
4719
4720 # Sed expression to map a string onto a valid CPP name.
4721 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4722
4723 # Sed expression to map a string onto a valid variable name.
4724 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4725
4726
4727 # IFS
4728 # We need space, tab and new line, in precisely that order.
4729 as_nl='
4730 '
4731 IFS=" $as_nl"
4732
4733 # CDPATH.
4734 $as_unset CDPATH
4735
4736 exec 6>&1
4737
4738 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4739 # report actual input values of CONFIG_FILES etc. instead of their
4740 # values after options handling. Logging --version etc. is OK.
4741 exec 5>>config.log
4742 {
4743 echo
4744 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4745 ## Running $as_me. ##
4746 _ASBOX
4747 } >&5
4748 cat >&5 <<_CSEOF
4749
4750 This file was extended by $as_me, which was
4751 generated by GNU Autoconf 2.59. Invocation command line was
4752
4753 CONFIG_FILES = $CONFIG_FILES
4754 CONFIG_HEADERS = $CONFIG_HEADERS
4755 CONFIG_LINKS = $CONFIG_LINKS
4756 CONFIG_COMMANDS = $CONFIG_COMMANDS
4757 $ $0 $@
4758
4759 _CSEOF
4760 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4761 echo >&5
4762 _ACEOF
4763
4764 # Files that config.status was made for.
4765 if test -n "$ac_config_files"; then
4766 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4767 fi
4768
4769 if test -n "$ac_config_headers"; then
4770 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4771 fi
4772
4773 if test -n "$ac_config_links"; then
4774 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4775 fi
4776
4777 if test -n "$ac_config_commands"; then
4778 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4779 fi
4780
4781 cat >>$CONFIG_STATUS <<\_ACEOF
4782
4783 ac_cs_usage="\
4784 \`$as_me' instantiates files from templates according to the
4785 current configuration.
4786
4787 Usage: $0 [OPTIONS] [FILE]...
4788
4789 -h, --help print this help, then exit
4790 -V, --version print version number, then exit
4791 -q, --quiet do not print progress messages
4792 -d, --debug don't remove temporary files
4793 --recheck update $as_me by reconfiguring in the same conditions
4794 --file=FILE[:TEMPLATE]
4795 instantiate the configuration file FILE
4796 --header=FILE[:TEMPLATE]
4797 instantiate the configuration header FILE
4798
4799 Configuration files:
4800 $config_files
4801
4802 Configuration headers:
4803 $config_headers
4804
4805 Configuration commands:
4806 $config_commands
4807
4808 Report bugs to <bug-autoconf@gnu.org>."
4809 _ACEOF
4810
4811 cat >>$CONFIG_STATUS <<_ACEOF
4812 ac_cs_version="\\
4813 config.status
4814 configured by $0, generated by GNU Autoconf 2.59,
4815 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4816
4817 Copyright (C) 2003 Free Software Foundation, Inc.
4818 This config.status script is free software; the Free Software Foundation
4819 gives unlimited permission to copy, distribute and modify it."
4820 srcdir=$srcdir
4821 INSTALL="$INSTALL"
4822 _ACEOF
4823
4824 cat >>$CONFIG_STATUS <<\_ACEOF
4825 # If no file are specified by the user, then we need to provide default
4826 # value. By we need to know if files were specified by the user.
4827 ac_need_defaults=:
4828 while test $# != 0
4829 do
4830 case $1 in
4831 --*=*)
4832 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4833 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4834 ac_shift=:
4835 ;;
4836 -*)
4837 ac_option=$1
4838 ac_optarg=$2
4839 ac_shift=shift
4840 ;;
4841 *) # This is not an option, so the user has probably given explicit
4842 # arguments.
4843 ac_option=$1
4844 ac_need_defaults=false;;
4845 esac
4846
4847 case $ac_option in
4848 # Handling of the options.
4849 _ACEOF
4850 cat >>$CONFIG_STATUS <<\_ACEOF
4851 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4852 ac_cs_recheck=: ;;
4853 --version | --vers* | -V )
4854 echo "$ac_cs_version"; exit 0 ;;
4855 --he | --h)
4856 # Conflict between --help and --header
4857 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4858 Try \`$0 --help' for more information." >&5
4859 echo "$as_me: error: ambiguous option: $1
4860 Try \`$0 --help' for more information." >&2;}
4861 { (exit 1); exit 1; }; };;
4862 --help | --hel | -h )
4863 echo "$ac_cs_usage"; exit 0 ;;
4864 --debug | --d* | -d )
4865 debug=: ;;
4866 --file | --fil | --fi | --f )
4867 $ac_shift
4868 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4869 ac_need_defaults=false;;
4870 --header | --heade | --head | --hea )
4871 $ac_shift
4872 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4873 ac_need_defaults=false;;
4874 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4875 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4876 ac_cs_silent=: ;;
4877
4878 # This is an error.
4879 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4880 Try \`$0 --help' for more information." >&5
4881 echo "$as_me: error: unrecognized option: $1
4882 Try \`$0 --help' for more information." >&2;}
4883 { (exit 1); exit 1; }; } ;;
4884
4885 *) ac_config_targets="$ac_config_targets $1" ;;
4886
4887 esac
4888 shift
4889 done
4890
4891 ac_configure_extra_args=
4892
4893 if $ac_cs_silent; then
4894 exec 6>/dev/null
4895 ac_configure_extra_args="$ac_configure_extra_args --silent"
4896 fi
4897
4898 _ACEOF
4899 cat >>$CONFIG_STATUS <<_ACEOF
4900 if \$ac_cs_recheck; then
4901 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4902 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4903 fi
4904
4905 _ACEOF
4906
4907 cat >>$CONFIG_STATUS <<_ACEOF
13964908 #
1397 # $0 $ac_configure_args
4909 # INIT-COMMANDS section.
13984910 #
1399 # Compiler output produced by configure, useful for debugging
1400 # configure, is in ./config.log if it exists.
1401
1402 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1403 for ac_option
4911
4912
4913
4914 _ACEOF
4915
4916
4917
4918 cat >>$CONFIG_STATUS <<\_ACEOF
4919 for ac_config_target in $ac_config_targets
14044920 do
1405 case "\$ac_option" in
1406 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1407 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1408 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1409 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1410 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1411 exit 0 ;;
1412 -help | --help | --hel | --he | --h)
1413 echo "\$ac_cs_usage"; exit 0 ;;
1414 *) echo "\$ac_cs_usage"; exit 1 ;;
4921 case "$ac_config_target" in
4922 # Handling of arguments.
4923 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4924 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
4925 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4926 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4927 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4928 { (exit 1); exit 1; }; };;
14154929 esac
14164930 done
14174931
1418 ac_given_srcdir=$srcdir
1419 ac_given_INSTALL="$INSTALL"
1420
1421 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1422 EOF
1423 cat >> $CONFIG_STATUS <<EOF
1424
1425 # Protect against being on the right side of a sed subst in config.status.
1426 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1427 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1428 $ac_vpsub
4932 # If the user did not use the arguments to specify the items to instantiate,
4933 # then the envvar interface is used. Set only those that are not.
4934 # We use the long form for the default assignment because of an extremely
4935 # bizarre bug on SunOS 4.1.3.
4936 if $ac_need_defaults; then
4937 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4938 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4939 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4940 fi
4941
4942 # Have a temporary directory for convenience. Make it in the build tree
4943 # simply because there is no reason to put it here, and in addition,
4944 # creating and moving files from /tmp can sometimes cause problems.
4945 # Create a temporary directory, and hook for its removal unless debugging.
4946 $debug ||
4947 {
4948 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4949 trap '{ (exit 1); exit 1; }' 1 2 13 15
4950 }
4951
4952 # Create a (secure) tmp directory for tmp files.
4953
4954 {
4955 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4956 test -n "$tmp" && test -d "$tmp"
4957 } ||
4958 {
4959 tmp=./confstat$$-$RANDOM
4960 (umask 077 && mkdir $tmp)
4961 } ||
4962 {
4963 echo "$me: cannot create a temporary directory in ." >&2
4964 { (exit 1); exit 1; }
4965 }
4966
4967 _ACEOF
4968
4969 cat >>$CONFIG_STATUS <<_ACEOF
4970
4971 #
4972 # CONFIG_FILES section.
4973 #
4974
4975 # No need to generate the scripts if there are no CONFIG_FILES.
4976 # This happens for instance when ./config.status config.h
4977 if test -n "\$CONFIG_FILES"; then
4978 # Protect against being on the right side of a sed subst in config.status.
4979 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4980 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4981 s,@SHELL@,$SHELL,;t t
4982 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4983 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4984 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4985 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4986 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4987 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4988 s,@exec_prefix@,$exec_prefix,;t t
4989 s,@prefix@,$prefix,;t t
4990 s,@program_transform_name@,$program_transform_name,;t t
4991 s,@bindir@,$bindir,;t t
4992 s,@sbindir@,$sbindir,;t t
4993 s,@libexecdir@,$libexecdir,;t t
4994 s,@datadir@,$datadir,;t t
4995 s,@sysconfdir@,$sysconfdir,;t t
4996 s,@sharedstatedir@,$sharedstatedir,;t t
4997 s,@localstatedir@,$localstatedir,;t t
4998 s,@libdir@,$libdir,;t t
4999 s,@includedir@,$includedir,;t t
5000 s,@oldincludedir@,$oldincludedir,;t t
5001 s,@infodir@,$infodir,;t t
5002 s,@mandir@,$mandir,;t t
5003 s,@build_alias@,$build_alias,;t t
5004 s,@host_alias@,$host_alias,;t t
5005 s,@target_alias@,$target_alias,;t t
5006 s,@DEFS@,$DEFS,;t t
5007 s,@ECHO_C@,$ECHO_C,;t t
5008 s,@ECHO_N@,$ECHO_N,;t t
5009 s,@ECHO_T@,$ECHO_T,;t t
5010 s,@LIBS@,$LIBS,;t t
5011 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5012 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5013 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5014 s,@PACKAGE@,$PACKAGE,;t t
5015 s,@VERSION@,$VERSION,;t t
5016 s,@ACLOCAL@,$ACLOCAL,;t t
5017 s,@AUTOCONF@,$AUTOCONF,;t t
5018 s,@AUTOMAKE@,$AUTOMAKE,;t t
5019 s,@AUTOHEADER@,$AUTOHEADER,;t t
5020 s,@MAKEINFO@,$MAKEINFO,;t t
5021 s,@SET_MAKE@,$SET_MAKE,;t t
5022 s,@CXX@,$CXX,;t t
5023 s,@CXXFLAGS@,$CXXFLAGS,;t t
5024 s,@LDFLAGS@,$LDFLAGS,;t t
5025 s,@CPPFLAGS@,$CPPFLAGS,;t t
5026 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5027 s,@EXEEXT@,$EXEEXT,;t t
5028 s,@OBJEXT@,$OBJEXT,;t t
5029 s,@CC@,$CC,;t t
5030 s,@CFLAGS@,$CFLAGS,;t t
5031 s,@ac_ct_CC@,$ac_ct_CC,;t t
5032 s,@CPP@,$CPP,;t t
5033 s,@EGREP@,$EGREP,;t t
5034 s,@CXXCPP@,$CXXCPP,;t t
5035 s,@LIBOBJS@,$LIBOBJS,;t t
5036 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5037 CEOF
5038
5039 _ACEOF
5040
5041 cat >>$CONFIG_STATUS <<\_ACEOF
5042 # Split the substitutions into bite-sized pieces for seds with
5043 # small command number limits, like on Digital OSF/1 and HP-UX.
5044 ac_max_sed_lines=48
5045 ac_sed_frag=1 # Number of current file.
5046 ac_beg=1 # First line for current file.
5047 ac_end=$ac_max_sed_lines # Line after last line for current file.
5048 ac_more_lines=:
5049 ac_sed_cmds=
5050 while $ac_more_lines; do
5051 if test $ac_beg -gt 1; then
5052 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5053 else
5054 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5055 fi
5056 if test ! -s $tmp/subs.frag; then
5057 ac_more_lines=false
5058 else
5059 # The purpose of the label and of the branching condition is to
5060 # speed up the sed processing (if there are no `@' at all, there
5061 # is no need to browse any of the substitutions).
5062 # These are the two extra sed commands mentioned above.
5063 (echo ':t
5064 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5065 if test -z "$ac_sed_cmds"; then
5066 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5067 else
5068 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5069 fi
5070 ac_sed_frag=`expr $ac_sed_frag + 1`
5071 ac_beg=$ac_end
5072 ac_end=`expr $ac_end + $ac_max_sed_lines`
5073 fi
5074 done
5075 if test -z "$ac_sed_cmds"; then
5076 ac_sed_cmds=cat
5077 fi
5078 fi # test -n "$CONFIG_FILES"
5079
5080 _ACEOF
5081 cat >>$CONFIG_STATUS <<\_ACEOF
5082 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5083 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5084 case $ac_file in
5085 - | *:- | *:-:* ) # input from stdin
5086 cat >$tmp/stdin
5087 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5088 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5089 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5090 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5091 * ) ac_file_in=$ac_file.in ;;
5092 esac
5093
5094 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5095 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5096 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5097 X"$ac_file" : 'X\(//\)[^/]' \| \
5098 X"$ac_file" : 'X\(//\)$' \| \
5099 X"$ac_file" : 'X\(/\)' \| \
5100 . : '\(.\)' 2>/dev/null ||
5101 echo X"$ac_file" |
5102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5103 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5104 /^X\(\/\/\)$/{ s//\1/; q; }
5105 /^X\(\/\).*/{ s//\1/; q; }
5106 s/.*/./; q'`
5107 { if $as_mkdir_p; then
5108 mkdir -p "$ac_dir"
5109 else
5110 as_dir="$ac_dir"
5111 as_dirs=
5112 while test ! -d "$as_dir"; do
5113 as_dirs="$as_dir $as_dirs"
5114 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5115 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5116 X"$as_dir" : 'X\(//\)[^/]' \| \
5117 X"$as_dir" : 'X\(//\)$' \| \
5118 X"$as_dir" : 'X\(/\)' \| \
5119 . : '\(.\)' 2>/dev/null ||
5120 echo X"$as_dir" |
5121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5122 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5123 /^X\(\/\/\)$/{ s//\1/; q; }
5124 /^X\(\/\).*/{ s//\1/; q; }
5125 s/.*/./; q'`
5126 done
5127 test ! -n "$as_dirs" || mkdir $as_dirs
5128 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5129 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5130 { (exit 1); exit 1; }; }; }
5131
5132 ac_builddir=.
5133
5134 if test "$ac_dir" != .; then
5135 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5136 # A "../" for each directory in $ac_dir_suffix.
5137 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5138 else
5139 ac_dir_suffix= ac_top_builddir=
5140 fi
5141
5142 case $srcdir in
5143 .) # No --srcdir option. We are building in place.
5144 ac_srcdir=.
5145 if test -z "$ac_top_builddir"; then
5146 ac_top_srcdir=.
5147 else
5148 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5149 fi ;;
5150 [\\/]* | ?:[\\/]* ) # Absolute path.
5151 ac_srcdir=$srcdir$ac_dir_suffix;
5152 ac_top_srcdir=$srcdir ;;
5153 *) # Relative path.
5154 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5155 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5156 esac
5157
5158 # Do not use `cd foo && pwd` to compute absolute paths, because
5159 # the directories may not exist.
5160 case `pwd` in
5161 .) ac_abs_builddir="$ac_dir";;
5162 *)
5163 case "$ac_dir" in
5164 .) ac_abs_builddir=`pwd`;;
5165 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5166 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5167 esac;;
5168 esac
5169 case $ac_abs_builddir in
5170 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5171 *)
5172 case ${ac_top_builddir}. in
5173 .) ac_abs_top_builddir=$ac_abs_builddir;;
5174 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5175 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5176 esac;;
5177 esac
5178 case $ac_abs_builddir in
5179 .) ac_abs_srcdir=$ac_srcdir;;
5180 *)
5181 case $ac_srcdir in
5182 .) ac_abs_srcdir=$ac_abs_builddir;;
5183 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5184 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5185 esac;;
5186 esac
5187 case $ac_abs_builddir in
5188 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5189 *)
5190 case $ac_top_srcdir in
5191 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5192 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5193 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5194 esac;;
5195 esac
5196
5197
5198 case $INSTALL in
5199 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5200 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5201 esac
5202
5203 if test x"$ac_file" != x-; then
5204 { echo "$as_me:$LINENO: creating $ac_file" >&5
5205 echo "$as_me: creating $ac_file" >&6;}
5206 rm -f "$ac_file"
5207 fi
5208 # Let's still pretend it is `configure' which instantiates (i.e., don't
5209 # use $as_me), people would be surprised to read:
5210 # /* config.h. Generated by config.status. */
5211 if test x"$ac_file" = x-; then
5212 configure_input=
5213 else
5214 configure_input="$ac_file. "
5215 fi
5216 configure_input=$configure_input"Generated from `echo $ac_file_in |
5217 sed 's,.*/,,'` by configure."
5218
5219 # First look for the input files in the build tree, otherwise in the
5220 # src tree.
5221 ac_file_inputs=`IFS=:
5222 for f in $ac_file_in; do
5223 case $f in
5224 -) echo $tmp/stdin ;;
5225 [\\/$]*)
5226 # Absolute (can't be DOS-style, as IFS=:)
5227 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5228 echo "$as_me: error: cannot find input file: $f" >&2;}
5229 { (exit 1); exit 1; }; }
5230 echo "$f";;
5231 *) # Relative
5232 if test -f "$f"; then
5233 # Build tree
5234 echo "$f"
5235 elif test -f "$srcdir/$f"; then
5236 # Source tree
5237 echo "$srcdir/$f"
5238 else
5239 # /dev/null tree
5240 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5241 echo "$as_me: error: cannot find input file: $f" >&2;}
5242 { (exit 1); exit 1; }; }
5243 fi;;
5244 esac
5245 done` || { (exit 1); exit 1; }
5246 _ACEOF
5247 cat >>$CONFIG_STATUS <<_ACEOF
5248 sed "$ac_vpsub
14295249 $extrasub
1430 s%@SHELL@%$SHELL%g
1431 s%@CFLAGS@%$CFLAGS%g
1432 s%@CPPFLAGS@%$CPPFLAGS%g
1433 s%@CXXFLAGS@%$CXXFLAGS%g
1434 s%@FFLAGS@%$FFLAGS%g
1435 s%@DEFS@%$DEFS%g
1436 s%@LDFLAGS@%$LDFLAGS%g
1437 s%@LIBS@%$LIBS%g
1438 s%@exec_prefix@%$exec_prefix%g
1439 s%@prefix@%$prefix%g
1440 s%@program_transform_name@%$program_transform_name%g
1441 s%@bindir@%$bindir%g
1442 s%@sbindir@%$sbindir%g
1443 s%@libexecdir@%$libexecdir%g
1444 s%@datadir@%$datadir%g
1445 s%@sysconfdir@%$sysconfdir%g
1446 s%@sharedstatedir@%$sharedstatedir%g
1447 s%@localstatedir@%$localstatedir%g
1448 s%@libdir@%$libdir%g
1449 s%@includedir@%$includedir%g
1450 s%@oldincludedir@%$oldincludedir%g
1451 s%@infodir@%$infodir%g
1452 s%@mandir@%$mandir%g
1453 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1454 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1455 s%@INSTALL_DATA@%$INSTALL_DATA%g
1456 s%@PACKAGE@%$PACKAGE%g
1457 s%@VERSION@%$VERSION%g
1458 s%@ACLOCAL@%$ACLOCAL%g
1459 s%@AUTOCONF@%$AUTOCONF%g
1460 s%@AUTOMAKE@%$AUTOMAKE%g
1461 s%@AUTOHEADER@%$AUTOHEADER%g
1462 s%@MAKEINFO@%$MAKEINFO%g
1463 s%@SET_MAKE@%$SET_MAKE%g
1464 s%@CXX@%$CXX%g
1465 s%@CPP@%$CPP%g
1466 s%@CXXCPP@%$CXXCPP%g
1467
1468 CEOF
1469 EOF
1470
1471 cat >> $CONFIG_STATUS <<\EOF
1472
1473 # Split the substitutions into bite-sized pieces for seds with
1474 # small command number limits, like on Digital OSF/1 and HP-UX.
1475 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1476 ac_file=1 # Number of current file.
1477 ac_beg=1 # First line for current file.
1478 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1479 ac_more_lines=:
1480 ac_sed_cmds=""
1481 while $ac_more_lines; do
1482 if test $ac_beg -gt 1; then
1483 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5250 _ACEOF
5251 cat >>$CONFIG_STATUS <<\_ACEOF
5252 :t
5253 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5254 s,@configure_input@,$configure_input,;t t
5255 s,@srcdir@,$ac_srcdir,;t t
5256 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5257 s,@top_srcdir@,$ac_top_srcdir,;t t
5258 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5259 s,@builddir@,$ac_builddir,;t t
5260 s,@abs_builddir@,$ac_abs_builddir,;t t
5261 s,@top_builddir@,$ac_top_builddir,;t t
5262 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5263 s,@INSTALL@,$ac_INSTALL,;t t
5264 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5265 rm -f $tmp/stdin
5266 if test x"$ac_file" != x-; then
5267 mv $tmp/out $ac_file
14845268 else
1485 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5269 cat $tmp/out
5270 rm -f $tmp/out
14865271 fi
1487 if test ! -s conftest.s$ac_file; then
1488 ac_more_lines=false
1489 rm -f conftest.s$ac_file
1490 else
1491 if test -z "$ac_sed_cmds"; then
1492 ac_sed_cmds="sed -f conftest.s$ac_file"
1493 else
1494 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1495 fi
1496 ac_file=`expr $ac_file + 1`
1497 ac_beg=$ac_end
1498 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1499 fi
5272
15005273 done
1501 if test -z "$ac_sed_cmds"; then
1502 ac_sed_cmds=cat
1503 fi
1504 EOF
1505
1506 cat >> $CONFIG_STATUS <<EOF
1507
1508 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1509 EOF
1510 cat >> $CONFIG_STATUS <<\EOF
1511 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1512 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1513 case "$ac_file" in
1514 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1515 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1516 *) ac_file_in="${ac_file}.in" ;;
1517 esac
1518
1519 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1520
1521 # Remove last slash and all that follows it. Not all systems have dirname.
1522 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1523 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1524 # The file is in a subdirectory.
1525 test ! -d "$ac_dir" && mkdir "$ac_dir"
1526 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1527 # A "../" for each directory in $ac_dir_suffix.
1528 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1529 else
1530 ac_dir_suffix= ac_dots=
1531 fi
1532
1533 case "$ac_given_srcdir" in
1534 .) srcdir=.
1535 if test -z "$ac_dots"; then top_srcdir=.
1536 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1537 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1538 *) # Relative path.
1539 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1540 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1541 esac
1542
1543 case "$ac_given_INSTALL" in
1544 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1545 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1546 esac
1547
1548 echo creating "$ac_file"
1549 rm -f "$ac_file"
1550 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1551 case "$ac_file" in
1552 *Makefile*) ac_comsub="1i\\
1553 # $configure_input" ;;
1554 *) ac_comsub= ;;
1555 esac
1556
1557 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1558 sed -e "$ac_comsub
1559 s%@configure_input@%$configure_input%g
1560 s%@srcdir@%$srcdir%g
1561 s%@top_srcdir@%$top_srcdir%g
1562 s%@INSTALL@%$INSTALL%g
1563 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1564 fi; done
1565 rm -f conftest.s*
5274 _ACEOF
5275 cat >>$CONFIG_STATUS <<\_ACEOF
5276
5277 #
5278 # CONFIG_HEADER section.
5279 #
15665280
15675281 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15685282 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15695283 #
15705284 # ac_d sets the value in "#define NAME VALUE" lines.
1571 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1572 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1573 ac_dC='\3'
1574 ac_dD='%g'
1575 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1576 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1577 ac_uB='\([ ]\)%\1#\2define\3'
5285 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5286 ac_dB='[ ].*$,\1#\2'
5287 ac_dC=' '
5288 ac_dD=',;t'
5289 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5290 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5291 ac_uB='$,\1#\2define\3'
15785292 ac_uC=' '
1579 ac_uD='\4%g'
1580 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1581 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1582 ac_eB='$%\1#\2define\3'
1583 ac_eC=' '
1584 ac_eD='%g'
1585
1586 if test "${CONFIG_HEADERS+set}" != set; then
1587 EOF
1588 cat >> $CONFIG_STATUS <<EOF
1589 CONFIG_HEADERS="config.h"
1590 EOF
1591 cat >> $CONFIG_STATUS <<\EOF
1592 fi
1593 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5293 ac_uD=',;t'
5294
5295 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15945296 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1595 case "$ac_file" in
1596 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1597 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1598 *) ac_file_in="${ac_file}.in" ;;
5297 case $ac_file in
5298 - | *:- | *:-:* ) # input from stdin
5299 cat >$tmp/stdin
5300 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5301 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5302 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5304 * ) ac_file_in=$ac_file.in ;;
15995305 esac
16005306
1601 echo creating $ac_file
1602
1603 rm -f conftest.frag conftest.in conftest.out
1604 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1605 cat $ac_file_inputs > conftest.in
1606
1607 EOF
1608
1609 # Transform confdefs.h into a sed script conftest.vals that substitutes
1610 # the proper values into config.h.in to produce config.h. And first:
1611 # Protect against being on the right side of a sed subst in config.status.
1612 # Protect against being in an unquoted here document in config.status.
1613 rm -f conftest.vals
1614 cat > conftest.hdr <<\EOF
1615 s/[\\&%]/\\&/g
1616 s%[\\$`]%\\&%g
1617 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1618 s%ac_d%ac_u%gp
1619 s%ac_u%ac_e%gp
1620 EOF
1621 sed -n -f conftest.hdr confdefs.h > conftest.vals
1622 rm -f conftest.hdr
5307 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5308 echo "$as_me: creating $ac_file" >&6;}
5309
5310 # First look for the input files in the build tree, otherwise in the
5311 # src tree.
5312 ac_file_inputs=`IFS=:
5313 for f in $ac_file_in; do
5314 case $f in
5315 -) echo $tmp/stdin ;;
5316 [\\/$]*)
5317 # Absolute (can't be DOS-style, as IFS=:)
5318 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5319 echo "$as_me: error: cannot find input file: $f" >&2;}
5320 { (exit 1); exit 1; }; }
5321 # Do quote $f, to prevent DOS paths from being IFS'd.
5322 echo "$f";;
5323 *) # Relative
5324 if test -f "$f"; then
5325 # Build tree
5326 echo "$f"
5327 elif test -f "$srcdir/$f"; then
5328 # Source tree
5329 echo "$srcdir/$f"
5330 else
5331 # /dev/null tree
5332 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5333 echo "$as_me: error: cannot find input file: $f" >&2;}
5334 { (exit 1); exit 1; }; }
5335 fi;;
5336 esac
5337 done` || { (exit 1); exit 1; }
5338 # Remove the trailing spaces.
5339 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5340
5341 _ACEOF
5342
5343 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5344 # `conftest.undefs', that substitutes the proper values into
5345 # config.h.in to produce config.h. The first handles `#define'
5346 # templates, and the second `#undef' templates.
5347 # And first: Protect against being on the right side of a sed subst in
5348 # config.status. Protect against being in an unquoted here document
5349 # in config.status.
5350 rm -f conftest.defines conftest.undefs
5351 # Using a here document instead of a string reduces the quoting nightmare.
5352 # Putting comments in sed scripts is not portable.
5353 #
5354 # `end' is used to avoid that the second main sed command (meant for
5355 # 0-ary CPP macros) applies to n-ary macro definitions.
5356 # See the Autoconf documentation for `clear'.
5357 cat >confdef2sed.sed <<\_ACEOF
5358 s/[\\&,]/\\&/g
5359 s,[\\$`],\\&,g
5360 t clear
5361 : clear
5362 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5363 t end
5364 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5365 : end
5366 _ACEOF
5367 # If some macros were called several times there might be several times
5368 # the same #defines, which is useless. Nevertheless, we may not want to
5369 # sort them, since we want the *last* AC-DEFINE to be honored.
5370 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5371 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5372 rm -f confdef2sed.sed
16235373
16245374 # This sed command replaces #undef with comments. This is necessary, for
16255375 # example, in the case of _POSIX_SOURCE, which is predefined and required
16265376 # on some systems where configure will not decide to define it.
1627 cat >> conftest.vals <<\EOF
1628 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1629 EOF
1630
1631 # Break up conftest.vals because some shells have a limit on
1632 # the size of here documents, and old seds have small limits too.
1633
5377 cat >>conftest.undefs <<\_ACEOF
5378 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5379 _ACEOF
5380
5381 # Break up conftest.defines because some shells have a limit on the size
5382 # of here documents, and old seds have small limits too (100 cmds).
5383 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5384 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5385 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5386 echo ' :' >>$CONFIG_STATUS
16345387 rm -f conftest.tail
1635 while :
5388 while grep . conftest.defines >/dev/null
16365389 do
1637 ac_lines=`grep -c . conftest.vals`
1638 # grep -c gives empty output for an empty file on some AIX systems.
1639 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1640 # Write a limited-size here document to conftest.frag.
1641 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1642 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5390 # Write a limited-size here document to $tmp/defines.sed.
5391 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5392 # Speed up: don't consider the non `#define' lines.
5393 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5394 # Work around the forget-to-reset-the-flag bug.
5395 echo 't clr' >>$CONFIG_STATUS
5396 echo ': clr' >>$CONFIG_STATUS
5397 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16435398 echo 'CEOF
1644 sed -f conftest.frag conftest.in > conftest.out
1645 rm -f conftest.in
1646 mv conftest.out conftest.in
1647 ' >> $CONFIG_STATUS
1648 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1649 rm -f conftest.vals
1650 mv conftest.tail conftest.vals
5399 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5400 rm -f $tmp/in
5401 mv $tmp/out $tmp/in
5402 ' >>$CONFIG_STATUS
5403 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5404 rm -f conftest.defines
5405 mv conftest.tail conftest.defines
16515406 done
1652 rm -f conftest.vals
1653
1654 cat >> $CONFIG_STATUS <<\EOF
1655 rm -f conftest.frag conftest.h
1656 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1657 cat conftest.in >> conftest.h
1658 rm -f conftest.in
1659 if cmp -s $ac_file conftest.h 2>/dev/null; then
1660 echo "$ac_file is unchanged"
1661 rm -f conftest.h
5407 rm -f conftest.defines
5408 echo ' fi # grep' >>$CONFIG_STATUS
5409 echo >>$CONFIG_STATUS
5410
5411 # Break up conftest.undefs because some shells have a limit on the size
5412 # of here documents, and old seds have small limits too (100 cmds).
5413 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5414 rm -f conftest.tail
5415 while grep . conftest.undefs >/dev/null
5416 do
5417 # Write a limited-size here document to $tmp/undefs.sed.
5418 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5419 # Speed up: don't consider the non `#undef'
5420 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5421 # Work around the forget-to-reset-the-flag bug.
5422 echo 't clr' >>$CONFIG_STATUS
5423 echo ': clr' >>$CONFIG_STATUS
5424 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5425 echo 'CEOF
5426 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5427 rm -f $tmp/in
5428 mv $tmp/out $tmp/in
5429 ' >>$CONFIG_STATUS
5430 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5431 rm -f conftest.undefs
5432 mv conftest.tail conftest.undefs
5433 done
5434 rm -f conftest.undefs
5435
5436 cat >>$CONFIG_STATUS <<\_ACEOF
5437 # Let's still pretend it is `configure' which instantiates (i.e., don't
5438 # use $as_me), people would be surprised to read:
5439 # /* config.h. Generated by config.status. */
5440 if test x"$ac_file" = x-; then
5441 echo "/* Generated by configure. */" >$tmp/config.h
16625442 else
1663 # Remove last slash and all that follows it. Not all systems have dirname.
1664 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1665 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1666 # The file is in a subdirectory.
1667 test ! -d "$ac_dir" && mkdir "$ac_dir"
5443 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5444 fi
5445 cat $tmp/in >>$tmp/config.h
5446 rm -f $tmp/in
5447 if test x"$ac_file" != x-; then
5448 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5449 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5450 echo "$as_me: $ac_file is unchanged" >&6;}
5451 else
5452 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5453 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5454 X"$ac_file" : 'X\(//\)[^/]' \| \
5455 X"$ac_file" : 'X\(//\)$' \| \
5456 X"$ac_file" : 'X\(/\)' \| \
5457 . : '\(.\)' 2>/dev/null ||
5458 echo X"$ac_file" |
5459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5460 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5461 /^X\(\/\/\)$/{ s//\1/; q; }
5462 /^X\(\/\).*/{ s//\1/; q; }
5463 s/.*/./; q'`
5464 { if $as_mkdir_p; then
5465 mkdir -p "$ac_dir"
5466 else
5467 as_dir="$ac_dir"
5468 as_dirs=
5469 while test ! -d "$as_dir"; do
5470 as_dirs="$as_dir $as_dirs"
5471 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5472 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5473 X"$as_dir" : 'X\(//\)[^/]' \| \
5474 X"$as_dir" : 'X\(//\)$' \| \
5475 X"$as_dir" : 'X\(/\)' \| \
5476 . : '\(.\)' 2>/dev/null ||
5477 echo X"$as_dir" |
5478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5479 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5480 /^X\(\/\/\)$/{ s//\1/; q; }
5481 /^X\(\/\).*/{ s//\1/; q; }
5482 s/.*/./; q'`
5483 done
5484 test ! -n "$as_dirs" || mkdir $as_dirs
5485 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5486 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5487 { (exit 1); exit 1; }; }; }
5488
5489 rm -f $ac_file
5490 mv $tmp/config.h $ac_file
16685491 fi
1669 rm -f $ac_file
1670 mv conftest.h $ac_file
5492 else
5493 cat $tmp/config.h
5494 rm -f $tmp/config.h
16715495 fi
1672 fi; done
1673
1674 EOF
1675 cat >> $CONFIG_STATUS <<EOF
1676
1677
1678 EOF
1679 cat >> $CONFIG_STATUS <<\EOF
1680 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
1681
1682 exit 0
1683 EOF
5496 done
5497 _ACEOF
5498 cat >>$CONFIG_STATUS <<\_ACEOF
5499
5500 #
5501 # CONFIG_COMMANDS section.
5502 #
5503 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5504 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5505 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5506 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5507 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5508 X"$ac_dest" : 'X\(//\)[^/]' \| \
5509 X"$ac_dest" : 'X\(//\)$' \| \
5510 X"$ac_dest" : 'X\(/\)' \| \
5511 . : '\(.\)' 2>/dev/null ||
5512 echo X"$ac_dest" |
5513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5514 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5515 /^X\(\/\/\)$/{ s//\1/; q; }
5516 /^X\(\/\).*/{ s//\1/; q; }
5517 s/.*/./; q'`
5518 { if $as_mkdir_p; then
5519 mkdir -p "$ac_dir"
5520 else
5521 as_dir="$ac_dir"
5522 as_dirs=
5523 while test ! -d "$as_dir"; do
5524 as_dirs="$as_dir $as_dirs"
5525 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5527 X"$as_dir" : 'X\(//\)[^/]' \| \
5528 X"$as_dir" : 'X\(//\)$' \| \
5529 X"$as_dir" : 'X\(/\)' \| \
5530 . : '\(.\)' 2>/dev/null ||
5531 echo X"$as_dir" |
5532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5533 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5534 /^X\(\/\/\)$/{ s//\1/; q; }
5535 /^X\(\/\).*/{ s//\1/; q; }
5536 s/.*/./; q'`
5537 done
5538 test ! -n "$as_dirs" || mkdir $as_dirs
5539 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5540 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5541 { (exit 1); exit 1; }; }; }
5542
5543 ac_builddir=.
5544
5545 if test "$ac_dir" != .; then
5546 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5547 # A "../" for each directory in $ac_dir_suffix.
5548 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5549 else
5550 ac_dir_suffix= ac_top_builddir=
5551 fi
5552
5553 case $srcdir in
5554 .) # No --srcdir option. We are building in place.
5555 ac_srcdir=.
5556 if test -z "$ac_top_builddir"; then
5557 ac_top_srcdir=.
5558 else
5559 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5560 fi ;;
5561 [\\/]* | ?:[\\/]* ) # Absolute path.
5562 ac_srcdir=$srcdir$ac_dir_suffix;
5563 ac_top_srcdir=$srcdir ;;
5564 *) # Relative path.
5565 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5566 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5567 esac
5568
5569 # Do not use `cd foo && pwd` to compute absolute paths, because
5570 # the directories may not exist.
5571 case `pwd` in
5572 .) ac_abs_builddir="$ac_dir";;
5573 *)
5574 case "$ac_dir" in
5575 .) ac_abs_builddir=`pwd`;;
5576 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5577 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5578 esac;;
5579 esac
5580 case $ac_abs_builddir in
5581 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5582 *)
5583 case ${ac_top_builddir}. in
5584 .) ac_abs_top_builddir=$ac_abs_builddir;;
5585 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5586 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5587 esac;;
5588 esac
5589 case $ac_abs_builddir in
5590 .) ac_abs_srcdir=$ac_srcdir;;
5591 *)
5592 case $ac_srcdir in
5593 .) ac_abs_srcdir=$ac_abs_builddir;;
5594 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5595 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5596 esac;;
5597 esac
5598 case $ac_abs_builddir in
5599 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5600 *)
5601 case $ac_top_srcdir in
5602 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5603 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5604 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5605 esac;;
5606 esac
5607
5608
5609 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5610 echo "$as_me: executing $ac_dest commands" >&6;}
5611 case $ac_dest in
5612 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
5613 esac
5614 done
5615 _ACEOF
5616
5617 cat >>$CONFIG_STATUS <<\_ACEOF
5618
5619 { (exit 0); exit 0; }
5620 _ACEOF
16845621 chmod +x $CONFIG_STATUS
1685 rm -fr confdefs* $ac_clean_files
1686 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1687
5622 ac_clean_files=$ac_clean_files_save
5623
5624
5625 # configure is writing to config.log, and then calls config.status.
5626 # config.status does its own redirection, appending to config.log.
5627 # Unfortunately, on DOS this fails, as config.log is still kept open
5628 # by configure, so config.status won't be able to write to it; its
5629 # output is simply discarded. So we exec the FD to /dev/null,
5630 # effectively closing config.log, so it can be properly (re)opened and
5631 # appended to by config.status. When coming back to configure, we
5632 # need to make the FD available again.
5633 if test "$no_create" != yes; then
5634 ac_cs_success=:
5635 ac_config_status_args=
5636 test "$silent" = yes &&
5637 ac_config_status_args="$ac_config_status_args --quiet"
5638 exec 5>/dev/null
5639 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5640 exec 5>>config.log
5641 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5642 # would make configure fail if this is the last instruction.
5643 $ac_cs_success || { (exit 1); exit 1; }
5644 fi
5645
00 AC_INIT(squidview.cpp)
11 AM_CONFIG_HEADER(config.h)
2 AM_INIT_AUTOMAKE(squidview,0.69)
2 AM_INIT_AUTOMAKE(squidview,0.70)
33 AC_PROG_CXX
44 AC_PROG_INSTALL
5
56
67 AC_CHECK_HEADERS(curses.h signal.h sys/time.h sys/types.h sys/stat.h \
78 unistd.h fcntl.h time.h stdlib.h math.h,, \
1718 test "x$prefix" = "xNONE" && prefix="$ac_default_prefix"
1819 sv2=`eval echo $datadir/$PACKAGE`
1920 prefix="$sv1"
20 AC_DEFINE_UNQUOTED(SHAREDIR, "$sv2")
21 AC_DEFINE_UNQUOTED(SHAREDIR, "$sv2", install_path)
2122 AC_OUTPUT(Makefile)
0 squidview (0.70-1) unstable; urgency=low
1
2 * New upstream release
3 - compiles with gcc-4.1 (closes: #356516, thanks Martin Michlmayr for the
4 report and the fix and Graeme Sheppard for releasing the new upstream
5 tarball so fast.)
6 * Switch to debhelper compatibility 4 as 3 is deprecated.
7
8 -- Willi Mann <willi@wm1.at> Sat, 18 Mar 2006 15:21:14 +0100
9
010 squidview (0.69-2) unstable; urgency=low
111
212 * Build against new C++-ABI.
55 #export DH_VERBOSE=1
66
77 # This is the debhelper compatibility version to use.
8 export DH_COMPAT=3
8 export DH_COMPAT=4
99
1010
1111 # These are used for cross-compiling and for saving the configure script
198198 string sLoginName;
199199 string sFullName;
200200
201 rUserTotal rUserTotal::operator= (const rUserTotal&);
201 rUserTotal operator= (const rUserTotal&);
202202 };
203203
204204 struct rDomainTotal
207207 int iHits;
208208 string sDomain;
209209
210 rDomainTotal rDomainTotal::operator= (const rDomainTotal&);
210 rDomainTotal operator= (const rDomainTotal&);
211211 };
212212
213213