]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/links/links-2.1pre12/configure.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / links / links-2.1pre12 / configure.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- links-2.1pre12/configure.in~configure
7 +++ links-2.1pre12/configure.in
8 @@ -3,7 +3,8 @@
9  #          Martin 'PerM' Pergel
10  # This file is a part of the Links program, released under GPL.
11  
12 -AC_INIT(main.c)
13 +AC_INIT
14 +AC_CONFIG_SRCDIR([main.c])
15  
16  AM_INIT_AUTOMAKE(links, 2.1pre12)
17  
18 @@ -13,12 +14,12 @@
19  AUTOHEADER="./missing autoheader"
20  image_formats="GIF PNG XBM"
21  
22 -AM_CONFIG_HEADER(config.h)
23 +AC_CONFIG_HEADERS([config.h])
24  
25  dnl Checks for programs.
26  AC_PROG_CC
27  
28 -#AC_PROG_CXX
29 +AC_PROG_CXX
30  #AC_PROG_AWK
31  #AM_PROG_LEX
32  #AC_PROG_YACC
33 @@ -27,20 +28,20 @@
34  #AC_CHECK_LIB(fl,main,AC_DEFINE(JS) LIBS="$LIBS -lfl",AC_MSG_WARN(You don't have libfl; you won't be able to run javascript))
35  
36  AC_CACHE_CHECK([for EMX], ac_cv_have_emx,
37 -       AC_TRY_COMPILE(, [#ifndef __EMX__
38 +       AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[#ifndef __EMX__
39         kill me!
40 -       #endif ], ac_cv_have_emx=yes, ac_cv_have_emx=no)
41 +       #endif ]])],[ac_cv_have_emx=yes],[ac_cv_have_emx=no])
42  )
43  test "$ac_cv_have_emx" = yes && LDFLAGS=`echo "$LDFLAGS" | sed "s/-Zexe//g" | sed "s/-Zbin-files//g"`
44  
45  AC_CACHE_CHECK([for typeof], ac_cv_have_typeof,
46 -       AC_TRY_COMPILE(, [int a;
47 -       typeof(a) b;], ac_cv_have_typeof=yes, ac_cv_have_typeof=no)
48 +       AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[int a;
49 +       typeof(a) b;]])],[ac_cv_have_typeof=yes],[ac_cv_have_typeof=no])
50         )
51  test "$ac_cv_have_typeof" = yes && AC_DEFINE(HAVE_TYPEOF)
52  
53  AC_CACHE_CHECK([for long long], ac_cv_have_long_long,
54 -       AC_TRY_COMPILE(, [unsigned long long a; ], ac_cv_have_long_long=yes, ac_cv_have_long_long=no)
55 +       AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[unsigned long long a; ]])],[ac_cv_have_long_long=yes],[ac_cv_have_long_long=no])
56  )
57  test "$ac_cv_have_long_long" = yes && AC_DEFINE(HAVE_LONG_LONG)
58  
59 @@ -87,7 +88,7 @@
60  AC_CHECK_SIZEOF(long, "$default_int")
61  AC_CHECK_SIZEOF(unsigned long, "$default_int")
62  AC_CACHE_CHECK([for big endian], ac_cv_big_endian,
63 -       AC_TRY_RUN([
64 +       AC_RUN_IFELSE([AC_LANG_SOURCE([[
65         long l;
66         char *c = (char *)&l;
67         int main()
68 @@ -95,10 +96,10 @@
69                 l = 0x12345678L;
70                 return !(c[[sizeof(long) - 1]] == 0x78 && c[[sizeof(long) - 2]] == 0x56 && c[[sizeof(long) - 3]] == 0x34 && c[[sizeof(long) - 4]] == 0x12);
71         }
72 -       ], ac_cv_big_endian=yes, ac_cv_big_endian=no, ac_cv_big_endian=no)
73 +       ]])],[ac_cv_big_endian=yes],[ac_cv_big_endian=no],[ac_cv_big_endian=no])
74  )
75  AC_CACHE_CHECK([for little endian], ac_cv_little_endian,
76 -       AC_TRY_RUN([
77 +       AC_RUN_IFELSE([AC_LANG_SOURCE([[
78         long l;
79         char *c = (char *)&l;
80         int main()
81 @@ -106,9 +107,12 @@
82                 l = 0x12345678L;
83                 return !(c[[0]] == 0x78 && c[[1]] == 0x56 && c[[2]] == 0x34 && c[[3]] == 0x12);
84         }
85 -       ], ac_cv_little_endian=yes, ac_cv_little_endian=no, ac_cv_little_endian="$ac_cv_have_emx")
86 +       ]])],[ac_cv_little_endian=yes],[ac_cv_little_endian=no],[ac_cv_little_endian="$ac_cv_have_emx"])
87  )
88  
89 +AC_DEFUN([AC_BIG_ENDIAN],[],[])
90 +AC_DEFUN([AC_LITTLE_ENDIAN],[],[])
91 +
92  if test "$ac_cv_big_endian" = yes; then
93         AC_DEFINE(AC_BIG_ENDIAN)
94  else if test "$ac_cv_little_endian" = yes; then
95 @@ -122,19 +126,19 @@
96  AC_TYPE_SIGNAL
97  AC_FUNC_STRFTIME
98  AC_FUNC_VPRINTF
99 -AC_HAVE_FUNCS(calloc)
100 -AC_HAVE_FUNCS(snprintf)
101 -AC_HAVE_FUNCS(gettimeofday mkdir select strcspn strerror strstr strtol strtoul alarm chmod)
102 -AC_HAVE_FUNCS(getpid setpgid getpgid setpgrp getpgrp)
103 -AC_HAVE_FUNCS(popen)
104 -AC_HAVE_FUNCS(uname)
105 -AC_HAVE_FUNCS(strptime)
106 -AC_HAVE_FUNCS(setlocale)
107 -AC_HAVE_FUNCS(nl_langinfo)
108 -dnl AC_HAVE_FUNCS(sigsetjmp siglongjmp)
109 +AC_CHECK_FUNCS([calloc])
110 +AC_CHECK_FUNCS([snprintf])
111 +AC_CHECK_FUNCS([gettimeofday mkdir select strcspn strerror strstr strtol strtoul alarm chmod])
112 +AC_CHECK_FUNCS([getpid setpgid getpgid setpgrp getpgrp])
113 +AC_CHECK_FUNCS([popen])
114 +AC_CHECK_FUNCS([uname])
115 +AC_CHECK_FUNCS([strptime])
116 +AC_CHECK_FUNCS([setlocale])
117 +AC_CHECK_FUNCS([nl_langinfo])
118 +dnl AC_CHECK_FUNCS([sigsetjmp siglongjmp])
119  
120  AC_CACHE_CHECK([for sigsetjmp/siglongjmp], ac_cv_have_sigsetjmp,
121 -       AC_TRY_LINK([#include <setjmp.h>], [sigjmp_buf env;sigsetjmp(env, 1);siglongjmp(env, 2);], ac_cv_have_sigsetjmp=yes, ac_cv_have_sigsetjmp=no)
122 +       AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <setjmp.h>]], [[sigjmp_buf env;sigsetjmp(env, 1);siglongjmp(env, 2);]])],[ac_cv_have_sigsetjmp=yes],[ac_cv_have_sigsetjmp=no])
123  )
124  if test "$ac_cv_have_sigsetjmp" = yes; then
125         AC_DEFINE(HAVE_SIGSETJMP)
126 @@ -153,7 +157,7 @@
127  fi
128  
129  #AC_MSG_CHECKING([for gethostbyname])
130 -#AC_TRY_LINK([#include <netdb.h>], [gethostbyname("")], cf_result=yes, cf_result=no)
131 +#AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <netdb.h>]], [[gethostbyname("")]])],[cf_result=yes],[cf_result=no])
132  #AC_MSG_RESULT($cf_result)
133  AC_CHECK_FUNC(gethostbyname, cf_result=yes, cf_result=no)
134  if test "$cf_result" = no; then
135 @@ -168,7 +172,7 @@
136  AC_CHECK_FUNC(herror, AC_DEFINE(HAVE_HERROR))
137  AC_CHECK_FUNC(cfmakeraw, AC_DEFINE(HAVE_CFMAKERAW))
138  
139 -AC_HAVE_FUNCS(cygwin_conv_to_full_win32_path)
140 +AC_CHECK_FUNCS([cygwin_conv_to_full_win32_path])
141  
142  AC_MSG_CHECKING([if you want to enable javascript])
143  AC_ARG_ENABLE(javascript, [  --enable-javascript     use javascript interpreter], cf_use_javascript=yes, cf_use_javascript=no)
144 @@ -192,7 +196,7 @@
145  AC_CACHE_CHECK([for OS/2 threads], ac_cv_have_beginthread,
146         CFLAGS_X="$CFLAGS"
147         CFLAGS="$CFLAGS -Zmt"
148 -       AC_TRY_LINK([#include <stdlib.h>], [_beginthread(NULL, NULL, 0, NULL)], ac_cv_have_beginthread=yes, ac_cv_have_beginthread=no)
149 +       AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h>]], [[_beginthread(NULL, NULL, 0, NULL)]])],[ac_cv_have_beginthread=yes],[ac_cv_have_beginthread=no])
150         CFLAGS="$CFLAGS_X"
151  )
152  if test "$ac_cv_have_beginthread" = yes; then
153 @@ -209,8 +213,8 @@
154  fi
155  #AC_CHECK_FUNC(clone, AC_DEFINE(HAVE_CLONE))
156  AC_CHECK_HEADERS(atheos/threads.h)
157 -AC_HAVE_FUNCS(spawn_thread)
158 -AC_HAVE_FUNCS(resume_thread)
159 +AC_CHECK_FUNCS([spawn_thread])
160 +AC_CHECK_FUNCS([resume_thread])
161  
162  AC_CHECK_FUNC(MouOpen, AC_DEFINE(HAVE_MOUOPEN))
163  AC_CHECK_FUNC(_read_kbd, AC_DEFINE(HAVE_READ_KBD))
164 @@ -222,10 +226,10 @@
165         if test -n "$X11ROOT"; then
166                 CPPFLAGS="$CPPFLAGS_X -I$X11ROOT/XFree86/include"
167                 LIBS="$LIBS_X -L$X11ROOT/XFree86/lib -lxf86_gcc"
168 -               AC_TRY_LINK([#include <pty.h>], [struct winsize win;ptioctl(1, TIOCGWINSZ, &win)], ac_cv_have_x2=xf86_gcc, ac_cv_have_x2=no)
169 +               AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pty.h>]], [[struct winsize win;ptioctl(1, TIOCGWINSZ, &win)]])],[ac_cv_have_x2=xf86_gcc],[ac_cv_have_x2=no])
170                 if test "$ac_cv_have_x2" = no; then
171                         LIBS="$LIBS_X -L$X11ROOT/XFree86/lib -lxf86"
172 -                       AC_TRY_LINK([#include <pty.h>], [struct winsize win;ptioctl(1, TIOCGWINSZ, &win)], ac_cv_have_x2=xf86, ac_cv_have_x2=no)
173 +                       AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pty.h>]], [[struct winsize win;ptioctl(1, TIOCGWINSZ, &win)]])],[ac_cv_have_x2=xf86],[ac_cv_have_x2=no])
174                 fi
175         fi
176         CPPFLAGS="$CPPFLAGS_X"
177 @@ -254,9 +258,9 @@
178                         else
179                                 LIBS="-lssl -lcrypto $LIBS_X"
180                         fi
181 -                       AC_TRY_LINK([#include <openssl/ssl.h>], [OpenSSL_add_all_algorithms()], cf_result=yes, cf_result=no)
182 +                       AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <openssl/ssl.h>]], [[OpenSSL_add_all_algorithms()]])],[cf_result=yes],[cf_result=no])
183                         if test "$cf_result" != yes; then
184 -                               AC_TRY_LINK([#include <openssl/ssl.h>], [SSLeay_add_ssl_algorithms()], cf_result=yes, cf_result=no)
185 +                               AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <openssl/ssl.h>]], [[SSLeay_add_ssl_algorithms()]])],[cf_result=yes],[cf_result=no])
186                         fi
187                 fi
188         done
189 @@ -287,14 +291,14 @@
190         AC_CHECK_HEADERS(png.h libpng/png.h)
191         AC_CHECK_LIB(png, png_create_info_struct)
192         if test "$ac_cv_header_png_h" != yes && test "$ac_cv_header_libpng_png_h" != yes || test "$ac_cv_lib_png_png_create_info_struct" != yes; then
193 -               AC_ERROR([You need libpng to compile Links in graphics mode])
194 +               AC_MSG_ERROR([You need libpng to compile Links in graphics mode])
195         fi
196  
197 -       AC_HAVE_FUNCS(png_set_rgb_to_gray)
198 +       AC_CHECK_FUNCS([png_set_rgb_to_gray])
199  
200         AC_CACHE_CHECK(if you can include both setjmp.h and png.h, ac_cv_include_setjmp_png,
201 -               AC_TRY_COMPILE([#include <setjmp.h>
202 -               #include <png.h>], [jmp_buf bla;], ac_cv_include_setjmp_png=yes, ac_cv_include_setjmp_png=no)
203 +               AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <setjmp.h>
204 +               #include <png.h>]], [[jmp_buf bla;]])],[ac_cv_include_setjmp_png=yes],[ac_cv_include_setjmp_png=no])
205         )
206  
207         if test "$ac_cv_include_setjmp_png" != yes; then
208 @@ -338,7 +342,7 @@
209         AC_CACHE_CHECK([for svgalib], ac_cv_have_svgalib,
210                 LIBS_X="$LIBS"
211                 LIBS="$LIBS -lvga"
212 -               AC_TRY_LINK([#include <vga.h>], [vga_setmode(0)], ac_cv_have_svgalib=yes, ac_cv_have_svgalib=no)
213 +               AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <vga.h>]], [[vga_setmode(0)]])],[ac_cv_have_svgalib=yes],[ac_cv_have_svgalib=no])
214                 LIBS="$LIBS_X"
215         )
216  
217 @@ -351,9 +355,9 @@
218  
219  dnl            braine, tohle jsem predelal
220  dnl    AC_CACHE_CHECK([for framebuffer], ac_cv_have_fb,
221 -dnl            AC_TRY_RUN([#include <stdio.h>
222 +dnl            AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
223  dnl            #include <fcntl.h>
224 -dnl            main(){return open("/dev/fb",O_RDWR)==-1;}], ac_cv_have_fb=yes, ac_cv_have_fb=no, ac_cv_have_fb=no)
225 +dnl            main(){return open("/dev/fb",O_RDWR)==-1;}]])],[ac_cv_have_fb=yes],[ac_cv_have_fb=no],[ac_cv_have_fb=no])
226  dnl    )
227         
228  if test "$disable_fb" != yes ; then
229 @@ -406,14 +410,12 @@
230  
231  if test "$disable_pmshell" != yes ; then
232         AC_CACHE_CHECK([for pmshell], ac_cv_have_pmshell,
233 -               AC_TRY_LINK([#define INCL_WIN
234 +               AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define INCL_WIN
235                         #define INCL_GPI
236                         #include <os2.h>
237 -                       #include <sys/fmutex.h>],
238 -                       [_fmutex mutex;
239 +                       #include <sys/fmutex.h>]], [[_fmutex mutex;
240                         WinDrawText(NULLHANDLE, -1, NULL, NULL, 0, 0, 0),
241 -                       GpiSetPel(NULLHANDLE, NULL)],
242 -               ac_cv_have_pmshell=yes, ac_cv_have_pmshell=no)
243 +                       GpiSetPel(NULLHANDLE, NULL)]])],[ac_cv_have_pmshell=yes],[ac_cv_have_pmshell=no])
244         )
245                         
246         if test "$ac_cv_have_pmshell" = yes; then
247 @@ -463,7 +465,8 @@
248  test "$ac_cv_have_emx" = yes && LDFLAGS="$LDFLAGS -Zexe"
249  test "$ac_cv_have_emx" = yes && LDFLAGS=`echo "$LDFLAGS" | sed "s/-Zbin-files//g"`
250  
251 -AC_OUTPUT(Makefile)
252 +AC_CONFIG_FILES([Makefile])
253 +AC_OUTPUT
254  
255  echo "---------------------------------------------------------"
256  echo "Configuration results:"
257 @@ -485,5 +488,5 @@
258  #rm Makefile.tmp
259  
260  #if test -z "$AWK"; then
261 -#      AC_WARN([awk not found. You won't be able to rebuild code page table.]);
262 +#      AC_MSG_WARN([awk not found. You won't be able to rebuild code page table.]);
263  #fi
264 --- links-2.1pre12/configure~configure
265 +++ links-2.1pre12/configure
266 @@ -1,52 +1,324 @@
267  #! /bin/sh
268 -
269  # Guess values for system-dependent variables and create Makefiles.
270 -# Generated automatically using autoconf version 2.13 
271 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
272 +# Generated by GNU Autoconf 2.57.
273  #
274 +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
275 +# Free Software Foundation, Inc.
276  # This configure script is free software; the Free Software Foundation
277  # gives unlimited permission to copy, distribute and modify it.
278 +## --------------------- ##
279 +## M4sh Initialization.  ##
280 +## --------------------- ##
281  
282 -# Defaults:
283 -ac_help=
284 +# Be Bourne compatible
285 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
286 +  emulate sh
287 +  NULLCMD=:
288 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
289 +  # is contrary to our usage.  Disable this feature.
290 +  alias -g '${1+"$@"}'='"$@"'
291 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
292 +  set -o posix
293 +fi
294 +
295 +# Support unset when possible.
296 +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
297 +  as_unset=unset
298 +else
299 +  as_unset=false
300 +fi
301 +
302 +
303 +# Work around bugs in pre-3.0 UWIN ksh.
304 +$as_unset ENV MAIL MAILPATH
305 +PS1='$ '
306 +PS2='> '
307 +PS4='+ '
308 +
309 +# NLS nuisances.
310 +for as_var in \
311 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
312 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
313 +  LC_TELEPHONE LC_TIME
314 +do
315 +  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
316 +    eval $as_var=C; export $as_var
317 +  else
318 +    $as_unset $as_var
319 +  fi
320 +done
321 +
322 +# Required to use basename.
323 +if expr a : '\(a\)' >/dev/null 2>&1; then
324 +  as_expr=expr
325 +else
326 +  as_expr=false
327 +fi
328 +
329 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
330 +  as_basename=basename
331 +else
332 +  as_basename=false
333 +fi
334 +
335 +
336 +# Name of the executable.
337 +as_me=`$as_basename "$0" ||
338 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
339 +        X"$0" : 'X\(//\)$' \| \
340 +        X"$0" : 'X\(/\)$' \| \
341 +        .     : '\(.\)' 2>/dev/null ||
342 +echo X/"$0" |
343 +    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
344 +         /^X\/\(\/\/\)$/{ s//\1/; q; }
345 +         /^X\/\(\/\).*/{ s//\1/; q; }
346 +         s/.*/./; q'`
347 +
348 +
349 +# PATH needs CR, and LINENO needs CR and PATH.
350 +# Avoid depending upon Character Ranges.
351 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
352 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
353 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
354 +as_cr_digits='0123456789'
355 +as_cr_alnum=$as_cr_Letters$as_cr_digits
356 +
357 +# The user is always right.
358 +if test "${PATH_SEPARATOR+set}" != set; then
359 +  echo "#! /bin/sh" >conf$$.sh
360 +  echo  "exit 0"   >>conf$$.sh
361 +  chmod +x conf$$.sh
362 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
363 +    PATH_SEPARATOR=';'
364 +  else
365 +    PATH_SEPARATOR=:
366 +  fi
367 +  rm -f conf$$.sh
368 +fi
369 +
370 +
371 +  as_lineno_1=$LINENO
372 +  as_lineno_2=$LINENO
373 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
374 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
375 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
376 +  # Find who we are.  Look in the path if we contain no path at all
377 +  # relative or not.
378 +  case $0 in
379 +    *[\\/]* ) as_myself=$0 ;;
380 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
381 +for as_dir in $PATH
382 +do
383 +  IFS=$as_save_IFS
384 +  test -z "$as_dir" && as_dir=.
385 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
386 +done
387 +
388 +       ;;
389 +  esac
390 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
391 +  # in which case we are not to be found in the path.
392 +  if test "x$as_myself" = x; then
393 +    as_myself=$0
394 +  fi
395 +  if test ! -f "$as_myself"; then
396 +    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
397 +   { (exit 1); exit 1; }; }
398 +  fi
399 +  case $CONFIG_SHELL in
400 +  '')
401 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
402 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
403 +do
404 +  IFS=$as_save_IFS
405 +  test -z "$as_dir" && as_dir=.
406 +  for as_base in sh bash ksh sh5; do
407 +        case $as_dir in
408 +        /*)
409 +          if ("$as_dir/$as_base" -c '
410 +  as_lineno_1=$LINENO
411 +  as_lineno_2=$LINENO
412 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
413 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
414 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
415 +            $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
416 +            $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
417 +            CONFIG_SHELL=$as_dir/$as_base
418 +            export CONFIG_SHELL
419 +            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
420 +          fi;;
421 +        esac
422 +       done
423 +done
424 +;;
425 +  esac
426 +
427 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
428 +  # uniformly replaced by the line number.  The first 'sed' inserts a
429 +  # line-number line before each line; the second 'sed' does the real
430 +  # work.  The second script uses 'N' to pair each line-number line
431 +  # with the numbered line, and appends trailing '-' during
432 +  # substitution so that $LINENO is not a special case at line end.
433 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
435 +  sed '=' <$as_myself |
436 +    sed '
437 +      N
438 +      s,$,-,
439 +      : loop
440 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
441 +      t loop
442 +      s,-$,,
443 +      s,^['$as_cr_digits']*\n,,
444 +    ' >$as_me.lineno &&
445 +  chmod +x $as_me.lineno ||
446 +    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
447 +   { (exit 1); exit 1; }; }
448 +
449 +  # Don't try to exec as it changes $[0], causing all sort of problems
450 +  # (the dirname of $[0] is not the place where we might find the
451 +  # original and so on.  Autoconf is especially sensible to this).
452 +  . ./$as_me.lineno
453 +  # Exit status is that of the last command.
454 +  exit
455 +}
456 +
457 +
458 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
459 +  *c*,-n*) ECHO_N= ECHO_C='
460 +' ECHO_T='     ' ;;
461 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
462 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
463 +esac
464 +
465 +if expr a : '\(a\)' >/dev/null 2>&1; then
466 +  as_expr=expr
467 +else
468 +  as_expr=false
469 +fi
470 +
471 +rm -f conf$$ conf$$.exe conf$$.file
472 +echo >conf$$.file
473 +if ln -s conf$$.file conf$$ 2>/dev/null; then
474 +  # We could just check for DJGPP; but this test a) works b) is more generic
475 +  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
476 +  if test -f conf$$.exe; then
477 +    # Don't use ln at all; we don't have any links
478 +    as_ln_s='cp -p'
479 +  else
480 +    as_ln_s='ln -s'
481 +  fi
482 +elif ln conf$$.file conf$$ 2>/dev/null; then
483 +  as_ln_s=ln
484 +else
485 +  as_ln_s='cp -p'
486 +fi
487 +rm -f conf$$ conf$$.exe conf$$.file
488 +
489 +if mkdir -p . 2>/dev/null; then
490 +  as_mkdir_p=:
491 +else
492 +  as_mkdir_p=false
493 +fi
494 +
495 +as_executable_p="test -f"
496 +
497 +# Sed expression to map a string onto a valid CPP name.
498 +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
499 +
500 +# Sed expression to map a string onto a valid variable name.
501 +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
502 +
503 +
504 +# IFS
505 +# We need space, tab and new line, in precisely that order.
506 +as_nl='
507 +'
508 +IFS="  $as_nl"
509 +
510 +# CDPATH.
511 +$as_unset CDPATH
512 +
513 +
514 +# Name of the host.
515 +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
516 +# so uname gets run too.
517 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
518 +
519 +exec 6>&1
520 +
521 +#
522 +# Initializations.
523 +#
524  ac_default_prefix=/usr/local
525 -# Any additions from configure.in:
526 -ac_help="$ac_help
527 -  --enable-javascript     use javascript interpreter"
528 -ac_help="$ac_help
529 -  --with-libfl            use libfl"
530 -ac_help="$ac_help
531 -  --enable-graphics       use graphics"
532 -ac_help="$ac_help
533 -  --with-ssl(=directory)  enable SSL support"
534 -ac_help="$ac_help
535 -  --without-libjpeg      compile without JPEG support"
536 -ac_help="$ac_help
537 -  --without-libtiff       compile without TIFF support"
538 -ac_help="$ac_help
539 -  --without-svgalib       compile without svgalib graphics driver"
540 -ac_help="$ac_help
541 -  --without-x             compile without X Window System graphics driver"
542 -ac_help="$ac_help
543 -  --without-fb            compile without Linux Framebuffer graphics driver"
544 -ac_help="$ac_help
545 -  --without-directfb      compile without DirectFB graphics driver"
546 -ac_help="$ac_help
547 -  --without-pmshell       compile without PMShell graphics driver"
548 -ac_help="$ac_help
549 -  --without-atheos        compile without Atheos graphics driver"
550 -ac_help="$ac_help
551 -  --with-x                use the X Window System"
552 +ac_config_libobj_dir=.
553 +cross_compiling=no
554 +subdirs=
555 +MFLAGS=
556 +MAKEFLAGS=
557 +SHELL=${CONFIG_SHELL-/bin/sh}
558 +
559 +# Maximum number of lines to put in a shell here document.
560 +# This variable seems obsolete.  It should probably be removed, and
561 +# only ac_max_sed_lines should be used.
562 +: ${ac_max_here_lines=38}
563 +
564 +# Identity of this package.
565 +PACKAGE_NAME=
566 +PACKAGE_TARNAME=
567 +PACKAGE_VERSION=
568 +PACKAGE_STRING=
569 +PACKAGE_BUGREPORT=
570 +
571 +ac_unique_file="main.c"
572 +# Factoring default headers for most tests.
573 +ac_includes_default="\
574 +#include <stdio.h>
575 +#if HAVE_SYS_TYPES_H
576 +# include <sys/types.h>
577 +#endif
578 +#if HAVE_SYS_STAT_H
579 +# include <sys/stat.h>
580 +#endif
581 +#if STDC_HEADERS
582 +# include <stdlib.h>
583 +# include <stddef.h>
584 +#else
585 +# if HAVE_STDLIB_H
586 +#  include <stdlib.h>
587 +# endif
588 +#endif
589 +#if HAVE_STRING_H
590 +# if !STDC_HEADERS && HAVE_MEMORY_H
591 +#  include <memory.h>
592 +# endif
593 +# include <string.h>
594 +#endif
595 +#if HAVE_STRINGS_H
596 +# include <strings.h>
597 +#endif
598 +#if HAVE_INTTYPES_H
599 +# include <inttypes.h>
600 +#else
601 +# if HAVE_STDINT_H
602 +#  include <stdint.h>
603 +# endif
604 +#endif
605 +#if HAVE_UNISTD_H
606 +# include <unistd.h>
607 +#endif"
608 +
609 +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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP EGREP LIBOBJS DIRECTFB_CONFIG ATHEOS_GR_TRUE ATHEOS_GR_FALSE LTLIBOBJS'
610 +ac_subst_files=''
611  
612  # Initialize some variables set by options.
613 +ac_init_help=
614 +ac_init_version=false
615  # The variables have the same names as the options, with
616  # dashes changed to underlines.
617 -build=NONE
618 -cache_file=./config.cache
619 +cache_file=/dev/null
620  exec_prefix=NONE
621 -host=NONE
622  no_create=
623 -nonopt=NONE
624  no_recursion=
625  prefix=NONE
626  program_prefix=NONE
627 @@ -55,10 +327,15 @@
628  silent=
629  site=
630  srcdir=
631 -target=NONE
632  verbose=
633  x_includes=NONE
634  x_libraries=NONE
635 +
636 +# Installation directory options.
637 +# These are left unexpanded so users can "make install exec_prefix=/foo"
638 +# and all the variables that are supposed to be based on exec_prefix
639 +# by default will actually change.
640 +# Use braces instead of parens because sh, perl, etc. also accept them.
641  bindir='${exec_prefix}/bin'
642  sbindir='${exec_prefix}/sbin'
643  libexecdir='${exec_prefix}/libexec'
644 @@ -72,17 +349,9 @@
645  infodir='${prefix}/info'
646  mandir='${prefix}/man'
647  
648 -# Initialize some other variables.
649 -subdirs=
650 -MFLAGS= MAKEFLAGS=
651 -SHELL=${CONFIG_SHELL-/bin/sh}
652 -# Maximum number of lines to put in a shell here document.
653 -ac_max_here_lines=12
654 -
655  ac_prev=
656  for ac_option
657  do
658 -
659    # If the previous option needs an argument, assign it.
660    if test -n "$ac_prev"; then
661      eval "$ac_prev=\$ac_option"
662 @@ -90,59 +359,59 @@
663      continue
664    fi
665  
666 -  case "$ac_option" in
667 -  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
668 -  *) ac_optarg= ;;
669 -  esac
670 +  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
671  
672    # Accept the important Cygnus configure options, so we can diagnose typos.
673  
674 -  case "$ac_option" in
675 +  case $ac_option in
676  
677    -bindir | --bindir | --bindi | --bind | --bin | --bi)
678      ac_prev=bindir ;;
679    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
680 -    bindir="$ac_optarg" ;;
681 +    bindir=$ac_optarg ;;
682  
683    -build | --build | --buil | --bui | --bu)
684 -    ac_prev=build ;;
685 +    ac_prev=build_alias ;;
686    -build=* | --build=* | --buil=* | --bui=* | --bu=*)
687 -    build="$ac_optarg" ;;
688 +    build_alias=$ac_optarg ;;
689  
690    -cache-file | --cache-file | --cache-fil | --cache-fi \
691    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
692      ac_prev=cache_file ;;
693    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
694    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
695 -    cache_file="$ac_optarg" ;;
696 +    cache_file=$ac_optarg ;;
697 +
698 +  --config-cache | -C)
699 +    cache_file=config.cache ;;
700  
701    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
702      ac_prev=datadir ;;
703    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
704    | --da=*)
705 -    datadir="$ac_optarg" ;;
706 +    datadir=$ac_optarg ;;
707  
708    -disable-* | --disable-*)
709 -    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
710 +    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
711      # Reject names that are not valid shell variable names.
712 -    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
713 -      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
714 -    fi
715 -    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
716 -    eval "enable_${ac_feature}=no" ;;
717 +    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
718 +      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
719 +   { (exit 1); exit 1; }; }
720 +    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
721 +    eval "enable_$ac_feature=no" ;;
722  
723    -enable-* | --enable-*)
724 -    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
725 +    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
726      # Reject names that are not valid shell variable names.
727 -    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
728 -      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
729 -    fi
730 -    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
731 -    case "$ac_option" in
732 -      *=*) ;;
733 +    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
734 +      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
735 +   { (exit 1); exit 1; }; }
736 +    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
737 +    case $ac_option in
738 +      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
739        *) ac_optarg=yes ;;
740      esac
741 -    eval "enable_${ac_feature}='$ac_optarg'" ;;
742 +    eval "enable_$ac_feature='$ac_optarg'" ;;
743  
744    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
745    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
746 @@ -151,95 +420,47 @@
747    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
748    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
749    | --exec=* | --exe=* | --ex=*)
750 -    exec_prefix="$ac_optarg" ;;
751 +    exec_prefix=$ac_optarg ;;
752  
753    -gas | --gas | --ga | --g)
754      # Obsolete; use --with-gas.
755      with_gas=yes ;;
756  
757 -  -help | --help | --hel | --he)
758 -    # Omit some internal or obsolete options to make the list less imposing.
759 -    # This message is too long to be a string in the A/UX 3.1 sh.
760 -    cat << EOF
761 -Usage: configure [options] [host]
762 -Options: [defaults in brackets after descriptions]
763 -Configuration:
764 -  --cache-file=FILE       cache test results in FILE
765 -  --help                  print this message
766 -  --no-create             do not create output files
767 -  --quiet, --silent       do not print \`checking...' messages
768 -  --version               print the version of autoconf that created configure
769 -Directory and file names:
770 -  --prefix=PREFIX         install architecture-independent files in PREFIX
771 -                          [$ac_default_prefix]
772 -  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
773 -                          [same as prefix]
774 -  --bindir=DIR            user executables in DIR [EPREFIX/bin]
775 -  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
776 -  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
777 -  --datadir=DIR           read-only architecture-independent data in DIR
778 -                          [PREFIX/share]
779 -  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
780 -  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
781 -                          [PREFIX/com]
782 -  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
783 -  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
784 -  --includedir=DIR        C header files in DIR [PREFIX/include]
785 -  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
786 -  --infodir=DIR           info documentation in DIR [PREFIX/info]
787 -  --mandir=DIR            man documentation in DIR [PREFIX/man]
788 -  --srcdir=DIR            find the sources in DIR [configure dir or ..]
789 -  --program-prefix=PREFIX prepend PREFIX to installed program names
790 -  --program-suffix=SUFFIX append SUFFIX to installed program names
791 -  --program-transform-name=PROGRAM
792 -                          run sed PROGRAM on installed program names
793 -EOF
794 -    cat << EOF
795 -Host type:
796 -  --build=BUILD           configure for building on BUILD [BUILD=HOST]
797 -  --host=HOST             configure for HOST [guessed]
798 -  --target=TARGET         configure for TARGET [TARGET=HOST]
799 -Features and packages:
800 -  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
801 -  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
802 -  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
803 -  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
804 -  --x-includes=DIR        X include files are in DIR
805 -  --x-libraries=DIR       X library files are in DIR
806 -EOF
807 -    if test -n "$ac_help"; then
808 -      echo "--enable and --with options recognized:$ac_help"
809 -    fi
810 -    exit 0 ;;
811 +  -help | --help | --hel | --he | -h)
812 +    ac_init_help=long ;;
813 +  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
814 +    ac_init_help=recursive ;;
815 +  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
816 +    ac_init_help=short ;;
817  
818    -host | --host | --hos | --ho)
819 -    ac_prev=host ;;
820 +    ac_prev=host_alias ;;
821    -host=* | --host=* | --hos=* | --ho=*)
822 -    host="$ac_optarg" ;;
823 +    host_alias=$ac_optarg ;;
824  
825    -includedir | --includedir | --includedi | --included | --include \
826    | --includ | --inclu | --incl | --inc)
827      ac_prev=includedir ;;
828    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
829    | --includ=* | --inclu=* | --incl=* | --inc=*)
830 -    includedir="$ac_optarg" ;;
831 +    includedir=$ac_optarg ;;
832  
833    -infodir | --infodir | --infodi | --infod | --info | --inf)
834      ac_prev=infodir ;;
835    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
836 -    infodir="$ac_optarg" ;;
837 +    infodir=$ac_optarg ;;
838  
839    -libdir | --libdir | --libdi | --libd)
840      ac_prev=libdir ;;
841    -libdir=* | --libdir=* | --libdi=* | --libd=*)
842 -    libdir="$ac_optarg" ;;
843 +    libdir=$ac_optarg ;;
844  
845    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
846    | --libexe | --libex | --libe)
847      ac_prev=libexecdir ;;
848    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
849    | --libexe=* | --libex=* | --libe=*)
850 -    libexecdir="$ac_optarg" ;;
851 +    libexecdir=$ac_optarg ;;
852  
853    -localstatedir | --localstatedir | --localstatedi | --localstated \
854    | --localstate | --localstat | --localsta | --localst \
855 @@ -248,19 +469,19 @@
856    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
857    | --localstate=* | --localstat=* | --localsta=* | --localst=* \
858    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
859 -    localstatedir="$ac_optarg" ;;
860 +    localstatedir=$ac_optarg ;;
861  
862    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
863      ac_prev=mandir ;;
864    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
865 -    mandir="$ac_optarg" ;;
866 +    mandir=$ac_optarg ;;
867  
868    -nfp | --nfp | --nf)
869      # Obsolete; use --without-fp.
870      with_fp=no ;;
871  
872    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
873 -  | --no-cr | --no-c)
874 +  | --no-cr | --no-c | -n)
875      no_create=yes ;;
876  
877    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
878 @@ -274,26 +495,26 @@
879    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
880    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
881    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
882 -    oldincludedir="$ac_optarg" ;;
883 +    oldincludedir=$ac_optarg ;;
884  
885    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
886      ac_prev=prefix ;;
887    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
888 -    prefix="$ac_optarg" ;;
889 +    prefix=$ac_optarg ;;
890  
891    -program-prefix | --program-prefix | --program-prefi | --program-pref \
892    | --program-pre | --program-pr | --program-p)
893      ac_prev=program_prefix ;;
894    -program-prefix=* | --program-prefix=* | --program-prefi=* \
895    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
896 -    program_prefix="$ac_optarg" ;;
897 +    program_prefix=$ac_optarg ;;
898  
899    -program-suffix | --program-suffix | --program-suffi | --program-suff \
900    | --program-suf | --program-su | --program-s)
901      ac_prev=program_suffix ;;
902    -program-suffix=* | --program-suffix=* | --program-suffi=* \
903    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
904 -    program_suffix="$ac_optarg" ;;
905 +    program_suffix=$ac_optarg ;;
906  
907    -program-transform-name | --program-transform-name \
908    | --program-transform-nam | --program-transform-na \
909 @@ -310,7 +531,7 @@
910    | --program-transfo=* | --program-transf=* \
911    | --program-trans=* | --program-tran=* \
912    | --progr-tra=* | --program-tr=* | --program-t=*)
913 -    program_transform_name="$ac_optarg" ;;
914 +    program_transform_name=$ac_optarg ;;
915  
916    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
917    | -silent | --silent | --silen | --sile | --sil)
918 @@ -320,7 +541,7 @@
919      ac_prev=sbindir ;;
920    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
921    | --sbi=* | --sb=*)
922 -    sbindir="$ac_optarg" ;;
923 +    sbindir=$ac_optarg ;;
924  
925    -sharedstatedir | --sharedstatedir | --sharedstatedi \
926    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
927 @@ -331,58 +552,57 @@
928    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
929    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
930    | --sha=* | --sh=*)
931 -    sharedstatedir="$ac_optarg" ;;
932 +    sharedstatedir=$ac_optarg ;;
933  
934    -site | --site | --sit)
935      ac_prev=site ;;
936    -site=* | --site=* | --sit=*)
937 -    site="$ac_optarg" ;;
938 +    site=$ac_optarg ;;
939  
940    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
941      ac_prev=srcdir ;;
942    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
943 -    srcdir="$ac_optarg" ;;
944 +    srcdir=$ac_optarg ;;
945  
946    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
947    | --syscon | --sysco | --sysc | --sys | --sy)
948      ac_prev=sysconfdir ;;
949    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
950    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
951 -    sysconfdir="$ac_optarg" ;;
952 +    sysconfdir=$ac_optarg ;;
953  
954    -target | --target | --targe | --targ | --tar | --ta | --t)
955 -    ac_prev=target ;;
956 +    ac_prev=target_alias ;;
957    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
958 -    target="$ac_optarg" ;;
959 +    target_alias=$ac_optarg ;;
960  
961    -v | -verbose | --verbose | --verbos | --verbo | --verb)
962      verbose=yes ;;
963  
964 -  -version | --version | --versio | --versi | --vers)
965 -    echo "configure generated by autoconf version 2.13"
966 -    exit 0 ;;
967 +  -version | --version | --versio | --versi | --vers | -V)
968 +    ac_init_version=: ;;
969  
970    -with-* | --with-*)
971 -    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
972 +    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
973      # Reject names that are not valid shell variable names.
974 -    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
975 -      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
976 -    fi
977 +    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
978 +      { echo "$as_me: error: invalid package name: $ac_package" >&2
979 +   { (exit 1); exit 1; }; }
980      ac_package=`echo $ac_package| sed 's/-/_/g'`
981 -    case "$ac_option" in
982 -      *=*) ;;
983 +    case $ac_option in
984 +      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
985        *) ac_optarg=yes ;;
986      esac
987 -    eval "with_${ac_package}='$ac_optarg'" ;;
988 +    eval "with_$ac_package='$ac_optarg'" ;;
989  
990    -without-* | --without-*)
991 -    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
992 +    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
993      # Reject names that are not valid shell variable names.
994 -    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
995 -      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
996 -    fi
997 -    ac_package=`echo $ac_package| sed 's/-/_/g'`
998 -    eval "with_${ac_package}=no" ;;
999 +    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1000 +      { echo "$as_me: error: invalid package name: $ac_package" >&2
1001 +   { (exit 1); exit 1; }; }
1002 +    ac_package=`echo $ac_package | sed 's/-/_/g'`
1003 +    eval "with_$ac_package=no" ;;
1004  
1005    --x)
1006      # Obsolete; use --with-x.
1007 @@ -393,99 +613,110 @@
1008      ac_prev=x_includes ;;
1009    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1010    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1011 -    x_includes="$ac_optarg" ;;
1012 +    x_includes=$ac_optarg ;;
1013  
1014    -x-libraries | --x-libraries | --x-librarie | --x-librari \
1015    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1016      ac_prev=x_libraries ;;
1017    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1018    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1019 -    x_libraries="$ac_optarg" ;;
1020 +    x_libraries=$ac_optarg ;;
1021  
1022 -  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
1023 +  -*) { echo "$as_me: error: unrecognized option: $ac_option
1024 +Try \`$0 --help' for more information." >&2
1025 +   { (exit 1); exit 1; }; }
1026      ;;
1027  
1028 +  *=*)
1029 +    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1030 +    # Reject names that are not valid shell variable names.
1031 +    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1032 +      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1033 +   { (exit 1); exit 1; }; }
1034 +    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
1035 +    eval "$ac_envvar='$ac_optarg'"
1036 +    export $ac_envvar ;;
1037 +
1038    *)
1039 -    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
1040 -      echo "configure: warning: $ac_option: invalid host type" 1>&2
1041 -    fi
1042 -    if test "x$nonopt" != xNONE; then
1043 -      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
1044 -    fi
1045 -    nonopt="$ac_option"
1046 +    # FIXME: should be removed in autoconf 3.0.
1047 +    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1048 +    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049 +      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1050 +    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1051      ;;
1052  
1053    esac
1054  done
1055  
1056  if test -n "$ac_prev"; then
1057 -  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
1058 -fi
1059 -
1060 -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1061 -
1062 -# File descriptor usage:
1063 -# 0 standard input
1064 -# 1 file creation
1065 -# 2 errors and warnings
1066 -# 3 some systems may open it to /dev/tty
1067 -# 4 used on the Kubota Titan
1068 -# 6 checking for... messages and results
1069 -# 5 compiler messages saved in config.log
1070 -if test "$silent" = yes; then
1071 -  exec 6>/dev/null
1072 -else
1073 -  exec 6>&1
1074 +  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1075 +  { echo "$as_me: error: missing argument to $ac_option" >&2
1076 +   { (exit 1); exit 1; }; }
1077  fi
1078 -exec 5>./config.log
1079  
1080 -echo "\
1081 -This file contains any messages produced by compilers while
1082 -running configure, to aid debugging if configure makes a mistake.
1083 -" 1>&5
1084 +# Be sure to have absolute paths.
1085 +for ac_var in exec_prefix prefix
1086 +do
1087 +  eval ac_val=$`echo $ac_var`
1088 +  case $ac_val in
1089 +    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
1090 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1091 +   { (exit 1); exit 1; }; };;
1092 +  esac
1093 +done
1094  
1095 -# Strip out --no-create and --no-recursion so they do not pile up.
1096 -# Also quote any args containing shell metacharacters.
1097 -ac_configure_args=
1098 -for ac_arg
1099 +# Be sure to have absolute paths.
1100 +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1101 +              localstatedir libdir includedir oldincludedir infodir mandir
1102  do
1103 -  case "$ac_arg" in
1104 -  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105 -  | --no-cr | --no-c) ;;
1106 -  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 -  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1108 -  *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
1109 -  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1110 -  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
1111 +  eval ac_val=$`echo $ac_var`
1112 +  case $ac_val in
1113 +    [\\/$]* | ?:[\\/]* ) ;;
1114 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1115 +   { (exit 1); exit 1; }; };;
1116    esac
1117  done
1118  
1119 -# NLS nuisances.
1120 -# Only set these to C if already set.  These must not be set unconditionally
1121 -# because not all systems understand e.g. LANG=C (notably SCO).
1122 -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
1123 -# Non-C LC_CTYPE values break the ctype check.
1124 -if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
1125 -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
1126 -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
1127 -if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
1128 +# There might be people who depend on the old broken behavior: `$host'
1129 +# used to hold the argument of --host etc.
1130 +# FIXME: To remove some day.
1131 +build=$build_alias
1132 +host=$host_alias
1133 +target=$target_alias
1134  
1135 -# confdefs.h avoids OS command line length limits that DEFS can exceed.
1136 -rm -rf conftest* confdefs.h
1137 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1138 -echo > confdefs.h
1139 +# FIXME: To remove some day.
1140 +if test "x$host_alias" != x; then
1141 +  if test "x$build_alias" = x; then
1142 +    cross_compiling=maybe
1143 +    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1144 +    If a cross compiler is detected then cross compile mode will be used." >&2
1145 +  elif test "x$build_alias" != "x$host_alias"; then
1146 +    cross_compiling=yes
1147 +  fi
1148 +fi
1149 +
1150 +ac_tool_prefix=
1151 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
1152 +
1153 +test "$silent" = yes && exec 6>/dev/null
1154  
1155 -# A filename unique to this package, relative to the directory that
1156 -# configure is in, which we can look for to find out if srcdir is correct.
1157 -ac_unique_file=main.c
1158  
1159  # Find the source files, if location was not specified.
1160  if test -z "$srcdir"; then
1161    ac_srcdir_defaulted=yes
1162    # Try the directory containing this script, then its parent.
1163 -  ac_prog=$0
1164 -  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
1165 -  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
1166 +  ac_confdir=`(dirname "$0") 2>/dev/null ||
1167 +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1168 +         X"$0" : 'X\(//\)[^/]' \| \
1169 +         X"$0" : 'X\(//\)$' \| \
1170 +         X"$0" : 'X\(/\)' \| \
1171 +         .     : '\(.\)' 2>/dev/null ||
1172 +echo X"$0" |
1173 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1174 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1175 +         /^X\(\/\/\)$/{ s//\1/; q; }
1176 +         /^X\(\/\).*/{ s//\1/; q; }
1177 +         s/.*/./; q'`
1178    srcdir=$ac_confdir
1179    if test ! -r $srcdir/$ac_unique_file; then
1180      srcdir=..
1181 @@ -495,13 +726,464 @@
1182  fi
1183  if test ! -r $srcdir/$ac_unique_file; then
1184    if test "$ac_srcdir_defaulted" = yes; then
1185 -    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
1186 +    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
1187 +   { (exit 1); exit 1; }; }
1188    else
1189 -    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
1190 +    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1191 +   { (exit 1); exit 1; }; }
1192    fi
1193  fi
1194 -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
1195 +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
1196 +  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
1197 +   { (exit 1); exit 1; }; }
1198 +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
1199 +ac_env_build_alias_set=${build_alias+set}
1200 +ac_env_build_alias_value=$build_alias
1201 +ac_cv_env_build_alias_set=${build_alias+set}
1202 +ac_cv_env_build_alias_value=$build_alias
1203 +ac_env_host_alias_set=${host_alias+set}
1204 +ac_env_host_alias_value=$host_alias
1205 +ac_cv_env_host_alias_set=${host_alias+set}
1206 +ac_cv_env_host_alias_value=$host_alias
1207 +ac_env_target_alias_set=${target_alias+set}
1208 +ac_env_target_alias_value=$target_alias
1209 +ac_cv_env_target_alias_set=${target_alias+set}
1210 +ac_cv_env_target_alias_value=$target_alias
1211 +ac_env_CC_set=${CC+set}
1212 +ac_env_CC_value=$CC
1213 +ac_cv_env_CC_set=${CC+set}
1214 +ac_cv_env_CC_value=$CC
1215 +ac_env_CFLAGS_set=${CFLAGS+set}
1216 +ac_env_CFLAGS_value=$CFLAGS
1217 +ac_cv_env_CFLAGS_set=${CFLAGS+set}
1218 +ac_cv_env_CFLAGS_value=$CFLAGS
1219 +ac_env_LDFLAGS_set=${LDFLAGS+set}
1220 +ac_env_LDFLAGS_value=$LDFLAGS
1221 +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
1222 +ac_cv_env_LDFLAGS_value=$LDFLAGS
1223 +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
1224 +ac_env_CPPFLAGS_value=$CPPFLAGS
1225 +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
1226 +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
1227 +ac_env_CXX_set=${CXX+set}
1228 +ac_env_CXX_value=$CXX
1229 +ac_cv_env_CXX_set=${CXX+set}
1230 +ac_cv_env_CXX_value=$CXX
1231 +ac_env_CXXFLAGS_set=${CXXFLAGS+set}
1232 +ac_env_CXXFLAGS_value=$CXXFLAGS
1233 +ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
1234 +ac_cv_env_CXXFLAGS_value=$CXXFLAGS
1235 +ac_env_CPP_set=${CPP+set}
1236 +ac_env_CPP_value=$CPP
1237 +ac_cv_env_CPP_set=${CPP+set}
1238 +ac_cv_env_CPP_value=$CPP
1239 +
1240 +#
1241 +# Report the --help message.
1242 +#
1243 +if test "$ac_init_help" = "long"; then
1244 +  # Omit some internal or obsolete options to make the list less imposing.
1245 +  # This message is too long to be a string in the A/UX 3.1 sh.
1246 +  cat <<_ACEOF
1247 +\`configure' configures this package to adapt to many kinds of systems.
1248 +
1249 +Usage: $0 [OPTION]... [VAR=VALUE]...
1250 +
1251 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
1252 +VAR=VALUE.  See below for descriptions of some of the useful variables.
1253 +
1254 +Defaults for the options are specified in brackets.
1255 +
1256 +Configuration:
1257 +  -h, --help              display this help and exit
1258 +      --help=short        display options specific to this package
1259 +      --help=recursive    display the short help of all the included packages
1260 +  -V, --version           display version information and exit
1261 +  -q, --quiet, --silent   do not print \`checking...' messages
1262 +      --cache-file=FILE   cache test results in FILE [disabled]
1263 +  -C, --config-cache      alias for \`--cache-file=config.cache'
1264 +  -n, --no-create         do not create output files
1265 +      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1266 +
1267 +_ACEOF
1268 +
1269 +  cat <<_ACEOF
1270 +Installation directories:
1271 +  --prefix=PREFIX         install architecture-independent files in PREFIX
1272 +                          [$ac_default_prefix]
1273 +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1274 +                          [PREFIX]
1275 +
1276 +By default, \`make install' will install all the files in
1277 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1278 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279 +for instance \`--prefix=\$HOME'.
1280 +
1281 +For better control, use the options below.
1282 +
1283 +Fine tuning of the installation directories:
1284 +  --bindir=DIR           user executables [EPREFIX/bin]
1285 +  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1286 +  --libexecdir=DIR       program executables [EPREFIX/libexec]
1287 +  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1288 +  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1289 +  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1290 +  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1291 +  --libdir=DIR           object code libraries [EPREFIX/lib]
1292 +  --includedir=DIR       C header files [PREFIX/include]
1293 +  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1294 +  --infodir=DIR          info documentation [PREFIX/info]
1295 +  --mandir=DIR           man documentation [PREFIX/man]
1296 +_ACEOF
1297 +
1298 +  cat <<\_ACEOF
1299 +
1300 +Program names:
1301 +  --program-prefix=PREFIX            prepend PREFIX to installed program names
1302 +  --program-suffix=SUFFIX            append SUFFIX to installed program names
1303 +  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1304 +
1305 +X features:
1306 +  --x-includes=DIR    X include files are in DIR
1307 +  --x-libraries=DIR   X library files are in DIR
1308 +_ACEOF
1309 +fi
1310 +
1311 +if test -n "$ac_init_help"; then
1312 +
1313 +  cat <<\_ACEOF
1314 +
1315 +Optional Features:
1316 +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1317 +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1318 +  --disable-dependency-tracking Speeds up one-time builds
1319 +  --enable-dependency-tracking  Do not reject slow dependency extractors
1320 +  --enable-javascript     use javascript interpreter
1321 +  --enable-graphics       use graphics
1322 +
1323 +Optional Packages:
1324 +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1325 +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1326 +  --with-libfl            use libfl
1327 +  --with-ssl(=directory)  enable SSL support
1328 +  --without-libjpeg      compile without JPEG support
1329 +  --without-libtiff       compile without TIFF support
1330 +  --without-svgalib       compile without svgalib graphics driver
1331 +  --without-x             compile without X Window System graphics driver
1332 +  --without-fb            compile without Linux Framebuffer graphics driver
1333 +  --without-directfb      compile without DirectFB graphics driver
1334 +  --without-pmshell       compile without PMShell graphics driver
1335 +  --without-atheos        compile without Atheos graphics driver
1336 +  --with-x                use the X Window System
1337 +
1338 +Some influential environment variables:
1339 +  CC          C compiler command
1340 +  CFLAGS      C compiler flags
1341 +  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1342 +              nonstandard directory <lib dir>
1343 +  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1344 +              headers in a nonstandard directory <include dir>
1345 +  CXX         C++ compiler command
1346 +  CXXFLAGS    C++ compiler flags
1347 +  CPP         C preprocessor
1348 +
1349 +Use these variables to override the choices made by `configure' or to help
1350 +it to find libraries and programs with nonstandard names/locations.
1351 +
1352 +_ACEOF
1353 +fi
1354 +
1355 +if test "$ac_init_help" = "recursive"; then
1356 +  # If there are subdirs, report their specific --help.
1357 +  ac_popdir=`pwd`
1358 +  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1359 +    test -d $ac_dir || continue
1360 +    ac_builddir=.
1361 +
1362 +if test "$ac_dir" != .; then
1363 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1364 +  # A "../" for each directory in $ac_dir_suffix.
1365 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1366 +else
1367 +  ac_dir_suffix= ac_top_builddir=
1368 +fi
1369 +
1370 +case $srcdir in
1371 +  .)  # No --srcdir option.  We are building in place.
1372 +    ac_srcdir=.
1373 +    if test -z "$ac_top_builddir"; then
1374 +       ac_top_srcdir=.
1375 +    else
1376 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1377 +    fi ;;
1378 +  [\\/]* | ?:[\\/]* )  # Absolute path.
1379 +    ac_srcdir=$srcdir$ac_dir_suffix;
1380 +    ac_top_srcdir=$srcdir ;;
1381 +  *) # Relative path.
1382 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1383 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1384 +esac
1385 +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1386 +# absolute.
1387 +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1388 +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1389 +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1390 +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1391  
1392 +    cd $ac_dir
1393 +    # Check for guested configure; otherwise get Cygnus style configure.
1394 +    if test -f $ac_srcdir/configure.gnu; then
1395 +      echo
1396 +      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1397 +    elif test -f $ac_srcdir/configure; then
1398 +      echo
1399 +      $SHELL $ac_srcdir/configure  --help=recursive
1400 +    elif test -f $ac_srcdir/configure.ac ||
1401 +           test -f $ac_srcdir/configure.in; then
1402 +      echo
1403 +      $ac_configure --help
1404 +    else
1405 +      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1406 +    fi
1407 +    cd $ac_popdir
1408 +  done
1409 +fi
1410 +
1411 +test -n "$ac_init_help" && exit 0
1412 +if $ac_init_version; then
1413 +  cat <<\_ACEOF
1414 +
1415 +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1416 +Free Software Foundation, Inc.
1417 +This configure script is free software; the Free Software Foundation
1418 +gives unlimited permission to copy, distribute and modify it.
1419 +_ACEOF
1420 +  exit 0
1421 +fi
1422 +exec 5>config.log
1423 +cat >&5 <<_ACEOF
1424 +This file contains any messages produced by compilers while
1425 +running configure, to aid debugging if configure makes a mistake.
1426 +
1427 +It was created by $as_me, which was
1428 +generated by GNU Autoconf 2.57.  Invocation command line was
1429 +
1430 +  $ $0 $@
1431 +
1432 +_ACEOF
1433 +{
1434 +cat <<_ASUNAME
1435 +## --------- ##
1436 +## Platform. ##
1437 +## --------- ##
1438 +
1439 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1440 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
1441 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
1442 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
1443 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
1444 +
1445 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1446 +/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1447 +
1448 +/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1449 +/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1450 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1451 +hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1452 +/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1453 +/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1454 +/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1455 +
1456 +_ASUNAME
1457 +
1458 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1459 +for as_dir in $PATH
1460 +do
1461 +  IFS=$as_save_IFS
1462 +  test -z "$as_dir" && as_dir=.
1463 +  echo "PATH: $as_dir"
1464 +done
1465 +
1466 +} >&5
1467 +
1468 +cat >&5 <<_ACEOF
1469 +
1470 +
1471 +## ----------- ##
1472 +## Core tests. ##
1473 +## ----------- ##
1474 +
1475 +_ACEOF
1476 +
1477 +
1478 +# Keep a trace of the command line.
1479 +# Strip out --no-create and --no-recursion so they do not pile up.
1480 +# Strip out --silent because we don't want to record it for future runs.
1481 +# Also quote any args containing shell meta-characters.
1482 +# Make two passes to allow for proper duplicate-argument suppression.
1483 +ac_configure_args=
1484 +ac_configure_args0=
1485 +ac_configure_args1=
1486 +ac_sep=
1487 +ac_must_keep_next=false
1488 +for ac_pass in 1 2
1489 +do
1490 +  for ac_arg
1491 +  do
1492 +    case $ac_arg in
1493 +    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1494 +    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1495 +    | -silent | --silent | --silen | --sile | --sil)
1496 +      continue ;;
1497 +    *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1498 +      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1499 +    esac
1500 +    case $ac_pass in
1501 +    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1502 +    2)
1503 +      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1504 +      if test $ac_must_keep_next = true; then
1505 +        ac_must_keep_next=false # Got value, back to normal.
1506 +      else
1507 +        case $ac_arg in
1508 +          *=* | --config-cache | -C | -disable-* | --disable-* \
1509 +          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1510 +          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1511 +          | -with-* | --with-* | -without-* | --without-* | --x)
1512 +            case "$ac_configure_args0 " in
1513 +              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1514 +            esac
1515 +            ;;
1516 +          -* ) ac_must_keep_next=true ;;
1517 +        esac
1518 +      fi
1519 +      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1520 +      # Get rid of the leading space.
1521 +      ac_sep=" "
1522 +      ;;
1523 +    esac
1524 +  done
1525 +done
1526 +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1527 +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1528 +
1529 +# When interrupted or exit'd, cleanup temporary files, and complete
1530 +# config.log.  We remove comments because anyway the quotes in there
1531 +# would cause problems or look ugly.
1532 +# WARNING: Be sure not to use single quotes in there, as some shells,
1533 +# such as our DU 5.0 friend, will then `close' the trap.
1534 +trap 'exit_status=$?
1535 +  # Save into config.log some information that might help in debugging.
1536 +  {
1537 +    echo
1538 +
1539 +    cat <<\_ASBOX
1540 +## ---------------- ##
1541 +## Cache variables. ##
1542 +## ---------------- ##
1543 +_ASBOX
1544 +    echo
1545 +    # The following way of writing the cache mishandles newlines in values,
1546 +{
1547 +  (set) 2>&1 |
1548 +    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1549 +    *ac_space=\ *)
1550 +      sed -n \
1551 +        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1552 +         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1553 +      ;;
1554 +    *)
1555 +      sed -n \
1556 +        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1557 +      ;;
1558 +    esac;
1559 +}
1560 +    echo
1561 +
1562 +    cat <<\_ASBOX
1563 +## ----------------- ##
1564 +## Output variables. ##
1565 +## ----------------- ##
1566 +_ASBOX
1567 +    echo
1568 +    for ac_var in $ac_subst_vars
1569 +    do
1570 +      eval ac_val=$`echo $ac_var`
1571 +      echo "$ac_var='"'"'$ac_val'"'"'"
1572 +    done | sort
1573 +    echo
1574 +
1575 +    if test -n "$ac_subst_files"; then
1576 +      cat <<\_ASBOX
1577 +## ------------- ##
1578 +## Output files. ##
1579 +## ------------- ##
1580 +_ASBOX
1581 +      echo
1582 +      for ac_var in $ac_subst_files
1583 +      do
1584 +       eval ac_val=$`echo $ac_var`
1585 +        echo "$ac_var='"'"'$ac_val'"'"'"
1586 +      done | sort
1587 +      echo
1588 +    fi
1589 +
1590 +    if test -s confdefs.h; then
1591 +      cat <<\_ASBOX
1592 +## ----------- ##
1593 +## confdefs.h. ##
1594 +## ----------- ##
1595 +_ASBOX
1596 +      echo
1597 +      sed "/^$/d" confdefs.h | sort
1598 +      echo
1599 +    fi
1600 +    test "$ac_signal" != 0 &&
1601 +      echo "$as_me: caught signal $ac_signal"
1602 +    echo "$as_me: exit $exit_status"
1603 +  } >&5
1604 +  rm -f core core.* *.core &&
1605 +  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1606 +    exit $exit_status
1607 +     ' 0
1608 +for ac_signal in 1 2 13 15; do
1609 +  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1610 +done
1611 +ac_signal=0
1612 +
1613 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
1614 +rm -rf conftest* confdefs.h
1615 +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1616 +echo >confdefs.h
1617 +
1618 +# Predefined preprocessor variables.
1619 +
1620 +cat >>confdefs.h <<_ACEOF
1621 +#define PACKAGE_NAME "$PACKAGE_NAME"
1622 +_ACEOF
1623 +
1624 +
1625 +cat >>confdefs.h <<_ACEOF
1626 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1627 +_ACEOF
1628 +
1629 +
1630 +cat >>confdefs.h <<_ACEOF
1631 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
1632 +_ACEOF
1633 +
1634 +
1635 +cat >>confdefs.h <<_ACEOF
1636 +#define PACKAGE_STRING "$PACKAGE_STRING"
1637 +_ACEOF
1638 +
1639 +
1640 +cat >>confdefs.h <<_ACEOF
1641 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1642 +_ACEOF
1643 +
1644 +
1645 +# Let the site file select an alternate cache file if it wants to.
1646  # Prefer explicitly selected file to automatically selected ones.
1647  if test -z "$CONFIG_SITE"; then
1648    if test "x$prefix" != xNONE; then
1649 @@ -512,42 +1194,108 @@
1650  fi
1651  for ac_site_file in $CONFIG_SITE; do
1652    if test -r "$ac_site_file"; then
1653 -    echo "loading site script $ac_site_file"
1654 +    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1655 +echo "$as_me: loading site script $ac_site_file" >&6;}
1656 +    sed 's/^/| /' "$ac_site_file" >&5
1657      . "$ac_site_file"
1658    fi
1659  done
1660  
1661  if test -r "$cache_file"; then
1662 -  echo "loading cache $cache_file"
1663 -  . $cache_file
1664 +  # Some versions of bash will fail to source /dev/null (special
1665 +  # files actually), so we avoid doing that.
1666 +  if test -f "$cache_file"; then
1667 +    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1668 +echo "$as_me: loading cache $cache_file" >&6;}
1669 +    case $cache_file in
1670 +      [\\/]* | ?:[\\/]* ) . $cache_file;;
1671 +      *)                      . ./$cache_file;;
1672 +    esac
1673 +  fi
1674  else
1675 -  echo "creating cache $cache_file"
1676 -  > $cache_file
1677 +  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1678 +echo "$as_me: creating cache $cache_file" >&6;}
1679 +  >$cache_file
1680 +fi
1681 +
1682 +# Check that the precious variables saved in the cache have kept the same
1683 +# value.
1684 +ac_cache_corrupted=false
1685 +for ac_var in `(set) 2>&1 |
1686 +               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1687 +  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1688 +  eval ac_new_set=\$ac_env_${ac_var}_set
1689 +  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1690 +  eval ac_new_val="\$ac_env_${ac_var}_value"
1691 +  case $ac_old_set,$ac_new_set in
1692 +    set,)
1693 +      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1694 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1695 +      ac_cache_corrupted=: ;;
1696 +    ,set)
1697 +      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1698 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1699 +      ac_cache_corrupted=: ;;
1700 +    ,);;
1701 +    *)
1702 +      if test "x$ac_old_val" != "x$ac_new_val"; then
1703 +        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1704 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1705 +        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1706 +echo "$as_me:   former value:  $ac_old_val" >&2;}
1707 +        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1708 +echo "$as_me:   current value: $ac_new_val" >&2;}
1709 +        ac_cache_corrupted=:
1710 +      fi;;
1711 +  esac
1712 +  # Pass precious variables to config.status.
1713 +  if test "$ac_new_set" = set; then
1714 +    case $ac_new_val in
1715 +    *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1716 +      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1717 +    *) ac_arg=$ac_var=$ac_new_val ;;
1718 +    esac
1719 +    case " $ac_configure_args " in
1720 +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1721 +      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1722 +    esac
1723 +  fi
1724 +done
1725 +if $ac_cache_corrupted; then
1726 +  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1727 +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1728 +  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1729 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1730 +   { (exit 1); exit 1; }; }
1731  fi
1732  
1733  ac_ext=c
1734 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1735  ac_cpp='$CPP $CPPFLAGS'
1736 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1737 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1738 -cross_compiling=$ac_cv_prog_cc_cross
1739 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1740 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1741 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1742 +
1743 +
1744 +
1745 +
1746  
1747 -ac_exeext=
1748 -ac_objext=o
1749 -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
1750 -  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
1751 -  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
1752 -    ac_n= ac_c='
1753 -' ac_t='       '
1754 -  else
1755 -    ac_n=-n ac_c= ac_t=
1756 -  fi
1757 -else
1758 -  ac_n= ac_c='\c' ac_t=
1759 -fi
1760  
1761  
1762  
1763 +
1764 +
1765 +
1766 +
1767 +
1768 +
1769 +
1770 +
1771 +
1772 +
1773 +
1774 +
1775 +
1776 +am__api_version="1.7"
1777  ac_aux_dir=
1778  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1779    if test -f $ac_dir/install-sh; then
1780 @@ -558,14 +1306,20 @@
1781      ac_aux_dir=$ac_dir
1782      ac_install_sh="$ac_aux_dir/install.sh -c"
1783      break
1784 +  elif test -f $ac_dir/shtool; then
1785 +    ac_aux_dir=$ac_dir
1786 +    ac_install_sh="$ac_aux_dir/shtool install -c"
1787 +    break
1788    fi
1789  done
1790  if test -z "$ac_aux_dir"; then
1791 -  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1792 +  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1793 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1794 +   { (exit 1); exit 1; }; }
1795  fi
1796 -ac_config_guess=$ac_aux_dir/config.guess
1797 -ac_config_sub=$ac_aux_dir/config.sub
1798 -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1799 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1800 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1801 +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1802  
1803  # Find a good install program.  We prefer a C program (faster),
1804  # so one script is as good as another.  But avoid the broken or
1805 @@ -574,231 +1328,371 @@
1806  # SunOS /usr/etc/install
1807  # IRIX /sbin/install
1808  # AIX /bin/install
1809 +# AmigaOS /C/install, which installs bootblocks on floppy discs
1810  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1811  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1812  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1813  # ./install, which can be erroneously created by make from ./install.sh.
1814 -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1815 -echo "configure:583: checking for a BSD compatible install" >&5
1816 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1817 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1818  if test -z "$INSTALL"; then
1819 -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1820 -  echo $ac_n "(cached) $ac_c" 1>&6
1821 +if test "${ac_cv_path_install+set}" = set; then
1822 +  echo $ECHO_N "(cached) $ECHO_C" >&6
1823  else
1824 -    IFS="${IFS=        }"; ac_save_IFS="$IFS"; IFS=":"
1825 -  for ac_dir in $PATH; do
1826 -    # Account for people who put trailing slashes in PATH elements.
1827 -    case "$ac_dir/" in
1828 -    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1829 -    *)
1830 -      # OSF1 and SCO ODT 3.0 have their own names for install.
1831 -      # Don't use installbsd from OSF since it installs stuff as root
1832 -      # by default.
1833 -      for ac_prog in ginstall scoinst install; do
1834 -        if test -f $ac_dir/$ac_prog; then
1835 -         if test $ac_prog = install &&
1836 -            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1837 -           # AIX install.  It has an incompatible calling convention.
1838 -           :
1839 -         else
1840 -           ac_cv_path_install="$ac_dir/$ac_prog -c"
1841 -           break 2
1842 -         fi
1843 -       fi
1844 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 +for as_dir in $PATH
1846 +do
1847 +  IFS=$as_save_IFS
1848 +  test -z "$as_dir" && as_dir=.
1849 +  # Account for people who put trailing slashes in PATH elements.
1850 +case $as_dir/ in
1851 +  ./ | .// | /cC/* | \
1852 +  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1853 +  /usr/ucb/* ) ;;
1854 +  *)
1855 +    # OSF1 and SCO ODT 3.0 have their own names for install.
1856 +    # Don't use installbsd from OSF since it installs stuff as root
1857 +    # by default.
1858 +    for ac_prog in ginstall scoinst install; do
1859 +      for ac_exec_ext in '' $ac_executable_extensions; do
1860 +        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1861 +          if test $ac_prog = install &&
1862 +            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1863 +            # AIX install.  It has an incompatible calling convention.
1864 +            :
1865 +          elif test $ac_prog = install &&
1866 +            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1867 +            # program-specific install script used by HP pwplus--don't use.
1868 +            :
1869 +          else
1870 +            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1871 +            break 3
1872 +          fi
1873 +        fi
1874        done
1875 -      ;;
1876 -    esac
1877 -  done
1878 -  IFS="$ac_save_IFS"
1879 +    done
1880 +    ;;
1881 +esac
1882 +done
1883 +
1884  
1885  fi
1886    if test "${ac_cv_path_install+set}" = set; then
1887 -    INSTALL="$ac_cv_path_install"
1888 +    INSTALL=$ac_cv_path_install
1889    else
1890      # As a last resort, use the slow shell script.  We don't cache a
1891      # path for INSTALL within a source directory, because that will
1892      # break other packages using the cache if that directory is
1893      # removed, or if the path is relative.
1894 -    INSTALL="$ac_install_sh"
1895 +    INSTALL=$ac_install_sh
1896    fi
1897  fi
1898 -echo "$ac_t""$INSTALL" 1>&6
1899 +echo "$as_me:$LINENO: result: $INSTALL" >&5
1900 +echo "${ECHO_T}$INSTALL" >&6
1901  
1902  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1903  # It thinks the first close brace ends the variable substitution.
1904  test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1905  
1906 -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1907 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1908  
1909  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1910  
1911 -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1912 -echo "configure:636: checking whether build environment is sane" >&5
1913 +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1914 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1915  # Just in case
1916  sleep 1
1917 -echo timestamp > conftestfile
1918 +echo timestamp > conftest.file
1919  # Do `set' in a subshell so we don't clobber the current shell's
1920  # arguments.  Must try -L first in case configure is actually a
1921  # symlink; some systems play weird games with the mod time of symlinks
1922  # (eg FreeBSD returns the mod time of the symlink's containing
1923  # directory).
1924  if (
1925 -   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1926 +   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1927     if test "$*" = "X"; then
1928        # -L didn't work.
1929 -      set X `ls -t $srcdir/configure conftestfile`
1930 +      set X `ls -t $srcdir/configure conftest.file`
1931     fi
1932 -   if test "$*" != "X $srcdir/configure conftestfile" \
1933 -      && test "$*" != "X conftestfile $srcdir/configure"; then
1934 +   rm -f conftest.file
1935 +   if test "$*" != "X $srcdir/configure conftest.file" \
1936 +      && test "$*" != "X conftest.file $srcdir/configure"; then
1937  
1938        # If neither matched, then we have a broken ls.  This can happen
1939        # if, for instance, CONFIG_SHELL is bash and it inherits a
1940        # broken ls alias from the environment.  This has actually
1941        # happened.  Such a system could not be considered "sane".
1942 -      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1943 -alias in your environment" 1>&2; exit 1; }
1944 +      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1945 +alias in your environment" >&5
1946 +echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1947 +alias in your environment" >&2;}
1948 +   { (exit 1); exit 1; }; }
1949     fi
1950  
1951 -   test "$2" = conftestfile
1952 +   test "$2" = conftest.file
1953     )
1954  then
1955     # Ok.
1956     :
1957  else
1958 -   { echo "configure: error: newly created file is older than distributed files!
1959 -Check your system clock" 1>&2; exit 1; }
1960 -fi
1961 -rm -f conftest*
1962 -echo "$ac_t""yes" 1>&6
1963 -if test "$program_transform_name" = s,x,x,; then
1964 -  program_transform_name=
1965 -else
1966 -  # Double any \ or $.  echo might interpret backslashes.
1967 -  cat <<\EOF_SED > conftestsed
1968 -s,\\,\\\\,g; s,\$,$$,g
1969 -EOF_SED
1970 -  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1971 -  rm -f conftestsed
1972 +   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1973 +Check your system clock" >&5
1974 +echo "$as_me: error: newly created file is older than distributed files!
1975 +Check your system clock" >&2;}
1976 +   { (exit 1); exit 1; }; }
1977  fi
1978 +echo "$as_me:$LINENO: result: yes" >&5
1979 +echo "${ECHO_T}yes" >&6
1980  test "$program_prefix" != NONE &&
1981 -  program_transform_name="s,^,${program_prefix},; $program_transform_name"
1982 +  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1983  # Use a double $ so make ignores it.
1984  test "$program_suffix" != NONE &&
1985 -  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1986 +  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1987 +# Double any \ or $.  echo might interpret backslashes.
1988 +# By default was `s,x,x', remove it if useless.
1989 +cat <<\_ACEOF >conftest.sed
1990 +s/[\\$]/&&/g;s/;s,x,x,$//
1991 +_ACEOF
1992 +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1993 +rm conftest.sed
1994  
1995 -# sed with no file args requires a program.
1996 -test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1997  
1998 -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1999 -echo "configure:693: checking whether ${MAKE-make} sets \${MAKE}" >&5
2000 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2001 -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2002 -  echo $ac_n "(cached) $ac_c" 1>&6
2003 +# expand $ac_aux_dir to an absolute path
2004 +am_aux_dir=`cd $ac_aux_dir && pwd`
2005 +
2006 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2007 +# Use eval to expand $SHELL
2008 +if eval "$MISSING --run true"; then
2009 +  am_missing_run="$MISSING --run "
2010  else
2011 -  cat > conftestmake <<\EOF
2012 +  am_missing_run=
2013 +  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2014 +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2015 +fi
2016 +
2017 +for ac_prog in gawk mawk nawk awk
2018 +do
2019 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
2020 +set dummy $ac_prog; ac_word=$2
2021 +echo "$as_me:$LINENO: checking for $ac_word" >&5
2022 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2023 +if test "${ac_cv_prog_AWK+set}" = set; then
2024 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2025 +else
2026 +  if test -n "$AWK"; then
2027 +  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2028 +else
2029 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 +for as_dir in $PATH
2031 +do
2032 +  IFS=$as_save_IFS
2033 +  test -z "$as_dir" && as_dir=.
2034 +  for ac_exec_ext in '' $ac_executable_extensions; do
2035 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2036 +    ac_cv_prog_AWK="$ac_prog"
2037 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 +    break 2
2039 +  fi
2040 +done
2041 +done
2042 +
2043 +fi
2044 +fi
2045 +AWK=$ac_cv_prog_AWK
2046 +if test -n "$AWK"; then
2047 +  echo "$as_me:$LINENO: result: $AWK" >&5
2048 +echo "${ECHO_T}$AWK" >&6
2049 +else
2050 +  echo "$as_me:$LINENO: result: no" >&5
2051 +echo "${ECHO_T}no" >&6
2052 +fi
2053 +
2054 +  test -n "$AWK" && break
2055 +done
2056 +
2057 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2058 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2059 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2060 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2061 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2062 +else
2063 +  cat >conftest.make <<\_ACEOF
2064  all:
2065 -       @echo 'ac_maketemp="${MAKE}"'
2066 -EOF
2067 +       @echo 'ac_maketemp="$(MAKE)"'
2068 +_ACEOF
2069  # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2070 -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2071 +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2072  if test -n "$ac_maketemp"; then
2073    eval ac_cv_prog_make_${ac_make}_set=yes
2074  else
2075    eval ac_cv_prog_make_${ac_make}_set=no
2076  fi
2077 -rm -f conftestmake
2078 +rm -f conftest.make
2079  fi
2080  if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2081 -  echo "$ac_t""yes" 1>&6
2082 +  echo "$as_me:$LINENO: result: yes" >&5
2083 +echo "${ECHO_T}yes" >&6
2084    SET_MAKE=
2085  else
2086 -  echo "$ac_t""no" 1>&6
2087 +  echo "$as_me:$LINENO: result: no" >&5
2088 +echo "${ECHO_T}no" >&6
2089    SET_MAKE="MAKE=${MAKE-make}"
2090  fi
2091  
2092 +rm -rf .tst 2>/dev/null
2093 +mkdir .tst 2>/dev/null
2094 +if test -d .tst; then
2095 +  am__leading_dot=.
2096 +else
2097 +  am__leading_dot=_
2098 +fi
2099 +rmdir .tst 2>/dev/null
2100  
2101 -PACKAGE=links
2102 -
2103 -VERSION=2.1pre12
2104 + # test to see if srcdir already configured
2105 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
2106 +   test -f $srcdir/config.status; then
2107 +  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2108 +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2109 +   { (exit 1); exit 1; }; }
2110 +fi
2111  
2112 -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
2113 -  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
2114 +# test whether we have cygpath
2115 +if test -z "$CYGPATH_W"; then
2116 +  if (cygpath --version) >/dev/null 2>/dev/null; then
2117 +    CYGPATH_W='cygpath -w'
2118 +  else
2119 +    CYGPATH_W=echo
2120 +  fi
2121  fi
2122 -cat >> confdefs.h <<EOF
2123 +
2124 +
2125 +# Define the identity of the package.
2126 + PACKAGE=links
2127 + VERSION=2.1pre12
2128 +
2129 +
2130 +cat >>confdefs.h <<_ACEOF
2131  #define PACKAGE "$PACKAGE"
2132 -EOF
2133 +_ACEOF
2134  
2135 -cat >> confdefs.h <<EOF
2136 +
2137 +cat >>confdefs.h <<_ACEOF
2138  #define VERSION "$VERSION"
2139 -EOF
2140 +_ACEOF
2141  
2142 +# Some tools Automake needs.
2143  
2144 +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2145  
2146 -missing_dir=`cd $ac_aux_dir && pwd`
2147 -echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
2148 -echo "configure:739: checking for working aclocal" >&5
2149 -# Run test in a subshell; some versions of sh will print an error if
2150 -# an executable is not found, even if stderr is redirected.
2151 -# Redirect stdin to placate older versions of autoconf.  Sigh.
2152 -if (aclocal --version) < /dev/null > /dev/null 2>&1; then
2153 -   ACLOCAL=aclocal
2154 -   echo "$ac_t""found" 1>&6
2155 +
2156 +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2157 +
2158 +
2159 +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2160 +
2161 +
2162 +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2163 +
2164 +
2165 +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2166 +
2167 +
2168 +AMTAR=${AMTAR-"${am_missing_run}tar"}
2169 +
2170 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
2171 +
2172 +# Installed binaries are usually stripped using `strip' when the user
2173 +# run `make install-strip'.  However `strip' might not be the right
2174 +# tool to use in cross-compilation environments, therefore Automake
2175 +# will honor the `STRIP' environment variable to overrule this program.
2176 +if test "$cross_compiling" != no; then
2177 +  if test -n "$ac_tool_prefix"; then
2178 +  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2179 +set dummy ${ac_tool_prefix}strip; ac_word=$2
2180 +echo "$as_me:$LINENO: checking for $ac_word" >&5
2181 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2182 +if test "${ac_cv_prog_STRIP+set}" = set; then
2183 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2184  else
2185 -   ACLOCAL="$missing_dir/missing aclocal"
2186 -   echo "$ac_t""missing" 1>&6
2187 -fi
2188 +  if test -n "$STRIP"; then
2189 +  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2190 +else
2191 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 +for as_dir in $PATH
2193 +do
2194 +  IFS=$as_save_IFS
2195 +  test -z "$as_dir" && as_dir=.
2196 +  for ac_exec_ext in '' $ac_executable_extensions; do
2197 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2198 +    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2199 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 +    break 2
2201 +  fi
2202 +done
2203 +done
2204  
2205 -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
2206 -echo "configure:752: checking for working autoconf" >&5
2207 -# Run test in a subshell; some versions of sh will print an error if
2208 -# an executable is not found, even if stderr is redirected.
2209 -# Redirect stdin to placate older versions of autoconf.  Sigh.
2210 -if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2211 -   AUTOCONF=autoconf
2212 -   echo "$ac_t""found" 1>&6
2213 +fi
2214 +fi
2215 +STRIP=$ac_cv_prog_STRIP
2216 +if test -n "$STRIP"; then
2217 +  echo "$as_me:$LINENO: result: $STRIP" >&5
2218 +echo "${ECHO_T}$STRIP" >&6
2219  else
2220 -   AUTOCONF="$missing_dir/missing autoconf"
2221 -   echo "$ac_t""missing" 1>&6
2222 +  echo "$as_me:$LINENO: result: no" >&5
2223 +echo "${ECHO_T}no" >&6
2224  fi
2225  
2226 -echo $ac_n "checking for working automake""... $ac_c" 1>&6
2227 -echo "configure:765: checking for working automake" >&5
2228 -# Run test in a subshell; some versions of sh will print an error if
2229 -# an executable is not found, even if stderr is redirected.
2230 -# Redirect stdin to placate older versions of autoconf.  Sigh.
2231 -if (automake --version) < /dev/null > /dev/null 2>&1; then
2232 -   AUTOMAKE=automake
2233 -   echo "$ac_t""found" 1>&6
2234 -else
2235 -   AUTOMAKE="$missing_dir/missing automake"
2236 -   echo "$ac_t""missing" 1>&6
2237  fi
2238 +if test -z "$ac_cv_prog_STRIP"; then
2239 +  ac_ct_STRIP=$STRIP
2240 +  # Extract the first word of "strip", so it can be a program name with args.
2241 +set dummy strip; ac_word=$2
2242 +echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2244 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2245 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2246 +else
2247 +  if test -n "$ac_ct_STRIP"; then
2248 +  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2249 +else
2250 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 +for as_dir in $PATH
2252 +do
2253 +  IFS=$as_save_IFS
2254 +  test -z "$as_dir" && as_dir=.
2255 +  for ac_exec_ext in '' $ac_executable_extensions; do
2256 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2257 +    ac_cv_prog_ac_ct_STRIP="strip"
2258 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259 +    break 2
2260 +  fi
2261 +done
2262 +done
2263  
2264 -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
2265 -echo "configure:778: checking for working autoheader" >&5
2266 -# Run test in a subshell; some versions of sh will print an error if
2267 -# an executable is not found, even if stderr is redirected.
2268 -# Redirect stdin to placate older versions of autoconf.  Sigh.
2269 -if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2270 -   AUTOHEADER=autoheader
2271 -   echo "$ac_t""found" 1>&6
2272 +  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2273 +fi
2274 +fi
2275 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2276 +if test -n "$ac_ct_STRIP"; then
2277 +  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2278 +echo "${ECHO_T}$ac_ct_STRIP" >&6
2279  else
2280 -   AUTOHEADER="$missing_dir/missing autoheader"
2281 -   echo "$ac_t""missing" 1>&6
2282 +  echo "$as_me:$LINENO: result: no" >&5
2283 +echo "${ECHO_T}no" >&6
2284  fi
2285  
2286 -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
2287 -echo "configure:791: checking for working makeinfo" >&5
2288 -# Run test in a subshell; some versions of sh will print an error if
2289 -# an executable is not found, even if stderr is redirected.
2290 -# Redirect stdin to placate older versions of autoconf.  Sigh.
2291 -if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2292 -   MAKEINFO=makeinfo
2293 -   echo "$ac_t""found" 1>&6
2294 +  STRIP=$ac_ct_STRIP
2295  else
2296 -   MAKEINFO="$missing_dir/missing makeinfo"
2297 -   echo "$ac_t""missing" 1>&6
2298 +  STRIP="$ac_cv_prog_STRIP"
2299  fi
2300  
2301 +fi
2302 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2303 +
2304 +# We need awk for the "check" target.  The system "awk" is bad on
2305 +# some platforms.
2306 +
2307 +
2308  
2309  
2310  ACLOCAL="./missing aclocal"
2311 @@ -807,218 +1701,646 @@
2312  AUTOHEADER="./missing autoheader"
2313  image_formats="GIF PNG XBM"
2314  
2315 +          ac_config_headers="$ac_config_headers config.h"
2316  
2317  
2318 +ac_ext=c
2319 +ac_cpp='$CPP $CPPFLAGS'
2320 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2321 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2322 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2323 +if test -n "$ac_tool_prefix"; then
2324 +  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2325 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
2326 +echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2328 +if test "${ac_cv_prog_CC+set}" = set; then
2329 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2330 +else
2331 +  if test -n "$CC"; then
2332 +  ac_cv_prog_CC="$CC" # Let the user override the test.
2333 +else
2334 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 +for as_dir in $PATH
2336 +do
2337 +  IFS=$as_save_IFS
2338 +  test -z "$as_dir" && as_dir=.
2339 +  for ac_exec_ext in '' $ac_executable_extensions; do
2340 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2341 +    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2342 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 +    break 2
2344 +  fi
2345 +done
2346 +done
2347  
2348 +fi
2349 +fi
2350 +CC=$ac_cv_prog_CC
2351 +if test -n "$CC"; then
2352 +  echo "$as_me:$LINENO: result: $CC" >&5
2353 +echo "${ECHO_T}$CC" >&6
2354 +else
2355 +  echo "$as_me:$LINENO: result: no" >&5
2356 +echo "${ECHO_T}no" >&6
2357 +fi
2358  
2359 -# Extract the first word of "gcc", so it can be a program name with args.
2360 +fi
2361 +if test -z "$ac_cv_prog_CC"; then
2362 +  ac_ct_CC=$CC
2363 +  # Extract the first word of "gcc", so it can be a program name with args.
2364  set dummy gcc; ac_word=$2
2365 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2366 -echo "configure:818: checking for $ac_word" >&5
2367 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2368 -  echo $ac_n "(cached) $ac_c" 1>&6
2369 +echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2371 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2372 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2373 +else
2374 +  if test -n "$ac_ct_CC"; then
2375 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2376 +else
2377 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 +for as_dir in $PATH
2379 +do
2380 +  IFS=$as_save_IFS
2381 +  test -z "$as_dir" && as_dir=.
2382 +  for ac_exec_ext in '' $ac_executable_extensions; do
2383 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2384 +    ac_cv_prog_ac_ct_CC="gcc"
2385 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386 +    break 2
2387 +  fi
2388 +done
2389 +done
2390 +
2391 +fi
2392 +fi
2393 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2394 +if test -n "$ac_ct_CC"; then
2395 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2396 +echo "${ECHO_T}$ac_ct_CC" >&6
2397 +else
2398 +  echo "$as_me:$LINENO: result: no" >&5
2399 +echo "${ECHO_T}no" >&6
2400 +fi
2401 +
2402 +  CC=$ac_ct_CC
2403 +else
2404 +  CC="$ac_cv_prog_CC"
2405 +fi
2406 +
2407 +if test -z "$CC"; then
2408 +  if test -n "$ac_tool_prefix"; then
2409 +  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2410 +set dummy ${ac_tool_prefix}cc; ac_word=$2
2411 +echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2413 +if test "${ac_cv_prog_CC+set}" = set; then
2414 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2415  else
2416    if test -n "$CC"; then
2417    ac_cv_prog_CC="$CC" # Let the user override the test.
2418  else
2419 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
2420 -  ac_dummy="$PATH"
2421 -  for ac_dir in $ac_dummy; do
2422 -    test -z "$ac_dir" && ac_dir=.
2423 -    if test -f $ac_dir/$ac_word; then
2424 -      ac_cv_prog_CC="gcc"
2425 -      break
2426 -    fi
2427 -  done
2428 -  IFS="$ac_save_ifs"
2429 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 +for as_dir in $PATH
2431 +do
2432 +  IFS=$as_save_IFS
2433 +  test -z "$as_dir" && as_dir=.
2434 +  for ac_exec_ext in '' $ac_executable_extensions; do
2435 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2436 +    ac_cv_prog_CC="${ac_tool_prefix}cc"
2437 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438 +    break 2
2439 +  fi
2440 +done
2441 +done
2442 +
2443  fi
2444  fi
2445 -CC="$ac_cv_prog_CC"
2446 +CC=$ac_cv_prog_CC
2447  if test -n "$CC"; then
2448 -  echo "$ac_t""$CC" 1>&6
2449 +  echo "$as_me:$LINENO: result: $CC" >&5
2450 +echo "${ECHO_T}$CC" >&6
2451  else
2452 -  echo "$ac_t""no" 1>&6
2453 +  echo "$as_me:$LINENO: result: no" >&5
2454 +echo "${ECHO_T}no" >&6
2455 +fi
2456 +
2457 +fi
2458 +if test -z "$ac_cv_prog_CC"; then
2459 +  ac_ct_CC=$CC
2460 +  # Extract the first word of "cc", so it can be a program name with args.
2461 +set dummy cc; ac_word=$2
2462 +echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2464 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2465 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2466 +else
2467 +  if test -n "$ac_ct_CC"; then
2468 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2469 +else
2470 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 +for as_dir in $PATH
2472 +do
2473 +  IFS=$as_save_IFS
2474 +  test -z "$as_dir" && as_dir=.
2475 +  for ac_exec_ext in '' $ac_executable_extensions; do
2476 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2477 +    ac_cv_prog_ac_ct_CC="cc"
2478 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 +    break 2
2480 +  fi
2481 +done
2482 +done
2483 +
2484 +fi
2485 +fi
2486 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2487 +if test -n "$ac_ct_CC"; then
2488 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2489 +echo "${ECHO_T}$ac_ct_CC" >&6
2490 +else
2491 +  echo "$as_me:$LINENO: result: no" >&5
2492 +echo "${ECHO_T}no" >&6
2493 +fi
2494 +
2495 +  CC=$ac_ct_CC
2496 +else
2497 +  CC="$ac_cv_prog_CC"
2498  fi
2499  
2500 +fi
2501  if test -z "$CC"; then
2502    # Extract the first word of "cc", so it can be a program name with args.
2503  set dummy cc; ac_word=$2
2504 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2505 -echo "configure:848: checking for $ac_word" >&5
2506 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2507 -  echo $ac_n "(cached) $ac_c" 1>&6
2508 +echo "$as_me:$LINENO: checking for $ac_word" >&5
2509 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2510 +if test "${ac_cv_prog_CC+set}" = set; then
2511 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2512  else
2513    if test -n "$CC"; then
2514    ac_cv_prog_CC="$CC" # Let the user override the test.
2515  else
2516 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
2517    ac_prog_rejected=no
2518 -  ac_dummy="$PATH"
2519 -  for ac_dir in $ac_dummy; do
2520 -    test -z "$ac_dir" && ac_dir=.
2521 -    if test -f $ac_dir/$ac_word; then
2522 -      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2523 -        ac_prog_rejected=yes
2524 -       continue
2525 -      fi
2526 -      ac_cv_prog_CC="cc"
2527 -      break
2528 -    fi
2529 -  done
2530 -  IFS="$ac_save_ifs"
2531 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 +for as_dir in $PATH
2533 +do
2534 +  IFS=$as_save_IFS
2535 +  test -z "$as_dir" && as_dir=.
2536 +  for ac_exec_ext in '' $ac_executable_extensions; do
2537 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538 +    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2539 +       ac_prog_rejected=yes
2540 +       continue
2541 +     fi
2542 +    ac_cv_prog_CC="cc"
2543 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 +    break 2
2545 +  fi
2546 +done
2547 +done
2548 +
2549  if test $ac_prog_rejected = yes; then
2550    # We found a bogon in the path, so make sure we never use it.
2551    set dummy $ac_cv_prog_CC
2552    shift
2553 -  if test $# -gt 0; then
2554 +  if test $# != 0; then
2555      # We chose a different compiler from the bogus one.
2556      # However, it has the same basename, so the bogon will be chosen
2557      # first if we set CC to just the basename; use the full file name.
2558      shift
2559 -    set dummy "$ac_dir/$ac_word" "$@"
2560 -    shift
2561 -    ac_cv_prog_CC="$@"
2562 +    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2563    fi
2564  fi
2565  fi
2566  fi
2567 -CC="$ac_cv_prog_CC"
2568 +CC=$ac_cv_prog_CC
2569  if test -n "$CC"; then
2570 -  echo "$ac_t""$CC" 1>&6
2571 +  echo "$as_me:$LINENO: result: $CC" >&5
2572 +echo "${ECHO_T}$CC" >&6
2573  else
2574 -  echo "$ac_t""no" 1>&6
2575 +  echo "$as_me:$LINENO: result: no" >&5
2576 +echo "${ECHO_T}no" >&6
2577  fi
2578  
2579 -  if test -z "$CC"; then
2580 -    case "`uname -s`" in
2581 -    *win32* | *WIN32*)
2582 -      # Extract the first word of "cl", so it can be a program name with args.
2583 -set dummy cl; ac_word=$2
2584 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2585 -echo "configure:899: checking for $ac_word" >&5
2586 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2587 -  echo $ac_n "(cached) $ac_c" 1>&6
2588 +fi
2589 +if test -z "$CC"; then
2590 +  if test -n "$ac_tool_prefix"; then
2591 +  for ac_prog in cl
2592 +  do
2593 +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2594 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2595 +echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2597 +if test "${ac_cv_prog_CC+set}" = set; then
2598 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2599  else
2600    if test -n "$CC"; then
2601    ac_cv_prog_CC="$CC" # Let the user override the test.
2602  else
2603 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
2604 -  ac_dummy="$PATH"
2605 -  for ac_dir in $ac_dummy; do
2606 -    test -z "$ac_dir" && ac_dir=.
2607 -    if test -f $ac_dir/$ac_word; then
2608 -      ac_cv_prog_CC="cl"
2609 -      break
2610 -    fi
2611 -  done
2612 -  IFS="$ac_save_ifs"
2613 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 +for as_dir in $PATH
2615 +do
2616 +  IFS=$as_save_IFS
2617 +  test -z "$as_dir" && as_dir=.
2618 +  for ac_exec_ext in '' $ac_executable_extensions; do
2619 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2620 +    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2621 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 +    break 2
2623 +  fi
2624 +done
2625 +done
2626 +
2627  fi
2628  fi
2629 -CC="$ac_cv_prog_CC"
2630 +CC=$ac_cv_prog_CC
2631  if test -n "$CC"; then
2632 -  echo "$ac_t""$CC" 1>&6
2633 +  echo "$as_me:$LINENO: result: $CC" >&5
2634 +echo "${ECHO_T}$CC" >&6
2635  else
2636 -  echo "$ac_t""no" 1>&6
2637 +  echo "$as_me:$LINENO: result: no" >&5
2638 +echo "${ECHO_T}no" >&6
2639  fi
2640 - ;;
2641 -    esac
2642 +
2643 +    test -n "$CC" && break
2644 +  done
2645 +fi
2646 +if test -z "$CC"; then
2647 +  ac_ct_CC=$CC
2648 +  for ac_prog in cl
2649 +do
2650 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
2651 +set dummy $ac_prog; ac_word=$2
2652 +echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2654 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2655 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2656 +else
2657 +  if test -n "$ac_ct_CC"; then
2658 +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2659 +else
2660 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 +for as_dir in $PATH
2662 +do
2663 +  IFS=$as_save_IFS
2664 +  test -z "$as_dir" && as_dir=.
2665 +  for ac_exec_ext in '' $ac_executable_extensions; do
2666 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2667 +    ac_cv_prog_ac_ct_CC="$ac_prog"
2668 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 +    break 2
2670    fi
2671 -  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2672 +done
2673 +done
2674 +
2675 +fi
2676 +fi
2677 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2678 +if test -n "$ac_ct_CC"; then
2679 +  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2680 +echo "${ECHO_T}$ac_ct_CC" >&6
2681 +else
2682 +  echo "$as_me:$LINENO: result: no" >&5
2683 +echo "${ECHO_T}no" >&6
2684  fi
2685  
2686 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2687 -echo "configure:931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2688 +  test -n "$ac_ct_CC" && break
2689 +done
2690  
2691 -ac_ext=c
2692 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2693 -ac_cpp='$CPP $CPPFLAGS'
2694 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2695 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2696 -cross_compiling=$ac_cv_prog_cc_cross
2697 +  CC=$ac_ct_CC
2698 +fi
2699  
2700 -cat > conftest.$ac_ext << EOF
2701 +fi
2702  
2703 -#line 942 "configure"
2704 -#include "confdefs.h"
2705  
2706 -main(){return(0);}
2707 -EOF
2708 -if { (eval echo configure:947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2709 -  ac_cv_prog_cc_works=yes
2710 -  # If we can't run a trivial program, we are probably using a cross compiler.
2711 -  if (./conftest; exit) 2>/dev/null; then
2712 -    ac_cv_prog_cc_cross=no
2713 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2714 +See \`config.log' for more details." >&5
2715 +echo "$as_me: error: no acceptable C compiler found in \$PATH
2716 +See \`config.log' for more details." >&2;}
2717 +   { (exit 1); exit 1; }; }
2718 +
2719 +# Provide some information about the compiler.
2720 +echo "$as_me:$LINENO:" \
2721 +     "checking for C compiler version" >&5
2722 +ac_compiler=`set X $ac_compile; echo $2`
2723 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2724 +  (eval $ac_compiler --version </dev/null >&5) 2>&5
2725 +  ac_status=$?
2726 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 +  (exit $ac_status); }
2728 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2729 +  (eval $ac_compiler -v </dev/null >&5) 2>&5
2730 +  ac_status=$?
2731 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 +  (exit $ac_status); }
2733 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2734 +  (eval $ac_compiler -V </dev/null >&5) 2>&5
2735 +  ac_status=$?
2736 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 +  (exit $ac_status); }
2738 +
2739 +cat >conftest.$ac_ext <<_ACEOF
2740 +#line $LINENO "configure"
2741 +/* confdefs.h.  */
2742 +_ACEOF
2743 +cat confdefs.h >>conftest.$ac_ext
2744 +cat >>conftest.$ac_ext <<_ACEOF
2745 +/* end confdefs.h.  */
2746 +
2747 +int
2748 +main ()
2749 +{
2750 +
2751 +  ;
2752 +  return 0;
2753 +}
2754 +_ACEOF
2755 +ac_clean_files_save=$ac_clean_files
2756 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
2757 +# Try to create an executable without -o first, disregard a.out.
2758 +# It will help us diagnose broken compilers, and finding out an intuition
2759 +# of exeext.
2760 +echo "$as_me:$LINENO: checking for C compiler default output" >&5
2761 +echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2762 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2763 +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2764 +  (eval $ac_link_default) 2>&5
2765 +  ac_status=$?
2766 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 +  (exit $ac_status); }; then
2768 +  # Find the output, starting from the most likely.  This scheme is
2769 +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2770 +# resort.
2771 +
2772 +# Be careful to initialize this variable, since it used to be cached.
2773 +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2774 +ac_cv_exeext=
2775 +# b.out is created by i960 compilers.
2776 +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2777 +do
2778 +  test -f "$ac_file" || continue
2779 +  case $ac_file in
2780 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2781 +        ;;
2782 +    conftest.$ac_ext )
2783 +        # This is the source file.
2784 +        ;;
2785 +    [ab].out )
2786 +        # We found the default executable, but exeext='' is most
2787 +        # certainly right.
2788 +        break;;
2789 +    *.* )
2790 +        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2791 +        # FIXME: I believe we export ac_cv_exeext for Libtool,
2792 +        # but it would be cool to find out if it's true.  Does anybody
2793 +        # maintain Libtool? --akim.
2794 +        export ac_cv_exeext
2795 +        break;;
2796 +    * )
2797 +        break;;
2798 +  esac
2799 +done
2800 +else
2801 +  echo "$as_me: failed program was:" >&5
2802 +sed 's/^/| /' conftest.$ac_ext >&5
2803 +
2804 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2805 +See \`config.log' for more details." >&5
2806 +echo "$as_me: error: C compiler cannot create executables
2807 +See \`config.log' for more details." >&2;}
2808 +   { (exit 77); exit 77; }; }
2809 +fi
2810 +
2811 +ac_exeext=$ac_cv_exeext
2812 +echo "$as_me:$LINENO: result: $ac_file" >&5
2813 +echo "${ECHO_T}$ac_file" >&6
2814 +
2815 +# Check the compiler produces executables we can run.  If not, either
2816 +# the compiler is broken, or we cross compile.
2817 +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2818 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2819 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2820 +# If not cross compiling, check that we can run a simple program.
2821 +if test "$cross_compiling" != yes; then
2822 +  if { ac_try='./$ac_file'
2823 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 +  (eval $ac_try) 2>&5
2825 +  ac_status=$?
2826 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 +  (exit $ac_status); }; }; then
2828 +    cross_compiling=no
2829    else
2830 -    ac_cv_prog_cc_cross=yes
2831 +    if test "$cross_compiling" = maybe; then
2832 +       cross_compiling=yes
2833 +    else
2834 +       { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2835 +If you meant to cross compile, use \`--host'.
2836 +See \`config.log' for more details." >&5
2837 +echo "$as_me: error: cannot run C compiled programs.
2838 +If you meant to cross compile, use \`--host'.
2839 +See \`config.log' for more details." >&2;}
2840 +   { (exit 1); exit 1; }; }
2841 +    fi
2842    fi
2843 -else
2844 -  echo "configure: failed program was:" >&5
2845 -  cat conftest.$ac_ext >&5
2846 -  ac_cv_prog_cc_works=no
2847  fi
2848 -rm -fr conftest*
2849 -ac_ext=c
2850 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2851 -ac_cpp='$CPP $CPPFLAGS'
2852 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2853 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2854 -cross_compiling=$ac_cv_prog_cc_cross
2855 +echo "$as_me:$LINENO: result: yes" >&5
2856 +echo "${ECHO_T}yes" >&6
2857  
2858 -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2859 -if test $ac_cv_prog_cc_works = no; then
2860 -  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2861 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
2862 +ac_clean_files=$ac_clean_files_save
2863 +# Check the compiler produces executables we can run.  If not, either
2864 +# the compiler is broken, or we cross compile.
2865 +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2866 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2867 +echo "$as_me:$LINENO: result: $cross_compiling" >&5
2868 +echo "${ECHO_T}$cross_compiling" >&6
2869 +
2870 +echo "$as_me:$LINENO: checking for suffix of executables" >&5
2871 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2872 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2873 +  (eval $ac_link) 2>&5
2874 +  ac_status=$?
2875 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 +  (exit $ac_status); }; then
2877 +  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2878 +# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2879 +# work properly (i.e., refer to `conftest.exe'), while it won't with
2880 +# `rm'.
2881 +for ac_file in conftest.exe conftest conftest.*; do
2882 +  test -f "$ac_file" || continue
2883 +  case $ac_file in
2884 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2885 +    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2886 +          export ac_cv_exeext
2887 +          break;;
2888 +    * ) break;;
2889 +  esac
2890 +done
2891 +else
2892 +  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2893 +See \`config.log' for more details." >&5
2894 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2895 +See \`config.log' for more details." >&2;}
2896 +   { (exit 1); exit 1; }; }
2897  fi
2898 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2899 -echo "configure:973: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2900 -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2901 -cross_compiling=$ac_cv_prog_cc_cross
2902  
2903 -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2904 -echo "configure:978: checking whether we are using GNU C" >&5
2905 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2906 -  echo $ac_n "(cached) $ac_c" 1>&6
2907 +rm -f conftest$ac_cv_exeext
2908 +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2909 +echo "${ECHO_T}$ac_cv_exeext" >&6
2910 +
2911 +rm -f conftest.$ac_ext
2912 +EXEEXT=$ac_cv_exeext
2913 +ac_exeext=$EXEEXT
2914 +echo "$as_me:$LINENO: checking for suffix of object files" >&5
2915 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2916 +if test "${ac_cv_objext+set}" = set; then
2917 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2918  else
2919 -  cat > conftest.c <<EOF
2920 -#ifdef __GNUC__
2921 -  yes;
2922 -#endif
2923 -EOF
2924 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2925 -  ac_cv_prog_gcc=yes
2926 +  cat >conftest.$ac_ext <<_ACEOF
2927 +#line $LINENO "configure"
2928 +/* confdefs.h.  */
2929 +_ACEOF
2930 +cat confdefs.h >>conftest.$ac_ext
2931 +cat >>conftest.$ac_ext <<_ACEOF
2932 +/* end confdefs.h.  */
2933 +
2934 +int
2935 +main ()
2936 +{
2937 +
2938 +  ;
2939 +  return 0;
2940 +}
2941 +_ACEOF
2942 +rm -f conftest.o conftest.obj
2943 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944 +  (eval $ac_compile) 2>&5
2945 +  ac_status=$?
2946 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 +  (exit $ac_status); }; then
2948 +  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2949 +  case $ac_file in
2950 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2951 +    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2952 +       break;;
2953 +  esac
2954 +done
2955  else
2956 -  ac_cv_prog_gcc=no
2957 +  echo "$as_me: failed program was:" >&5
2958 +sed 's/^/| /' conftest.$ac_ext >&5
2959 +
2960 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2961 +See \`config.log' for more details." >&5
2962 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
2963 +See \`config.log' for more details." >&2;}
2964 +   { (exit 1); exit 1; }; }
2965  fi
2966 +
2967 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
2968  fi
2969 +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2970 +echo "${ECHO_T}$ac_cv_objext" >&6
2971 +OBJEXT=$ac_cv_objext
2972 +ac_objext=$OBJEXT
2973 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2974 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2975 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
2976 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2977 +else
2978 +  cat >conftest.$ac_ext <<_ACEOF
2979 +#line $LINENO "configure"
2980 +/* confdefs.h.  */
2981 +_ACEOF
2982 +cat confdefs.h >>conftest.$ac_ext
2983 +cat >>conftest.$ac_ext <<_ACEOF
2984 +/* end confdefs.h.  */
2985  
2986 -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2987 +int
2988 +main ()
2989 +{
2990 +#ifndef __GNUC__
2991 +       choke me
2992 +#endif
2993  
2994 -if test $ac_cv_prog_gcc = yes; then
2995 -  GCC=yes
2996 +  ;
2997 +  return 0;
2998 +}
2999 +_ACEOF
3000 +rm -f conftest.$ac_objext
3001 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3002 +  (eval $ac_compile) 2>&5
3003 +  ac_status=$?
3004 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 +  (exit $ac_status); } &&
3006 +         { ac_try='test -s conftest.$ac_objext'
3007 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 +  (eval $ac_try) 2>&5
3009 +  ac_status=$?
3010 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 +  (exit $ac_status); }; }; then
3012 +  ac_compiler_gnu=yes
3013  else
3014 -  GCC=
3015 +  echo "$as_me: failed program was:" >&5
3016 +sed 's/^/| /' conftest.$ac_ext >&5
3017 +
3018 +ac_compiler_gnu=no
3019  fi
3020 +rm -f conftest.$ac_objext conftest.$ac_ext
3021 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
3022  
3023 -ac_test_CFLAGS="${CFLAGS+set}"
3024 -ac_save_CFLAGS="$CFLAGS"
3025 -CFLAGS=
3026 -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3027 -echo "configure:1006: checking whether ${CC-cc} accepts -g" >&5
3028 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
3029 -  echo $ac_n "(cached) $ac_c" 1>&6
3030 +fi
3031 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3032 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3033 +GCC=`test $ac_compiler_gnu = yes && echo yes`
3034 +ac_test_CFLAGS=${CFLAGS+set}
3035 +ac_save_CFLAGS=$CFLAGS
3036 +CFLAGS="-g"
3037 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3038 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3039 +if test "${ac_cv_prog_cc_g+set}" = set; then
3040 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3041  else
3042 -  echo 'void f(){}' > conftest.c
3043 -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3044 +  cat >conftest.$ac_ext <<_ACEOF
3045 +#line $LINENO "configure"
3046 +/* confdefs.h.  */
3047 +_ACEOF
3048 +cat confdefs.h >>conftest.$ac_ext
3049 +cat >>conftest.$ac_ext <<_ACEOF
3050 +/* end confdefs.h.  */
3051 +
3052 +int
3053 +main ()
3054 +{
3055 +
3056 +  ;
3057 +  return 0;
3058 +}
3059 +_ACEOF
3060 +rm -f conftest.$ac_objext
3061 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3062 +  (eval $ac_compile) 2>&5
3063 +  ac_status=$?
3064 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 +  (exit $ac_status); } &&
3066 +         { ac_try='test -s conftest.$ac_objext'
3067 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068 +  (eval $ac_try) 2>&5
3069 +  ac_status=$?
3070 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 +  (exit $ac_status); }; }; then
3072    ac_cv_prog_cc_g=yes
3073  else
3074 -  ac_cv_prog_cc_g=no
3075 -fi
3076 -rm -f conftest*
3077 +  echo "$as_me: failed program was:" >&5
3078 +sed 's/^/| /' conftest.$ac_ext >&5
3079  
3080 +ac_cv_prog_cc_g=no
3081  fi
3082 -
3083 -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3084 +rm -f conftest.$ac_objext conftest.$ac_ext
3085 +fi
3086 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3087 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3088  if test "$ac_test_CFLAGS" = set; then
3089 -  CFLAGS="$ac_save_CFLAGS"
3090 +  CFLAGS=$ac_save_CFLAGS
3091  elif test $ac_cv_prog_cc_g = yes; then
3092    if test "$GCC" = yes; then
3093      CFLAGS="-g -O2"
3094 @@ -1032,356 +2354,1564 @@
3095      CFLAGS=
3096    fi
3097  fi
3098 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3099 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3100 +if test "${ac_cv_prog_cc_stdc+set}" = set; then
3101 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3102 +else
3103 +  ac_cv_prog_cc_stdc=no
3104 +ac_save_CC=$CC
3105 +cat >conftest.$ac_ext <<_ACEOF
3106 +#line $LINENO "configure"
3107 +/* confdefs.h.  */
3108 +_ACEOF
3109 +cat confdefs.h >>conftest.$ac_ext
3110 +cat >>conftest.$ac_ext <<_ACEOF
3111 +/* end confdefs.h.  */
3112 +#include <stdarg.h>
3113 +#include <stdio.h>
3114 +#include <sys/types.h>
3115 +#include <sys/stat.h>
3116 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3117 +struct buf { int x; };
3118 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
3119 +static char *e (p, i)
3120 +     char **p;
3121 +     int i;
3122 +{
3123 +  return p[i];
3124 +}
3125 +static char *f (char * (*g) (char **, int), char **p, ...)
3126 +{
3127 +  char *s;
3128 +  va_list v;
3129 +  va_start (v,p);
3130 +  s = g (p, va_arg (v,int));
3131 +  va_end (v);
3132 +  return s;
3133 +}
3134 +int test (int i, double x);
3135 +struct s1 {int (*f) (int a);};
3136 +struct s2 {int (*f) (double a);};
3137 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3138 +int argc;
3139 +char **argv;
3140 +int
3141 +main ()
3142 +{
3143 +return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3144 +  ;
3145 +  return 0;
3146 +}
3147 +_ACEOF
3148 +# Don't try gcc -ansi; that turns off useful extensions and
3149 +# breaks some systems' header files.
3150 +# AIX                  -qlanglvl=ansi
3151 +# Ultrix and OSF/1     -std1
3152 +# HP-UX 10.20 and later        -Ae
3153 +# HP-UX older versions -Aa -D_HPUX_SOURCE
3154 +# SVR4                 -Xc -D__EXTENSIONS__
3155 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3156 +do
3157 +  CC="$ac_save_CC $ac_arg"
3158 +  rm -f conftest.$ac_objext
3159 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3160 +  (eval $ac_compile) 2>&5
3161 +  ac_status=$?
3162 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 +  (exit $ac_status); } &&
3164 +         { ac_try='test -s conftest.$ac_objext'
3165 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166 +  (eval $ac_try) 2>&5
3167 +  ac_status=$?
3168 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 +  (exit $ac_status); }; }; then
3170 +  ac_cv_prog_cc_stdc=$ac_arg
3171 +break
3172 +else
3173 +  echo "$as_me: failed program was:" >&5
3174 +sed 's/^/| /' conftest.$ac_ext >&5
3175 +
3176 +fi
3177 +rm -f conftest.$ac_objext
3178 +done
3179 +rm -f conftest.$ac_ext conftest.$ac_objext
3180 +CC=$ac_save_CC
3181 +
3182 +fi
3183 +
3184 +case "x$ac_cv_prog_cc_stdc" in
3185 +  x|xno)
3186 +    echo "$as_me:$LINENO: result: none needed" >&5
3187 +echo "${ECHO_T}none needed" >&6 ;;
3188 +  *)
3189 +    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3190 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3191 +    CC="$CC $ac_cv_prog_cc_stdc" ;;
3192 +esac
3193 +
3194 +# Some people use a C++ compiler to compile C.  Since we use `exit',
3195 +# in C++ we need to declare it.  In case someone uses the same compiler
3196 +# for both compiling C and C++ we need to have the C++ compiler decide
3197 +# the declaration of exit, since it's the most demanding environment.
3198 +cat >conftest.$ac_ext <<_ACEOF
3199 +#ifndef __cplusplus
3200 +  choke me
3201 +#endif
3202 +_ACEOF
3203 +rm -f conftest.$ac_objext
3204 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3205 +  (eval $ac_compile) 2>&5
3206 +  ac_status=$?
3207 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 +  (exit $ac_status); } &&
3209 +         { ac_try='test -s conftest.$ac_objext'
3210 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211 +  (eval $ac_try) 2>&5
3212 +  ac_status=$?
3213 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 +  (exit $ac_status); }; }; then
3215 +  for ac_declaration in \
3216 +   ''\
3217 +   '#include <stdlib.h>' \
3218 +   'extern "C" void std::exit (int) throw (); using std::exit;' \
3219 +   'extern "C" void std::exit (int); using std::exit;' \
3220 +   'extern "C" void exit (int) throw ();' \
3221 +   'extern "C" void exit (int);' \
3222 +   'void exit (int);'
3223 +do
3224 +  cat >conftest.$ac_ext <<_ACEOF
3225 +#line $LINENO "configure"
3226 +/* confdefs.h.  */
3227 +_ACEOF
3228 +cat confdefs.h >>conftest.$ac_ext
3229 +cat >>conftest.$ac_ext <<_ACEOF
3230 +/* end confdefs.h.  */
3231 +#include <stdlib.h>
3232 +$ac_declaration
3233 +int
3234 +main ()
3235 +{
3236 +exit (42);
3237 +  ;
3238 +  return 0;
3239 +}
3240 +_ACEOF
3241 +rm -f conftest.$ac_objext
3242 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3243 +  (eval $ac_compile) 2>&5
3244 +  ac_status=$?
3245 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 +  (exit $ac_status); } &&
3247 +         { ac_try='test -s conftest.$ac_objext'
3248 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 +  (eval $ac_try) 2>&5
3250 +  ac_status=$?
3251 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 +  (exit $ac_status); }; }; then
3253 +  :
3254 +else
3255 +  echo "$as_me: failed program was:" >&5
3256 +sed 's/^/| /' conftest.$ac_ext >&5
3257 +
3258 +continue
3259 +fi
3260 +rm -f conftest.$ac_objext conftest.$ac_ext
3261 +  cat >conftest.$ac_ext <<_ACEOF
3262 +#line $LINENO "configure"
3263 +/* confdefs.h.  */
3264 +_ACEOF
3265 +cat confdefs.h >>conftest.$ac_ext
3266 +cat >>conftest.$ac_ext <<_ACEOF
3267 +/* end confdefs.h.  */
3268 +$ac_declaration
3269 +int
3270 +main ()
3271 +{
3272 +exit (42);
3273 +  ;
3274 +  return 0;
3275 +}
3276 +_ACEOF
3277 +rm -f conftest.$ac_objext
3278 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279 +  (eval $ac_compile) 2>&5
3280 +  ac_status=$?
3281 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 +  (exit $ac_status); } &&
3283 +         { ac_try='test -s conftest.$ac_objext'
3284 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 +  (eval $ac_try) 2>&5
3286 +  ac_status=$?
3287 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 +  (exit $ac_status); }; }; then
3289 +  break
3290 +else
3291 +  echo "$as_me: failed program was:" >&5
3292 +sed 's/^/| /' conftest.$ac_ext >&5
3293 +
3294 +fi
3295 +rm -f conftest.$ac_objext conftest.$ac_ext
3296 +done
3297 +rm -f conftest*
3298 +if test -n "$ac_declaration"; then
3299 +  echo '#ifdef __cplusplus' >>confdefs.h
3300 +  echo $ac_declaration      >>confdefs.h
3301 +  echo '#endif'             >>confdefs.h
3302 +fi
3303 +
3304 +else
3305 +  echo "$as_me: failed program was:" >&5
3306 +sed 's/^/| /' conftest.$ac_ext >&5
3307 +
3308 +fi
3309 +rm -f conftest.$ac_objext conftest.$ac_ext
3310 +ac_ext=c
3311 +ac_cpp='$CPP $CPPFLAGS'
3312 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3313 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3314 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
3315 +DEPDIR="${am__leading_dot}deps"
3316 +
3317 +          ac_config_commands="$ac_config_commands depfiles"
3318 +
3319 +
3320 +am_make=${MAKE-make}
3321 +cat > confinc << 'END'
3322 +am__doit:
3323 +       @echo done
3324 +.PHONY: am__doit
3325 +END
3326 +# If we don't find an include directive, just comment out the code.
3327 +echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3328 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3329 +am__include="#"
3330 +am__quote=
3331 +_am_result=none
3332 +# First try GNU make style include.
3333 +echo "include confinc" > confmf
3334 +# We grep out `Entering directory' and `Leaving directory'
3335 +# messages which can occur if `w' ends up in MAKEFLAGS.
3336 +# In particular we don't look at `^make:' because GNU make might
3337 +# be invoked under some other name (usually "gmake"), in which
3338 +# case it prints its new name instead of `make'.
3339 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3340 +   am__include=include
3341 +   am__quote=
3342 +   _am_result=GNU
3343 +fi
3344 +# Now try BSD make style include.
3345 +if test "$am__include" = "#"; then
3346 +   echo '.include "confinc"' > confmf
3347 +   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3348 +      am__include=.include
3349 +      am__quote="\""
3350 +      _am_result=BSD
3351 +   fi
3352 +fi
3353 +
3354 +
3355 +echo "$as_me:$LINENO: result: $_am_result" >&5
3356 +echo "${ECHO_T}$_am_result" >&6
3357 +rm -f confinc confmf
3358 +
3359 +# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3360 +if test "${enable_dependency_tracking+set}" = set; then
3361 +  enableval="$enable_dependency_tracking"
3362 +
3363 +fi;
3364 +if test "x$enable_dependency_tracking" != xno; then
3365 +  am_depcomp="$ac_aux_dir/depcomp"
3366 +  AMDEPBACKSLASH='\'
3367 +fi
3368 +
3369 +
3370 +if test "x$enable_dependency_tracking" != xno; then
3371 +  AMDEP_TRUE=
3372 +  AMDEP_FALSE='#'
3373 +else
3374 +  AMDEP_TRUE='#'
3375 +  AMDEP_FALSE=
3376 +fi
3377 +
3378 +
3379 +
3380 +
3381 +depcc="$CC"   am_compiler_list=
3382 +
3383 +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3384 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3385 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3386 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3387 +else
3388 +  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3389 +  # We make a subdir and do the tests there.  Otherwise we can end up
3390 +  # making bogus files that we don't know about and never remove.  For
3391 +  # instance it was reported that on HP-UX the gcc test will end up
3392 +  # making a dummy file named `D' -- because `-MD' means `put the output
3393 +  # in D'.
3394 +  mkdir conftest.dir
3395 +  # Copy depcomp to subdir because otherwise we won't find it if we're
3396 +  # using a relative directory.
3397 +  cp "$am_depcomp" conftest.dir
3398 +  cd conftest.dir
3399 +  # We will build objects and dependencies in a subdirectory because
3400 +  # it helps to detect inapplicable dependency modes.  For instance
3401 +  # both Tru64's cc and ICC support -MD to output dependencies as a
3402 +  # side effect of compilation, but ICC will put the dependencies in
3403 +  # the current directory while Tru64 will put them in the object
3404 +  # directory.
3405 +  mkdir sub
3406 +
3407 +  am_cv_CC_dependencies_compiler_type=none
3408 +  if test "$am_compiler_list" = ""; then
3409 +     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3410 +  fi
3411 +  for depmode in $am_compiler_list; do
3412 +    # Setup a source with many dependencies, because some compilers
3413 +    # like to wrap large dependency lists on column 80 (with \), and
3414 +    # we should not choose a depcomp mode which is confused by this.
3415 +    #
3416 +    # We need to recreate these files for each test, as the compiler may
3417 +    # overwrite some of them when testing with obscure command lines.
3418 +    # This happens at least with the AIX C compiler.
3419 +    : > sub/conftest.c
3420 +    for i in 1 2 3 4 5 6; do
3421 +      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3422 +      : > sub/conftst$i.h
3423 +    done
3424 +    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3425 +
3426 +    case $depmode in
3427 +    nosideeffect)
3428 +      # after this tag, mechanisms are not by side-effect, so they'll
3429 +      # only be used when explicitly requested
3430 +      if test "x$enable_dependency_tracking" = xyes; then
3431 +       continue
3432 +      else
3433 +       break
3434 +      fi
3435 +      ;;
3436 +    none) break ;;
3437 +    esac
3438 +    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3439 +    # mode.  It turns out that the SunPro C++ compiler does not properly
3440 +    # handle `-M -o', and we need to detect this.
3441 +    if depmode=$depmode \
3442 +       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3443 +       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3444 +       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3445 +         >/dev/null 2>conftest.err &&
3446 +       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3447 +       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3448 +       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3449 +      # icc doesn't choke on unknown options, it will just issue warnings
3450 +      # (even with -Werror).  So we grep stderr for any message
3451 +      # that says an option was ignored.
3452 +      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3453 +        am_cv_CC_dependencies_compiler_type=$depmode
3454 +        break
3455 +      fi
3456 +    fi
3457 +  done
3458 +
3459 +  cd ..
3460 +  rm -rf conftest.dir
3461 +else
3462 +  am_cv_CC_dependencies_compiler_type=none
3463 +fi
3464 +
3465 +fi
3466 +echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3467 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3468 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3469 +
3470 +
3471 +
3472 +if
3473 +  test "x$enable_dependency_tracking" != xno \
3474 +  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3475 +  am__fastdepCC_TRUE=
3476 +  am__fastdepCC_FALSE='#'
3477 +else
3478 +  am__fastdepCC_TRUE='#'
3479 +  am__fastdepCC_FALSE=
3480 +fi
3481 +
3482 +
3483 +
3484 +ac_ext=cc
3485 +ac_cpp='$CXXCPP $CPPFLAGS'
3486 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3489 +if test -n "$ac_tool_prefix"; then
3490 +  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3491 +  do
3492 +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3493 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3494 +echo "$as_me:$LINENO: checking for $ac_word" >&5
3495 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3496 +if test "${ac_cv_prog_CXX+set}" = set; then
3497 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3498 +else
3499 +  if test -n "$CXX"; then
3500 +  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3501 +else
3502 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 +for as_dir in $PATH
3504 +do
3505 +  IFS=$as_save_IFS
3506 +  test -z "$as_dir" && as_dir=.
3507 +  for ac_exec_ext in '' $ac_executable_extensions; do
3508 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3509 +    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3510 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 +    break 2
3512 +  fi
3513 +done
3514 +done
3515 +
3516 +fi
3517 +fi
3518 +CXX=$ac_cv_prog_CXX
3519 +if test -n "$CXX"; then
3520 +  echo "$as_me:$LINENO: result: $CXX" >&5
3521 +echo "${ECHO_T}$CXX" >&6
3522 +else
3523 +  echo "$as_me:$LINENO: result: no" >&5
3524 +echo "${ECHO_T}no" >&6
3525 +fi
3526 +
3527 +    test -n "$CXX" && break
3528 +  done
3529 +fi
3530 +if test -z "$CXX"; then
3531 +  ac_ct_CXX=$CXX
3532 +  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3533 +do
3534 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
3535 +set dummy $ac_prog; ac_word=$2
3536 +echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3539 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3540 +else
3541 +  if test -n "$ac_ct_CXX"; then
3542 +  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3543 +else
3544 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 +for as_dir in $PATH
3546 +do
3547 +  IFS=$as_save_IFS
3548 +  test -z "$as_dir" && as_dir=.
3549 +  for ac_exec_ext in '' $ac_executable_extensions; do
3550 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 +    ac_cv_prog_ac_ct_CXX="$ac_prog"
3552 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 +    break 2
3554 +  fi
3555 +done
3556 +done
3557 +
3558 +fi
3559 +fi
3560 +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3561 +if test -n "$ac_ct_CXX"; then
3562 +  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3563 +echo "${ECHO_T}$ac_ct_CXX" >&6
3564 +else
3565 +  echo "$as_me:$LINENO: result: no" >&5
3566 +echo "${ECHO_T}no" >&6
3567 +fi
3568 +
3569 +  test -n "$ac_ct_CXX" && break
3570 +done
3571 +test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3572 +
3573 +  CXX=$ac_ct_CXX
3574 +fi
3575 +
3576 +
3577 +# Provide some information about the compiler.
3578 +echo "$as_me:$LINENO:" \
3579 +     "checking for C++ compiler version" >&5
3580 +ac_compiler=`set X $ac_compile; echo $2`
3581 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3582 +  (eval $ac_compiler --version </dev/null >&5) 2>&5
3583 +  ac_status=$?
3584 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 +  (exit $ac_status); }
3586 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3587 +  (eval $ac_compiler -v </dev/null >&5) 2>&5
3588 +  ac_status=$?
3589 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 +  (exit $ac_status); }
3591 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3592 +  (eval $ac_compiler -V </dev/null >&5) 2>&5
3593 +  ac_status=$?
3594 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 +  (exit $ac_status); }
3596 +
3597 +echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3598 +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3599 +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3600 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3601 +else
3602 +  cat >conftest.$ac_ext <<_ACEOF
3603 +#line $LINENO "configure"
3604 +/* confdefs.h.  */
3605 +_ACEOF
3606 +cat confdefs.h >>conftest.$ac_ext
3607 +cat >>conftest.$ac_ext <<_ACEOF
3608 +/* end confdefs.h.  */
3609 +
3610 +int
3611 +main ()
3612 +{
3613 +#ifndef __GNUC__
3614 +       choke me
3615 +#endif
3616 +
3617 +  ;
3618 +  return 0;
3619 +}
3620 +_ACEOF
3621 +rm -f conftest.$ac_objext
3622 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3623 +  (eval $ac_compile) 2>&5
3624 +  ac_status=$?
3625 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 +  (exit $ac_status); } &&
3627 +         { ac_try='test -s conftest.$ac_objext'
3628 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629 +  (eval $ac_try) 2>&5
3630 +  ac_status=$?
3631 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 +  (exit $ac_status); }; }; then
3633 +  ac_compiler_gnu=yes
3634 +else
3635 +  echo "$as_me: failed program was:" >&5
3636 +sed 's/^/| /' conftest.$ac_ext >&5
3637 +
3638 +ac_compiler_gnu=no
3639 +fi
3640 +rm -f conftest.$ac_objext conftest.$ac_ext
3641 +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3642 +
3643 +fi
3644 +echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3645 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3646 +GXX=`test $ac_compiler_gnu = yes && echo yes`
3647 +ac_test_CXXFLAGS=${CXXFLAGS+set}
3648 +ac_save_CXXFLAGS=$CXXFLAGS
3649 +CXXFLAGS="-g"
3650 +echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3651 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3652 +if test "${ac_cv_prog_cxx_g+set}" = set; then
3653 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3654 +else
3655 +  cat >conftest.$ac_ext <<_ACEOF
3656 +#line $LINENO "configure"
3657 +/* confdefs.h.  */
3658 +_ACEOF
3659 +cat confdefs.h >>conftest.$ac_ext
3660 +cat >>conftest.$ac_ext <<_ACEOF
3661 +/* end confdefs.h.  */
3662 +
3663 +int
3664 +main ()
3665 +{
3666 +
3667 +  ;
3668 +  return 0;
3669 +}
3670 +_ACEOF
3671 +rm -f conftest.$ac_objext
3672 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3673 +  (eval $ac_compile) 2>&5
3674 +  ac_status=$?
3675 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 +  (exit $ac_status); } &&
3677 +         { ac_try='test -s conftest.$ac_objext'
3678 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 +  (eval $ac_try) 2>&5
3680 +  ac_status=$?
3681 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 +  (exit $ac_status); }; }; then
3683 +  ac_cv_prog_cxx_g=yes
3684 +else
3685 +  echo "$as_me: failed program was:" >&5
3686 +sed 's/^/| /' conftest.$ac_ext >&5
3687 +
3688 +ac_cv_prog_cxx_g=no
3689 +fi
3690 +rm -f conftest.$ac_objext conftest.$ac_ext
3691 +fi
3692 +echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3693 +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3694 +if test "$ac_test_CXXFLAGS" = set; then
3695 +  CXXFLAGS=$ac_save_CXXFLAGS
3696 +elif test $ac_cv_prog_cxx_g = yes; then
3697 +  if test "$GXX" = yes; then
3698 +    CXXFLAGS="-g -O2"
3699 +  else
3700 +    CXXFLAGS="-g"
3701 +  fi
3702 +else
3703 +  if test "$GXX" = yes; then
3704 +    CXXFLAGS="-O2"
3705 +  else
3706 +    CXXFLAGS=
3707 +  fi
3708 +fi
3709 +for ac_declaration in \
3710 +   ''\
3711 +   '#include <stdlib.h>' \
3712 +   'extern "C" void std::exit (int) throw (); using std::exit;' \
3713 +   'extern "C" void std::exit (int); using std::exit;' \
3714 +   'extern "C" void exit (int) throw ();' \
3715 +   'extern "C" void exit (int);' \
3716 +   'void exit (int);'
3717 +do
3718 +  cat >conftest.$ac_ext <<_ACEOF
3719 +#line $LINENO "configure"
3720 +/* confdefs.h.  */
3721 +_ACEOF
3722 +cat confdefs.h >>conftest.$ac_ext
3723 +cat >>conftest.$ac_ext <<_ACEOF
3724 +/* end confdefs.h.  */
3725 +#include <stdlib.h>
3726 +$ac_declaration
3727 +int
3728 +main ()
3729 +{
3730 +exit (42);
3731 +  ;
3732 +  return 0;
3733 +}
3734 +_ACEOF
3735 +rm -f conftest.$ac_objext
3736 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737 +  (eval $ac_compile) 2>&5
3738 +  ac_status=$?
3739 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 +  (exit $ac_status); } &&
3741 +         { ac_try='test -s conftest.$ac_objext'
3742 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743 +  (eval $ac_try) 2>&5
3744 +  ac_status=$?
3745 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 +  (exit $ac_status); }; }; then
3747 +  :
3748 +else
3749 +  echo "$as_me: failed program was:" >&5
3750 +sed 's/^/| /' conftest.$ac_ext >&5
3751 +
3752 +continue
3753 +fi
3754 +rm -f conftest.$ac_objext conftest.$ac_ext
3755 +  cat >conftest.$ac_ext <<_ACEOF
3756 +#line $LINENO "configure"
3757 +/* confdefs.h.  */
3758 +_ACEOF
3759 +cat confdefs.h >>conftest.$ac_ext
3760 +cat >>conftest.$ac_ext <<_ACEOF
3761 +/* end confdefs.h.  */
3762 +$ac_declaration
3763 +int
3764 +main ()
3765 +{
3766 +exit (42);
3767 +  ;
3768 +  return 0;
3769 +}
3770 +_ACEOF
3771 +rm -f conftest.$ac_objext
3772 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3773 +  (eval $ac_compile) 2>&5
3774 +  ac_status=$?
3775 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 +  (exit $ac_status); } &&
3777 +         { ac_try='test -s conftest.$ac_objext'
3778 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 +  (eval $ac_try) 2>&5
3780 +  ac_status=$?
3781 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 +  (exit $ac_status); }; }; then
3783 +  break
3784 +else
3785 +  echo "$as_me: failed program was:" >&5
3786 +sed 's/^/| /' conftest.$ac_ext >&5
3787 +
3788 +fi
3789 +rm -f conftest.$ac_objext conftest.$ac_ext
3790 +done
3791 +rm -f conftest*
3792 +if test -n "$ac_declaration"; then
3793 +  echo '#ifdef __cplusplus' >>confdefs.h
3794 +  echo $ac_declaration      >>confdefs.h
3795 +  echo '#endif'             >>confdefs.h
3796 +fi
3797 +
3798 +ac_ext=c
3799 +ac_cpp='$CPP $CPPFLAGS'
3800 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803 +
3804 +depcc="$CXX"  am_compiler_list=
3805 +
3806 +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3807 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3808 +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3809 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3810 +else
3811 +  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3812 +  # We make a subdir and do the tests there.  Otherwise we can end up
3813 +  # making bogus files that we don't know about and never remove.  For
3814 +  # instance it was reported that on HP-UX the gcc test will end up
3815 +  # making a dummy file named `D' -- because `-MD' means `put the output
3816 +  # in D'.
3817 +  mkdir conftest.dir
3818 +  # Copy depcomp to subdir because otherwise we won't find it if we're
3819 +  # using a relative directory.
3820 +  cp "$am_depcomp" conftest.dir
3821 +  cd conftest.dir
3822 +  # We will build objects and dependencies in a subdirectory because
3823 +  # it helps to detect inapplicable dependency modes.  For instance
3824 +  # both Tru64's cc and ICC support -MD to output dependencies as a
3825 +  # side effect of compilation, but ICC will put the dependencies in
3826 +  # the current directory while Tru64 will put them in the object
3827 +  # directory.
3828 +  mkdir sub
3829 +
3830 +  am_cv_CXX_dependencies_compiler_type=none
3831 +  if test "$am_compiler_list" = ""; then
3832 +     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3833 +  fi
3834 +  for depmode in $am_compiler_list; do
3835 +    # Setup a source with many dependencies, because some compilers
3836 +    # like to wrap large dependency lists on column 80 (with \), and
3837 +    # we should not choose a depcomp mode which is confused by this.
3838 +    #
3839 +    # We need to recreate these files for each test, as the compiler may
3840 +    # overwrite some of them when testing with obscure command lines.
3841 +    # This happens at least with the AIX C compiler.
3842 +    : > sub/conftest.c
3843 +    for i in 1 2 3 4 5 6; do
3844 +      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3845 +      : > sub/conftst$i.h
3846 +    done
3847 +    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3848 +
3849 +    case $depmode in
3850 +    nosideeffect)
3851 +      # after this tag, mechanisms are not by side-effect, so they'll
3852 +      # only be used when explicitly requested
3853 +      if test "x$enable_dependency_tracking" = xyes; then
3854 +       continue
3855 +      else
3856 +       break
3857 +      fi
3858 +      ;;
3859 +    none) break ;;
3860 +    esac
3861 +    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3862 +    # mode.  It turns out that the SunPro C++ compiler does not properly
3863 +    # handle `-M -o', and we need to detect this.
3864 +    if depmode=$depmode \
3865 +       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3866 +       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3867 +       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3868 +         >/dev/null 2>conftest.err &&
3869 +       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3870 +       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3871 +       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3872 +      # icc doesn't choke on unknown options, it will just issue warnings
3873 +      # (even with -Werror).  So we grep stderr for any message
3874 +      # that says an option was ignored.
3875 +      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3876 +        am_cv_CXX_dependencies_compiler_type=$depmode
3877 +        break
3878 +      fi
3879 +    fi
3880 +  done
3881 +
3882 +  cd ..
3883 +  rm -rf conftest.dir
3884 +else
3885 +  am_cv_CXX_dependencies_compiler_type=none
3886 +fi
3887 +
3888 +fi
3889 +echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3890 +echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3891 +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3892 +
3893 +
3894 +
3895 +if
3896 +  test "x$enable_dependency_tracking" != xno \
3897 +  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3898 +  am__fastdepCXX_TRUE=
3899 +  am__fastdepCXX_FALSE='#'
3900 +else
3901 +  am__fastdepCXX_TRUE='#'
3902 +  am__fastdepCXX_FALSE=
3903 +fi
3904  
3905  
3906 -#AC_PROG_CXX
3907  #AC_PROG_AWK
3908  #AM_PROG_LEX
3909  #AC_PROG_YACC
3910  
3911  #AC_CHECK_LIB(fl,main,AC_DEFINE(JS) LIBS="$LIBS -lfl",AC_MSG_WARN(You don't have libfl; you won't be able to run javascript))
3912  
3913 -echo $ac_n "checking for EMX""... $ac_c" 1>&6
3914 -echo "configure:1046: checking for EMX" >&5
3915 -if eval "test \"`echo '$''{'ac_cv_have_emx'+set}'`\" = set"; then
3916 -  echo $ac_n "(cached) $ac_c" 1>&6
3917 +echo "$as_me:$LINENO: checking for EMX" >&5
3918 +echo $ECHO_N "checking for EMX... $ECHO_C" >&6
3919 +if test "${ac_cv_have_emx+set}" = set; then
3920 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3921  else
3922 -  cat > conftest.$ac_ext <<EOF
3923 -#line 1051 "configure"
3924 -#include "confdefs.h"
3925  
3926 -int main() {
3927 +cat >conftest.$ac_ext <<_ACEOF
3928 +#line $LINENO "configure"
3929 +/* confdefs.h.  */
3930 +_ACEOF
3931 +cat confdefs.h >>conftest.$ac_ext
3932 +cat >>conftest.$ac_ext <<_ACEOF
3933 +/* end confdefs.h.  */
3934 +
3935 +int
3936 +main ()
3937 +{
3938  #ifndef __EMX__
3939         kill me!
3940 -       #endif 
3941 -; return 0; }
3942 -EOF
3943 -if { (eval echo configure:1060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3944 -  rm -rf conftest*
3945 +       #endif
3946 +  ;
3947 +  return 0;
3948 +}
3949 +_ACEOF
3950 +rm -f conftest.$ac_objext
3951 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952 +  (eval $ac_compile) 2>&5
3953 +  ac_status=$?
3954 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 +  (exit $ac_status); } &&
3956 +         { ac_try='test -s conftest.$ac_objext'
3957 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958 +  (eval $ac_try) 2>&5
3959 +  ac_status=$?
3960 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 +  (exit $ac_status); }; }; then
3962    ac_cv_have_emx=yes
3963  else
3964 -  echo "configure: failed program was:" >&5
3965 -  cat conftest.$ac_ext >&5
3966 -  rm -rf conftest*
3967 -  ac_cv_have_emx=no
3968 -fi
3969 -rm -f conftest*
3970 +  echo "$as_me: failed program was:" >&5
3971 +sed 's/^/| /' conftest.$ac_ext >&5
3972  
3973 +ac_cv_have_emx=no
3974  fi
3975 +rm -f conftest.$ac_objext conftest.$ac_ext
3976  
3977 -echo "$ac_t""$ac_cv_have_emx" 1>&6
3978 +fi
3979 +echo "$as_me:$LINENO: result: $ac_cv_have_emx" >&5
3980 +echo "${ECHO_T}$ac_cv_have_emx" >&6
3981  test "$ac_cv_have_emx" = yes && LDFLAGS=`echo "$LDFLAGS" | sed "s/-Zexe//g" | sed "s/-Zbin-files//g"`
3982  
3983 -echo $ac_n "checking for typeof""... $ac_c" 1>&6
3984 -echo "configure:1077: checking for typeof" >&5
3985 -if eval "test \"`echo '$''{'ac_cv_have_typeof'+set}'`\" = set"; then
3986 -  echo $ac_n "(cached) $ac_c" 1>&6
3987 +echo "$as_me:$LINENO: checking for typeof" >&5
3988 +echo $ECHO_N "checking for typeof... $ECHO_C" >&6
3989 +if test "${ac_cv_have_typeof+set}" = set; then
3990 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3991  else
3992 -  cat > conftest.$ac_ext <<EOF
3993 -#line 1082 "configure"
3994 -#include "confdefs.h"
3995 +  cat >conftest.$ac_ext <<_ACEOF
3996 +#line $LINENO "configure"
3997 +/* confdefs.h.  */
3998 +_ACEOF
3999 +cat confdefs.h >>conftest.$ac_ext
4000 +cat >>conftest.$ac_ext <<_ACEOF
4001 +/* end confdefs.h.  */
4002  
4003 -int main() {
4004 +int
4005 +main ()
4006 +{
4007  int a;
4008         typeof(a) b;
4009 -; return 0; }
4010 -EOF
4011 -if { (eval echo configure:1090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4012 -  rm -rf conftest*
4013 +  ;
4014 +  return 0;
4015 +}
4016 +_ACEOF
4017 +rm -f conftest.$ac_objext
4018 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 +  (eval $ac_compile) 2>&5
4020 +  ac_status=$?
4021 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 +  (exit $ac_status); } &&
4023 +         { ac_try='test -s conftest.$ac_objext'
4024 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025 +  (eval $ac_try) 2>&5
4026 +  ac_status=$?
4027 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 +  (exit $ac_status); }; }; then
4029    ac_cv_have_typeof=yes
4030  else
4031 -  echo "configure: failed program was:" >&5
4032 -  cat conftest.$ac_ext >&5
4033 -  rm -rf conftest*
4034 -  ac_cv_have_typeof=no
4035 -fi
4036 -rm -f conftest*
4037 -       
4038 +  echo "$as_me: failed program was:" >&5
4039 +sed 's/^/| /' conftest.$ac_ext >&5
4040 +
4041 +ac_cv_have_typeof=no
4042  fi
4043 +rm -f conftest.$ac_objext conftest.$ac_ext
4044  
4045 -echo "$ac_t""$ac_cv_have_typeof" 1>&6
4046 -test "$ac_cv_have_typeof" = yes && cat >> confdefs.h <<\EOF
4047 +fi
4048 +echo "$as_me:$LINENO: result: $ac_cv_have_typeof" >&5
4049 +echo "${ECHO_T}$ac_cv_have_typeof" >&6
4050 +test "$ac_cv_have_typeof" = yes && cat >>confdefs.h <<\_ACEOF
4051  #define HAVE_TYPEOF 1
4052 -EOF
4053 +_ACEOF
4054  
4055  
4056 -echo $ac_n "checking for long long""... $ac_c" 1>&6
4057 -echo "configure:1110: checking for long long" >&5
4058 -if eval "test \"`echo '$''{'ac_cv_have_long_long'+set}'`\" = set"; then
4059 -  echo $ac_n "(cached) $ac_c" 1>&6
4060 +echo "$as_me:$LINENO: checking for long long" >&5
4061 +echo $ECHO_N "checking for long long... $ECHO_C" >&6
4062 +if test "${ac_cv_have_long_long+set}" = set; then
4063 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4064  else
4065 -  cat > conftest.$ac_ext <<EOF
4066 -#line 1115 "configure"
4067 -#include "confdefs.h"
4068 +  cat >conftest.$ac_ext <<_ACEOF
4069 +#line $LINENO "configure"
4070 +/* confdefs.h.  */
4071 +_ACEOF
4072 +cat confdefs.h >>conftest.$ac_ext
4073 +cat >>conftest.$ac_ext <<_ACEOF
4074 +/* end confdefs.h.  */
4075  
4076 -int main() {
4077 -unsigned long long a; 
4078 -; return 0; }
4079 -EOF
4080 -if { (eval echo configure:1122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4081 -  rm -rf conftest*
4082 +int
4083 +main ()
4084 +{
4085 +unsigned long long a;
4086 +  ;
4087 +  return 0;
4088 +}
4089 +_ACEOF
4090 +rm -f conftest.$ac_objext
4091 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4092 +  (eval $ac_compile) 2>&5
4093 +  ac_status=$?
4094 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 +  (exit $ac_status); } &&
4096 +         { ac_try='test -s conftest.$ac_objext'
4097 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 +  (eval $ac_try) 2>&5
4099 +  ac_status=$?
4100 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 +  (exit $ac_status); }; }; then
4102    ac_cv_have_long_long=yes
4103  else
4104 -  echo "configure: failed program was:" >&5
4105 -  cat conftest.$ac_ext >&5
4106 -  rm -rf conftest*
4107 -  ac_cv_have_long_long=no
4108 -fi
4109 -rm -f conftest*
4110 +  echo "$as_me: failed program was:" >&5
4111 +sed 's/^/| /' conftest.$ac_ext >&5
4112  
4113 +ac_cv_have_long_long=no
4114  fi
4115 +rm -f conftest.$ac_objext conftest.$ac_ext
4116  
4117 -echo "$ac_t""$ac_cv_have_long_long" 1>&6
4118 -test "$ac_cv_have_long_long" = yes && cat >> confdefs.h <<\EOF
4119 +fi
4120 +echo "$as_me:$LINENO: result: $ac_cv_have_long_long" >&5
4121 +echo "${ECHO_T}$ac_cv_have_long_long" >&6
4122 +test "$ac_cv_have_long_long" = yes && cat >>confdefs.h <<\_ACEOF
4123  #define HAVE_LONG_LONG 1
4124 -EOF
4125 +_ACEOF
4126 +
4127 +
4128 +
4129 +
4130 +
4131  
4132  
4133  ac_header_dirent=no
4134 -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4135 -do
4136 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4137 -echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4138 -echo "configure:1146: checking for $ac_hdr that defines DIR" >&5
4139 -if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4140 -  echo $ac_n "(cached) $ac_c" 1>&6
4141 +for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4142 +  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4143 +echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4144 +echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4145 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
4146 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4147  else
4148 -  cat > conftest.$ac_ext <<EOF
4149 -#line 1151 "configure"
4150 -#include "confdefs.h"
4151 +  cat >conftest.$ac_ext <<_ACEOF
4152 +#line $LINENO "configure"
4153 +/* confdefs.h.  */
4154 +_ACEOF
4155 +cat confdefs.h >>conftest.$ac_ext
4156 +cat >>conftest.$ac_ext <<_ACEOF
4157 +/* end confdefs.h.  */
4158  #include <sys/types.h>
4159  #include <$ac_hdr>
4160 -int main() {
4161 -DIR *dirp = 0;
4162 -; return 0; }
4163 -EOF
4164 -if { (eval echo configure:1159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4165 -  rm -rf conftest*
4166 -  eval "ac_cv_header_dirent_$ac_safe=yes"
4167 +
4168 +int
4169 +main ()
4170 +{
4171 +if ((DIR *) 0)
4172 +return 0;
4173 +  ;
4174 +  return 0;
4175 +}
4176 +_ACEOF
4177 +rm -f conftest.$ac_objext
4178 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4179 +  (eval $ac_compile) 2>&5
4180 +  ac_status=$?
4181 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 +  (exit $ac_status); } &&
4183 +         { ac_try='test -s conftest.$ac_objext'
4184 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 +  (eval $ac_try) 2>&5
4186 +  ac_status=$?
4187 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 +  (exit $ac_status); }; }; then
4189 +  eval "$as_ac_Header=yes"
4190  else
4191 -  echo "configure: failed program was:" >&5
4192 -  cat conftest.$ac_ext >&5
4193 -  rm -rf conftest*
4194 -  eval "ac_cv_header_dirent_$ac_safe=no"
4195 +  echo "$as_me: failed program was:" >&5
4196 +sed 's/^/| /' conftest.$ac_ext >&5
4197 +
4198 +eval "$as_ac_Header=no"
4199  fi
4200 -rm -f conftest*
4201 +rm -f conftest.$ac_objext conftest.$ac_ext
4202  fi
4203 -if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4204 -  echo "$ac_t""yes" 1>&6
4205 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4206 -  cat >> confdefs.h <<EOF
4207 -#define $ac_tr_hdr 1
4208 -EOF
4209 - ac_header_dirent=$ac_hdr; break
4210 -else
4211 -  echo "$ac_t""no" 1>&6
4212 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4213 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4214 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
4215 +  cat >>confdefs.h <<_ACEOF
4216 +#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4217 +_ACEOF
4218 +
4219 +ac_header_dirent=$ac_hdr; break
4220  fi
4221 +
4222  done
4223  # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4224  if test $ac_header_dirent = dirent.h; then
4225 -echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4226 -echo "configure:1184: checking for opendir in -ldir" >&5
4227 -ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4228 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4229 -  echo $ac_n "(cached) $ac_c" 1>&6
4230 +  echo "$as_me:$LINENO: checking for library containing opendir" >&5
4231 +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4232 +if test "${ac_cv_search_opendir+set}" = set; then
4233 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4234  else
4235 -  ac_save_LIBS="$LIBS"
4236 -LIBS="-ldir  $LIBS"
4237 -cat > conftest.$ac_ext <<EOF
4238 -#line 1192 "configure"
4239 -#include "confdefs.h"
4240 +  ac_func_search_save_LIBS=$LIBS
4241 +ac_cv_search_opendir=no
4242 +cat >conftest.$ac_ext <<_ACEOF
4243 +#line $LINENO "configure"
4244 +/* confdefs.h.  */
4245 +_ACEOF
4246 +cat confdefs.h >>conftest.$ac_ext
4247 +cat >>conftest.$ac_ext <<_ACEOF
4248 +/* end confdefs.h.  */
4249 +
4250  /* Override any gcc2 internal prototype to avoid an error.  */
4251 +#ifdef __cplusplus
4252 +extern "C"
4253 +#endif
4254  /* We use char because int might match the return type of a gcc2
4255 -    builtin and then its argument prototype would still apply.  */
4256 -char opendir();
4257 -
4258 -int main() {
4259 -opendir()
4260 -; return 0; }
4261 -EOF
4262 -if { (eval echo configure:1203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4263 -  rm -rf conftest*
4264 -  eval "ac_cv_lib_$ac_lib_var=yes"
4265 +   builtin and then its argument prototype would still apply.  */
4266 +char opendir ();
4267 +int
4268 +main ()
4269 +{
4270 +opendir ();
4271 +  ;
4272 +  return 0;
4273 +}
4274 +_ACEOF
4275 +rm -f conftest.$ac_objext conftest$ac_exeext
4276 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4277 +  (eval $ac_link) 2>&5
4278 +  ac_status=$?
4279 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 +  (exit $ac_status); } &&
4281 +         { ac_try='test -s conftest$ac_exeext'
4282 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 +  (eval $ac_try) 2>&5
4284 +  ac_status=$?
4285 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 +  (exit $ac_status); }; }; then
4287 +  ac_cv_search_opendir="none required"
4288  else
4289 -  echo "configure: failed program was:" >&5
4290 -  cat conftest.$ac_ext >&5
4291 -  rm -rf conftest*
4292 -  eval "ac_cv_lib_$ac_lib_var=no"
4293 -fi
4294 -rm -f conftest*
4295 -LIBS="$ac_save_LIBS"
4296 +  echo "$as_me: failed program was:" >&5
4297 +sed 's/^/| /' conftest.$ac_ext >&5
4298  
4299  fi
4300 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4301 -  echo "$ac_t""yes" 1>&6
4302 -  LIBS="$LIBS -ldir"
4303 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4304 +if test "$ac_cv_search_opendir" = no; then
4305 +  for ac_lib in dir; do
4306 +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4307 +    cat >conftest.$ac_ext <<_ACEOF
4308 +#line $LINENO "configure"
4309 +/* confdefs.h.  */
4310 +_ACEOF
4311 +cat confdefs.h >>conftest.$ac_ext
4312 +cat >>conftest.$ac_ext <<_ACEOF
4313 +/* end confdefs.h.  */
4314 +
4315 +/* Override any gcc2 internal prototype to avoid an error.  */
4316 +#ifdef __cplusplus
4317 +extern "C"
4318 +#endif
4319 +/* We use char because int might match the return type of a gcc2
4320 +   builtin and then its argument prototype would still apply.  */
4321 +char opendir ();
4322 +int
4323 +main ()
4324 +{
4325 +opendir ();
4326 +  ;
4327 +  return 0;
4328 +}
4329 +_ACEOF
4330 +rm -f conftest.$ac_objext conftest$ac_exeext
4331 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4332 +  (eval $ac_link) 2>&5
4333 +  ac_status=$?
4334 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 +  (exit $ac_status); } &&
4336 +         { ac_try='test -s conftest$ac_exeext'
4337 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 +  (eval $ac_try) 2>&5
4339 +  ac_status=$?
4340 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 +  (exit $ac_status); }; }; then
4342 +  ac_cv_search_opendir="-l$ac_lib"
4343 +break
4344  else
4345 -  echo "$ac_t""no" 1>&6
4346 +  echo "$as_me: failed program was:" >&5
4347 +sed 's/^/| /' conftest.$ac_ext >&5
4348 +
4349 +fi
4350 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4351 +  done
4352 +fi
4353 +LIBS=$ac_func_search_save_LIBS
4354 +fi
4355 +echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4356 +echo "${ECHO_T}$ac_cv_search_opendir" >&6
4357 +if test "$ac_cv_search_opendir" != no; then
4358 +  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4359 +
4360  fi
4361  
4362  else
4363 -echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4364 -echo "configure:1225: checking for opendir in -lx" >&5
4365 -ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4366 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4367 -  echo $ac_n "(cached) $ac_c" 1>&6
4368 +  echo "$as_me:$LINENO: checking for library containing opendir" >&5
4369 +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4370 +if test "${ac_cv_search_opendir+set}" = set; then
4371 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4372  else
4373 -  ac_save_LIBS="$LIBS"
4374 -LIBS="-lx  $LIBS"
4375 -cat > conftest.$ac_ext <<EOF
4376 -#line 1233 "configure"
4377 -#include "confdefs.h"
4378 +  ac_func_search_save_LIBS=$LIBS
4379 +ac_cv_search_opendir=no
4380 +cat >conftest.$ac_ext <<_ACEOF
4381 +#line $LINENO "configure"
4382 +/* confdefs.h.  */
4383 +_ACEOF
4384 +cat confdefs.h >>conftest.$ac_ext
4385 +cat >>conftest.$ac_ext <<_ACEOF
4386 +/* end confdefs.h.  */
4387 +
4388  /* Override any gcc2 internal prototype to avoid an error.  */
4389 +#ifdef __cplusplus
4390 +extern "C"
4391 +#endif
4392  /* We use char because int might match the return type of a gcc2
4393 -    builtin and then its argument prototype would still apply.  */
4394 -char opendir();
4395 -
4396 -int main() {
4397 -opendir()
4398 -; return 0; }
4399 -EOF
4400 -if { (eval echo configure:1244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4401 -  rm -rf conftest*
4402 -  eval "ac_cv_lib_$ac_lib_var=yes"
4403 +   builtin and then its argument prototype would still apply.  */
4404 +char opendir ();
4405 +int
4406 +main ()
4407 +{
4408 +opendir ();
4409 +  ;
4410 +  return 0;
4411 +}
4412 +_ACEOF
4413 +rm -f conftest.$ac_objext conftest$ac_exeext
4414 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4415 +  (eval $ac_link) 2>&5
4416 +  ac_status=$?
4417 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 +  (exit $ac_status); } &&
4419 +         { ac_try='test -s conftest$ac_exeext'
4420 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421 +  (eval $ac_try) 2>&5
4422 +  ac_status=$?
4423 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 +  (exit $ac_status); }; }; then
4425 +  ac_cv_search_opendir="none required"
4426  else
4427 -  echo "configure: failed program was:" >&5
4428 -  cat conftest.$ac_ext >&5
4429 -  rm -rf conftest*
4430 -  eval "ac_cv_lib_$ac_lib_var=no"
4431 -fi
4432 -rm -f conftest*
4433 -LIBS="$ac_save_LIBS"
4434 +  echo "$as_me: failed program was:" >&5
4435 +sed 's/^/| /' conftest.$ac_ext >&5
4436  
4437  fi
4438 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4439 -  echo "$ac_t""yes" 1>&6
4440 -  LIBS="$LIBS -lx"
4441 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4442 +if test "$ac_cv_search_opendir" = no; then
4443 +  for ac_lib in x; do
4444 +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4445 +    cat >conftest.$ac_ext <<_ACEOF
4446 +#line $LINENO "configure"
4447 +/* confdefs.h.  */
4448 +_ACEOF
4449 +cat confdefs.h >>conftest.$ac_ext
4450 +cat >>conftest.$ac_ext <<_ACEOF
4451 +/* end confdefs.h.  */
4452 +
4453 +/* Override any gcc2 internal prototype to avoid an error.  */
4454 +#ifdef __cplusplus
4455 +extern "C"
4456 +#endif
4457 +/* We use char because int might match the return type of a gcc2
4458 +   builtin and then its argument prototype would still apply.  */
4459 +char opendir ();
4460 +int
4461 +main ()
4462 +{
4463 +opendir ();
4464 +  ;
4465 +  return 0;
4466 +}
4467 +_ACEOF
4468 +rm -f conftest.$ac_objext conftest$ac_exeext
4469 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470 +  (eval $ac_link) 2>&5
4471 +  ac_status=$?
4472 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 +  (exit $ac_status); } &&
4474 +         { ac_try='test -s conftest$ac_exeext'
4475 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 +  (eval $ac_try) 2>&5
4477 +  ac_status=$?
4478 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 +  (exit $ac_status); }; }; then
4480 +  ac_cv_search_opendir="-l$ac_lib"
4481 +break
4482  else
4483 -  echo "$ac_t""no" 1>&6
4484 +  echo "$as_me: failed program was:" >&5
4485 +sed 's/^/| /' conftest.$ac_ext >&5
4486 +
4487 +fi
4488 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4489 +  done
4490  fi
4491 +LIBS=$ac_func_search_save_LIBS
4492 +fi
4493 +echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4494 +echo "${ECHO_T}$ac_cv_search_opendir" >&6
4495 +if test "$ac_cv_search_opendir" != no; then
4496 +  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4497  
4498  fi
4499  
4500 -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
4501 -echo "configure:1267: checking how to run the C preprocessor" >&5
4502 +fi
4503 +
4504 +ac_ext=c
4505 +ac_cpp='$CPP $CPPFLAGS'
4506 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509 +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4510 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4511  # On Suns, sometimes $CPP names a directory.
4512  if test -n "$CPP" && test -d "$CPP"; then
4513    CPP=
4514  fi
4515  if test -z "$CPP"; then
4516 -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
4517 -  echo $ac_n "(cached) $ac_c" 1>&6
4518 +  if test "${ac_cv_prog_CPP+set}" = set; then
4519 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4520  else
4521 -    # This must be in double quotes, not single quotes, because CPP may get
4522 -  # substituted into the Makefile and "${CC-cc}" will confuse make.
4523 -  CPP="${CC-cc} -E"
4524 +      # Double quotes because CPP needs to be expanded
4525 +    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4526 +    do
4527 +      ac_preproc_ok=false
4528 +for ac_c_preproc_warn_flag in '' yes
4529 +do
4530 +  # Use a header file that comes with gcc, so configuring glibc
4531 +  # with a fresh cross-compiler works.
4532 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4533 +  # <limits.h> exists even on freestanding compilers.
4534    # On the NeXT, cc -E runs the code through the compiler's parser,
4535 -  # not just through cpp.
4536 -  cat > conftest.$ac_ext <<EOF
4537 -#line 1282 "configure"
4538 -#include "confdefs.h"
4539 -#include <assert.h>
4540 -Syntax Error
4541 -EOF
4542 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4543 -{ (eval echo configure:1288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4544 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4545 -if test -z "$ac_err"; then
4546 -  :
4547 +  # not just through cpp. "Syntax error" is here to catch this case.
4548 +  cat >conftest.$ac_ext <<_ACEOF
4549 +#line $LINENO "configure"
4550 +/* confdefs.h.  */
4551 +_ACEOF
4552 +cat confdefs.h >>conftest.$ac_ext
4553 +cat >>conftest.$ac_ext <<_ACEOF
4554 +/* end confdefs.h.  */
4555 +#ifdef __STDC__
4556 +# include <limits.h>
4557 +#else
4558 +# include <assert.h>
4559 +#endif
4560 +                     Syntax error
4561 +_ACEOF
4562 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4563 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4564 +  ac_status=$?
4565 +  grep -v '^ *+' conftest.er1 >conftest.err
4566 +  rm -f conftest.er1
4567 +  cat conftest.err >&5
4568 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 +  (exit $ac_status); } >/dev/null; then
4570 +  if test -s conftest.err; then
4571 +    ac_cpp_err=$ac_c_preproc_warn_flag
4572 +  else
4573 +    ac_cpp_err=
4574 +  fi
4575  else
4576 -  echo "$ac_err" >&5
4577 -  echo "configure: failed program was:" >&5
4578 -  cat conftest.$ac_ext >&5
4579 -  rm -rf conftest*
4580 -  CPP="${CC-cc} -E -traditional-cpp"
4581 -  cat > conftest.$ac_ext <<EOF
4582 -#line 1299 "configure"
4583 -#include "confdefs.h"
4584 -#include <assert.h>
4585 -Syntax Error
4586 -EOF
4587 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4588 -{ (eval echo configure:1305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4589 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4590 -if test -z "$ac_err"; then
4591 +  ac_cpp_err=yes
4592 +fi
4593 +if test -z "$ac_cpp_err"; then
4594    :
4595  else
4596 -  echo "$ac_err" >&5
4597 -  echo "configure: failed program was:" >&5
4598 -  cat conftest.$ac_ext >&5
4599 -  rm -rf conftest*
4600 -  CPP="${CC-cc} -nologo -E"
4601 -  cat > conftest.$ac_ext <<EOF
4602 -#line 1316 "configure"
4603 -#include "confdefs.h"
4604 -#include <assert.h>
4605 -Syntax Error
4606 -EOF
4607 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4608 -{ (eval echo configure:1322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4609 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4610 -if test -z "$ac_err"; then
4611 +  echo "$as_me: failed program was:" >&5
4612 +sed 's/^/| /' conftest.$ac_ext >&5
4613 +
4614 +  # Broken: fails on valid input.
4615 +continue
4616 +fi
4617 +rm -f conftest.err conftest.$ac_ext
4618 +
4619 +  # OK, works on sane cases.  Now check whether non-existent headers
4620 +  # can be detected and how.
4621 +  cat >conftest.$ac_ext <<_ACEOF
4622 +#line $LINENO "configure"
4623 +/* confdefs.h.  */
4624 +_ACEOF
4625 +cat confdefs.h >>conftest.$ac_ext
4626 +cat >>conftest.$ac_ext <<_ACEOF
4627 +/* end confdefs.h.  */
4628 +#include <ac_nonexistent.h>
4629 +_ACEOF
4630 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4631 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4632 +  ac_status=$?
4633 +  grep -v '^ *+' conftest.er1 >conftest.err
4634 +  rm -f conftest.er1
4635 +  cat conftest.err >&5
4636 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 +  (exit $ac_status); } >/dev/null; then
4638 +  if test -s conftest.err; then
4639 +    ac_cpp_err=$ac_c_preproc_warn_flag
4640 +  else
4641 +    ac_cpp_err=
4642 +  fi
4643 +else
4644 +  ac_cpp_err=yes
4645 +fi
4646 +if test -z "$ac_cpp_err"; then
4647 +  # Broken: success on invalid input.
4648 +continue
4649 +else
4650 +  echo "$as_me: failed program was:" >&5
4651 +sed 's/^/| /' conftest.$ac_ext >&5
4652 +
4653 +  # Passes both tests.
4654 +ac_preproc_ok=:
4655 +break
4656 +fi
4657 +rm -f conftest.err conftest.$ac_ext
4658 +
4659 +done
4660 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4661 +rm -f conftest.err conftest.$ac_ext
4662 +if $ac_preproc_ok; then
4663 +  break
4664 +fi
4665 +
4666 +    done
4667 +    ac_cv_prog_CPP=$CPP
4668 +
4669 +fi
4670 +  CPP=$ac_cv_prog_CPP
4671 +else
4672 +  ac_cv_prog_CPP=$CPP
4673 +fi
4674 +echo "$as_me:$LINENO: result: $CPP" >&5
4675 +echo "${ECHO_T}$CPP" >&6
4676 +ac_preproc_ok=false
4677 +for ac_c_preproc_warn_flag in '' yes
4678 +do
4679 +  # Use a header file that comes with gcc, so configuring glibc
4680 +  # with a fresh cross-compiler works.
4681 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4682 +  # <limits.h> exists even on freestanding compilers.
4683 +  # On the NeXT, cc -E runs the code through the compiler's parser,
4684 +  # not just through cpp. "Syntax error" is here to catch this case.
4685 +  cat >conftest.$ac_ext <<_ACEOF
4686 +#line $LINENO "configure"
4687 +/* confdefs.h.  */
4688 +_ACEOF
4689 +cat confdefs.h >>conftest.$ac_ext
4690 +cat >>conftest.$ac_ext <<_ACEOF
4691 +/* end confdefs.h.  */
4692 +#ifdef __STDC__
4693 +# include <limits.h>
4694 +#else
4695 +# include <assert.h>
4696 +#endif
4697 +                     Syntax error
4698 +_ACEOF
4699 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4700 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4701 +  ac_status=$?
4702 +  grep -v '^ *+' conftest.er1 >conftest.err
4703 +  rm -f conftest.er1
4704 +  cat conftest.err >&5
4705 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 +  (exit $ac_status); } >/dev/null; then
4707 +  if test -s conftest.err; then
4708 +    ac_cpp_err=$ac_c_preproc_warn_flag
4709 +  else
4710 +    ac_cpp_err=
4711 +  fi
4712 +else
4713 +  ac_cpp_err=yes
4714 +fi
4715 +if test -z "$ac_cpp_err"; then
4716    :
4717  else
4718 -  echo "$ac_err" >&5
4719 -  echo "configure: failed program was:" >&5
4720 -  cat conftest.$ac_ext >&5
4721 -  rm -rf conftest*
4722 -  CPP=/lib/cpp
4723 +  echo "$as_me: failed program was:" >&5
4724 +sed 's/^/| /' conftest.$ac_ext >&5
4725 +
4726 +  # Broken: fails on valid input.
4727 +continue
4728  fi
4729 -rm -f conftest*
4730 +rm -f conftest.err conftest.$ac_ext
4731 +
4732 +  # OK, works on sane cases.  Now check whether non-existent headers
4733 +  # can be detected and how.
4734 +  cat >conftest.$ac_ext <<_ACEOF
4735 +#line $LINENO "configure"
4736 +/* confdefs.h.  */
4737 +_ACEOF
4738 +cat confdefs.h >>conftest.$ac_ext
4739 +cat >>conftest.$ac_ext <<_ACEOF
4740 +/* end confdefs.h.  */
4741 +#include <ac_nonexistent.h>
4742 +_ACEOF
4743 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4744 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4745 +  ac_status=$?
4746 +  grep -v '^ *+' conftest.er1 >conftest.err
4747 +  rm -f conftest.er1
4748 +  cat conftest.err >&5
4749 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 +  (exit $ac_status); } >/dev/null; then
4751 +  if test -s conftest.err; then
4752 +    ac_cpp_err=$ac_c_preproc_warn_flag
4753 +  else
4754 +    ac_cpp_err=
4755 +  fi
4756 +else
4757 +  ac_cpp_err=yes
4758  fi
4759 -rm -f conftest*
4760 +if test -z "$ac_cpp_err"; then
4761 +  # Broken: success on invalid input.
4762 +continue
4763 +else
4764 +  echo "$as_me: failed program was:" >&5
4765 +sed 's/^/| /' conftest.$ac_ext >&5
4766 +
4767 +  # Passes both tests.
4768 +ac_preproc_ok=:
4769 +break
4770  fi
4771 -rm -f conftest*
4772 -  ac_cv_prog_CPP="$CPP"
4773 +rm -f conftest.err conftest.$ac_ext
4774 +
4775 +done
4776 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4777 +rm -f conftest.err conftest.$ac_ext
4778 +if $ac_preproc_ok; then
4779 +  :
4780 +else
4781 +  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4782 +See \`config.log' for more details." >&5
4783 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4784 +See \`config.log' for more details." >&2;}
4785 +   { (exit 1); exit 1; }; }
4786  fi
4787 -  CPP="$ac_cv_prog_CPP"
4788 +
4789 +ac_ext=c
4790 +ac_cpp='$CPP $CPPFLAGS'
4791 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
4794 +
4795 +
4796 +echo "$as_me:$LINENO: checking for egrep" >&5
4797 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4798 +if test "${ac_cv_prog_egrep+set}" = set; then
4799 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4800  else
4801 -  ac_cv_prog_CPP="$CPP"
4802 +  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4803 +    then ac_cv_prog_egrep='grep -E'
4804 +    else ac_cv_prog_egrep='egrep'
4805 +    fi
4806  fi
4807 -echo "$ac_t""$CPP" 1>&6
4808 +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4809 +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4810 + EGREP=$ac_cv_prog_egrep
4811  
4812 -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4813 -echo "configure:1347: checking for ANSI C header files" >&5
4814 -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4815 -  echo $ac_n "(cached) $ac_c" 1>&6
4816 +
4817 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4818 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4819 +if test "${ac_cv_header_stdc+set}" = set; then
4820 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4821  else
4822 -  cat > conftest.$ac_ext <<EOF
4823 -#line 1352 "configure"
4824 -#include "confdefs.h"
4825 +  cat >conftest.$ac_ext <<_ACEOF
4826 +#line $LINENO "configure"
4827 +/* confdefs.h.  */
4828 +_ACEOF
4829 +cat confdefs.h >>conftest.$ac_ext
4830 +cat >>conftest.$ac_ext <<_ACEOF
4831 +/* end confdefs.h.  */
4832  #include <stdlib.h>
4833  #include <stdarg.h>
4834  #include <string.h>
4835  #include <float.h>
4836 -EOF
4837 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4838 -{ (eval echo configure:1360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4839 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4840 -if test -z "$ac_err"; then
4841 -  rm -rf conftest*
4842 +
4843 +int
4844 +main ()
4845 +{
4846 +
4847 +  ;
4848 +  return 0;
4849 +}
4850 +_ACEOF
4851 +rm -f conftest.$ac_objext
4852 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4853 +  (eval $ac_compile) 2>&5
4854 +  ac_status=$?
4855 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 +  (exit $ac_status); } &&
4857 +         { ac_try='test -s conftest.$ac_objext'
4858 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 +  (eval $ac_try) 2>&5
4860 +  ac_status=$?
4861 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 +  (exit $ac_status); }; }; then
4863    ac_cv_header_stdc=yes
4864  else
4865 -  echo "$ac_err" >&5
4866 -  echo "configure: failed program was:" >&5
4867 -  cat conftest.$ac_ext >&5
4868 -  rm -rf conftest*
4869 -  ac_cv_header_stdc=no
4870 +  echo "$as_me: failed program was:" >&5
4871 +sed 's/^/| /' conftest.$ac_ext >&5
4872 +
4873 +ac_cv_header_stdc=no
4874  fi
4875 -rm -f conftest*
4876 +rm -f conftest.$ac_objext conftest.$ac_ext
4877  
4878  if test $ac_cv_header_stdc = yes; then
4879    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4880 -cat > conftest.$ac_ext <<EOF
4881 -#line 1377 "configure"
4882 -#include "confdefs.h"
4883 +  cat >conftest.$ac_ext <<_ACEOF
4884 +#line $LINENO "configure"
4885 +/* confdefs.h.  */
4886 +_ACEOF
4887 +cat confdefs.h >>conftest.$ac_ext
4888 +cat >>conftest.$ac_ext <<_ACEOF
4889 +/* end confdefs.h.  */
4890  #include <string.h>
4891 -EOF
4892 +
4893 +_ACEOF
4894  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4895 -  egrep "memchr" >/dev/null 2>&1; then
4896 +  $EGREP "memchr" >/dev/null 2>&1; then
4897    :
4898  else
4899 -  rm -rf conftest*
4900    ac_cv_header_stdc=no
4901  fi
4902  rm -f conftest*
4903 @@ -1390,16 +3920,20 @@
4904  
4905  if test $ac_cv_header_stdc = yes; then
4906    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4907 -cat > conftest.$ac_ext <<EOF
4908 -#line 1395 "configure"
4909 -#include "confdefs.h"
4910 +  cat >conftest.$ac_ext <<_ACEOF
4911 +#line $LINENO "configure"
4912 +/* confdefs.h.  */
4913 +_ACEOF
4914 +cat confdefs.h >>conftest.$ac_ext
4915 +cat >>conftest.$ac_ext <<_ACEOF
4916 +/* end confdefs.h.  */
4917  #include <stdlib.h>
4918 -EOF
4919 +
4920 +_ACEOF
4921  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4922 -  egrep "free" >/dev/null 2>&1; then
4923 +  $EGREP "free" >/dev/null 2>&1; then
4924    :
4925  else
4926 -  rm -rf conftest*
4927    ac_cv_header_stdc=no
4928  fi
4929  rm -f conftest*
4930 @@ -1408,901 +3942,2658 @@
4931  
4932  if test $ac_cv_header_stdc = yes; then
4933    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4934 -if test "$cross_compiling" = yes; then
4935 +  if test "$cross_compiling" = yes; then
4936    :
4937  else
4938 -  cat > conftest.$ac_ext <<EOF
4939 -#line 1416 "configure"
4940 -#include "confdefs.h"
4941 +  cat >conftest.$ac_ext <<_ACEOF
4942 +#line $LINENO "configure"
4943 +/* confdefs.h.  */
4944 +_ACEOF
4945 +cat confdefs.h >>conftest.$ac_ext
4946 +cat >>conftest.$ac_ext <<_ACEOF
4947 +/* end confdefs.h.  */
4948  #include <ctype.h>
4949 -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4950 -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4951 -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4952 -int main () { int i; for (i = 0; i < 256; i++)
4953 -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4954 -exit (0); }
4955 +#if ((' ' & 0x0FF) == 0x020)
4956 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4957 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4958 +#else
4959 +# define ISLOWER(c) \
4960 +                   (('a' <= (c) && (c) <= 'i') \
4961 +                     || ('j' <= (c) && (c) <= 'r') \
4962 +                     || ('s' <= (c) && (c) <= 'z'))
4963 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4964 +#endif
4965  
4966 -EOF
4967 -if { (eval echo configure:1427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4968 -then
4969 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4970 +int
4971 +main ()
4972 +{
4973 +  int i;
4974 +  for (i = 0; i < 256; i++)
4975 +    if (XOR (islower (i), ISLOWER (i))
4976 +        || toupper (i) != TOUPPER (i))
4977 +      exit(2);
4978 +  exit (0);
4979 +}
4980 +_ACEOF
4981 +rm -f conftest$ac_exeext
4982 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4983 +  (eval $ac_link) 2>&5
4984 +  ac_status=$?
4985 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4987 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 +  (eval $ac_try) 2>&5
4989 +  ac_status=$?
4990 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 +  (exit $ac_status); }; }; then
4992    :
4993  else
4994 -  echo "configure: failed program was:" >&5
4995 -  cat conftest.$ac_ext >&5
4996 -  rm -fr conftest*
4997 -  ac_cv_header_stdc=no
4998 +  echo "$as_me: program exited with status $ac_status" >&5
4999 +echo "$as_me: failed program was:" >&5
5000 +sed 's/^/| /' conftest.$ac_ext >&5
5001 +
5002 +( exit $ac_status )
5003 +ac_cv_header_stdc=no
5004  fi
5005 -rm -fr conftest*
5006 +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5007  fi
5008 -
5009  fi
5010  fi
5011 -
5012 -echo "$ac_t""$ac_cv_header_stdc" 1>&6
5013 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5014 +echo "${ECHO_T}$ac_cv_header_stdc" >&6
5015  if test $ac_cv_header_stdc = yes; then
5016 -  cat >> confdefs.h <<\EOF
5017 +
5018 +cat >>confdefs.h <<\_ACEOF
5019  #define STDC_HEADERS 1
5020 -EOF
5021 +_ACEOF
5022  
5023  fi
5024  
5025 -echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5026 -echo "configure:1451: checking for sys/wait.h that is POSIX.1 compatible" >&5
5027 -if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5028 -  echo $ac_n "(cached) $ac_c" 1>&6
5029 +echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5030 +echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5031 +if test "${ac_cv_header_sys_wait_h+set}" = set; then
5032 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5033  else
5034 -  cat > conftest.$ac_ext <<EOF
5035 -#line 1456 "configure"
5036 -#include "confdefs.h"
5037 +  cat >conftest.$ac_ext <<_ACEOF
5038 +#line $LINENO "configure"
5039 +/* confdefs.h.  */
5040 +_ACEOF
5041 +cat confdefs.h >>conftest.$ac_ext
5042 +cat >>conftest.$ac_ext <<_ACEOF
5043 +/* end confdefs.h.  */
5044  #include <sys/types.h>
5045  #include <sys/wait.h>
5046  #ifndef WEXITSTATUS
5047 -#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5048 +# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5049  #endif
5050  #ifndef WIFEXITED
5051 -#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5052 +# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5053  #endif
5054 -int main() {
5055 -int s;
5056 -wait (&s);
5057 -s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5058 -; return 0; }
5059 -EOF
5060 -if { (eval echo configure:1472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5061 -  rm -rf conftest*
5062 +
5063 +int
5064 +main ()
5065 +{
5066 +  int s;
5067 +  wait (&s);
5068 +  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5069 +  ;
5070 +  return 0;
5071 +}
5072 +_ACEOF
5073 +rm -f conftest.$ac_objext
5074 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075 +  (eval $ac_compile) 2>&5
5076 +  ac_status=$?
5077 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 +  (exit $ac_status); } &&
5079 +         { ac_try='test -s conftest.$ac_objext'
5080 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 +  (eval $ac_try) 2>&5
5082 +  ac_status=$?
5083 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 +  (exit $ac_status); }; }; then
5085    ac_cv_header_sys_wait_h=yes
5086  else
5087 -  echo "configure: failed program was:" >&5
5088 -  cat conftest.$ac_ext >&5
5089 -  rm -rf conftest*
5090 -  ac_cv_header_sys_wait_h=no
5091 +  echo "$as_me: failed program was:" >&5
5092 +sed 's/^/| /' conftest.$ac_ext >&5
5093 +
5094 +ac_cv_header_sys_wait_h=no
5095  fi
5096 -rm -f conftest*
5097 +rm -f conftest.$ac_objext conftest.$ac_ext
5098  fi
5099 -
5100 -echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5101 +echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5102 +echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5103  if test $ac_cv_header_sys_wait_h = yes; then
5104 -  cat >> confdefs.h <<\EOF
5105 +
5106 +cat >>confdefs.h <<\_ACEOF
5107  #define HAVE_SYS_WAIT_H 1
5108 -EOF
5109 +_ACEOF
5110  
5111  fi
5112  
5113 -for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h time.h unistd.h math.h ieee.h endian.h
5114 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5115 +
5116 +
5117 +
5118 +
5119 +
5120 +
5121 +
5122 +
5123 +
5124 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5125 +                  inttypes.h stdint.h unistd.h
5126  do
5127 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5128 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5129 -echo "configure:1496: checking for $ac_hdr" >&5
5130 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5131 -  echo $ac_n "(cached) $ac_c" 1>&6
5132 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5133 +echo "$as_me:$LINENO: checking for $ac_header" >&5
5134 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5135 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
5136 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5137  else
5138 -  cat > conftest.$ac_ext <<EOF
5139 -#line 1501 "configure"
5140 -#include "confdefs.h"
5141 -#include <$ac_hdr>
5142 -EOF
5143 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5144 -{ (eval echo configure:1506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5145 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5146 -if test -z "$ac_err"; then
5147 -  rm -rf conftest*
5148 -  eval "ac_cv_header_$ac_safe=yes"
5149 +  cat >conftest.$ac_ext <<_ACEOF
5150 +#line $LINENO "configure"
5151 +/* confdefs.h.  */
5152 +_ACEOF
5153 +cat confdefs.h >>conftest.$ac_ext
5154 +cat >>conftest.$ac_ext <<_ACEOF
5155 +/* end confdefs.h.  */
5156 +$ac_includes_default
5157 +
5158 +#include <$ac_header>
5159 +_ACEOF
5160 +rm -f conftest.$ac_objext
5161 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5162 +  (eval $ac_compile) 2>&5
5163 +  ac_status=$?
5164 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 +  (exit $ac_status); } &&
5166 +         { ac_try='test -s conftest.$ac_objext'
5167 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168 +  (eval $ac_try) 2>&5
5169 +  ac_status=$?
5170 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 +  (exit $ac_status); }; }; then
5172 +  eval "$as_ac_Header=yes"
5173  else
5174 -  echo "$ac_err" >&5
5175 -  echo "configure: failed program was:" >&5
5176 -  cat conftest.$ac_ext >&5
5177 -  rm -rf conftest*
5178 -  eval "ac_cv_header_$ac_safe=no"
5179 +  echo "$as_me: failed program was:" >&5
5180 +sed 's/^/| /' conftest.$ac_ext >&5
5181 +
5182 +eval "$as_ac_Header=no"
5183  fi
5184 -rm -f conftest*
5185 +rm -f conftest.$ac_objext conftest.$ac_ext
5186  fi
5187 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5188 -  echo "$ac_t""yes" 1>&6
5189 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5190 -  cat >> confdefs.h <<EOF
5191 -#define $ac_tr_hdr 1
5192 -EOF
5193
5194 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5195 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5196 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
5197 +  cat >>confdefs.h <<_ACEOF
5198 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5199 +_ACEOF
5200 +
5201 +fi
5202 +
5203 +done
5204 +
5205 +
5206 +
5207 +
5208 +
5209 +
5210 +
5211 +
5212 +
5213 +
5214 +
5215 +for ac_header in fcntl.h limits.h sys/ioctl.h sys/time.h time.h unistd.h math.h ieee.h endian.h
5216 +do
5217 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5218 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
5219 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
5220 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5221 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
5222 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5223 +fi
5224 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5225 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5226  else
5227 -  echo "$ac_t""no" 1>&6
5228 +  # Is the header compilable?
5229 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
5230 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5231 +cat >conftest.$ac_ext <<_ACEOF
5232 +#line $LINENO "configure"
5233 +/* confdefs.h.  */
5234 +_ACEOF
5235 +cat confdefs.h >>conftest.$ac_ext
5236 +cat >>conftest.$ac_ext <<_ACEOF
5237 +/* end confdefs.h.  */
5238 +$ac_includes_default
5239 +#include <$ac_header>
5240 +_ACEOF
5241 +rm -f conftest.$ac_objext
5242 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5243 +  (eval $ac_compile) 2>&5
5244 +  ac_status=$?
5245 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 +  (exit $ac_status); } &&
5247 +         { ac_try='test -s conftest.$ac_objext'
5248 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 +  (eval $ac_try) 2>&5
5250 +  ac_status=$?
5251 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 +  (exit $ac_status); }; }; then
5253 +  ac_header_compiler=yes
5254 +else
5255 +  echo "$as_me: failed program was:" >&5
5256 +sed 's/^/| /' conftest.$ac_ext >&5
5257 +
5258 +ac_header_compiler=no
5259 +fi
5260 +rm -f conftest.$ac_objext conftest.$ac_ext
5261 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5262 +echo "${ECHO_T}$ac_header_compiler" >&6
5263 +
5264 +# Is the header present?
5265 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
5266 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5267 +cat >conftest.$ac_ext <<_ACEOF
5268 +#line $LINENO "configure"
5269 +/* confdefs.h.  */
5270 +_ACEOF
5271 +cat confdefs.h >>conftest.$ac_ext
5272 +cat >>conftest.$ac_ext <<_ACEOF
5273 +/* end confdefs.h.  */
5274 +#include <$ac_header>
5275 +_ACEOF
5276 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5277 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5278 +  ac_status=$?
5279 +  grep -v '^ *+' conftest.er1 >conftest.err
5280 +  rm -f conftest.er1
5281 +  cat conftest.err >&5
5282 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 +  (exit $ac_status); } >/dev/null; then
5284 +  if test -s conftest.err; then
5285 +    ac_cpp_err=$ac_c_preproc_warn_flag
5286 +  else
5287 +    ac_cpp_err=
5288 +  fi
5289 +else
5290 +  ac_cpp_err=yes
5291 +fi
5292 +if test -z "$ac_cpp_err"; then
5293 +  ac_header_preproc=yes
5294 +else
5295 +  echo "$as_me: failed program was:" >&5
5296 +sed 's/^/| /' conftest.$ac_ext >&5
5297 +
5298 +  ac_header_preproc=no
5299  fi
5300 +rm -f conftest.err conftest.$ac_ext
5301 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5302 +echo "${ECHO_T}$ac_header_preproc" >&6
5303 +
5304 +# So?  What about this header?
5305 +case $ac_header_compiler:$ac_header_preproc in
5306 +  yes:no )
5307 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5308 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5309 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5310 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5311 +    (
5312 +      cat <<\_ASBOX
5313 +## ------------------------------------ ##
5314 +## Report this to bug-autoconf@gnu.org. ##
5315 +## ------------------------------------ ##
5316 +_ASBOX
5317 +    ) |
5318 +      sed "s/^/$as_me: WARNING:     /" >&2
5319 +    ;;
5320 +  no:yes )
5321 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5322 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5323 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5324 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5325 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5326 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5327 +    (
5328 +      cat <<\_ASBOX
5329 +## ------------------------------------ ##
5330 +## Report this to bug-autoconf@gnu.org. ##
5331 +## ------------------------------------ ##
5332 +_ASBOX
5333 +    ) |
5334 +      sed "s/^/$as_me: WARNING:     /" >&2
5335 +    ;;
5336 +esac
5337 +echo "$as_me:$LINENO: checking for $ac_header" >&5
5338 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5339 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
5340 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5341 +else
5342 +  eval "$as_ac_Header=$ac_header_preproc"
5343 +fi
5344 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5345 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5346 +
5347 +fi
5348 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
5349 +  cat >>confdefs.h <<_ACEOF
5350 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5351 +_ACEOF
5352 +
5353 +fi
5354 +
5355  done
5356  
5357 -for ac_hdr in values.h
5358 +
5359 +for ac_header in values.h
5360  do
5361 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5362 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5363 -echo "configure:1536: checking for $ac_hdr" >&5
5364 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5365 -  echo $ac_n "(cached) $ac_c" 1>&6
5366 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5367 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
5368 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
5369 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5370 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
5371 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5372 +fi
5373 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5374 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5375  else
5376 -  cat > conftest.$ac_ext <<EOF
5377 -#line 1541 "configure"
5378 -#include "confdefs.h"
5379 -#include <$ac_hdr>
5380 -EOF
5381 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5382 -{ (eval echo configure:1546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5383 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5384 -if test -z "$ac_err"; then
5385 -  rm -rf conftest*
5386 -  eval "ac_cv_header_$ac_safe=yes"
5387 +  # Is the header compilable?
5388 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
5389 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5390 +cat >conftest.$ac_ext <<_ACEOF
5391 +#line $LINENO "configure"
5392 +/* confdefs.h.  */
5393 +_ACEOF
5394 +cat confdefs.h >>conftest.$ac_ext
5395 +cat >>conftest.$ac_ext <<_ACEOF
5396 +/* end confdefs.h.  */
5397 +$ac_includes_default
5398 +#include <$ac_header>
5399 +_ACEOF
5400 +rm -f conftest.$ac_objext
5401 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5402 +  (eval $ac_compile) 2>&5
5403 +  ac_status=$?
5404 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 +  (exit $ac_status); } &&
5406 +         { ac_try='test -s conftest.$ac_objext'
5407 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 +  (eval $ac_try) 2>&5
5409 +  ac_status=$?
5410 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 +  (exit $ac_status); }; }; then
5412 +  ac_header_compiler=yes
5413  else
5414 -  echo "$ac_err" >&5
5415 -  echo "configure: failed program was:" >&5
5416 -  cat conftest.$ac_ext >&5
5417 -  rm -rf conftest*
5418 -  eval "ac_cv_header_$ac_safe=no"
5419 +  echo "$as_me: failed program was:" >&5
5420 +sed 's/^/| /' conftest.$ac_ext >&5
5421 +
5422 +ac_header_compiler=no
5423  fi
5424 -rm -f conftest*
5425 +rm -f conftest.$ac_objext conftest.$ac_ext
5426 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5427 +echo "${ECHO_T}$ac_header_compiler" >&6
5428 +
5429 +# Is the header present?
5430 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
5431 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5432 +cat >conftest.$ac_ext <<_ACEOF
5433 +#line $LINENO "configure"
5434 +/* confdefs.h.  */
5435 +_ACEOF
5436 +cat confdefs.h >>conftest.$ac_ext
5437 +cat >>conftest.$ac_ext <<_ACEOF
5438 +/* end confdefs.h.  */
5439 +#include <$ac_header>
5440 +_ACEOF
5441 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5442 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5443 +  ac_status=$?
5444 +  grep -v '^ *+' conftest.er1 >conftest.err
5445 +  rm -f conftest.er1
5446 +  cat conftest.err >&5
5447 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 +  (exit $ac_status); } >/dev/null; then
5449 +  if test -s conftest.err; then
5450 +    ac_cpp_err=$ac_c_preproc_warn_flag
5451 +  else
5452 +    ac_cpp_err=
5453 +  fi
5454 +else
5455 +  ac_cpp_err=yes
5456  fi
5457 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5458 -  echo "$ac_t""yes" 1>&6
5459 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5460 -  cat >> confdefs.h <<EOF
5461 -#define $ac_tr_hdr 1
5462 -EOF
5463
5464 +if test -z "$ac_cpp_err"; then
5465 +  ac_header_preproc=yes
5466  else
5467 -  echo "$ac_t""no" 1>&6
5468 +  echo "$as_me: failed program was:" >&5
5469 +sed 's/^/| /' conftest.$ac_ext >&5
5470 +
5471 +  ac_header_preproc=no
5472  fi
5473 +rm -f conftest.err conftest.$ac_ext
5474 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5475 +echo "${ECHO_T}$ac_header_preproc" >&6
5476 +
5477 +# So?  What about this header?
5478 +case $ac_header_compiler:$ac_header_preproc in
5479 +  yes:no )
5480 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5481 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5482 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5483 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5484 +    (
5485 +      cat <<\_ASBOX
5486 +## ------------------------------------ ##
5487 +## Report this to bug-autoconf@gnu.org. ##
5488 +## ------------------------------------ ##
5489 +_ASBOX
5490 +    ) |
5491 +      sed "s/^/$as_me: WARNING:     /" >&2
5492 +    ;;
5493 +  no:yes )
5494 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5495 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5496 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5497 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5498 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5499 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5500 +    (
5501 +      cat <<\_ASBOX
5502 +## ------------------------------------ ##
5503 +## Report this to bug-autoconf@gnu.org. ##
5504 +## ------------------------------------ ##
5505 +_ASBOX
5506 +    ) |
5507 +      sed "s/^/$as_me: WARNING:     /" >&2
5508 +    ;;
5509 +esac
5510 +echo "$as_me:$LINENO: checking for $ac_header" >&5
5511 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5512 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
5513 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5514 +else
5515 +  eval "$as_ac_Header=$ac_header_preproc"
5516 +fi
5517 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5518 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5519 +
5520 +fi
5521 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
5522 +  cat >>confdefs.h <<_ACEOF
5523 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5524 +_ACEOF
5525 +
5526 +fi
5527 +
5528  done
5529  
5530 -for ac_hdr in sigaction.h
5531 +
5532 +for ac_header in sigaction.h
5533  do
5534 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5535 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5536 -echo "configure:1576: checking for $ac_hdr" >&5
5537 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5538 -  echo $ac_n "(cached) $ac_c" 1>&6
5539 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5540 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
5541 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
5542 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5543 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
5544 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5545 +fi
5546 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5547 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5548  else
5549 -  cat > conftest.$ac_ext <<EOF
5550 -#line 1581 "configure"
5551 -#include "confdefs.h"
5552 -#include <$ac_hdr>
5553 -EOF
5554 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5555 -{ (eval echo configure:1586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5556 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5557 -if test -z "$ac_err"; then
5558 -  rm -rf conftest*
5559 -  eval "ac_cv_header_$ac_safe=yes"
5560 +  # Is the header compilable?
5561 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
5562 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5563 +cat >conftest.$ac_ext <<_ACEOF
5564 +#line $LINENO "configure"
5565 +/* confdefs.h.  */
5566 +_ACEOF
5567 +cat confdefs.h >>conftest.$ac_ext
5568 +cat >>conftest.$ac_ext <<_ACEOF
5569 +/* end confdefs.h.  */
5570 +$ac_includes_default
5571 +#include <$ac_header>
5572 +_ACEOF
5573 +rm -f conftest.$ac_objext
5574 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5575 +  (eval $ac_compile) 2>&5
5576 +  ac_status=$?
5577 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 +  (exit $ac_status); } &&
5579 +         { ac_try='test -s conftest.$ac_objext'
5580 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 +  (eval $ac_try) 2>&5
5582 +  ac_status=$?
5583 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 +  (exit $ac_status); }; }; then
5585 +  ac_header_compiler=yes
5586  else
5587 -  echo "$ac_err" >&5
5588 -  echo "configure: failed program was:" >&5
5589 -  cat conftest.$ac_ext >&5
5590 -  rm -rf conftest*
5591 -  eval "ac_cv_header_$ac_safe=no"
5592 +  echo "$as_me: failed program was:" >&5
5593 +sed 's/^/| /' conftest.$ac_ext >&5
5594 +
5595 +ac_header_compiler=no
5596  fi
5597 -rm -f conftest*
5598 +rm -f conftest.$ac_objext conftest.$ac_ext
5599 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5600 +echo "${ECHO_T}$ac_header_compiler" >&6
5601 +
5602 +# Is the header present?
5603 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
5604 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5605 +cat >conftest.$ac_ext <<_ACEOF
5606 +#line $LINENO "configure"
5607 +/* confdefs.h.  */
5608 +_ACEOF
5609 +cat confdefs.h >>conftest.$ac_ext
5610 +cat >>conftest.$ac_ext <<_ACEOF
5611 +/* end confdefs.h.  */
5612 +#include <$ac_header>
5613 +_ACEOF
5614 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5615 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5616 +  ac_status=$?
5617 +  grep -v '^ *+' conftest.er1 >conftest.err
5618 +  rm -f conftest.er1
5619 +  cat conftest.err >&5
5620 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 +  (exit $ac_status); } >/dev/null; then
5622 +  if test -s conftest.err; then
5623 +    ac_cpp_err=$ac_c_preproc_warn_flag
5624 +  else
5625 +    ac_cpp_err=
5626 +  fi
5627 +else
5628 +  ac_cpp_err=yes
5629  fi
5630 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5631 -  echo "$ac_t""yes" 1>&6
5632 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5633 -  cat >> confdefs.h <<EOF
5634 -#define $ac_tr_hdr 1
5635 -EOF
5636
5637 +if test -z "$ac_cpp_err"; then
5638 +  ac_header_preproc=yes
5639  else
5640 -  echo "$ac_t""no" 1>&6
5641 +  echo "$as_me: failed program was:" >&5
5642 +sed 's/^/| /' conftest.$ac_ext >&5
5643 +
5644 +  ac_header_preproc=no
5645  fi
5646 +rm -f conftest.err conftest.$ac_ext
5647 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5648 +echo "${ECHO_T}$ac_header_preproc" >&6
5649 +
5650 +# So?  What about this header?
5651 +case $ac_header_compiler:$ac_header_preproc in
5652 +  yes:no )
5653 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5654 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5655 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5656 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5657 +    (
5658 +      cat <<\_ASBOX
5659 +## ------------------------------------ ##
5660 +## Report this to bug-autoconf@gnu.org. ##
5661 +## ------------------------------------ ##
5662 +_ASBOX
5663 +    ) |
5664 +      sed "s/^/$as_me: WARNING:     /" >&2
5665 +    ;;
5666 +  no:yes )
5667 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5668 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5669 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5670 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5671 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5672 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5673 +    (
5674 +      cat <<\_ASBOX
5675 +## ------------------------------------ ##
5676 +## Report this to bug-autoconf@gnu.org. ##
5677 +## ------------------------------------ ##
5678 +_ASBOX
5679 +    ) |
5680 +      sed "s/^/$as_me: WARNING:     /" >&2
5681 +    ;;
5682 +esac
5683 +echo "$as_me:$LINENO: checking for $ac_header" >&5
5684 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5685 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
5686 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5687 +else
5688 +  eval "$as_ac_Header=$ac_header_preproc"
5689 +fi
5690 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5691 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5692 +
5693 +fi
5694 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
5695 +  cat >>confdefs.h <<_ACEOF
5696 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5697 +_ACEOF
5698 +
5699 +fi
5700 +
5701  done
5702  
5703 -for ac_hdr in netinet/in_systm.h
5704 +
5705 +for ac_header in netinet/in_systm.h
5706  do
5707 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5708 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5709 -echo "configure:1616: checking for $ac_hdr" >&5
5710 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5711 -  echo $ac_n "(cached) $ac_c" 1>&6
5712 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5713 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
5714 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
5715 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5716 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
5717 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5718 +fi
5719 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5720 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5721  else
5722 -  cat > conftest.$ac_ext <<EOF
5723 -#line 1621 "configure"
5724 -#include "confdefs.h"
5725 -#include <$ac_hdr>
5726 -EOF
5727 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5728 -{ (eval echo configure:1626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5729 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5730 -if test -z "$ac_err"; then
5731 -  rm -rf conftest*
5732 -  eval "ac_cv_header_$ac_safe=yes"
5733 +  # Is the header compilable?
5734 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
5735 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5736 +cat >conftest.$ac_ext <<_ACEOF
5737 +#line $LINENO "configure"
5738 +/* confdefs.h.  */
5739 +_ACEOF
5740 +cat confdefs.h >>conftest.$ac_ext
5741 +cat >>conftest.$ac_ext <<_ACEOF
5742 +/* end confdefs.h.  */
5743 +$ac_includes_default
5744 +#include <$ac_header>
5745 +_ACEOF
5746 +rm -f conftest.$ac_objext
5747 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5748 +  (eval $ac_compile) 2>&5
5749 +  ac_status=$?
5750 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 +  (exit $ac_status); } &&
5752 +         { ac_try='test -s conftest.$ac_objext'
5753 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754 +  (eval $ac_try) 2>&5
5755 +  ac_status=$?
5756 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 +  (exit $ac_status); }; }; then
5758 +  ac_header_compiler=yes
5759  else
5760 -  echo "$ac_err" >&5
5761 -  echo "configure: failed program was:" >&5
5762 -  cat conftest.$ac_ext >&5
5763 -  rm -rf conftest*
5764 -  eval "ac_cv_header_$ac_safe=no"
5765 +  echo "$as_me: failed program was:" >&5
5766 +sed 's/^/| /' conftest.$ac_ext >&5
5767 +
5768 +ac_header_compiler=no
5769  fi
5770 -rm -f conftest*
5771 +rm -f conftest.$ac_objext conftest.$ac_ext
5772 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5773 +echo "${ECHO_T}$ac_header_compiler" >&6
5774 +
5775 +# Is the header present?
5776 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
5777 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5778 +cat >conftest.$ac_ext <<_ACEOF
5779 +#line $LINENO "configure"
5780 +/* confdefs.h.  */
5781 +_ACEOF
5782 +cat confdefs.h >>conftest.$ac_ext
5783 +cat >>conftest.$ac_ext <<_ACEOF
5784 +/* end confdefs.h.  */
5785 +#include <$ac_header>
5786 +_ACEOF
5787 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5788 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5789 +  ac_status=$?
5790 +  grep -v '^ *+' conftest.er1 >conftest.err
5791 +  rm -f conftest.er1
5792 +  cat conftest.err >&5
5793 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 +  (exit $ac_status); } >/dev/null; then
5795 +  if test -s conftest.err; then
5796 +    ac_cpp_err=$ac_c_preproc_warn_flag
5797 +  else
5798 +    ac_cpp_err=
5799 +  fi
5800 +else
5801 +  ac_cpp_err=yes
5802  fi
5803 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5804 -  echo "$ac_t""yes" 1>&6
5805 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5806 -  cat >> confdefs.h <<EOF
5807 -#define $ac_tr_hdr 1
5808 -EOF
5809
5810 +if test -z "$ac_cpp_err"; then
5811 +  ac_header_preproc=yes
5812  else
5813 -  echo "$ac_t""no" 1>&6
5814 +  echo "$as_me: failed program was:" >&5
5815 +sed 's/^/| /' conftest.$ac_ext >&5
5816 +
5817 +  ac_header_preproc=no
5818  fi
5819 +rm -f conftest.err conftest.$ac_ext
5820 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5821 +echo "${ECHO_T}$ac_header_preproc" >&6
5822 +
5823 +# So?  What about this header?
5824 +case $ac_header_compiler:$ac_header_preproc in
5825 +  yes:no )
5826 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5827 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5828 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5829 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5830 +    (
5831 +      cat <<\_ASBOX
5832 +## ------------------------------------ ##
5833 +## Report this to bug-autoconf@gnu.org. ##
5834 +## ------------------------------------ ##
5835 +_ASBOX
5836 +    ) |
5837 +      sed "s/^/$as_me: WARNING:     /" >&2
5838 +    ;;
5839 +  no:yes )
5840 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5841 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5842 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5843 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5844 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5845 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5846 +    (
5847 +      cat <<\_ASBOX
5848 +## ------------------------------------ ##
5849 +## Report this to bug-autoconf@gnu.org. ##
5850 +## ------------------------------------ ##
5851 +_ASBOX
5852 +    ) |
5853 +      sed "s/^/$as_me: WARNING:     /" >&2
5854 +    ;;
5855 +esac
5856 +echo "$as_me:$LINENO: checking for $ac_header" >&5
5857 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5858 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
5859 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5860 +else
5861 +  eval "$as_ac_Header=$ac_header_preproc"
5862 +fi
5863 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5864 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5865 +
5866 +fi
5867 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
5868 +  cat >>confdefs.h <<_ACEOF
5869 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5870 +_ACEOF
5871 +
5872 +fi
5873 +
5874  done
5875  
5876 -for ac_hdr in netinet/in_system.h
5877 +
5878 +for ac_header in netinet/in_system.h
5879  do
5880 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5881 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5882 -echo "configure:1656: checking for $ac_hdr" >&5
5883 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5884 -  echo $ac_n "(cached) $ac_c" 1>&6
5885 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5886 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
5887 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
5888 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5889 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
5890 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5891 +fi
5892 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5893 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5894  else
5895 -  cat > conftest.$ac_ext <<EOF
5896 -#line 1661 "configure"
5897 -#include "confdefs.h"
5898 -#include <$ac_hdr>
5899 -EOF
5900 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5901 -{ (eval echo configure:1666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5902 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5903 -if test -z "$ac_err"; then
5904 -  rm -rf conftest*
5905 -  eval "ac_cv_header_$ac_safe=yes"
5906 +  # Is the header compilable?
5907 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
5908 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5909 +cat >conftest.$ac_ext <<_ACEOF
5910 +#line $LINENO "configure"
5911 +/* confdefs.h.  */
5912 +_ACEOF
5913 +cat confdefs.h >>conftest.$ac_ext
5914 +cat >>conftest.$ac_ext <<_ACEOF
5915 +/* end confdefs.h.  */
5916 +$ac_includes_default
5917 +#include <$ac_header>
5918 +_ACEOF
5919 +rm -f conftest.$ac_objext
5920 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921 +  (eval $ac_compile) 2>&5
5922 +  ac_status=$?
5923 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 +  (exit $ac_status); } &&
5925 +         { ac_try='test -s conftest.$ac_objext'
5926 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 +  (eval $ac_try) 2>&5
5928 +  ac_status=$?
5929 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 +  (exit $ac_status); }; }; then
5931 +  ac_header_compiler=yes
5932  else
5933 -  echo "$ac_err" >&5
5934 -  echo "configure: failed program was:" >&5
5935 -  cat conftest.$ac_ext >&5
5936 -  rm -rf conftest*
5937 -  eval "ac_cv_header_$ac_safe=no"
5938 +  echo "$as_me: failed program was:" >&5
5939 +sed 's/^/| /' conftest.$ac_ext >&5
5940 +
5941 +ac_header_compiler=no
5942  fi
5943 -rm -f conftest*
5944 +rm -f conftest.$ac_objext conftest.$ac_ext
5945 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5946 +echo "${ECHO_T}$ac_header_compiler" >&6
5947 +
5948 +# Is the header present?
5949 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
5950 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5951 +cat >conftest.$ac_ext <<_ACEOF
5952 +#line $LINENO "configure"
5953 +/* confdefs.h.  */
5954 +_ACEOF
5955 +cat confdefs.h >>conftest.$ac_ext
5956 +cat >>conftest.$ac_ext <<_ACEOF
5957 +/* end confdefs.h.  */
5958 +#include <$ac_header>
5959 +_ACEOF
5960 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5961 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5962 +  ac_status=$?
5963 +  grep -v '^ *+' conftest.er1 >conftest.err
5964 +  rm -f conftest.er1
5965 +  cat conftest.err >&5
5966 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 +  (exit $ac_status); } >/dev/null; then
5968 +  if test -s conftest.err; then
5969 +    ac_cpp_err=$ac_c_preproc_warn_flag
5970 +  else
5971 +    ac_cpp_err=
5972 +  fi
5973 +else
5974 +  ac_cpp_err=yes
5975  fi
5976 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5977 -  echo "$ac_t""yes" 1>&6
5978 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5979 -  cat >> confdefs.h <<EOF
5980 -#define $ac_tr_hdr 1
5981 -EOF
5982
5983 +if test -z "$ac_cpp_err"; then
5984 +  ac_header_preproc=yes
5985  else
5986 -  echo "$ac_t""no" 1>&6
5987 +  echo "$as_me: failed program was:" >&5
5988 +sed 's/^/| /' conftest.$ac_ext >&5
5989 +
5990 +  ac_header_preproc=no
5991  fi
5992 +rm -f conftest.err conftest.$ac_ext
5993 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5994 +echo "${ECHO_T}$ac_header_preproc" >&6
5995 +
5996 +# So?  What about this header?
5997 +case $ac_header_compiler:$ac_header_preproc in
5998 +  yes:no )
5999 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6000 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6001 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6002 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6003 +    (
6004 +      cat <<\_ASBOX
6005 +## ------------------------------------ ##
6006 +## Report this to bug-autoconf@gnu.org. ##
6007 +## ------------------------------------ ##
6008 +_ASBOX
6009 +    ) |
6010 +      sed "s/^/$as_me: WARNING:     /" >&2
6011 +    ;;
6012 +  no:yes )
6013 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6014 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6015 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6016 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6017 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6018 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6019 +    (
6020 +      cat <<\_ASBOX
6021 +## ------------------------------------ ##
6022 +## Report this to bug-autoconf@gnu.org. ##
6023 +## ------------------------------------ ##
6024 +_ASBOX
6025 +    ) |
6026 +      sed "s/^/$as_me: WARNING:     /" >&2
6027 +    ;;
6028 +esac
6029 +echo "$as_me:$LINENO: checking for $ac_header" >&5
6030 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6031 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
6032 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6033 +else
6034 +  eval "$as_ac_Header=$ac_header_preproc"
6035 +fi
6036 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6037 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6038 +
6039 +fi
6040 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
6041 +  cat >>confdefs.h <<_ACEOF
6042 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6043 +_ACEOF
6044 +
6045 +fi
6046 +
6047  done
6048  
6049 -for ac_hdr in netinet/ip.h
6050 +
6051 +for ac_header in netinet/ip.h
6052  do
6053 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6054 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6055 -echo "configure:1696: checking for $ac_hdr" >&5
6056 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6057 -  echo $ac_n "(cached) $ac_c" 1>&6
6058 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6059 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
6060 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
6061 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6062 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
6063 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6064 +fi
6065 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6066 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6067  else
6068 -  cat > conftest.$ac_ext <<EOF
6069 -#line 1701 "configure"
6070 -#include "confdefs.h"
6071 -#include <$ac_hdr>
6072 -EOF
6073 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6074 -{ (eval echo configure:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6075 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6076 -if test -z "$ac_err"; then
6077 -  rm -rf conftest*
6078 -  eval "ac_cv_header_$ac_safe=yes"
6079 +  # Is the header compilable?
6080 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
6081 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6082 +cat >conftest.$ac_ext <<_ACEOF
6083 +#line $LINENO "configure"
6084 +/* confdefs.h.  */
6085 +_ACEOF
6086 +cat confdefs.h >>conftest.$ac_ext
6087 +cat >>conftest.$ac_ext <<_ACEOF
6088 +/* end confdefs.h.  */
6089 +$ac_includes_default
6090 +#include <$ac_header>
6091 +_ACEOF
6092 +rm -f conftest.$ac_objext
6093 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6094 +  (eval $ac_compile) 2>&5
6095 +  ac_status=$?
6096 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 +  (exit $ac_status); } &&
6098 +         { ac_try='test -s conftest.$ac_objext'
6099 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 +  (eval $ac_try) 2>&5
6101 +  ac_status=$?
6102 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 +  (exit $ac_status); }; }; then
6104 +  ac_header_compiler=yes
6105  else
6106 -  echo "$ac_err" >&5
6107 -  echo "configure: failed program was:" >&5
6108 -  cat conftest.$ac_ext >&5
6109 -  rm -rf conftest*
6110 -  eval "ac_cv_header_$ac_safe=no"
6111 +  echo "$as_me: failed program was:" >&5
6112 +sed 's/^/| /' conftest.$ac_ext >&5
6113 +
6114 +ac_header_compiler=no
6115  fi
6116 -rm -f conftest*
6117 +rm -f conftest.$ac_objext conftest.$ac_ext
6118 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6119 +echo "${ECHO_T}$ac_header_compiler" >&6
6120 +
6121 +# Is the header present?
6122 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
6123 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6124 +cat >conftest.$ac_ext <<_ACEOF
6125 +#line $LINENO "configure"
6126 +/* confdefs.h.  */
6127 +_ACEOF
6128 +cat confdefs.h >>conftest.$ac_ext
6129 +cat >>conftest.$ac_ext <<_ACEOF
6130 +/* end confdefs.h.  */
6131 +#include <$ac_header>
6132 +_ACEOF
6133 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6134 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6135 +  ac_status=$?
6136 +  grep -v '^ *+' conftest.er1 >conftest.err
6137 +  rm -f conftest.er1
6138 +  cat conftest.err >&5
6139 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 +  (exit $ac_status); } >/dev/null; then
6141 +  if test -s conftest.err; then
6142 +    ac_cpp_err=$ac_c_preproc_warn_flag
6143 +  else
6144 +    ac_cpp_err=
6145 +  fi
6146 +else
6147 +  ac_cpp_err=yes
6148  fi
6149 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6150 -  echo "$ac_t""yes" 1>&6
6151 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6152 -  cat >> confdefs.h <<EOF
6153 -#define $ac_tr_hdr 1
6154 -EOF
6155
6156 +if test -z "$ac_cpp_err"; then
6157 +  ac_header_preproc=yes
6158  else
6159 -  echo "$ac_t""no" 1>&6
6160 +  echo "$as_me: failed program was:" >&5
6161 +sed 's/^/| /' conftest.$ac_ext >&5
6162 +
6163 +  ac_header_preproc=no
6164  fi
6165 +rm -f conftest.err conftest.$ac_ext
6166 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6167 +echo "${ECHO_T}$ac_header_preproc" >&6
6168 +
6169 +# So?  What about this header?
6170 +case $ac_header_compiler:$ac_header_preproc in
6171 +  yes:no )
6172 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6173 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6174 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6175 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6176 +    (
6177 +      cat <<\_ASBOX
6178 +## ------------------------------------ ##
6179 +## Report this to bug-autoconf@gnu.org. ##
6180 +## ------------------------------------ ##
6181 +_ASBOX
6182 +    ) |
6183 +      sed "s/^/$as_me: WARNING:     /" >&2
6184 +    ;;
6185 +  no:yes )
6186 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6187 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6188 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6189 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6190 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6191 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6192 +    (
6193 +      cat <<\_ASBOX
6194 +## ------------------------------------ ##
6195 +## Report this to bug-autoconf@gnu.org. ##
6196 +## ------------------------------------ ##
6197 +_ASBOX
6198 +    ) |
6199 +      sed "s/^/$as_me: WARNING:     /" >&2
6200 +    ;;
6201 +esac
6202 +echo "$as_me:$LINENO: checking for $ac_header" >&5
6203 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6204 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
6205 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6206 +else
6207 +  eval "$as_ac_Header=$ac_header_preproc"
6208 +fi
6209 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6210 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6211 +
6212 +fi
6213 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
6214 +  cat >>confdefs.h <<_ACEOF
6215 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6216 +_ACEOF
6217 +
6218 +fi
6219 +
6220  done
6221  
6222 -for ac_hdr in sys/select.h
6223 +
6224 +for ac_header in sys/select.h
6225  do
6226 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6227 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6228 -echo "configure:1736: checking for $ac_hdr" >&5
6229 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6230 -  echo $ac_n "(cached) $ac_c" 1>&6
6231 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6232 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
6233 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
6234 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6235 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
6236 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6237 +fi
6238 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6239 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6240  else
6241 -  cat > conftest.$ac_ext <<EOF
6242 -#line 1741 "configure"
6243 -#include "confdefs.h"
6244 -#include <$ac_hdr>
6245 -EOF
6246 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6247 -{ (eval echo configure:1746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6248 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6249 -if test -z "$ac_err"; then
6250 -  rm -rf conftest*
6251 -  eval "ac_cv_header_$ac_safe=yes"
6252 +  # Is the header compilable?
6253 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
6254 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6255 +cat >conftest.$ac_ext <<_ACEOF
6256 +#line $LINENO "configure"
6257 +/* confdefs.h.  */
6258 +_ACEOF
6259 +cat confdefs.h >>conftest.$ac_ext
6260 +cat >>conftest.$ac_ext <<_ACEOF
6261 +/* end confdefs.h.  */
6262 +$ac_includes_default
6263 +#include <$ac_header>
6264 +_ACEOF
6265 +rm -f conftest.$ac_objext
6266 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6267 +  (eval $ac_compile) 2>&5
6268 +  ac_status=$?
6269 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 +  (exit $ac_status); } &&
6271 +         { ac_try='test -s conftest.$ac_objext'
6272 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 +  (eval $ac_try) 2>&5
6274 +  ac_status=$?
6275 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 +  (exit $ac_status); }; }; then
6277 +  ac_header_compiler=yes
6278  else
6279 -  echo "$ac_err" >&5
6280 -  echo "configure: failed program was:" >&5
6281 -  cat conftest.$ac_ext >&5
6282 -  rm -rf conftest*
6283 -  eval "ac_cv_header_$ac_safe=no"
6284 +  echo "$as_me: failed program was:" >&5
6285 +sed 's/^/| /' conftest.$ac_ext >&5
6286 +
6287 +ac_header_compiler=no
6288  fi
6289 -rm -f conftest*
6290 +rm -f conftest.$ac_objext conftest.$ac_ext
6291 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6292 +echo "${ECHO_T}$ac_header_compiler" >&6
6293 +
6294 +# Is the header present?
6295 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
6296 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6297 +cat >conftest.$ac_ext <<_ACEOF
6298 +#line $LINENO "configure"
6299 +/* confdefs.h.  */
6300 +_ACEOF
6301 +cat confdefs.h >>conftest.$ac_ext
6302 +cat >>conftest.$ac_ext <<_ACEOF
6303 +/* end confdefs.h.  */
6304 +#include <$ac_header>
6305 +_ACEOF
6306 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6307 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6308 +  ac_status=$?
6309 +  grep -v '^ *+' conftest.er1 >conftest.err
6310 +  rm -f conftest.er1
6311 +  cat conftest.err >&5
6312 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 +  (exit $ac_status); } >/dev/null; then
6314 +  if test -s conftest.err; then
6315 +    ac_cpp_err=$ac_c_preproc_warn_flag
6316 +  else
6317 +    ac_cpp_err=
6318 +  fi
6319 +else
6320 +  ac_cpp_err=yes
6321  fi
6322 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6323 -  echo "$ac_t""yes" 1>&6
6324 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6325 -  cat >> confdefs.h <<EOF
6326 -#define $ac_tr_hdr 1
6327 -EOF
6328
6329 +if test -z "$ac_cpp_err"; then
6330 +  ac_header_preproc=yes
6331  else
6332 -  echo "$ac_t""no" 1>&6
6333 +  echo "$as_me: failed program was:" >&5
6334 +sed 's/^/| /' conftest.$ac_ext >&5
6335 +
6336 +  ac_header_preproc=no
6337 +fi
6338 +rm -f conftest.err conftest.$ac_ext
6339 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6340 +echo "${ECHO_T}$ac_header_preproc" >&6
6341 +
6342 +# So?  What about this header?
6343 +case $ac_header_compiler:$ac_header_preproc in
6344 +  yes:no )
6345 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6346 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6347 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6348 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6349 +    (
6350 +      cat <<\_ASBOX
6351 +## ------------------------------------ ##
6352 +## Report this to bug-autoconf@gnu.org. ##
6353 +## ------------------------------------ ##
6354 +_ASBOX
6355 +    ) |
6356 +      sed "s/^/$as_me: WARNING:     /" >&2
6357 +    ;;
6358 +  no:yes )
6359 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6360 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6361 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6362 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6363 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6364 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6365 +    (
6366 +      cat <<\_ASBOX
6367 +## ------------------------------------ ##
6368 +## Report this to bug-autoconf@gnu.org. ##
6369 +## ------------------------------------ ##
6370 +_ASBOX
6371 +    ) |
6372 +      sed "s/^/$as_me: WARNING:     /" >&2
6373 +    ;;
6374 +esac
6375 +echo "$as_me:$LINENO: checking for $ac_header" >&5
6376 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6377 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
6378 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6379 +else
6380 +  eval "$as_ac_Header=$ac_header_preproc"
6381  fi
6382 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6383 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6384 +
6385 +fi
6386 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
6387 +  cat >>confdefs.h <<_ACEOF
6388 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6389 +_ACEOF
6390 +
6391 +fi
6392 +
6393  done
6394  
6395 -for ac_hdr in sys/resource.h
6396 +
6397 +for ac_header in sys/resource.h
6398  do
6399 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6400 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6401 -echo "configure:1776: checking for $ac_hdr" >&5
6402 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6403 -  echo $ac_n "(cached) $ac_c" 1>&6
6404 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6405 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
6406 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
6407 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6408 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
6409 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6410 +fi
6411 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6412 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6413  else
6414 -  cat > conftest.$ac_ext <<EOF
6415 -#line 1781 "configure"
6416 -#include "confdefs.h"
6417 -#include <$ac_hdr>
6418 -EOF
6419 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6420 -{ (eval echo configure:1786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6421 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6422 -if test -z "$ac_err"; then
6423 -  rm -rf conftest*
6424 -  eval "ac_cv_header_$ac_safe=yes"
6425 +  # Is the header compilable?
6426 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
6427 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6428 +cat >conftest.$ac_ext <<_ACEOF
6429 +#line $LINENO "configure"
6430 +/* confdefs.h.  */
6431 +_ACEOF
6432 +cat confdefs.h >>conftest.$ac_ext
6433 +cat >>conftest.$ac_ext <<_ACEOF
6434 +/* end confdefs.h.  */
6435 +$ac_includes_default
6436 +#include <$ac_header>
6437 +_ACEOF
6438 +rm -f conftest.$ac_objext
6439 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440 +  (eval $ac_compile) 2>&5
6441 +  ac_status=$?
6442 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 +  (exit $ac_status); } &&
6444 +         { ac_try='test -s conftest.$ac_objext'
6445 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 +  (eval $ac_try) 2>&5
6447 +  ac_status=$?
6448 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 +  (exit $ac_status); }; }; then
6450 +  ac_header_compiler=yes
6451  else
6452 -  echo "$ac_err" >&5
6453 -  echo "configure: failed program was:" >&5
6454 -  cat conftest.$ac_ext >&5
6455 -  rm -rf conftest*
6456 -  eval "ac_cv_header_$ac_safe=no"
6457 +  echo "$as_me: failed program was:" >&5
6458 +sed 's/^/| /' conftest.$ac_ext >&5
6459 +
6460 +ac_header_compiler=no
6461  fi
6462 -rm -f conftest*
6463 +rm -f conftest.$ac_objext conftest.$ac_ext
6464 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6465 +echo "${ECHO_T}$ac_header_compiler" >&6
6466 +
6467 +# Is the header present?
6468 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
6469 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6470 +cat >conftest.$ac_ext <<_ACEOF
6471 +#line $LINENO "configure"
6472 +/* confdefs.h.  */
6473 +_ACEOF
6474 +cat confdefs.h >>conftest.$ac_ext
6475 +cat >>conftest.$ac_ext <<_ACEOF
6476 +/* end confdefs.h.  */
6477 +#include <$ac_header>
6478 +_ACEOF
6479 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6480 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6481 +  ac_status=$?
6482 +  grep -v '^ *+' conftest.er1 >conftest.err
6483 +  rm -f conftest.er1
6484 +  cat conftest.err >&5
6485 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 +  (exit $ac_status); } >/dev/null; then
6487 +  if test -s conftest.err; then
6488 +    ac_cpp_err=$ac_c_preproc_warn_flag
6489 +  else
6490 +    ac_cpp_err=
6491 +  fi
6492 +else
6493 +  ac_cpp_err=yes
6494  fi
6495 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6496 -  echo "$ac_t""yes" 1>&6
6497 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6498 -  cat >> confdefs.h <<EOF
6499 -#define $ac_tr_hdr 1
6500 -EOF
6501
6502 +if test -z "$ac_cpp_err"; then
6503 +  ac_header_preproc=yes
6504  else
6505 -  echo "$ac_t""no" 1>&6
6506 +  echo "$as_me: failed program was:" >&5
6507 +sed 's/^/| /' conftest.$ac_ext >&5
6508 +
6509 +  ac_header_preproc=no
6510 +fi
6511 +rm -f conftest.err conftest.$ac_ext
6512 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6513 +echo "${ECHO_T}$ac_header_preproc" >&6
6514 +
6515 +# So?  What about this header?
6516 +case $ac_header_compiler:$ac_header_preproc in
6517 +  yes:no )
6518 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6519 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6520 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6521 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6522 +    (
6523 +      cat <<\_ASBOX
6524 +## ------------------------------------ ##
6525 +## Report this to bug-autoconf@gnu.org. ##
6526 +## ------------------------------------ ##
6527 +_ASBOX
6528 +    ) |
6529 +      sed "s/^/$as_me: WARNING:     /" >&2
6530 +    ;;
6531 +  no:yes )
6532 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6533 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6534 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6535 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6536 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6537 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6538 +    (
6539 +      cat <<\_ASBOX
6540 +## ------------------------------------ ##
6541 +## Report this to bug-autoconf@gnu.org. ##
6542 +## ------------------------------------ ##
6543 +_ASBOX
6544 +    ) |
6545 +      sed "s/^/$as_me: WARNING:     /" >&2
6546 +    ;;
6547 +esac
6548 +echo "$as_me:$LINENO: checking for $ac_header" >&5
6549 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6550 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
6551 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6552 +else
6553 +  eval "$as_ac_Header=$ac_header_preproc"
6554  fi
6555 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6556 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6557 +
6558 +fi
6559 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
6560 +  cat >>confdefs.h <<_ACEOF
6561 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6562 +_ACEOF
6563 +
6564 +fi
6565 +
6566  done
6567  
6568 -for ac_hdr in sys/utsname.h
6569 +
6570 +for ac_header in sys/utsname.h
6571  do
6572 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6573 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6574 -echo "configure:1816: checking for $ac_hdr" >&5
6575 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6576 -  echo $ac_n "(cached) $ac_c" 1>&6
6577 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6578 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
6579 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
6580 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6581 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
6582 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6583 +fi
6584 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6585 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6586  else
6587 -  cat > conftest.$ac_ext <<EOF
6588 -#line 1821 "configure"
6589 -#include "confdefs.h"
6590 -#include <$ac_hdr>
6591 -EOF
6592 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6593 -{ (eval echo configure:1826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6594 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6595 -if test -z "$ac_err"; then
6596 -  rm -rf conftest*
6597 -  eval "ac_cv_header_$ac_safe=yes"
6598 +  # Is the header compilable?
6599 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
6600 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6601 +cat >conftest.$ac_ext <<_ACEOF
6602 +#line $LINENO "configure"
6603 +/* confdefs.h.  */
6604 +_ACEOF
6605 +cat confdefs.h >>conftest.$ac_ext
6606 +cat >>conftest.$ac_ext <<_ACEOF
6607 +/* end confdefs.h.  */
6608 +$ac_includes_default
6609 +#include <$ac_header>
6610 +_ACEOF
6611 +rm -f conftest.$ac_objext
6612 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6613 +  (eval $ac_compile) 2>&5
6614 +  ac_status=$?
6615 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 +  (exit $ac_status); } &&
6617 +         { ac_try='test -s conftest.$ac_objext'
6618 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 +  (eval $ac_try) 2>&5
6620 +  ac_status=$?
6621 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 +  (exit $ac_status); }; }; then
6623 +  ac_header_compiler=yes
6624  else
6625 -  echo "$ac_err" >&5
6626 -  echo "configure: failed program was:" >&5
6627 -  cat conftest.$ac_ext >&5
6628 -  rm -rf conftest*
6629 -  eval "ac_cv_header_$ac_safe=no"
6630 +  echo "$as_me: failed program was:" >&5
6631 +sed 's/^/| /' conftest.$ac_ext >&5
6632 +
6633 +ac_header_compiler=no
6634  fi
6635 -rm -f conftest*
6636 +rm -f conftest.$ac_objext conftest.$ac_ext
6637 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6638 +echo "${ECHO_T}$ac_header_compiler" >&6
6639 +
6640 +# Is the header present?
6641 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
6642 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6643 +cat >conftest.$ac_ext <<_ACEOF
6644 +#line $LINENO "configure"
6645 +/* confdefs.h.  */
6646 +_ACEOF
6647 +cat confdefs.h >>conftest.$ac_ext
6648 +cat >>conftest.$ac_ext <<_ACEOF
6649 +/* end confdefs.h.  */
6650 +#include <$ac_header>
6651 +_ACEOF
6652 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6653 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6654 +  ac_status=$?
6655 +  grep -v '^ *+' conftest.er1 >conftest.err
6656 +  rm -f conftest.er1
6657 +  cat conftest.err >&5
6658 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 +  (exit $ac_status); } >/dev/null; then
6660 +  if test -s conftest.err; then
6661 +    ac_cpp_err=$ac_c_preproc_warn_flag
6662 +  else
6663 +    ac_cpp_err=
6664 +  fi
6665 +else
6666 +  ac_cpp_err=yes
6667  fi
6668 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6669 -  echo "$ac_t""yes" 1>&6
6670 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6671 -  cat >> confdefs.h <<EOF
6672 -#define $ac_tr_hdr 1
6673 -EOF
6674
6675 +if test -z "$ac_cpp_err"; then
6676 +  ac_header_preproc=yes
6677  else
6678 -  echo "$ac_t""no" 1>&6
6679 +  echo "$as_me: failed program was:" >&5
6680 +sed 's/^/| /' conftest.$ac_ext >&5
6681 +
6682 +  ac_header_preproc=no
6683 +fi
6684 +rm -f conftest.err conftest.$ac_ext
6685 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6686 +echo "${ECHO_T}$ac_header_preproc" >&6
6687 +
6688 +# So?  What about this header?
6689 +case $ac_header_compiler:$ac_header_preproc in
6690 +  yes:no )
6691 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6692 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6693 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6694 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6695 +    (
6696 +      cat <<\_ASBOX
6697 +## ------------------------------------ ##
6698 +## Report this to bug-autoconf@gnu.org. ##
6699 +## ------------------------------------ ##
6700 +_ASBOX
6701 +    ) |
6702 +      sed "s/^/$as_me: WARNING:     /" >&2
6703 +    ;;
6704 +  no:yes )
6705 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6706 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6707 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6708 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6709 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6710 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6711 +    (
6712 +      cat <<\_ASBOX
6713 +## ------------------------------------ ##
6714 +## Report this to bug-autoconf@gnu.org. ##
6715 +## ------------------------------------ ##
6716 +_ASBOX
6717 +    ) |
6718 +      sed "s/^/$as_me: WARNING:     /" >&2
6719 +    ;;
6720 +esac
6721 +echo "$as_me:$LINENO: checking for $ac_header" >&5
6722 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6723 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
6724 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6725 +else
6726 +  eval "$as_ac_Header=$ac_header_preproc"
6727 +fi
6728 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6729 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6730 +
6731 +fi
6732 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
6733 +  cat >>confdefs.h <<_ACEOF
6734 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6735 +_ACEOF
6736 +
6737  fi
6738 +
6739  done
6740  
6741 -for ac_hdr in sys/un.h
6742 +
6743 +for ac_header in sys/un.h
6744  do
6745 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6746 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6747 -echo "configure:1856: checking for $ac_hdr" >&5
6748 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6749 -  echo $ac_n "(cached) $ac_c" 1>&6
6750 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6751 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
6752 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
6753 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6754 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
6755 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6756 +fi
6757 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6758 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6759  else
6760 -  cat > conftest.$ac_ext <<EOF
6761 -#line 1861 "configure"
6762 -#include "confdefs.h"
6763 -#include <$ac_hdr>
6764 -EOF
6765 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6766 -{ (eval echo configure:1866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6767 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6768 -if test -z "$ac_err"; then
6769 -  rm -rf conftest*
6770 -  eval "ac_cv_header_$ac_safe=yes"
6771 +  # Is the header compilable?
6772 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
6773 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6774 +cat >conftest.$ac_ext <<_ACEOF
6775 +#line $LINENO "configure"
6776 +/* confdefs.h.  */
6777 +_ACEOF
6778 +cat confdefs.h >>conftest.$ac_ext
6779 +cat >>conftest.$ac_ext <<_ACEOF
6780 +/* end confdefs.h.  */
6781 +$ac_includes_default
6782 +#include <$ac_header>
6783 +_ACEOF
6784 +rm -f conftest.$ac_objext
6785 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6786 +  (eval $ac_compile) 2>&5
6787 +  ac_status=$?
6788 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 +  (exit $ac_status); } &&
6790 +         { ac_try='test -s conftest.$ac_objext'
6791 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792 +  (eval $ac_try) 2>&5
6793 +  ac_status=$?
6794 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 +  (exit $ac_status); }; }; then
6796 +  ac_header_compiler=yes
6797  else
6798 -  echo "$ac_err" >&5
6799 -  echo "configure: failed program was:" >&5
6800 -  cat conftest.$ac_ext >&5
6801 -  rm -rf conftest*
6802 -  eval "ac_cv_header_$ac_safe=no"
6803 +  echo "$as_me: failed program was:" >&5
6804 +sed 's/^/| /' conftest.$ac_ext >&5
6805 +
6806 +ac_header_compiler=no
6807  fi
6808 -rm -f conftest*
6809 +rm -f conftest.$ac_objext conftest.$ac_ext
6810 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6811 +echo "${ECHO_T}$ac_header_compiler" >&6
6812 +
6813 +# Is the header present?
6814 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
6815 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6816 +cat >conftest.$ac_ext <<_ACEOF
6817 +#line $LINENO "configure"
6818 +/* confdefs.h.  */
6819 +_ACEOF
6820 +cat confdefs.h >>conftest.$ac_ext
6821 +cat >>conftest.$ac_ext <<_ACEOF
6822 +/* end confdefs.h.  */
6823 +#include <$ac_header>
6824 +_ACEOF
6825 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6826 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6827 +  ac_status=$?
6828 +  grep -v '^ *+' conftest.er1 >conftest.err
6829 +  rm -f conftest.er1
6830 +  cat conftest.err >&5
6831 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 +  (exit $ac_status); } >/dev/null; then
6833 +  if test -s conftest.err; then
6834 +    ac_cpp_err=$ac_c_preproc_warn_flag
6835 +  else
6836 +    ac_cpp_err=
6837 +  fi
6838 +else
6839 +  ac_cpp_err=yes
6840  fi
6841 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6842 -  echo "$ac_t""yes" 1>&6
6843 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6844 -  cat >> confdefs.h <<EOF
6845 -#define $ac_tr_hdr 1
6846 -EOF
6847
6848 +if test -z "$ac_cpp_err"; then
6849 +  ac_header_preproc=yes
6850  else
6851 -  echo "$ac_t""no" 1>&6
6852 +  echo "$as_me: failed program was:" >&5
6853 +sed 's/^/| /' conftest.$ac_ext >&5
6854 +
6855 +  ac_header_preproc=no
6856 +fi
6857 +rm -f conftest.err conftest.$ac_ext
6858 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6859 +echo "${ECHO_T}$ac_header_preproc" >&6
6860 +
6861 +# So?  What about this header?
6862 +case $ac_header_compiler:$ac_header_preproc in
6863 +  yes:no )
6864 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6865 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6866 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6867 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6868 +    (
6869 +      cat <<\_ASBOX
6870 +## ------------------------------------ ##
6871 +## Report this to bug-autoconf@gnu.org. ##
6872 +## ------------------------------------ ##
6873 +_ASBOX
6874 +    ) |
6875 +      sed "s/^/$as_me: WARNING:     /" >&2
6876 +    ;;
6877 +  no:yes )
6878 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6879 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6880 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6881 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6882 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6883 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6884 +    (
6885 +      cat <<\_ASBOX
6886 +## ------------------------------------ ##
6887 +## Report this to bug-autoconf@gnu.org. ##
6888 +## ------------------------------------ ##
6889 +_ASBOX
6890 +    ) |
6891 +      sed "s/^/$as_me: WARNING:     /" >&2
6892 +    ;;
6893 +esac
6894 +echo "$as_me:$LINENO: checking for $ac_header" >&5
6895 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6896 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
6897 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6898 +else
6899 +  eval "$as_ac_Header=$ac_header_preproc"
6900  fi
6901 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6902 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6903 +
6904 +fi
6905 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
6906 +  cat >>confdefs.h <<_ACEOF
6907 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6908 +_ACEOF
6909 +
6910 +fi
6911 +
6912  done
6913  
6914 -for ac_hdr in sys/fmutex.h
6915 +
6916 +for ac_header in sys/fmutex.h
6917  do
6918 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6919 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6920 -echo "configure:1896: checking for $ac_hdr" >&5
6921 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6922 -  echo $ac_n "(cached) $ac_c" 1>&6
6923 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6924 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
6925 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
6926 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6927 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
6928 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6929 +fi
6930 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6931 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6932  else
6933 -  cat > conftest.$ac_ext <<EOF
6934 -#line 1901 "configure"
6935 -#include "confdefs.h"
6936 -#include <$ac_hdr>
6937 -EOF
6938 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6939 -{ (eval echo configure:1906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6940 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6941 -if test -z "$ac_err"; then
6942 -  rm -rf conftest*
6943 -  eval "ac_cv_header_$ac_safe=yes"
6944 +  # Is the header compilable?
6945 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
6946 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6947 +cat >conftest.$ac_ext <<_ACEOF
6948 +#line $LINENO "configure"
6949 +/* confdefs.h.  */
6950 +_ACEOF
6951 +cat confdefs.h >>conftest.$ac_ext
6952 +cat >>conftest.$ac_ext <<_ACEOF
6953 +/* end confdefs.h.  */
6954 +$ac_includes_default
6955 +#include <$ac_header>
6956 +_ACEOF
6957 +rm -f conftest.$ac_objext
6958 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6959 +  (eval $ac_compile) 2>&5
6960 +  ac_status=$?
6961 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 +  (exit $ac_status); } &&
6963 +         { ac_try='test -s conftest.$ac_objext'
6964 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 +  (eval $ac_try) 2>&5
6966 +  ac_status=$?
6967 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 +  (exit $ac_status); }; }; then
6969 +  ac_header_compiler=yes
6970  else
6971 -  echo "$ac_err" >&5
6972 -  echo "configure: failed program was:" >&5
6973 -  cat conftest.$ac_ext >&5
6974 -  rm -rf conftest*
6975 -  eval "ac_cv_header_$ac_safe=no"
6976 +  echo "$as_me: failed program was:" >&5
6977 +sed 's/^/| /' conftest.$ac_ext >&5
6978 +
6979 +ac_header_compiler=no
6980  fi
6981 -rm -f conftest*
6982 +rm -f conftest.$ac_objext conftest.$ac_ext
6983 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6984 +echo "${ECHO_T}$ac_header_compiler" >&6
6985 +
6986 +# Is the header present?
6987 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
6988 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6989 +cat >conftest.$ac_ext <<_ACEOF
6990 +#line $LINENO "configure"
6991 +/* confdefs.h.  */
6992 +_ACEOF
6993 +cat confdefs.h >>conftest.$ac_ext
6994 +cat >>conftest.$ac_ext <<_ACEOF
6995 +/* end confdefs.h.  */
6996 +#include <$ac_header>
6997 +_ACEOF
6998 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6999 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7000 +  ac_status=$?
7001 +  grep -v '^ *+' conftest.er1 >conftest.err
7002 +  rm -f conftest.er1
7003 +  cat conftest.err >&5
7004 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 +  (exit $ac_status); } >/dev/null; then
7006 +  if test -s conftest.err; then
7007 +    ac_cpp_err=$ac_c_preproc_warn_flag
7008 +  else
7009 +    ac_cpp_err=
7010 +  fi
7011 +else
7012 +  ac_cpp_err=yes
7013  fi
7014 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7015 -  echo "$ac_t""yes" 1>&6
7016 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7017 -  cat >> confdefs.h <<EOF
7018 -#define $ac_tr_hdr 1
7019 -EOF
7020
7021 +if test -z "$ac_cpp_err"; then
7022 +  ac_header_preproc=yes
7023  else
7024 -  echo "$ac_t""no" 1>&6
7025 +  echo "$as_me: failed program was:" >&5
7026 +sed 's/^/| /' conftest.$ac_ext >&5
7027 +
7028 +  ac_header_preproc=no
7029 +fi
7030 +rm -f conftest.err conftest.$ac_ext
7031 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7032 +echo "${ECHO_T}$ac_header_preproc" >&6
7033 +
7034 +# So?  What about this header?
7035 +case $ac_header_compiler:$ac_header_preproc in
7036 +  yes:no )
7037 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7038 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7039 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7040 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7041 +    (
7042 +      cat <<\_ASBOX
7043 +## ------------------------------------ ##
7044 +## Report this to bug-autoconf@gnu.org. ##
7045 +## ------------------------------------ ##
7046 +_ASBOX
7047 +    ) |
7048 +      sed "s/^/$as_me: WARNING:     /" >&2
7049 +    ;;
7050 +  no:yes )
7051 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7052 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7053 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7054 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7055 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7056 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7057 +    (
7058 +      cat <<\_ASBOX
7059 +## ------------------------------------ ##
7060 +## Report this to bug-autoconf@gnu.org. ##
7061 +## ------------------------------------ ##
7062 +_ASBOX
7063 +    ) |
7064 +      sed "s/^/$as_me: WARNING:     /" >&2
7065 +    ;;
7066 +esac
7067 +echo "$as_me:$LINENO: checking for $ac_header" >&5
7068 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7069 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
7070 +  echo $ECHO_N "(cached) $ECHO_C" >&6
7071 +else
7072 +  eval "$as_ac_Header=$ac_header_preproc"
7073  fi
7074 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7075 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7076 +
7077 +fi
7078 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
7079 +  cat >>confdefs.h <<_ACEOF
7080 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7081 +_ACEOF
7082 +
7083 +fi
7084 +
7085  done
7086  
7087 -for ac_hdr in sys/cygwin.h
7088 +
7089 +for ac_header in sys/cygwin.h
7090  do
7091 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7092 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7093 -echo "configure:1936: checking for $ac_hdr" >&5
7094 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7095 -  echo $ac_n "(cached) $ac_c" 1>&6
7096 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7097 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
7098 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
7099 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7100 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
7101 +  echo $ECHO_N "(cached) $ECHO_C" >&6
7102 +fi
7103 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7104 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7105  else
7106 -  cat > conftest.$ac_ext <<EOF
7107 -#line 1941 "configure"
7108 -#include "confdefs.h"
7109 -#include <$ac_hdr>
7110 -EOF
7111 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7112 -{ (eval echo configure:1946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7113 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7114 -if test -z "$ac_err"; then
7115 -  rm -rf conftest*
7116 -  eval "ac_cv_header_$ac_safe=yes"
7117 +  # Is the header compilable?
7118 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
7119 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7120 +cat >conftest.$ac_ext <<_ACEOF
7121 +#line $LINENO "configure"
7122 +/* confdefs.h.  */
7123 +_ACEOF
7124 +cat confdefs.h >>conftest.$ac_ext
7125 +cat >>conftest.$ac_ext <<_ACEOF
7126 +/* end confdefs.h.  */
7127 +$ac_includes_default
7128 +#include <$ac_header>
7129 +_ACEOF
7130 +rm -f conftest.$ac_objext
7131 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7132 +  (eval $ac_compile) 2>&5
7133 +  ac_status=$?
7134 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 +  (exit $ac_status); } &&
7136 +         { ac_try='test -s conftest.$ac_objext'
7137 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 +  (eval $ac_try) 2>&5
7139 +  ac_status=$?
7140 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 +  (exit $ac_status); }; }; then
7142 +  ac_header_compiler=yes
7143  else
7144 -  echo "$ac_err" >&5
7145 -  echo "configure: failed program was:" >&5
7146 -  cat conftest.$ac_ext >&5
7147 -  rm -rf conftest*
7148 -  eval "ac_cv_header_$ac_safe=no"
7149 +  echo "$as_me: failed program was:" >&5
7150 +sed 's/^/| /' conftest.$ac_ext >&5
7151 +
7152 +ac_header_compiler=no
7153  fi
7154 -rm -f conftest*
7155 +rm -f conftest.$ac_objext conftest.$ac_ext
7156 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7157 +echo "${ECHO_T}$ac_header_compiler" >&6
7158 +
7159 +# Is the header present?
7160 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
7161 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7162 +cat >conftest.$ac_ext <<_ACEOF
7163 +#line $LINENO "configure"
7164 +/* confdefs.h.  */
7165 +_ACEOF
7166 +cat confdefs.h >>conftest.$ac_ext
7167 +cat >>conftest.$ac_ext <<_ACEOF
7168 +/* end confdefs.h.  */
7169 +#include <$ac_header>
7170 +_ACEOF
7171 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7172 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7173 +  ac_status=$?
7174 +  grep -v '^ *+' conftest.er1 >conftest.err
7175 +  rm -f conftest.er1
7176 +  cat conftest.err >&5
7177 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 +  (exit $ac_status); } >/dev/null; then
7179 +  if test -s conftest.err; then
7180 +    ac_cpp_err=$ac_c_preproc_warn_flag
7181 +  else
7182 +    ac_cpp_err=
7183 +  fi
7184 +else
7185 +  ac_cpp_err=yes
7186  fi
7187 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7188 -  echo "$ac_t""yes" 1>&6
7189 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7190 -  cat >> confdefs.h <<EOF
7191 -#define $ac_tr_hdr 1
7192 -EOF
7193
7194 +if test -z "$ac_cpp_err"; then
7195 +  ac_header_preproc=yes
7196  else
7197 -  echo "$ac_t""no" 1>&6
7198 +  echo "$as_me: failed program was:" >&5
7199 +sed 's/^/| /' conftest.$ac_ext >&5
7200 +
7201 +  ac_header_preproc=no
7202  fi
7203 +rm -f conftest.err conftest.$ac_ext
7204 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7205 +echo "${ECHO_T}$ac_header_preproc" >&6
7206 +
7207 +# So?  What about this header?
7208 +case $ac_header_compiler:$ac_header_preproc in
7209 +  yes:no )
7210 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7211 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7212 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7213 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7214 +    (
7215 +      cat <<\_ASBOX
7216 +## ------------------------------------ ##
7217 +## Report this to bug-autoconf@gnu.org. ##
7218 +## ------------------------------------ ##
7219 +_ASBOX
7220 +    ) |
7221 +      sed "s/^/$as_me: WARNING:     /" >&2
7222 +    ;;
7223 +  no:yes )
7224 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7225 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7226 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7227 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7228 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7229 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7230 +    (
7231 +      cat <<\_ASBOX
7232 +## ------------------------------------ ##
7233 +## Report this to bug-autoconf@gnu.org. ##
7234 +## ------------------------------------ ##
7235 +_ASBOX
7236 +    ) |
7237 +      sed "s/^/$as_me: WARNING:     /" >&2
7238 +    ;;
7239 +esac
7240 +echo "$as_me:$LINENO: checking for $ac_header" >&5
7241 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7242 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
7243 +  echo $ECHO_N "(cached) $ECHO_C" >&6
7244 +else
7245 +  eval "$as_ac_Header=$ac_header_preproc"
7246 +fi
7247 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7248 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7249 +
7250 +fi
7251 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
7252 +  cat >>confdefs.h <<_ACEOF
7253 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7254 +_ACEOF
7255 +
7256 +fi
7257 +
7258  done
7259  
7260 -for ac_hdr in io.h
7261 +
7262 +for ac_header in io.h
7263  do
7264 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7265 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7266 -echo "configure:1976: checking for $ac_hdr" >&5
7267 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7268 -  echo $ac_n "(cached) $ac_c" 1>&6
7269 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7270 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
7271 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
7272 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7273 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
7274 +  echo $ECHO_N "(cached) $ECHO_C" >&6
7275 +fi
7276 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7277 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7278  else
7279 -  cat > conftest.$ac_ext <<EOF
7280 -#line 1981 "configure"
7281 -#include "confdefs.h"
7282 -#include <$ac_hdr>
7283 -EOF
7284 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7285 -{ (eval echo configure:1986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7286 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7287 -if test -z "$ac_err"; then
7288 -  rm -rf conftest*
7289 -  eval "ac_cv_header_$ac_safe=yes"
7290 +  # Is the header compilable?
7291 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
7292 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7293 +cat >conftest.$ac_ext <<_ACEOF
7294 +#line $LINENO "configure"
7295 +/* confdefs.h.  */
7296 +_ACEOF
7297 +cat confdefs.h >>conftest.$ac_ext
7298 +cat >>conftest.$ac_ext <<_ACEOF
7299 +/* end confdefs.h.  */
7300 +$ac_includes_default
7301 +#include <$ac_header>
7302 +_ACEOF
7303 +rm -f conftest.$ac_objext
7304 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7305 +  (eval $ac_compile) 2>&5
7306 +  ac_status=$?
7307 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 +  (exit $ac_status); } &&
7309 +         { ac_try='test -s conftest.$ac_objext'
7310 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311 +  (eval $ac_try) 2>&5
7312 +  ac_status=$?
7313 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 +  (exit $ac_status); }; }; then
7315 +  ac_header_compiler=yes
7316  else
7317 -  echo "$ac_err" >&5
7318 -  echo "configure: failed program was:" >&5
7319 -  cat conftest.$ac_ext >&5
7320 -  rm -rf conftest*
7321 -  eval "ac_cv_header_$ac_safe=no"
7322 +  echo "$as_me: failed program was:" >&5
7323 +sed 's/^/| /' conftest.$ac_ext >&5
7324 +
7325 +ac_header_compiler=no
7326  fi
7327 -rm -f conftest*
7328 +rm -f conftest.$ac_objext conftest.$ac_ext
7329 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7330 +echo "${ECHO_T}$ac_header_compiler" >&6
7331 +
7332 +# Is the header present?
7333 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
7334 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7335 +cat >conftest.$ac_ext <<_ACEOF
7336 +#line $LINENO "configure"
7337 +/* confdefs.h.  */
7338 +_ACEOF
7339 +cat confdefs.h >>conftest.$ac_ext
7340 +cat >>conftest.$ac_ext <<_ACEOF
7341 +/* end confdefs.h.  */
7342 +#include <$ac_header>
7343 +_ACEOF
7344 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7345 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7346 +  ac_status=$?
7347 +  grep -v '^ *+' conftest.er1 >conftest.err
7348 +  rm -f conftest.er1
7349 +  cat conftest.err >&5
7350 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 +  (exit $ac_status); } >/dev/null; then
7352 +  if test -s conftest.err; then
7353 +    ac_cpp_err=$ac_c_preproc_warn_flag
7354 +  else
7355 +    ac_cpp_err=
7356 +  fi
7357 +else
7358 +  ac_cpp_err=yes
7359  fi
7360 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7361 -  echo "$ac_t""yes" 1>&6
7362 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7363 -  cat >> confdefs.h <<EOF
7364 -#define $ac_tr_hdr 1
7365 -EOF
7366
7367 +if test -z "$ac_cpp_err"; then
7368 +  ac_header_preproc=yes
7369  else
7370 -  echo "$ac_t""no" 1>&6
7371 +  echo "$as_me: failed program was:" >&5
7372 +sed 's/^/| /' conftest.$ac_ext >&5
7373 +
7374 +  ac_header_preproc=no
7375  fi
7376 +rm -f conftest.err conftest.$ac_ext
7377 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7378 +echo "${ECHO_T}$ac_header_preproc" >&6
7379 +
7380 +# So?  What about this header?
7381 +case $ac_header_compiler:$ac_header_preproc in
7382 +  yes:no )
7383 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7384 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7385 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7386 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7387 +    (
7388 +      cat <<\_ASBOX
7389 +## ------------------------------------ ##
7390 +## Report this to bug-autoconf@gnu.org. ##
7391 +## ------------------------------------ ##
7392 +_ASBOX
7393 +    ) |
7394 +      sed "s/^/$as_me: WARNING:     /" >&2
7395 +    ;;
7396 +  no:yes )
7397 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7398 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7399 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7400 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7401 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7402 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7403 +    (
7404 +      cat <<\_ASBOX
7405 +## ------------------------------------ ##
7406 +## Report this to bug-autoconf@gnu.org. ##
7407 +## ------------------------------------ ##
7408 +_ASBOX
7409 +    ) |
7410 +      sed "s/^/$as_me: WARNING:     /" >&2
7411 +    ;;
7412 +esac
7413 +echo "$as_me:$LINENO: checking for $ac_header" >&5
7414 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7415 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
7416 +  echo $ECHO_N "(cached) $ECHO_C" >&6
7417 +else
7418 +  eval "$as_ac_Header=$ac_header_preproc"
7419 +fi
7420 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7421 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7422 +
7423 +fi
7424 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
7425 +  cat >>confdefs.h <<_ACEOF
7426 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7427 +_ACEOF
7428 +
7429 +fi
7430 +
7431  done
7432  
7433 -for ac_hdr in setjmp.h
7434 +
7435 +for ac_header in setjmp.h
7436  do
7437 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7438 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7439 -echo "configure:2016: checking for $ac_hdr" >&5
7440 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7441 -  echo $ac_n "(cached) $ac_c" 1>&6
7442 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7443 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
7444 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
7445 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7446 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
7447 +  echo $ECHO_N "(cached) $ECHO_C" >&6
7448 +fi
7449 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7450 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7451  else
7452 -  cat > conftest.$ac_ext <<EOF
7453 -#line 2021 "configure"
7454 -#include "confdefs.h"
7455 -#include <$ac_hdr>
7456 -EOF
7457 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7458 -{ (eval echo configure:2026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7459 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7460 -if test -z "$ac_err"; then
7461 -  rm -rf conftest*
7462 -  eval "ac_cv_header_$ac_safe=yes"
7463 +  # Is the header compilable?
7464 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
7465 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7466 +cat >conftest.$ac_ext <<_ACEOF
7467 +#line $LINENO "configure"
7468 +/* confdefs.h.  */
7469 +_ACEOF
7470 +cat confdefs.h >>conftest.$ac_ext
7471 +cat >>conftest.$ac_ext <<_ACEOF
7472 +/* end confdefs.h.  */
7473 +$ac_includes_default
7474 +#include <$ac_header>
7475 +_ACEOF
7476 +rm -f conftest.$ac_objext
7477 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7478 +  (eval $ac_compile) 2>&5
7479 +  ac_status=$?
7480 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 +  (exit $ac_status); } &&
7482 +         { ac_try='test -s conftest.$ac_objext'
7483 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 +  (eval $ac_try) 2>&5
7485 +  ac_status=$?
7486 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 +  (exit $ac_status); }; }; then
7488 +  ac_header_compiler=yes
7489  else
7490 -  echo "$ac_err" >&5
7491 -  echo "configure: failed program was:" >&5
7492 -  cat conftest.$ac_ext >&5
7493 -  rm -rf conftest*
7494 -  eval "ac_cv_header_$ac_safe=no"
7495 +  echo "$as_me: failed program was:" >&5
7496 +sed 's/^/| /' conftest.$ac_ext >&5
7497 +
7498 +ac_header_compiler=no
7499  fi
7500 -rm -f conftest*
7501 +rm -f conftest.$ac_objext conftest.$ac_ext
7502 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7503 +echo "${ECHO_T}$ac_header_compiler" >&6
7504 +
7505 +# Is the header present?
7506 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
7507 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7508 +cat >conftest.$ac_ext <<_ACEOF
7509 +#line $LINENO "configure"
7510 +/* confdefs.h.  */
7511 +_ACEOF
7512 +cat confdefs.h >>conftest.$ac_ext
7513 +cat >>conftest.$ac_ext <<_ACEOF
7514 +/* end confdefs.h.  */
7515 +#include <$ac_header>
7516 +_ACEOF
7517 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7518 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7519 +  ac_status=$?
7520 +  grep -v '^ *+' conftest.er1 >conftest.err
7521 +  rm -f conftest.er1
7522 +  cat conftest.err >&5
7523 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 +  (exit $ac_status); } >/dev/null; then
7525 +  if test -s conftest.err; then
7526 +    ac_cpp_err=$ac_c_preproc_warn_flag
7527 +  else
7528 +    ac_cpp_err=
7529 +  fi
7530 +else
7531 +  ac_cpp_err=yes
7532  fi
7533 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7534 -  echo "$ac_t""yes" 1>&6
7535 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7536 -  cat >> confdefs.h <<EOF
7537 -#define $ac_tr_hdr 1
7538 -EOF
7539
7540 +if test -z "$ac_cpp_err"; then
7541 +  ac_header_preproc=yes
7542  else
7543 -  echo "$ac_t""no" 1>&6
7544 +  echo "$as_me: failed program was:" >&5
7545 +sed 's/^/| /' conftest.$ac_ext >&5
7546 +
7547 +  ac_header_preproc=no
7548  fi
7549 +rm -f conftest.err conftest.$ac_ext
7550 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7551 +echo "${ECHO_T}$ac_header_preproc" >&6
7552 +
7553 +# So?  What about this header?
7554 +case $ac_header_compiler:$ac_header_preproc in
7555 +  yes:no )
7556 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7557 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7558 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7559 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7560 +    (
7561 +      cat <<\_ASBOX
7562 +## ------------------------------------ ##
7563 +## Report this to bug-autoconf@gnu.org. ##
7564 +## ------------------------------------ ##
7565 +_ASBOX
7566 +    ) |
7567 +      sed "s/^/$as_me: WARNING:     /" >&2
7568 +    ;;
7569 +  no:yes )
7570 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7571 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7572 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7573 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7574 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7575 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7576 +    (
7577 +      cat <<\_ASBOX
7578 +## ------------------------------------ ##
7579 +## Report this to bug-autoconf@gnu.org. ##
7580 +## ------------------------------------ ##
7581 +_ASBOX
7582 +    ) |
7583 +      sed "s/^/$as_me: WARNING:     /" >&2
7584 +    ;;
7585 +esac
7586 +echo "$as_me:$LINENO: checking for $ac_header" >&5
7587 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7588 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
7589 +  echo $ECHO_N "(cached) $ECHO_C" >&6
7590 +else
7591 +  eval "$as_ac_Header=$ac_header_preproc"
7592 +fi
7593 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7594 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7595 +
7596 +fi
7597 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
7598 +  cat >>confdefs.h <<_ACEOF
7599 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7600 +_ACEOF
7601 +
7602 +fi
7603 +
7604  done
7605  
7606 -for ac_hdr in langinfo.h
7607 +
7608 +for ac_header in langinfo.h
7609  do
7610 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7611 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7612 -echo "configure:2056: checking for $ac_hdr" >&5
7613 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7614 -  echo $ac_n "(cached) $ac_c" 1>&6
7615 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7616 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
7617 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
7618 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7619 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
7620 +  echo $ECHO_N "(cached) $ECHO_C" >&6
7621 +fi
7622 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7623 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7624  else
7625 -  cat > conftest.$ac_ext <<EOF
7626 -#line 2061 "configure"
7627 -#include "confdefs.h"
7628 -#include <$ac_hdr>
7629 -EOF
7630 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7631 -{ (eval echo configure:2066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7632 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7633 -if test -z "$ac_err"; then
7634 -  rm -rf conftest*
7635 -  eval "ac_cv_header_$ac_safe=yes"
7636 +  # Is the header compilable?
7637 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
7638 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7639 +cat >conftest.$ac_ext <<_ACEOF
7640 +#line $LINENO "configure"
7641 +/* confdefs.h.  */
7642 +_ACEOF
7643 +cat confdefs.h >>conftest.$ac_ext
7644 +cat >>conftest.$ac_ext <<_ACEOF
7645 +/* end confdefs.h.  */
7646 +$ac_includes_default
7647 +#include <$ac_header>
7648 +_ACEOF
7649 +rm -f conftest.$ac_objext
7650 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7651 +  (eval $ac_compile) 2>&5
7652 +  ac_status=$?
7653 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 +  (exit $ac_status); } &&
7655 +         { ac_try='test -s conftest.$ac_objext'
7656 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 +  (eval $ac_try) 2>&5
7658 +  ac_status=$?
7659 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 +  (exit $ac_status); }; }; then
7661 +  ac_header_compiler=yes
7662  else
7663 -  echo "$ac_err" >&5
7664 -  echo "configure: failed program was:" >&5
7665 -  cat conftest.$ac_ext >&5
7666 -  rm -rf conftest*
7667 -  eval "ac_cv_header_$ac_safe=no"
7668 +  echo "$as_me: failed program was:" >&5
7669 +sed 's/^/| /' conftest.$ac_ext >&5
7670 +
7671 +ac_header_compiler=no
7672  fi
7673 -rm -f conftest*
7674 +rm -f conftest.$ac_objext conftest.$ac_ext
7675 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7676 +echo "${ECHO_T}$ac_header_compiler" >&6
7677 +
7678 +# Is the header present?
7679 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
7680 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7681 +cat >conftest.$ac_ext <<_ACEOF
7682 +#line $LINENO "configure"
7683 +/* confdefs.h.  */
7684 +_ACEOF
7685 +cat confdefs.h >>conftest.$ac_ext
7686 +cat >>conftest.$ac_ext <<_ACEOF
7687 +/* end confdefs.h.  */
7688 +#include <$ac_header>
7689 +_ACEOF
7690 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7691 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7692 +  ac_status=$?
7693 +  grep -v '^ *+' conftest.er1 >conftest.err
7694 +  rm -f conftest.er1
7695 +  cat conftest.err >&5
7696 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 +  (exit $ac_status); } >/dev/null; then
7698 +  if test -s conftest.err; then
7699 +    ac_cpp_err=$ac_c_preproc_warn_flag
7700 +  else
7701 +    ac_cpp_err=
7702 +  fi
7703 +else
7704 +  ac_cpp_err=yes
7705  fi
7706 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7707 -  echo "$ac_t""yes" 1>&6
7708 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7709 -  cat >> confdefs.h <<EOF
7710 -#define $ac_tr_hdr 1
7711 -EOF
7712
7713 +if test -z "$ac_cpp_err"; then
7714 +  ac_header_preproc=yes
7715  else
7716 -  echo "$ac_t""no" 1>&6
7717 +  echo "$as_me: failed program was:" >&5
7718 +sed 's/^/| /' conftest.$ac_ext >&5
7719 +
7720 +  ac_header_preproc=no
7721  fi
7722 +rm -f conftest.err conftest.$ac_ext
7723 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7724 +echo "${ECHO_T}$ac_header_preproc" >&6
7725 +
7726 +# So?  What about this header?
7727 +case $ac_header_compiler:$ac_header_preproc in
7728 +  yes:no )
7729 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7730 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7731 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7732 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7733 +    (
7734 +      cat <<\_ASBOX
7735 +## ------------------------------------ ##
7736 +## Report this to bug-autoconf@gnu.org. ##
7737 +## ------------------------------------ ##
7738 +_ASBOX
7739 +    ) |
7740 +      sed "s/^/$as_me: WARNING:     /" >&2
7741 +    ;;
7742 +  no:yes )
7743 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7744 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7745 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7746 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7747 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7748 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7749 +    (
7750 +      cat <<\_ASBOX
7751 +## ------------------------------------ ##
7752 +## Report this to bug-autoconf@gnu.org. ##
7753 +## ------------------------------------ ##
7754 +_ASBOX
7755 +    ) |
7756 +      sed "s/^/$as_me: WARNING:     /" >&2
7757 +    ;;
7758 +esac
7759 +echo "$as_me:$LINENO: checking for $ac_header" >&5
7760 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7761 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
7762 +  echo $ECHO_N "(cached) $ECHO_C" >&6
7763 +else
7764 +  eval "$as_ac_Header=$ac_header_preproc"
7765 +fi
7766 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7767 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7768 +
7769 +fi
7770 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
7771 +  cat >>confdefs.h <<_ACEOF
7772 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7773 +_ACEOF
7774 +
7775 +fi
7776 +
7777  done
7778  
7779  
7780 -echo $ac_n "checking for working const""... $ac_c" 1>&6
7781 -echo "configure:2094: checking for working const" >&5
7782 -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7783 -  echo $ac_n "(cached) $ac_c" 1>&6
7784 +echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7785 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7786 +if test "${ac_cv_c_const+set}" = set; then
7787 +  echo $ECHO_N "(cached) $ECHO_C" >&6
7788  else
7789 -  cat > conftest.$ac_ext <<EOF
7790 -#line 2099 "configure"
7791 -#include "confdefs.h"
7792 +  cat >conftest.$ac_ext <<_ACEOF
7793 +#line $LINENO "configure"
7794 +/* confdefs.h.  */
7795 +_ACEOF
7796 +cat confdefs.h >>conftest.$ac_ext
7797 +cat >>conftest.$ac_ext <<_ACEOF
7798 +/* end confdefs.h.  */
7799  
7800 -int main() {
7801 +int
7802 +main ()
7803 +{
7804 +/* FIXME: Include the comments suggested by Paul. */
7805 +#ifndef __cplusplus
7806 +  /* Ultrix mips cc rejects this.  */
7807 +  typedef int charset[2];
7808 +  const charset x;
7809 +  /* SunOS 4.1.1 cc rejects this.  */
7810 +  char const *const *ccp;
7811 +  char **p;
7812 +  /* NEC SVR4.0.2 mips cc rejects this.  */
7813 +  struct point {int x, y;};
7814 +  static struct point const zero = {0,0};
7815 +  /* AIX XL C 1.02.0.0 rejects this.
7816 +     It does not let you subtract one const X* pointer from another in
7817 +     an arm of an if-expression whose if-part is not a constant
7818 +     expression */
7819 +  const char *g = "string";
7820 +  ccp = &g + (g ? g-g : 0);
7821 +  /* HPUX 7.0 cc rejects these. */
7822 +  ++ccp;
7823 +  p = (char**) ccp;
7824 +  ccp = (char const *const *) p;
7825 +  { /* SCO 3.2v4 cc rejects this.  */
7826 +    char *t;
7827 +    char const *s = 0 ? (char *) 0 : (char const *) 0;
7828  
7829 -/* Ultrix mips cc rejects this.  */
7830 -typedef int charset[2]; const charset x;
7831 -/* SunOS 4.1.1 cc rejects this.  */
7832 -char const *const *ccp;
7833 -char **p;
7834 -/* NEC SVR4.0.2 mips cc rejects this.  */
7835 -struct point {int x, y;};
7836 -static struct point const zero = {0,0};
7837 -/* AIX XL C 1.02.0.0 rejects this.
7838 -   It does not let you subtract one const X* pointer from another in an arm
7839 -   of an if-expression whose if-part is not a constant expression */
7840 -const char *g = "string";
7841 -ccp = &g + (g ? g-g : 0);
7842 -/* HPUX 7.0 cc rejects these. */
7843 -++ccp;
7844 -p = (char**) ccp;
7845 -ccp = (char const *const *) p;
7846 -{ /* SCO 3.2v4 cc rejects this.  */
7847 -  char *t;
7848 -  char const *s = 0 ? (char *) 0 : (char const *) 0;
7849 +    *t++ = 0;
7850 +  }
7851 +  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7852 +    int x[] = {25, 17};
7853 +    const int *foo = &x[0];
7854 +    ++foo;
7855 +  }
7856 +  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7857 +    typedef const int *iptr;
7858 +    iptr p = 0;
7859 +    ++p;
7860 +  }
7861 +  { /* AIX XL C 1.02.0.0 rejects this saying
7862 +       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7863 +    struct s { int j; const int *ap[3]; };
7864 +    struct s *b; b->j = 5;
7865 +  }
7866 +  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7867 +    const int foo = 10;
7868 +  }
7869 +#endif
7870  
7871 -  *t++ = 0;
7872 -}
7873 -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7874 -  int x[] = {25, 17};
7875 -  const int *foo = &x[0];
7876 -  ++foo;
7877 -}
7878 -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7879 -  typedef const int *iptr;
7880 -  iptr p = 0;
7881 -  ++p;
7882 -}
7883 -{ /* AIX XL C 1.02.0.0 rejects this saying
7884 -     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7885 -  struct s { int j; const int *ap[3]; };
7886 -  struct s *b; b->j = 5;
7887 -}
7888 -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7889 -  const int foo = 10;
7890 +  ;
7891 +  return 0;
7892  }
7893 -
7894 -; return 0; }
7895 -EOF
7896 -if { (eval echo configure:2148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7897 -  rm -rf conftest*
7898 +_ACEOF
7899 +rm -f conftest.$ac_objext
7900 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7901 +  (eval $ac_compile) 2>&5
7902 +  ac_status=$?
7903 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 +  (exit $ac_status); } &&
7905 +         { ac_try='test -s conftest.$ac_objext'
7906 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907 +  (eval $ac_try) 2>&5
7908 +  ac_status=$?
7909 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 +  (exit $ac_status); }; }; then
7911    ac_cv_c_const=yes
7912  else
7913 -  echo "configure: failed program was:" >&5
7914 -  cat conftest.$ac_ext >&5
7915 -  rm -rf conftest*
7916 -  ac_cv_c_const=no
7917 +  echo "$as_me: failed program was:" >&5
7918 +sed 's/^/| /' conftest.$ac_ext >&5
7919 +
7920 +ac_cv_c_const=no
7921  fi
7922 -rm -f conftest*
7923 +rm -f conftest.$ac_objext conftest.$ac_ext
7924  fi
7925 -
7926 -echo "$ac_t""$ac_cv_c_const" 1>&6
7927 +echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7928 +echo "${ECHO_T}$ac_cv_c_const" >&6
7929  if test $ac_cv_c_const = no; then
7930 -  cat >> confdefs.h <<\EOF
7931 -#define const 
7932 -EOF
7933 +
7934 +cat >>confdefs.h <<\_ACEOF
7935 +#define const
7936 +_ACEOF
7937  
7938  fi
7939  
7940 -echo $ac_n "checking for inline""... $ac_c" 1>&6
7941 -echo "configure:2169: checking for inline" >&5
7942 -if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
7943 -  echo $ac_n "(cached) $ac_c" 1>&6
7944 +echo "$as_me:$LINENO: checking for inline" >&5
7945 +echo $ECHO_N "checking for inline... $ECHO_C" >&6
7946 +if test "${ac_cv_c_inline+set}" = set; then
7947 +  echo $ECHO_N "(cached) $ECHO_C" >&6
7948  else
7949    ac_cv_c_inline=no
7950  for ac_kw in inline __inline__ __inline; do
7951 -  cat > conftest.$ac_ext <<EOF
7952 -#line 2176 "configure"
7953 -#include "confdefs.h"
7954 +  cat >conftest.$ac_ext <<_ACEOF
7955 +#line $LINENO "configure"
7956 +/* confdefs.h.  */
7957 +_ACEOF
7958 +cat confdefs.h >>conftest.$ac_ext
7959 +cat >>conftest.$ac_ext <<_ACEOF
7960 +/* end confdefs.h.  */
7961 +#ifndef __cplusplus
7962 +typedef int foo_t;
7963 +static $ac_kw foo_t static_foo () {return 0; }
7964 +$ac_kw foo_t foo () {return 0; }
7965 +#endif
7966  
7967 -int main() {
7968 -} $ac_kw foo() {
7969 -; return 0; }
7970 -EOF
7971 -if { (eval echo configure:2183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7972 -  rm -rf conftest*
7973 +_ACEOF
7974 +rm -f conftest.$ac_objext
7975 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7976 +  (eval $ac_compile) 2>&5
7977 +  ac_status=$?
7978 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 +  (exit $ac_status); } &&
7980 +         { ac_try='test -s conftest.$ac_objext'
7981 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982 +  (eval $ac_try) 2>&5
7983 +  ac_status=$?
7984 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 +  (exit $ac_status); }; }; then
7986    ac_cv_c_inline=$ac_kw; break
7987  else
7988 -  echo "configure: failed program was:" >&5
7989 -  cat conftest.$ac_ext >&5
7990 +  echo "$as_me: failed program was:" >&5
7991 +sed 's/^/| /' conftest.$ac_ext >&5
7992 +
7993  fi
7994 -rm -f conftest*
7995 +rm -f conftest.$ac_objext conftest.$ac_ext
7996  done
7997  
7998  fi
7999 -
8000 -echo "$ac_t""$ac_cv_c_inline" 1>&6
8001 -case "$ac_cv_c_inline" in
8002 +echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8003 +echo "${ECHO_T}$ac_cv_c_inline" >&6
8004 +case $ac_cv_c_inline in
8005    inline | yes) ;;
8006 -  no) cat >> confdefs.h <<\EOF
8007 -#define inline 
8008 -EOF
8009 +  no)
8010 +cat >>confdefs.h <<\_ACEOF
8011 +#define inline
8012 +_ACEOF
8013   ;;
8014 -  *)  cat >> confdefs.h <<EOF
8015 +  *)  cat >>confdefs.h <<_ACEOF
8016  #define inline $ac_cv_c_inline
8017 -EOF
8018 +_ACEOF
8019   ;;
8020  esac
8021  
8022 -echo $ac_n "checking for size_t""... $ac_c" 1>&6
8023 -echo "configure:2209: checking for size_t" >&5
8024 -if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8025 -  echo $ac_n "(cached) $ac_c" 1>&6
8026 +echo "$as_me:$LINENO: checking for size_t" >&5
8027 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8028 +if test "${ac_cv_type_size_t+set}" = set; then
8029 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8030  else
8031 -  cat > conftest.$ac_ext <<EOF
8032 -#line 2214 "configure"
8033 -#include "confdefs.h"
8034 -#include <sys/types.h>
8035 -#if STDC_HEADERS
8036 -#include <stdlib.h>
8037 -#include <stddef.h>
8038 -#endif
8039 -EOF
8040 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8041 -  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8042 -  rm -rf conftest*
8043 +  cat >conftest.$ac_ext <<_ACEOF
8044 +#line $LINENO "configure"
8045 +/* confdefs.h.  */
8046 +_ACEOF
8047 +cat confdefs.h >>conftest.$ac_ext
8048 +cat >>conftest.$ac_ext <<_ACEOF
8049 +/* end confdefs.h.  */
8050 +$ac_includes_default
8051 +int
8052 +main ()
8053 +{
8054 +if ((size_t *) 0)
8055 +  return 0;
8056 +if (sizeof (size_t))
8057 +  return 0;
8058 +  ;
8059 +  return 0;
8060 +}
8061 +_ACEOF
8062 +rm -f conftest.$ac_objext
8063 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8064 +  (eval $ac_compile) 2>&5
8065 +  ac_status=$?
8066 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 +  (exit $ac_status); } &&
8068 +         { ac_try='test -s conftest.$ac_objext'
8069 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 +  (eval $ac_try) 2>&5
8071 +  ac_status=$?
8072 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 +  (exit $ac_status); }; }; then
8074    ac_cv_type_size_t=yes
8075  else
8076 -  rm -rf conftest*
8077 -  ac_cv_type_size_t=no
8078 -fi
8079 -rm -f conftest*
8080 +  echo "$as_me: failed program was:" >&5
8081 +sed 's/^/| /' conftest.$ac_ext >&5
8082  
8083 +ac_cv_type_size_t=no
8084  fi
8085 -echo "$ac_t""$ac_cv_type_size_t" 1>&6
8086 -if test $ac_cv_type_size_t = no; then
8087 -  cat >> confdefs.h <<\EOF
8088 +rm -f conftest.$ac_objext conftest.$ac_ext
8089 +fi
8090 +echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8091 +echo "${ECHO_T}$ac_cv_type_size_t" >&6
8092 +if test $ac_cv_type_size_t = yes; then
8093 +  :
8094 +else
8095 +
8096 +cat >>confdefs.h <<_ACEOF
8097  #define size_t unsigned
8098 -EOF
8099 +_ACEOF
8100  
8101  fi
8102  
8103 -echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
8104 -echo "configure:2242: checking whether time.h and sys/time.h may both be included" >&5
8105 -if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
8106 -  echo $ac_n "(cached) $ac_c" 1>&6
8107 +echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8108 +echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8109 +if test "${ac_cv_header_time+set}" = set; then
8110 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8111  else
8112 -  cat > conftest.$ac_ext <<EOF
8113 -#line 2247 "configure"
8114 -#include "confdefs.h"
8115 +  cat >conftest.$ac_ext <<_ACEOF
8116 +#line $LINENO "configure"
8117 +/* confdefs.h.  */
8118 +_ACEOF
8119 +cat confdefs.h >>conftest.$ac_ext
8120 +cat >>conftest.$ac_ext <<_ACEOF
8121 +/* end confdefs.h.  */
8122  #include <sys/types.h>
8123  #include <sys/time.h>
8124  #include <time.h>
8125 -int main() {
8126 -struct tm *tp;
8127 -; return 0; }
8128 -EOF
8129 -if { (eval echo configure:2256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8130 -  rm -rf conftest*
8131 +
8132 +int
8133 +main ()
8134 +{
8135 +if ((struct tm *) 0)
8136 +return 0;
8137 +  ;
8138 +  return 0;
8139 +}
8140 +_ACEOF
8141 +rm -f conftest.$ac_objext
8142 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8143 +  (eval $ac_compile) 2>&5
8144 +  ac_status=$?
8145 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 +  (exit $ac_status); } &&
8147 +         { ac_try='test -s conftest.$ac_objext'
8148 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 +  (eval $ac_try) 2>&5
8150 +  ac_status=$?
8151 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 +  (exit $ac_status); }; }; then
8153    ac_cv_header_time=yes
8154  else
8155 -  echo "configure: failed program was:" >&5
8156 -  cat conftest.$ac_ext >&5
8157 -  rm -rf conftest*
8158 -  ac_cv_header_time=no
8159 +  echo "$as_me: failed program was:" >&5
8160 +sed 's/^/| /' conftest.$ac_ext >&5
8161 +
8162 +ac_cv_header_time=no
8163  fi
8164 -rm -f conftest*
8165 +rm -f conftest.$ac_objext conftest.$ac_ext
8166  fi
8167 -
8168 -echo "$ac_t""$ac_cv_header_time" 1>&6
8169 +echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8170 +echo "${ECHO_T}$ac_cv_header_time" >&6
8171  if test $ac_cv_header_time = yes; then
8172 -  cat >> confdefs.h <<\EOF
8173 +
8174 +cat >>confdefs.h <<\_ACEOF
8175  #define TIME_WITH_SYS_TIME 1
8176 -EOF
8177 +_ACEOF
8178  
8179  fi
8180  
8181 -echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
8182 -echo "configure:2277: checking whether struct tm is in sys/time.h or time.h" >&5
8183 -if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
8184 -  echo $ac_n "(cached) $ac_c" 1>&6
8185 +echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8186 +echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8187 +if test "${ac_cv_struct_tm+set}" = set; then
8188 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8189  else
8190 -  cat > conftest.$ac_ext <<EOF
8191 -#line 2282 "configure"
8192 -#include "confdefs.h"
8193 +  cat >conftest.$ac_ext <<_ACEOF
8194 +#line $LINENO "configure"
8195 +/* confdefs.h.  */
8196 +_ACEOF
8197 +cat confdefs.h >>conftest.$ac_ext
8198 +cat >>conftest.$ac_ext <<_ACEOF
8199 +/* end confdefs.h.  */
8200  #include <sys/types.h>
8201  #include <time.h>
8202 -int main() {
8203 +
8204 +int
8205 +main ()
8206 +{
8207  struct tm *tp; tp->tm_sec;
8208 -; return 0; }
8209 -EOF
8210 -if { (eval echo configure:2290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8211 -  rm -rf conftest*
8212 +  ;
8213 +  return 0;
8214 +}
8215 +_ACEOF
8216 +rm -f conftest.$ac_objext
8217 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8218 +  (eval $ac_compile) 2>&5
8219 +  ac_status=$?
8220 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 +  (exit $ac_status); } &&
8222 +         { ac_try='test -s conftest.$ac_objext'
8223 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 +  (eval $ac_try) 2>&5
8225 +  ac_status=$?
8226 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 +  (exit $ac_status); }; }; then
8228    ac_cv_struct_tm=time.h
8229  else
8230 -  echo "configure: failed program was:" >&5
8231 -  cat conftest.$ac_ext >&5
8232 -  rm -rf conftest*
8233 -  ac_cv_struct_tm=sys/time.h
8234 +  echo "$as_me: failed program was:" >&5
8235 +sed 's/^/| /' conftest.$ac_ext >&5
8236 +
8237 +ac_cv_struct_tm=sys/time.h
8238  fi
8239 -rm -f conftest*
8240 +rm -f conftest.$ac_objext conftest.$ac_ext
8241  fi
8242 -
8243 -echo "$ac_t""$ac_cv_struct_tm" 1>&6
8244 +echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8245 +echo "${ECHO_T}$ac_cv_struct_tm" >&6
8246  if test $ac_cv_struct_tm = sys/time.h; then
8247 -  cat >> confdefs.h <<\EOF
8248 +
8249 +cat >>confdefs.h <<\_ACEOF
8250  #define TM_IN_SYS_TIME 1
8251 -EOF
8252 +_ACEOF
8253  
8254  fi
8255  
8256 @@ -2315,251 +6606,2187 @@
8257         default_int=0
8258  fi
8259  
8260 -echo $ac_n "checking size of short""... $ac_c" 1>&6
8261 -echo "configure:2320: checking size of short" >&5
8262 -if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8263 -  echo $ac_n "(cached) $ac_c" 1>&6
8264 +echo "$as_me:$LINENO: checking for short" >&5
8265 +echo $ECHO_N "checking for short... $ECHO_C" >&6
8266 +if test "${ac_cv_type_short+set}" = set; then
8267 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8268 +else
8269 +  cat >conftest.$ac_ext <<_ACEOF
8270 +#line $LINENO "configure"
8271 +/* confdefs.h.  */
8272 +_ACEOF
8273 +cat confdefs.h >>conftest.$ac_ext
8274 +cat >>conftest.$ac_ext <<_ACEOF
8275 +/* end confdefs.h.  */
8276 +$ac_includes_default
8277 +int
8278 +main ()
8279 +{
8280 +if ((short *) 0)
8281 +  return 0;
8282 +if (sizeof (short))
8283 +  return 0;
8284 +  ;
8285 +  return 0;
8286 +}
8287 +_ACEOF
8288 +rm -f conftest.$ac_objext
8289 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8290 +  (eval $ac_compile) 2>&5
8291 +  ac_status=$?
8292 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 +  (exit $ac_status); } &&
8294 +         { ac_try='test -s conftest.$ac_objext'
8295 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 +  (eval $ac_try) 2>&5
8297 +  ac_status=$?
8298 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 +  (exit $ac_status); }; }; then
8300 +  ac_cv_type_short=yes
8301  else
8302 +  echo "$as_me: failed program was:" >&5
8303 +sed 's/^/| /' conftest.$ac_ext >&5
8304 +
8305 +ac_cv_type_short=no
8306 +fi
8307 +rm -f conftest.$ac_objext conftest.$ac_ext
8308 +fi
8309 +echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8310 +echo "${ECHO_T}$ac_cv_type_short" >&6
8311 +
8312 +echo "$as_me:$LINENO: checking size of short" >&5
8313 +echo $ECHO_N "checking size of short... $ECHO_C" >&6
8314 +if test "${ac_cv_sizeof_short+set}" = set; then
8315 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8316 +else
8317 +  if test "$ac_cv_type_short" = yes; then
8318 +  # The cast to unsigned long works around a bug in the HP C Compiler
8319 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8320 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8321 +  # This bug is HP SR number 8606223364.
8322    if test "$cross_compiling" = yes; then
8323 -  ac_cv_sizeof_short="$default_short"
8324 +  # Depending upon the size, compute the lo and hi bounds.
8325 +cat >conftest.$ac_ext <<_ACEOF
8326 +#line $LINENO "configure"
8327 +/* confdefs.h.  */
8328 +_ACEOF
8329 +cat confdefs.h >>conftest.$ac_ext
8330 +cat >>conftest.$ac_ext <<_ACEOF
8331 +/* end confdefs.h.  */
8332 +$ac_includes_default
8333 +int
8334 +main ()
8335 +{
8336 +static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
8337 +test_array [0] = 0
8338 +
8339 +  ;
8340 +  return 0;
8341 +}
8342 +_ACEOF
8343 +rm -f conftest.$ac_objext
8344 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8345 +  (eval $ac_compile) 2>&5
8346 +  ac_status=$?
8347 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 +  (exit $ac_status); } &&
8349 +         { ac_try='test -s conftest.$ac_objext'
8350 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351 +  (eval $ac_try) 2>&5
8352 +  ac_status=$?
8353 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 +  (exit $ac_status); }; }; then
8355 +  ac_lo=0 ac_mid=0
8356 +  while :; do
8357 +    cat >conftest.$ac_ext <<_ACEOF
8358 +#line $LINENO "configure"
8359 +/* confdefs.h.  */
8360 +_ACEOF
8361 +cat confdefs.h >>conftest.$ac_ext
8362 +cat >>conftest.$ac_ext <<_ACEOF
8363 +/* end confdefs.h.  */
8364 +$ac_includes_default
8365 +int
8366 +main ()
8367 +{
8368 +static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8369 +test_array [0] = 0
8370 +
8371 +  ;
8372 +  return 0;
8373 +}
8374 +_ACEOF
8375 +rm -f conftest.$ac_objext
8376 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8377 +  (eval $ac_compile) 2>&5
8378 +  ac_status=$?
8379 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 +  (exit $ac_status); } &&
8381 +         { ac_try='test -s conftest.$ac_objext'
8382 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 +  (eval $ac_try) 2>&5
8384 +  ac_status=$?
8385 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 +  (exit $ac_status); }; }; then
8387 +  ac_hi=$ac_mid; break
8388  else
8389 -  cat > conftest.$ac_ext <<EOF
8390 -#line 2328 "configure"
8391 -#include "confdefs.h"
8392 +  echo "$as_me: failed program was:" >&5
8393 +sed 's/^/| /' conftest.$ac_ext >&5
8394 +
8395 +ac_lo=`expr $ac_mid + 1`
8396 +                    if test $ac_lo -le $ac_mid; then
8397 +                      ac_lo= ac_hi=
8398 +                      break
8399 +                    fi
8400 +                    ac_mid=`expr 2 '*' $ac_mid + 1`
8401 +fi
8402 +rm -f conftest.$ac_objext conftest.$ac_ext
8403 +  done
8404 +else
8405 +  echo "$as_me: failed program was:" >&5
8406 +sed 's/^/| /' conftest.$ac_ext >&5
8407 +
8408 +cat >conftest.$ac_ext <<_ACEOF
8409 +#line $LINENO "configure"
8410 +/* confdefs.h.  */
8411 +_ACEOF
8412 +cat confdefs.h >>conftest.$ac_ext
8413 +cat >>conftest.$ac_ext <<_ACEOF
8414 +/* end confdefs.h.  */
8415 +$ac_includes_default
8416 +int
8417 +main ()
8418 +{
8419 +static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
8420 +test_array [0] = 0
8421 +
8422 +  ;
8423 +  return 0;
8424 +}
8425 +_ACEOF
8426 +rm -f conftest.$ac_objext
8427 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8428 +  (eval $ac_compile) 2>&5
8429 +  ac_status=$?
8430 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 +  (exit $ac_status); } &&
8432 +         { ac_try='test -s conftest.$ac_objext'
8433 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 +  (eval $ac_try) 2>&5
8435 +  ac_status=$?
8436 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 +  (exit $ac_status); }; }; then
8438 +  ac_hi=-1 ac_mid=-1
8439 +  while :; do
8440 +    cat >conftest.$ac_ext <<_ACEOF
8441 +#line $LINENO "configure"
8442 +/* confdefs.h.  */
8443 +_ACEOF
8444 +cat confdefs.h >>conftest.$ac_ext
8445 +cat >>conftest.$ac_ext <<_ACEOF
8446 +/* end confdefs.h.  */
8447 +$ac_includes_default
8448 +int
8449 +main ()
8450 +{
8451 +static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
8452 +test_array [0] = 0
8453 +
8454 +  ;
8455 +  return 0;
8456 +}
8457 +_ACEOF
8458 +rm -f conftest.$ac_objext
8459 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8460 +  (eval $ac_compile) 2>&5
8461 +  ac_status=$?
8462 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 +  (exit $ac_status); } &&
8464 +         { ac_try='test -s conftest.$ac_objext'
8465 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 +  (eval $ac_try) 2>&5
8467 +  ac_status=$?
8468 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 +  (exit $ac_status); }; }; then
8470 +  ac_lo=$ac_mid; break
8471 +else
8472 +  echo "$as_me: failed program was:" >&5
8473 +sed 's/^/| /' conftest.$ac_ext >&5
8474 +
8475 +ac_hi=`expr '(' $ac_mid ')' - 1`
8476 +                       if test $ac_mid -le $ac_hi; then
8477 +                         ac_lo= ac_hi=
8478 +                         break
8479 +                       fi
8480 +                       ac_mid=`expr 2 '*' $ac_mid`
8481 +fi
8482 +rm -f conftest.$ac_objext conftest.$ac_ext
8483 +  done
8484 +else
8485 +  echo "$as_me: failed program was:" >&5
8486 +sed 's/^/| /' conftest.$ac_ext >&5
8487 +
8488 +ac_lo= ac_hi=
8489 +fi
8490 +rm -f conftest.$ac_objext conftest.$ac_ext
8491 +fi
8492 +rm -f conftest.$ac_objext conftest.$ac_ext
8493 +# Binary search between lo and hi bounds.
8494 +while test "x$ac_lo" != "x$ac_hi"; do
8495 +  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8496 +  cat >conftest.$ac_ext <<_ACEOF
8497 +#line $LINENO "configure"
8498 +/* confdefs.h.  */
8499 +_ACEOF
8500 +cat confdefs.h >>conftest.$ac_ext
8501 +cat >>conftest.$ac_ext <<_ACEOF
8502 +/* end confdefs.h.  */
8503 +$ac_includes_default
8504 +int
8505 +main ()
8506 +{
8507 +static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8508 +test_array [0] = 0
8509 +
8510 +  ;
8511 +  return 0;
8512 +}
8513 +_ACEOF
8514 +rm -f conftest.$ac_objext
8515 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8516 +  (eval $ac_compile) 2>&5
8517 +  ac_status=$?
8518 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 +  (exit $ac_status); } &&
8520 +         { ac_try='test -s conftest.$ac_objext'
8521 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522 +  (eval $ac_try) 2>&5
8523 +  ac_status=$?
8524 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 +  (exit $ac_status); }; }; then
8526 +  ac_hi=$ac_mid
8527 +else
8528 +  echo "$as_me: failed program was:" >&5
8529 +sed 's/^/| /' conftest.$ac_ext >&5
8530 +
8531 +ac_lo=`expr '(' $ac_mid ')' + 1`
8532 +fi
8533 +rm -f conftest.$ac_objext conftest.$ac_ext
8534 +done
8535 +case $ac_lo in
8536 +?*) ac_cv_sizeof_short=$ac_lo;;
8537 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8538 +See \`config.log' for more details." >&5
8539 +echo "$as_me: error: cannot compute sizeof (short), 77
8540 +See \`config.log' for more details." >&2;}
8541 +   { (exit 1); exit 1; }; } ;;
8542 +esac
8543 +else
8544 +  if test "$cross_compiling" = yes; then
8545 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8546 +See \`config.log' for more details." >&5
8547 +echo "$as_me: error: cannot run test program while cross compiling
8548 +See \`config.log' for more details." >&2;}
8549 +   { (exit 1); exit 1; }; }
8550 +else
8551 +  cat >conftest.$ac_ext <<_ACEOF
8552 +#line $LINENO "configure"
8553 +/* confdefs.h.  */
8554 +_ACEOF
8555 +cat confdefs.h >>conftest.$ac_ext
8556 +cat >>conftest.$ac_ext <<_ACEOF
8557 +/* end confdefs.h.  */
8558 +$ac_includes_default
8559 +long longval () { return (long) (sizeof (short)); }
8560 +unsigned long ulongval () { return (long) (sizeof (short)); }
8561  #include <stdio.h>
8562 -main()
8563 +#include <stdlib.h>
8564 +int
8565 +main ()
8566  {
8567 -  FILE *f=fopen("conftestval", "w");
8568 -  if (!f) exit(1);
8569 -  fprintf(f, "%d\n", sizeof(short));
8570 -  exit(0);
8571 +
8572 +  FILE *f = fopen ("conftest.val", "w");
8573 +  if (! f)
8574 +    exit (1);
8575 +  if (((long) (sizeof (short))) < 0)
8576 +    {
8577 +      long i = longval ();
8578 +      if (i != ((long) (sizeof (short))))
8579 +       exit (1);
8580 +      fprintf (f, "%ld\n", i);
8581 +    }
8582 +  else
8583 +    {
8584 +      unsigned long i = ulongval ();
8585 +      if (i != ((long) (sizeof (short))))
8586 +       exit (1);
8587 +      fprintf (f, "%lu\n", i);
8588 +    }
8589 +  exit (ferror (f) || fclose (f) != 0);
8590 +
8591 +  ;
8592 +  return 0;
8593  }
8594 -EOF
8595 -if { (eval echo configure:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8596 -then
8597 -  ac_cv_sizeof_short=`cat conftestval`
8598 +_ACEOF
8599 +rm -f conftest$ac_exeext
8600 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8601 +  (eval $ac_link) 2>&5
8602 +  ac_status=$?
8603 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8605 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606 +  (eval $ac_try) 2>&5
8607 +  ac_status=$?
8608 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 +  (exit $ac_status); }; }; then
8610 +  ac_cv_sizeof_short=`cat conftest.val`
8611 +else
8612 +  echo "$as_me: program exited with status $ac_status" >&5
8613 +echo "$as_me: failed program was:" >&5
8614 +sed 's/^/| /' conftest.$ac_ext >&5
8615 +
8616 +( exit $ac_status )
8617 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8618 +See \`config.log' for more details." >&5
8619 +echo "$as_me: error: cannot compute sizeof (short), 77
8620 +See \`config.log' for more details." >&2;}
8621 +   { (exit 1); exit 1; }; }
8622 +fi
8623 +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8624 +fi
8625 +fi
8626 +rm -f conftest.val
8627  else
8628 -  echo "configure: failed program was:" >&5
8629 -  cat conftest.$ac_ext >&5
8630 -  rm -fr conftest*
8631    ac_cv_sizeof_short=0
8632  fi
8633 -rm -fr conftest*
8634  fi
8635 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8636 +echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8637 +cat >>confdefs.h <<_ACEOF
8638 +#define SIZEOF_SHORT $ac_cv_sizeof_short
8639 +_ACEOF
8640 +
8641  
8642 +echo "$as_me:$LINENO: checking for unsigned short" >&5
8643 +echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
8644 +if test "${ac_cv_type_unsigned_short+set}" = set; then
8645 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8646 +else
8647 +  cat >conftest.$ac_ext <<_ACEOF
8648 +#line $LINENO "configure"
8649 +/* confdefs.h.  */
8650 +_ACEOF
8651 +cat confdefs.h >>conftest.$ac_ext
8652 +cat >>conftest.$ac_ext <<_ACEOF
8653 +/* end confdefs.h.  */
8654 +$ac_includes_default
8655 +int
8656 +main ()
8657 +{
8658 +if ((unsigned short *) 0)
8659 +  return 0;
8660 +if (sizeof (unsigned short))
8661 +  return 0;
8662 +  ;
8663 +  return 0;
8664 +}
8665 +_ACEOF
8666 +rm -f conftest.$ac_objext
8667 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8668 +  (eval $ac_compile) 2>&5
8669 +  ac_status=$?
8670 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 +  (exit $ac_status); } &&
8672 +         { ac_try='test -s conftest.$ac_objext'
8673 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 +  (eval $ac_try) 2>&5
8675 +  ac_status=$?
8676 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 +  (exit $ac_status); }; }; then
8678 +  ac_cv_type_unsigned_short=yes
8679 +else
8680 +  echo "$as_me: failed program was:" >&5
8681 +sed 's/^/| /' conftest.$ac_ext >&5
8682 +
8683 +ac_cv_type_unsigned_short=no
8684  fi
8685 -echo "$ac_t""$ac_cv_sizeof_short" 1>&6
8686 -cat >> confdefs.h <<EOF
8687 -#define SIZEOF_SHORT $ac_cv_sizeof_short
8688 -EOF
8689 +rm -f conftest.$ac_objext conftest.$ac_ext
8690 +fi
8691 +echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
8692 +echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
8693  
8694 +echo "$as_me:$LINENO: checking size of unsigned short" >&5
8695 +echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
8696 +if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
8697 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8698 +else
8699 +  if test "$ac_cv_type_unsigned_short" = yes; then
8700 +  # The cast to unsigned long works around a bug in the HP C Compiler
8701 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8702 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8703 +  # This bug is HP SR number 8606223364.
8704 +  if test "$cross_compiling" = yes; then
8705 +  # Depending upon the size, compute the lo and hi bounds.
8706 +cat >conftest.$ac_ext <<_ACEOF
8707 +#line $LINENO "configure"
8708 +/* confdefs.h.  */
8709 +_ACEOF
8710 +cat confdefs.h >>conftest.$ac_ext
8711 +cat >>conftest.$ac_ext <<_ACEOF
8712 +/* end confdefs.h.  */
8713 +$ac_includes_default
8714 +int
8715 +main ()
8716 +{
8717 +static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
8718 +test_array [0] = 0
8719  
8720 -echo $ac_n "checking size of unsigned short""... $ac_c" 1>&6
8721 -echo "configure:2359: checking size of unsigned short" >&5
8722 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short'+set}'`\" = set"; then
8723 -  echo $ac_n "(cached) $ac_c" 1>&6
8724 +  ;
8725 +  return 0;
8726 +}
8727 +_ACEOF
8728 +rm -f conftest.$ac_objext
8729 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8730 +  (eval $ac_compile) 2>&5
8731 +  ac_status=$?
8732 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 +  (exit $ac_status); } &&
8734 +         { ac_try='test -s conftest.$ac_objext'
8735 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 +  (eval $ac_try) 2>&5
8737 +  ac_status=$?
8738 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 +  (exit $ac_status); }; }; then
8740 +  ac_lo=0 ac_mid=0
8741 +  while :; do
8742 +    cat >conftest.$ac_ext <<_ACEOF
8743 +#line $LINENO "configure"
8744 +/* confdefs.h.  */
8745 +_ACEOF
8746 +cat confdefs.h >>conftest.$ac_ext
8747 +cat >>conftest.$ac_ext <<_ACEOF
8748 +/* end confdefs.h.  */
8749 +$ac_includes_default
8750 +int
8751 +main ()
8752 +{
8753 +static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
8754 +test_array [0] = 0
8755 +
8756 +  ;
8757 +  return 0;
8758 +}
8759 +_ACEOF
8760 +rm -f conftest.$ac_objext
8761 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8762 +  (eval $ac_compile) 2>&5
8763 +  ac_status=$?
8764 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 +  (exit $ac_status); } &&
8766 +         { ac_try='test -s conftest.$ac_objext'
8767 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 +  (eval $ac_try) 2>&5
8769 +  ac_status=$?
8770 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 +  (exit $ac_status); }; }; then
8772 +  ac_hi=$ac_mid; break
8773 +else
8774 +  echo "$as_me: failed program was:" >&5
8775 +sed 's/^/| /' conftest.$ac_ext >&5
8776 +
8777 +ac_lo=`expr $ac_mid + 1`
8778 +                    if test $ac_lo -le $ac_mid; then
8779 +                      ac_lo= ac_hi=
8780 +                      break
8781 +                    fi
8782 +                    ac_mid=`expr 2 '*' $ac_mid + 1`
8783 +fi
8784 +rm -f conftest.$ac_objext conftest.$ac_ext
8785 +  done
8786 +else
8787 +  echo "$as_me: failed program was:" >&5
8788 +sed 's/^/| /' conftest.$ac_ext >&5
8789 +
8790 +cat >conftest.$ac_ext <<_ACEOF
8791 +#line $LINENO "configure"
8792 +/* confdefs.h.  */
8793 +_ACEOF
8794 +cat confdefs.h >>conftest.$ac_ext
8795 +cat >>conftest.$ac_ext <<_ACEOF
8796 +/* end confdefs.h.  */
8797 +$ac_includes_default
8798 +int
8799 +main ()
8800 +{
8801 +static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
8802 +test_array [0] = 0
8803 +
8804 +  ;
8805 +  return 0;
8806 +}
8807 +_ACEOF
8808 +rm -f conftest.$ac_objext
8809 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8810 +  (eval $ac_compile) 2>&5
8811 +  ac_status=$?
8812 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 +  (exit $ac_status); } &&
8814 +         { ac_try='test -s conftest.$ac_objext'
8815 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 +  (eval $ac_try) 2>&5
8817 +  ac_status=$?
8818 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 +  (exit $ac_status); }; }; then
8820 +  ac_hi=-1 ac_mid=-1
8821 +  while :; do
8822 +    cat >conftest.$ac_ext <<_ACEOF
8823 +#line $LINENO "configure"
8824 +/* confdefs.h.  */
8825 +_ACEOF
8826 +cat confdefs.h >>conftest.$ac_ext
8827 +cat >>conftest.$ac_ext <<_ACEOF
8828 +/* end confdefs.h.  */
8829 +$ac_includes_default
8830 +int
8831 +main ()
8832 +{
8833 +static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
8834 +test_array [0] = 0
8835 +
8836 +  ;
8837 +  return 0;
8838 +}
8839 +_ACEOF
8840 +rm -f conftest.$ac_objext
8841 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8842 +  (eval $ac_compile) 2>&5
8843 +  ac_status=$?
8844 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 +  (exit $ac_status); } &&
8846 +         { ac_try='test -s conftest.$ac_objext'
8847 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 +  (eval $ac_try) 2>&5
8849 +  ac_status=$?
8850 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 +  (exit $ac_status); }; }; then
8852 +  ac_lo=$ac_mid; break
8853 +else
8854 +  echo "$as_me: failed program was:" >&5
8855 +sed 's/^/| /' conftest.$ac_ext >&5
8856 +
8857 +ac_hi=`expr '(' $ac_mid ')' - 1`
8858 +                       if test $ac_mid -le $ac_hi; then
8859 +                         ac_lo= ac_hi=
8860 +                         break
8861 +                       fi
8862 +                       ac_mid=`expr 2 '*' $ac_mid`
8863 +fi
8864 +rm -f conftest.$ac_objext conftest.$ac_ext
8865 +  done
8866 +else
8867 +  echo "$as_me: failed program was:" >&5
8868 +sed 's/^/| /' conftest.$ac_ext >&5
8869 +
8870 +ac_lo= ac_hi=
8871 +fi
8872 +rm -f conftest.$ac_objext conftest.$ac_ext
8873 +fi
8874 +rm -f conftest.$ac_objext conftest.$ac_ext
8875 +# Binary search between lo and hi bounds.
8876 +while test "x$ac_lo" != "x$ac_hi"; do
8877 +  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8878 +  cat >conftest.$ac_ext <<_ACEOF
8879 +#line $LINENO "configure"
8880 +/* confdefs.h.  */
8881 +_ACEOF
8882 +cat confdefs.h >>conftest.$ac_ext
8883 +cat >>conftest.$ac_ext <<_ACEOF
8884 +/* end confdefs.h.  */
8885 +$ac_includes_default
8886 +int
8887 +main ()
8888 +{
8889 +static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
8890 +test_array [0] = 0
8891 +
8892 +  ;
8893 +  return 0;
8894 +}
8895 +_ACEOF
8896 +rm -f conftest.$ac_objext
8897 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8898 +  (eval $ac_compile) 2>&5
8899 +  ac_status=$?
8900 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 +  (exit $ac_status); } &&
8902 +         { ac_try='test -s conftest.$ac_objext'
8903 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 +  (eval $ac_try) 2>&5
8905 +  ac_status=$?
8906 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 +  (exit $ac_status); }; }; then
8908 +  ac_hi=$ac_mid
8909 +else
8910 +  echo "$as_me: failed program was:" >&5
8911 +sed 's/^/| /' conftest.$ac_ext >&5
8912 +
8913 +ac_lo=`expr '(' $ac_mid ')' + 1`
8914 +fi
8915 +rm -f conftest.$ac_objext conftest.$ac_ext
8916 +done
8917 +case $ac_lo in
8918 +?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
8919 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
8920 +See \`config.log' for more details." >&5
8921 +echo "$as_me: error: cannot compute sizeof (unsigned short), 77
8922 +See \`config.log' for more details." >&2;}
8923 +   { (exit 1); exit 1; }; } ;;
8924 +esac
8925  else
8926    if test "$cross_compiling" = yes; then
8927 -  ac_cv_sizeof_unsigned_short="$default_short"
8928 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8929 +See \`config.log' for more details." >&5
8930 +echo "$as_me: error: cannot run test program while cross compiling
8931 +See \`config.log' for more details." >&2;}
8932 +   { (exit 1); exit 1; }; }
8933  else
8934 -  cat > conftest.$ac_ext <<EOF
8935 -#line 2367 "configure"
8936 -#include "confdefs.h"
8937 +  cat >conftest.$ac_ext <<_ACEOF
8938 +#line $LINENO "configure"
8939 +/* confdefs.h.  */
8940 +_ACEOF
8941 +cat confdefs.h >>conftest.$ac_ext
8942 +cat >>conftest.$ac_ext <<_ACEOF
8943 +/* end confdefs.h.  */
8944 +$ac_includes_default
8945 +long longval () { return (long) (sizeof (unsigned short)); }
8946 +unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
8947  #include <stdio.h>
8948 -main()
8949 +#include <stdlib.h>
8950 +int
8951 +main ()
8952  {
8953 -  FILE *f=fopen("conftestval", "w");
8954 -  if (!f) exit(1);
8955 -  fprintf(f, "%d\n", sizeof(unsigned short));
8956 -  exit(0);
8957 +
8958 +  FILE *f = fopen ("conftest.val", "w");
8959 +  if (! f)
8960 +    exit (1);
8961 +  if (((long) (sizeof (unsigned short))) < 0)
8962 +    {
8963 +      long i = longval ();
8964 +      if (i != ((long) (sizeof (unsigned short))))
8965 +       exit (1);
8966 +      fprintf (f, "%ld\n", i);
8967 +    }
8968 +  else
8969 +    {
8970 +      unsigned long i = ulongval ();
8971 +      if (i != ((long) (sizeof (unsigned short))))
8972 +       exit (1);
8973 +      fprintf (f, "%lu\n", i);
8974 +    }
8975 +  exit (ferror (f) || fclose (f) != 0);
8976 +
8977 +  ;
8978 +  return 0;
8979  }
8980 -EOF
8981 -if { (eval echo configure:2378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8982 -then
8983 -  ac_cv_sizeof_unsigned_short=`cat conftestval`
8984 +_ACEOF
8985 +rm -f conftest$ac_exeext
8986 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987 +  (eval $ac_link) 2>&5
8988 +  ac_status=$?
8989 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8991 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 +  (eval $ac_try) 2>&5
8993 +  ac_status=$?
8994 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 +  (exit $ac_status); }; }; then
8996 +  ac_cv_sizeof_unsigned_short=`cat conftest.val`
8997 +else
8998 +  echo "$as_me: program exited with status $ac_status" >&5
8999 +echo "$as_me: failed program was:" >&5
9000 +sed 's/^/| /' conftest.$ac_ext >&5
9001 +
9002 +( exit $ac_status )
9003 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
9004 +See \`config.log' for more details." >&5
9005 +echo "$as_me: error: cannot compute sizeof (unsigned short), 77
9006 +See \`config.log' for more details." >&2;}
9007 +   { (exit 1); exit 1; }; }
9008 +fi
9009 +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9010 +fi
9011 +fi
9012 +rm -f conftest.val
9013  else
9014 -  echo "configure: failed program was:" >&5
9015 -  cat conftest.$ac_ext >&5
9016 -  rm -fr conftest*
9017    ac_cv_sizeof_unsigned_short=0
9018  fi
9019 -rm -fr conftest*
9020  fi
9021 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
9022 +echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
9023 +cat >>confdefs.h <<_ACEOF
9024 +#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
9025 +_ACEOF
9026 +
9027  
9028 +echo "$as_me:$LINENO: checking for int" >&5
9029 +echo $ECHO_N "checking for int... $ECHO_C" >&6
9030 +if test "${ac_cv_type_int+set}" = set; then
9031 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9032 +else
9033 +  cat >conftest.$ac_ext <<_ACEOF
9034 +#line $LINENO "configure"
9035 +/* confdefs.h.  */
9036 +_ACEOF
9037 +cat confdefs.h >>conftest.$ac_ext
9038 +cat >>conftest.$ac_ext <<_ACEOF
9039 +/* end confdefs.h.  */
9040 +$ac_includes_default
9041 +int
9042 +main ()
9043 +{
9044 +if ((int *) 0)
9045 +  return 0;
9046 +if (sizeof (int))
9047 +  return 0;
9048 +  ;
9049 +  return 0;
9050 +}
9051 +_ACEOF
9052 +rm -f conftest.$ac_objext
9053 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9054 +  (eval $ac_compile) 2>&5
9055 +  ac_status=$?
9056 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 +  (exit $ac_status); } &&
9058 +         { ac_try='test -s conftest.$ac_objext'
9059 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 +  (eval $ac_try) 2>&5
9061 +  ac_status=$?
9062 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 +  (exit $ac_status); }; }; then
9064 +  ac_cv_type_int=yes
9065 +else
9066 +  echo "$as_me: failed program was:" >&5
9067 +sed 's/^/| /' conftest.$ac_ext >&5
9068 +
9069 +ac_cv_type_int=no
9070  fi
9071 -echo "$ac_t""$ac_cv_sizeof_unsigned_short" 1>&6
9072 -cat >> confdefs.h <<EOF
9073 -#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
9074 -EOF
9075 +rm -f conftest.$ac_objext conftest.$ac_ext
9076 +fi
9077 +echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
9078 +echo "${ECHO_T}$ac_cv_type_int" >&6
9079  
9080 +echo "$as_me:$LINENO: checking size of int" >&5
9081 +echo $ECHO_N "checking size of int... $ECHO_C" >&6
9082 +if test "${ac_cv_sizeof_int+set}" = set; then
9083 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9084 +else
9085 +  if test "$ac_cv_type_int" = yes; then
9086 +  # The cast to unsigned long works around a bug in the HP C Compiler
9087 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9088 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9089 +  # This bug is HP SR number 8606223364.
9090 +  if test "$cross_compiling" = yes; then
9091 +  # Depending upon the size, compute the lo and hi bounds.
9092 +cat >conftest.$ac_ext <<_ACEOF
9093 +#line $LINENO "configure"
9094 +/* confdefs.h.  */
9095 +_ACEOF
9096 +cat confdefs.h >>conftest.$ac_ext
9097 +cat >>conftest.$ac_ext <<_ACEOF
9098 +/* end confdefs.h.  */
9099 +$ac_includes_default
9100 +int
9101 +main ()
9102 +{
9103 +static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
9104 +test_array [0] = 0
9105  
9106 -echo $ac_n "checking size of int""... $ac_c" 1>&6
9107 -echo "configure:2398: checking size of int" >&5
9108 -if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9109 -  echo $ac_n "(cached) $ac_c" 1>&6
9110 +  ;
9111 +  return 0;
9112 +}
9113 +_ACEOF
9114 +rm -f conftest.$ac_objext
9115 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9116 +  (eval $ac_compile) 2>&5
9117 +  ac_status=$?
9118 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 +  (exit $ac_status); } &&
9120 +         { ac_try='test -s conftest.$ac_objext'
9121 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 +  (eval $ac_try) 2>&5
9123 +  ac_status=$?
9124 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 +  (exit $ac_status); }; }; then
9126 +  ac_lo=0 ac_mid=0
9127 +  while :; do
9128 +    cat >conftest.$ac_ext <<_ACEOF
9129 +#line $LINENO "configure"
9130 +/* confdefs.h.  */
9131 +_ACEOF
9132 +cat confdefs.h >>conftest.$ac_ext
9133 +cat >>conftest.$ac_ext <<_ACEOF
9134 +/* end confdefs.h.  */
9135 +$ac_includes_default
9136 +int
9137 +main ()
9138 +{
9139 +static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
9140 +test_array [0] = 0
9141 +
9142 +  ;
9143 +  return 0;
9144 +}
9145 +_ACEOF
9146 +rm -f conftest.$ac_objext
9147 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9148 +  (eval $ac_compile) 2>&5
9149 +  ac_status=$?
9150 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 +  (exit $ac_status); } &&
9152 +         { ac_try='test -s conftest.$ac_objext'
9153 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154 +  (eval $ac_try) 2>&5
9155 +  ac_status=$?
9156 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 +  (exit $ac_status); }; }; then
9158 +  ac_hi=$ac_mid; break
9159 +else
9160 +  echo "$as_me: failed program was:" >&5
9161 +sed 's/^/| /' conftest.$ac_ext >&5
9162 +
9163 +ac_lo=`expr $ac_mid + 1`
9164 +                    if test $ac_lo -le $ac_mid; then
9165 +                      ac_lo= ac_hi=
9166 +                      break
9167 +                    fi
9168 +                    ac_mid=`expr 2 '*' $ac_mid + 1`
9169 +fi
9170 +rm -f conftest.$ac_objext conftest.$ac_ext
9171 +  done
9172 +else
9173 +  echo "$as_me: failed program was:" >&5
9174 +sed 's/^/| /' conftest.$ac_ext >&5
9175 +
9176 +cat >conftest.$ac_ext <<_ACEOF
9177 +#line $LINENO "configure"
9178 +/* confdefs.h.  */
9179 +_ACEOF
9180 +cat confdefs.h >>conftest.$ac_ext
9181 +cat >>conftest.$ac_ext <<_ACEOF
9182 +/* end confdefs.h.  */
9183 +$ac_includes_default
9184 +int
9185 +main ()
9186 +{
9187 +static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
9188 +test_array [0] = 0
9189 +
9190 +  ;
9191 +  return 0;
9192 +}
9193 +_ACEOF
9194 +rm -f conftest.$ac_objext
9195 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9196 +  (eval $ac_compile) 2>&5
9197 +  ac_status=$?
9198 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 +  (exit $ac_status); } &&
9200 +         { ac_try='test -s conftest.$ac_objext'
9201 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 +  (eval $ac_try) 2>&5
9203 +  ac_status=$?
9204 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 +  (exit $ac_status); }; }; then
9206 +  ac_hi=-1 ac_mid=-1
9207 +  while :; do
9208 +    cat >conftest.$ac_ext <<_ACEOF
9209 +#line $LINENO "configure"
9210 +/* confdefs.h.  */
9211 +_ACEOF
9212 +cat confdefs.h >>conftest.$ac_ext
9213 +cat >>conftest.$ac_ext <<_ACEOF
9214 +/* end confdefs.h.  */
9215 +$ac_includes_default
9216 +int
9217 +main ()
9218 +{
9219 +static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
9220 +test_array [0] = 0
9221 +
9222 +  ;
9223 +  return 0;
9224 +}
9225 +_ACEOF
9226 +rm -f conftest.$ac_objext
9227 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9228 +  (eval $ac_compile) 2>&5
9229 +  ac_status=$?
9230 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 +  (exit $ac_status); } &&
9232 +         { ac_try='test -s conftest.$ac_objext'
9233 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234 +  (eval $ac_try) 2>&5
9235 +  ac_status=$?
9236 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 +  (exit $ac_status); }; }; then
9238 +  ac_lo=$ac_mid; break
9239 +else
9240 +  echo "$as_me: failed program was:" >&5
9241 +sed 's/^/| /' conftest.$ac_ext >&5
9242 +
9243 +ac_hi=`expr '(' $ac_mid ')' - 1`
9244 +                       if test $ac_mid -le $ac_hi; then
9245 +                         ac_lo= ac_hi=
9246 +                         break
9247 +                       fi
9248 +                       ac_mid=`expr 2 '*' $ac_mid`
9249 +fi
9250 +rm -f conftest.$ac_objext conftest.$ac_ext
9251 +  done
9252 +else
9253 +  echo "$as_me: failed program was:" >&5
9254 +sed 's/^/| /' conftest.$ac_ext >&5
9255 +
9256 +ac_lo= ac_hi=
9257 +fi
9258 +rm -f conftest.$ac_objext conftest.$ac_ext
9259 +fi
9260 +rm -f conftest.$ac_objext conftest.$ac_ext
9261 +# Binary search between lo and hi bounds.
9262 +while test "x$ac_lo" != "x$ac_hi"; do
9263 +  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9264 +  cat >conftest.$ac_ext <<_ACEOF
9265 +#line $LINENO "configure"
9266 +/* confdefs.h.  */
9267 +_ACEOF
9268 +cat confdefs.h >>conftest.$ac_ext
9269 +cat >>conftest.$ac_ext <<_ACEOF
9270 +/* end confdefs.h.  */
9271 +$ac_includes_default
9272 +int
9273 +main ()
9274 +{
9275 +static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
9276 +test_array [0] = 0
9277 +
9278 +  ;
9279 +  return 0;
9280 +}
9281 +_ACEOF
9282 +rm -f conftest.$ac_objext
9283 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9284 +  (eval $ac_compile) 2>&5
9285 +  ac_status=$?
9286 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 +  (exit $ac_status); } &&
9288 +         { ac_try='test -s conftest.$ac_objext'
9289 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290 +  (eval $ac_try) 2>&5
9291 +  ac_status=$?
9292 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 +  (exit $ac_status); }; }; then
9294 +  ac_hi=$ac_mid
9295 +else
9296 +  echo "$as_me: failed program was:" >&5
9297 +sed 's/^/| /' conftest.$ac_ext >&5
9298 +
9299 +ac_lo=`expr '(' $ac_mid ')' + 1`
9300 +fi
9301 +rm -f conftest.$ac_objext conftest.$ac_ext
9302 +done
9303 +case $ac_lo in
9304 +?*) ac_cv_sizeof_int=$ac_lo;;
9305 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
9306 +See \`config.log' for more details." >&5
9307 +echo "$as_me: error: cannot compute sizeof (int), 77
9308 +See \`config.log' for more details." >&2;}
9309 +   { (exit 1); exit 1; }; } ;;
9310 +esac
9311  else
9312    if test "$cross_compiling" = yes; then
9313 -  ac_cv_sizeof_int="$default_int"
9314 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9315 +See \`config.log' for more details." >&5
9316 +echo "$as_me: error: cannot run test program while cross compiling
9317 +See \`config.log' for more details." >&2;}
9318 +   { (exit 1); exit 1; }; }
9319  else
9320 -  cat > conftest.$ac_ext <<EOF
9321 -#line 2406 "configure"
9322 -#include "confdefs.h"
9323 +  cat >conftest.$ac_ext <<_ACEOF
9324 +#line $LINENO "configure"
9325 +/* confdefs.h.  */
9326 +_ACEOF
9327 +cat confdefs.h >>conftest.$ac_ext
9328 +cat >>conftest.$ac_ext <<_ACEOF
9329 +/* end confdefs.h.  */
9330 +$ac_includes_default
9331 +long longval () { return (long) (sizeof (int)); }
9332 +unsigned long ulongval () { return (long) (sizeof (int)); }
9333  #include <stdio.h>
9334 -main()
9335 +#include <stdlib.h>
9336 +int
9337 +main ()
9338  {
9339 -  FILE *f=fopen("conftestval", "w");
9340 -  if (!f) exit(1);
9341 -  fprintf(f, "%d\n", sizeof(int));
9342 -  exit(0);
9343 +
9344 +  FILE *f = fopen ("conftest.val", "w");
9345 +  if (! f)
9346 +    exit (1);
9347 +  if (((long) (sizeof (int))) < 0)
9348 +    {
9349 +      long i = longval ();
9350 +      if (i != ((long) (sizeof (int))))
9351 +       exit (1);
9352 +      fprintf (f, "%ld\n", i);
9353 +    }
9354 +  else
9355 +    {
9356 +      unsigned long i = ulongval ();
9357 +      if (i != ((long) (sizeof (int))))
9358 +       exit (1);
9359 +      fprintf (f, "%lu\n", i);
9360 +    }
9361 +  exit (ferror (f) || fclose (f) != 0);
9362 +
9363 +  ;
9364 +  return 0;
9365  }
9366 -EOF
9367 -if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9368 -then
9369 -  ac_cv_sizeof_int=`cat conftestval`
9370 +_ACEOF
9371 +rm -f conftest$ac_exeext
9372 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9373 +  (eval $ac_link) 2>&5
9374 +  ac_status=$?
9375 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9377 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378 +  (eval $ac_try) 2>&5
9379 +  ac_status=$?
9380 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 +  (exit $ac_status); }; }; then
9382 +  ac_cv_sizeof_int=`cat conftest.val`
9383 +else
9384 +  echo "$as_me: program exited with status $ac_status" >&5
9385 +echo "$as_me: failed program was:" >&5
9386 +sed 's/^/| /' conftest.$ac_ext >&5
9387 +
9388 +( exit $ac_status )
9389 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
9390 +See \`config.log' for more details." >&5
9391 +echo "$as_me: error: cannot compute sizeof (int), 77
9392 +See \`config.log' for more details." >&2;}
9393 +   { (exit 1); exit 1; }; }
9394 +fi
9395 +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9396 +fi
9397 +fi
9398 +rm -f conftest.val
9399  else
9400 -  echo "configure: failed program was:" >&5
9401 -  cat conftest.$ac_ext >&5
9402 -  rm -fr conftest*
9403    ac_cv_sizeof_int=0
9404  fi
9405 -rm -fr conftest*
9406  fi
9407 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
9408 +echo "${ECHO_T}$ac_cv_sizeof_int" >&6
9409 +cat >>confdefs.h <<_ACEOF
9410 +#define SIZEOF_INT $ac_cv_sizeof_int
9411 +_ACEOF
9412 +
9413  
9414 +echo "$as_me:$LINENO: checking for unsigned" >&5
9415 +echo $ECHO_N "checking for unsigned... $ECHO_C" >&6
9416 +if test "${ac_cv_type_unsigned+set}" = set; then
9417 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9418 +else
9419 +  cat >conftest.$ac_ext <<_ACEOF
9420 +#line $LINENO "configure"
9421 +/* confdefs.h.  */
9422 +_ACEOF
9423 +cat confdefs.h >>conftest.$ac_ext
9424 +cat >>conftest.$ac_ext <<_ACEOF
9425 +/* end confdefs.h.  */
9426 +$ac_includes_default
9427 +int
9428 +main ()
9429 +{
9430 +if ((unsigned *) 0)
9431 +  return 0;
9432 +if (sizeof (unsigned))
9433 +  return 0;
9434 +  ;
9435 +  return 0;
9436 +}
9437 +_ACEOF
9438 +rm -f conftest.$ac_objext
9439 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9440 +  (eval $ac_compile) 2>&5
9441 +  ac_status=$?
9442 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 +  (exit $ac_status); } &&
9444 +         { ac_try='test -s conftest.$ac_objext'
9445 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 +  (eval $ac_try) 2>&5
9447 +  ac_status=$?
9448 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 +  (exit $ac_status); }; }; then
9450 +  ac_cv_type_unsigned=yes
9451 +else
9452 +  echo "$as_me: failed program was:" >&5
9453 +sed 's/^/| /' conftest.$ac_ext >&5
9454 +
9455 +ac_cv_type_unsigned=no
9456  fi
9457 -echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9458 -cat >> confdefs.h <<EOF
9459 -#define SIZEOF_INT $ac_cv_sizeof_int
9460 -EOF
9461 +rm -f conftest.$ac_objext conftest.$ac_ext
9462 +fi
9463 +echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
9464 +echo "${ECHO_T}$ac_cv_type_unsigned" >&6
9465  
9466 +echo "$as_me:$LINENO: checking size of unsigned" >&5
9467 +echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6
9468 +if test "${ac_cv_sizeof_unsigned+set}" = set; then
9469 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9470 +else
9471 +  if test "$ac_cv_type_unsigned" = yes; then
9472 +  # The cast to unsigned long works around a bug in the HP C Compiler
9473 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9474 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9475 +  # This bug is HP SR number 8606223364.
9476 +  if test "$cross_compiling" = yes; then
9477 +  # Depending upon the size, compute the lo and hi bounds.
9478 +cat >conftest.$ac_ext <<_ACEOF
9479 +#line $LINENO "configure"
9480 +/* confdefs.h.  */
9481 +_ACEOF
9482 +cat confdefs.h >>conftest.$ac_ext
9483 +cat >>conftest.$ac_ext <<_ACEOF
9484 +/* end confdefs.h.  */
9485 +$ac_includes_default
9486 +int
9487 +main ()
9488 +{
9489 +static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) >= 0)];
9490 +test_array [0] = 0
9491  
9492 -echo $ac_n "checking size of unsigned""... $ac_c" 1>&6
9493 -echo "configure:2437: checking size of unsigned" >&5
9494 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned'+set}'`\" = set"; then
9495 -  echo $ac_n "(cached) $ac_c" 1>&6
9496 +  ;
9497 +  return 0;
9498 +}
9499 +_ACEOF
9500 +rm -f conftest.$ac_objext
9501 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9502 +  (eval $ac_compile) 2>&5
9503 +  ac_status=$?
9504 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 +  (exit $ac_status); } &&
9506 +         { ac_try='test -s conftest.$ac_objext'
9507 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 +  (eval $ac_try) 2>&5
9509 +  ac_status=$?
9510 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 +  (exit $ac_status); }; }; then
9512 +  ac_lo=0 ac_mid=0
9513 +  while :; do
9514 +    cat >conftest.$ac_ext <<_ACEOF
9515 +#line $LINENO "configure"
9516 +/* confdefs.h.  */
9517 +_ACEOF
9518 +cat confdefs.h >>conftest.$ac_ext
9519 +cat >>conftest.$ac_ext <<_ACEOF
9520 +/* end confdefs.h.  */
9521 +$ac_includes_default
9522 +int
9523 +main ()
9524 +{
9525 +static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) <= $ac_mid)];
9526 +test_array [0] = 0
9527 +
9528 +  ;
9529 +  return 0;
9530 +}
9531 +_ACEOF
9532 +rm -f conftest.$ac_objext
9533 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9534 +  (eval $ac_compile) 2>&5
9535 +  ac_status=$?
9536 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 +  (exit $ac_status); } &&
9538 +         { ac_try='test -s conftest.$ac_objext'
9539 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540 +  (eval $ac_try) 2>&5
9541 +  ac_status=$?
9542 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 +  (exit $ac_status); }; }; then
9544 +  ac_hi=$ac_mid; break
9545 +else
9546 +  echo "$as_me: failed program was:" >&5
9547 +sed 's/^/| /' conftest.$ac_ext >&5
9548 +
9549 +ac_lo=`expr $ac_mid + 1`
9550 +                    if test $ac_lo -le $ac_mid; then
9551 +                      ac_lo= ac_hi=
9552 +                      break
9553 +                    fi
9554 +                    ac_mid=`expr 2 '*' $ac_mid + 1`
9555 +fi
9556 +rm -f conftest.$ac_objext conftest.$ac_ext
9557 +  done
9558 +else
9559 +  echo "$as_me: failed program was:" >&5
9560 +sed 's/^/| /' conftest.$ac_ext >&5
9561 +
9562 +cat >conftest.$ac_ext <<_ACEOF
9563 +#line $LINENO "configure"
9564 +/* confdefs.h.  */
9565 +_ACEOF
9566 +cat confdefs.h >>conftest.$ac_ext
9567 +cat >>conftest.$ac_ext <<_ACEOF
9568 +/* end confdefs.h.  */
9569 +$ac_includes_default
9570 +int
9571 +main ()
9572 +{
9573 +static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) < 0)];
9574 +test_array [0] = 0
9575 +
9576 +  ;
9577 +  return 0;
9578 +}
9579 +_ACEOF
9580 +rm -f conftest.$ac_objext
9581 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582 +  (eval $ac_compile) 2>&5
9583 +  ac_status=$?
9584 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 +  (exit $ac_status); } &&
9586 +         { ac_try='test -s conftest.$ac_objext'
9587 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588 +  (eval $ac_try) 2>&5
9589 +  ac_status=$?
9590 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 +  (exit $ac_status); }; }; then
9592 +  ac_hi=-1 ac_mid=-1
9593 +  while :; do
9594 +    cat >conftest.$ac_ext <<_ACEOF
9595 +#line $LINENO "configure"
9596 +/* confdefs.h.  */
9597 +_ACEOF
9598 +cat confdefs.h >>conftest.$ac_ext
9599 +cat >>conftest.$ac_ext <<_ACEOF
9600 +/* end confdefs.h.  */
9601 +$ac_includes_default
9602 +int
9603 +main ()
9604 +{
9605 +static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) >= $ac_mid)];
9606 +test_array [0] = 0
9607 +
9608 +  ;
9609 +  return 0;
9610 +}
9611 +_ACEOF
9612 +rm -f conftest.$ac_objext
9613 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9614 +  (eval $ac_compile) 2>&5
9615 +  ac_status=$?
9616 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 +  (exit $ac_status); } &&
9618 +         { ac_try='test -s conftest.$ac_objext'
9619 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 +  (eval $ac_try) 2>&5
9621 +  ac_status=$?
9622 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 +  (exit $ac_status); }; }; then
9624 +  ac_lo=$ac_mid; break
9625 +else
9626 +  echo "$as_me: failed program was:" >&5
9627 +sed 's/^/| /' conftest.$ac_ext >&5
9628 +
9629 +ac_hi=`expr '(' $ac_mid ')' - 1`
9630 +                       if test $ac_mid -le $ac_hi; then
9631 +                         ac_lo= ac_hi=
9632 +                         break
9633 +                       fi
9634 +                       ac_mid=`expr 2 '*' $ac_mid`
9635 +fi
9636 +rm -f conftest.$ac_objext conftest.$ac_ext
9637 +  done
9638 +else
9639 +  echo "$as_me: failed program was:" >&5
9640 +sed 's/^/| /' conftest.$ac_ext >&5
9641 +
9642 +ac_lo= ac_hi=
9643 +fi
9644 +rm -f conftest.$ac_objext conftest.$ac_ext
9645 +fi
9646 +rm -f conftest.$ac_objext conftest.$ac_ext
9647 +# Binary search between lo and hi bounds.
9648 +while test "x$ac_lo" != "x$ac_hi"; do
9649 +  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9650 +  cat >conftest.$ac_ext <<_ACEOF
9651 +#line $LINENO "configure"
9652 +/* confdefs.h.  */
9653 +_ACEOF
9654 +cat confdefs.h >>conftest.$ac_ext
9655 +cat >>conftest.$ac_ext <<_ACEOF
9656 +/* end confdefs.h.  */
9657 +$ac_includes_default
9658 +int
9659 +main ()
9660 +{
9661 +static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) <= $ac_mid)];
9662 +test_array [0] = 0
9663 +
9664 +  ;
9665 +  return 0;
9666 +}
9667 +_ACEOF
9668 +rm -f conftest.$ac_objext
9669 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9670 +  (eval $ac_compile) 2>&5
9671 +  ac_status=$?
9672 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 +  (exit $ac_status); } &&
9674 +         { ac_try='test -s conftest.$ac_objext'
9675 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676 +  (eval $ac_try) 2>&5
9677 +  ac_status=$?
9678 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 +  (exit $ac_status); }; }; then
9680 +  ac_hi=$ac_mid
9681 +else
9682 +  echo "$as_me: failed program was:" >&5
9683 +sed 's/^/| /' conftest.$ac_ext >&5
9684 +
9685 +ac_lo=`expr '(' $ac_mid ')' + 1`
9686 +fi
9687 +rm -f conftest.$ac_objext conftest.$ac_ext
9688 +done
9689 +case $ac_lo in
9690 +?*) ac_cv_sizeof_unsigned=$ac_lo;;
9691 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned), 77
9692 +See \`config.log' for more details." >&5
9693 +echo "$as_me: error: cannot compute sizeof (unsigned), 77
9694 +See \`config.log' for more details." >&2;}
9695 +   { (exit 1); exit 1; }; } ;;
9696 +esac
9697  else
9698    if test "$cross_compiling" = yes; then
9699 -  ac_cv_sizeof_unsigned="$default_int"
9700 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9701 +See \`config.log' for more details." >&5
9702 +echo "$as_me: error: cannot run test program while cross compiling
9703 +See \`config.log' for more details." >&2;}
9704 +   { (exit 1); exit 1; }; }
9705  else
9706 -  cat > conftest.$ac_ext <<EOF
9707 -#line 2445 "configure"
9708 -#include "confdefs.h"
9709 +  cat >conftest.$ac_ext <<_ACEOF
9710 +#line $LINENO "configure"
9711 +/* confdefs.h.  */
9712 +_ACEOF
9713 +cat confdefs.h >>conftest.$ac_ext
9714 +cat >>conftest.$ac_ext <<_ACEOF
9715 +/* end confdefs.h.  */
9716 +$ac_includes_default
9717 +long longval () { return (long) (sizeof (unsigned)); }
9718 +unsigned long ulongval () { return (long) (sizeof (unsigned)); }
9719  #include <stdio.h>
9720 -main()
9721 +#include <stdlib.h>
9722 +int
9723 +main ()
9724  {
9725 -  FILE *f=fopen("conftestval", "w");
9726 -  if (!f) exit(1);
9727 -  fprintf(f, "%d\n", sizeof(unsigned));
9728 -  exit(0);
9729 +
9730 +  FILE *f = fopen ("conftest.val", "w");
9731 +  if (! f)
9732 +    exit (1);
9733 +  if (((long) (sizeof (unsigned))) < 0)
9734 +    {
9735 +      long i = longval ();
9736 +      if (i != ((long) (sizeof (unsigned))))
9737 +       exit (1);
9738 +      fprintf (f, "%ld\n", i);
9739 +    }
9740 +  else
9741 +    {
9742 +      unsigned long i = ulongval ();
9743 +      if (i != ((long) (sizeof (unsigned))))
9744 +       exit (1);
9745 +      fprintf (f, "%lu\n", i);
9746 +    }
9747 +  exit (ferror (f) || fclose (f) != 0);
9748 +
9749 +  ;
9750 +  return 0;
9751  }
9752 -EOF
9753 -if { (eval echo configure:2456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9754 -then
9755 -  ac_cv_sizeof_unsigned=`cat conftestval`
9756 +_ACEOF
9757 +rm -f conftest$ac_exeext
9758 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9759 +  (eval $ac_link) 2>&5
9760 +  ac_status=$?
9761 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9763 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764 +  (eval $ac_try) 2>&5
9765 +  ac_status=$?
9766 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 +  (exit $ac_status); }; }; then
9768 +  ac_cv_sizeof_unsigned=`cat conftest.val`
9769 +else
9770 +  echo "$as_me: program exited with status $ac_status" >&5
9771 +echo "$as_me: failed program was:" >&5
9772 +sed 's/^/| /' conftest.$ac_ext >&5
9773 +
9774 +( exit $ac_status )
9775 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned), 77
9776 +See \`config.log' for more details." >&5
9777 +echo "$as_me: error: cannot compute sizeof (unsigned), 77
9778 +See \`config.log' for more details." >&2;}
9779 +   { (exit 1); exit 1; }; }
9780 +fi
9781 +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9782 +fi
9783 +fi
9784 +rm -f conftest.val
9785  else
9786 -  echo "configure: failed program was:" >&5
9787 -  cat conftest.$ac_ext >&5
9788 -  rm -fr conftest*
9789    ac_cv_sizeof_unsigned=0
9790  fi
9791 -rm -fr conftest*
9792  fi
9793 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
9794 +echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6
9795 +cat >>confdefs.h <<_ACEOF
9796 +#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
9797 +_ACEOF
9798 +
9799 +
9800 +echo "$as_me:$LINENO: checking for long" >&5
9801 +echo $ECHO_N "checking for long... $ECHO_C" >&6
9802 +if test "${ac_cv_type_long+set}" = set; then
9803 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9804 +else
9805 +  cat >conftest.$ac_ext <<_ACEOF
9806 +#line $LINENO "configure"
9807 +/* confdefs.h.  */
9808 +_ACEOF
9809 +cat confdefs.h >>conftest.$ac_ext
9810 +cat >>conftest.$ac_ext <<_ACEOF
9811 +/* end confdefs.h.  */
9812 +$ac_includes_default
9813 +int
9814 +main ()
9815 +{
9816 +if ((long *) 0)
9817 +  return 0;
9818 +if (sizeof (long))
9819 +  return 0;
9820 +  ;
9821 +  return 0;
9822 +}
9823 +_ACEOF
9824 +rm -f conftest.$ac_objext
9825 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9826 +  (eval $ac_compile) 2>&5
9827 +  ac_status=$?
9828 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 +  (exit $ac_status); } &&
9830 +         { ac_try='test -s conftest.$ac_objext'
9831 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832 +  (eval $ac_try) 2>&5
9833 +  ac_status=$?
9834 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 +  (exit $ac_status); }; }; then
9836 +  ac_cv_type_long=yes
9837 +else
9838 +  echo "$as_me: failed program was:" >&5
9839 +sed 's/^/| /' conftest.$ac_ext >&5
9840  
9841 +ac_cv_type_long=no
9842  fi
9843 -echo "$ac_t""$ac_cv_sizeof_unsigned" 1>&6
9844 -cat >> confdefs.h <<EOF
9845 -#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
9846 -EOF
9847 +rm -f conftest.$ac_objext conftest.$ac_ext
9848 +fi
9849 +echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9850 +echo "${ECHO_T}$ac_cv_type_long" >&6
9851  
9852 +echo "$as_me:$LINENO: checking size of long" >&5
9853 +echo $ECHO_N "checking size of long... $ECHO_C" >&6
9854 +if test "${ac_cv_sizeof_long+set}" = set; then
9855 +  echo $ECHO_N "(cached) $ECHO_C" >&6
9856 +else
9857 +  if test "$ac_cv_type_long" = yes; then
9858 +  # The cast to unsigned long works around a bug in the HP C Compiler
9859 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9860 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9861 +  # This bug is HP SR number 8606223364.
9862 +  if test "$cross_compiling" = yes; then
9863 +  # Depending upon the size, compute the lo and hi bounds.
9864 +cat >conftest.$ac_ext <<_ACEOF
9865 +#line $LINENO "configure"
9866 +/* confdefs.h.  */
9867 +_ACEOF
9868 +cat confdefs.h >>conftest.$ac_ext
9869 +cat >>conftest.$ac_ext <<_ACEOF
9870 +/* end confdefs.h.  */
9871 +$ac_includes_default
9872 +int
9873 +main ()
9874 +{
9875 +static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
9876 +test_array [0] = 0
9877  
9878 -echo $ac_n "checking size of long""... $ac_c" 1>&6
9879 -echo "configure:2476: checking size of long" >&5
9880 -if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9881 -  echo $ac_n "(cached) $ac_c" 1>&6
9882 +  ;
9883 +  return 0;
9884 +}
9885 +_ACEOF
9886 +rm -f conftest.$ac_objext
9887 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9888 +  (eval $ac_compile) 2>&5
9889 +  ac_status=$?
9890 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 +  (exit $ac_status); } &&
9892 +         { ac_try='test -s conftest.$ac_objext'
9893 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894 +  (eval $ac_try) 2>&5
9895 +  ac_status=$?
9896 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 +  (exit $ac_status); }; }; then
9898 +  ac_lo=0 ac_mid=0
9899 +  while :; do
9900 +    cat >conftest.$ac_ext <<_ACEOF
9901 +#line $LINENO "configure"
9902 +/* confdefs.h.  */
9903 +_ACEOF
9904 +cat confdefs.h >>conftest.$ac_ext
9905 +cat >>conftest.$ac_ext <<_ACEOF
9906 +/* end confdefs.h.  */
9907 +$ac_includes_default
9908 +int
9909 +main ()
9910 +{
9911 +static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9912 +test_array [0] = 0
9913 +
9914 +  ;
9915 +  return 0;
9916 +}
9917 +_ACEOF
9918 +rm -f conftest.$ac_objext
9919 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9920 +  (eval $ac_compile) 2>&5
9921 +  ac_status=$?
9922 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 +  (exit $ac_status); } &&
9924 +         { ac_try='test -s conftest.$ac_objext'
9925 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926 +  (eval $ac_try) 2>&5
9927 +  ac_status=$?
9928 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 +  (exit $ac_status); }; }; then
9930 +  ac_hi=$ac_mid; break
9931 +else
9932 +  echo "$as_me: failed program was:" >&5
9933 +sed 's/^/| /' conftest.$ac_ext >&5
9934 +
9935 +ac_lo=`expr $ac_mid + 1`
9936 +                    if test $ac_lo -le $ac_mid; then
9937 +                      ac_lo= ac_hi=
9938 +                      break
9939 +                    fi
9940 +                    ac_mid=`expr 2 '*' $ac_mid + 1`
9941 +fi
9942 +rm -f conftest.$ac_objext conftest.$ac_ext
9943 +  done
9944 +else
9945 +  echo "$as_me: failed program was:" >&5
9946 +sed 's/^/| /' conftest.$ac_ext >&5
9947 +
9948 +cat >conftest.$ac_ext <<_ACEOF
9949 +#line $LINENO "configure"
9950 +/* confdefs.h.  */
9951 +_ACEOF
9952 +cat confdefs.h >>conftest.$ac_ext
9953 +cat >>conftest.$ac_ext <<_ACEOF
9954 +/* end confdefs.h.  */
9955 +$ac_includes_default
9956 +int
9957 +main ()
9958 +{
9959 +static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9960 +test_array [0] = 0
9961 +
9962 +  ;
9963 +  return 0;
9964 +}
9965 +_ACEOF
9966 +rm -f conftest.$ac_objext
9967 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9968 +  (eval $ac_compile) 2>&5
9969 +  ac_status=$?
9970 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 +  (exit $ac_status); } &&
9972 +         { ac_try='test -s conftest.$ac_objext'
9973 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 +  (eval $ac_try) 2>&5
9975 +  ac_status=$?
9976 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 +  (exit $ac_status); }; }; then
9978 +  ac_hi=-1 ac_mid=-1
9979 +  while :; do
9980 +    cat >conftest.$ac_ext <<_ACEOF
9981 +#line $LINENO "configure"
9982 +/* confdefs.h.  */
9983 +_ACEOF
9984 +cat confdefs.h >>conftest.$ac_ext
9985 +cat >>conftest.$ac_ext <<_ACEOF
9986 +/* end confdefs.h.  */
9987 +$ac_includes_default
9988 +int
9989 +main ()
9990 +{
9991 +static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
9992 +test_array [0] = 0
9993 +
9994 +  ;
9995 +  return 0;
9996 +}
9997 +_ACEOF
9998 +rm -f conftest.$ac_objext
9999 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10000 +  (eval $ac_compile) 2>&5
10001 +  ac_status=$?
10002 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 +  (exit $ac_status); } &&
10004 +         { ac_try='test -s conftest.$ac_objext'
10005 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 +  (eval $ac_try) 2>&5
10007 +  ac_status=$?
10008 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 +  (exit $ac_status); }; }; then
10010 +  ac_lo=$ac_mid; break
10011 +else
10012 +  echo "$as_me: failed program was:" >&5
10013 +sed 's/^/| /' conftest.$ac_ext >&5
10014 +
10015 +ac_hi=`expr '(' $ac_mid ')' - 1`
10016 +                       if test $ac_mid -le $ac_hi; then
10017 +                         ac_lo= ac_hi=
10018 +                         break
10019 +                       fi
10020 +                       ac_mid=`expr 2 '*' $ac_mid`
10021 +fi
10022 +rm -f conftest.$ac_objext conftest.$ac_ext
10023 +  done
10024 +else
10025 +  echo "$as_me: failed program was:" >&5
10026 +sed 's/^/| /' conftest.$ac_ext >&5
10027 +
10028 +ac_lo= ac_hi=
10029 +fi
10030 +rm -f conftest.$ac_objext conftest.$ac_ext
10031 +fi
10032 +rm -f conftest.$ac_objext conftest.$ac_ext
10033 +# Binary search between lo and hi bounds.
10034 +while test "x$ac_lo" != "x$ac_hi"; do
10035 +  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10036 +  cat >conftest.$ac_ext <<_ACEOF
10037 +#line $LINENO "configure"
10038 +/* confdefs.h.  */
10039 +_ACEOF
10040 +cat confdefs.h >>conftest.$ac_ext
10041 +cat >>conftest.$ac_ext <<_ACEOF
10042 +/* end confdefs.h.  */
10043 +$ac_includes_default
10044 +int
10045 +main ()
10046 +{
10047 +static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
10048 +test_array [0] = 0
10049 +
10050 +  ;
10051 +  return 0;
10052 +}
10053 +_ACEOF
10054 +rm -f conftest.$ac_objext
10055 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10056 +  (eval $ac_compile) 2>&5
10057 +  ac_status=$?
10058 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 +  (exit $ac_status); } &&
10060 +         { ac_try='test -s conftest.$ac_objext'
10061 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062 +  (eval $ac_try) 2>&5
10063 +  ac_status=$?
10064 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 +  (exit $ac_status); }; }; then
10066 +  ac_hi=$ac_mid
10067 +else
10068 +  echo "$as_me: failed program was:" >&5
10069 +sed 's/^/| /' conftest.$ac_ext >&5
10070 +
10071 +ac_lo=`expr '(' $ac_mid ')' + 1`
10072 +fi
10073 +rm -f conftest.$ac_objext conftest.$ac_ext
10074 +done
10075 +case $ac_lo in
10076 +?*) ac_cv_sizeof_long=$ac_lo;;
10077 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
10078 +See \`config.log' for more details." >&5
10079 +echo "$as_me: error: cannot compute sizeof (long), 77
10080 +See \`config.log' for more details." >&2;}
10081 +   { (exit 1); exit 1; }; } ;;
10082 +esac
10083  else
10084    if test "$cross_compiling" = yes; then
10085 -  ac_cv_sizeof_long="$default_int"
10086 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10087 +See \`config.log' for more details." >&5
10088 +echo "$as_me: error: cannot run test program while cross compiling
10089 +See \`config.log' for more details." >&2;}
10090 +   { (exit 1); exit 1; }; }
10091  else
10092 -  cat > conftest.$ac_ext <<EOF
10093 -#line 2484 "configure"
10094 -#include "confdefs.h"
10095 +  cat >conftest.$ac_ext <<_ACEOF
10096 +#line $LINENO "configure"
10097 +/* confdefs.h.  */
10098 +_ACEOF
10099 +cat confdefs.h >>conftest.$ac_ext
10100 +cat >>conftest.$ac_ext <<_ACEOF
10101 +/* end confdefs.h.  */
10102 +$ac_includes_default
10103 +long longval () { return (long) (sizeof (long)); }
10104 +unsigned long ulongval () { return (long) (sizeof (long)); }
10105  #include <stdio.h>
10106 -main()
10107 +#include <stdlib.h>
10108 +int
10109 +main ()
10110  {
10111 -  FILE *f=fopen("conftestval", "w");
10112 -  if (!f) exit(1);
10113 -  fprintf(f, "%d\n", sizeof(long));
10114 -  exit(0);
10115 +
10116 +  FILE *f = fopen ("conftest.val", "w");
10117 +  if (! f)
10118 +    exit (1);
10119 +  if (((long) (sizeof (long))) < 0)
10120 +    {
10121 +      long i = longval ();
10122 +      if (i != ((long) (sizeof (long))))
10123 +       exit (1);
10124 +      fprintf (f, "%ld\n", i);
10125 +    }
10126 +  else
10127 +    {
10128 +      unsigned long i = ulongval ();
10129 +      if (i != ((long) (sizeof (long))))
10130 +       exit (1);
10131 +      fprintf (f, "%lu\n", i);
10132 +    }
10133 +  exit (ferror (f) || fclose (f) != 0);
10134 +
10135 +  ;
10136 +  return 0;
10137  }
10138 -EOF
10139 -if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10140 -then
10141 -  ac_cv_sizeof_long=`cat conftestval`
10142 +_ACEOF
10143 +rm -f conftest$ac_exeext
10144 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10145 +  (eval $ac_link) 2>&5
10146 +  ac_status=$?
10147 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10149 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 +  (eval $ac_try) 2>&5
10151 +  ac_status=$?
10152 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 +  (exit $ac_status); }; }; then
10154 +  ac_cv_sizeof_long=`cat conftest.val`
10155 +else
10156 +  echo "$as_me: program exited with status $ac_status" >&5
10157 +echo "$as_me: failed program was:" >&5
10158 +sed 's/^/| /' conftest.$ac_ext >&5
10159 +
10160 +( exit $ac_status )
10161 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
10162 +See \`config.log' for more details." >&5
10163 +echo "$as_me: error: cannot compute sizeof (long), 77
10164 +See \`config.log' for more details." >&2;}
10165 +   { (exit 1); exit 1; }; }
10166 +fi
10167 +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10168 +fi
10169 +fi
10170 +rm -f conftest.val
10171  else
10172 -  echo "configure: failed program was:" >&5
10173 -  cat conftest.$ac_ext >&5
10174 -  rm -fr conftest*
10175    ac_cv_sizeof_long=0
10176  fi
10177 -rm -fr conftest*
10178  fi
10179 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
10180 +echo "${ECHO_T}$ac_cv_sizeof_long" >&6
10181 +cat >>confdefs.h <<_ACEOF
10182 +#define SIZEOF_LONG $ac_cv_sizeof_long
10183 +_ACEOF
10184 +
10185  
10186 +echo "$as_me:$LINENO: checking for unsigned long" >&5
10187 +echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
10188 +if test "${ac_cv_type_unsigned_long+set}" = set; then
10189 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10190 +else
10191 +  cat >conftest.$ac_ext <<_ACEOF
10192 +#line $LINENO "configure"
10193 +/* confdefs.h.  */
10194 +_ACEOF
10195 +cat confdefs.h >>conftest.$ac_ext
10196 +cat >>conftest.$ac_ext <<_ACEOF
10197 +/* end confdefs.h.  */
10198 +$ac_includes_default
10199 +int
10200 +main ()
10201 +{
10202 +if ((unsigned long *) 0)
10203 +  return 0;
10204 +if (sizeof (unsigned long))
10205 +  return 0;
10206 +  ;
10207 +  return 0;
10208 +}
10209 +_ACEOF
10210 +rm -f conftest.$ac_objext
10211 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10212 +  (eval $ac_compile) 2>&5
10213 +  ac_status=$?
10214 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 +  (exit $ac_status); } &&
10216 +         { ac_try='test -s conftest.$ac_objext'
10217 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 +  (eval $ac_try) 2>&5
10219 +  ac_status=$?
10220 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 +  (exit $ac_status); }; }; then
10222 +  ac_cv_type_unsigned_long=yes
10223 +else
10224 +  echo "$as_me: failed program was:" >&5
10225 +sed 's/^/| /' conftest.$ac_ext >&5
10226 +
10227 +ac_cv_type_unsigned_long=no
10228  fi
10229 -echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10230 -cat >> confdefs.h <<EOF
10231 -#define SIZEOF_LONG $ac_cv_sizeof_long
10232 -EOF
10233 +rm -f conftest.$ac_objext conftest.$ac_ext
10234 +fi
10235 +echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
10236 +echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
10237  
10238 +echo "$as_me:$LINENO: checking size of unsigned long" >&5
10239 +echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
10240 +if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
10241 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10242 +else
10243 +  if test "$ac_cv_type_unsigned_long" = yes; then
10244 +  # The cast to unsigned long works around a bug in the HP C Compiler
10245 +  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10246 +  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10247 +  # This bug is HP SR number 8606223364.
10248 +  if test "$cross_compiling" = yes; then
10249 +  # Depending upon the size, compute the lo and hi bounds.
10250 +cat >conftest.$ac_ext <<_ACEOF
10251 +#line $LINENO "configure"
10252 +/* confdefs.h.  */
10253 +_ACEOF
10254 +cat confdefs.h >>conftest.$ac_ext
10255 +cat >>conftest.$ac_ext <<_ACEOF
10256 +/* end confdefs.h.  */
10257 +$ac_includes_default
10258 +int
10259 +main ()
10260 +{
10261 +static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
10262 +test_array [0] = 0
10263  
10264 -echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
10265 -echo "configure:2515: checking size of unsigned long" >&5
10266 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
10267 -  echo $ac_n "(cached) $ac_c" 1>&6
10268 +  ;
10269 +  return 0;
10270 +}
10271 +_ACEOF
10272 +rm -f conftest.$ac_objext
10273 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10274 +  (eval $ac_compile) 2>&5
10275 +  ac_status=$?
10276 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 +  (exit $ac_status); } &&
10278 +         { ac_try='test -s conftest.$ac_objext'
10279 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 +  (eval $ac_try) 2>&5
10281 +  ac_status=$?
10282 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 +  (exit $ac_status); }; }; then
10284 +  ac_lo=0 ac_mid=0
10285 +  while :; do
10286 +    cat >conftest.$ac_ext <<_ACEOF
10287 +#line $LINENO "configure"
10288 +/* confdefs.h.  */
10289 +_ACEOF
10290 +cat confdefs.h >>conftest.$ac_ext
10291 +cat >>conftest.$ac_ext <<_ACEOF
10292 +/* end confdefs.h.  */
10293 +$ac_includes_default
10294 +int
10295 +main ()
10296 +{
10297 +static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
10298 +test_array [0] = 0
10299 +
10300 +  ;
10301 +  return 0;
10302 +}
10303 +_ACEOF
10304 +rm -f conftest.$ac_objext
10305 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10306 +  (eval $ac_compile) 2>&5
10307 +  ac_status=$?
10308 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 +  (exit $ac_status); } &&
10310 +         { ac_try='test -s conftest.$ac_objext'
10311 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 +  (eval $ac_try) 2>&5
10313 +  ac_status=$?
10314 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 +  (exit $ac_status); }; }; then
10316 +  ac_hi=$ac_mid; break
10317 +else
10318 +  echo "$as_me: failed program was:" >&5
10319 +sed 's/^/| /' conftest.$ac_ext >&5
10320 +
10321 +ac_lo=`expr $ac_mid + 1`
10322 +                    if test $ac_lo -le $ac_mid; then
10323 +                      ac_lo= ac_hi=
10324 +                      break
10325 +                    fi
10326 +                    ac_mid=`expr 2 '*' $ac_mid + 1`
10327 +fi
10328 +rm -f conftest.$ac_objext conftest.$ac_ext
10329 +  done
10330 +else
10331 +  echo "$as_me: failed program was:" >&5
10332 +sed 's/^/| /' conftest.$ac_ext >&5
10333 +
10334 +cat >conftest.$ac_ext <<_ACEOF
10335 +#line $LINENO "configure"
10336 +/* confdefs.h.  */
10337 +_ACEOF
10338 +cat confdefs.h >>conftest.$ac_ext
10339 +cat >>conftest.$ac_ext <<_ACEOF
10340 +/* end confdefs.h.  */
10341 +$ac_includes_default
10342 +int
10343 +main ()
10344 +{
10345 +static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
10346 +test_array [0] = 0
10347 +
10348 +  ;
10349 +  return 0;
10350 +}
10351 +_ACEOF
10352 +rm -f conftest.$ac_objext
10353 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354 +  (eval $ac_compile) 2>&5
10355 +  ac_status=$?
10356 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 +  (exit $ac_status); } &&
10358 +         { ac_try='test -s conftest.$ac_objext'
10359 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 +  (eval $ac_try) 2>&5
10361 +  ac_status=$?
10362 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 +  (exit $ac_status); }; }; then
10364 +  ac_hi=-1 ac_mid=-1
10365 +  while :; do
10366 +    cat >conftest.$ac_ext <<_ACEOF
10367 +#line $LINENO "configure"
10368 +/* confdefs.h.  */
10369 +_ACEOF
10370 +cat confdefs.h >>conftest.$ac_ext
10371 +cat >>conftest.$ac_ext <<_ACEOF
10372 +/* end confdefs.h.  */
10373 +$ac_includes_default
10374 +int
10375 +main ()
10376 +{
10377 +static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
10378 +test_array [0] = 0
10379 +
10380 +  ;
10381 +  return 0;
10382 +}
10383 +_ACEOF
10384 +rm -f conftest.$ac_objext
10385 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10386 +  (eval $ac_compile) 2>&5
10387 +  ac_status=$?
10388 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 +  (exit $ac_status); } &&
10390 +         { ac_try='test -s conftest.$ac_objext'
10391 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 +  (eval $ac_try) 2>&5
10393 +  ac_status=$?
10394 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 +  (exit $ac_status); }; }; then
10396 +  ac_lo=$ac_mid; break
10397 +else
10398 +  echo "$as_me: failed program was:" >&5
10399 +sed 's/^/| /' conftest.$ac_ext >&5
10400 +
10401 +ac_hi=`expr '(' $ac_mid ')' - 1`
10402 +                       if test $ac_mid -le $ac_hi; then
10403 +                         ac_lo= ac_hi=
10404 +                         break
10405 +                       fi
10406 +                       ac_mid=`expr 2 '*' $ac_mid`
10407 +fi
10408 +rm -f conftest.$ac_objext conftest.$ac_ext
10409 +  done
10410 +else
10411 +  echo "$as_me: failed program was:" >&5
10412 +sed 's/^/| /' conftest.$ac_ext >&5
10413 +
10414 +ac_lo= ac_hi=
10415 +fi
10416 +rm -f conftest.$ac_objext conftest.$ac_ext
10417 +fi
10418 +rm -f conftest.$ac_objext conftest.$ac_ext
10419 +# Binary search between lo and hi bounds.
10420 +while test "x$ac_lo" != "x$ac_hi"; do
10421 +  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10422 +  cat >conftest.$ac_ext <<_ACEOF
10423 +#line $LINENO "configure"
10424 +/* confdefs.h.  */
10425 +_ACEOF
10426 +cat confdefs.h >>conftest.$ac_ext
10427 +cat >>conftest.$ac_ext <<_ACEOF
10428 +/* end confdefs.h.  */
10429 +$ac_includes_default
10430 +int
10431 +main ()
10432 +{
10433 +static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
10434 +test_array [0] = 0
10435 +
10436 +  ;
10437 +  return 0;
10438 +}
10439 +_ACEOF
10440 +rm -f conftest.$ac_objext
10441 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10442 +  (eval $ac_compile) 2>&5
10443 +  ac_status=$?
10444 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 +  (exit $ac_status); } &&
10446 +         { ac_try='test -s conftest.$ac_objext'
10447 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 +  (eval $ac_try) 2>&5
10449 +  ac_status=$?
10450 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 +  (exit $ac_status); }; }; then
10452 +  ac_hi=$ac_mid
10453 +else
10454 +  echo "$as_me: failed program was:" >&5
10455 +sed 's/^/| /' conftest.$ac_ext >&5
10456 +
10457 +ac_lo=`expr '(' $ac_mid ')' + 1`
10458 +fi
10459 +rm -f conftest.$ac_objext conftest.$ac_ext
10460 +done
10461 +case $ac_lo in
10462 +?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
10463 +'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
10464 +See \`config.log' for more details." >&5
10465 +echo "$as_me: error: cannot compute sizeof (unsigned long), 77
10466 +See \`config.log' for more details." >&2;}
10467 +   { (exit 1); exit 1; }; } ;;
10468 +esac
10469  else
10470    if test "$cross_compiling" = yes; then
10471 -  ac_cv_sizeof_unsigned_long="$default_int"
10472 +  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10473 +See \`config.log' for more details." >&5
10474 +echo "$as_me: error: cannot run test program while cross compiling
10475 +See \`config.log' for more details." >&2;}
10476 +   { (exit 1); exit 1; }; }
10477  else
10478 -  cat > conftest.$ac_ext <<EOF
10479 -#line 2523 "configure"
10480 -#include "confdefs.h"
10481 +  cat >conftest.$ac_ext <<_ACEOF
10482 +#line $LINENO "configure"
10483 +/* confdefs.h.  */
10484 +_ACEOF
10485 +cat confdefs.h >>conftest.$ac_ext
10486 +cat >>conftest.$ac_ext <<_ACEOF
10487 +/* end confdefs.h.  */
10488 +$ac_includes_default
10489 +long longval () { return (long) (sizeof (unsigned long)); }
10490 +unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
10491  #include <stdio.h>
10492 -main()
10493 +#include <stdlib.h>
10494 +int
10495 +main ()
10496  {
10497 -  FILE *f=fopen("conftestval", "w");
10498 -  if (!f) exit(1);
10499 -  fprintf(f, "%d\n", sizeof(unsigned long));
10500 -  exit(0);
10501 +
10502 +  FILE *f = fopen ("conftest.val", "w");
10503 +  if (! f)
10504 +    exit (1);
10505 +  if (((long) (sizeof (unsigned long))) < 0)
10506 +    {
10507 +      long i = longval ();
10508 +      if (i != ((long) (sizeof (unsigned long))))
10509 +       exit (1);
10510 +      fprintf (f, "%ld\n", i);
10511 +    }
10512 +  else
10513 +    {
10514 +      unsigned long i = ulongval ();
10515 +      if (i != ((long) (sizeof (unsigned long))))
10516 +       exit (1);
10517 +      fprintf (f, "%lu\n", i);
10518 +    }
10519 +  exit (ferror (f) || fclose (f) != 0);
10520 +
10521 +  ;
10522 +  return 0;
10523  }
10524 -EOF
10525 -if { (eval echo configure:2534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10526 -then
10527 -  ac_cv_sizeof_unsigned_long=`cat conftestval`
10528 +_ACEOF
10529 +rm -f conftest$ac_exeext
10530 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10531 +  (eval $ac_link) 2>&5
10532 +  ac_status=$?
10533 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10535 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536 +  (eval $ac_try) 2>&5
10537 +  ac_status=$?
10538 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 +  (exit $ac_status); }; }; then
10540 +  ac_cv_sizeof_unsigned_long=`cat conftest.val`
10541  else
10542 -  echo "configure: failed program was:" >&5
10543 -  cat conftest.$ac_ext >&5
10544 -  rm -fr conftest*
10545 -  ac_cv_sizeof_unsigned_long=0
10546 +  echo "$as_me: program exited with status $ac_status" >&5
10547 +echo "$as_me: failed program was:" >&5
10548 +sed 's/^/| /' conftest.$ac_ext >&5
10549 +
10550 +( exit $ac_status )
10551 +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
10552 +See \`config.log' for more details." >&5
10553 +echo "$as_me: error: cannot compute sizeof (unsigned long), 77
10554 +See \`config.log' for more details." >&2;}
10555 +   { (exit 1); exit 1; }; }
10556  fi
10557 -rm -fr conftest*
10558 +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10559  fi
10560 -
10561  fi
10562 -echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
10563 -cat >> confdefs.h <<EOF
10564 +rm -f conftest.val
10565 +else
10566 +  ac_cv_sizeof_unsigned_long=0
10567 +fi
10568 +fi
10569 +echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
10570 +echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
10571 +cat >>confdefs.h <<_ACEOF
10572  #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
10573 -EOF
10574 +_ACEOF
10575  
10576  
10577 -echo $ac_n "checking for big endian""... $ac_c" 1>&6
10578 -echo "configure:2554: checking for big endian" >&5
10579 -if eval "test \"`echo '$''{'ac_cv_big_endian'+set}'`\" = set"; then
10580 -  echo $ac_n "(cached) $ac_c" 1>&6
10581 +echo "$as_me:$LINENO: checking for big endian" >&5
10582 +echo $ECHO_N "checking for big endian... $ECHO_C" >&6
10583 +if test "${ac_cv_big_endian+set}" = set; then
10584 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10585  else
10586    if test "$cross_compiling" = yes; then
10587    ac_cv_big_endian=no
10588  else
10589 -  cat > conftest.$ac_ext <<EOF
10590 -#line 2562 "configure"
10591 -#include "confdefs.h"
10592 +  cat >conftest.$ac_ext <<_ACEOF
10593 +#line $LINENO "configure"
10594 +/* confdefs.h.  */
10595 +_ACEOF
10596 +cat confdefs.h >>conftest.$ac_ext
10597 +cat >>conftest.$ac_ext <<_ACEOF
10598 +/* end confdefs.h.  */
10599  
10600         long l;
10601         char *c = (char *)&l;
10602 @@ -2568,35 +8795,49 @@
10603                 l = 0x12345678L;
10604                 return !(c[sizeof(long) - 1] == 0x78 && c[sizeof(long) - 2] == 0x56 && c[sizeof(long) - 3] == 0x34 && c[sizeof(long) - 4] == 0x12);
10605         }
10606 -       
10607 -EOF
10608 -if { (eval echo configure:2574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10609 -then
10610 +
10611 +_ACEOF
10612 +rm -f conftest$ac_exeext
10613 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10614 +  (eval $ac_link) 2>&5
10615 +  ac_status=$?
10616 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10618 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619 +  (eval $ac_try) 2>&5
10620 +  ac_status=$?
10621 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 +  (exit $ac_status); }; }; then
10623    ac_cv_big_endian=yes
10624  else
10625 -  echo "configure: failed program was:" >&5
10626 -  cat conftest.$ac_ext >&5
10627 -  rm -fr conftest*
10628 -  ac_cv_big_endian=no
10629 +  echo "$as_me: program exited with status $ac_status" >&5
10630 +echo "$as_me: failed program was:" >&5
10631 +sed 's/^/| /' conftest.$ac_ext >&5
10632 +
10633 +( exit $ac_status )
10634 +ac_cv_big_endian=no
10635  fi
10636 -rm -fr conftest*
10637 +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10638  fi
10639  
10640 -
10641  fi
10642 -
10643 -echo "$ac_t""$ac_cv_big_endian" 1>&6
10644 -echo $ac_n "checking for little endian""... $ac_c" 1>&6
10645 -echo "configure:2591: checking for little endian" >&5
10646 -if eval "test \"`echo '$''{'ac_cv_little_endian'+set}'`\" = set"; then
10647 -  echo $ac_n "(cached) $ac_c" 1>&6
10648 +echo "$as_me:$LINENO: result: $ac_cv_big_endian" >&5
10649 +echo "${ECHO_T}$ac_cv_big_endian" >&6
10650 +echo "$as_me:$LINENO: checking for little endian" >&5
10651 +echo $ECHO_N "checking for little endian... $ECHO_C" >&6
10652 +if test "${ac_cv_little_endian+set}" = set; then
10653 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10654  else
10655    if test "$cross_compiling" = yes; then
10656    ac_cv_little_endian="$ac_cv_have_emx"
10657  else
10658 -  cat > conftest.$ac_ext <<EOF
10659 -#line 2599 "configure"
10660 -#include "confdefs.h"
10661 +  cat >conftest.$ac_ext <<_ACEOF
10662 +#line $LINENO "configure"
10663 +/* confdefs.h.  */
10664 +_ACEOF
10665 +cat confdefs.h >>conftest.$ac_ext
10666 +cat >>conftest.$ac_ext <<_ACEOF
10667 +/* end confdefs.h.  */
10668  
10669         long l;
10670         char *c = (char *)&l;
10671 @@ -2605,133 +8846,194 @@
10672                 l = 0x12345678L;
10673                 return !(c[0] == 0x78 && c[1] == 0x56 && c[2] == 0x34 && c[3] == 0x12);
10674         }
10675 -       
10676 -EOF
10677 -if { (eval echo configure:2611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10678 -then
10679 +
10680 +_ACEOF
10681 +rm -f conftest$ac_exeext
10682 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10683 +  (eval $ac_link) 2>&5
10684 +  ac_status=$?
10685 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10687 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688 +  (eval $ac_try) 2>&5
10689 +  ac_status=$?
10690 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 +  (exit $ac_status); }; }; then
10692    ac_cv_little_endian=yes
10693  else
10694 -  echo "configure: failed program was:" >&5
10695 -  cat conftest.$ac_ext >&5
10696 -  rm -fr conftest*
10697 -  ac_cv_little_endian=no
10698 +  echo "$as_me: program exited with status $ac_status" >&5
10699 +echo "$as_me: failed program was:" >&5
10700 +sed 's/^/| /' conftest.$ac_ext >&5
10701 +
10702 +( exit $ac_status )
10703 +ac_cv_little_endian=no
10704  fi
10705 -rm -fr conftest*
10706 +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10707  fi
10708  
10709 -
10710  fi
10711 +echo "$as_me:$LINENO: result: $ac_cv_little_endian" >&5
10712 +echo "${ECHO_T}$ac_cv_little_endian" >&6
10713 +
10714 +
10715  
10716 -echo "$ac_t""$ac_cv_little_endian" 1>&6
10717  
10718  if test "$ac_cv_big_endian" = yes; then
10719 -       cat >> confdefs.h <<\EOF
10720 -#define AC_BIG_ENDIAN 1
10721 -EOF
10722 +       cat >>confdefs.h <<\_ACEOF
10723 +#define  1
10724 +_ACEOF
10725  
10726  else if test "$ac_cv_little_endian" = yes; then
10727 -       cat >> confdefs.h <<\EOF
10728 -#define AC_LITTLE_ENDIAN 1
10729 -EOF
10730 +       cat >>confdefs.h <<\_ACEOF
10731 +#define  1
10732 +_ACEOF
10733  
10734  fi
10735  fi
10736  
10737 -if test $ac_cv_prog_gcc = yes; then
10738 -    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
10739 -echo "configure:2643: checking whether ${CC-cc} needs -traditional" >&5
10740 -if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
10741 -  echo $ac_n "(cached) $ac_c" 1>&6
10742 +if test $ac_cv_c_compiler_gnu = yes; then
10743 +    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10744 +echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10745 +if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10746 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10747  else
10748      ac_pattern="Autoconf.*'x'"
10749 -  cat > conftest.$ac_ext <<EOF
10750 -#line 2649 "configure"
10751 -#include "confdefs.h"
10752 +  cat >conftest.$ac_ext <<_ACEOF
10753 +#line $LINENO "configure"
10754 +/* confdefs.h.  */
10755 +_ACEOF
10756 +cat confdefs.h >>conftest.$ac_ext
10757 +cat >>conftest.$ac_ext <<_ACEOF
10758 +/* end confdefs.h.  */
10759  #include <sgtty.h>
10760  Autoconf TIOCGETP
10761 -EOF
10762 +_ACEOF
10763  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10764 -  egrep "$ac_pattern" >/dev/null 2>&1; then
10765 -  rm -rf conftest*
10766 +  $EGREP "$ac_pattern" >/dev/null 2>&1; then
10767    ac_cv_prog_gcc_traditional=yes
10768  else
10769 -  rm -rf conftest*
10770    ac_cv_prog_gcc_traditional=no
10771  fi
10772  rm -f conftest*
10773  
10774  
10775    if test $ac_cv_prog_gcc_traditional = no; then
10776 -    cat > conftest.$ac_ext <<EOF
10777 -#line 2667 "configure"
10778 -#include "confdefs.h"
10779 +    cat >conftest.$ac_ext <<_ACEOF
10780 +#line $LINENO "configure"
10781 +/* confdefs.h.  */
10782 +_ACEOF
10783 +cat confdefs.h >>conftest.$ac_ext
10784 +cat >>conftest.$ac_ext <<_ACEOF
10785 +/* end confdefs.h.  */
10786  #include <termio.h>
10787  Autoconf TCGETA
10788 -EOF
10789 +_ACEOF
10790  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10791 -  egrep "$ac_pattern" >/dev/null 2>&1; then
10792 -  rm -rf conftest*
10793 +  $EGREP "$ac_pattern" >/dev/null 2>&1; then
10794    ac_cv_prog_gcc_traditional=yes
10795  fi
10796  rm -f conftest*
10797  
10798    fi
10799  fi
10800 -
10801 -echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10802 +echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10803 +echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10804    if test $ac_cv_prog_gcc_traditional = yes; then
10805      CC="$CC -traditional"
10806    fi
10807  fi
10808  
10809 -echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
10810 -echo "configure:2689: checking for 8-bit clean memcmp" >&5
10811 -if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
10812 -  echo $ac_n "(cached) $ac_c" 1>&6
10813 +echo "$as_me:$LINENO: checking for working memcmp" >&5
10814 +echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10815 +if test "${ac_cv_func_memcmp_working+set}" = set; then
10816 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10817  else
10818    if test "$cross_compiling" = yes; then
10819 -  ac_cv_func_memcmp_clean=no
10820 +  ac_cv_func_memcmp_working=no
10821  else
10822 -  cat > conftest.$ac_ext <<EOF
10823 -#line 2697 "configure"
10824 -#include "confdefs.h"
10825 +  cat >conftest.$ac_ext <<_ACEOF
10826 +#line $LINENO "configure"
10827 +/* confdefs.h.  */
10828 +_ACEOF
10829 +cat confdefs.h >>conftest.$ac_ext
10830 +cat >>conftest.$ac_ext <<_ACEOF
10831 +/* end confdefs.h.  */
10832  
10833 -main()
10834 +int
10835 +main ()
10836  {
10837 +
10838 +  /* Some versions of memcmp are not 8-bit clean.  */
10839    char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10840 -  exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10841 -}
10842 +  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10843 +    exit (1);
10844  
10845 -EOF
10846 -if { (eval echo configure:2707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10847 -then
10848 -  ac_cv_func_memcmp_clean=yes
10849 +  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10850 +     or more and with at least one buffer not starting on a 4-byte boundary.
10851 +     William Lewis provided this test program.   */
10852 +  {
10853 +    char foo[21];
10854 +    char bar[21];
10855 +    int i;
10856 +    for (i = 0; i < 4; i++)
10857 +      {
10858 +        char *a = foo + i;
10859 +        char *b = bar + i;
10860 +        strcpy (a, "--------01111111");
10861 +        strcpy (b, "--------10000000");
10862 +        if (memcmp (a, b, 16) >= 0)
10863 +          exit (1);
10864 +      }
10865 +    exit (0);
10866 +  }
10867 +
10868 +  ;
10869 +  return 0;
10870 +}
10871 +_ACEOF
10872 +rm -f conftest$ac_exeext
10873 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10874 +  (eval $ac_link) 2>&5
10875 +  ac_status=$?
10876 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10878 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879 +  (eval $ac_try) 2>&5
10880 +  ac_status=$?
10881 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 +  (exit $ac_status); }; }; then
10883 +  ac_cv_func_memcmp_working=yes
10884  else
10885 -  echo "configure: failed program was:" >&5
10886 -  cat conftest.$ac_ext >&5
10887 -  rm -fr conftest*
10888 -  ac_cv_func_memcmp_clean=no
10889 +  echo "$as_me: program exited with status $ac_status" >&5
10890 +echo "$as_me: failed program was:" >&5
10891 +sed 's/^/| /' conftest.$ac_ext >&5
10892 +
10893 +( exit $ac_status )
10894 +ac_cv_func_memcmp_working=no
10895  fi
10896 -rm -fr conftest*
10897 +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10898  fi
10899 -
10900  fi
10901 +echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10902 +echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10903 +test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10904  
10905 -echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
10906 -test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
10907 -
10908 -echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
10909 -echo "configure:2725: checking return type of signal handlers" >&5
10910 -if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
10911 -  echo $ac_n "(cached) $ac_c" 1>&6
10912 +echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10913 +echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10914 +if test "${ac_cv_type_signal+set}" = set; then
10915 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10916  else
10917 -  cat > conftest.$ac_ext <<EOF
10918 -#line 2730 "configure"
10919 -#include "confdefs.h"
10920 +  cat >conftest.$ac_ext <<_ACEOF
10921 +#line $LINENO "configure"
10922 +/* confdefs.h.  */
10923 +_ACEOF
10924 +cat confdefs.h >>conftest.$ac_ext
10925 +cat >>conftest.$ac_ext <<_ACEOF
10926 +/* end confdefs.h.  */
10927  #include <sys/types.h>
10928  #include <signal.h>
10929  #ifdef signal
10930 -#undef signal
10931 +# undef signal
10932  #endif
10933  #ifdef __cplusplus
10934  extern "C" void (*signal (int, void (*)(int)))(int);
10935 @@ -2739,1144 +9041,1737 @@
10936  void (*signal ()) ();
10937  #endif
10938  
10939 -int main() {
10940 +int
10941 +main ()
10942 +{
10943  int i;
10944 -; return 0; }
10945 -EOF
10946 -if { (eval echo configure:2747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10947 -  rm -rf conftest*
10948 +  ;
10949 +  return 0;
10950 +}
10951 +_ACEOF
10952 +rm -f conftest.$ac_objext
10953 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10954 +  (eval $ac_compile) 2>&5
10955 +  ac_status=$?
10956 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 +  (exit $ac_status); } &&
10958 +         { ac_try='test -s conftest.$ac_objext'
10959 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 +  (eval $ac_try) 2>&5
10961 +  ac_status=$?
10962 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 +  (exit $ac_status); }; }; then
10964    ac_cv_type_signal=void
10965  else
10966 -  echo "configure: failed program was:" >&5
10967 -  cat conftest.$ac_ext >&5
10968 -  rm -rf conftest*
10969 -  ac_cv_type_signal=int
10970 +  echo "$as_me: failed program was:" >&5
10971 +sed 's/^/| /' conftest.$ac_ext >&5
10972 +
10973 +ac_cv_type_signal=int
10974  fi
10975 -rm -f conftest*
10976 +rm -f conftest.$ac_objext conftest.$ac_ext
10977  fi
10978 +echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10979 +echo "${ECHO_T}$ac_cv_type_signal" >&6
10980  
10981 -echo "$ac_t""$ac_cv_type_signal" 1>&6
10982 -cat >> confdefs.h <<EOF
10983 +cat >>confdefs.h <<_ACEOF
10984  #define RETSIGTYPE $ac_cv_type_signal
10985 -EOF
10986 +_ACEOF
10987  
10988  
10989 -echo $ac_n "checking for strftime""... $ac_c" 1>&6
10990 -echo "configure:2766: checking for strftime" >&5
10991 -if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
10992 -  echo $ac_n "(cached) $ac_c" 1>&6
10993 +
10994 +for ac_func in strftime
10995 +do
10996 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10997 +echo "$as_me:$LINENO: checking for $ac_func" >&5
10998 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10999 +if eval "test \"\${$as_ac_var+set}\" = set"; then
11000 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11001  else
11002 -  cat > conftest.$ac_ext <<EOF
11003 -#line 2771 "configure"
11004 -#include "confdefs.h"
11005 +  cat >conftest.$ac_ext <<_ACEOF
11006 +#line $LINENO "configure"
11007 +/* confdefs.h.  */
11008 +_ACEOF
11009 +cat confdefs.h >>conftest.$ac_ext
11010 +cat >>conftest.$ac_ext <<_ACEOF
11011 +/* end confdefs.h.  */
11012  /* System header to define __stub macros and hopefully few prototypes,
11013 -    which can conflict with char strftime(); below.  */
11014 -#include <assert.h>
11015 +    which can conflict with char $ac_func (); below.
11016 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11017 +    <limits.h> exists even on freestanding compilers.  */
11018 +#ifdef __STDC__
11019 +# include <limits.h>
11020 +#else
11021 +# include <assert.h>
11022 +#endif
11023  /* Override any gcc2 internal prototype to avoid an error.  */
11024 +#ifdef __cplusplus
11025 +extern "C"
11026 +{
11027 +#endif
11028  /* We use char because int might match the return type of a gcc2
11029 -    builtin and then its argument prototype would still apply.  */
11030 -char strftime();
11031 -
11032 -int main() {
11033 -
11034 +   builtin and then its argument prototype would still apply.  */
11035 +char $ac_func ();
11036  /* The GNU C library defines this for functions which it implements
11037      to always fail with ENOSYS.  Some functions are actually named
11038      something starting with __ and the normal name is an alias.  */
11039 -#if defined (__stub_strftime) || defined (__stub___strftime)
11040 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11041  choke me
11042  #else
11043 -strftime();
11044 +char (*f) () = $ac_func;
11045 +#endif
11046 +#ifdef __cplusplus
11047 +}
11048  #endif
11049  
11050 -; return 0; }
11051 -EOF
11052 -if { (eval echo configure:2794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11053 -  rm -rf conftest*
11054 -  eval "ac_cv_func_strftime=yes"
11055 +int
11056 +main ()
11057 +{
11058 +return f != $ac_func;
11059 +  ;
11060 +  return 0;
11061 +}
11062 +_ACEOF
11063 +rm -f conftest.$ac_objext conftest$ac_exeext
11064 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11065 +  (eval $ac_link) 2>&5
11066 +  ac_status=$?
11067 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 +  (exit $ac_status); } &&
11069 +         { ac_try='test -s conftest$ac_exeext'
11070 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 +  (eval $ac_try) 2>&5
11072 +  ac_status=$?
11073 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 +  (exit $ac_status); }; }; then
11075 +  eval "$as_ac_var=yes"
11076  else
11077 -  echo "configure: failed program was:" >&5
11078 -  cat conftest.$ac_ext >&5
11079 -  rm -rf conftest*
11080 -  eval "ac_cv_func_strftime=no"
11081 +  echo "$as_me: failed program was:" >&5
11082 +sed 's/^/| /' conftest.$ac_ext >&5
11083 +
11084 +eval "$as_ac_var=no"
11085  fi
11086 -rm -f conftest*
11087 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11088  fi
11089 -
11090 -if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
11091 -  echo "$ac_t""yes" 1>&6
11092 -  cat >> confdefs.h <<\EOF
11093 -#define HAVE_STRFTIME 1
11094 -EOF
11095 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11096 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11097 +if test `eval echo '${'$as_ac_var'}'` = yes; then
11098 +  cat >>confdefs.h <<_ACEOF
11099 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11100 +_ACEOF
11101  
11102  else
11103 -  echo "$ac_t""no" 1>&6
11104 -# strftime is in -lintl on SCO UNIX.
11105 -echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
11106 -echo "configure:2816: checking for strftime in -lintl" >&5
11107 -ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
11108 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11109 -  echo $ac_n "(cached) $ac_c" 1>&6
11110 +  # strftime is in -lintl on SCO UNIX.
11111 +echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11112 +echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
11113 +if test "${ac_cv_lib_intl_strftime+set}" = set; then
11114 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11115  else
11116 -  ac_save_LIBS="$LIBS"
11117 +  ac_check_lib_save_LIBS=$LIBS
11118  LIBS="-lintl  $LIBS"
11119 -cat > conftest.$ac_ext <<EOF
11120 -#line 2824 "configure"
11121 -#include "confdefs.h"
11122 +cat >conftest.$ac_ext <<_ACEOF
11123 +#line $LINENO "configure"
11124 +/* confdefs.h.  */
11125 +_ACEOF
11126 +cat confdefs.h >>conftest.$ac_ext
11127 +cat >>conftest.$ac_ext <<_ACEOF
11128 +/* end confdefs.h.  */
11129 +
11130  /* Override any gcc2 internal prototype to avoid an error.  */
11131 +#ifdef __cplusplus
11132 +extern "C"
11133 +#endif
11134  /* We use char because int might match the return type of a gcc2
11135 -    builtin and then its argument prototype would still apply.  */
11136 -char strftime();
11137 -
11138 -int main() {
11139 -strftime()
11140 -; return 0; }
11141 -EOF
11142 -if { (eval echo configure:2835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11143 -  rm -rf conftest*
11144 -  eval "ac_cv_lib_$ac_lib_var=yes"
11145 +   builtin and then its argument prototype would still apply.  */
11146 +char strftime ();
11147 +int
11148 +main ()
11149 +{
11150 +strftime ();
11151 +  ;
11152 +  return 0;
11153 +}
11154 +_ACEOF
11155 +rm -f conftest.$ac_objext conftest$ac_exeext
11156 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11157 +  (eval $ac_link) 2>&5
11158 +  ac_status=$?
11159 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 +  (exit $ac_status); } &&
11161 +         { ac_try='test -s conftest$ac_exeext'
11162 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 +  (eval $ac_try) 2>&5
11164 +  ac_status=$?
11165 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 +  (exit $ac_status); }; }; then
11167 +  ac_cv_lib_intl_strftime=yes
11168  else
11169 -  echo "configure: failed program was:" >&5
11170 -  cat conftest.$ac_ext >&5
11171 -  rm -rf conftest*
11172 -  eval "ac_cv_lib_$ac_lib_var=no"
11173 -fi
11174 -rm -f conftest*
11175 -LIBS="$ac_save_LIBS"
11176 +  echo "$as_me: failed program was:" >&5
11177 +sed 's/^/| /' conftest.$ac_ext >&5
11178  
11179 +ac_cv_lib_intl_strftime=no
11180  fi
11181 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11182 -  echo "$ac_t""yes" 1>&6
11183 -  cat >> confdefs.h <<\EOF
11184 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11185 +LIBS=$ac_check_lib_save_LIBS
11186 +fi
11187 +echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
11188 +echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
11189 +if test $ac_cv_lib_intl_strftime = yes; then
11190 +  cat >>confdefs.h <<\_ACEOF
11191  #define HAVE_STRFTIME 1
11192 -EOF
11193 +_ACEOF
11194  
11195  LIBS="-lintl $LIBS"
11196 -else
11197 -  echo "$ac_t""no" 1>&6
11198  fi
11199  
11200  fi
11201 +done
11202  
11203 -echo $ac_n "checking for vprintf""... $ac_c" 1>&6
11204 -echo "configure:2862: checking for vprintf" >&5
11205 -if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
11206 -  echo $ac_n "(cached) $ac_c" 1>&6
11207 +
11208 +for ac_func in vprintf
11209 +do
11210 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11211 +echo "$as_me:$LINENO: checking for $ac_func" >&5
11212 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11213 +if eval "test \"\${$as_ac_var+set}\" = set"; then
11214 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11215  else
11216 -  cat > conftest.$ac_ext <<EOF
11217 -#line 2867 "configure"
11218 -#include "confdefs.h"
11219 +  cat >conftest.$ac_ext <<_ACEOF
11220 +#line $LINENO "configure"
11221 +/* confdefs.h.  */
11222 +_ACEOF
11223 +cat confdefs.h >>conftest.$ac_ext
11224 +cat >>conftest.$ac_ext <<_ACEOF
11225 +/* end confdefs.h.  */
11226  /* System header to define __stub macros and hopefully few prototypes,
11227 -    which can conflict with char vprintf(); below.  */
11228 -#include <assert.h>
11229 +    which can conflict with char $ac_func (); below.
11230 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11231 +    <limits.h> exists even on freestanding compilers.  */
11232 +#ifdef __STDC__
11233 +# include <limits.h>
11234 +#else
11235 +# include <assert.h>
11236 +#endif
11237  /* Override any gcc2 internal prototype to avoid an error.  */
11238 +#ifdef __cplusplus
11239 +extern "C"
11240 +{
11241 +#endif
11242  /* We use char because int might match the return type of a gcc2
11243 -    builtin and then its argument prototype would still apply.  */
11244 -char vprintf();
11245 -
11246 -int main() {
11247 -
11248 +   builtin and then its argument prototype would still apply.  */
11249 +char $ac_func ();
11250  /* The GNU C library defines this for functions which it implements
11251      to always fail with ENOSYS.  Some functions are actually named
11252      something starting with __ and the normal name is an alias.  */
11253 -#if defined (__stub_vprintf) || defined (__stub___vprintf)
11254 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11255  choke me
11256  #else
11257 -vprintf();
11258 +char (*f) () = $ac_func;
11259 +#endif
11260 +#ifdef __cplusplus
11261 +}
11262  #endif
11263  
11264 -; return 0; }
11265 -EOF
11266 -if { (eval echo configure:2890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11267 -  rm -rf conftest*
11268 -  eval "ac_cv_func_vprintf=yes"
11269 +int
11270 +main ()
11271 +{
11272 +return f != $ac_func;
11273 +  ;
11274 +  return 0;
11275 +}
11276 +_ACEOF
11277 +rm -f conftest.$ac_objext conftest$ac_exeext
11278 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11279 +  (eval $ac_link) 2>&5
11280 +  ac_status=$?
11281 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 +  (exit $ac_status); } &&
11283 +         { ac_try='test -s conftest$ac_exeext'
11284 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11285 +  (eval $ac_try) 2>&5
11286 +  ac_status=$?
11287 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 +  (exit $ac_status); }; }; then
11289 +  eval "$as_ac_var=yes"
11290  else
11291 -  echo "configure: failed program was:" >&5
11292 -  cat conftest.$ac_ext >&5
11293 -  rm -rf conftest*
11294 -  eval "ac_cv_func_vprintf=no"
11295 -fi
11296 -rm -f conftest*
11297 -fi
11298 -
11299 -if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
11300 -  echo "$ac_t""yes" 1>&6
11301 -  cat >> confdefs.h <<\EOF
11302 -#define HAVE_VPRINTF 1
11303 -EOF
11304 +  echo "$as_me: failed program was:" >&5
11305 +sed 's/^/| /' conftest.$ac_ext >&5
11306  
11307 -else
11308 -  echo "$ac_t""no" 1>&6
11309 +eval "$as_ac_var=no"
11310 +fi
11311 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11312  fi
11313 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11314 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11315 +if test `eval echo '${'$as_ac_var'}'` = yes; then
11316 +  cat >>confdefs.h <<_ACEOF
11317 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11318 +_ACEOF
11319  
11320 -if test "$ac_cv_func_vprintf" != yes; then
11321 -echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
11322 -echo "configure:2914: checking for _doprnt" >&5
11323 -if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
11324 -  echo $ac_n "(cached) $ac_c" 1>&6
11325 +echo "$as_me:$LINENO: checking for _doprnt" >&5
11326 +echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
11327 +if test "${ac_cv_func__doprnt+set}" = set; then
11328 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11329  else
11330 -  cat > conftest.$ac_ext <<EOF
11331 -#line 2919 "configure"
11332 -#include "confdefs.h"
11333 +  cat >conftest.$ac_ext <<_ACEOF
11334 +#line $LINENO "configure"
11335 +/* confdefs.h.  */
11336 +_ACEOF
11337 +cat confdefs.h >>conftest.$ac_ext
11338 +cat >>conftest.$ac_ext <<_ACEOF
11339 +/* end confdefs.h.  */
11340  /* System header to define __stub macros and hopefully few prototypes,
11341 -    which can conflict with char _doprnt(); below.  */
11342 -#include <assert.h>
11343 +    which can conflict with char _doprnt (); below.
11344 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11345 +    <limits.h> exists even on freestanding compilers.  */
11346 +#ifdef __STDC__
11347 +# include <limits.h>
11348 +#else
11349 +# include <assert.h>
11350 +#endif
11351  /* Override any gcc2 internal prototype to avoid an error.  */
11352 +#ifdef __cplusplus
11353 +extern "C"
11354 +{
11355 +#endif
11356  /* We use char because int might match the return type of a gcc2
11357 -    builtin and then its argument prototype would still apply.  */
11358 -char _doprnt();
11359 -
11360 -int main() {
11361 -
11362 +   builtin and then its argument prototype would still apply.  */
11363 +char _doprnt ();
11364  /* The GNU C library defines this for functions which it implements
11365      to always fail with ENOSYS.  Some functions are actually named
11366      something starting with __ and the normal name is an alias.  */
11367  #if defined (__stub__doprnt) || defined (__stub____doprnt)
11368  choke me
11369  #else
11370 -_doprnt();
11371 +char (*f) () = _doprnt;
11372 +#endif
11373 +#ifdef __cplusplus
11374 +}
11375  #endif
11376  
11377 -; return 0; }
11378 -EOF
11379 -if { (eval echo configure:2942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11380 -  rm -rf conftest*
11381 -  eval "ac_cv_func__doprnt=yes"
11382 +int
11383 +main ()
11384 +{
11385 +return f != _doprnt;
11386 +  ;
11387 +  return 0;
11388 +}
11389 +_ACEOF
11390 +rm -f conftest.$ac_objext conftest$ac_exeext
11391 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11392 +  (eval $ac_link) 2>&5
11393 +  ac_status=$?
11394 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 +  (exit $ac_status); } &&
11396 +         { ac_try='test -s conftest$ac_exeext'
11397 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11398 +  (eval $ac_try) 2>&5
11399 +  ac_status=$?
11400 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 +  (exit $ac_status); }; }; then
11402 +  ac_cv_func__doprnt=yes
11403  else
11404 -  echo "configure: failed program was:" >&5
11405 -  cat conftest.$ac_ext >&5
11406 -  rm -rf conftest*
11407 -  eval "ac_cv_func__doprnt=no"
11408 +  echo "$as_me: failed program was:" >&5
11409 +sed 's/^/| /' conftest.$ac_ext >&5
11410 +
11411 +ac_cv_func__doprnt=no
11412  fi
11413 -rm -f conftest*
11414 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11415  fi
11416 +echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11417 +echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11418 +if test $ac_cv_func__doprnt = yes; then
11419  
11420 -if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
11421 -  echo "$ac_t""yes" 1>&6
11422 -  cat >> confdefs.h <<\EOF
11423 +cat >>confdefs.h <<\_ACEOF
11424  #define HAVE_DOPRNT 1
11425 -EOF
11426 +_ACEOF
11427  
11428 -else
11429 -  echo "$ac_t""no" 1>&6
11430  fi
11431  
11432  fi
11433 +done
11434 +
11435 +
11436  
11437  for ac_func in calloc
11438  do
11439 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11440 -echo "configure:2969: checking for $ac_func" >&5
11441 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11442 -  echo $ac_n "(cached) $ac_c" 1>&6
11443 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11444 +echo "$as_me:$LINENO: checking for $ac_func" >&5
11445 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11446 +if eval "test \"\${$as_ac_var+set}\" = set"; then
11447 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11448  else
11449 -  cat > conftest.$ac_ext <<EOF
11450 -#line 2974 "configure"
11451 -#include "confdefs.h"
11452 +  cat >conftest.$ac_ext <<_ACEOF
11453 +#line $LINENO "configure"
11454 +/* confdefs.h.  */
11455 +_ACEOF
11456 +cat confdefs.h >>conftest.$ac_ext
11457 +cat >>conftest.$ac_ext <<_ACEOF
11458 +/* end confdefs.h.  */
11459  /* System header to define __stub macros and hopefully few prototypes,
11460 -    which can conflict with char $ac_func(); below.  */
11461 -#include <assert.h>
11462 +    which can conflict with char $ac_func (); below.
11463 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11464 +    <limits.h> exists even on freestanding compilers.  */
11465 +#ifdef __STDC__
11466 +# include <limits.h>
11467 +#else
11468 +# include <assert.h>
11469 +#endif
11470  /* Override any gcc2 internal prototype to avoid an error.  */
11471 +#ifdef __cplusplus
11472 +extern "C"
11473 +{
11474 +#endif
11475  /* We use char because int might match the return type of a gcc2
11476 -    builtin and then its argument prototype would still apply.  */
11477 -char $ac_func();
11478 -
11479 -int main() {
11480 -
11481 +   builtin and then its argument prototype would still apply.  */
11482 +char $ac_func ();
11483  /* The GNU C library defines this for functions which it implements
11484      to always fail with ENOSYS.  Some functions are actually named
11485      something starting with __ and the normal name is an alias.  */
11486  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11487  choke me
11488  #else
11489 -$ac_func();
11490 +char (*f) () = $ac_func;
11491 +#endif
11492 +#ifdef __cplusplus
11493 +}
11494  #endif
11495  
11496 -; return 0; }
11497 -EOF
11498 -if { (eval echo configure:2997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11499 -  rm -rf conftest*
11500 -  eval "ac_cv_func_$ac_func=yes"
11501 +int
11502 +main ()
11503 +{
11504 +return f != $ac_func;
11505 +  ;
11506 +  return 0;
11507 +}
11508 +_ACEOF
11509 +rm -f conftest.$ac_objext conftest$ac_exeext
11510 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11511 +  (eval $ac_link) 2>&5
11512 +  ac_status=$?
11513 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 +  (exit $ac_status); } &&
11515 +         { ac_try='test -s conftest$ac_exeext'
11516 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517 +  (eval $ac_try) 2>&5
11518 +  ac_status=$?
11519 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 +  (exit $ac_status); }; }; then
11521 +  eval "$as_ac_var=yes"
11522  else
11523 -  echo "configure: failed program was:" >&5
11524 -  cat conftest.$ac_ext >&5
11525 -  rm -rf conftest*
11526 -  eval "ac_cv_func_$ac_func=no"
11527 +  echo "$as_me: failed program was:" >&5
11528 +sed 's/^/| /' conftest.$ac_ext >&5
11529 +
11530 +eval "$as_ac_var=no"
11531  fi
11532 -rm -f conftest*
11533 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11534  fi
11535 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11536 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11537 +if test `eval echo '${'$as_ac_var'}'` = yes; then
11538 +  cat >>confdefs.h <<_ACEOF
11539 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11540 +_ACEOF
11541  
11542 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11543 -  echo "$ac_t""yes" 1>&6
11544 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11545 -  cat >> confdefs.h <<EOF
11546 -#define $ac_tr_func 1
11547 -EOF
11548
11549 -else
11550 -  echo "$ac_t""no" 1>&6
11551  fi
11552  done
11553  
11554 +
11555  for ac_func in snprintf
11556  do
11557 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11558 -echo "configure:3024: checking for $ac_func" >&5
11559 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11560 -  echo $ac_n "(cached) $ac_c" 1>&6
11561 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11562 +echo "$as_me:$LINENO: checking for $ac_func" >&5
11563 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11564 +if eval "test \"\${$as_ac_var+set}\" = set"; then
11565 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11566  else
11567 -  cat > conftest.$ac_ext <<EOF
11568 -#line 3029 "configure"
11569 -#include "confdefs.h"
11570 +  cat >conftest.$ac_ext <<_ACEOF
11571 +#line $LINENO "configure"
11572 +/* confdefs.h.  */
11573 +_ACEOF
11574 +cat confdefs.h >>conftest.$ac_ext
11575 +cat >>conftest.$ac_ext <<_ACEOF
11576 +/* end confdefs.h.  */
11577  /* System header to define __stub macros and hopefully few prototypes,
11578 -    which can conflict with char $ac_func(); below.  */
11579 -#include <assert.h>
11580 +    which can conflict with char $ac_func (); below.
11581 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11582 +    <limits.h> exists even on freestanding compilers.  */
11583 +#ifdef __STDC__
11584 +# include <limits.h>
11585 +#else
11586 +# include <assert.h>
11587 +#endif
11588  /* Override any gcc2 internal prototype to avoid an error.  */
11589 +#ifdef __cplusplus
11590 +extern "C"
11591 +{
11592 +#endif
11593  /* We use char because int might match the return type of a gcc2
11594 -    builtin and then its argument prototype would still apply.  */
11595 -char $ac_func();
11596 -
11597 -int main() {
11598 -
11599 +   builtin and then its argument prototype would still apply.  */
11600 +char $ac_func ();
11601  /* The GNU C library defines this for functions which it implements
11602      to always fail with ENOSYS.  Some functions are actually named
11603      something starting with __ and the normal name is an alias.  */
11604  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11605  choke me
11606  #else
11607 -$ac_func();
11608 +char (*f) () = $ac_func;
11609 +#endif
11610 +#ifdef __cplusplus
11611 +}
11612  #endif
11613  
11614 -; return 0; }
11615 -EOF
11616 -if { (eval echo configure:3052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11617 -  rm -rf conftest*
11618 -  eval "ac_cv_func_$ac_func=yes"
11619 +int
11620 +main ()
11621 +{
11622 +return f != $ac_func;
11623 +  ;
11624 +  return 0;
11625 +}
11626 +_ACEOF
11627 +rm -f conftest.$ac_objext conftest$ac_exeext
11628 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11629 +  (eval $ac_link) 2>&5
11630 +  ac_status=$?
11631 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 +  (exit $ac_status); } &&
11633 +         { ac_try='test -s conftest$ac_exeext'
11634 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 +  (eval $ac_try) 2>&5
11636 +  ac_status=$?
11637 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 +  (exit $ac_status); }; }; then
11639 +  eval "$as_ac_var=yes"
11640  else
11641 -  echo "configure: failed program was:" >&5
11642 -  cat conftest.$ac_ext >&5
11643 -  rm -rf conftest*
11644 -  eval "ac_cv_func_$ac_func=no"
11645 +  echo "$as_me: failed program was:" >&5
11646 +sed 's/^/| /' conftest.$ac_ext >&5
11647 +
11648 +eval "$as_ac_var=no"
11649  fi
11650 -rm -f conftest*
11651 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11652  fi
11653 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11654 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11655 +if test `eval echo '${'$as_ac_var'}'` = yes; then
11656 +  cat >>confdefs.h <<_ACEOF
11657 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11658 +_ACEOF
11659  
11660 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11661 -  echo "$ac_t""yes" 1>&6
11662 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11663 -  cat >> confdefs.h <<EOF
11664 -#define $ac_tr_func 1
11665 -EOF
11666
11667 -else
11668 -  echo "$ac_t""no" 1>&6
11669  fi
11670  done
11671  
11672 +
11673 +
11674 +
11675 +
11676 +
11677 +
11678 +
11679 +
11680 +
11681 +
11682  for ac_func in gettimeofday mkdir select strcspn strerror strstr strtol strtoul alarm chmod
11683  do
11684 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11685 -echo "configure:3079: checking for $ac_func" >&5
11686 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11687 -  echo $ac_n "(cached) $ac_c" 1>&6
11688 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11689 +echo "$as_me:$LINENO: checking for $ac_func" >&5
11690 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11691 +if eval "test \"\${$as_ac_var+set}\" = set"; then
11692 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11693  else
11694 -  cat > conftest.$ac_ext <<EOF
11695 -#line 3084 "configure"
11696 -#include "confdefs.h"
11697 +  cat >conftest.$ac_ext <<_ACEOF
11698 +#line $LINENO "configure"
11699 +/* confdefs.h.  */
11700 +_ACEOF
11701 +cat confdefs.h >>conftest.$ac_ext
11702 +cat >>conftest.$ac_ext <<_ACEOF
11703 +/* end confdefs.h.  */
11704  /* System header to define __stub macros and hopefully few prototypes,
11705 -    which can conflict with char $ac_func(); below.  */
11706 -#include <assert.h>
11707 +    which can conflict with char $ac_func (); below.
11708 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11709 +    <limits.h> exists even on freestanding compilers.  */
11710 +#ifdef __STDC__
11711 +# include <limits.h>
11712 +#else
11713 +# include <assert.h>
11714 +#endif
11715  /* Override any gcc2 internal prototype to avoid an error.  */
11716 +#ifdef __cplusplus
11717 +extern "C"
11718 +{
11719 +#endif
11720  /* We use char because int might match the return type of a gcc2
11721 -    builtin and then its argument prototype would still apply.  */
11722 -char $ac_func();
11723 -
11724 -int main() {
11725 -
11726 +   builtin and then its argument prototype would still apply.  */
11727 +char $ac_func ();
11728  /* The GNU C library defines this for functions which it implements
11729      to always fail with ENOSYS.  Some functions are actually named
11730      something starting with __ and the normal name is an alias.  */
11731  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11732  choke me
11733  #else
11734 -$ac_func();
11735 +char (*f) () = $ac_func;
11736 +#endif
11737 +#ifdef __cplusplus
11738 +}
11739  #endif
11740  
11741 -; return 0; }
11742 -EOF
11743 -if { (eval echo configure:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11744 -  rm -rf conftest*
11745 -  eval "ac_cv_func_$ac_func=yes"
11746 +int
11747 +main ()
11748 +{
11749 +return f != $ac_func;
11750 +  ;
11751 +  return 0;
11752 +}
11753 +_ACEOF
11754 +rm -f conftest.$ac_objext conftest$ac_exeext
11755 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11756 +  (eval $ac_link) 2>&5
11757 +  ac_status=$?
11758 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 +  (exit $ac_status); } &&
11760 +         { ac_try='test -s conftest$ac_exeext'
11761 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 +  (eval $ac_try) 2>&5
11763 +  ac_status=$?
11764 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 +  (exit $ac_status); }; }; then
11766 +  eval "$as_ac_var=yes"
11767  else
11768 -  echo "configure: failed program was:" >&5
11769 -  cat conftest.$ac_ext >&5
11770 -  rm -rf conftest*
11771 -  eval "ac_cv_func_$ac_func=no"
11772 +  echo "$as_me: failed program was:" >&5
11773 +sed 's/^/| /' conftest.$ac_ext >&5
11774 +
11775 +eval "$as_ac_var=no"
11776  fi
11777 -rm -f conftest*
11778 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11779  fi
11780 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11781 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11782 +if test `eval echo '${'$as_ac_var'}'` = yes; then
11783 +  cat >>confdefs.h <<_ACEOF
11784 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11785 +_ACEOF
11786  
11787 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11788 -  echo "$ac_t""yes" 1>&6
11789 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11790 -  cat >> confdefs.h <<EOF
11791 -#define $ac_tr_func 1
11792 -EOF
11793
11794 -else
11795 -  echo "$ac_t""no" 1>&6
11796  fi
11797  done
11798  
11799 +
11800 +
11801 +
11802 +
11803 +
11804  for ac_func in getpid setpgid getpgid setpgrp getpgrp
11805  do
11806 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11807 -echo "configure:3134: checking for $ac_func" >&5
11808 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11809 -  echo $ac_n "(cached) $ac_c" 1>&6
11810 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11811 +echo "$as_me:$LINENO: checking for $ac_func" >&5
11812 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11813 +if eval "test \"\${$as_ac_var+set}\" = set"; then
11814 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11815  else
11816 -  cat > conftest.$ac_ext <<EOF
11817 -#line 3139 "configure"
11818 -#include "confdefs.h"
11819 +  cat >conftest.$ac_ext <<_ACEOF
11820 +#line $LINENO "configure"
11821 +/* confdefs.h.  */
11822 +_ACEOF
11823 +cat confdefs.h >>conftest.$ac_ext
11824 +cat >>conftest.$ac_ext <<_ACEOF
11825 +/* end confdefs.h.  */
11826  /* System header to define __stub macros and hopefully few prototypes,
11827 -    which can conflict with char $ac_func(); below.  */
11828 -#include <assert.h>
11829 +    which can conflict with char $ac_func (); below.
11830 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11831 +    <limits.h> exists even on freestanding compilers.  */
11832 +#ifdef __STDC__
11833 +# include <limits.h>
11834 +#else
11835 +# include <assert.h>
11836 +#endif
11837  /* Override any gcc2 internal prototype to avoid an error.  */
11838 +#ifdef __cplusplus
11839 +extern "C"
11840 +{
11841 +#endif
11842  /* We use char because int might match the return type of a gcc2
11843 -    builtin and then its argument prototype would still apply.  */
11844 -char $ac_func();
11845 -
11846 -int main() {
11847 -
11848 +   builtin and then its argument prototype would still apply.  */
11849 +char $ac_func ();
11850  /* The GNU C library defines this for functions which it implements
11851      to always fail with ENOSYS.  Some functions are actually named
11852      something starting with __ and the normal name is an alias.  */
11853  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11854  choke me
11855  #else
11856 -$ac_func();
11857 +char (*f) () = $ac_func;
11858 +#endif
11859 +#ifdef __cplusplus
11860 +}
11861  #endif
11862  
11863 -; return 0; }
11864 -EOF
11865 -if { (eval echo configure:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11866 -  rm -rf conftest*
11867 -  eval "ac_cv_func_$ac_func=yes"
11868 +int
11869 +main ()
11870 +{
11871 +return f != $ac_func;
11872 +  ;
11873 +  return 0;
11874 +}
11875 +_ACEOF
11876 +rm -f conftest.$ac_objext conftest$ac_exeext
11877 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11878 +  (eval $ac_link) 2>&5
11879 +  ac_status=$?
11880 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 +  (exit $ac_status); } &&
11882 +         { ac_try='test -s conftest$ac_exeext'
11883 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 +  (eval $ac_try) 2>&5
11885 +  ac_status=$?
11886 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 +  (exit $ac_status); }; }; then
11888 +  eval "$as_ac_var=yes"
11889  else
11890 -  echo "configure: failed program was:" >&5
11891 -  cat conftest.$ac_ext >&5
11892 -  rm -rf conftest*
11893 -  eval "ac_cv_func_$ac_func=no"
11894 +  echo "$as_me: failed program was:" >&5
11895 +sed 's/^/| /' conftest.$ac_ext >&5
11896 +
11897 +eval "$as_ac_var=no"
11898  fi
11899 -rm -f conftest*
11900 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11901  fi
11902 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11903 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11904 +if test `eval echo '${'$as_ac_var'}'` = yes; then
11905 +  cat >>confdefs.h <<_ACEOF
11906 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11907 +_ACEOF
11908  
11909 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11910 -  echo "$ac_t""yes" 1>&6
11911 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11912 -  cat >> confdefs.h <<EOF
11913 -#define $ac_tr_func 1
11914 -EOF
11915
11916 -else
11917 -  echo "$ac_t""no" 1>&6
11918  fi
11919  done
11920  
11921 +
11922  for ac_func in popen
11923  do
11924 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11925 -echo "configure:3189: checking for $ac_func" >&5
11926 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11927 -  echo $ac_n "(cached) $ac_c" 1>&6
11928 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11929 +echo "$as_me:$LINENO: checking for $ac_func" >&5
11930 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11931 +if eval "test \"\${$as_ac_var+set}\" = set"; then
11932 +  echo $ECHO_N "(cached) $ECHO_C" >&6
11933  else
11934 -  cat > conftest.$ac_ext <<EOF
11935 -#line 3194 "configure"
11936 -#include "confdefs.h"
11937 +  cat >conftest.$ac_ext <<_ACEOF
11938 +#line $LINENO "configure"
11939 +/* confdefs.h.  */
11940 +_ACEOF
11941 +cat confdefs.h >>conftest.$ac_ext
11942 +cat >>conftest.$ac_ext <<_ACEOF
11943 +/* end confdefs.h.  */
11944  /* System header to define __stub macros and hopefully few prototypes,
11945 -    which can conflict with char $ac_func(); below.  */
11946 -#include <assert.h>
11947 +    which can conflict with char $ac_func (); below.
11948 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11949 +    <limits.h> exists even on freestanding compilers.  */
11950 +#ifdef __STDC__
11951 +# include <limits.h>
11952 +#else
11953 +# include <assert.h>
11954 +#endif
11955  /* Override any gcc2 internal prototype to avoid an error.  */
11956 +#ifdef __cplusplus
11957 +extern "C"
11958 +{
11959 +#endif
11960  /* We use char because int might match the return type of a gcc2
11961 -    builtin and then its argument prototype would still apply.  */
11962 -char $ac_func();
11963 -
11964 -int main() {
11965 -
11966 +   builtin and then its argument prototype would still apply.  */
11967 +char $ac_func ();
11968  /* The GNU C library defines this for functions which it implements
11969      to always fail with ENOSYS.  Some functions are actually named
11970      something starting with __ and the normal name is an alias.  */
11971  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11972  choke me
11973  #else
11974 -$ac_func();
11975 +char (*f) () = $ac_func;
11976 +#endif
11977 +#ifdef __cplusplus
11978 +}
11979  #endif
11980  
11981 -; return 0; }
11982 -EOF
11983 -if { (eval echo configure:3217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11984 -  rm -rf conftest*
11985 -  eval "ac_cv_func_$ac_func=yes"
11986 +int
11987 +main ()
11988 +{
11989 +return f != $ac_func;
11990 +  ;
11991 +  return 0;
11992 +}
11993 +_ACEOF
11994 +rm -f conftest.$ac_objext conftest$ac_exeext
11995 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11996 +  (eval $ac_link) 2>&5
11997 +  ac_status=$?
11998 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 +  (exit $ac_status); } &&
12000 +         { ac_try='test -s conftest$ac_exeext'
12001 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002 +  (eval $ac_try) 2>&5
12003 +  ac_status=$?
12004 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 +  (exit $ac_status); }; }; then
12006 +  eval "$as_ac_var=yes"
12007  else
12008 -  echo "configure: failed program was:" >&5
12009 -  cat conftest.$ac_ext >&5
12010 -  rm -rf conftest*
12011 -  eval "ac_cv_func_$ac_func=no"
12012 +  echo "$as_me: failed program was:" >&5
12013 +sed 's/^/| /' conftest.$ac_ext >&5
12014 +
12015 +eval "$as_ac_var=no"
12016  fi
12017 -rm -f conftest*
12018 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12019  fi
12020 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12021 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12022 +if test `eval echo '${'$as_ac_var'}'` = yes; then
12023 +  cat >>confdefs.h <<_ACEOF
12024 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12025 +_ACEOF
12026  
12027 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12028 -  echo "$ac_t""yes" 1>&6
12029 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12030 -  cat >> confdefs.h <<EOF
12031 -#define $ac_tr_func 1
12032 -EOF
12033
12034 -else
12035 -  echo "$ac_t""no" 1>&6
12036  fi
12037  done
12038  
12039 +
12040  for ac_func in uname
12041  do
12042 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12043 -echo "configure:3244: checking for $ac_func" >&5
12044 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12045 -  echo $ac_n "(cached) $ac_c" 1>&6
12046 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12047 +echo "$as_me:$LINENO: checking for $ac_func" >&5
12048 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12049 +if eval "test \"\${$as_ac_var+set}\" = set"; then
12050 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12051  else
12052 -  cat > conftest.$ac_ext <<EOF
12053 -#line 3249 "configure"
12054 -#include "confdefs.h"
12055 +  cat >conftest.$ac_ext <<_ACEOF
12056 +#line $LINENO "configure"
12057 +/* confdefs.h.  */
12058 +_ACEOF
12059 +cat confdefs.h >>conftest.$ac_ext
12060 +cat >>conftest.$ac_ext <<_ACEOF
12061 +/* end confdefs.h.  */
12062  /* System header to define __stub macros and hopefully few prototypes,
12063 -    which can conflict with char $ac_func(); below.  */
12064 -#include <assert.h>
12065 +    which can conflict with char $ac_func (); below.
12066 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12067 +    <limits.h> exists even on freestanding compilers.  */
12068 +#ifdef __STDC__
12069 +# include <limits.h>
12070 +#else
12071 +# include <assert.h>
12072 +#endif
12073  /* Override any gcc2 internal prototype to avoid an error.  */
12074 +#ifdef __cplusplus
12075 +extern "C"
12076 +{
12077 +#endif
12078  /* We use char because int might match the return type of a gcc2
12079 -    builtin and then its argument prototype would still apply.  */
12080 -char $ac_func();
12081 -
12082 -int main() {
12083 -
12084 +   builtin and then its argument prototype would still apply.  */
12085 +char $ac_func ();
12086  /* The GNU C library defines this for functions which it implements
12087      to always fail with ENOSYS.  Some functions are actually named
12088      something starting with __ and the normal name is an alias.  */
12089  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12090  choke me
12091  #else
12092 -$ac_func();
12093 +char (*f) () = $ac_func;
12094 +#endif
12095 +#ifdef __cplusplus
12096 +}
12097  #endif
12098  
12099 -; return 0; }
12100 -EOF
12101 -if { (eval echo configure:3272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12102 -  rm -rf conftest*
12103 -  eval "ac_cv_func_$ac_func=yes"
12104 +int
12105 +main ()
12106 +{
12107 +return f != $ac_func;
12108 +  ;
12109 +  return 0;
12110 +}
12111 +_ACEOF
12112 +rm -f conftest.$ac_objext conftest$ac_exeext
12113 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114 +  (eval $ac_link) 2>&5
12115 +  ac_status=$?
12116 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 +  (exit $ac_status); } &&
12118 +         { ac_try='test -s conftest$ac_exeext'
12119 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 +  (eval $ac_try) 2>&5
12121 +  ac_status=$?
12122 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 +  (exit $ac_status); }; }; then
12124 +  eval "$as_ac_var=yes"
12125  else
12126 -  echo "configure: failed program was:" >&5
12127 -  cat conftest.$ac_ext >&5
12128 -  rm -rf conftest*
12129 -  eval "ac_cv_func_$ac_func=no"
12130 +  echo "$as_me: failed program was:" >&5
12131 +sed 's/^/| /' conftest.$ac_ext >&5
12132 +
12133 +eval "$as_ac_var=no"
12134  fi
12135 -rm -f conftest*
12136 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12137  fi
12138 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12139 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12140 +if test `eval echo '${'$as_ac_var'}'` = yes; then
12141 +  cat >>confdefs.h <<_ACEOF
12142 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12143 +_ACEOF
12144  
12145 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12146 -  echo "$ac_t""yes" 1>&6
12147 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12148 -  cat >> confdefs.h <<EOF
12149 -#define $ac_tr_func 1
12150 -EOF
12151
12152 -else
12153 -  echo "$ac_t""no" 1>&6
12154  fi
12155  done
12156  
12157 +
12158  for ac_func in strptime
12159  do
12160 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12161 -echo "configure:3299: checking for $ac_func" >&5
12162 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12163 -  echo $ac_n "(cached) $ac_c" 1>&6
12164 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12165 +echo "$as_me:$LINENO: checking for $ac_func" >&5
12166 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12167 +if eval "test \"\${$as_ac_var+set}\" = set"; then
12168 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12169  else
12170 -  cat > conftest.$ac_ext <<EOF
12171 -#line 3304 "configure"
12172 -#include "confdefs.h"
12173 +  cat >conftest.$ac_ext <<_ACEOF
12174 +#line $LINENO "configure"
12175 +/* confdefs.h.  */
12176 +_ACEOF
12177 +cat confdefs.h >>conftest.$ac_ext
12178 +cat >>conftest.$ac_ext <<_ACEOF
12179 +/* end confdefs.h.  */
12180  /* System header to define __stub macros and hopefully few prototypes,
12181 -    which can conflict with char $ac_func(); below.  */
12182 -#include <assert.h>
12183 +    which can conflict with char $ac_func (); below.
12184 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12185 +    <limits.h> exists even on freestanding compilers.  */
12186 +#ifdef __STDC__
12187 +# include <limits.h>
12188 +#else
12189 +# include <assert.h>
12190 +#endif
12191  /* Override any gcc2 internal prototype to avoid an error.  */
12192 +#ifdef __cplusplus
12193 +extern "C"
12194 +{
12195 +#endif
12196  /* We use char because int might match the return type of a gcc2
12197 -    builtin and then its argument prototype would still apply.  */
12198 -char $ac_func();
12199 -
12200 -int main() {
12201 -
12202 +   builtin and then its argument prototype would still apply.  */
12203 +char $ac_func ();
12204  /* The GNU C library defines this for functions which it implements
12205      to always fail with ENOSYS.  Some functions are actually named
12206      something starting with __ and the normal name is an alias.  */
12207  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12208  choke me
12209  #else
12210 -$ac_func();
12211 +char (*f) () = $ac_func;
12212 +#endif
12213 +#ifdef __cplusplus
12214 +}
12215  #endif
12216  
12217 -; return 0; }
12218 -EOF
12219 -if { (eval echo configure:3327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12220 -  rm -rf conftest*
12221 -  eval "ac_cv_func_$ac_func=yes"
12222 +int
12223 +main ()
12224 +{
12225 +return f != $ac_func;
12226 +  ;
12227 +  return 0;
12228 +}
12229 +_ACEOF
12230 +rm -f conftest.$ac_objext conftest$ac_exeext
12231 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12232 +  (eval $ac_link) 2>&5
12233 +  ac_status=$?
12234 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 +  (exit $ac_status); } &&
12236 +         { ac_try='test -s conftest$ac_exeext'
12237 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 +  (eval $ac_try) 2>&5
12239 +  ac_status=$?
12240 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 +  (exit $ac_status); }; }; then
12242 +  eval "$as_ac_var=yes"
12243  else
12244 -  echo "configure: failed program was:" >&5
12245 -  cat conftest.$ac_ext >&5
12246 -  rm -rf conftest*
12247 -  eval "ac_cv_func_$ac_func=no"
12248 +  echo "$as_me: failed program was:" >&5
12249 +sed 's/^/| /' conftest.$ac_ext >&5
12250 +
12251 +eval "$as_ac_var=no"
12252  fi
12253 -rm -f conftest*
12254 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12255  fi
12256 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12257 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12258 +if test `eval echo '${'$as_ac_var'}'` = yes; then
12259 +  cat >>confdefs.h <<_ACEOF
12260 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12261 +_ACEOF
12262  
12263 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12264 -  echo "$ac_t""yes" 1>&6
12265 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12266 -  cat >> confdefs.h <<EOF
12267 -#define $ac_tr_func 1
12268 -EOF
12269
12270 -else
12271 -  echo "$ac_t""no" 1>&6
12272  fi
12273  done
12274  
12275 +
12276  for ac_func in setlocale
12277  do
12278 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12279 -echo "configure:3354: checking for $ac_func" >&5
12280 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12281 -  echo $ac_n "(cached) $ac_c" 1>&6
12282 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12283 +echo "$as_me:$LINENO: checking for $ac_func" >&5
12284 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12285 +if eval "test \"\${$as_ac_var+set}\" = set"; then
12286 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12287  else
12288 -  cat > conftest.$ac_ext <<EOF
12289 -#line 3359 "configure"
12290 -#include "confdefs.h"
12291 +  cat >conftest.$ac_ext <<_ACEOF
12292 +#line $LINENO "configure"
12293 +/* confdefs.h.  */
12294 +_ACEOF
12295 +cat confdefs.h >>conftest.$ac_ext
12296 +cat >>conftest.$ac_ext <<_ACEOF
12297 +/* end confdefs.h.  */
12298  /* System header to define __stub macros and hopefully few prototypes,
12299 -    which can conflict with char $ac_func(); below.  */
12300 -#include <assert.h>
12301 +    which can conflict with char $ac_func (); below.
12302 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12303 +    <limits.h> exists even on freestanding compilers.  */
12304 +#ifdef __STDC__
12305 +# include <limits.h>
12306 +#else
12307 +# include <assert.h>
12308 +#endif
12309  /* Override any gcc2 internal prototype to avoid an error.  */
12310 +#ifdef __cplusplus
12311 +extern "C"
12312 +{
12313 +#endif
12314  /* We use char because int might match the return type of a gcc2
12315 -    builtin and then its argument prototype would still apply.  */
12316 -char $ac_func();
12317 -
12318 -int main() {
12319 -
12320 +   builtin and then its argument prototype would still apply.  */
12321 +char $ac_func ();
12322  /* The GNU C library defines this for functions which it implements
12323      to always fail with ENOSYS.  Some functions are actually named
12324      something starting with __ and the normal name is an alias.  */
12325  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12326  choke me
12327  #else
12328 -$ac_func();
12329 +char (*f) () = $ac_func;
12330 +#endif
12331 +#ifdef __cplusplus
12332 +}
12333  #endif
12334  
12335 -; return 0; }
12336 -EOF
12337 -if { (eval echo configure:3382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12338 -  rm -rf conftest*
12339 -  eval "ac_cv_func_$ac_func=yes"
12340 +int
12341 +main ()
12342 +{
12343 +return f != $ac_func;
12344 +  ;
12345 +  return 0;
12346 +}
12347 +_ACEOF
12348 +rm -f conftest.$ac_objext conftest$ac_exeext
12349 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12350 +  (eval $ac_link) 2>&5
12351 +  ac_status=$?
12352 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 +  (exit $ac_status); } &&
12354 +         { ac_try='test -s conftest$ac_exeext'
12355 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 +  (eval $ac_try) 2>&5
12357 +  ac_status=$?
12358 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 +  (exit $ac_status); }; }; then
12360 +  eval "$as_ac_var=yes"
12361  else
12362 -  echo "configure: failed program was:" >&5
12363 -  cat conftest.$ac_ext >&5
12364 -  rm -rf conftest*
12365 -  eval "ac_cv_func_$ac_func=no"
12366 +  echo "$as_me: failed program was:" >&5
12367 +sed 's/^/| /' conftest.$ac_ext >&5
12368 +
12369 +eval "$as_ac_var=no"
12370  fi
12371 -rm -f conftest*
12372 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12373  fi
12374 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12375 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12376 +if test `eval echo '${'$as_ac_var'}'` = yes; then
12377 +  cat >>confdefs.h <<_ACEOF
12378 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12379 +_ACEOF
12380  
12381 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12382 -  echo "$ac_t""yes" 1>&6
12383 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12384 -  cat >> confdefs.h <<EOF
12385 -#define $ac_tr_func 1
12386 -EOF
12387
12388 -else
12389 -  echo "$ac_t""no" 1>&6
12390  fi
12391  done
12392  
12393 +
12394  for ac_func in nl_langinfo
12395  do
12396 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12397 -echo "configure:3409: checking for $ac_func" >&5
12398 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12399 -  echo $ac_n "(cached) $ac_c" 1>&6
12400 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12401 +echo "$as_me:$LINENO: checking for $ac_func" >&5
12402 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12403 +if eval "test \"\${$as_ac_var+set}\" = set"; then
12404 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12405  else
12406 -  cat > conftest.$ac_ext <<EOF
12407 -#line 3414 "configure"
12408 -#include "confdefs.h"
12409 +  cat >conftest.$ac_ext <<_ACEOF
12410 +#line $LINENO "configure"
12411 +/* confdefs.h.  */
12412 +_ACEOF
12413 +cat confdefs.h >>conftest.$ac_ext
12414 +cat >>conftest.$ac_ext <<_ACEOF
12415 +/* end confdefs.h.  */
12416  /* System header to define __stub macros and hopefully few prototypes,
12417 -    which can conflict with char $ac_func(); below.  */
12418 -#include <assert.h>
12419 +    which can conflict with char $ac_func (); below.
12420 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12421 +    <limits.h> exists even on freestanding compilers.  */
12422 +#ifdef __STDC__
12423 +# include <limits.h>
12424 +#else
12425 +# include <assert.h>
12426 +#endif
12427  /* Override any gcc2 internal prototype to avoid an error.  */
12428 +#ifdef __cplusplus
12429 +extern "C"
12430 +{
12431 +#endif
12432  /* We use char because int might match the return type of a gcc2
12433 -    builtin and then its argument prototype would still apply.  */
12434 -char $ac_func();
12435 -
12436 -int main() {
12437 -
12438 +   builtin and then its argument prototype would still apply.  */
12439 +char $ac_func ();
12440  /* The GNU C library defines this for functions which it implements
12441      to always fail with ENOSYS.  Some functions are actually named
12442      something starting with __ and the normal name is an alias.  */
12443  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12444  choke me
12445  #else
12446 -$ac_func();
12447 +char (*f) () = $ac_func;
12448 +#endif
12449 +#ifdef __cplusplus
12450 +}
12451  #endif
12452  
12453 -; return 0; }
12454 -EOF
12455 -if { (eval echo configure:3437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12456 -  rm -rf conftest*
12457 -  eval "ac_cv_func_$ac_func=yes"
12458 +int
12459 +main ()
12460 +{
12461 +return f != $ac_func;
12462 +  ;
12463 +  return 0;
12464 +}
12465 +_ACEOF
12466 +rm -f conftest.$ac_objext conftest$ac_exeext
12467 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12468 +  (eval $ac_link) 2>&5
12469 +  ac_status=$?
12470 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 +  (exit $ac_status); } &&
12472 +         { ac_try='test -s conftest$ac_exeext'
12473 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 +  (eval $ac_try) 2>&5
12475 +  ac_status=$?
12476 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 +  (exit $ac_status); }; }; then
12478 +  eval "$as_ac_var=yes"
12479  else
12480 -  echo "configure: failed program was:" >&5
12481 -  cat conftest.$ac_ext >&5
12482 -  rm -rf conftest*
12483 -  eval "ac_cv_func_$ac_func=no"
12484 +  echo "$as_me: failed program was:" >&5
12485 +sed 's/^/| /' conftest.$ac_ext >&5
12486 +
12487 +eval "$as_ac_var=no"
12488  fi
12489 -rm -f conftest*
12490 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12491  fi
12492 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12493 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12494 +if test `eval echo '${'$as_ac_var'}'` = yes; then
12495 +  cat >>confdefs.h <<_ACEOF
12496 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12497 +_ACEOF
12498  
12499 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12500 -  echo "$ac_t""yes" 1>&6
12501 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12502 -  cat >> confdefs.h <<EOF
12503 -#define $ac_tr_func 1
12504 -EOF
12505
12506 -else
12507 -  echo "$ac_t""no" 1>&6
12508  fi
12509  done
12510  
12511  
12512 -echo $ac_n "checking for sigsetjmp/siglongjmp""... $ac_c" 1>&6
12513 -echo "configure:3463: checking for sigsetjmp/siglongjmp" >&5
12514 -if eval "test \"`echo '$''{'ac_cv_have_sigsetjmp'+set}'`\" = set"; then
12515 -  echo $ac_n "(cached) $ac_c" 1>&6
12516 +echo "$as_me:$LINENO: checking for sigsetjmp/siglongjmp" >&5
12517 +echo $ECHO_N "checking for sigsetjmp/siglongjmp... $ECHO_C" >&6
12518 +if test "${ac_cv_have_sigsetjmp+set}" = set; then
12519 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12520  else
12521 -  cat > conftest.$ac_ext <<EOF
12522 -#line 3468 "configure"
12523 -#include "confdefs.h"
12524 +  cat >conftest.$ac_ext <<_ACEOF
12525 +#line $LINENO "configure"
12526 +/* confdefs.h.  */
12527 +_ACEOF
12528 +cat confdefs.h >>conftest.$ac_ext
12529 +cat >>conftest.$ac_ext <<_ACEOF
12530 +/* end confdefs.h.  */
12531  #include <setjmp.h>
12532 -int main() {
12533 +int
12534 +main ()
12535 +{
12536  sigjmp_buf env;sigsetjmp(env, 1);siglongjmp(env, 2);
12537 -; return 0; }
12538 -EOF
12539 -if { (eval echo configure:3475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12540 -  rm -rf conftest*
12541 +  ;
12542 +  return 0;
12543 +}
12544 +_ACEOF
12545 +rm -f conftest.$ac_objext conftest$ac_exeext
12546 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12547 +  (eval $ac_link) 2>&5
12548 +  ac_status=$?
12549 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 +  (exit $ac_status); } &&
12551 +         { ac_try='test -s conftest$ac_exeext'
12552 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 +  (eval $ac_try) 2>&5
12554 +  ac_status=$?
12555 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 +  (exit $ac_status); }; }; then
12557    ac_cv_have_sigsetjmp=yes
12558  else
12559 -  echo "configure: failed program was:" >&5
12560 -  cat conftest.$ac_ext >&5
12561 -  rm -rf conftest*
12562 -  ac_cv_have_sigsetjmp=no
12563 -fi
12564 -rm -f conftest*
12565 +  echo "$as_me: failed program was:" >&5
12566 +sed 's/^/| /' conftest.$ac_ext >&5
12567  
12568 +ac_cv_have_sigsetjmp=no
12569  fi
12570 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12571  
12572 -echo "$ac_t""$ac_cv_have_sigsetjmp" 1>&6
12573 +fi
12574 +echo "$as_me:$LINENO: result: $ac_cv_have_sigsetjmp" >&5
12575 +echo "${ECHO_T}$ac_cv_have_sigsetjmp" >&6
12576  if test "$ac_cv_have_sigsetjmp" = yes; then
12577 -       cat >> confdefs.h <<\EOF
12578 +       cat >>confdefs.h <<\_ACEOF
12579  #define HAVE_SIGSETJMP 1
12580 -EOF
12581 +_ACEOF
12582  
12583  fi
12584  
12585 -echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6
12586 -echo "configure:3497: checking for atan in -lm" >&5
12587 -ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'`
12588 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12589 -  echo $ac_n "(cached) $ac_c" 1>&6
12590 +
12591 +echo "$as_me:$LINENO: checking for atan in -lm" >&5
12592 +echo $ECHO_N "checking for atan in -lm... $ECHO_C" >&6
12593 +if test "${ac_cv_lib_m_atan+set}" = set; then
12594 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12595  else
12596 -  ac_save_LIBS="$LIBS"
12597 +  ac_check_lib_save_LIBS=$LIBS
12598  LIBS="-lm  $LIBS"
12599 -cat > conftest.$ac_ext <<EOF
12600 -#line 3505 "configure"
12601 -#include "confdefs.h"
12602 +cat >conftest.$ac_ext <<_ACEOF
12603 +#line $LINENO "configure"
12604 +/* confdefs.h.  */
12605 +_ACEOF
12606 +cat confdefs.h >>conftest.$ac_ext
12607 +cat >>conftest.$ac_ext <<_ACEOF
12608 +/* end confdefs.h.  */
12609 +
12610  /* Override any gcc2 internal prototype to avoid an error.  */
12611 +#ifdef __cplusplus
12612 +extern "C"
12613 +#endif
12614  /* We use char because int might match the return type of a gcc2
12615 -    builtin and then its argument prototype would still apply.  */
12616 -char atan();
12617 -
12618 -int main() {
12619 -atan()
12620 -; return 0; }
12621 -EOF
12622 -if { (eval echo configure:3516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12623 -  rm -rf conftest*
12624 -  eval "ac_cv_lib_$ac_lib_var=yes"
12625 +   builtin and then its argument prototype would still apply.  */
12626 +char atan ();
12627 +int
12628 +main ()
12629 +{
12630 +atan ();
12631 +  ;
12632 +  return 0;
12633 +}
12634 +_ACEOF
12635 +rm -f conftest.$ac_objext conftest$ac_exeext
12636 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12637 +  (eval $ac_link) 2>&5
12638 +  ac_status=$?
12639 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 +  (exit $ac_status); } &&
12641 +         { ac_try='test -s conftest$ac_exeext'
12642 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 +  (eval $ac_try) 2>&5
12644 +  ac_status=$?
12645 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 +  (exit $ac_status); }; }; then
12647 +  ac_cv_lib_m_atan=yes
12648  else
12649 -  echo "configure: failed program was:" >&5
12650 -  cat conftest.$ac_ext >&5
12651 -  rm -rf conftest*
12652 -  eval "ac_cv_lib_$ac_lib_var=no"
12653 -fi
12654 -rm -f conftest*
12655 -LIBS="$ac_save_LIBS"
12656 +  echo "$as_me: failed program was:" >&5
12657 +sed 's/^/| /' conftest.$ac_ext >&5
12658  
12659 +ac_cv_lib_m_atan=no
12660  fi
12661 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12662 -  echo "$ac_t""yes" 1>&6
12663 -    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12664 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12665 -  cat >> confdefs.h <<EOF
12666 -#define $ac_tr_lib 1
12667 -EOF
12668 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12669 +LIBS=$ac_check_lib_save_LIBS
12670 +fi
12671 +echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan" >&5
12672 +echo "${ECHO_T}$ac_cv_lib_m_atan" >&6
12673 +if test $ac_cv_lib_m_atan = yes; then
12674 +  cat >>confdefs.h <<_ACEOF
12675 +#define HAVE_LIBM 1
12676 +_ACEOF
12677  
12678    LIBS="-lm $LIBS"
12679  
12680 -else
12681 -  echo "$ac_t""no" 1>&6
12682  fi
12683  
12684  
12685 -echo $ac_n "checking for socket""... $ac_c" 1>&6
12686 -echo "configure:3545: checking for socket" >&5
12687 -if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
12688 -  echo $ac_n "(cached) $ac_c" 1>&6
12689 +echo "$as_me:$LINENO: checking for socket" >&5
12690 +echo $ECHO_N "checking for socket... $ECHO_C" >&6
12691 +if test "${ac_cv_func_socket+set}" = set; then
12692 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12693  else
12694 -  cat > conftest.$ac_ext <<EOF
12695 -#line 3550 "configure"
12696 -#include "confdefs.h"
12697 +  cat >conftest.$ac_ext <<_ACEOF
12698 +#line $LINENO "configure"
12699 +/* confdefs.h.  */
12700 +_ACEOF
12701 +cat confdefs.h >>conftest.$ac_ext
12702 +cat >>conftest.$ac_ext <<_ACEOF
12703 +/* end confdefs.h.  */
12704  /* System header to define __stub macros and hopefully few prototypes,
12705 -    which can conflict with char socket(); below.  */
12706 -#include <assert.h>
12707 +    which can conflict with char socket (); below.
12708 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12709 +    <limits.h> exists even on freestanding compilers.  */
12710 +#ifdef __STDC__
12711 +# include <limits.h>
12712 +#else
12713 +# include <assert.h>
12714 +#endif
12715  /* Override any gcc2 internal prototype to avoid an error.  */
12716 +#ifdef __cplusplus
12717 +extern "C"
12718 +{
12719 +#endif
12720  /* We use char because int might match the return type of a gcc2
12721 -    builtin and then its argument prototype would still apply.  */
12722 -char socket();
12723 -
12724 -int main() {
12725 -
12726 +   builtin and then its argument prototype would still apply.  */
12727 +char socket ();
12728  /* The GNU C library defines this for functions which it implements
12729      to always fail with ENOSYS.  Some functions are actually named
12730      something starting with __ and the normal name is an alias.  */
12731  #if defined (__stub_socket) || defined (__stub___socket)
12732  choke me
12733  #else
12734 -socket();
12735 +char (*f) () = socket;
12736 +#endif
12737 +#ifdef __cplusplus
12738 +}
12739  #endif
12740  
12741 -; return 0; }
12742 -EOF
12743 -if { (eval echo configure:3573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12744 -  rm -rf conftest*
12745 -  eval "ac_cv_func_socket=yes"
12746 +int
12747 +main ()
12748 +{
12749 +return f != socket;
12750 +  ;
12751 +  return 0;
12752 +}
12753 +_ACEOF
12754 +rm -f conftest.$ac_objext conftest$ac_exeext
12755 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756 +  (eval $ac_link) 2>&5
12757 +  ac_status=$?
12758 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 +  (exit $ac_status); } &&
12760 +         { ac_try='test -s conftest$ac_exeext'
12761 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 +  (eval $ac_try) 2>&5
12763 +  ac_status=$?
12764 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 +  (exit $ac_status); }; }; then
12766 +  ac_cv_func_socket=yes
12767  else
12768 -  echo "configure: failed program was:" >&5
12769 -  cat conftest.$ac_ext >&5
12770 -  rm -rf conftest*
12771 -  eval "ac_cv_func_socket=no"
12772 +  echo "$as_me: failed program was:" >&5
12773 +sed 's/^/| /' conftest.$ac_ext >&5
12774 +
12775 +ac_cv_func_socket=no
12776  fi
12777 -rm -f conftest*
12778 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12779  fi
12780 -
12781 -if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12782 -  echo "$ac_t""yes" 1>&6
12783 +echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
12784 +echo "${ECHO_T}$ac_cv_func_socket" >&6
12785 +if test $ac_cv_func_socket = yes; then
12786    cf_result=yes
12787  else
12788 -  echo "$ac_t""no" 1>&6
12789 -cf_result=no
12790 +  cf_result=no
12791  fi
12792  
12793  if test "$cf_result" = no; then
12794 -       echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
12795 -echo "configure:3595: checking for socket in -lsocket" >&5
12796 -ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
12797 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12798 -  echo $ac_n "(cached) $ac_c" 1>&6
12799 +
12800 +echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
12801 +echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
12802 +if test "${ac_cv_lib_socket_socket+set}" = set; then
12803 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12804  else
12805 -  ac_save_LIBS="$LIBS"
12806 +  ac_check_lib_save_LIBS=$LIBS
12807  LIBS="-lsocket  $LIBS"
12808 -cat > conftest.$ac_ext <<EOF
12809 -#line 3603 "configure"
12810 -#include "confdefs.h"
12811 +cat >conftest.$ac_ext <<_ACEOF
12812 +#line $LINENO "configure"
12813 +/* confdefs.h.  */
12814 +_ACEOF
12815 +cat confdefs.h >>conftest.$ac_ext
12816 +cat >>conftest.$ac_ext <<_ACEOF
12817 +/* end confdefs.h.  */
12818 +
12819  /* Override any gcc2 internal prototype to avoid an error.  */
12820 +#ifdef __cplusplus
12821 +extern "C"
12822 +#endif
12823  /* We use char because int might match the return type of a gcc2
12824 -    builtin and then its argument prototype would still apply.  */
12825 -char socket();
12826 -
12827 -int main() {
12828 -socket()
12829 -; return 0; }
12830 -EOF
12831 -if { (eval echo configure:3614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12832 -  rm -rf conftest*
12833 -  eval "ac_cv_lib_$ac_lib_var=yes"
12834 +   builtin and then its argument prototype would still apply.  */
12835 +char socket ();
12836 +int
12837 +main ()
12838 +{
12839 +socket ();
12840 +  ;
12841 +  return 0;
12842 +}
12843 +_ACEOF
12844 +rm -f conftest.$ac_objext conftest$ac_exeext
12845 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12846 +  (eval $ac_link) 2>&5
12847 +  ac_status=$?
12848 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 +  (exit $ac_status); } &&
12850 +         { ac_try='test -s conftest$ac_exeext'
12851 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852 +  (eval $ac_try) 2>&5
12853 +  ac_status=$?
12854 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 +  (exit $ac_status); }; }; then
12856 +  ac_cv_lib_socket_socket=yes
12857  else
12858 -  echo "configure: failed program was:" >&5
12859 -  cat conftest.$ac_ext >&5
12860 -  rm -rf conftest*
12861 -  eval "ac_cv_lib_$ac_lib_var=no"
12862 -fi
12863 -rm -f conftest*
12864 -LIBS="$ac_save_LIBS"
12865 +  echo "$as_me: failed program was:" >&5
12866 +sed 's/^/| /' conftest.$ac_ext >&5
12867  
12868 +ac_cv_lib_socket_socket=no
12869  fi
12870 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12871 -  echo "$ac_t""yes" 1>&6
12872 -    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12873 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12874 -  cat >> confdefs.h <<EOF
12875 -#define $ac_tr_lib 1
12876 -EOF
12877 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12878 +LIBS=$ac_check_lib_save_LIBS
12879 +fi
12880 +echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
12881 +echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
12882 +if test $ac_cv_lib_socket_socket = yes; then
12883 +  cat >>confdefs.h <<_ACEOF
12884 +#define HAVE_LIBSOCKET 1
12885 +_ACEOF
12886  
12887    LIBS="-lsocket $LIBS"
12888  
12889 -else
12890 -  echo "$ac_t""no" 1>&6
12891  fi
12892  
12893  fi
12894 -echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
12895 -echo "configure:3643: checking for setsockopt" >&5
12896 -if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then
12897 -  echo $ac_n "(cached) $ac_c" 1>&6
12898 +echo "$as_me:$LINENO: checking for setsockopt" >&5
12899 +echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
12900 +if test "${ac_cv_func_setsockopt+set}" = set; then
12901 +  echo $ECHO_N "(cached) $ECHO_C" >&6
12902  else
12903 -  cat > conftest.$ac_ext <<EOF
12904 -#line 3648 "configure"
12905 -#include "confdefs.h"
12906 +  cat >conftest.$ac_ext <<_ACEOF
12907 +#line $LINENO "configure"
12908 +/* confdefs.h.  */
12909 +_ACEOF
12910 +cat confdefs.h >>conftest.$ac_ext
12911 +cat >>conftest.$ac_ext <<_ACEOF
12912 +/* end confdefs.h.  */
12913  /* System header to define __stub macros and hopefully few prototypes,
12914 -    which can conflict with char setsockopt(); below.  */
12915 -#include <assert.h>
12916 +    which can conflict with char setsockopt (); below.
12917 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12918 +    <limits.h> exists even on freestanding compilers.  */
12919 +#ifdef __STDC__
12920 +# include <limits.h>
12921 +#else
12922 +# include <assert.h>
12923 +#endif
12924  /* Override any gcc2 internal prototype to avoid an error.  */
12925 +#ifdef __cplusplus
12926 +extern "C"
12927 +{
12928 +#endif
12929  /* We use char because int might match the return type of a gcc2
12930 -    builtin and then its argument prototype would still apply.  */
12931 -char setsockopt();
12932 -
12933 -int main() {
12934 -
12935 +   builtin and then its argument prototype would still apply.  */
12936 +char setsockopt ();
12937  /* The GNU C library defines this for functions which it implements
12938      to always fail with ENOSYS.  Some functions are actually named
12939      something starting with __ and the normal name is an alias.  */
12940  #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
12941  choke me
12942  #else
12943 -setsockopt();
12944 +char (*f) () = setsockopt;
12945 +#endif
12946 +#ifdef __cplusplus
12947 +}
12948  #endif
12949  
12950 -; return 0; }
12951 -EOF
12952 -if { (eval echo configure:3671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12953 -  rm -rf conftest*
12954 -  eval "ac_cv_func_setsockopt=yes"
12955 +int
12956 +main ()
12957 +{
12958 +return f != setsockopt;
12959 +  ;
12960 +  return 0;
12961 +}
12962 +_ACEOF
12963 +rm -f conftest.$ac_objext conftest$ac_exeext
12964 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12965 +  (eval $ac_link) 2>&5
12966 +  ac_status=$?
12967 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 +  (exit $ac_status); } &&
12969 +         { ac_try='test -s conftest$ac_exeext'
12970 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 +  (eval $ac_try) 2>&5
12972 +  ac_status=$?
12973 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 +  (exit $ac_status); }; }; then
12975 +  ac_cv_func_setsockopt=yes
12976  else
12977 -  echo "configure: failed program was:" >&5
12978 -  cat conftest.$ac_ext >&5
12979 -  rm -rf conftest*
12980 -  eval "ac_cv_func_setsockopt=no"
12981 +  echo "$as_me: failed program was:" >&5
12982 +sed 's/^/| /' conftest.$ac_ext >&5
12983 +
12984 +ac_cv_func_setsockopt=no
12985  fi
12986 -rm -f conftest*
12987 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12988  fi
12989 -
12990 -if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then
12991 -  echo "$ac_t""yes" 1>&6
12992 +echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
12993 +echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
12994 +if test $ac_cv_func_setsockopt = yes; then
12995    cf_result=yes
12996  else
12997 -  echo "$ac_t""no" 1>&6
12998 -cf_result=no
12999 +  cf_result=no
13000  fi
13001  
13002  if test "$cf_result" = no; then
13003 -       echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6
13004 -echo "configure:3693: checking for setsockopt in -lsocket" >&5
13005 -ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'`
13006 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13007 -  echo $ac_n "(cached) $ac_c" 1>&6
13008 +
13009 +echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
13010 +echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
13011 +if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
13012 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13013  else
13014 -  ac_save_LIBS="$LIBS"
13015 +  ac_check_lib_save_LIBS=$LIBS
13016  LIBS="-lsocket  $LIBS"
13017 -cat > conftest.$ac_ext <<EOF
13018 -#line 3701 "configure"
13019 -#include "confdefs.h"
13020 +cat >conftest.$ac_ext <<_ACEOF
13021 +#line $LINENO "configure"
13022 +/* confdefs.h.  */
13023 +_ACEOF
13024 +cat confdefs.h >>conftest.$ac_ext
13025 +cat >>conftest.$ac_ext <<_ACEOF
13026 +/* end confdefs.h.  */
13027 +
13028  /* Override any gcc2 internal prototype to avoid an error.  */
13029 +#ifdef __cplusplus
13030 +extern "C"
13031 +#endif
13032  /* We use char because int might match the return type of a gcc2
13033 -    builtin and then its argument prototype would still apply.  */
13034 -char setsockopt();
13035 -
13036 -int main() {
13037 -setsockopt()
13038 -; return 0; }
13039 -EOF
13040 -if { (eval echo configure:3712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13041 -  rm -rf conftest*
13042 -  eval "ac_cv_lib_$ac_lib_var=yes"
13043 +   builtin and then its argument prototype would still apply.  */
13044 +char setsockopt ();
13045 +int
13046 +main ()
13047 +{
13048 +setsockopt ();
13049 +  ;
13050 +  return 0;
13051 +}
13052 +_ACEOF
13053 +rm -f conftest.$ac_objext conftest$ac_exeext
13054 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13055 +  (eval $ac_link) 2>&5
13056 +  ac_status=$?
13057 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 +  (exit $ac_status); } &&
13059 +         { ac_try='test -s conftest$ac_exeext'
13060 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 +  (eval $ac_try) 2>&5
13062 +  ac_status=$?
13063 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 +  (exit $ac_status); }; }; then
13065 +  ac_cv_lib_socket_setsockopt=yes
13066  else
13067 -  echo "configure: failed program was:" >&5
13068 -  cat conftest.$ac_ext >&5
13069 -  rm -rf conftest*
13070 -  eval "ac_cv_lib_$ac_lib_var=no"
13071 -fi
13072 -rm -f conftest*
13073 -LIBS="$ac_save_LIBS"
13074 +  echo "$as_me: failed program was:" >&5
13075 +sed 's/^/| /' conftest.$ac_ext >&5
13076  
13077 +ac_cv_lib_socket_setsockopt=no
13078  fi
13079 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13080 -  echo "$ac_t""yes" 1>&6
13081 -    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13082 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13083 -  cat >> confdefs.h <<EOF
13084 -#define $ac_tr_lib 1
13085 -EOF
13086 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13087 +LIBS=$ac_check_lib_save_LIBS
13088 +fi
13089 +echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
13090 +echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
13091 +if test $ac_cv_lib_socket_setsockopt = yes; then
13092 +  cat >>confdefs.h <<_ACEOF
13093 +#define HAVE_LIBSOCKET 1
13094 +_ACEOF
13095  
13096    LIBS="-lsocket $LIBS"
13097  
13098 -else
13099 -  echo "$ac_t""no" 1>&6
13100  fi
13101  
13102  fi
13103  
13104  #AC_MSG_CHECKING([for gethostbyname])
13105 -#AC_TRY_LINK([#include <netdb.h>], [gethostbyname("")], cf_result=yes, cf_result=no)
13106 +#AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <netdb.h>]], [[gethostbyname("")]])],[cf_result=yes],[cf_result=no])
13107  #AC_MSG_RESULT($cf_result)
13108 -echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13109 -echo "configure:3745: checking for gethostbyname" >&5
13110 -if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13111 -  echo $ac_n "(cached) $ac_c" 1>&6
13112 +echo "$as_me:$LINENO: checking for gethostbyname" >&5
13113 +echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13114 +if test "${ac_cv_func_gethostbyname+set}" = set; then
13115 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13116  else
13117 -  cat > conftest.$ac_ext <<EOF
13118 -#line 3750 "configure"
13119 -#include "confdefs.h"
13120 +  cat >conftest.$ac_ext <<_ACEOF
13121 +#line $LINENO "configure"
13122 +/* confdefs.h.  */
13123 +_ACEOF
13124 +cat confdefs.h >>conftest.$ac_ext
13125 +cat >>conftest.$ac_ext <<_ACEOF
13126 +/* end confdefs.h.  */
13127  /* System header to define __stub macros and hopefully few prototypes,
13128 -    which can conflict with char gethostbyname(); below.  */
13129 -#include <assert.h>
13130 +    which can conflict with char gethostbyname (); below.
13131 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13132 +    <limits.h> exists even on freestanding compilers.  */
13133 +#ifdef __STDC__
13134 +# include <limits.h>
13135 +#else
13136 +# include <assert.h>
13137 +#endif
13138  /* Override any gcc2 internal prototype to avoid an error.  */
13139 +#ifdef __cplusplus
13140 +extern "C"
13141 +{
13142 +#endif
13143  /* We use char because int might match the return type of a gcc2
13144 -    builtin and then its argument prototype would still apply.  */
13145 -char gethostbyname();
13146 -
13147 -int main() {
13148 -
13149 +   builtin and then its argument prototype would still apply.  */
13150 +char gethostbyname ();
13151  /* The GNU C library defines this for functions which it implements
13152      to always fail with ENOSYS.  Some functions are actually named
13153      something starting with __ and the normal name is an alias.  */
13154  #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13155  choke me
13156  #else
13157 -gethostbyname();
13158 +char (*f) () = gethostbyname;
13159 +#endif
13160 +#ifdef __cplusplus
13161 +}
13162  #endif
13163  
13164 -; return 0; }
13165 -EOF
13166 -if { (eval echo configure:3773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13167 -  rm -rf conftest*
13168 -  eval "ac_cv_func_gethostbyname=yes"
13169 +int
13170 +main ()
13171 +{
13172 +return f != gethostbyname;
13173 +  ;
13174 +  return 0;
13175 +}
13176 +_ACEOF
13177 +rm -f conftest.$ac_objext conftest$ac_exeext
13178 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13179 +  (eval $ac_link) 2>&5
13180 +  ac_status=$?
13181 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 +  (exit $ac_status); } &&
13183 +         { ac_try='test -s conftest$ac_exeext'
13184 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185 +  (eval $ac_try) 2>&5
13186 +  ac_status=$?
13187 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 +  (exit $ac_status); }; }; then
13189 +  ac_cv_func_gethostbyname=yes
13190  else
13191 -  echo "configure: failed program was:" >&5
13192 -  cat conftest.$ac_ext >&5
13193 -  rm -rf conftest*
13194 -  eval "ac_cv_func_gethostbyname=no"
13195 +  echo "$as_me: failed program was:" >&5
13196 +sed 's/^/| /' conftest.$ac_ext >&5
13197 +
13198 +ac_cv_func_gethostbyname=no
13199  fi
13200 -rm -f conftest*
13201 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13202  fi
13203 -
13204 -if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13205 -  echo "$ac_t""yes" 1>&6
13206 +echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13207 +echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13208 +if test $ac_cv_func_gethostbyname = yes; then
13209    cf_result=yes
13210  else
13211 -  echo "$ac_t""no" 1>&6
13212 -cf_result=no
13213 +  cf_result=no
13214  fi
13215  
13216  if test "$cf_result" = no; then
13217 -       echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
13218 -echo "configure:3795: checking for gethostbyname in -lsocket" >&5
13219 -ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
13220 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13221 -  echo $ac_n "(cached) $ac_c" 1>&6
13222 +       echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
13223 +echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
13224 +if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
13225 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13226  else
13227 -  ac_save_LIBS="$LIBS"
13228 +  ac_check_lib_save_LIBS=$LIBS
13229  LIBS="-lsocket  $LIBS"
13230 -cat > conftest.$ac_ext <<EOF
13231 -#line 3803 "configure"
13232 -#include "confdefs.h"
13233 +cat >conftest.$ac_ext <<_ACEOF
13234 +#line $LINENO "configure"
13235 +/* confdefs.h.  */
13236 +_ACEOF
13237 +cat confdefs.h >>conftest.$ac_ext
13238 +cat >>conftest.$ac_ext <<_ACEOF
13239 +/* end confdefs.h.  */
13240 +
13241  /* Override any gcc2 internal prototype to avoid an error.  */
13242 +#ifdef __cplusplus
13243 +extern "C"
13244 +#endif
13245  /* We use char because int might match the return type of a gcc2
13246 -    builtin and then its argument prototype would still apply.  */
13247 -char gethostbyname();
13248 -
13249 -int main() {
13250 -gethostbyname()
13251 -; return 0; }
13252 -EOF
13253 -if { (eval echo configure:3814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13254 -  rm -rf conftest*
13255 -  eval "ac_cv_lib_$ac_lib_var=yes"
13256 +   builtin and then its argument prototype would still apply.  */
13257 +char gethostbyname ();
13258 +int
13259 +main ()
13260 +{
13261 +gethostbyname ();
13262 +  ;
13263 +  return 0;
13264 +}
13265 +_ACEOF
13266 +rm -f conftest.$ac_objext conftest$ac_exeext
13267 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13268 +  (eval $ac_link) 2>&5
13269 +  ac_status=$?
13270 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 +  (exit $ac_status); } &&
13272 +         { ac_try='test -s conftest$ac_exeext'
13273 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13274 +  (eval $ac_try) 2>&5
13275 +  ac_status=$?
13276 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 +  (exit $ac_status); }; }; then
13278 +  ac_cv_lib_socket_gethostbyname=yes
13279  else
13280 -  echo "configure: failed program was:" >&5
13281 -  cat conftest.$ac_ext >&5
13282 -  rm -rf conftest*
13283 -  eval "ac_cv_lib_$ac_lib_var=no"
13284 -fi
13285 -rm -f conftest*
13286 -LIBS="$ac_save_LIBS"
13287 +  echo "$as_me: failed program was:" >&5
13288 +sed 's/^/| /' conftest.$ac_ext >&5
13289  
13290 +ac_cv_lib_socket_gethostbyname=no
13291  fi
13292 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13293 -  echo "$ac_t""yes" 1>&6
13294 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13295 +LIBS=$ac_check_lib_save_LIBS
13296 +fi
13297 +echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
13298 +echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
13299 +if test $ac_cv_lib_socket_gethostbyname = yes; then
13300    cf_result=yes
13301  else
13302 -  echo "$ac_t""no" 1>&6
13303 -cf_result=no
13304 +  cf_result=no
13305  fi
13306  
13307         if test "$cf_result" = no; then
13308 -               echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13309 -echo "configure:3837: checking for gethostbyname in -lnsl" >&5
13310 -ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13311 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13312 -  echo $ac_n "(cached) $ac_c" 1>&6
13313 +
13314 +echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
13315 +echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
13316 +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
13317 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13318  else
13319 -  ac_save_LIBS="$LIBS"
13320 +  ac_check_lib_save_LIBS=$LIBS
13321  LIBS="-lnsl  $LIBS"
13322 -cat > conftest.$ac_ext <<EOF
13323 -#line 3845 "configure"
13324 -#include "confdefs.h"
13325 +cat >conftest.$ac_ext <<_ACEOF
13326 +#line $LINENO "configure"
13327 +/* confdefs.h.  */
13328 +_ACEOF
13329 +cat confdefs.h >>conftest.$ac_ext
13330 +cat >>conftest.$ac_ext <<_ACEOF
13331 +/* end confdefs.h.  */
13332 +
13333  /* Override any gcc2 internal prototype to avoid an error.  */
13334 +#ifdef __cplusplus
13335 +extern "C"
13336 +#endif
13337  /* We use char because int might match the return type of a gcc2
13338 -    builtin and then its argument prototype would still apply.  */
13339 -char gethostbyname();
13340 -
13341 -int main() {
13342 -gethostbyname()
13343 -; return 0; }
13344 -EOF
13345 -if { (eval echo configure:3856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13346 -  rm -rf conftest*
13347 -  eval "ac_cv_lib_$ac_lib_var=yes"
13348 +   builtin and then its argument prototype would still apply.  */
13349 +char gethostbyname ();
13350 +int
13351 +main ()
13352 +{
13353 +gethostbyname ();
13354 +  ;
13355 +  return 0;
13356 +}
13357 +_ACEOF
13358 +rm -f conftest.$ac_objext conftest$ac_exeext
13359 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13360 +  (eval $ac_link) 2>&5
13361 +  ac_status=$?
13362 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 +  (exit $ac_status); } &&
13364 +         { ac_try='test -s conftest$ac_exeext'
13365 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 +  (eval $ac_try) 2>&5
13367 +  ac_status=$?
13368 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 +  (exit $ac_status); }; }; then
13370 +  ac_cv_lib_nsl_gethostbyname=yes
13371  else
13372 -  echo "configure: failed program was:" >&5
13373 -  cat conftest.$ac_ext >&5
13374 -  rm -rf conftest*
13375 -  eval "ac_cv_lib_$ac_lib_var=no"
13376 -fi
13377 -rm -f conftest*
13378 -LIBS="$ac_save_LIBS"
13379 +  echo "$as_me: failed program was:" >&5
13380 +sed 's/^/| /' conftest.$ac_ext >&5
13381  
13382 +ac_cv_lib_nsl_gethostbyname=no
13383  fi
13384 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13385 -  echo "$ac_t""yes" 1>&6
13386 -    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13387 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13388 -  cat >> confdefs.h <<EOF
13389 -#define $ac_tr_lib 1
13390 -EOF
13391 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13392 +LIBS=$ac_check_lib_save_LIBS
13393 +fi
13394 +echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
13395 +echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
13396 +if test $ac_cv_lib_nsl_gethostbyname = yes; then
13397 +  cat >>confdefs.h <<_ACEOF
13398 +#define HAVE_LIBNSL 1
13399 +_ACEOF
13400  
13401    LIBS="-lnsl $LIBS"
13402  
13403 -else
13404 -  echo "$ac_t""no" 1>&6
13405  fi
13406  
13407         else
13408 @@ -3884,333 +10779,555 @@
13409         fi
13410  fi
13411  
13412 -echo $ac_n "checking for herror""... $ac_c" 1>&6
13413 -echo "configure:3889: checking for herror" >&5
13414 -if eval "test \"`echo '$''{'ac_cv_func_herror'+set}'`\" = set"; then
13415 -  echo $ac_n "(cached) $ac_c" 1>&6
13416 +echo "$as_me:$LINENO: checking for herror" >&5
13417 +echo $ECHO_N "checking for herror... $ECHO_C" >&6
13418 +if test "${ac_cv_func_herror+set}" = set; then
13419 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13420  else
13421 -  cat > conftest.$ac_ext <<EOF
13422 -#line 3894 "configure"
13423 -#include "confdefs.h"
13424 +  cat >conftest.$ac_ext <<_ACEOF
13425 +#line $LINENO "configure"
13426 +/* confdefs.h.  */
13427 +_ACEOF
13428 +cat confdefs.h >>conftest.$ac_ext
13429 +cat >>conftest.$ac_ext <<_ACEOF
13430 +/* end confdefs.h.  */
13431  /* System header to define __stub macros and hopefully few prototypes,
13432 -    which can conflict with char herror(); below.  */
13433 -#include <assert.h>
13434 +    which can conflict with char herror (); below.
13435 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13436 +    <limits.h> exists even on freestanding compilers.  */
13437 +#ifdef __STDC__
13438 +# include <limits.h>
13439 +#else
13440 +# include <assert.h>
13441 +#endif
13442  /* Override any gcc2 internal prototype to avoid an error.  */
13443 +#ifdef __cplusplus
13444 +extern "C"
13445 +{
13446 +#endif
13447  /* We use char because int might match the return type of a gcc2
13448 -    builtin and then its argument prototype would still apply.  */
13449 -char herror();
13450 -
13451 -int main() {
13452 -
13453 +   builtin and then its argument prototype would still apply.  */
13454 +char herror ();
13455  /* The GNU C library defines this for functions which it implements
13456      to always fail with ENOSYS.  Some functions are actually named
13457      something starting with __ and the normal name is an alias.  */
13458  #if defined (__stub_herror) || defined (__stub___herror)
13459  choke me
13460  #else
13461 -herror();
13462 +char (*f) () = herror;
13463 +#endif
13464 +#ifdef __cplusplus
13465 +}
13466  #endif
13467  
13468 -; return 0; }
13469 -EOF
13470 -if { (eval echo configure:3917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13471 -  rm -rf conftest*
13472 -  eval "ac_cv_func_herror=yes"
13473 +int
13474 +main ()
13475 +{
13476 +return f != herror;
13477 +  ;
13478 +  return 0;
13479 +}
13480 +_ACEOF
13481 +rm -f conftest.$ac_objext conftest$ac_exeext
13482 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13483 +  (eval $ac_link) 2>&5
13484 +  ac_status=$?
13485 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 +  (exit $ac_status); } &&
13487 +         { ac_try='test -s conftest$ac_exeext'
13488 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 +  (eval $ac_try) 2>&5
13490 +  ac_status=$?
13491 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 +  (exit $ac_status); }; }; then
13493 +  ac_cv_func_herror=yes
13494  else
13495 -  echo "configure: failed program was:" >&5
13496 -  cat conftest.$ac_ext >&5
13497 -  rm -rf conftest*
13498 -  eval "ac_cv_func_herror=no"
13499 +  echo "$as_me: failed program was:" >&5
13500 +sed 's/^/| /' conftest.$ac_ext >&5
13501 +
13502 +ac_cv_func_herror=no
13503  fi
13504 -rm -f conftest*
13505 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13506  fi
13507 -
13508 -if eval "test \"`echo '$ac_cv_func_'herror`\" = yes"; then
13509 -  echo "$ac_t""yes" 1>&6
13510 -  cat >> confdefs.h <<\EOF
13511 +echo "$as_me:$LINENO: result: $ac_cv_func_herror" >&5
13512 +echo "${ECHO_T}$ac_cv_func_herror" >&6
13513 +if test $ac_cv_func_herror = yes; then
13514 +  cat >>confdefs.h <<\_ACEOF
13515  #define HAVE_HERROR 1
13516 -EOF
13517 +_ACEOF
13518  
13519 -else
13520 -  echo "$ac_t""no" 1>&6
13521  fi
13522  
13523 -echo $ac_n "checking for cfmakeraw""... $ac_c" 1>&6
13524 -echo "configure:3940: checking for cfmakeraw" >&5
13525 -if eval "test \"`echo '$''{'ac_cv_func_cfmakeraw'+set}'`\" = set"; then
13526 -  echo $ac_n "(cached) $ac_c" 1>&6
13527 +echo "$as_me:$LINENO: checking for cfmakeraw" >&5
13528 +echo $ECHO_N "checking for cfmakeraw... $ECHO_C" >&6
13529 +if test "${ac_cv_func_cfmakeraw+set}" = set; then
13530 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13531  else
13532 -  cat > conftest.$ac_ext <<EOF
13533 -#line 3945 "configure"
13534 -#include "confdefs.h"
13535 +  cat >conftest.$ac_ext <<_ACEOF
13536 +#line $LINENO "configure"
13537 +/* confdefs.h.  */
13538 +_ACEOF
13539 +cat confdefs.h >>conftest.$ac_ext
13540 +cat >>conftest.$ac_ext <<_ACEOF
13541 +/* end confdefs.h.  */
13542  /* System header to define __stub macros and hopefully few prototypes,
13543 -    which can conflict with char cfmakeraw(); below.  */
13544 -#include <assert.h>
13545 +    which can conflict with char cfmakeraw (); below.
13546 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13547 +    <limits.h> exists even on freestanding compilers.  */
13548 +#ifdef __STDC__
13549 +# include <limits.h>
13550 +#else
13551 +# include <assert.h>
13552 +#endif
13553  /* Override any gcc2 internal prototype to avoid an error.  */
13554 +#ifdef __cplusplus
13555 +extern "C"
13556 +{
13557 +#endif
13558  /* We use char because int might match the return type of a gcc2
13559 -    builtin and then its argument prototype would still apply.  */
13560 -char cfmakeraw();
13561 -
13562 -int main() {
13563 -
13564 +   builtin and then its argument prototype would still apply.  */
13565 +char cfmakeraw ();
13566  /* The GNU C library defines this for functions which it implements
13567      to always fail with ENOSYS.  Some functions are actually named
13568      something starting with __ and the normal name is an alias.  */
13569  #if defined (__stub_cfmakeraw) || defined (__stub___cfmakeraw)
13570  choke me
13571  #else
13572 -cfmakeraw();
13573 +char (*f) () = cfmakeraw;
13574 +#endif
13575 +#ifdef __cplusplus
13576 +}
13577  #endif
13578  
13579 -; return 0; }
13580 -EOF
13581 -if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13582 -  rm -rf conftest*
13583 -  eval "ac_cv_func_cfmakeraw=yes"
13584 +int
13585 +main ()
13586 +{
13587 +return f != cfmakeraw;
13588 +  ;
13589 +  return 0;
13590 +}
13591 +_ACEOF
13592 +rm -f conftest.$ac_objext conftest$ac_exeext
13593 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13594 +  (eval $ac_link) 2>&5
13595 +  ac_status=$?
13596 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 +  (exit $ac_status); } &&
13598 +         { ac_try='test -s conftest$ac_exeext'
13599 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13600 +  (eval $ac_try) 2>&5
13601 +  ac_status=$?
13602 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 +  (exit $ac_status); }; }; then
13604 +  ac_cv_func_cfmakeraw=yes
13605  else
13606 -  echo "configure: failed program was:" >&5
13607 -  cat conftest.$ac_ext >&5
13608 -  rm -rf conftest*
13609 -  eval "ac_cv_func_cfmakeraw=no"
13610 +  echo "$as_me: failed program was:" >&5
13611 +sed 's/^/| /' conftest.$ac_ext >&5
13612 +
13613 +ac_cv_func_cfmakeraw=no
13614  fi
13615 -rm -f conftest*
13616 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13617  fi
13618 -
13619 -if eval "test \"`echo '$ac_cv_func_'cfmakeraw`\" = yes"; then
13620 -  echo "$ac_t""yes" 1>&6
13621 -  cat >> confdefs.h <<\EOF
13622 +echo "$as_me:$LINENO: result: $ac_cv_func_cfmakeraw" >&5
13623 +echo "${ECHO_T}$ac_cv_func_cfmakeraw" >&6
13624 +if test $ac_cv_func_cfmakeraw = yes; then
13625 +  cat >>confdefs.h <<\_ACEOF
13626  #define HAVE_CFMAKERAW 1
13627 -EOF
13628 +_ACEOF
13629  
13630 -else
13631 -  echo "$ac_t""no" 1>&6
13632  fi
13633  
13634  
13635 +
13636  for ac_func in cygwin_conv_to_full_win32_path
13637  do
13638 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13639 -echo "configure:3994: checking for $ac_func" >&5
13640 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13641 -  echo $ac_n "(cached) $ac_c" 1>&6
13642 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13643 +echo "$as_me:$LINENO: checking for $ac_func" >&5
13644 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13645 +if eval "test \"\${$as_ac_var+set}\" = set"; then
13646 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13647  else
13648 -  cat > conftest.$ac_ext <<EOF
13649 -#line 3999 "configure"
13650 -#include "confdefs.h"
13651 +  cat >conftest.$ac_ext <<_ACEOF
13652 +#line $LINENO "configure"
13653 +/* confdefs.h.  */
13654 +_ACEOF
13655 +cat confdefs.h >>conftest.$ac_ext
13656 +cat >>conftest.$ac_ext <<_ACEOF
13657 +/* end confdefs.h.  */
13658  /* System header to define __stub macros and hopefully few prototypes,
13659 -    which can conflict with char $ac_func(); below.  */
13660 -#include <assert.h>
13661 +    which can conflict with char $ac_func (); below.
13662 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13663 +    <limits.h> exists even on freestanding compilers.  */
13664 +#ifdef __STDC__
13665 +# include <limits.h>
13666 +#else
13667 +# include <assert.h>
13668 +#endif
13669  /* Override any gcc2 internal prototype to avoid an error.  */
13670 +#ifdef __cplusplus
13671 +extern "C"
13672 +{
13673 +#endif
13674  /* We use char because int might match the return type of a gcc2
13675 -    builtin and then its argument prototype would still apply.  */
13676 -char $ac_func();
13677 -
13678 -int main() {
13679 -
13680 +   builtin and then its argument prototype would still apply.  */
13681 +char $ac_func ();
13682  /* The GNU C library defines this for functions which it implements
13683      to always fail with ENOSYS.  Some functions are actually named
13684      something starting with __ and the normal name is an alias.  */
13685  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13686  choke me
13687  #else
13688 -$ac_func();
13689 +char (*f) () = $ac_func;
13690 +#endif
13691 +#ifdef __cplusplus
13692 +}
13693  #endif
13694  
13695 -; return 0; }
13696 -EOF
13697 -if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13698 -  rm -rf conftest*
13699 -  eval "ac_cv_func_$ac_func=yes"
13700 +int
13701 +main ()
13702 +{
13703 +return f != $ac_func;
13704 +  ;
13705 +  return 0;
13706 +}
13707 +_ACEOF
13708 +rm -f conftest.$ac_objext conftest$ac_exeext
13709 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13710 +  (eval $ac_link) 2>&5
13711 +  ac_status=$?
13712 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 +  (exit $ac_status); } &&
13714 +         { ac_try='test -s conftest$ac_exeext'
13715 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716 +  (eval $ac_try) 2>&5
13717 +  ac_status=$?
13718 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 +  (exit $ac_status); }; }; then
13720 +  eval "$as_ac_var=yes"
13721  else
13722 -  echo "configure: failed program was:" >&5
13723 -  cat conftest.$ac_ext >&5
13724 -  rm -rf conftest*
13725 -  eval "ac_cv_func_$ac_func=no"
13726 +  echo "$as_me: failed program was:" >&5
13727 +sed 's/^/| /' conftest.$ac_ext >&5
13728 +
13729 +eval "$as_ac_var=no"
13730  fi
13731 -rm -f conftest*
13732 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13733  fi
13734 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13735 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13736 +if test `eval echo '${'$as_ac_var'}'` = yes; then
13737 +  cat >>confdefs.h <<_ACEOF
13738 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13739 +_ACEOF
13740  
13741 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13742 -  echo "$ac_t""yes" 1>&6
13743 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13744 -  cat >> confdefs.h <<EOF
13745 -#define $ac_tr_func 1
13746 -EOF
13747
13748 -else
13749 -  echo "$ac_t""no" 1>&6
13750  fi
13751  done
13752  
13753  
13754 -echo $ac_n "checking if you want to enable javascript""... $ac_c" 1>&6
13755 -echo "configure:4048: checking if you want to enable javascript" >&5
13756 +echo "$as_me:$LINENO: checking if you want to enable javascript" >&5
13757 +echo $ECHO_N "checking if you want to enable javascript... $ECHO_C" >&6
13758  # Check whether --enable-javascript or --disable-javascript was given.
13759  if test "${enable_javascript+set}" = set; then
13760    enableval="$enable_javascript"
13761    cf_use_javascript=yes
13762  else
13763    cf_use_javascript=no
13764 -fi
13765 -
13766 -echo "$ac_t""$cf_use_javascript" 1>&6
13767 +fi;
13768 +echo "$as_me:$LINENO: result: $cf_use_javascript" >&5
13769 +echo "${ECHO_T}$cf_use_javascript" >&6
13770  if test "$cf_use_javascript" = yes; then
13771 -       cat >> confdefs.h <<\EOF
13772 +       cat >>confdefs.h <<\_ACEOF
13773  #define JS 1
13774 -EOF
13775 +_ACEOF
13776  
13777  fi
13778  
13779 +
13780  # Check whether --with-libfl or --without-libfl was given.
13781  if test "${with_libfl+set}" = set; then
13782    withval="$with_libfl"
13783    LIBS="$LIBS -lfl"
13784  else
13785 -  cat >> confdefs.h <<\EOF
13786 +  cat >>confdefs.h <<\_ACEOF
13787  #define CHCEME_FLEXI_LIBU 1
13788 -EOF
13789 -
13790 -fi
13791 +_ACEOF
13792  
13793 +fi;
13794  
13795 -echo $ac_n "checking if you want to use graphics""... $ac_c" 1>&6
13796 -echo "configure:4078: checking if you want to use graphics" >&5
13797 +echo "$as_me:$LINENO: checking if you want to use graphics" >&5
13798 +echo $ECHO_N "checking if you want to use graphics... $ECHO_C" >&6
13799  # Check whether --enable-graphics or --disable-graphics was given.
13800  if test "${enable_graphics+set}" = set; then
13801    enableval="$enable_graphics"
13802    cf_use_graphics=yes
13803  else
13804    cf_use_graphics=no
13805 -fi
13806 +fi;
13807 +echo "$as_me:$LINENO: result: $cf_use_graphics" >&5
13808 +echo "${ECHO_T}$cf_use_graphics" >&6
13809  
13810 -echo "$ac_t""$cf_use_graphics" 1>&6
13811  
13812 -echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13813 -echo "configure:4090: checking for Gpm_Open in -lgpm" >&5
13814 -ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13815 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13816 -  echo $ac_n "(cached) $ac_c" 1>&6
13817 +echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
13818 +echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
13819 +if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
13820 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13821  else
13822 -  ac_save_LIBS="$LIBS"
13823 +  ac_check_lib_save_LIBS=$LIBS
13824  LIBS="-lgpm  $LIBS"
13825 -cat > conftest.$ac_ext <<EOF
13826 -#line 4098 "configure"
13827 -#include "confdefs.h"
13828 +cat >conftest.$ac_ext <<_ACEOF
13829 +#line $LINENO "configure"
13830 +/* confdefs.h.  */
13831 +_ACEOF
13832 +cat confdefs.h >>conftest.$ac_ext
13833 +cat >>conftest.$ac_ext <<_ACEOF
13834 +/* end confdefs.h.  */
13835 +
13836  /* Override any gcc2 internal prototype to avoid an error.  */
13837 +#ifdef __cplusplus
13838 +extern "C"
13839 +#endif
13840  /* We use char because int might match the return type of a gcc2
13841 -    builtin and then its argument prototype would still apply.  */
13842 -char Gpm_Open();
13843 -
13844 -int main() {
13845 -Gpm_Open()
13846 -; return 0; }
13847 -EOF
13848 -if { (eval echo configure:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13849 -  rm -rf conftest*
13850 -  eval "ac_cv_lib_$ac_lib_var=yes"
13851 +   builtin and then its argument prototype would still apply.  */
13852 +char Gpm_Open ();
13853 +int
13854 +main ()
13855 +{
13856 +Gpm_Open ();
13857 +  ;
13858 +  return 0;
13859 +}
13860 +_ACEOF
13861 +rm -f conftest.$ac_objext conftest$ac_exeext
13862 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13863 +  (eval $ac_link) 2>&5
13864 +  ac_status=$?
13865 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 +  (exit $ac_status); } &&
13867 +         { ac_try='test -s conftest$ac_exeext'
13868 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869 +  (eval $ac_try) 2>&5
13870 +  ac_status=$?
13871 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 +  (exit $ac_status); }; }; then
13873 +  ac_cv_lib_gpm_Gpm_Open=yes
13874  else
13875 -  echo "configure: failed program was:" >&5
13876 -  cat conftest.$ac_ext >&5
13877 -  rm -rf conftest*
13878 -  eval "ac_cv_lib_$ac_lib_var=no"
13879 -fi
13880 -rm -f conftest*
13881 -LIBS="$ac_save_LIBS"
13882 +  echo "$as_me: failed program was:" >&5
13883 +sed 's/^/| /' conftest.$ac_ext >&5
13884  
13885 +ac_cv_lib_gpm_Gpm_Open=no
13886  fi
13887 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13888 -  echo "$ac_t""yes" 1>&6
13889 -    ac_tr_lib=HAVE_LIB`echo gpm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13890 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13891 -  cat >> confdefs.h <<EOF
13892 -#define $ac_tr_lib 1
13893 -EOF
13894 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13895 +LIBS=$ac_check_lib_save_LIBS
13896 +fi
13897 +echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13898 +echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
13899 +if test $ac_cv_lib_gpm_Gpm_Open = yes; then
13900 +  cat >>confdefs.h <<_ACEOF
13901 +#define HAVE_LIBGPM 1
13902 +_ACEOF
13903  
13904    LIBS="-lgpm $LIBS"
13905  
13906 -else
13907 -  echo "$ac_t""no" 1>&6
13908  fi
13909  
13910  cf_have_gpm_lib=$ac_cv_lib_gpm_Gpm_Open
13911 -for ac_hdr in gpm.h
13912 +
13913 +for ac_header in gpm.h
13914  do
13915 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13916 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13917 -echo "configure:4141: checking for $ac_hdr" >&5
13918 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13919 -  echo $ac_n "(cached) $ac_c" 1>&6
13920 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13921 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
13922 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
13923 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13924 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
13925 +  echo $ECHO_N "(cached) $ECHO_C" >&6
13926 +fi
13927 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13928 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13929  else
13930 -  cat > conftest.$ac_ext <<EOF
13931 -#line 4146 "configure"
13932 -#include "confdefs.h"
13933 -#include <$ac_hdr>
13934 -EOF
13935 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13936 -{ (eval echo configure:4151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13937 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13938 -if test -z "$ac_err"; then
13939 -  rm -rf conftest*
13940 -  eval "ac_cv_header_$ac_safe=yes"
13941 +  # Is the header compilable?
13942 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
13943 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13944 +cat >conftest.$ac_ext <<_ACEOF
13945 +#line $LINENO "configure"
13946 +/* confdefs.h.  */
13947 +_ACEOF
13948 +cat confdefs.h >>conftest.$ac_ext
13949 +cat >>conftest.$ac_ext <<_ACEOF
13950 +/* end confdefs.h.  */
13951 +$ac_includes_default
13952 +#include <$ac_header>
13953 +_ACEOF
13954 +rm -f conftest.$ac_objext
13955 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13956 +  (eval $ac_compile) 2>&5
13957 +  ac_status=$?
13958 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 +  (exit $ac_status); } &&
13960 +         { ac_try='test -s conftest.$ac_objext'
13961 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962 +  (eval $ac_try) 2>&5
13963 +  ac_status=$?
13964 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 +  (exit $ac_status); }; }; then
13966 +  ac_header_compiler=yes
13967  else
13968 -  echo "$ac_err" >&5
13969 -  echo "configure: failed program was:" >&5
13970 -  cat conftest.$ac_ext >&5
13971 -  rm -rf conftest*
13972 -  eval "ac_cv_header_$ac_safe=no"
13973 +  echo "$as_me: failed program was:" >&5
13974 +sed 's/^/| /' conftest.$ac_ext >&5
13975 +
13976 +ac_header_compiler=no
13977  fi
13978 -rm -f conftest*
13979 +rm -f conftest.$ac_objext conftest.$ac_ext
13980 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13981 +echo "${ECHO_T}$ac_header_compiler" >&6
13982 +
13983 +# Is the header present?
13984 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
13985 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13986 +cat >conftest.$ac_ext <<_ACEOF
13987 +#line $LINENO "configure"
13988 +/* confdefs.h.  */
13989 +_ACEOF
13990 +cat confdefs.h >>conftest.$ac_ext
13991 +cat >>conftest.$ac_ext <<_ACEOF
13992 +/* end confdefs.h.  */
13993 +#include <$ac_header>
13994 +_ACEOF
13995 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13996 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13997 +  ac_status=$?
13998 +  grep -v '^ *+' conftest.er1 >conftest.err
13999 +  rm -f conftest.er1
14000 +  cat conftest.err >&5
14001 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 +  (exit $ac_status); } >/dev/null; then
14003 +  if test -s conftest.err; then
14004 +    ac_cpp_err=$ac_c_preproc_warn_flag
14005 +  else
14006 +    ac_cpp_err=
14007 +  fi
14008 +else
14009 +  ac_cpp_err=yes
14010  fi
14011 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14012 -  echo "$ac_t""yes" 1>&6
14013 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14014 -  cat >> confdefs.h <<EOF
14015 -#define $ac_tr_hdr 1
14016 -EOF
14017
14018 +if test -z "$ac_cpp_err"; then
14019 +  ac_header_preproc=yes
14020  else
14021 -  echo "$ac_t""no" 1>&6
14022 +  echo "$as_me: failed program was:" >&5
14023 +sed 's/^/| /' conftest.$ac_ext >&5
14024 +
14025 +  ac_header_preproc=no
14026  fi
14027 +rm -f conftest.err conftest.$ac_ext
14028 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14029 +echo "${ECHO_T}$ac_header_preproc" >&6
14030 +
14031 +# So?  What about this header?
14032 +case $ac_header_compiler:$ac_header_preproc in
14033 +  yes:no )
14034 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14035 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14036 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14037 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14038 +    (
14039 +      cat <<\_ASBOX
14040 +## ------------------------------------ ##
14041 +## Report this to bug-autoconf@gnu.org. ##
14042 +## ------------------------------------ ##
14043 +_ASBOX
14044 +    ) |
14045 +      sed "s/^/$as_me: WARNING:     /" >&2
14046 +    ;;
14047 +  no:yes )
14048 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14049 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14050 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14051 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14052 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14053 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14054 +    (
14055 +      cat <<\_ASBOX
14056 +## ------------------------------------ ##
14057 +## Report this to bug-autoconf@gnu.org. ##
14058 +## ------------------------------------ ##
14059 +_ASBOX
14060 +    ) |
14061 +      sed "s/^/$as_me: WARNING:     /" >&2
14062 +    ;;
14063 +esac
14064 +echo "$as_me:$LINENO: checking for $ac_header" >&5
14065 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14066 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
14067 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14068 +else
14069 +  eval "$as_ac_Header=$ac_header_preproc"
14070 +fi
14071 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14072 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14073 +
14074 +fi
14075 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
14076 +  cat >>confdefs.h <<_ACEOF
14077 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14078 +_ACEOF
14079 +
14080 +fi
14081 +
14082  done
14083  
14084  cf_have_gpm_includes=$ac_cv_header_gpm_h
14085  if test "$cf_have_gpm_lib" = yes && test "$cf_have_gpm_includes" = yes ; then cf_have_gpm=yes ; else cf_have_gpm=no; fi
14086  
14087 -echo $ac_n "checking for OS/2 threads""... $ac_c" 1>&6
14088 -echo "configure:4181: checking for OS/2 threads" >&5
14089 -if eval "test \"`echo '$''{'ac_cv_have_beginthread'+set}'`\" = set"; then
14090 -  echo $ac_n "(cached) $ac_c" 1>&6
14091 +echo "$as_me:$LINENO: checking for OS/2 threads" >&5
14092 +echo $ECHO_N "checking for OS/2 threads... $ECHO_C" >&6
14093 +if test "${ac_cv_have_beginthread+set}" = set; then
14094 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14095  else
14096    CFLAGS_X="$CFLAGS"
14097         CFLAGS="$CFLAGS -Zmt"
14098 -       cat > conftest.$ac_ext <<EOF
14099 -#line 4188 "configure"
14100 -#include "confdefs.h"
14101 +       cat >conftest.$ac_ext <<_ACEOF
14102 +#line $LINENO "configure"
14103 +/* confdefs.h.  */
14104 +_ACEOF
14105 +cat confdefs.h >>conftest.$ac_ext
14106 +cat >>conftest.$ac_ext <<_ACEOF
14107 +/* end confdefs.h.  */
14108  #include <stdlib.h>
14109 -int main() {
14110 +int
14111 +main ()
14112 +{
14113  _beginthread(NULL, NULL, 0, NULL)
14114 -; return 0; }
14115 -EOF
14116 -if { (eval echo configure:4195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14117 -  rm -rf conftest*
14118 +  ;
14119 +  return 0;
14120 +}
14121 +_ACEOF
14122 +rm -f conftest.$ac_objext conftest$ac_exeext
14123 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14124 +  (eval $ac_link) 2>&5
14125 +  ac_status=$?
14126 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 +  (exit $ac_status); } &&
14128 +         { ac_try='test -s conftest$ac_exeext'
14129 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 +  (eval $ac_try) 2>&5
14131 +  ac_status=$?
14132 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 +  (exit $ac_status); }; }; then
14134    ac_cv_have_beginthread=yes
14135  else
14136 -  echo "configure: failed program was:" >&5
14137 -  cat conftest.$ac_ext >&5
14138 -  rm -rf conftest*
14139 -  ac_cv_have_beginthread=no
14140 +  echo "$as_me: failed program was:" >&5
14141 +sed 's/^/| /' conftest.$ac_ext >&5
14142 +
14143 +ac_cv_have_beginthread=no
14144  fi
14145 -rm -f conftest*
14146 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14147         CFLAGS="$CFLAGS_X"
14148  
14149  fi
14150 -
14151 -echo "$ac_t""$ac_cv_have_beginthread" 1>&6
14152 +echo "$as_me:$LINENO: result: $ac_cv_have_beginthread" >&5
14153 +echo "${ECHO_T}$ac_cv_have_beginthread" >&6
14154  if test "$ac_cv_have_beginthread" = yes; then
14155         CFLAGS="$CFLAGS -Zmt"
14156 -       cat >> confdefs.h <<\EOF
14157 +       cat >>confdefs.h <<\_ACEOF
14158  #define HAVE_BEGINTHREAD 1
14159 -EOF
14160 +_ACEOF
14161  
14162  #else
14163  #      AC_CHECK_FUNC(pthread_create, cf_result=yes, cf_result=no)
14164 @@ -4222,264 +11339,480 @@
14165  #      fi
14166  fi
14167  #AC_CHECK_FUNC(clone, AC_DEFINE(HAVE_CLONE))
14168 -for ac_hdr in atheos/threads.h
14169 +
14170 +for ac_header in atheos/threads.h
14171  do
14172 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14173 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14174 -echo "configure:4230: checking for $ac_hdr" >&5
14175 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14176 -  echo $ac_n "(cached) $ac_c" 1>&6
14177 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14178 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
14179 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
14180 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14181 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
14182 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14183 +fi
14184 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14185 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14186  else
14187 -  cat > conftest.$ac_ext <<EOF
14188 -#line 4235 "configure"
14189 -#include "confdefs.h"
14190 -#include <$ac_hdr>
14191 -EOF
14192 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14193 -{ (eval echo configure:4240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14194 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14195 -if test -z "$ac_err"; then
14196 -  rm -rf conftest*
14197 -  eval "ac_cv_header_$ac_safe=yes"
14198 +  # Is the header compilable?
14199 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
14200 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14201 +cat >conftest.$ac_ext <<_ACEOF
14202 +#line $LINENO "configure"
14203 +/* confdefs.h.  */
14204 +_ACEOF
14205 +cat confdefs.h >>conftest.$ac_ext
14206 +cat >>conftest.$ac_ext <<_ACEOF
14207 +/* end confdefs.h.  */
14208 +$ac_includes_default
14209 +#include <$ac_header>
14210 +_ACEOF
14211 +rm -f conftest.$ac_objext
14212 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14213 +  (eval $ac_compile) 2>&5
14214 +  ac_status=$?
14215 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 +  (exit $ac_status); } &&
14217 +         { ac_try='test -s conftest.$ac_objext'
14218 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 +  (eval $ac_try) 2>&5
14220 +  ac_status=$?
14221 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 +  (exit $ac_status); }; }; then
14223 +  ac_header_compiler=yes
14224  else
14225 -  echo "$ac_err" >&5
14226 -  echo "configure: failed program was:" >&5
14227 -  cat conftest.$ac_ext >&5
14228 -  rm -rf conftest*
14229 -  eval "ac_cv_header_$ac_safe=no"
14230 +  echo "$as_me: failed program was:" >&5
14231 +sed 's/^/| /' conftest.$ac_ext >&5
14232 +
14233 +ac_header_compiler=no
14234  fi
14235 -rm -f conftest*
14236 +rm -f conftest.$ac_objext conftest.$ac_ext
14237 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14238 +echo "${ECHO_T}$ac_header_compiler" >&6
14239 +
14240 +# Is the header present?
14241 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
14242 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14243 +cat >conftest.$ac_ext <<_ACEOF
14244 +#line $LINENO "configure"
14245 +/* confdefs.h.  */
14246 +_ACEOF
14247 +cat confdefs.h >>conftest.$ac_ext
14248 +cat >>conftest.$ac_ext <<_ACEOF
14249 +/* end confdefs.h.  */
14250 +#include <$ac_header>
14251 +_ACEOF
14252 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14253 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14254 +  ac_status=$?
14255 +  grep -v '^ *+' conftest.er1 >conftest.err
14256 +  rm -f conftest.er1
14257 +  cat conftest.err >&5
14258 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 +  (exit $ac_status); } >/dev/null; then
14260 +  if test -s conftest.err; then
14261 +    ac_cpp_err=$ac_c_preproc_warn_flag
14262 +  else
14263 +    ac_cpp_err=
14264 +  fi
14265 +else
14266 +  ac_cpp_err=yes
14267  fi
14268 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14269 -  echo "$ac_t""yes" 1>&6
14270 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14271 -  cat >> confdefs.h <<EOF
14272 -#define $ac_tr_hdr 1
14273 -EOF
14274
14275 +if test -z "$ac_cpp_err"; then
14276 +  ac_header_preproc=yes
14277  else
14278 -  echo "$ac_t""no" 1>&6
14279 +  echo "$as_me: failed program was:" >&5
14280 +sed 's/^/| /' conftest.$ac_ext >&5
14281 +
14282 +  ac_header_preproc=no
14283 +fi
14284 +rm -f conftest.err conftest.$ac_ext
14285 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14286 +echo "${ECHO_T}$ac_header_preproc" >&6
14287 +
14288 +# So?  What about this header?
14289 +case $ac_header_compiler:$ac_header_preproc in
14290 +  yes:no )
14291 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14292 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14293 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14294 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14295 +    (
14296 +      cat <<\_ASBOX
14297 +## ------------------------------------ ##
14298 +## Report this to bug-autoconf@gnu.org. ##
14299 +## ------------------------------------ ##
14300 +_ASBOX
14301 +    ) |
14302 +      sed "s/^/$as_me: WARNING:     /" >&2
14303 +    ;;
14304 +  no:yes )
14305 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14306 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14307 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14308 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14309 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14310 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14311 +    (
14312 +      cat <<\_ASBOX
14313 +## ------------------------------------ ##
14314 +## Report this to bug-autoconf@gnu.org. ##
14315 +## ------------------------------------ ##
14316 +_ASBOX
14317 +    ) |
14318 +      sed "s/^/$as_me: WARNING:     /" >&2
14319 +    ;;
14320 +esac
14321 +echo "$as_me:$LINENO: checking for $ac_header" >&5
14322 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14323 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
14324 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14325 +else
14326 +  eval "$as_ac_Header=$ac_header_preproc"
14327 +fi
14328 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14329 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14330 +
14331  fi
14332 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
14333 +  cat >>confdefs.h <<_ACEOF
14334 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14335 +_ACEOF
14336 +
14337 +fi
14338 +
14339  done
14340  
14341 +
14342  for ac_func in spawn_thread
14343  do
14344 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14345 -echo "configure:4269: checking for $ac_func" >&5
14346 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14347 -  echo $ac_n "(cached) $ac_c" 1>&6
14348 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14349 +echo "$as_me:$LINENO: checking for $ac_func" >&5
14350 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14351 +if eval "test \"\${$as_ac_var+set}\" = set"; then
14352 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14353  else
14354 -  cat > conftest.$ac_ext <<EOF
14355 -#line 4274 "configure"
14356 -#include "confdefs.h"
14357 +  cat >conftest.$ac_ext <<_ACEOF
14358 +#line $LINENO "configure"
14359 +/* confdefs.h.  */
14360 +_ACEOF
14361 +cat confdefs.h >>conftest.$ac_ext
14362 +cat >>conftest.$ac_ext <<_ACEOF
14363 +/* end confdefs.h.  */
14364  /* System header to define __stub macros and hopefully few prototypes,
14365 -    which can conflict with char $ac_func(); below.  */
14366 -#include <assert.h>
14367 +    which can conflict with char $ac_func (); below.
14368 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14369 +    <limits.h> exists even on freestanding compilers.  */
14370 +#ifdef __STDC__
14371 +# include <limits.h>
14372 +#else
14373 +# include <assert.h>
14374 +#endif
14375  /* Override any gcc2 internal prototype to avoid an error.  */
14376 +#ifdef __cplusplus
14377 +extern "C"
14378 +{
14379 +#endif
14380  /* We use char because int might match the return type of a gcc2
14381 -    builtin and then its argument prototype would still apply.  */
14382 -char $ac_func();
14383 -
14384 -int main() {
14385 -
14386 +   builtin and then its argument prototype would still apply.  */
14387 +char $ac_func ();
14388  /* The GNU C library defines this for functions which it implements
14389      to always fail with ENOSYS.  Some functions are actually named
14390      something starting with __ and the normal name is an alias.  */
14391  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14392  choke me
14393  #else
14394 -$ac_func();
14395 +char (*f) () = $ac_func;
14396 +#endif
14397 +#ifdef __cplusplus
14398 +}
14399  #endif
14400  
14401 -; return 0; }
14402 -EOF
14403 -if { (eval echo configure:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14404 -  rm -rf conftest*
14405 -  eval "ac_cv_func_$ac_func=yes"
14406 +int
14407 +main ()
14408 +{
14409 +return f != $ac_func;
14410 +  ;
14411 +  return 0;
14412 +}
14413 +_ACEOF
14414 +rm -f conftest.$ac_objext conftest$ac_exeext
14415 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14416 +  (eval $ac_link) 2>&5
14417 +  ac_status=$?
14418 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 +  (exit $ac_status); } &&
14420 +         { ac_try='test -s conftest$ac_exeext'
14421 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 +  (eval $ac_try) 2>&5
14423 +  ac_status=$?
14424 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 +  (exit $ac_status); }; }; then
14426 +  eval "$as_ac_var=yes"
14427  else
14428 -  echo "configure: failed program was:" >&5
14429 -  cat conftest.$ac_ext >&5
14430 -  rm -rf conftest*
14431 -  eval "ac_cv_func_$ac_func=no"
14432 +  echo "$as_me: failed program was:" >&5
14433 +sed 's/^/| /' conftest.$ac_ext >&5
14434 +
14435 +eval "$as_ac_var=no"
14436  fi
14437 -rm -f conftest*
14438 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14439  fi
14440 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14441 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14442 +if test `eval echo '${'$as_ac_var'}'` = yes; then
14443 +  cat >>confdefs.h <<_ACEOF
14444 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14445 +_ACEOF
14446  
14447 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14448 -  echo "$ac_t""yes" 1>&6
14449 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14450 -  cat >> confdefs.h <<EOF
14451 -#define $ac_tr_func 1
14452 -EOF
14453
14454 -else
14455 -  echo "$ac_t""no" 1>&6
14456  fi
14457  done
14458  
14459 +
14460  for ac_func in resume_thread
14461  do
14462 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14463 -echo "configure:4324: checking for $ac_func" >&5
14464 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14465 -  echo $ac_n "(cached) $ac_c" 1>&6
14466 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14467 +echo "$as_me:$LINENO: checking for $ac_func" >&5
14468 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14469 +if eval "test \"\${$as_ac_var+set}\" = set"; then
14470 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14471  else
14472 -  cat > conftest.$ac_ext <<EOF
14473 -#line 4329 "configure"
14474 -#include "confdefs.h"
14475 +  cat >conftest.$ac_ext <<_ACEOF
14476 +#line $LINENO "configure"
14477 +/* confdefs.h.  */
14478 +_ACEOF
14479 +cat confdefs.h >>conftest.$ac_ext
14480 +cat >>conftest.$ac_ext <<_ACEOF
14481 +/* end confdefs.h.  */
14482  /* System header to define __stub macros and hopefully few prototypes,
14483 -    which can conflict with char $ac_func(); below.  */
14484 -#include <assert.h>
14485 +    which can conflict with char $ac_func (); below.
14486 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14487 +    <limits.h> exists even on freestanding compilers.  */
14488 +#ifdef __STDC__
14489 +# include <limits.h>
14490 +#else
14491 +# include <assert.h>
14492 +#endif
14493  /* Override any gcc2 internal prototype to avoid an error.  */
14494 +#ifdef __cplusplus
14495 +extern "C"
14496 +{
14497 +#endif
14498  /* We use char because int might match the return type of a gcc2
14499 -    builtin and then its argument prototype would still apply.  */
14500 -char $ac_func();
14501 -
14502 -int main() {
14503 -
14504 +   builtin and then its argument prototype would still apply.  */
14505 +char $ac_func ();
14506  /* The GNU C library defines this for functions which it implements
14507      to always fail with ENOSYS.  Some functions are actually named
14508      something starting with __ and the normal name is an alias.  */
14509  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14510  choke me
14511  #else
14512 -$ac_func();
14513 +char (*f) () = $ac_func;
14514 +#endif
14515 +#ifdef __cplusplus
14516 +}
14517  #endif
14518  
14519 -; return 0; }
14520 -EOF
14521 -if { (eval echo configure:4352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14522 -  rm -rf conftest*
14523 -  eval "ac_cv_func_$ac_func=yes"
14524 +int
14525 +main ()
14526 +{
14527 +return f != $ac_func;
14528 +  ;
14529 +  return 0;
14530 +}
14531 +_ACEOF
14532 +rm -f conftest.$ac_objext conftest$ac_exeext
14533 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14534 +  (eval $ac_link) 2>&5
14535 +  ac_status=$?
14536 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 +  (exit $ac_status); } &&
14538 +         { ac_try='test -s conftest$ac_exeext'
14539 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540 +  (eval $ac_try) 2>&5
14541 +  ac_status=$?
14542 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 +  (exit $ac_status); }; }; then
14544 +  eval "$as_ac_var=yes"
14545  else
14546 -  echo "configure: failed program was:" >&5
14547 -  cat conftest.$ac_ext >&5
14548 -  rm -rf conftest*
14549 -  eval "ac_cv_func_$ac_func=no"
14550 +  echo "$as_me: failed program was:" >&5
14551 +sed 's/^/| /' conftest.$ac_ext >&5
14552 +
14553 +eval "$as_ac_var=no"
14554  fi
14555 -rm -f conftest*
14556 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14557  fi
14558 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14559 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14560 +if test `eval echo '${'$as_ac_var'}'` = yes; then
14561 +  cat >>confdefs.h <<_ACEOF
14562 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14563 +_ACEOF
14564  
14565 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14566 -  echo "$ac_t""yes" 1>&6
14567 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14568 -  cat >> confdefs.h <<EOF
14569 -#define $ac_tr_func 1
14570 -EOF
14571
14572 -else
14573 -  echo "$ac_t""no" 1>&6
14574  fi
14575  done
14576  
14577  
14578 -echo $ac_n "checking for MouOpen""... $ac_c" 1>&6
14579 -echo "configure:4378: checking for MouOpen" >&5
14580 -if eval "test \"`echo '$''{'ac_cv_func_MouOpen'+set}'`\" = set"; then
14581 -  echo $ac_n "(cached) $ac_c" 1>&6
14582 +echo "$as_me:$LINENO: checking for MouOpen" >&5
14583 +echo $ECHO_N "checking for MouOpen... $ECHO_C" >&6
14584 +if test "${ac_cv_func_MouOpen+set}" = set; then
14585 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14586  else
14587 -  cat > conftest.$ac_ext <<EOF
14588 -#line 4383 "configure"
14589 -#include "confdefs.h"
14590 +  cat >conftest.$ac_ext <<_ACEOF
14591 +#line $LINENO "configure"
14592 +/* confdefs.h.  */
14593 +_ACEOF
14594 +cat confdefs.h >>conftest.$ac_ext
14595 +cat >>conftest.$ac_ext <<_ACEOF
14596 +/* end confdefs.h.  */
14597  /* System header to define __stub macros and hopefully few prototypes,
14598 -    which can conflict with char MouOpen(); below.  */
14599 -#include <assert.h>
14600 +    which can conflict with char MouOpen (); below.
14601 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14602 +    <limits.h> exists even on freestanding compilers.  */
14603 +#ifdef __STDC__
14604 +# include <limits.h>
14605 +#else
14606 +# include <assert.h>
14607 +#endif
14608  /* Override any gcc2 internal prototype to avoid an error.  */
14609 +#ifdef __cplusplus
14610 +extern "C"
14611 +{
14612 +#endif
14613  /* We use char because int might match the return type of a gcc2
14614 -    builtin and then its argument prototype would still apply.  */
14615 -char MouOpen();
14616 -
14617 -int main() {
14618 -
14619 +   builtin and then its argument prototype would still apply.  */
14620 +char MouOpen ();
14621  /* The GNU C library defines this for functions which it implements
14622      to always fail with ENOSYS.  Some functions are actually named
14623      something starting with __ and the normal name is an alias.  */
14624  #if defined (__stub_MouOpen) || defined (__stub___MouOpen)
14625  choke me
14626  #else
14627 -MouOpen();
14628 +char (*f) () = MouOpen;
14629 +#endif
14630 +#ifdef __cplusplus
14631 +}
14632  #endif
14633  
14634 -; return 0; }
14635 -EOF
14636 -if { (eval echo configure:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14637 -  rm -rf conftest*
14638 -  eval "ac_cv_func_MouOpen=yes"
14639 +int
14640 +main ()
14641 +{
14642 +return f != MouOpen;
14643 +  ;
14644 +  return 0;
14645 +}
14646 +_ACEOF
14647 +rm -f conftest.$ac_objext conftest$ac_exeext
14648 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649 +  (eval $ac_link) 2>&5
14650 +  ac_status=$?
14651 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 +  (exit $ac_status); } &&
14653 +         { ac_try='test -s conftest$ac_exeext'
14654 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 +  (eval $ac_try) 2>&5
14656 +  ac_status=$?
14657 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 +  (exit $ac_status); }; }; then
14659 +  ac_cv_func_MouOpen=yes
14660  else
14661 -  echo "configure: failed program was:" >&5
14662 -  cat conftest.$ac_ext >&5
14663 -  rm -rf conftest*
14664 -  eval "ac_cv_func_MouOpen=no"
14665 +  echo "$as_me: failed program was:" >&5
14666 +sed 's/^/| /' conftest.$ac_ext >&5
14667 +
14668 +ac_cv_func_MouOpen=no
14669  fi
14670 -rm -f conftest*
14671 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14672  fi
14673 -
14674 -if eval "test \"`echo '$ac_cv_func_'MouOpen`\" = yes"; then
14675 -  echo "$ac_t""yes" 1>&6
14676 -  cat >> confdefs.h <<\EOF
14677 +echo "$as_me:$LINENO: result: $ac_cv_func_MouOpen" >&5
14678 +echo "${ECHO_T}$ac_cv_func_MouOpen" >&6
14679 +if test $ac_cv_func_MouOpen = yes; then
14680 +  cat >>confdefs.h <<\_ACEOF
14681  #define HAVE_MOUOPEN 1
14682 -EOF
14683 +_ACEOF
14684  
14685 -else
14686 -  echo "$ac_t""no" 1>&6
14687  fi
14688  
14689 -echo $ac_n "checking for _read_kbd""... $ac_c" 1>&6
14690 -echo "configure:4429: checking for _read_kbd" >&5
14691 -if eval "test \"`echo '$''{'ac_cv_func__read_kbd'+set}'`\" = set"; then
14692 -  echo $ac_n "(cached) $ac_c" 1>&6
14693 +echo "$as_me:$LINENO: checking for _read_kbd" >&5
14694 +echo $ECHO_N "checking for _read_kbd... $ECHO_C" >&6
14695 +if test "${ac_cv_func__read_kbd+set}" = set; then
14696 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14697  else
14698 -  cat > conftest.$ac_ext <<EOF
14699 -#line 4434 "configure"
14700 -#include "confdefs.h"
14701 +  cat >conftest.$ac_ext <<_ACEOF
14702 +#line $LINENO "configure"
14703 +/* confdefs.h.  */
14704 +_ACEOF
14705 +cat confdefs.h >>conftest.$ac_ext
14706 +cat >>conftest.$ac_ext <<_ACEOF
14707 +/* end confdefs.h.  */
14708  /* System header to define __stub macros and hopefully few prototypes,
14709 -    which can conflict with char _read_kbd(); below.  */
14710 -#include <assert.h>
14711 +    which can conflict with char _read_kbd (); below.
14712 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14713 +    <limits.h> exists even on freestanding compilers.  */
14714 +#ifdef __STDC__
14715 +# include <limits.h>
14716 +#else
14717 +# include <assert.h>
14718 +#endif
14719  /* Override any gcc2 internal prototype to avoid an error.  */
14720 +#ifdef __cplusplus
14721 +extern "C"
14722 +{
14723 +#endif
14724  /* We use char because int might match the return type of a gcc2
14725 -    builtin and then its argument prototype would still apply.  */
14726 -char _read_kbd();
14727 -
14728 -int main() {
14729 -
14730 +   builtin and then its argument prototype would still apply.  */
14731 +char _read_kbd ();
14732  /* The GNU C library defines this for functions which it implements
14733      to always fail with ENOSYS.  Some functions are actually named
14734      something starting with __ and the normal name is an alias.  */
14735  #if defined (__stub__read_kbd) || defined (__stub____read_kbd)
14736  choke me
14737  #else
14738 -_read_kbd();
14739 +char (*f) () = _read_kbd;
14740 +#endif
14741 +#ifdef __cplusplus
14742 +}
14743  #endif
14744  
14745 -; return 0; }
14746 -EOF
14747 -if { (eval echo configure:4457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14748 -  rm -rf conftest*
14749 -  eval "ac_cv_func__read_kbd=yes"
14750 +int
14751 +main ()
14752 +{
14753 +return f != _read_kbd;
14754 +  ;
14755 +  return 0;
14756 +}
14757 +_ACEOF
14758 +rm -f conftest.$ac_objext conftest$ac_exeext
14759 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14760 +  (eval $ac_link) 2>&5
14761 +  ac_status=$?
14762 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 +  (exit $ac_status); } &&
14764 +         { ac_try='test -s conftest$ac_exeext'
14765 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14766 +  (eval $ac_try) 2>&5
14767 +  ac_status=$?
14768 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 +  (exit $ac_status); }; }; then
14770 +  ac_cv_func__read_kbd=yes
14771  else
14772 -  echo "configure: failed program was:" >&5
14773 -  cat conftest.$ac_ext >&5
14774 -  rm -rf conftest*
14775 -  eval "ac_cv_func__read_kbd=no"
14776 +  echo "$as_me: failed program was:" >&5
14777 +sed 's/^/| /' conftest.$ac_ext >&5
14778 +
14779 +ac_cv_func__read_kbd=no
14780  fi
14781 -rm -f conftest*
14782 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14783  fi
14784 -
14785 -if eval "test \"`echo '$ac_cv_func_'_read_kbd`\" = yes"; then
14786 -  echo "$ac_t""yes" 1>&6
14787 -  cat >> confdefs.h <<\EOF
14788 +echo "$as_me:$LINENO: result: $ac_cv_func__read_kbd" >&5
14789 +echo "${ECHO_T}$ac_cv_func__read_kbd" >&6
14790 +if test $ac_cv_func__read_kbd = yes; then
14791 +  cat >>confdefs.h <<\_ACEOF
14792  #define HAVE_READ_KBD 1
14793 -EOF
14794 +_ACEOF
14795  
14796 -else
14797 -  echo "$ac_t""no" 1>&6
14798  fi
14799  
14800  
14801 -echo $ac_n "checking for XFree for OS/2""... $ac_c" 1>&6
14802 -echo "configure:4481: checking for XFree for OS/2" >&5
14803 -if eval "test \"`echo '$''{'ac_cv_have_x2'+set}'`\" = set"; then
14804 -  echo $ac_n "(cached) $ac_c" 1>&6
14805 +echo "$as_me:$LINENO: checking for XFree for OS/2" >&5
14806 +echo $ECHO_N "checking for XFree for OS/2... $ECHO_C" >&6
14807 +if test "${ac_cv_have_x2+set}" = set; then
14808 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14809  else
14810    CPPFLAGS_X="$CPPFLAGS"
14811         LIBS_X="$LIBS"
14812 @@ -4487,118 +11820,171 @@
14813         if test -n "$X11ROOT"; then
14814                 CPPFLAGS="$CPPFLAGS_X -I$X11ROOT/XFree86/include"
14815                 LIBS="$LIBS_X -L$X11ROOT/XFree86/lib -lxf86_gcc"
14816 -               cat > conftest.$ac_ext <<EOF
14817 -#line 4492 "configure"
14818 -#include "confdefs.h"
14819 +               cat >conftest.$ac_ext <<_ACEOF
14820 +#line $LINENO "configure"
14821 +/* confdefs.h.  */
14822 +_ACEOF
14823 +cat confdefs.h >>conftest.$ac_ext
14824 +cat >>conftest.$ac_ext <<_ACEOF
14825 +/* end confdefs.h.  */
14826  #include <pty.h>
14827 -int main() {
14828 +int
14829 +main ()
14830 +{
14831  struct winsize win;ptioctl(1, TIOCGWINSZ, &win)
14832 -; return 0; }
14833 -EOF
14834 -if { (eval echo configure:4499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14835 -  rm -rf conftest*
14836 +  ;
14837 +  return 0;
14838 +}
14839 +_ACEOF
14840 +rm -f conftest.$ac_objext conftest$ac_exeext
14841 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14842 +  (eval $ac_link) 2>&5
14843 +  ac_status=$?
14844 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 +  (exit $ac_status); } &&
14846 +         { ac_try='test -s conftest$ac_exeext'
14847 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848 +  (eval $ac_try) 2>&5
14849 +  ac_status=$?
14850 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 +  (exit $ac_status); }; }; then
14852    ac_cv_have_x2=xf86_gcc
14853  else
14854 -  echo "configure: failed program was:" >&5
14855 -  cat conftest.$ac_ext >&5
14856 -  rm -rf conftest*
14857 -  ac_cv_have_x2=no
14858 +  echo "$as_me: failed program was:" >&5
14859 +sed 's/^/| /' conftest.$ac_ext >&5
14860 +
14861 +ac_cv_have_x2=no
14862  fi
14863 -rm -f conftest*
14864 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14865                 if test "$ac_cv_have_x2" = no; then
14866                         LIBS="$LIBS_X -L$X11ROOT/XFree86/lib -lxf86"
14867 -                       cat > conftest.$ac_ext <<EOF
14868 -#line 4512 "configure"
14869 -#include "confdefs.h"
14870 +                       cat >conftest.$ac_ext <<_ACEOF
14871 +#line $LINENO "configure"
14872 +/* confdefs.h.  */
14873 +_ACEOF
14874 +cat confdefs.h >>conftest.$ac_ext
14875 +cat >>conftest.$ac_ext <<_ACEOF
14876 +/* end confdefs.h.  */
14877  #include <pty.h>
14878 -int main() {
14879 +int
14880 +main ()
14881 +{
14882  struct winsize win;ptioctl(1, TIOCGWINSZ, &win)
14883 -; return 0; }
14884 -EOF
14885 -if { (eval echo configure:4519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14886 -  rm -rf conftest*
14887 +  ;
14888 +  return 0;
14889 +}
14890 +_ACEOF
14891 +rm -f conftest.$ac_objext conftest$ac_exeext
14892 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14893 +  (eval $ac_link) 2>&5
14894 +  ac_status=$?
14895 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 +  (exit $ac_status); } &&
14897 +         { ac_try='test -s conftest$ac_exeext'
14898 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 +  (eval $ac_try) 2>&5
14900 +  ac_status=$?
14901 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 +  (exit $ac_status); }; }; then
14903    ac_cv_have_x2=xf86
14904  else
14905 -  echo "configure: failed program was:" >&5
14906 -  cat conftest.$ac_ext >&5
14907 -  rm -rf conftest*
14908 -  ac_cv_have_x2=no
14909 +  echo "$as_me: failed program was:" >&5
14910 +sed 's/^/| /' conftest.$ac_ext >&5
14911 +
14912 +ac_cv_have_x2=no
14913  fi
14914 -rm -f conftest*
14915 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14916                 fi
14917         fi
14918         CPPFLAGS="$CPPFLAGS_X"
14919         LIBS="$LIBS_X"
14920  
14921  fi
14922 -
14923 -echo "$ac_t""$ac_cv_have_x2" 1>&6
14924 +echo "$as_me:$LINENO: result: $ac_cv_have_x2" >&5
14925 +echo "${ECHO_T}$ac_cv_have_x2" >&6
14926  if test "$ac_cv_have_x2" != no; then
14927         CPPFLAGS="$CPPFLAGS -I$X11ROOT/XFree86/include"
14928         LIBS="$LIBS -L$X11ROOT/XFree86/lib -l$ac_cv_have_x2"
14929 -       cat >> confdefs.h <<\EOF
14930 +       cat >>confdefs.h <<\_ACEOF
14931  #define X2 1
14932 -EOF
14933 +_ACEOF
14934  
14935  fi
14936  
14937 -echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14938 -echo "configure:4547: checking for dlopen in -ldl" >&5
14939 -ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
14940 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14941 -  echo $ac_n "(cached) $ac_c" 1>&6
14942 +
14943 +echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14944 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14945 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14946 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14947  else
14948 -  ac_save_LIBS="$LIBS"
14949 +  ac_check_lib_save_LIBS=$LIBS
14950  LIBS="-ldl  $LIBS"
14951 -cat > conftest.$ac_ext <<EOF
14952 -#line 4555 "configure"
14953 -#include "confdefs.h"
14954 +cat >conftest.$ac_ext <<_ACEOF
14955 +#line $LINENO "configure"
14956 +/* confdefs.h.  */
14957 +_ACEOF
14958 +cat confdefs.h >>conftest.$ac_ext
14959 +cat >>conftest.$ac_ext <<_ACEOF
14960 +/* end confdefs.h.  */
14961 +
14962  /* Override any gcc2 internal prototype to avoid an error.  */
14963 +#ifdef __cplusplus
14964 +extern "C"
14965 +#endif
14966  /* We use char because int might match the return type of a gcc2
14967 -    builtin and then its argument prototype would still apply.  */
14968 -char dlopen();
14969 -
14970 -int main() {
14971 -dlopen()
14972 -; return 0; }
14973 -EOF
14974 -if { (eval echo configure:4566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14975 -  rm -rf conftest*
14976 -  eval "ac_cv_lib_$ac_lib_var=yes"
14977 +   builtin and then its argument prototype would still apply.  */
14978 +char dlopen ();
14979 +int
14980 +main ()
14981 +{
14982 +dlopen ();
14983 +  ;
14984 +  return 0;
14985 +}
14986 +_ACEOF
14987 +rm -f conftest.$ac_objext conftest$ac_exeext
14988 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14989 +  (eval $ac_link) 2>&5
14990 +  ac_status=$?
14991 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 +  (exit $ac_status); } &&
14993 +         { ac_try='test -s conftest$ac_exeext'
14994 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995 +  (eval $ac_try) 2>&5
14996 +  ac_status=$?
14997 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 +  (exit $ac_status); }; }; then
14999 +  ac_cv_lib_dl_dlopen=yes
15000  else
15001 -  echo "configure: failed program was:" >&5
15002 -  cat conftest.$ac_ext >&5
15003 -  rm -rf conftest*
15004 -  eval "ac_cv_lib_$ac_lib_var=no"
15005 -fi
15006 -rm -f conftest*
15007 -LIBS="$ac_save_LIBS"
15008 +  echo "$as_me: failed program was:" >&5
15009 +sed 's/^/| /' conftest.$ac_ext >&5
15010  
15011 +ac_cv_lib_dl_dlopen=no
15012  fi
15013 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15014 -  echo "$ac_t""yes" 1>&6
15015 -    ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
15016 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
15017 -  cat >> confdefs.h <<EOF
15018 -#define $ac_tr_lib 1
15019 -EOF
15020 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15021 +LIBS=$ac_check_lib_save_LIBS
15022 +fi
15023 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15024 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15025 +if test $ac_cv_lib_dl_dlopen = yes; then
15026 +  cat >>confdefs.h <<_ACEOF
15027 +#define HAVE_LIBDL 1
15028 +_ACEOF
15029  
15030    LIBS="-ldl $LIBS"
15031  
15032 -else
15033 -  echo "$ac_t""no" 1>&6
15034  fi
15035  
15036  
15037  #ifdef HAVE_SSL
15038 +
15039  # Check whether --with-ssl or --without-ssl was given.
15040  if test "${with_ssl+set}" = set; then
15041    withval="$with_ssl"
15042    if test "$withval" = no; then disable_ssl=yes; else ssld="$withval"; fi
15043 -fi
15044 -
15045 -echo $ac_n "checking for OpenSSL""... $ac_c" 1>&6
15046 -echo "configure:4602: checking for OpenSSL" >&5
15047 +fi;
15048 +echo "$as_me:$LINENO: checking for OpenSSL" >&5
15049 +echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15050  CPPFLAGS_X="$CPPFLAGS"
15051  LIBS_X="$LIBS"
15052  cf_result=no
15053 @@ -4611,762 +11997,1651 @@
15054                         else
15055                                 LIBS="-lssl -lcrypto $LIBS_X"
15056                         fi
15057 -                       cat > conftest.$ac_ext <<EOF
15058 -#line 4616 "configure"
15059 -#include "confdefs.h"
15060 +                       cat >conftest.$ac_ext <<_ACEOF
15061 +#line $LINENO "configure"
15062 +/* confdefs.h.  */
15063 +_ACEOF
15064 +cat confdefs.h >>conftest.$ac_ext
15065 +cat >>conftest.$ac_ext <<_ACEOF
15066 +/* end confdefs.h.  */
15067  #include <openssl/ssl.h>
15068 -int main() {
15069 +int
15070 +main ()
15071 +{
15072  OpenSSL_add_all_algorithms()
15073 -; return 0; }
15074 -EOF
15075 -if { (eval echo configure:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15076 -  rm -rf conftest*
15077 +  ;
15078 +  return 0;
15079 +}
15080 +_ACEOF
15081 +rm -f conftest.$ac_objext conftest$ac_exeext
15082 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15083 +  (eval $ac_link) 2>&5
15084 +  ac_status=$?
15085 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 +  (exit $ac_status); } &&
15087 +         { ac_try='test -s conftest$ac_exeext'
15088 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15089 +  (eval $ac_try) 2>&5
15090 +  ac_status=$?
15091 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 +  (exit $ac_status); }; }; then
15093    cf_result=yes
15094  else
15095 -  echo "configure: failed program was:" >&5
15096 -  cat conftest.$ac_ext >&5
15097 -  rm -rf conftest*
15098 -  cf_result=no
15099 +  echo "$as_me: failed program was:" >&5
15100 +sed 's/^/| /' conftest.$ac_ext >&5
15101 +
15102 +cf_result=no
15103  fi
15104 -rm -f conftest*
15105 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15106                         if test "$cf_result" != yes; then
15107 -                               cat > conftest.$ac_ext <<EOF
15108 -#line 4635 "configure"
15109 -#include "confdefs.h"
15110 +                               cat >conftest.$ac_ext <<_ACEOF
15111 +#line $LINENO "configure"
15112 +/* confdefs.h.  */
15113 +_ACEOF
15114 +cat confdefs.h >>conftest.$ac_ext
15115 +cat >>conftest.$ac_ext <<_ACEOF
15116 +/* end confdefs.h.  */
15117  #include <openssl/ssl.h>
15118 -int main() {
15119 +int
15120 +main ()
15121 +{
15122  SSLeay_add_ssl_algorithms()
15123 -; return 0; }
15124 -EOF
15125 -if { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15126 -  rm -rf conftest*
15127 +  ;
15128 +  return 0;
15129 +}
15130 +_ACEOF
15131 +rm -f conftest.$ac_objext conftest$ac_exeext
15132 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15133 +  (eval $ac_link) 2>&5
15134 +  ac_status=$?
15135 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 +  (exit $ac_status); } &&
15137 +         { ac_try='test -s conftest$ac_exeext'
15138 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 +  (eval $ac_try) 2>&5
15140 +  ac_status=$?
15141 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 +  (exit $ac_status); }; }; then
15143    cf_result=yes
15144  else
15145 -  echo "configure: failed program was:" >&5
15146 -  cat conftest.$ac_ext >&5
15147 -  rm -rf conftest*
15148 -  cf_result=no
15149 +  echo "$as_me: failed program was:" >&5
15150 +sed 's/^/| /' conftest.$ac_ext >&5
15151 +
15152 +cf_result=no
15153  fi
15154 -rm -f conftest*
15155 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15156                         fi
15157                 fi
15158         done
15159  
15160         if test "$cf_result" != yes; then
15161                 if test "$withval" = yes; then
15162 -                       { echo "configure: error: "OpenSSL not found"" 1>&2; exit 1; }
15163 +                       { { echo "$as_me:$LINENO: error: \"OpenSSL not found\"" >&5
15164 +echo "$as_me: error: \"OpenSSL not found\"" >&2;}
15165 +   { (exit 1); exit 1; }; }
15166                 fi
15167                 CPPFLAGS="$CPPFLAGS_X"
15168                 LIBS="$LIBS_X"
15169         else
15170 -               cat >> confdefs.h <<\EOF
15171 +               cat >>confdefs.h <<\_ACEOF
15172  #define HAVE_SSL 1
15173 -EOF
15174 +_ACEOF
15175  
15176         fi
15177  fi
15178 -echo "$ac_t""$cf_result" 1>&6
15179 +echo "$as_me:$LINENO: result: $cf_result" >&5
15180 +echo "${ECHO_T}$cf_result" >&6
15181  cf_have_ssl=$cf_result;
15182  #endif
15183  
15184  cf_have_atheos=no
15185  
15186  if test "$cf_use_graphics" = yes; then
15187 -       cat >> confdefs.h <<\EOF
15188 +       cat >>confdefs.h <<\_ACEOF
15189  #define G 1
15190 -EOF
15191 +_ACEOF
15192  
15193  
15194  #              OpenBSD needs it, but gcc-3.1 doens't work with it !!!
15195  #      CPPFLAGS="$CPPFLAGS -I/usr/local/include"
15196  #      LDFLAGS="$LDFLAGS -L/usr/local/lib"
15197 -       echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
15198 -echo "configure:4685: checking for inflate in -lz" >&5
15199 -ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
15200 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15201 -  echo $ac_n "(cached) $ac_c" 1>&6
15202 +
15203 +echo "$as_me:$LINENO: checking for inflate in -lz" >&5
15204 +echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
15205 +if test "${ac_cv_lib_z_inflate+set}" = set; then
15206 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15207  else
15208 -  ac_save_LIBS="$LIBS"
15209 +  ac_check_lib_save_LIBS=$LIBS
15210  LIBS="-lz  $LIBS"
15211 -cat > conftest.$ac_ext <<EOF
15212 -#line 4693 "configure"
15213 -#include "confdefs.h"
15214 +cat >conftest.$ac_ext <<_ACEOF
15215 +#line $LINENO "configure"
15216 +/* confdefs.h.  */
15217 +_ACEOF
15218 +cat confdefs.h >>conftest.$ac_ext
15219 +cat >>conftest.$ac_ext <<_ACEOF
15220 +/* end confdefs.h.  */
15221 +
15222  /* Override any gcc2 internal prototype to avoid an error.  */
15223 +#ifdef __cplusplus
15224 +extern "C"
15225 +#endif
15226  /* We use char because int might match the return type of a gcc2
15227 -    builtin and then its argument prototype would still apply.  */
15228 -char inflate();
15229 -
15230 -int main() {
15231 -inflate()
15232 -; return 0; }
15233 -EOF
15234 -if { (eval echo configure:4704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15235 -  rm -rf conftest*
15236 -  eval "ac_cv_lib_$ac_lib_var=yes"
15237 +   builtin and then its argument prototype would still apply.  */
15238 +char inflate ();
15239 +int
15240 +main ()
15241 +{
15242 +inflate ();
15243 +  ;
15244 +  return 0;
15245 +}
15246 +_ACEOF
15247 +rm -f conftest.$ac_objext conftest$ac_exeext
15248 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15249 +  (eval $ac_link) 2>&5
15250 +  ac_status=$?
15251 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 +  (exit $ac_status); } &&
15253 +         { ac_try='test -s conftest$ac_exeext'
15254 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255 +  (eval $ac_try) 2>&5
15256 +  ac_status=$?
15257 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 +  (exit $ac_status); }; }; then
15259 +  ac_cv_lib_z_inflate=yes
15260  else
15261 -  echo "configure: failed program was:" >&5
15262 -  cat conftest.$ac_ext >&5
15263 -  rm -rf conftest*
15264 -  eval "ac_cv_lib_$ac_lib_var=no"
15265 -fi
15266 -rm -f conftest*
15267 -LIBS="$ac_save_LIBS"
15268 +  echo "$as_me: failed program was:" >&5
15269 +sed 's/^/| /' conftest.$ac_ext >&5
15270  
15271 +ac_cv_lib_z_inflate=no
15272  fi
15273 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15274 -  echo "$ac_t""yes" 1>&6
15275 -    ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
15276 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
15277 -  cat >> confdefs.h <<EOF
15278 -#define $ac_tr_lib 1
15279 -EOF
15280 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15281 +LIBS=$ac_check_lib_save_LIBS
15282 +fi
15283 +echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
15284 +echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
15285 +if test $ac_cv_lib_z_inflate = yes; then
15286 +  cat >>confdefs.h <<_ACEOF
15287 +#define HAVE_LIBZ 1
15288 +_ACEOF
15289  
15290    LIBS="-lz $LIBS"
15291  
15292 -else
15293 -  echo "$ac_t""no" 1>&6
15294  fi
15295  
15296 -       for ac_hdr in png.h libpng/png.h
15297 +
15298 +
15299 +for ac_header in png.h libpng/png.h
15300  do
15301 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15302 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15303 -echo "configure:4735: checking for $ac_hdr" >&5
15304 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15305 -  echo $ac_n "(cached) $ac_c" 1>&6
15306 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15307 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
15308 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
15309 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15310 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
15311 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15312 +fi
15313 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15314 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15315  else
15316 -  cat > conftest.$ac_ext <<EOF
15317 -#line 4740 "configure"
15318 -#include "confdefs.h"
15319 -#include <$ac_hdr>
15320 -EOF
15321 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15322 -{ (eval echo configure:4745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15323 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15324 -if test -z "$ac_err"; then
15325 -  rm -rf conftest*
15326 -  eval "ac_cv_header_$ac_safe=yes"
15327 +  # Is the header compilable?
15328 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
15329 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15330 +cat >conftest.$ac_ext <<_ACEOF
15331 +#line $LINENO "configure"
15332 +/* confdefs.h.  */
15333 +_ACEOF
15334 +cat confdefs.h >>conftest.$ac_ext
15335 +cat >>conftest.$ac_ext <<_ACEOF
15336 +/* end confdefs.h.  */
15337 +$ac_includes_default
15338 +#include <$ac_header>
15339 +_ACEOF
15340 +rm -f conftest.$ac_objext
15341 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15342 +  (eval $ac_compile) 2>&5
15343 +  ac_status=$?
15344 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 +  (exit $ac_status); } &&
15346 +         { ac_try='test -s conftest.$ac_objext'
15347 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348 +  (eval $ac_try) 2>&5
15349 +  ac_status=$?
15350 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 +  (exit $ac_status); }; }; then
15352 +  ac_header_compiler=yes
15353  else
15354 -  echo "$ac_err" >&5
15355 -  echo "configure: failed program was:" >&5
15356 -  cat conftest.$ac_ext >&5
15357 -  rm -rf conftest*
15358 -  eval "ac_cv_header_$ac_safe=no"
15359 +  echo "$as_me: failed program was:" >&5
15360 +sed 's/^/| /' conftest.$ac_ext >&5
15361 +
15362 +ac_header_compiler=no
15363  fi
15364 -rm -f conftest*
15365 +rm -f conftest.$ac_objext conftest.$ac_ext
15366 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15367 +echo "${ECHO_T}$ac_header_compiler" >&6
15368 +
15369 +# Is the header present?
15370 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
15371 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15372 +cat >conftest.$ac_ext <<_ACEOF
15373 +#line $LINENO "configure"
15374 +/* confdefs.h.  */
15375 +_ACEOF
15376 +cat confdefs.h >>conftest.$ac_ext
15377 +cat >>conftest.$ac_ext <<_ACEOF
15378 +/* end confdefs.h.  */
15379 +#include <$ac_header>
15380 +_ACEOF
15381 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15382 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15383 +  ac_status=$?
15384 +  grep -v '^ *+' conftest.er1 >conftest.err
15385 +  rm -f conftest.er1
15386 +  cat conftest.err >&5
15387 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 +  (exit $ac_status); } >/dev/null; then
15389 +  if test -s conftest.err; then
15390 +    ac_cpp_err=$ac_c_preproc_warn_flag
15391 +  else
15392 +    ac_cpp_err=
15393 +  fi
15394 +else
15395 +  ac_cpp_err=yes
15396  fi
15397 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15398 -  echo "$ac_t""yes" 1>&6
15399 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15400 -  cat >> confdefs.h <<EOF
15401 -#define $ac_tr_hdr 1
15402 -EOF
15403
15404 +if test -z "$ac_cpp_err"; then
15405 +  ac_header_preproc=yes
15406  else
15407 -  echo "$ac_t""no" 1>&6
15408 +  echo "$as_me: failed program was:" >&5
15409 +sed 's/^/| /' conftest.$ac_ext >&5
15410 +
15411 +  ac_header_preproc=no
15412  fi
15413 +rm -f conftest.err conftest.$ac_ext
15414 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15415 +echo "${ECHO_T}$ac_header_preproc" >&6
15416 +
15417 +# So?  What about this header?
15418 +case $ac_header_compiler:$ac_header_preproc in
15419 +  yes:no )
15420 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15421 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15422 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15423 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15424 +    (
15425 +      cat <<\_ASBOX
15426 +## ------------------------------------ ##
15427 +## Report this to bug-autoconf@gnu.org. ##
15428 +## ------------------------------------ ##
15429 +_ASBOX
15430 +    ) |
15431 +      sed "s/^/$as_me: WARNING:     /" >&2
15432 +    ;;
15433 +  no:yes )
15434 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15435 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15436 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15437 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15438 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15439 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15440 +    (
15441 +      cat <<\_ASBOX
15442 +## ------------------------------------ ##
15443 +## Report this to bug-autoconf@gnu.org. ##
15444 +## ------------------------------------ ##
15445 +_ASBOX
15446 +    ) |
15447 +      sed "s/^/$as_me: WARNING:     /" >&2
15448 +    ;;
15449 +esac
15450 +echo "$as_me:$LINENO: checking for $ac_header" >&5
15451 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15452 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
15453 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15454 +else
15455 +  eval "$as_ac_Header=$ac_header_preproc"
15456 +fi
15457 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15458 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15459 +
15460 +fi
15461 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
15462 +  cat >>confdefs.h <<_ACEOF
15463 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15464 +_ACEOF
15465 +
15466 +fi
15467 +
15468  done
15469  
15470 -       echo $ac_n "checking for png_create_info_struct in -lpng""... $ac_c" 1>&6
15471 -echo "configure:4772: checking for png_create_info_struct in -lpng" >&5
15472 -ac_lib_var=`echo png'_'png_create_info_struct | sed 'y%./+-%__p_%'`
15473 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15474 -  echo $ac_n "(cached) $ac_c" 1>&6
15475 +
15476 +echo "$as_me:$LINENO: checking for png_create_info_struct in -lpng" >&5
15477 +echo $ECHO_N "checking for png_create_info_struct in -lpng... $ECHO_C" >&6
15478 +if test "${ac_cv_lib_png_png_create_info_struct+set}" = set; then
15479 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15480  else
15481 -  ac_save_LIBS="$LIBS"
15482 +  ac_check_lib_save_LIBS=$LIBS
15483  LIBS="-lpng  $LIBS"
15484 -cat > conftest.$ac_ext <<EOF
15485 -#line 4780 "configure"
15486 -#include "confdefs.h"
15487 +cat >conftest.$ac_ext <<_ACEOF
15488 +#line $LINENO "configure"
15489 +/* confdefs.h.  */
15490 +_ACEOF
15491 +cat confdefs.h >>conftest.$ac_ext
15492 +cat >>conftest.$ac_ext <<_ACEOF
15493 +/* end confdefs.h.  */
15494 +
15495  /* Override any gcc2 internal prototype to avoid an error.  */
15496 +#ifdef __cplusplus
15497 +extern "C"
15498 +#endif
15499  /* We use char because int might match the return type of a gcc2
15500 -    builtin and then its argument prototype would still apply.  */
15501 -char png_create_info_struct();
15502 -
15503 -int main() {
15504 -png_create_info_struct()
15505 -; return 0; }
15506 -EOF
15507 -if { (eval echo configure:4791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15508 -  rm -rf conftest*
15509 -  eval "ac_cv_lib_$ac_lib_var=yes"
15510 +   builtin and then its argument prototype would still apply.  */
15511 +char png_create_info_struct ();
15512 +int
15513 +main ()
15514 +{
15515 +png_create_info_struct ();
15516 +  ;
15517 +  return 0;
15518 +}
15519 +_ACEOF
15520 +rm -f conftest.$ac_objext conftest$ac_exeext
15521 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15522 +  (eval $ac_link) 2>&5
15523 +  ac_status=$?
15524 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 +  (exit $ac_status); } &&
15526 +         { ac_try='test -s conftest$ac_exeext'
15527 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 +  (eval $ac_try) 2>&5
15529 +  ac_status=$?
15530 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 +  (exit $ac_status); }; }; then
15532 +  ac_cv_lib_png_png_create_info_struct=yes
15533  else
15534 -  echo "configure: failed program was:" >&5
15535 -  cat conftest.$ac_ext >&5
15536 -  rm -rf conftest*
15537 -  eval "ac_cv_lib_$ac_lib_var=no"
15538 -fi
15539 -rm -f conftest*
15540 -LIBS="$ac_save_LIBS"
15541 +  echo "$as_me: failed program was:" >&5
15542 +sed 's/^/| /' conftest.$ac_ext >&5
15543  
15544 +ac_cv_lib_png_png_create_info_struct=no
15545  fi
15546 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15547 -  echo "$ac_t""yes" 1>&6
15548 -    ac_tr_lib=HAVE_LIB`echo png | sed -e 's/[^a-zA-Z0-9_]/_/g' \
15549 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
15550 -  cat >> confdefs.h <<EOF
15551 -#define $ac_tr_lib 1
15552 -EOF
15553 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15554 +LIBS=$ac_check_lib_save_LIBS
15555 +fi
15556 +echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_info_struct" >&5
15557 +echo "${ECHO_T}$ac_cv_lib_png_png_create_info_struct" >&6
15558 +if test $ac_cv_lib_png_png_create_info_struct = yes; then
15559 +  cat >>confdefs.h <<_ACEOF
15560 +#define HAVE_LIBPNG 1
15561 +_ACEOF
15562  
15563    LIBS="-lpng $LIBS"
15564  
15565 -else
15566 -  echo "$ac_t""no" 1>&6
15567  fi
15568  
15569         if test "$ac_cv_header_png_h" != yes && test "$ac_cv_header_libpng_png_h" != yes || test "$ac_cv_lib_png_png_create_info_struct" != yes; then
15570 -               { echo "configure: error: You need libpng to compile Links in graphics mode" 1>&2; exit 1; }
15571 +               { { echo "$as_me:$LINENO: error: You need libpng to compile Links in graphics mode" >&5
15572 +echo "$as_me: error: You need libpng to compile Links in graphics mode" >&2;}
15573 +   { (exit 1); exit 1; }; }
15574         fi
15575  
15576 -       for ac_func in png_set_rgb_to_gray
15577 +
15578 +for ac_func in png_set_rgb_to_gray
15579  do
15580 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15581 -echo "configure:4825: checking for $ac_func" >&5
15582 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15583 -  echo $ac_n "(cached) $ac_c" 1>&6
15584 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15585 +echo "$as_me:$LINENO: checking for $ac_func" >&5
15586 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15587 +if eval "test \"\${$as_ac_var+set}\" = set"; then
15588 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15589  else
15590 -  cat > conftest.$ac_ext <<EOF
15591 -#line 4830 "configure"
15592 -#include "confdefs.h"
15593 +  cat >conftest.$ac_ext <<_ACEOF
15594 +#line $LINENO "configure"
15595 +/* confdefs.h.  */
15596 +_ACEOF
15597 +cat confdefs.h >>conftest.$ac_ext
15598 +cat >>conftest.$ac_ext <<_ACEOF
15599 +/* end confdefs.h.  */
15600  /* System header to define __stub macros and hopefully few prototypes,
15601 -    which can conflict with char $ac_func(); below.  */
15602 -#include <assert.h>
15603 +    which can conflict with char $ac_func (); below.
15604 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15605 +    <limits.h> exists even on freestanding compilers.  */
15606 +#ifdef __STDC__
15607 +# include <limits.h>
15608 +#else
15609 +# include <assert.h>
15610 +#endif
15611  /* Override any gcc2 internal prototype to avoid an error.  */
15612 +#ifdef __cplusplus
15613 +extern "C"
15614 +{
15615 +#endif
15616  /* We use char because int might match the return type of a gcc2
15617 -    builtin and then its argument prototype would still apply.  */
15618 -char $ac_func();
15619 -
15620 -int main() {
15621 -
15622 +   builtin and then its argument prototype would still apply.  */
15623 +char $ac_func ();
15624  /* The GNU C library defines this for functions which it implements
15625      to always fail with ENOSYS.  Some functions are actually named
15626      something starting with __ and the normal name is an alias.  */
15627  #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15628  choke me
15629  #else
15630 -$ac_func();
15631 +char (*f) () = $ac_func;
15632 +#endif
15633 +#ifdef __cplusplus
15634 +}
15635  #endif
15636  
15637 -; return 0; }
15638 -EOF
15639 -if { (eval echo configure:4853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15640 -  rm -rf conftest*
15641 -  eval "ac_cv_func_$ac_func=yes"
15642 +int
15643 +main ()
15644 +{
15645 +return f != $ac_func;
15646 +  ;
15647 +  return 0;
15648 +}
15649 +_ACEOF
15650 +rm -f conftest.$ac_objext conftest$ac_exeext
15651 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15652 +  (eval $ac_link) 2>&5
15653 +  ac_status=$?
15654 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 +  (exit $ac_status); } &&
15656 +         { ac_try='test -s conftest$ac_exeext'
15657 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 +  (eval $ac_try) 2>&5
15659 +  ac_status=$?
15660 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 +  (exit $ac_status); }; }; then
15662 +  eval "$as_ac_var=yes"
15663  else
15664 -  echo "configure: failed program was:" >&5
15665 -  cat conftest.$ac_ext >&5
15666 -  rm -rf conftest*
15667 -  eval "ac_cv_func_$ac_func=no"
15668 +  echo "$as_me: failed program was:" >&5
15669 +sed 's/^/| /' conftest.$ac_ext >&5
15670 +
15671 +eval "$as_ac_var=no"
15672  fi
15673 -rm -f conftest*
15674 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15675  fi
15676 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15677 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15678 +if test `eval echo '${'$as_ac_var'}'` = yes; then
15679 +  cat >>confdefs.h <<_ACEOF
15680 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15681 +_ACEOF
15682  
15683 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15684 -  echo "$ac_t""yes" 1>&6
15685 -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15686 -  cat >> confdefs.h <<EOF
15687 -#define $ac_tr_func 1
15688 -EOF
15689
15690 -else
15691 -  echo "$ac_t""no" 1>&6
15692  fi
15693  done
15694  
15695  
15696 -       echo $ac_n "checking if you can include both setjmp.h and png.h""... $ac_c" 1>&6
15697 -echo "configure:4879: checking if you can include both setjmp.h and png.h" >&5
15698 -if eval "test \"`echo '$''{'ac_cv_include_setjmp_png'+set}'`\" = set"; then
15699 -  echo $ac_n "(cached) $ac_c" 1>&6
15700 +       echo "$as_me:$LINENO: checking if you can include both setjmp.h and png.h" >&5
15701 +echo $ECHO_N "checking if you can include both setjmp.h and png.h... $ECHO_C" >&6
15702 +if test "${ac_cv_include_setjmp_png+set}" = set; then
15703 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15704  else
15705 -  cat > conftest.$ac_ext <<EOF
15706 -#line 4884 "configure"
15707 -#include "confdefs.h"
15708 +  cat >conftest.$ac_ext <<_ACEOF
15709 +#line $LINENO "configure"
15710 +/* confdefs.h.  */
15711 +_ACEOF
15712 +cat confdefs.h >>conftest.$ac_ext
15713 +cat >>conftest.$ac_ext <<_ACEOF
15714 +/* end confdefs.h.  */
15715  #include <setjmp.h>
15716                 #include <png.h>
15717 -int main() {
15718 +int
15719 +main ()
15720 +{
15721  jmp_buf bla;
15722 -; return 0; }
15723 -EOF
15724 -if { (eval echo configure:4892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15725 -  rm -rf conftest*
15726 +  ;
15727 +  return 0;
15728 +}
15729 +_ACEOF
15730 +rm -f conftest.$ac_objext
15731 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15732 +  (eval $ac_compile) 2>&5
15733 +  ac_status=$?
15734 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 +  (exit $ac_status); } &&
15736 +         { ac_try='test -s conftest.$ac_objext'
15737 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 +  (eval $ac_try) 2>&5
15739 +  ac_status=$?
15740 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 +  (exit $ac_status); }; }; then
15742    ac_cv_include_setjmp_png=yes
15743  else
15744 -  echo "configure: failed program was:" >&5
15745 -  cat conftest.$ac_ext >&5
15746 -  rm -rf conftest*
15747 -  ac_cv_include_setjmp_png=no
15748 -fi
15749 -rm -f conftest*
15750 -       
15751 +  echo "$as_me: failed program was:" >&5
15752 +sed 's/^/| /' conftest.$ac_ext >&5
15753 +
15754 +ac_cv_include_setjmp_png=no
15755  fi
15756 +rm -f conftest.$ac_objext conftest.$ac_ext
15757  
15758 -echo "$ac_t""$ac_cv_include_setjmp_png" 1>&6
15759 +fi
15760 +echo "$as_me:$LINENO: result: $ac_cv_include_setjmp_png" >&5
15761 +echo "${ECHO_T}$ac_cv_include_setjmp_png" >&6
15762  
15763         if test "$ac_cv_include_setjmp_png" != yes; then
15764 -               cat >> confdefs.h <<\EOF
15765 +               cat >>confdefs.h <<\_ACEOF
15766  #define DONT_INCLUDE_SETJMP 1
15767 -EOF
15768 +_ACEOF
15769  
15770         fi
15771  
15772 +
15773  # Check whether --with-libjpeg or --without-libjpeg was given.
15774  if test "${with_libjpeg+set}" = set; then
15775    withval="$with_libjpeg"
15776    if test "$withval" = no; then disable_jpeg=yes; else disable_jpeg=no; fi
15777 -fi
15778 -
15779 +fi;
15780         cf_have_jpeg=no
15781  if test "$disable_jpeg" != yes ; then
15782 -       for ac_hdr in jpeglib.h
15783 +
15784 +for ac_header in jpeglib.h
15785  do
15786 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15787 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15788 -echo "configure:4926: checking for $ac_hdr" >&5
15789 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15790 -  echo $ac_n "(cached) $ac_c" 1>&6
15791 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15792 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
15793 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
15794 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15795 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
15796 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15797 +fi
15798 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15799 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15800  else
15801 -  cat > conftest.$ac_ext <<EOF
15802 -#line 4931 "configure"
15803 -#include "confdefs.h"
15804 -#include <$ac_hdr>
15805 -EOF
15806 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15807 -{ (eval echo configure:4936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15808 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15809 -if test -z "$ac_err"; then
15810 -  rm -rf conftest*
15811 -  eval "ac_cv_header_$ac_safe=yes"
15812 +  # Is the header compilable?
15813 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
15814 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15815 +cat >conftest.$ac_ext <<_ACEOF
15816 +#line $LINENO "configure"
15817 +/* confdefs.h.  */
15818 +_ACEOF
15819 +cat confdefs.h >>conftest.$ac_ext
15820 +cat >>conftest.$ac_ext <<_ACEOF
15821 +/* end confdefs.h.  */
15822 +$ac_includes_default
15823 +#include <$ac_header>
15824 +_ACEOF
15825 +rm -f conftest.$ac_objext
15826 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15827 +  (eval $ac_compile) 2>&5
15828 +  ac_status=$?
15829 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 +  (exit $ac_status); } &&
15831 +         { ac_try='test -s conftest.$ac_objext'
15832 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 +  (eval $ac_try) 2>&5
15834 +  ac_status=$?
15835 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 +  (exit $ac_status); }; }; then
15837 +  ac_header_compiler=yes
15838  else
15839 -  echo "$ac_err" >&5
15840 -  echo "configure: failed program was:" >&5
15841 -  cat conftest.$ac_ext >&5
15842 -  rm -rf conftest*
15843 -  eval "ac_cv_header_$ac_safe=no"
15844 +  echo "$as_me: failed program was:" >&5
15845 +sed 's/^/| /' conftest.$ac_ext >&5
15846 +
15847 +ac_header_compiler=no
15848  fi
15849 -rm -f conftest*
15850 +rm -f conftest.$ac_objext conftest.$ac_ext
15851 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15852 +echo "${ECHO_T}$ac_header_compiler" >&6
15853 +
15854 +# Is the header present?
15855 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
15856 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15857 +cat >conftest.$ac_ext <<_ACEOF
15858 +#line $LINENO "configure"
15859 +/* confdefs.h.  */
15860 +_ACEOF
15861 +cat confdefs.h >>conftest.$ac_ext
15862 +cat >>conftest.$ac_ext <<_ACEOF
15863 +/* end confdefs.h.  */
15864 +#include <$ac_header>
15865 +_ACEOF
15866 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15867 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15868 +  ac_status=$?
15869 +  grep -v '^ *+' conftest.er1 >conftest.err
15870 +  rm -f conftest.er1
15871 +  cat conftest.err >&5
15872 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 +  (exit $ac_status); } >/dev/null; then
15874 +  if test -s conftest.err; then
15875 +    ac_cpp_err=$ac_c_preproc_warn_flag
15876 +  else
15877 +    ac_cpp_err=
15878 +  fi
15879 +else
15880 +  ac_cpp_err=yes
15881  fi
15882 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15883 -  echo "$ac_t""yes" 1>&6
15884 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15885 -  cat >> confdefs.h <<EOF
15886 -#define $ac_tr_hdr 1
15887 -EOF
15888
15889 +if test -z "$ac_cpp_err"; then
15890 +  ac_header_preproc=yes
15891  else
15892 -  echo "$ac_t""no" 1>&6
15893 +  echo "$as_me: failed program was:" >&5
15894 +sed 's/^/| /' conftest.$ac_ext >&5
15895 +
15896 +  ac_header_preproc=no
15897 +fi
15898 +rm -f conftest.err conftest.$ac_ext
15899 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15900 +echo "${ECHO_T}$ac_header_preproc" >&6
15901 +
15902 +# So?  What about this header?
15903 +case $ac_header_compiler:$ac_header_preproc in
15904 +  yes:no )
15905 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15906 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15907 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15908 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15909 +    (
15910 +      cat <<\_ASBOX
15911 +## ------------------------------------ ##
15912 +## Report this to bug-autoconf@gnu.org. ##
15913 +## ------------------------------------ ##
15914 +_ASBOX
15915 +    ) |
15916 +      sed "s/^/$as_me: WARNING:     /" >&2
15917 +    ;;
15918 +  no:yes )
15919 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15920 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15921 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15922 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15923 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15924 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15925 +    (
15926 +      cat <<\_ASBOX
15927 +## ------------------------------------ ##
15928 +## Report this to bug-autoconf@gnu.org. ##
15929 +## ------------------------------------ ##
15930 +_ASBOX
15931 +    ) |
15932 +      sed "s/^/$as_me: WARNING:     /" >&2
15933 +    ;;
15934 +esac
15935 +echo "$as_me:$LINENO: checking for $ac_header" >&5
15936 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15937 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
15938 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15939 +else
15940 +  eval "$as_ac_Header=$ac_header_preproc"
15941  fi
15942 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15943 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15944 +
15945 +fi
15946 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
15947 +  cat >>confdefs.h <<_ACEOF
15948 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15949 +_ACEOF
15950 +
15951 +fi
15952 +
15953  done
15954  
15955 -       echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
15956 -echo "configure:4963: checking for jpeg_destroy_decompress in -ljpeg" >&5
15957 -ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
15958 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15959 -  echo $ac_n "(cached) $ac_c" 1>&6
15960 +
15961 +echo "$as_me:$LINENO: checking for jpeg_destroy_decompress in -ljpeg" >&5
15962 +echo $ECHO_N "checking for jpeg_destroy_decompress in -ljpeg... $ECHO_C" >&6
15963 +if test "${ac_cv_lib_jpeg_jpeg_destroy_decompress+set}" = set; then
15964 +  echo $ECHO_N "(cached) $ECHO_C" >&6
15965  else
15966 -  ac_save_LIBS="$LIBS"
15967 +  ac_check_lib_save_LIBS=$LIBS
15968  LIBS="-ljpeg  $LIBS"
15969 -cat > conftest.$ac_ext <<EOF
15970 -#line 4971 "configure"
15971 -#include "confdefs.h"
15972 +cat >conftest.$ac_ext <<_ACEOF
15973 +#line $LINENO "configure"
15974 +/* confdefs.h.  */
15975 +_ACEOF
15976 +cat confdefs.h >>conftest.$ac_ext
15977 +cat >>conftest.$ac_ext <<_ACEOF
15978 +/* end confdefs.h.  */
15979 +
15980  /* Override any gcc2 internal prototype to avoid an error.  */
15981 +#ifdef __cplusplus
15982 +extern "C"
15983 +#endif
15984  /* We use char because int might match the return type of a gcc2
15985 -    builtin and then its argument prototype would still apply.  */
15986 -char jpeg_destroy_decompress();
15987 -
15988 -int main() {
15989 -jpeg_destroy_decompress()
15990 -; return 0; }
15991 -EOF
15992 -if { (eval echo configure:4982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15993 -  rm -rf conftest*
15994 -  eval "ac_cv_lib_$ac_lib_var=yes"
15995 +   builtin and then its argument prototype would still apply.  */
15996 +char jpeg_destroy_decompress ();
15997 +int
15998 +main ()
15999 +{
16000 +jpeg_destroy_decompress ();
16001 +  ;
16002 +  return 0;
16003 +}
16004 +_ACEOF
16005 +rm -f conftest.$ac_objext conftest$ac_exeext
16006 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16007 +  (eval $ac_link) 2>&5
16008 +  ac_status=$?
16009 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 +  (exit $ac_status); } &&
16011 +         { ac_try='test -s conftest$ac_exeext'
16012 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013 +  (eval $ac_try) 2>&5
16014 +  ac_status=$?
16015 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 +  (exit $ac_status); }; }; then
16017 +  ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
16018  else
16019 -  echo "configure: failed program was:" >&5
16020 -  cat conftest.$ac_ext >&5
16021 -  rm -rf conftest*
16022 -  eval "ac_cv_lib_$ac_lib_var=no"
16023 -fi
16024 -rm -f conftest*
16025 -LIBS="$ac_save_LIBS"
16026 +  echo "$as_me: failed program was:" >&5
16027 +sed 's/^/| /' conftest.$ac_ext >&5
16028  
16029 +ac_cv_lib_jpeg_jpeg_destroy_decompress=no
16030  fi
16031 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16032 -  echo "$ac_t""yes" 1>&6
16033 -    ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
16034 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
16035 -  cat >> confdefs.h <<EOF
16036 -#define $ac_tr_lib 1
16037 -EOF
16038 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16039 +LIBS=$ac_check_lib_save_LIBS
16040 +fi
16041 +echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
16042 +echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6
16043 +if test $ac_cv_lib_jpeg_jpeg_destroy_decompress = yes; then
16044 +  cat >>confdefs.h <<_ACEOF
16045 +#define HAVE_LIBJPEG 1
16046 +_ACEOF
16047  
16048    LIBS="-ljpeg $LIBS"
16049  
16050 -else
16051 -  echo "$ac_t""no" 1>&6
16052  fi
16053  
16054         if test "$ac_cv_header_jpeglib_h" = yes && test "$ac_cv_lib_jpeg_jpeg_destroy_decompress" = yes; then
16055 -               cat >> confdefs.h <<\EOF
16056 +               cat >>confdefs.h <<\_ACEOF
16057  #define HAVE_JPEG 1
16058 -EOF
16059 +_ACEOF
16060  
16061                 cf_have_jpeg=yes
16062                 image_formats="$image_formats JPEG"
16063         fi
16064  fi
16065  
16066 +
16067  # Check whether --with-libtiff or --without-libtiff was given.
16068  if test "${with_libtiff+set}" = set; then
16069    withval="$with_libtiff"
16070    if test "$withval" = no; then disable_tiff=yes; else disable_tiff=no; fi
16071 -fi
16072 -
16073 +fi;
16074         cf_have_tiff=no
16075  if test "$disable_tiff" != yes ; then
16076 -       for ac_hdr in tiffio.h
16077 +
16078 +for ac_header in tiffio.h
16079  do
16080 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16081 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16082 -echo "configure:5031: checking for $ac_hdr" >&5
16083 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16084 -  echo $ac_n "(cached) $ac_c" 1>&6
16085 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16086 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
16087 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
16088 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16089 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
16090 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16091 +fi
16092 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16093 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16094  else
16095 -  cat > conftest.$ac_ext <<EOF
16096 -#line 5036 "configure"
16097 -#include "confdefs.h"
16098 -#include <$ac_hdr>
16099 -EOF
16100 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16101 -{ (eval echo configure:5041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16102 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16103 -if test -z "$ac_err"; then
16104 -  rm -rf conftest*
16105 -  eval "ac_cv_header_$ac_safe=yes"
16106 +  # Is the header compilable?
16107 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
16108 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16109 +cat >conftest.$ac_ext <<_ACEOF
16110 +#line $LINENO "configure"
16111 +/* confdefs.h.  */
16112 +_ACEOF
16113 +cat confdefs.h >>conftest.$ac_ext
16114 +cat >>conftest.$ac_ext <<_ACEOF
16115 +/* end confdefs.h.  */
16116 +$ac_includes_default
16117 +#include <$ac_header>
16118 +_ACEOF
16119 +rm -f conftest.$ac_objext
16120 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16121 +  (eval $ac_compile) 2>&5
16122 +  ac_status=$?
16123 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 +  (exit $ac_status); } &&
16125 +         { ac_try='test -s conftest.$ac_objext'
16126 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 +  (eval $ac_try) 2>&5
16128 +  ac_status=$?
16129 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 +  (exit $ac_status); }; }; then
16131 +  ac_header_compiler=yes
16132  else
16133 -  echo "$ac_err" >&5
16134 -  echo "configure: failed program was:" >&5
16135 -  cat conftest.$ac_ext >&5
16136 -  rm -rf conftest*
16137 -  eval "ac_cv_header_$ac_safe=no"
16138 +  echo "$as_me: failed program was:" >&5
16139 +sed 's/^/| /' conftest.$ac_ext >&5
16140 +
16141 +ac_header_compiler=no
16142  fi
16143 -rm -f conftest*
16144 +rm -f conftest.$ac_objext conftest.$ac_ext
16145 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16146 +echo "${ECHO_T}$ac_header_compiler" >&6
16147 +
16148 +# Is the header present?
16149 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
16150 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16151 +cat >conftest.$ac_ext <<_ACEOF
16152 +#line $LINENO "configure"
16153 +/* confdefs.h.  */
16154 +_ACEOF
16155 +cat confdefs.h >>conftest.$ac_ext
16156 +cat >>conftest.$ac_ext <<_ACEOF
16157 +/* end confdefs.h.  */
16158 +#include <$ac_header>
16159 +_ACEOF
16160 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16161 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16162 +  ac_status=$?
16163 +  grep -v '^ *+' conftest.er1 >conftest.err
16164 +  rm -f conftest.er1
16165 +  cat conftest.err >&5
16166 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 +  (exit $ac_status); } >/dev/null; then
16168 +  if test -s conftest.err; then
16169 +    ac_cpp_err=$ac_c_preproc_warn_flag
16170 +  else
16171 +    ac_cpp_err=
16172 +  fi
16173 +else
16174 +  ac_cpp_err=yes
16175  fi
16176 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16177 -  echo "$ac_t""yes" 1>&6
16178 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16179 -  cat >> confdefs.h <<EOF
16180 -#define $ac_tr_hdr 1
16181 -EOF
16182
16183 +if test -z "$ac_cpp_err"; then
16184 +  ac_header_preproc=yes
16185  else
16186 -  echo "$ac_t""no" 1>&6
16187 +  echo "$as_me: failed program was:" >&5
16188 +sed 's/^/| /' conftest.$ac_ext >&5
16189 +
16190 +  ac_header_preproc=no
16191  fi
16192 +rm -f conftest.err conftest.$ac_ext
16193 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16194 +echo "${ECHO_T}$ac_header_preproc" >&6
16195 +
16196 +# So?  What about this header?
16197 +case $ac_header_compiler:$ac_header_preproc in
16198 +  yes:no )
16199 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16200 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16201 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16202 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16203 +    (
16204 +      cat <<\_ASBOX
16205 +## ------------------------------------ ##
16206 +## Report this to bug-autoconf@gnu.org. ##
16207 +## ------------------------------------ ##
16208 +_ASBOX
16209 +    ) |
16210 +      sed "s/^/$as_me: WARNING:     /" >&2
16211 +    ;;
16212 +  no:yes )
16213 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16214 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16215 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16216 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16217 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16218 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16219 +    (
16220 +      cat <<\_ASBOX
16221 +## ------------------------------------ ##
16222 +## Report this to bug-autoconf@gnu.org. ##
16223 +## ------------------------------------ ##
16224 +_ASBOX
16225 +    ) |
16226 +      sed "s/^/$as_me: WARNING:     /" >&2
16227 +    ;;
16228 +esac
16229 +echo "$as_me:$LINENO: checking for $ac_header" >&5
16230 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16231 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
16232 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16233 +else
16234 +  eval "$as_ac_Header=$ac_header_preproc"
16235 +fi
16236 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16237 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16238 +
16239 +fi
16240 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
16241 +  cat >>confdefs.h <<_ACEOF
16242 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16243 +_ACEOF
16244 +
16245 +fi
16246 +
16247  done
16248  
16249 -       echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
16250 -echo "configure:5068: checking for TIFFOpen in -ltiff" >&5
16251 -ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
16252 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16253 -  echo $ac_n "(cached) $ac_c" 1>&6
16254 +
16255 +echo "$as_me:$LINENO: checking for TIFFOpen in -ltiff" >&5
16256 +echo $ECHO_N "checking for TIFFOpen in -ltiff... $ECHO_C" >&6
16257 +if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then
16258 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16259  else
16260 -  ac_save_LIBS="$LIBS"
16261 +  ac_check_lib_save_LIBS=$LIBS
16262  LIBS="-ltiff  $LIBS"
16263 -cat > conftest.$ac_ext <<EOF
16264 -#line 5076 "configure"
16265 -#include "confdefs.h"
16266 +cat >conftest.$ac_ext <<_ACEOF
16267 +#line $LINENO "configure"
16268 +/* confdefs.h.  */
16269 +_ACEOF
16270 +cat confdefs.h >>conftest.$ac_ext
16271 +cat >>conftest.$ac_ext <<_ACEOF
16272 +/* end confdefs.h.  */
16273 +
16274  /* Override any gcc2 internal prototype to avoid an error.  */
16275 +#ifdef __cplusplus
16276 +extern "C"
16277 +#endif
16278  /* We use char because int might match the return type of a gcc2
16279 -    builtin and then its argument prototype would still apply.  */
16280 -char TIFFOpen();
16281 -
16282 -int main() {
16283 -TIFFOpen()
16284 -; return 0; }
16285 -EOF
16286 -if { (eval echo configure:5087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16287 -  rm -rf conftest*
16288 -  eval "ac_cv_lib_$ac_lib_var=yes"
16289 +   builtin and then its argument prototype would still apply.  */
16290 +char TIFFOpen ();
16291 +int
16292 +main ()
16293 +{
16294 +TIFFOpen ();
16295 +  ;
16296 +  return 0;
16297 +}
16298 +_ACEOF
16299 +rm -f conftest.$ac_objext conftest$ac_exeext
16300 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16301 +  (eval $ac_link) 2>&5
16302 +  ac_status=$?
16303 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 +  (exit $ac_status); } &&
16305 +         { ac_try='test -s conftest$ac_exeext'
16306 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16307 +  (eval $ac_try) 2>&5
16308 +  ac_status=$?
16309 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 +  (exit $ac_status); }; }; then
16311 +  ac_cv_lib_tiff_TIFFOpen=yes
16312  else
16313 -  echo "configure: failed program was:" >&5
16314 -  cat conftest.$ac_ext >&5
16315 -  rm -rf conftest*
16316 -  eval "ac_cv_lib_$ac_lib_var=no"
16317 -fi
16318 -rm -f conftest*
16319 -LIBS="$ac_save_LIBS"
16320 +  echo "$as_me: failed program was:" >&5
16321 +sed 's/^/| /' conftest.$ac_ext >&5
16322  
16323 +ac_cv_lib_tiff_TIFFOpen=no
16324  fi
16325 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16326 -  echo "$ac_t""yes" 1>&6
16327 -    ac_tr_lib=HAVE_LIB`echo tiff | sed -e 's/[^a-zA-Z0-9_]/_/g' \
16328 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
16329 -  cat >> confdefs.h <<EOF
16330 -#define $ac_tr_lib 1
16331 -EOF
16332 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16333 +LIBS=$ac_check_lib_save_LIBS
16334 +fi
16335 +echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFOpen" >&5
16336 +echo "${ECHO_T}$ac_cv_lib_tiff_TIFFOpen" >&6
16337 +if test $ac_cv_lib_tiff_TIFFOpen = yes; then
16338 +  cat >>confdefs.h <<_ACEOF
16339 +#define HAVE_LIBTIFF 1
16340 +_ACEOF
16341  
16342    LIBS="-ltiff $LIBS"
16343  
16344 -else
16345 -  echo "$ac_t""no" 1>&6
16346  fi
16347  
16348         if test "$ac_cv_header_tiffio_h" = yes && test "$ac_cv_lib_tiff_TIFFOpen" = yes; then
16349 -               cat >> confdefs.h <<\EOF
16350 +               cat >>confdefs.h <<\_ACEOF
16351  #define HAVE_TIFF 1
16352 -EOF
16353 +_ACEOF
16354  
16355                 cf_have_tiff=yes
16356                 image_formats="$image_formats TIFF"
16357         fi
16358  fi
16359  
16360 +
16361  # Check whether --with-svgalib or --without-svgalib was given.
16362  if test "${with_svgalib+set}" = set; then
16363    withval="$with_svgalib"
16364    if test "$withval" = no; then disable_svgalib=yes; else disable_svgalib=no; fi
16365 -fi
16366 +fi;
16367  
16368  # Check whether --with-x or --without-x was given.
16369  if test "${with_x+set}" = set; then
16370    withval="$with_x"
16371    if test "$withval" = no; then disable_x=yes; else disable_x=no; fi
16372 -fi
16373 +fi;
16374  
16375  # Check whether --with-fb or --without-fb was given.
16376  if test "${with_fb+set}" = set; then
16377    withval="$with_fb"
16378    if test "$withval" = no; then disable_fb=yes; else disable_fb=no; fi
16379 -fi
16380 +fi;
16381  
16382  # Check whether --with-directfb or --without-directfb was given.
16383  if test "${with_directfb+set}" = set; then
16384    withval="$with_directfb"
16385    if test "$withval" = no; then disable_directfb=yes; else disable_directfb=no; fi
16386 -fi
16387 +fi;
16388  
16389  # Check whether --with-pmshell or --without-pmshell was given.
16390  if test "${with_pmshell+set}" = set; then
16391    withval="$with_pmshell"
16392    if test "$withval" = no; then disable_pmshell=yes; else disable_pmshell=no; fi
16393 -fi
16394 +fi;
16395  
16396  # Check whether --with-atheos or --without-atheos was given.
16397  if test "${with_atheos+set}" = set; then
16398    withval="$with_atheos"
16399    if test "$withval" = no; then disable_atheos=yes; else disable_atheos; fi
16400 -fi
16401 -
16402 +fi;
16403  
16404         drivers=""
16405  
16406  if test "$disable_svgalib" != yes ; then
16407 -       echo $ac_n "checking for svgalib""... $ac_c" 1>&6
16408 -echo "configure:5165: checking for svgalib" >&5
16409 -if eval "test \"`echo '$''{'ac_cv_have_svgalib'+set}'`\" = set"; then
16410 -  echo $ac_n "(cached) $ac_c" 1>&6
16411 +       echo "$as_me:$LINENO: checking for svgalib" >&5
16412 +echo $ECHO_N "checking for svgalib... $ECHO_C" >&6
16413 +if test "${ac_cv_have_svgalib+set}" = set; then
16414 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16415  else
16416    LIBS_X="$LIBS"
16417                 LIBS="$LIBS -lvga"
16418 -               cat > conftest.$ac_ext <<EOF
16419 -#line 5172 "configure"
16420 -#include "confdefs.h"
16421 +               cat >conftest.$ac_ext <<_ACEOF
16422 +#line $LINENO "configure"
16423 +/* confdefs.h.  */
16424 +_ACEOF
16425 +cat confdefs.h >>conftest.$ac_ext
16426 +cat >>conftest.$ac_ext <<_ACEOF
16427 +/* end confdefs.h.  */
16428  #include <vga.h>
16429 -int main() {
16430 +int
16431 +main ()
16432 +{
16433  vga_setmode(0)
16434 -; return 0; }
16435 -EOF
16436 -if { (eval echo configure:5179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16437 -  rm -rf conftest*
16438 +  ;
16439 +  return 0;
16440 +}
16441 +_ACEOF
16442 +rm -f conftest.$ac_objext conftest$ac_exeext
16443 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16444 +  (eval $ac_link) 2>&5
16445 +  ac_status=$?
16446 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 +  (exit $ac_status); } &&
16448 +         { ac_try='test -s conftest$ac_exeext'
16449 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16450 +  (eval $ac_try) 2>&5
16451 +  ac_status=$?
16452 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 +  (exit $ac_status); }; }; then
16454    ac_cv_have_svgalib=yes
16455  else
16456 -  echo "configure: failed program was:" >&5
16457 -  cat conftest.$ac_ext >&5
16458 -  rm -rf conftest*
16459 -  ac_cv_have_svgalib=no
16460 +  echo "$as_me: failed program was:" >&5
16461 +sed 's/^/| /' conftest.$ac_ext >&5
16462 +
16463 +ac_cv_have_svgalib=no
16464  fi
16465 -rm -f conftest*
16466 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16467                 LIBS="$LIBS_X"
16468 -       
16469 -fi
16470  
16471 -echo "$ac_t""$ac_cv_have_svgalib" 1>&6
16472 +fi
16473 +echo "$as_me:$LINENO: result: $ac_cv_have_svgalib" >&5
16474 +echo "${ECHO_T}$ac_cv_have_svgalib" >&6
16475  
16476         if test "$ac_cv_have_svgalib" = yes; then
16477 -               cat >> confdefs.h <<\EOF
16478 +               cat >>confdefs.h <<\_ACEOF
16479  #define GRDRV_SVGALIB 1
16480 -EOF
16481 +_ACEOF
16482  
16483                 LIBS="$LIBS -lvga"
16484                 drivers="$drivers SVGALIB"
16485         fi
16486  fi
16487  
16488 -       
16489 +
16490  if test "$disable_fb" != yes ; then
16491 -       for ac_hdr in linux/fb.h
16492 +
16493 +for ac_header in linux/fb.h
16494  do
16495 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16496 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16497 -echo "configure:5211: checking for $ac_hdr" >&5
16498 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16499 -  echo $ac_n "(cached) $ac_c" 1>&6
16500 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16501 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
16502 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
16503 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16504 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
16505 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16506 +fi
16507 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16508 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16509  else
16510 -  cat > conftest.$ac_ext <<EOF
16511 -#line 5216 "configure"
16512 -#include "confdefs.h"
16513 -#include <$ac_hdr>
16514 -EOF
16515 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16516 -{ (eval echo configure:5221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16517 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16518 -if test -z "$ac_err"; then
16519 -  rm -rf conftest*
16520 -  eval "ac_cv_header_$ac_safe=yes"
16521 +  # Is the header compilable?
16522 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
16523 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16524 +cat >conftest.$ac_ext <<_ACEOF
16525 +#line $LINENO "configure"
16526 +/* confdefs.h.  */
16527 +_ACEOF
16528 +cat confdefs.h >>conftest.$ac_ext
16529 +cat >>conftest.$ac_ext <<_ACEOF
16530 +/* end confdefs.h.  */
16531 +$ac_includes_default
16532 +#include <$ac_header>
16533 +_ACEOF
16534 +rm -f conftest.$ac_objext
16535 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16536 +  (eval $ac_compile) 2>&5
16537 +  ac_status=$?
16538 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 +  (exit $ac_status); } &&
16540 +         { ac_try='test -s conftest.$ac_objext'
16541 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16542 +  (eval $ac_try) 2>&5
16543 +  ac_status=$?
16544 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 +  (exit $ac_status); }; }; then
16546 +  ac_header_compiler=yes
16547  else
16548 -  echo "$ac_err" >&5
16549 -  echo "configure: failed program was:" >&5
16550 -  cat conftest.$ac_ext >&5
16551 -  rm -rf conftest*
16552 -  eval "ac_cv_header_$ac_safe=no"
16553 +  echo "$as_me: failed program was:" >&5
16554 +sed 's/^/| /' conftest.$ac_ext >&5
16555 +
16556 +ac_header_compiler=no
16557  fi
16558 -rm -f conftest*
16559 +rm -f conftest.$ac_objext conftest.$ac_ext
16560 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16561 +echo "${ECHO_T}$ac_header_compiler" >&6
16562 +
16563 +# Is the header present?
16564 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
16565 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16566 +cat >conftest.$ac_ext <<_ACEOF
16567 +#line $LINENO "configure"
16568 +/* confdefs.h.  */
16569 +_ACEOF
16570 +cat confdefs.h >>conftest.$ac_ext
16571 +cat >>conftest.$ac_ext <<_ACEOF
16572 +/* end confdefs.h.  */
16573 +#include <$ac_header>
16574 +_ACEOF
16575 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16576 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16577 +  ac_status=$?
16578 +  grep -v '^ *+' conftest.er1 >conftest.err
16579 +  rm -f conftest.er1
16580 +  cat conftest.err >&5
16581 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 +  (exit $ac_status); } >/dev/null; then
16583 +  if test -s conftest.err; then
16584 +    ac_cpp_err=$ac_c_preproc_warn_flag
16585 +  else
16586 +    ac_cpp_err=
16587 +  fi
16588 +else
16589 +  ac_cpp_err=yes
16590  fi
16591 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16592 -  echo "$ac_t""yes" 1>&6
16593 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16594 -  cat >> confdefs.h <<EOF
16595 -#define $ac_tr_hdr 1
16596 -EOF
16597
16598 +if test -z "$ac_cpp_err"; then
16599 +  ac_header_preproc=yes
16600  else
16601 -  echo "$ac_t""no" 1>&6
16602 +  echo "$as_me: failed program was:" >&5
16603 +sed 's/^/| /' conftest.$ac_ext >&5
16604 +
16605 +  ac_header_preproc=no
16606 +fi
16607 +rm -f conftest.err conftest.$ac_ext
16608 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16609 +echo "${ECHO_T}$ac_header_preproc" >&6
16610 +
16611 +# So?  What about this header?
16612 +case $ac_header_compiler:$ac_header_preproc in
16613 +  yes:no )
16614 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16615 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16616 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16617 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16618 +    (
16619 +      cat <<\_ASBOX
16620 +## ------------------------------------ ##
16621 +## Report this to bug-autoconf@gnu.org. ##
16622 +## ------------------------------------ ##
16623 +_ASBOX
16624 +    ) |
16625 +      sed "s/^/$as_me: WARNING:     /" >&2
16626 +    ;;
16627 +  no:yes )
16628 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16629 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16630 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16631 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16632 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16633 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16634 +    (
16635 +      cat <<\_ASBOX
16636 +## ------------------------------------ ##
16637 +## Report this to bug-autoconf@gnu.org. ##
16638 +## ------------------------------------ ##
16639 +_ASBOX
16640 +    ) |
16641 +      sed "s/^/$as_me: WARNING:     /" >&2
16642 +    ;;
16643 +esac
16644 +echo "$as_me:$LINENO: checking for $ac_header" >&5
16645 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16646 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
16647 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16648 +else
16649 +  eval "$as_ac_Header=$ac_header_preproc"
16650 +fi
16651 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16652 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16653 +
16654 +fi
16655 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
16656 +  cat >>confdefs.h <<_ACEOF
16657 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16658 +_ACEOF
16659 +
16660  fi
16661 +
16662  done
16663  
16664 -       for ac_hdr in linux/kd.h
16665 +
16666 +for ac_header in linux/kd.h
16667  do
16668 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16669 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16670 -echo "configure:5251: checking for $ac_hdr" >&5
16671 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16672 -  echo $ac_n "(cached) $ac_c" 1>&6
16673 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16674 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
16675 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
16676 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16677 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
16678 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16679 +fi
16680 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16681 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16682  else
16683 -  cat > conftest.$ac_ext <<EOF
16684 -#line 5256 "configure"
16685 -#include "confdefs.h"
16686 -#include <$ac_hdr>
16687 -EOF
16688 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16689 -{ (eval echo configure:5261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16690 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16691 -if test -z "$ac_err"; then
16692 -  rm -rf conftest*
16693 -  eval "ac_cv_header_$ac_safe=yes"
16694 +  # Is the header compilable?
16695 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
16696 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16697 +cat >conftest.$ac_ext <<_ACEOF
16698 +#line $LINENO "configure"
16699 +/* confdefs.h.  */
16700 +_ACEOF
16701 +cat confdefs.h >>conftest.$ac_ext
16702 +cat >>conftest.$ac_ext <<_ACEOF
16703 +/* end confdefs.h.  */
16704 +$ac_includes_default
16705 +#include <$ac_header>
16706 +_ACEOF
16707 +rm -f conftest.$ac_objext
16708 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16709 +  (eval $ac_compile) 2>&5
16710 +  ac_status=$?
16711 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 +  (exit $ac_status); } &&
16713 +         { ac_try='test -s conftest.$ac_objext'
16714 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715 +  (eval $ac_try) 2>&5
16716 +  ac_status=$?
16717 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 +  (exit $ac_status); }; }; then
16719 +  ac_header_compiler=yes
16720  else
16721 -  echo "$ac_err" >&5
16722 -  echo "configure: failed program was:" >&5
16723 -  cat conftest.$ac_ext >&5
16724 -  rm -rf conftest*
16725 -  eval "ac_cv_header_$ac_safe=no"
16726 +  echo "$as_me: failed program was:" >&5
16727 +sed 's/^/| /' conftest.$ac_ext >&5
16728 +
16729 +ac_header_compiler=no
16730  fi
16731 -rm -f conftest*
16732 +rm -f conftest.$ac_objext conftest.$ac_ext
16733 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16734 +echo "${ECHO_T}$ac_header_compiler" >&6
16735 +
16736 +# Is the header present?
16737 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
16738 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16739 +cat >conftest.$ac_ext <<_ACEOF
16740 +#line $LINENO "configure"
16741 +/* confdefs.h.  */
16742 +_ACEOF
16743 +cat confdefs.h >>conftest.$ac_ext
16744 +cat >>conftest.$ac_ext <<_ACEOF
16745 +/* end confdefs.h.  */
16746 +#include <$ac_header>
16747 +_ACEOF
16748 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16749 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16750 +  ac_status=$?
16751 +  grep -v '^ *+' conftest.er1 >conftest.err
16752 +  rm -f conftest.er1
16753 +  cat conftest.err >&5
16754 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 +  (exit $ac_status); } >/dev/null; then
16756 +  if test -s conftest.err; then
16757 +    ac_cpp_err=$ac_c_preproc_warn_flag
16758 +  else
16759 +    ac_cpp_err=
16760 +  fi
16761 +else
16762 +  ac_cpp_err=yes
16763  fi
16764 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16765 -  echo "$ac_t""yes" 1>&6
16766 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16767 -  cat >> confdefs.h <<EOF
16768 -#define $ac_tr_hdr 1
16769 -EOF
16770
16771 +if test -z "$ac_cpp_err"; then
16772 +  ac_header_preproc=yes
16773  else
16774 -  echo "$ac_t""no" 1>&6
16775 +  echo "$as_me: failed program was:" >&5
16776 +sed 's/^/| /' conftest.$ac_ext >&5
16777 +
16778 +  ac_header_preproc=no
16779  fi
16780 +rm -f conftest.err conftest.$ac_ext
16781 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16782 +echo "${ECHO_T}$ac_header_preproc" >&6
16783 +
16784 +# So?  What about this header?
16785 +case $ac_header_compiler:$ac_header_preproc in
16786 +  yes:no )
16787 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16788 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16789 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16790 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16791 +    (
16792 +      cat <<\_ASBOX
16793 +## ------------------------------------ ##
16794 +## Report this to bug-autoconf@gnu.org. ##
16795 +## ------------------------------------ ##
16796 +_ASBOX
16797 +    ) |
16798 +      sed "s/^/$as_me: WARNING:     /" >&2
16799 +    ;;
16800 +  no:yes )
16801 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16802 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16803 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16804 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16805 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16806 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16807 +    (
16808 +      cat <<\_ASBOX
16809 +## ------------------------------------ ##
16810 +## Report this to bug-autoconf@gnu.org. ##
16811 +## ------------------------------------ ##
16812 +_ASBOX
16813 +    ) |
16814 +      sed "s/^/$as_me: WARNING:     /" >&2
16815 +    ;;
16816 +esac
16817 +echo "$as_me:$LINENO: checking for $ac_header" >&5
16818 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16819 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
16820 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16821 +else
16822 +  eval "$as_ac_Header=$ac_header_preproc"
16823 +fi
16824 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16825 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16826 +
16827 +fi
16828 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
16829 +  cat >>confdefs.h <<_ACEOF
16830 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16831 +_ACEOF
16832 +
16833 +fi
16834 +
16835  done
16836  
16837 -       for ac_hdr in linux/vt.h
16838 +
16839 +for ac_header in linux/vt.h
16840  do
16841 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16842 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16843 -echo "configure:5291: checking for $ac_hdr" >&5
16844 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16845 -  echo $ac_n "(cached) $ac_c" 1>&6
16846 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16847 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
16848 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
16849 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16850 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
16851 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16852 +fi
16853 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16854 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16855  else
16856 -  cat > conftest.$ac_ext <<EOF
16857 -#line 5296 "configure"
16858 -#include "confdefs.h"
16859 -#include <$ac_hdr>
16860 -EOF
16861 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16862 -{ (eval echo configure:5301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16863 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16864 -if test -z "$ac_err"; then
16865 -  rm -rf conftest*
16866 -  eval "ac_cv_header_$ac_safe=yes"
16867 +  # Is the header compilable?
16868 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
16869 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16870 +cat >conftest.$ac_ext <<_ACEOF
16871 +#line $LINENO "configure"
16872 +/* confdefs.h.  */
16873 +_ACEOF
16874 +cat confdefs.h >>conftest.$ac_ext
16875 +cat >>conftest.$ac_ext <<_ACEOF
16876 +/* end confdefs.h.  */
16877 +$ac_includes_default
16878 +#include <$ac_header>
16879 +_ACEOF
16880 +rm -f conftest.$ac_objext
16881 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16882 +  (eval $ac_compile) 2>&5
16883 +  ac_status=$?
16884 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 +  (exit $ac_status); } &&
16886 +         { ac_try='test -s conftest.$ac_objext'
16887 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888 +  (eval $ac_try) 2>&5
16889 +  ac_status=$?
16890 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 +  (exit $ac_status); }; }; then
16892 +  ac_header_compiler=yes
16893  else
16894 -  echo "$ac_err" >&5
16895 -  echo "configure: failed program was:" >&5
16896 -  cat conftest.$ac_ext >&5
16897 -  rm -rf conftest*
16898 -  eval "ac_cv_header_$ac_safe=no"
16899 +  echo "$as_me: failed program was:" >&5
16900 +sed 's/^/| /' conftest.$ac_ext >&5
16901 +
16902 +ac_header_compiler=no
16903  fi
16904 -rm -f conftest*
16905 +rm -f conftest.$ac_objext conftest.$ac_ext
16906 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16907 +echo "${ECHO_T}$ac_header_compiler" >&6
16908 +
16909 +# Is the header present?
16910 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
16911 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16912 +cat >conftest.$ac_ext <<_ACEOF
16913 +#line $LINENO "configure"
16914 +/* confdefs.h.  */
16915 +_ACEOF
16916 +cat confdefs.h >>conftest.$ac_ext
16917 +cat >>conftest.$ac_ext <<_ACEOF
16918 +/* end confdefs.h.  */
16919 +#include <$ac_header>
16920 +_ACEOF
16921 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16922 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16923 +  ac_status=$?
16924 +  grep -v '^ *+' conftest.er1 >conftest.err
16925 +  rm -f conftest.er1
16926 +  cat conftest.err >&5
16927 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 +  (exit $ac_status); } >/dev/null; then
16929 +  if test -s conftest.err; then
16930 +    ac_cpp_err=$ac_c_preproc_warn_flag
16931 +  else
16932 +    ac_cpp_err=
16933 +  fi
16934 +else
16935 +  ac_cpp_err=yes
16936  fi
16937 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16938 -  echo "$ac_t""yes" 1>&6
16939 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16940 -  cat >> confdefs.h <<EOF
16941 -#define $ac_tr_hdr 1
16942 -EOF
16943
16944 +if test -z "$ac_cpp_err"; then
16945 +  ac_header_preproc=yes
16946  else
16947 -  echo "$ac_t""no" 1>&6
16948 +  echo "$as_me: failed program was:" >&5
16949 +sed 's/^/| /' conftest.$ac_ext >&5
16950 +
16951 +  ac_header_preproc=no
16952  fi
16953 +rm -f conftest.err conftest.$ac_ext
16954 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16955 +echo "${ECHO_T}$ac_header_preproc" >&6
16956 +
16957 +# So?  What about this header?
16958 +case $ac_header_compiler:$ac_header_preproc in
16959 +  yes:no )
16960 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16961 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16962 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16963 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16964 +    (
16965 +      cat <<\_ASBOX
16966 +## ------------------------------------ ##
16967 +## Report this to bug-autoconf@gnu.org. ##
16968 +## ------------------------------------ ##
16969 +_ASBOX
16970 +    ) |
16971 +      sed "s/^/$as_me: WARNING:     /" >&2
16972 +    ;;
16973 +  no:yes )
16974 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16975 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16976 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16977 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16978 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16979 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16980 +    (
16981 +      cat <<\_ASBOX
16982 +## ------------------------------------ ##
16983 +## Report this to bug-autoconf@gnu.org. ##
16984 +## ------------------------------------ ##
16985 +_ASBOX
16986 +    ) |
16987 +      sed "s/^/$as_me: WARNING:     /" >&2
16988 +    ;;
16989 +esac
16990 +echo "$as_me:$LINENO: checking for $ac_header" >&5
16991 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16992 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
16993 +  echo $ECHO_N "(cached) $ECHO_C" >&6
16994 +else
16995 +  eval "$as_ac_Header=$ac_header_preproc"
16996 +fi
16997 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16998 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16999 +
17000 +fi
17001 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
17002 +  cat >>confdefs.h <<_ACEOF
17003 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17004 +_ACEOF
17005 +
17006 +fi
17007 +
17008  done
17009  
17010 -       for ac_hdr in sys/mman.h
17011 +
17012 +for ac_header in sys/mman.h
17013  do
17014 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17015 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17016 -echo "configure:5331: checking for $ac_hdr" >&5
17017 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17018 -  echo $ac_n "(cached) $ac_c" 1>&6
17019 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17020 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
17021 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
17022 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17023 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
17024 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17025 +fi
17026 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17027 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17028  else
17029 -  cat > conftest.$ac_ext <<EOF
17030 -#line 5336 "configure"
17031 -#include "confdefs.h"
17032 -#include <$ac_hdr>
17033 -EOF
17034 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17035 -{ (eval echo configure:5341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17036 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17037 -if test -z "$ac_err"; then
17038 -  rm -rf conftest*
17039 -  eval "ac_cv_header_$ac_safe=yes"
17040 +  # Is the header compilable?
17041 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
17042 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17043 +cat >conftest.$ac_ext <<_ACEOF
17044 +#line $LINENO "configure"
17045 +/* confdefs.h.  */
17046 +_ACEOF
17047 +cat confdefs.h >>conftest.$ac_ext
17048 +cat >>conftest.$ac_ext <<_ACEOF
17049 +/* end confdefs.h.  */
17050 +$ac_includes_default
17051 +#include <$ac_header>
17052 +_ACEOF
17053 +rm -f conftest.$ac_objext
17054 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17055 +  (eval $ac_compile) 2>&5
17056 +  ac_status=$?
17057 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 +  (exit $ac_status); } &&
17059 +         { ac_try='test -s conftest.$ac_objext'
17060 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061 +  (eval $ac_try) 2>&5
17062 +  ac_status=$?
17063 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 +  (exit $ac_status); }; }; then
17065 +  ac_header_compiler=yes
17066  else
17067 -  echo "$ac_err" >&5
17068 -  echo "configure: failed program was:" >&5
17069 -  cat conftest.$ac_ext >&5
17070 -  rm -rf conftest*
17071 -  eval "ac_cv_header_$ac_safe=no"
17072 +  echo "$as_me: failed program was:" >&5
17073 +sed 's/^/| /' conftest.$ac_ext >&5
17074 +
17075 +ac_header_compiler=no
17076  fi
17077 -rm -f conftest*
17078 +rm -f conftest.$ac_objext conftest.$ac_ext
17079 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17080 +echo "${ECHO_T}$ac_header_compiler" >&6
17081 +
17082 +# Is the header present?
17083 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
17084 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17085 +cat >conftest.$ac_ext <<_ACEOF
17086 +#line $LINENO "configure"
17087 +/* confdefs.h.  */
17088 +_ACEOF
17089 +cat confdefs.h >>conftest.$ac_ext
17090 +cat >>conftest.$ac_ext <<_ACEOF
17091 +/* end confdefs.h.  */
17092 +#include <$ac_header>
17093 +_ACEOF
17094 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17095 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17096 +  ac_status=$?
17097 +  grep -v '^ *+' conftest.er1 >conftest.err
17098 +  rm -f conftest.er1
17099 +  cat conftest.err >&5
17100 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 +  (exit $ac_status); } >/dev/null; then
17102 +  if test -s conftest.err; then
17103 +    ac_cpp_err=$ac_c_preproc_warn_flag
17104 +  else
17105 +    ac_cpp_err=
17106 +  fi
17107 +else
17108 +  ac_cpp_err=yes
17109  fi
17110 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17111 -  echo "$ac_t""yes" 1>&6
17112 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17113 -  cat >> confdefs.h <<EOF
17114 -#define $ac_tr_hdr 1
17115 -EOF
17116
17117 +if test -z "$ac_cpp_err"; then
17118 +  ac_header_preproc=yes
17119  else
17120 -  echo "$ac_t""no" 1>&6
17121 +  echo "$as_me: failed program was:" >&5
17122 +sed 's/^/| /' conftest.$ac_ext >&5
17123 +
17124 +  ac_header_preproc=no
17125  fi
17126 +rm -f conftest.err conftest.$ac_ext
17127 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17128 +echo "${ECHO_T}$ac_header_preproc" >&6
17129 +
17130 +# So?  What about this header?
17131 +case $ac_header_compiler:$ac_header_preproc in
17132 +  yes:no )
17133 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17134 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17135 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17136 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17137 +    (
17138 +      cat <<\_ASBOX
17139 +## ------------------------------------ ##
17140 +## Report this to bug-autoconf@gnu.org. ##
17141 +## ------------------------------------ ##
17142 +_ASBOX
17143 +    ) |
17144 +      sed "s/^/$as_me: WARNING:     /" >&2
17145 +    ;;
17146 +  no:yes )
17147 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17148 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17149 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17150 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17151 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17152 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17153 +    (
17154 +      cat <<\_ASBOX
17155 +## ------------------------------------ ##
17156 +## Report this to bug-autoconf@gnu.org. ##
17157 +## ------------------------------------ ##
17158 +_ASBOX
17159 +    ) |
17160 +      sed "s/^/$as_me: WARNING:     /" >&2
17161 +    ;;
17162 +esac
17163 +echo "$as_me:$LINENO: checking for $ac_header" >&5
17164 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17165 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
17166 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17167 +else
17168 +  eval "$as_ac_Header=$ac_header_preproc"
17169 +fi
17170 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17171 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17172 +
17173 +fi
17174 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
17175 +  cat >>confdefs.h <<_ACEOF
17176 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17177 +_ACEOF
17178 +
17179 +fi
17180 +
17181  done
17182  
17183         if test "$ac_cv_header_linux_fb_h" = yes && test "$ac_cv_header_linux_kd_h" = yes && test "$ac_cv_header_linux_vt_h" = yes && test "$ac_cv_header_sys_mman_h" = yes && test "$ac_cv_header_sys_ioctl_h" = yes && test "$cf_have_gpm" = yes; then
17184 -               cat >> confdefs.h <<\EOF
17185 +               cat >>confdefs.h <<\_ACEOF
17186  #define GRDRV_FB 1
17187 -EOF
17188 +_ACEOF
17189  
17190                 drivers="$drivers FB"
17191         fi
17192 @@ -5375,74 +13650,76 @@
17193  if test "$disable_directfb" != yes ; then
17194         # Extract the first word of "directfb-config", so it can be a program name with args.
17195  set dummy directfb-config; ac_word=$2
17196 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
17197 -echo "configure:5380: checking for $ac_word" >&5
17198 -if eval "test \"`echo '$''{'ac_cv_path_DIRECTFB_CONFIG'+set}'`\" = set"; then
17199 -  echo $ac_n "(cached) $ac_c" 1>&6
17200 +echo "$as_me:$LINENO: checking for $ac_word" >&5
17201 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17202 +if test "${ac_cv_path_DIRECTFB_CONFIG+set}" = set; then
17203 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17204  else
17205 -  case "$DIRECTFB_CONFIG" in
17206 -  /*)
17207 +  case $DIRECTFB_CONFIG in
17208 +  [\\/]* | ?:[\\/]*)
17209    ac_cv_path_DIRECTFB_CONFIG="$DIRECTFB_CONFIG" # Let the user override the test with a path.
17210    ;;
17211 -  ?:/*)                         
17212 -  ac_cv_path_DIRECTFB_CONFIG="$DIRECTFB_CONFIG" # Let the user override the test with a dos path.
17213 -  ;;
17214    *)
17215 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
17216 -  ac_dummy="$PATH"
17217 -  for ac_dir in $ac_dummy; do 
17218 -    test -z "$ac_dir" && ac_dir=.
17219 -    if test -f $ac_dir/$ac_word; then
17220 -      ac_cv_path_DIRECTFB_CONFIG="$ac_dir/$ac_word"
17221 -      break
17222 -    fi
17223 -  done
17224 -  IFS="$ac_save_ifs"
17225 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17226 +for as_dir in $PATH
17227 +do
17228 +  IFS=$as_save_IFS
17229 +  test -z "$as_dir" && as_dir=.
17230 +  for ac_exec_ext in '' $ac_executable_extensions; do
17231 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17232 +    ac_cv_path_DIRECTFB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17233 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17234 +    break 2
17235 +  fi
17236 +done
17237 +done
17238 +
17239    test -z "$ac_cv_path_DIRECTFB_CONFIG" && ac_cv_path_DIRECTFB_CONFIG="no"
17240    ;;
17241  esac
17242  fi
17243 -DIRECTFB_CONFIG="$ac_cv_path_DIRECTFB_CONFIG"
17244 +DIRECTFB_CONFIG=$ac_cv_path_DIRECTFB_CONFIG
17245 +
17246  if test -n "$DIRECTFB_CONFIG"; then
17247 -  echo "$ac_t""$DIRECTFB_CONFIG" 1>&6
17248 +  echo "$as_me:$LINENO: result: $DIRECTFB_CONFIG" >&5
17249 +echo "${ECHO_T}$DIRECTFB_CONFIG" >&6
17250  else
17251 -  echo "$ac_t""no" 1>&6
17252 +  echo "$as_me:$LINENO: result: no" >&5
17253 +echo "${ECHO_T}no" >&6
17254  fi
17255  
17256         if test "$DIRECTFB_CONFIG" != "no"; then
17257 -               echo $ac_n "checking for DirectFB >= 0.9.17""... $ac_c" 1>&6
17258 -echo "configure:5415: checking for DirectFB >= 0.9.17" >&5
17259 +               echo "$as_me:$LINENO: checking for DirectFB >= 0.9.17" >&5
17260 +echo $ECHO_N "checking for DirectFB >= 0.9.17... $ECHO_C" >&6
17261                 directfb_version=`$DIRECTFB_CONFIG --version`
17262                 if expr $directfb_version \>= 0.9.17 >/dev/null; then
17263 -                       echo "$ac_t""yes" 1>&6
17264 +                       echo "$as_me:$LINENO: result: yes" >&5
17265 +echo "${ECHO_T}yes" >&6
17266                         DIRECTFB_CFLAGS=`$DIRECTFB_CONFIG --cflags`
17267                         DIRECTFB_LIBS=`$DIRECTFB_CONFIG --libs`
17268 -                       cat >> confdefs.h <<\EOF
17269 +                       cat >>confdefs.h <<\_ACEOF
17270  #define GRDRV_DIRECTFB 1
17271 -EOF
17272 +_ACEOF
17273  
17274                         drivers="$drivers DIRECTFB"
17275                         CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
17276                         LIBS="$LIBS $DIRECTFB_LIBS"
17277                 else
17278 -                       echo "$ac_t""no" 1>&6
17279 +                       echo "$as_me:$LINENO: result: no" >&5
17280 +echo "${ECHO_T}no" >&6
17281                 fi
17282         fi
17283  fi
17284  
17285 -       # If we find X, set shell vars x_includes and x_libraries to the
17286 -# paths, otherwise set no_x=yes.
17287 -# Uses ac_ vars as temps to allow command line to override cache and checks.
17288 -# --without-x overrides everything else, but does not touch the cache.
17289 -echo $ac_n "checking for X""... $ac_c" 1>&6
17290 -echo "configure:5439: checking for X" >&5
17291 +       echo "$as_me:$LINENO: checking for X" >&5
17292 +echo $ECHO_N "checking for X... $ECHO_C" >&6
17293 +
17294  
17295  # Check whether --with-x or --without-x was given.
17296  if test "${with_x+set}" = set; then
17297    withval="$with_x"
17298 -  :
17299 -fi
17300  
17301 +fi;
17302  # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17303  if test "x$with_x" = xno; then
17304    # The user explicitly disabled X.
17305 @@ -5452,193 +13729,184 @@
17306      # Both variables are already set.
17307      have_x=yes
17308    else
17309 -if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
17310 -  echo $ac_n "(cached) $ac_c" 1>&6
17311 +    if test "${ac_cv_have_x+set}" = set; then
17312 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17313  else
17314    # One or both of the vars are not set, and there is no cached value.
17315 -ac_x_includes=NO ac_x_libraries=NO
17316 -rm -fr conftestdir
17317 -if mkdir conftestdir; then
17318 -  cd conftestdir
17319 +ac_x_includes=no ac_x_libraries=no
17320 +rm -fr conftest.dir
17321 +if mkdir conftest.dir; then
17322 +  cd conftest.dir
17323    # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17324 -  cat > Imakefile <<'EOF'
17325 +  cat >Imakefile <<'_ACEOF'
17326  acfindx:
17327         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17328 -EOF
17329 +_ACEOF
17330    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17331      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17332      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17333      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17334      for ac_extension in a so sl; do
17335        if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17336 -        test -f $ac_im_libdir/libX11.$ac_extension; then
17337 +         test -f $ac_im_libdir/libX11.$ac_extension; then
17338          ac_im_usrlibdir=$ac_im_libdir; break
17339        fi
17340      done
17341      # Screen out bogus values from the imake configuration.  They are
17342      # bogus both because they are the default anyway, and because
17343      # using them would break gcc on systems where it needs fixed includes.
17344 -    case "$ac_im_incroot" in
17345 +    case $ac_im_incroot in
17346         /usr/include) ;;
17347 -       *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
17348 +       *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17349      esac
17350 -    case "$ac_im_usrlibdir" in
17351 +    case $ac_im_usrlibdir in
17352         /usr/lib | /lib) ;;
17353 -       *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
17354 +       *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17355      esac
17356    fi
17357    cd ..
17358 -  rm -fr conftestdir
17359 +  rm -fr conftest.dir
17360  fi
17361  
17362 -if test "$ac_x_includes" = NO; then
17363 -  # Guess where to find include files, by looking for this one X11 .h file.
17364 -  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
17365 +# Standard set of common directories for X headers.
17366 +# Check X11 before X11Rn because it is often a symlink to the current release.
17367 +ac_x_header_dirs='
17368 +/usr/X11/include
17369 +/usr/X11R6/include
17370 +/usr/X11R5/include
17371 +/usr/X11R4/include
17372  
17373 +/usr/include/X11
17374 +/usr/include/X11R6
17375 +/usr/include/X11R5
17376 +/usr/include/X11R4
17377 +
17378 +/usr/local/X11/include
17379 +/usr/local/X11R6/include
17380 +/usr/local/X11R5/include
17381 +/usr/local/X11R4/include
17382 +
17383 +/usr/local/include/X11
17384 +/usr/local/include/X11R6
17385 +/usr/local/include/X11R5
17386 +/usr/local/include/X11R4
17387 +
17388 +/usr/X386/include
17389 +/usr/x386/include
17390 +/usr/XFree86/include/X11
17391 +
17392 +/usr/include
17393 +/usr/local/include
17394 +/usr/unsupported/include
17395 +/usr/athena/include
17396 +/usr/local/x11r5/include
17397 +/usr/lpp/Xamples/include
17398 +
17399 +/usr/openwin/include
17400 +/usr/openwin/share/include'
17401 +
17402 +if test "$ac_x_includes" = no; then
17403 +  # Guess where to find include files, by looking for Intrinsic.h.
17404    # First, try using that file with no special directory specified.
17405 -cat > conftest.$ac_ext <<EOF
17406 -#line 5501 "configure"
17407 -#include "confdefs.h"
17408 -#include <$x_direct_test_include>
17409 -EOF
17410 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17411 -{ (eval echo configure:5506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17412 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17413 -if test -z "$ac_err"; then
17414 -  rm -rf conftest*
17415 +  cat >conftest.$ac_ext <<_ACEOF
17416 +#line $LINENO "configure"
17417 +/* confdefs.h.  */
17418 +_ACEOF
17419 +cat confdefs.h >>conftest.$ac_ext
17420 +cat >>conftest.$ac_ext <<_ACEOF
17421 +/* end confdefs.h.  */
17422 +#include <X11/Intrinsic.h>
17423 +_ACEOF
17424 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17425 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17426 +  ac_status=$?
17427 +  grep -v '^ *+' conftest.er1 >conftest.err
17428 +  rm -f conftest.er1
17429 +  cat conftest.err >&5
17430 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 +  (exit $ac_status); } >/dev/null; then
17432 +  if test -s conftest.err; then
17433 +    ac_cpp_err=$ac_c_preproc_warn_flag
17434 +  else
17435 +    ac_cpp_err=
17436 +  fi
17437 +else
17438 +  ac_cpp_err=yes
17439 +fi
17440 +if test -z "$ac_cpp_err"; then
17441    # We can compile using X headers with no special include directory.
17442  ac_x_includes=
17443  else
17444 -  echo "$ac_err" >&5
17445 -  echo "configure: failed program was:" >&5
17446 -  cat conftest.$ac_ext >&5
17447 -  rm -rf conftest*
17448 -  # Look for the header file in a standard set of common directories.
17449 -# Check X11 before X11Rn because it is often a symlink to the current release.
17450 -  for ac_dir in               \
17451 -    /usr/X11/include          \
17452 -    /usr/X11R6/include        \
17453 -    /usr/X11R5/include        \
17454 -    /usr/X11R4/include        \
17455 -                              \
17456 -    /usr/include/X11          \
17457 -    /usr/include/X11R6        \
17458 -    /usr/include/X11R5        \
17459 -    /usr/include/X11R4        \
17460 -                              \
17461 -    /usr/local/X11/include    \
17462 -    /usr/local/X11R6/include  \
17463 -    /usr/local/X11R5/include  \
17464 -    /usr/local/X11R4/include  \
17465 -                              \
17466 -    /usr/local/include/X11    \
17467 -    /usr/local/include/X11R6  \
17468 -    /usr/local/include/X11R5  \
17469 -    /usr/local/include/X11R4  \
17470 -                              \
17471 -    /usr/X386/include         \
17472 -    /usr/x386/include         \
17473 -    /usr/XFree86/include/X11  \
17474 -                              \
17475 -    /usr/include              \
17476 -    /usr/local/include        \
17477 -    /usr/unsupported/include  \
17478 -    /usr/athena/include       \
17479 -    /usr/local/x11r5/include  \
17480 -    /usr/lpp/Xamples/include  \
17481 -                              \
17482 -    /usr/openwin/include      \
17483 -    /usr/openwin/share/include \
17484 -    ; \
17485 -  do
17486 -    if test -r "$ac_dir/$x_direct_test_include"; then
17487 -      ac_x_includes=$ac_dir
17488 -      break
17489 -    fi
17490 -  done
17491 +  echo "$as_me: failed program was:" >&5
17492 +sed 's/^/| /' conftest.$ac_ext >&5
17493 +
17494 +  for ac_dir in $ac_x_header_dirs; do
17495 +  if test -r "$ac_dir/X11/Intrinsic.h"; then
17496 +    ac_x_includes=$ac_dir
17497 +    break
17498 +  fi
17499 +done
17500  fi
17501 -rm -f conftest*
17502 -fi # $ac_x_includes = NO
17503 +rm -f conftest.err conftest.$ac_ext
17504 +fi # $ac_x_includes = no
17505  
17506 -if test "$ac_x_libraries" = NO; then
17507 +if test "$ac_x_libraries" = no; then
17508    # Check for the libraries.
17509 -
17510 -  test -z "$x_direct_test_library" && x_direct_test_library=Xt
17511 -  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
17512 -
17513    # See if we find them without any special options.
17514    # Don't add to $LIBS permanently.
17515 -  ac_save_LIBS="$LIBS"
17516 -  LIBS="-l$x_direct_test_library $LIBS"
17517 -cat > conftest.$ac_ext <<EOF
17518 -#line 5575 "configure"
17519 -#include "confdefs.h"
17520 -
17521 -int main() {
17522 -${x_direct_test_function}()
17523 -; return 0; }
17524 -EOF
17525 -if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17526 -  rm -rf conftest*
17527 -  LIBS="$ac_save_LIBS"
17528 +  ac_save_LIBS=$LIBS
17529 +  LIBS="-lXt $LIBS"
17530 +  cat >conftest.$ac_ext <<_ACEOF
17531 +#line $LINENO "configure"
17532 +/* confdefs.h.  */
17533 +_ACEOF
17534 +cat confdefs.h >>conftest.$ac_ext
17535 +cat >>conftest.$ac_ext <<_ACEOF
17536 +/* end confdefs.h.  */
17537 +#include <X11/Intrinsic.h>
17538 +int
17539 +main ()
17540 +{
17541 +XtMalloc (0)
17542 +  ;
17543 +  return 0;
17544 +}
17545 +_ACEOF
17546 +rm -f conftest.$ac_objext conftest$ac_exeext
17547 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17548 +  (eval $ac_link) 2>&5
17549 +  ac_status=$?
17550 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 +  (exit $ac_status); } &&
17552 +         { ac_try='test -s conftest$ac_exeext'
17553 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 +  (eval $ac_try) 2>&5
17555 +  ac_status=$?
17556 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 +  (exit $ac_status); }; }; then
17558 +  LIBS=$ac_save_LIBS
17559  # We can link X programs with no special library path.
17560  ac_x_libraries=
17561  else
17562 -  echo "configure: failed program was:" >&5
17563 -  cat conftest.$ac_ext >&5
17564 -  rm -rf conftest*
17565 -  LIBS="$ac_save_LIBS"
17566 -# First see if replacing the include by lib works.
17567 -# Check X11 before X11Rn because it is often a symlink to the current release.
17568 -for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
17569 -    /usr/X11/lib          \
17570 -    /usr/X11R6/lib        \
17571 -    /usr/X11R5/lib        \
17572 -    /usr/X11R4/lib        \
17573 -                          \
17574 -    /usr/lib/X11          \
17575 -    /usr/lib/X11R6        \
17576 -    /usr/lib/X11R5        \
17577 -    /usr/lib/X11R4        \
17578 -                          \
17579 -    /usr/local/X11/lib    \
17580 -    /usr/local/X11R6/lib  \
17581 -    /usr/local/X11R5/lib  \
17582 -    /usr/local/X11R4/lib  \
17583 -                          \
17584 -    /usr/local/lib/X11    \
17585 -    /usr/local/lib/X11R6  \
17586 -    /usr/local/lib/X11R5  \
17587 -    /usr/local/lib/X11R4  \
17588 -                          \
17589 -    /usr/X386/lib         \
17590 -    /usr/x386/lib         \
17591 -    /usr/XFree86/lib/X11  \
17592 -                          \
17593 -    /usr/lib              \
17594 -    /usr/local/lib        \
17595 -    /usr/unsupported/lib  \
17596 -    /usr/athena/lib       \
17597 -    /usr/local/x11r5/lib  \
17598 -    /usr/lpp/Xamples/lib  \
17599 -    /lib/usr/lib/X11     \
17600 -                          \
17601 -    /usr/openwin/lib      \
17602 -    /usr/openwin/share/lib \
17603 -    ; \
17604 +  echo "$as_me: failed program was:" >&5
17605 +sed 's/^/| /' conftest.$ac_ext >&5
17606 +
17607 +LIBS=$ac_save_LIBS
17608 +for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17609  do
17610 +  # Don't even attempt the hair of trying to link an X program!
17611    for ac_extension in a so sl; do
17612 -    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
17613 +    if test -r $ac_dir/libXt.$ac_extension; then
17614        ac_x_libraries=$ac_dir
17615        break 2
17616      fi
17617    done
17618  done
17619  fi
17620 -rm -f conftest*
17621 -fi # $ac_x_libraries = NO
17622 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17623 +fi # $ac_x_libraries = no
17624  
17625 -if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
17626 +if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
17627    # Didn't find X anywhere.  Cache the known absence of X.
17628    ac_cv_have_x="have_x=no"
17629  else
17630 @@ -5647,12 +13915,14 @@
17631                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
17632  fi
17633  fi
17634 +
17635    fi
17636    eval "$ac_cv_have_x"
17637  fi # $with_x != no
17638  
17639  if test "$have_x" != yes; then
17640 -  echo "$ac_t""$have_x" 1>&6
17641 +  echo "$as_me:$LINENO: result: $have_x" >&5
17642 +echo "${ECHO_T}$have_x" >&6
17643    no_x=yes
17644  else
17645    # If each of the values was on the command line, it overrides each guess.
17646 @@ -5661,111 +13931,234 @@
17647    # Update the cache value to reflect the command line values.
17648    ac_cv_have_x="have_x=yes \
17649                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
17650 -  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
17651 +  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
17652 +echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
17653  fi
17654  
17655  
17656         if test "$have_x" = yes; then
17657 -               cat >> confdefs.h <<\EOF
17658 +               cat >>confdefs.h <<\_ACEOF
17659  #define GRDRV_X 1
17660 -EOF
17661 +_ACEOF
17662  
17663                 test -n "$x_libraries" && LIBS="$LIBS -L$x_libraries"
17664                 LIBS="$LIBS -lX11"
17665                 test -n "$x_includes" && CPPFLAGS="$CPPFLAGS -I$x_includes"
17666                 drivers="$drivers X"
17667         elif test "$ac_cv_have_x2" != no; then
17668 -               echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
17669 -echo "configure:5680: checking for XOpenDisplay in -lX11" >&5
17670 -ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
17671 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17672 -  echo $ac_n "(cached) $ac_c" 1>&6
17673 +
17674 +echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
17675 +echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
17676 +if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
17677 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17678  else
17679 -  ac_save_LIBS="$LIBS"
17680 +  ac_check_lib_save_LIBS=$LIBS
17681  LIBS="-lX11  $LIBS"
17682 -cat > conftest.$ac_ext <<EOF
17683 -#line 5688 "configure"
17684 -#include "confdefs.h"
17685 +cat >conftest.$ac_ext <<_ACEOF
17686 +#line $LINENO "configure"
17687 +/* confdefs.h.  */
17688 +_ACEOF
17689 +cat confdefs.h >>conftest.$ac_ext
17690 +cat >>conftest.$ac_ext <<_ACEOF
17691 +/* end confdefs.h.  */
17692 +
17693  /* Override any gcc2 internal prototype to avoid an error.  */
17694 +#ifdef __cplusplus
17695 +extern "C"
17696 +#endif
17697  /* We use char because int might match the return type of a gcc2
17698 -    builtin and then its argument prototype would still apply.  */
17699 -char XOpenDisplay();
17700 -
17701 -int main() {
17702 -XOpenDisplay()
17703 -; return 0; }
17704 -EOF
17705 -if { (eval echo configure:5699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17706 -  rm -rf conftest*
17707 -  eval "ac_cv_lib_$ac_lib_var=yes"
17708 +   builtin and then its argument prototype would still apply.  */
17709 +char XOpenDisplay ();
17710 +int
17711 +main ()
17712 +{
17713 +XOpenDisplay ();
17714 +  ;
17715 +  return 0;
17716 +}
17717 +_ACEOF
17718 +rm -f conftest.$ac_objext conftest$ac_exeext
17719 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17720 +  (eval $ac_link) 2>&5
17721 +  ac_status=$?
17722 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 +  (exit $ac_status); } &&
17724 +         { ac_try='test -s conftest$ac_exeext'
17725 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726 +  (eval $ac_try) 2>&5
17727 +  ac_status=$?
17728 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 +  (exit $ac_status); }; }; then
17730 +  ac_cv_lib_X11_XOpenDisplay=yes
17731  else
17732 -  echo "configure: failed program was:" >&5
17733 -  cat conftest.$ac_ext >&5
17734 -  rm -rf conftest*
17735 -  eval "ac_cv_lib_$ac_lib_var=no"
17736 -fi
17737 -rm -f conftest*
17738 -LIBS="$ac_save_LIBS"
17739 +  echo "$as_me: failed program was:" >&5
17740 +sed 's/^/| /' conftest.$ac_ext >&5
17741  
17742 +ac_cv_lib_X11_XOpenDisplay=no
17743  fi
17744 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17745 -  echo "$ac_t""yes" 1>&6
17746 -    ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
17747 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
17748 -  cat >> confdefs.h <<EOF
17749 -#define $ac_tr_lib 1
17750 -EOF
17751 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17752 +LIBS=$ac_check_lib_save_LIBS
17753 +fi
17754 +echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
17755 +echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
17756 +if test $ac_cv_lib_X11_XOpenDisplay = yes; then
17757 +  cat >>confdefs.h <<_ACEOF
17758 +#define HAVE_LIBX11 1
17759 +_ACEOF
17760  
17761    LIBS="-lX11 $LIBS"
17762  
17763 -else
17764 -  echo "$ac_t""no" 1>&6
17765  fi
17766  
17767 -               for ac_hdr in X11/Xlib.h X11/X.h X11/Xutil.h X11/Xlocale.h
17768 +
17769 +
17770 +
17771 +
17772 +for ac_header in X11/Xlib.h X11/X.h X11/Xutil.h X11/Xlocale.h
17773  do
17774 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17775 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17776 -echo "configure:5730: checking for $ac_hdr" >&5
17777 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17778 -  echo $ac_n "(cached) $ac_c" 1>&6
17779 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17780 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
17781 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
17782 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17783 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
17784 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17785 +fi
17786 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17787 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17788  else
17789 -  cat > conftest.$ac_ext <<EOF
17790 -#line 5735 "configure"
17791 -#include "confdefs.h"
17792 -#include <$ac_hdr>
17793 -EOF
17794 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17795 -{ (eval echo configure:5740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17796 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17797 -if test -z "$ac_err"; then
17798 -  rm -rf conftest*
17799 -  eval "ac_cv_header_$ac_safe=yes"
17800 +  # Is the header compilable?
17801 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
17802 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17803 +cat >conftest.$ac_ext <<_ACEOF
17804 +#line $LINENO "configure"
17805 +/* confdefs.h.  */
17806 +_ACEOF
17807 +cat confdefs.h >>conftest.$ac_ext
17808 +cat >>conftest.$ac_ext <<_ACEOF
17809 +/* end confdefs.h.  */
17810 +$ac_includes_default
17811 +#include <$ac_header>
17812 +_ACEOF
17813 +rm -f conftest.$ac_objext
17814 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17815 +  (eval $ac_compile) 2>&5
17816 +  ac_status=$?
17817 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 +  (exit $ac_status); } &&
17819 +         { ac_try='test -s conftest.$ac_objext'
17820 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 +  (eval $ac_try) 2>&5
17822 +  ac_status=$?
17823 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 +  (exit $ac_status); }; }; then
17825 +  ac_header_compiler=yes
17826  else
17827 -  echo "$ac_err" >&5
17828 -  echo "configure: failed program was:" >&5
17829 -  cat conftest.$ac_ext >&5
17830 -  rm -rf conftest*
17831 -  eval "ac_cv_header_$ac_safe=no"
17832 +  echo "$as_me: failed program was:" >&5
17833 +sed 's/^/| /' conftest.$ac_ext >&5
17834 +
17835 +ac_header_compiler=no
17836  fi
17837 -rm -f conftest*
17838 +rm -f conftest.$ac_objext conftest.$ac_ext
17839 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17840 +echo "${ECHO_T}$ac_header_compiler" >&6
17841 +
17842 +# Is the header present?
17843 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
17844 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17845 +cat >conftest.$ac_ext <<_ACEOF
17846 +#line $LINENO "configure"
17847 +/* confdefs.h.  */
17848 +_ACEOF
17849 +cat confdefs.h >>conftest.$ac_ext
17850 +cat >>conftest.$ac_ext <<_ACEOF
17851 +/* end confdefs.h.  */
17852 +#include <$ac_header>
17853 +_ACEOF
17854 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17855 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17856 +  ac_status=$?
17857 +  grep -v '^ *+' conftest.er1 >conftest.err
17858 +  rm -f conftest.er1
17859 +  cat conftest.err >&5
17860 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 +  (exit $ac_status); } >/dev/null; then
17862 +  if test -s conftest.err; then
17863 +    ac_cpp_err=$ac_c_preproc_warn_flag
17864 +  else
17865 +    ac_cpp_err=
17866 +  fi
17867 +else
17868 +  ac_cpp_err=yes
17869  fi
17870 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17871 -  echo "$ac_t""yes" 1>&6
17872 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17873 -  cat >> confdefs.h <<EOF
17874 -#define $ac_tr_hdr 1
17875 -EOF
17876
17877 +if test -z "$ac_cpp_err"; then
17878 +  ac_header_preproc=yes
17879  else
17880 -  echo "$ac_t""no" 1>&6
17881 +  echo "$as_me: failed program was:" >&5
17882 +sed 's/^/| /' conftest.$ac_ext >&5
17883 +
17884 +  ac_header_preproc=no
17885 +fi
17886 +rm -f conftest.err conftest.$ac_ext
17887 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17888 +echo "${ECHO_T}$ac_header_preproc" >&6
17889 +
17890 +# So?  What about this header?
17891 +case $ac_header_compiler:$ac_header_preproc in
17892 +  yes:no )
17893 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17894 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17895 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17896 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17897 +    (
17898 +      cat <<\_ASBOX
17899 +## ------------------------------------ ##
17900 +## Report this to bug-autoconf@gnu.org. ##
17901 +## ------------------------------------ ##
17902 +_ASBOX
17903 +    ) |
17904 +      sed "s/^/$as_me: WARNING:     /" >&2
17905 +    ;;
17906 +  no:yes )
17907 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17908 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17909 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17910 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17911 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17912 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17913 +    (
17914 +      cat <<\_ASBOX
17915 +## ------------------------------------ ##
17916 +## Report this to bug-autoconf@gnu.org. ##
17917 +## ------------------------------------ ##
17918 +_ASBOX
17919 +    ) |
17920 +      sed "s/^/$as_me: WARNING:     /" >&2
17921 +    ;;
17922 +esac
17923 +echo "$as_me:$LINENO: checking for $ac_header" >&5
17924 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17925 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
17926 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17927 +else
17928 +  eval "$as_ac_Header=$ac_header_preproc"
17929 +fi
17930 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17931 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17932 +
17933 +fi
17934 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
17935 +  cat >>confdefs.h <<_ACEOF
17936 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17937 +_ACEOF
17938 +
17939  fi
17940 +
17941  done
17942  
17943                 if test "$ac_cv_have_libx11" = yes && test "$ac_cv_have_x11_xlib_h" = test && test "$ac_cv_have_x11_x_h" = test && test "$ac_cv_have_x11_xutil_h" = test && test "$ac_cv_have_x11_xlocale_h" = test; then
17944 -                       cat >> confdefs.h <<\EOF
17945 +                       cat >>confdefs.h <<\_ACEOF
17946  #define GRDRV_X 1
17947 -EOF
17948 +_ACEOF
17949  
17950                         drivers="$drivers X"
17951                         LIBS="$LIBS -lX11"
17952 @@ -5773,43 +14166,61 @@
17953         fi
17954  
17955  if test "$disable_pmshell" != yes ; then
17956 -       echo $ac_n "checking for pmshell""... $ac_c" 1>&6
17957 -echo "configure:5778: checking for pmshell" >&5
17958 -if eval "test \"`echo '$''{'ac_cv_have_pmshell'+set}'`\" = set"; then
17959 -  echo $ac_n "(cached) $ac_c" 1>&6
17960 +       echo "$as_me:$LINENO: checking for pmshell" >&5
17961 +echo $ECHO_N "checking for pmshell... $ECHO_C" >&6
17962 +if test "${ac_cv_have_pmshell+set}" = set; then
17963 +  echo $ECHO_N "(cached) $ECHO_C" >&6
17964  else
17965 -  cat > conftest.$ac_ext <<EOF
17966 -#line 5783 "configure"
17967 -#include "confdefs.h"
17968 +  cat >conftest.$ac_ext <<_ACEOF
17969 +#line $LINENO "configure"
17970 +/* confdefs.h.  */
17971 +_ACEOF
17972 +cat confdefs.h >>conftest.$ac_ext
17973 +cat >>conftest.$ac_ext <<_ACEOF
17974 +/* end confdefs.h.  */
17975  #define INCL_WIN
17976                         #define INCL_GPI
17977                         #include <os2.h>
17978                         #include <sys/fmutex.h>
17979 -int main() {
17980 +int
17981 +main ()
17982 +{
17983  _fmutex mutex;
17984                         WinDrawText(NULLHANDLE, -1, NULL, NULL, 0, 0, 0),
17985                         GpiSetPel(NULLHANDLE, NULL)
17986 -; return 0; }
17987 -EOF
17988 -if { (eval echo configure:5795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17989 -  rm -rf conftest*
17990 +  ;
17991 +  return 0;
17992 +}
17993 +_ACEOF
17994 +rm -f conftest.$ac_objext conftest$ac_exeext
17995 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996 +  (eval $ac_link) 2>&5
17997 +  ac_status=$?
17998 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 +  (exit $ac_status); } &&
18000 +         { ac_try='test -s conftest$ac_exeext'
18001 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002 +  (eval $ac_try) 2>&5
18003 +  ac_status=$?
18004 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 +  (exit $ac_status); }; }; then
18006    ac_cv_have_pmshell=yes
18007  else
18008 -  echo "configure: failed program was:" >&5
18009 -  cat conftest.$ac_ext >&5
18010 -  rm -rf conftest*
18011 -  ac_cv_have_pmshell=no
18012 +  echo "$as_me: failed program was:" >&5
18013 +sed 's/^/| /' conftest.$ac_ext >&5
18014 +
18015 +ac_cv_have_pmshell=no
18016  fi
18017 -rm -f conftest*
18018 -       
18019 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18020 +
18021  fi
18022 +echo "$as_me:$LINENO: result: $ac_cv_have_pmshell" >&5
18023 +echo "${ECHO_T}$ac_cv_have_pmshell" >&6
18024  
18025 -echo "$ac_t""$ac_cv_have_pmshell" 1>&6
18026 -                       
18027         if test "$ac_cv_have_pmshell" = yes; then
18028 -               cat >> confdefs.h <<\EOF
18029 +               cat >>confdefs.h <<\_ACEOF
18030  #define GRDRV_PMSHELL 1
18031 -EOF
18032 +_ACEOF
18033  
18034                 drivers="$drivers PMSHELL"
18035         fi
18036 @@ -5818,244 +14229,856 @@
18037  if test "$disable_atheos" != yes ; then
18038         old_ext="$ac_ext"
18039         ac_ext=cpp
18040 -       for ac_hdr in gui/view.h
18041 +
18042 +for ac_header in gui/view.h
18043  do
18044 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18045 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18046 -echo "configure:5826: checking for $ac_hdr" >&5
18047 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18048 -  echo $ac_n "(cached) $ac_c" 1>&6
18049 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18050 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18051 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
18052 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18053 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18054 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18055 +fi
18056 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18057 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18058  else
18059 -  cat > conftest.$ac_ext <<EOF
18060 -#line 5831 "configure"
18061 -#include "confdefs.h"
18062 -#include <$ac_hdr>
18063 -EOF
18064 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18065 -{ (eval echo configure:5836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18066 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18067 -if test -z "$ac_err"; then
18068 -  rm -rf conftest*
18069 -  eval "ac_cv_header_$ac_safe=yes"
18070 +  # Is the header compilable?
18071 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
18072 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18073 +cat >conftest.$ac_ext <<_ACEOF
18074 +#line $LINENO "configure"
18075 +/* confdefs.h.  */
18076 +_ACEOF
18077 +cat confdefs.h >>conftest.$ac_ext
18078 +cat >>conftest.$ac_ext <<_ACEOF
18079 +/* end confdefs.h.  */
18080 +$ac_includes_default
18081 +#include <$ac_header>
18082 +_ACEOF
18083 +rm -f conftest.$ac_objext
18084 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18085 +  (eval $ac_compile) 2>&5
18086 +  ac_status=$?
18087 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 +  (exit $ac_status); } &&
18089 +         { ac_try='test -s conftest.$ac_objext'
18090 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091 +  (eval $ac_try) 2>&5
18092 +  ac_status=$?
18093 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 +  (exit $ac_status); }; }; then
18095 +  ac_header_compiler=yes
18096  else
18097 -  echo "$ac_err" >&5
18098 -  echo "configure: failed program was:" >&5
18099 -  cat conftest.$ac_ext >&5
18100 -  rm -rf conftest*
18101 -  eval "ac_cv_header_$ac_safe=no"
18102 +  echo "$as_me: failed program was:" >&5
18103 +sed 's/^/| /' conftest.$ac_ext >&5
18104 +
18105 +ac_header_compiler=no
18106  fi
18107 -rm -f conftest*
18108 +rm -f conftest.$ac_objext conftest.$ac_ext
18109 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18110 +echo "${ECHO_T}$ac_header_compiler" >&6
18111 +
18112 +# Is the header present?
18113 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
18114 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18115 +cat >conftest.$ac_ext <<_ACEOF
18116 +#line $LINENO "configure"
18117 +/* confdefs.h.  */
18118 +_ACEOF
18119 +cat confdefs.h >>conftest.$ac_ext
18120 +cat >>conftest.$ac_ext <<_ACEOF
18121 +/* end confdefs.h.  */
18122 +#include <$ac_header>
18123 +_ACEOF
18124 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18125 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18126 +  ac_status=$?
18127 +  grep -v '^ *+' conftest.er1 >conftest.err
18128 +  rm -f conftest.er1
18129 +  cat conftest.err >&5
18130 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 +  (exit $ac_status); } >/dev/null; then
18132 +  if test -s conftest.err; then
18133 +    ac_cpp_err=$ac_c_preproc_warn_flag
18134 +  else
18135 +    ac_cpp_err=
18136 +  fi
18137 +else
18138 +  ac_cpp_err=yes
18139  fi
18140 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18141 -  echo "$ac_t""yes" 1>&6
18142 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18143 -  cat >> confdefs.h <<EOF
18144 -#define $ac_tr_hdr 1
18145 -EOF
18146
18147 +if test -z "$ac_cpp_err"; then
18148 +  ac_header_preproc=yes
18149  else
18150 -  echo "$ac_t""no" 1>&6
18151 +  echo "$as_me: failed program was:" >&5
18152 +sed 's/^/| /' conftest.$ac_ext >&5
18153 +
18154 +  ac_header_preproc=no
18155 +fi
18156 +rm -f conftest.err conftest.$ac_ext
18157 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18158 +echo "${ECHO_T}$ac_header_preproc" >&6
18159 +
18160 +# So?  What about this header?
18161 +case $ac_header_compiler:$ac_header_preproc in
18162 +  yes:no )
18163 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18164 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18165 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18166 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18167 +    (
18168 +      cat <<\_ASBOX
18169 +## ------------------------------------ ##
18170 +## Report this to bug-autoconf@gnu.org. ##
18171 +## ------------------------------------ ##
18172 +_ASBOX
18173 +    ) |
18174 +      sed "s/^/$as_me: WARNING:     /" >&2
18175 +    ;;
18176 +  no:yes )
18177 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18178 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18179 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18180 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18181 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18182 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18183 +    (
18184 +      cat <<\_ASBOX
18185 +## ------------------------------------ ##
18186 +## Report this to bug-autoconf@gnu.org. ##
18187 +## ------------------------------------ ##
18188 +_ASBOX
18189 +    ) |
18190 +      sed "s/^/$as_me: WARNING:     /" >&2
18191 +    ;;
18192 +esac
18193 +echo "$as_me:$LINENO: checking for $ac_header" >&5
18194 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18195 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18196 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18197 +else
18198 +  eval "$as_ac_Header=$ac_header_preproc"
18199  fi
18200 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18201 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18202 +
18203 +fi
18204 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
18205 +  cat >>confdefs.h <<_ACEOF
18206 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18207 +_ACEOF
18208 +
18209 +fi
18210 +
18211  done
18212  
18213 -       for ac_hdr in gui/window.h
18214 +
18215 +for ac_header in gui/window.h
18216  do
18217 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18218 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18219 -echo "configure:5866: checking for $ac_hdr" >&5
18220 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18221 -  echo $ac_n "(cached) $ac_c" 1>&6
18222 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18223 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18224 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
18225 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18226 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18227 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18228 +fi
18229 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18230 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18231  else
18232 -  cat > conftest.$ac_ext <<EOF
18233 -#line 5871 "configure"
18234 -#include "confdefs.h"
18235 -#include <$ac_hdr>
18236 -EOF
18237 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18238 -{ (eval echo configure:5876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18239 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18240 -if test -z "$ac_err"; then
18241 -  rm -rf conftest*
18242 -  eval "ac_cv_header_$ac_safe=yes"
18243 +  # Is the header compilable?
18244 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
18245 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18246 +cat >conftest.$ac_ext <<_ACEOF
18247 +#line $LINENO "configure"
18248 +/* confdefs.h.  */
18249 +_ACEOF
18250 +cat confdefs.h >>conftest.$ac_ext
18251 +cat >>conftest.$ac_ext <<_ACEOF
18252 +/* end confdefs.h.  */
18253 +$ac_includes_default
18254 +#include <$ac_header>
18255 +_ACEOF
18256 +rm -f conftest.$ac_objext
18257 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18258 +  (eval $ac_compile) 2>&5
18259 +  ac_status=$?
18260 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 +  (exit $ac_status); } &&
18262 +         { ac_try='test -s conftest.$ac_objext'
18263 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264 +  (eval $ac_try) 2>&5
18265 +  ac_status=$?
18266 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 +  (exit $ac_status); }; }; then
18268 +  ac_header_compiler=yes
18269  else
18270 -  echo "$ac_err" >&5
18271 -  echo "configure: failed program was:" >&5
18272 -  cat conftest.$ac_ext >&5
18273 -  rm -rf conftest*
18274 -  eval "ac_cv_header_$ac_safe=no"
18275 +  echo "$as_me: failed program was:" >&5
18276 +sed 's/^/| /' conftest.$ac_ext >&5
18277 +
18278 +ac_header_compiler=no
18279  fi
18280 -rm -f conftest*
18281 +rm -f conftest.$ac_objext conftest.$ac_ext
18282 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18283 +echo "${ECHO_T}$ac_header_compiler" >&6
18284 +
18285 +# Is the header present?
18286 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
18287 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18288 +cat >conftest.$ac_ext <<_ACEOF
18289 +#line $LINENO "configure"
18290 +/* confdefs.h.  */
18291 +_ACEOF
18292 +cat confdefs.h >>conftest.$ac_ext
18293 +cat >>conftest.$ac_ext <<_ACEOF
18294 +/* end confdefs.h.  */
18295 +#include <$ac_header>
18296 +_ACEOF
18297 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18298 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18299 +  ac_status=$?
18300 +  grep -v '^ *+' conftest.er1 >conftest.err
18301 +  rm -f conftest.er1
18302 +  cat conftest.err >&5
18303 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 +  (exit $ac_status); } >/dev/null; then
18305 +  if test -s conftest.err; then
18306 +    ac_cpp_err=$ac_c_preproc_warn_flag
18307 +  else
18308 +    ac_cpp_err=
18309 +  fi
18310 +else
18311 +  ac_cpp_err=yes
18312  fi
18313 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18314 -  echo "$ac_t""yes" 1>&6
18315 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18316 -  cat >> confdefs.h <<EOF
18317 -#define $ac_tr_hdr 1
18318 -EOF
18319
18320 +if test -z "$ac_cpp_err"; then
18321 +  ac_header_preproc=yes
18322  else
18323 -  echo "$ac_t""no" 1>&6
18324 +  echo "$as_me: failed program was:" >&5
18325 +sed 's/^/| /' conftest.$ac_ext >&5
18326 +
18327 +  ac_header_preproc=no
18328  fi
18329 +rm -f conftest.err conftest.$ac_ext
18330 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18331 +echo "${ECHO_T}$ac_header_preproc" >&6
18332 +
18333 +# So?  What about this header?
18334 +case $ac_header_compiler:$ac_header_preproc in
18335 +  yes:no )
18336 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18337 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18338 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18339 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18340 +    (
18341 +      cat <<\_ASBOX
18342 +## ------------------------------------ ##
18343 +## Report this to bug-autoconf@gnu.org. ##
18344 +## ------------------------------------ ##
18345 +_ASBOX
18346 +    ) |
18347 +      sed "s/^/$as_me: WARNING:     /" >&2
18348 +    ;;
18349 +  no:yes )
18350 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18351 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18352 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18353 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18354 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18355 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18356 +    (
18357 +      cat <<\_ASBOX
18358 +## ------------------------------------ ##
18359 +## Report this to bug-autoconf@gnu.org. ##
18360 +## ------------------------------------ ##
18361 +_ASBOX
18362 +    ) |
18363 +      sed "s/^/$as_me: WARNING:     /" >&2
18364 +    ;;
18365 +esac
18366 +echo "$as_me:$LINENO: checking for $ac_header" >&5
18367 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18368 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18369 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18370 +else
18371 +  eval "$as_ac_Header=$ac_header_preproc"
18372 +fi
18373 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18374 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18375 +
18376 +fi
18377 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
18378 +  cat >>confdefs.h <<_ACEOF
18379 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18380 +_ACEOF
18381 +
18382 +fi
18383 +
18384  done
18385  
18386 -       for ac_hdr in gui/desktop.h
18387 +
18388 +for ac_header in gui/desktop.h
18389  do
18390 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18391 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18392 -echo "configure:5906: checking for $ac_hdr" >&5
18393 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18394 -  echo $ac_n "(cached) $ac_c" 1>&6
18395 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18396 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18397 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
18398 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18399 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18400 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18401 +fi
18402 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18403 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18404  else
18405 -  cat > conftest.$ac_ext <<EOF
18406 -#line 5911 "configure"
18407 -#include "confdefs.h"
18408 -#include <$ac_hdr>
18409 -EOF
18410 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18411 -{ (eval echo configure:5916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18412 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18413 -if test -z "$ac_err"; then
18414 -  rm -rf conftest*
18415 -  eval "ac_cv_header_$ac_safe=yes"
18416 +  # Is the header compilable?
18417 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
18418 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18419 +cat >conftest.$ac_ext <<_ACEOF
18420 +#line $LINENO "configure"
18421 +/* confdefs.h.  */
18422 +_ACEOF
18423 +cat confdefs.h >>conftest.$ac_ext
18424 +cat >>conftest.$ac_ext <<_ACEOF
18425 +/* end confdefs.h.  */
18426 +$ac_includes_default
18427 +#include <$ac_header>
18428 +_ACEOF
18429 +rm -f conftest.$ac_objext
18430 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18431 +  (eval $ac_compile) 2>&5
18432 +  ac_status=$?
18433 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 +  (exit $ac_status); } &&
18435 +         { ac_try='test -s conftest.$ac_objext'
18436 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437 +  (eval $ac_try) 2>&5
18438 +  ac_status=$?
18439 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 +  (exit $ac_status); }; }; then
18441 +  ac_header_compiler=yes
18442  else
18443 -  echo "$ac_err" >&5
18444 -  echo "configure: failed program was:" >&5
18445 -  cat conftest.$ac_ext >&5
18446 -  rm -rf conftest*
18447 -  eval "ac_cv_header_$ac_safe=no"
18448 +  echo "$as_me: failed program was:" >&5
18449 +sed 's/^/| /' conftest.$ac_ext >&5
18450 +
18451 +ac_header_compiler=no
18452  fi
18453 -rm -f conftest*
18454 +rm -f conftest.$ac_objext conftest.$ac_ext
18455 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18456 +echo "${ECHO_T}$ac_header_compiler" >&6
18457 +
18458 +# Is the header present?
18459 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
18460 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18461 +cat >conftest.$ac_ext <<_ACEOF
18462 +#line $LINENO "configure"
18463 +/* confdefs.h.  */
18464 +_ACEOF
18465 +cat confdefs.h >>conftest.$ac_ext
18466 +cat >>conftest.$ac_ext <<_ACEOF
18467 +/* end confdefs.h.  */
18468 +#include <$ac_header>
18469 +_ACEOF
18470 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18471 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18472 +  ac_status=$?
18473 +  grep -v '^ *+' conftest.er1 >conftest.err
18474 +  rm -f conftest.er1
18475 +  cat conftest.err >&5
18476 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 +  (exit $ac_status); } >/dev/null; then
18478 +  if test -s conftest.err; then
18479 +    ac_cpp_err=$ac_c_preproc_warn_flag
18480 +  else
18481 +    ac_cpp_err=
18482 +  fi
18483 +else
18484 +  ac_cpp_err=yes
18485  fi
18486 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18487 -  echo "$ac_t""yes" 1>&6
18488 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18489 -  cat >> confdefs.h <<EOF
18490 -#define $ac_tr_hdr 1
18491 -EOF
18492
18493 +if test -z "$ac_cpp_err"; then
18494 +  ac_header_preproc=yes
18495  else
18496 -  echo "$ac_t""no" 1>&6
18497 +  echo "$as_me: failed program was:" >&5
18498 +sed 's/^/| /' conftest.$ac_ext >&5
18499 +
18500 +  ac_header_preproc=no
18501  fi
18502 +rm -f conftest.err conftest.$ac_ext
18503 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18504 +echo "${ECHO_T}$ac_header_preproc" >&6
18505 +
18506 +# So?  What about this header?
18507 +case $ac_header_compiler:$ac_header_preproc in
18508 +  yes:no )
18509 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18510 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18511 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18512 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18513 +    (
18514 +      cat <<\_ASBOX
18515 +## ------------------------------------ ##
18516 +## Report this to bug-autoconf@gnu.org. ##
18517 +## ------------------------------------ ##
18518 +_ASBOX
18519 +    ) |
18520 +      sed "s/^/$as_me: WARNING:     /" >&2
18521 +    ;;
18522 +  no:yes )
18523 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18524 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18525 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18526 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18527 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18528 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18529 +    (
18530 +      cat <<\_ASBOX
18531 +## ------------------------------------ ##
18532 +## Report this to bug-autoconf@gnu.org. ##
18533 +## ------------------------------------ ##
18534 +_ASBOX
18535 +    ) |
18536 +      sed "s/^/$as_me: WARNING:     /" >&2
18537 +    ;;
18538 +esac
18539 +echo "$as_me:$LINENO: checking for $ac_header" >&5
18540 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18541 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18542 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18543 +else
18544 +  eval "$as_ac_Header=$ac_header_preproc"
18545 +fi
18546 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18547 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18548 +
18549 +fi
18550 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
18551 +  cat >>confdefs.h <<_ACEOF
18552 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18553 +_ACEOF
18554 +
18555 +fi
18556 +
18557  done
18558  
18559 -       for ac_hdr in gui/bitmap.h
18560 +
18561 +for ac_header in gui/bitmap.h
18562  do
18563 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18564 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18565 -echo "configure:5946: checking for $ac_hdr" >&5
18566 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18567 -  echo $ac_n "(cached) $ac_c" 1>&6
18568 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18569 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18570 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
18571 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18572 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18573 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18574 +fi
18575 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18576 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18577  else
18578 -  cat > conftest.$ac_ext <<EOF
18579 -#line 5951 "configure"
18580 -#include "confdefs.h"
18581 -#include <$ac_hdr>
18582 -EOF
18583 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18584 -{ (eval echo configure:5956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18585 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18586 -if test -z "$ac_err"; then
18587 -  rm -rf conftest*
18588 -  eval "ac_cv_header_$ac_safe=yes"
18589 +  # Is the header compilable?
18590 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
18591 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18592 +cat >conftest.$ac_ext <<_ACEOF
18593 +#line $LINENO "configure"
18594 +/* confdefs.h.  */
18595 +_ACEOF
18596 +cat confdefs.h >>conftest.$ac_ext
18597 +cat >>conftest.$ac_ext <<_ACEOF
18598 +/* end confdefs.h.  */
18599 +$ac_includes_default
18600 +#include <$ac_header>
18601 +_ACEOF
18602 +rm -f conftest.$ac_objext
18603 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18604 +  (eval $ac_compile) 2>&5
18605 +  ac_status=$?
18606 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 +  (exit $ac_status); } &&
18608 +         { ac_try='test -s conftest.$ac_objext'
18609 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610 +  (eval $ac_try) 2>&5
18611 +  ac_status=$?
18612 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 +  (exit $ac_status); }; }; then
18614 +  ac_header_compiler=yes
18615  else
18616 -  echo "$ac_err" >&5
18617 -  echo "configure: failed program was:" >&5
18618 -  cat conftest.$ac_ext >&5
18619 -  rm -rf conftest*
18620 -  eval "ac_cv_header_$ac_safe=no"
18621 +  echo "$as_me: failed program was:" >&5
18622 +sed 's/^/| /' conftest.$ac_ext >&5
18623 +
18624 +ac_header_compiler=no
18625  fi
18626 -rm -f conftest*
18627 +rm -f conftest.$ac_objext conftest.$ac_ext
18628 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18629 +echo "${ECHO_T}$ac_header_compiler" >&6
18630 +
18631 +# Is the header present?
18632 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
18633 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18634 +cat >conftest.$ac_ext <<_ACEOF
18635 +#line $LINENO "configure"
18636 +/* confdefs.h.  */
18637 +_ACEOF
18638 +cat confdefs.h >>conftest.$ac_ext
18639 +cat >>conftest.$ac_ext <<_ACEOF
18640 +/* end confdefs.h.  */
18641 +#include <$ac_header>
18642 +_ACEOF
18643 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18644 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18645 +  ac_status=$?
18646 +  grep -v '^ *+' conftest.er1 >conftest.err
18647 +  rm -f conftest.er1
18648 +  cat conftest.err >&5
18649 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 +  (exit $ac_status); } >/dev/null; then
18651 +  if test -s conftest.err; then
18652 +    ac_cpp_err=$ac_c_preproc_warn_flag
18653 +  else
18654 +    ac_cpp_err=
18655 +  fi
18656 +else
18657 +  ac_cpp_err=yes
18658  fi
18659 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18660 -  echo "$ac_t""yes" 1>&6
18661 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18662 -  cat >> confdefs.h <<EOF
18663 -#define $ac_tr_hdr 1
18664 -EOF
18665
18666 +if test -z "$ac_cpp_err"; then
18667 +  ac_header_preproc=yes
18668  else
18669 -  echo "$ac_t""no" 1>&6
18670 +  echo "$as_me: failed program was:" >&5
18671 +sed 's/^/| /' conftest.$ac_ext >&5
18672 +
18673 +  ac_header_preproc=no
18674  fi
18675 +rm -f conftest.err conftest.$ac_ext
18676 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18677 +echo "${ECHO_T}$ac_header_preproc" >&6
18678 +
18679 +# So?  What about this header?
18680 +case $ac_header_compiler:$ac_header_preproc in
18681 +  yes:no )
18682 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18683 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18684 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18685 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18686 +    (
18687 +      cat <<\_ASBOX
18688 +## ------------------------------------ ##
18689 +## Report this to bug-autoconf@gnu.org. ##
18690 +## ------------------------------------ ##
18691 +_ASBOX
18692 +    ) |
18693 +      sed "s/^/$as_me: WARNING:     /" >&2
18694 +    ;;
18695 +  no:yes )
18696 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18697 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18698 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18699 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18700 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18701 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18702 +    (
18703 +      cat <<\_ASBOX
18704 +## ------------------------------------ ##
18705 +## Report this to bug-autoconf@gnu.org. ##
18706 +## ------------------------------------ ##
18707 +_ASBOX
18708 +    ) |
18709 +      sed "s/^/$as_me: WARNING:     /" >&2
18710 +    ;;
18711 +esac
18712 +echo "$as_me:$LINENO: checking for $ac_header" >&5
18713 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18714 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18715 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18716 +else
18717 +  eval "$as_ac_Header=$ac_header_preproc"
18718 +fi
18719 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18720 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18721 +
18722 +fi
18723 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
18724 +  cat >>confdefs.h <<_ACEOF
18725 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18726 +_ACEOF
18727 +
18728 +fi
18729 +
18730  done
18731  
18732 -       for ac_hdr in util/locker.h
18733 +
18734 +for ac_header in util/locker.h
18735  do
18736 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18737 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18738 -echo "configure:5986: checking for $ac_hdr" >&5
18739 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18740 -  echo $ac_n "(cached) $ac_c" 1>&6
18741 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18742 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18743 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
18744 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18745 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18746 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18747 +fi
18748 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18749 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18750  else
18751 -  cat > conftest.$ac_ext <<EOF
18752 -#line 5991 "configure"
18753 -#include "confdefs.h"
18754 -#include <$ac_hdr>
18755 -EOF
18756 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18757 -{ (eval echo configure:5996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18758 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18759 -if test -z "$ac_err"; then
18760 -  rm -rf conftest*
18761 -  eval "ac_cv_header_$ac_safe=yes"
18762 +  # Is the header compilable?
18763 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
18764 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18765 +cat >conftest.$ac_ext <<_ACEOF
18766 +#line $LINENO "configure"
18767 +/* confdefs.h.  */
18768 +_ACEOF
18769 +cat confdefs.h >>conftest.$ac_ext
18770 +cat >>conftest.$ac_ext <<_ACEOF
18771 +/* end confdefs.h.  */
18772 +$ac_includes_default
18773 +#include <$ac_header>
18774 +_ACEOF
18775 +rm -f conftest.$ac_objext
18776 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18777 +  (eval $ac_compile) 2>&5
18778 +  ac_status=$?
18779 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 +  (exit $ac_status); } &&
18781 +         { ac_try='test -s conftest.$ac_objext'
18782 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 +  (eval $ac_try) 2>&5
18784 +  ac_status=$?
18785 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 +  (exit $ac_status); }; }; then
18787 +  ac_header_compiler=yes
18788  else
18789 -  echo "$ac_err" >&5
18790 -  echo "configure: failed program was:" >&5
18791 -  cat conftest.$ac_ext >&5
18792 -  rm -rf conftest*
18793 -  eval "ac_cv_header_$ac_safe=no"
18794 +  echo "$as_me: failed program was:" >&5
18795 +sed 's/^/| /' conftest.$ac_ext >&5
18796 +
18797 +ac_header_compiler=no
18798  fi
18799 -rm -f conftest*
18800 +rm -f conftest.$ac_objext conftest.$ac_ext
18801 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18802 +echo "${ECHO_T}$ac_header_compiler" >&6
18803 +
18804 +# Is the header present?
18805 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
18806 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18807 +cat >conftest.$ac_ext <<_ACEOF
18808 +#line $LINENO "configure"
18809 +/* confdefs.h.  */
18810 +_ACEOF
18811 +cat confdefs.h >>conftest.$ac_ext
18812 +cat >>conftest.$ac_ext <<_ACEOF
18813 +/* end confdefs.h.  */
18814 +#include <$ac_header>
18815 +_ACEOF
18816 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18817 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18818 +  ac_status=$?
18819 +  grep -v '^ *+' conftest.er1 >conftest.err
18820 +  rm -f conftest.er1
18821 +  cat conftest.err >&5
18822 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 +  (exit $ac_status); } >/dev/null; then
18824 +  if test -s conftest.err; then
18825 +    ac_cpp_err=$ac_c_preproc_warn_flag
18826 +  else
18827 +    ac_cpp_err=
18828 +  fi
18829 +else
18830 +  ac_cpp_err=yes
18831  fi
18832 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18833 -  echo "$ac_t""yes" 1>&6
18834 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18835 -  cat >> confdefs.h <<EOF
18836 -#define $ac_tr_hdr 1
18837 -EOF
18838
18839 +if test -z "$ac_cpp_err"; then
18840 +  ac_header_preproc=yes
18841  else
18842 -  echo "$ac_t""no" 1>&6
18843 +  echo "$as_me: failed program was:" >&5
18844 +sed 's/^/| /' conftest.$ac_ext >&5
18845 +
18846 +  ac_header_preproc=no
18847 +fi
18848 +rm -f conftest.err conftest.$ac_ext
18849 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18850 +echo "${ECHO_T}$ac_header_preproc" >&6
18851 +
18852 +# So?  What about this header?
18853 +case $ac_header_compiler:$ac_header_preproc in
18854 +  yes:no )
18855 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18856 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18857 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18858 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18859 +    (
18860 +      cat <<\_ASBOX
18861 +## ------------------------------------ ##
18862 +## Report this to bug-autoconf@gnu.org. ##
18863 +## ------------------------------------ ##
18864 +_ASBOX
18865 +    ) |
18866 +      sed "s/^/$as_me: WARNING:     /" >&2
18867 +    ;;
18868 +  no:yes )
18869 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18870 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18871 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18872 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18873 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18874 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18875 +    (
18876 +      cat <<\_ASBOX
18877 +## ------------------------------------ ##
18878 +## Report this to bug-autoconf@gnu.org. ##
18879 +## ------------------------------------ ##
18880 +_ASBOX
18881 +    ) |
18882 +      sed "s/^/$as_me: WARNING:     /" >&2
18883 +    ;;
18884 +esac
18885 +echo "$as_me:$LINENO: checking for $ac_header" >&5
18886 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18887 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18888 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18889 +else
18890 +  eval "$as_ac_Header=$ac_header_preproc"
18891 +fi
18892 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18893 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18894 +
18895 +fi
18896 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
18897 +  cat >>confdefs.h <<_ACEOF
18898 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18899 +_ACEOF
18900 +
18901  fi
18902 +
18903  done
18904  
18905 -       for ac_hdr in util/application.h
18906 +
18907 +for ac_header in util/application.h
18908  do
18909 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18910 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18911 -echo "configure:6026: checking for $ac_hdr" >&5
18912 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18913 -  echo $ac_n "(cached) $ac_c" 1>&6
18914 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18915 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18916 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
18917 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18918 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18919 +  echo $ECHO_N "(cached) $ECHO_C" >&6
18920 +fi
18921 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18922 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18923  else
18924 -  cat > conftest.$ac_ext <<EOF
18925 -#line 6031 "configure"
18926 -#include "confdefs.h"
18927 -#include <$ac_hdr>
18928 -EOF
18929 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18930 -{ (eval echo configure:6036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18931 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18932 -if test -z "$ac_err"; then
18933 -  rm -rf conftest*
18934 -  eval "ac_cv_header_$ac_safe=yes"
18935 +  # Is the header compilable?
18936 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
18937 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18938 +cat >conftest.$ac_ext <<_ACEOF
18939 +#line $LINENO "configure"
18940 +/* confdefs.h.  */
18941 +_ACEOF
18942 +cat confdefs.h >>conftest.$ac_ext
18943 +cat >>conftest.$ac_ext <<_ACEOF
18944 +/* end confdefs.h.  */
18945 +$ac_includes_default
18946 +#include <$ac_header>
18947 +_ACEOF
18948 +rm -f conftest.$ac_objext
18949 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18950 +  (eval $ac_compile) 2>&5
18951 +  ac_status=$?
18952 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 +  (exit $ac_status); } &&
18954 +         { ac_try='test -s conftest.$ac_objext'
18955 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 +  (eval $ac_try) 2>&5
18957 +  ac_status=$?
18958 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 +  (exit $ac_status); }; }; then
18960 +  ac_header_compiler=yes
18961  else
18962 -  echo "$ac_err" >&5
18963 -  echo "configure: failed program was:" >&5
18964 -  cat conftest.$ac_ext >&5
18965 -  rm -rf conftest*
18966 -  eval "ac_cv_header_$ac_safe=no"
18967 +  echo "$as_me: failed program was:" >&5
18968 +sed 's/^/| /' conftest.$ac_ext >&5
18969 +
18970 +ac_header_compiler=no
18971  fi
18972 -rm -f conftest*
18973 +rm -f conftest.$ac_objext conftest.$ac_ext
18974 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18975 +echo "${ECHO_T}$ac_header_compiler" >&6
18976 +
18977 +# Is the header present?
18978 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
18979 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18980 +cat >conftest.$ac_ext <<_ACEOF
18981 +#line $LINENO "configure"
18982 +/* confdefs.h.  */
18983 +_ACEOF
18984 +cat confdefs.h >>conftest.$ac_ext
18985 +cat >>conftest.$ac_ext <<_ACEOF
18986 +/* end confdefs.h.  */
18987 +#include <$ac_header>
18988 +_ACEOF
18989 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18990 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18991 +  ac_status=$?
18992 +  grep -v '^ *+' conftest.er1 >conftest.err
18993 +  rm -f conftest.er1
18994 +  cat conftest.err >&5
18995 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 +  (exit $ac_status); } >/dev/null; then
18997 +  if test -s conftest.err; then
18998 +    ac_cpp_err=$ac_c_preproc_warn_flag
18999 +  else
19000 +    ac_cpp_err=
19001 +  fi
19002 +else
19003 +  ac_cpp_err=yes
19004  fi
19005 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19006 -  echo "$ac_t""yes" 1>&6
19007 -    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19008 -  cat >> confdefs.h <<EOF
19009 -#define $ac_tr_hdr 1
19010 -EOF
19011
19012 +if test -z "$ac_cpp_err"; then
19013 +  ac_header_preproc=yes
19014  else
19015 -  echo "$ac_t""no" 1>&6
19016 +  echo "$as_me: failed program was:" >&5
19017 +sed 's/^/| /' conftest.$ac_ext >&5
19018 +
19019 +  ac_header_preproc=no
19020 +fi
19021 +rm -f conftest.err conftest.$ac_ext
19022 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19023 +echo "${ECHO_T}$ac_header_preproc" >&6
19024 +
19025 +# So?  What about this header?
19026 +case $ac_header_compiler:$ac_header_preproc in
19027 +  yes:no )
19028 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19029 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19030 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19031 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19032 +    (
19033 +      cat <<\_ASBOX
19034 +## ------------------------------------ ##
19035 +## Report this to bug-autoconf@gnu.org. ##
19036 +## ------------------------------------ ##
19037 +_ASBOX
19038 +    ) |
19039 +      sed "s/^/$as_me: WARNING:     /" >&2
19040 +    ;;
19041 +  no:yes )
19042 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19043 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19044 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19045 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19046 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19047 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19048 +    (
19049 +      cat <<\_ASBOX
19050 +## ------------------------------------ ##
19051 +## Report this to bug-autoconf@gnu.org. ##
19052 +## ------------------------------------ ##
19053 +_ASBOX
19054 +    ) |
19055 +      sed "s/^/$as_me: WARNING:     /" >&2
19056 +    ;;
19057 +esac
19058 +echo "$as_me:$LINENO: checking for $ac_header" >&5
19059 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19060 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
19061 +  echo $ECHO_N "(cached) $ECHO_C" >&6
19062 +else
19063 +  eval "$as_ac_Header=$ac_header_preproc"
19064  fi
19065 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19066 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19067 +
19068 +fi
19069 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
19070 +  cat >>confdefs.h <<_ACEOF
19071 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19072 +_ACEOF
19073 +
19074 +fi
19075 +
19076  done
19077  
19078         ac_ext="$old_ext"
19079 @@ -6067,222 +15090,335 @@
19080            test "$ac_cv_header_gui_bitmap_h" = yes &&
19081            test "$ac_cv_header_util_locker_h" = yes &&
19082            test "$ac_cv_header_util_application_h" = yes; then
19083 -               echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6
19084 -echo "configure:6072: checking for main in -lstdc++" >&5
19085 -ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'`
19086 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19087 -  echo $ac_n "(cached) $ac_c" 1>&6
19088 +
19089 +echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
19090 +echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
19091 +if test "${ac_cv_lib_stdcpp_main+set}" = set; then
19092 +  echo $ECHO_N "(cached) $ECHO_C" >&6
19093  else
19094 -  ac_save_LIBS="$LIBS"
19095 +  ac_check_lib_save_LIBS=$LIBS
19096  LIBS="-lstdc++  $LIBS"
19097 -cat > conftest.$ac_ext <<EOF
19098 -#line 6080 "configure"
19099 -#include "confdefs.h"
19100 +cat >conftest.$ac_ext <<_ACEOF
19101 +#line $LINENO "configure"
19102 +/* confdefs.h.  */
19103 +_ACEOF
19104 +cat confdefs.h >>conftest.$ac_ext
19105 +cat >>conftest.$ac_ext <<_ACEOF
19106 +/* end confdefs.h.  */
19107  
19108 -int main() {
19109 -main()
19110 -; return 0; }
19111 -EOF
19112 -if { (eval echo configure:6087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19113 -  rm -rf conftest*
19114 -  eval "ac_cv_lib_$ac_lib_var=yes"
19115 +
19116 +int
19117 +main ()
19118 +{
19119 +main ();
19120 +  ;
19121 +  return 0;
19122 +}
19123 +_ACEOF
19124 +rm -f conftest.$ac_objext conftest$ac_exeext
19125 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19126 +  (eval $ac_link) 2>&5
19127 +  ac_status=$?
19128 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 +  (exit $ac_status); } &&
19130 +         { ac_try='test -s conftest$ac_exeext'
19131 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19132 +  (eval $ac_try) 2>&5
19133 +  ac_status=$?
19134 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 +  (exit $ac_status); }; }; then
19136 +  ac_cv_lib_stdcpp_main=yes
19137  else
19138 -  echo "configure: failed program was:" >&5
19139 -  cat conftest.$ac_ext >&5
19140 -  rm -rf conftest*
19141 -  eval "ac_cv_lib_$ac_lib_var=no"
19142 -fi
19143 -rm -f conftest*
19144 -LIBS="$ac_save_LIBS"
19145 +  echo "$as_me: failed program was:" >&5
19146 +sed 's/^/| /' conftest.$ac_ext >&5
19147  
19148 +ac_cv_lib_stdcpp_main=no
19149  fi
19150 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19151 -  echo "$ac_t""yes" 1>&6
19152 -    ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \
19153 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
19154 -  cat >> confdefs.h <<EOF
19155 -#define $ac_tr_lib 1
19156 -EOF
19157 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19158 +LIBS=$ac_check_lib_save_LIBS
19159 +fi
19160 +echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
19161 +echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
19162 +if test $ac_cv_lib_stdcpp_main = yes; then
19163 +  cat >>confdefs.h <<_ACEOF
19164 +#define HAVE_LIBSTDC__ 1
19165 +_ACEOF
19166  
19167    LIBS="-lstdc++ $LIBS"
19168  
19169 -else
19170 -  echo "$ac_t""no" 1>&6
19171  fi
19172  
19173 -               echo $ac_n "checking for main in -latheos""... $ac_c" 1>&6
19174 -echo "configure:6115: checking for main in -latheos" >&5
19175 -ac_lib_var=`echo atheos'_'main | sed 'y%./+-%__p_%'`
19176 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19177 -  echo $ac_n "(cached) $ac_c" 1>&6
19178 +
19179 +echo "$as_me:$LINENO: checking for main in -latheos" >&5
19180 +echo $ECHO_N "checking for main in -latheos... $ECHO_C" >&6
19181 +if test "${ac_cv_lib_atheos_main+set}" = set; then
19182 +  echo $ECHO_N "(cached) $ECHO_C" >&6
19183  else
19184 -  ac_save_LIBS="$LIBS"
19185 +  ac_check_lib_save_LIBS=$LIBS
19186  LIBS="-latheos  $LIBS"
19187 -cat > conftest.$ac_ext <<EOF
19188 -#line 6123 "configure"
19189 -#include "confdefs.h"
19190 +cat >conftest.$ac_ext <<_ACEOF
19191 +#line $LINENO "configure"
19192 +/* confdefs.h.  */
19193 +_ACEOF
19194 +cat confdefs.h >>conftest.$ac_ext
19195 +cat >>conftest.$ac_ext <<_ACEOF
19196 +/* end confdefs.h.  */
19197  
19198 -int main() {
19199 -main()
19200 -; return 0; }
19201 -EOF
19202 -if { (eval echo configure:6130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19203 -  rm -rf conftest*
19204 -  eval "ac_cv_lib_$ac_lib_var=yes"
19205 +
19206 +int
19207 +main ()
19208 +{
19209 +main ();
19210 +  ;
19211 +  return 0;
19212 +}
19213 +_ACEOF
19214 +rm -f conftest.$ac_objext conftest$ac_exeext
19215 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19216 +  (eval $ac_link) 2>&5
19217 +  ac_status=$?
19218 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 +  (exit $ac_status); } &&
19220 +         { ac_try='test -s conftest$ac_exeext'
19221 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19222 +  (eval $ac_try) 2>&5
19223 +  ac_status=$?
19224 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 +  (exit $ac_status); }; }; then
19226 +  ac_cv_lib_atheos_main=yes
19227  else
19228 -  echo "configure: failed program was:" >&5
19229 -  cat conftest.$ac_ext >&5
19230 -  rm -rf conftest*
19231 -  eval "ac_cv_lib_$ac_lib_var=no"
19232 -fi
19233 -rm -f conftest*
19234 -LIBS="$ac_save_LIBS"
19235 +  echo "$as_me: failed program was:" >&5
19236 +sed 's/^/| /' conftest.$ac_ext >&5
19237  
19238 +ac_cv_lib_atheos_main=no
19239  fi
19240 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19241 -  echo "$ac_t""yes" 1>&6
19242 -    ac_tr_lib=HAVE_LIB`echo atheos | sed -e 's/[^a-zA-Z0-9_]/_/g' \
19243 -    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
19244 -  cat >> confdefs.h <<EOF
19245 -#define $ac_tr_lib 1
19246 -EOF
19247 +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19248 +LIBS=$ac_check_lib_save_LIBS
19249 +fi
19250 +echo "$as_me:$LINENO: result: $ac_cv_lib_atheos_main" >&5
19251 +echo "${ECHO_T}$ac_cv_lib_atheos_main" >&6
19252 +if test $ac_cv_lib_atheos_main = yes; then
19253 +  cat >>confdefs.h <<_ACEOF
19254 +#define HAVE_LIBATHEOS 1
19255 +_ACEOF
19256  
19257    LIBS="-latheos $LIBS"
19258  
19259 -else
19260 -  echo "$ac_t""no" 1>&6
19261  fi
19262  
19263                 if test "$ac_cv_lib_atheos_main" = yes; then
19264 -                       for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
19265 -do
19266 -# Extract the first word of "$ac_prog", so it can be a program name with args.
19267 -set dummy $ac_prog; ac_word=$2
19268 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
19269 -echo "configure:6163: checking for $ac_word" >&5
19270 -if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
19271 -  echo $ac_n "(cached) $ac_c" 1>&6
19272 +                       ac_ext=cc
19273 +ac_cpp='$CXXCPP $CPPFLAGS'
19274 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19275 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19276 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19277 +if test -n "$ac_tool_prefix"; then
19278 +  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19279 +  do
19280 +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19281 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19282 +echo "$as_me:$LINENO: checking for $ac_word" >&5
19283 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19284 +if test "${ac_cv_prog_CXX+set}" = set; then
19285 +  echo $ECHO_N "(cached) $ECHO_C" >&6
19286  else
19287    if test -n "$CXX"; then
19288    ac_cv_prog_CXX="$CXX" # Let the user override the test.
19289  else
19290 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
19291 -  ac_dummy="$PATH"
19292 -  for ac_dir in $ac_dummy; do
19293 -    test -z "$ac_dir" && ac_dir=.
19294 -    if test -f $ac_dir/$ac_word; then
19295 -      ac_cv_prog_CXX="$ac_prog"
19296 -      break
19297 -    fi
19298 -  done
19299 -  IFS="$ac_save_ifs"
19300 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19301 +for as_dir in $PATH
19302 +do
19303 +  IFS=$as_save_IFS
19304 +  test -z "$as_dir" && as_dir=.
19305 +  for ac_exec_ext in '' $ac_executable_extensions; do
19306 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19307 +    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
19308 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19309 +    break 2
19310 +  fi
19311 +done
19312 +done
19313 +
19314  fi
19315  fi
19316 -CXX="$ac_cv_prog_CXX"
19317 +CXX=$ac_cv_prog_CXX
19318  if test -n "$CXX"; then
19319 -  echo "$ac_t""$CXX" 1>&6
19320 +  echo "$as_me:$LINENO: result: $CXX" >&5
19321 +echo "${ECHO_T}$CXX" >&6
19322  else
19323 -  echo "$ac_t""no" 1>&6
19324 +  echo "$as_me:$LINENO: result: no" >&5
19325 +echo "${ECHO_T}no" >&6
19326  fi
19327  
19328 -test -n "$CXX" && break
19329 +    test -n "$CXX" && break
19330 +  done
19331 +fi
19332 +if test -z "$CXX"; then
19333 +  ac_ct_CXX=$CXX
19334 +  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19335 +do
19336 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
19337 +set dummy $ac_prog; ac_word=$2
19338 +echo "$as_me:$LINENO: checking for $ac_word" >&5
19339 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19340 +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
19341 +  echo $ECHO_N "(cached) $ECHO_C" >&6
19342 +else
19343 +  if test -n "$ac_ct_CXX"; then
19344 +  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
19345 +else
19346 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19347 +for as_dir in $PATH
19348 +do
19349 +  IFS=$as_save_IFS
19350 +  test -z "$as_dir" && as_dir=.
19351 +  for ac_exec_ext in '' $ac_executable_extensions; do
19352 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19353 +    ac_cv_prog_ac_ct_CXX="$ac_prog"
19354 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19355 +    break 2
19356 +  fi
19357 +done
19358  done
19359 -test -n "$CXX" || CXX="gcc"
19360  
19361 +fi
19362 +fi
19363 +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
19364 +if test -n "$ac_ct_CXX"; then
19365 +  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
19366 +echo "${ECHO_T}$ac_ct_CXX" >&6
19367 +else
19368 +  echo "$as_me:$LINENO: result: no" >&5
19369 +echo "${ECHO_T}no" >&6
19370 +fi
19371  
19372 -echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
19373 -echo "configure:6195: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
19374 +  test -n "$ac_ct_CXX" && break
19375 +done
19376 +test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
19377  
19378 -ac_ext=C
19379 -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19380 -ac_cpp='$CXXCPP $CPPFLAGS'
19381 -ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19382 -ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19383 -cross_compiling=$ac_cv_prog_cxx_cross
19384 +  CXX=$ac_ct_CXX
19385 +fi
19386  
19387 -cat > conftest.$ac_ext << EOF
19388  
19389 -#line 6206 "configure"
19390 -#include "confdefs.h"
19391 +# Provide some information about the compiler.
19392 +echo "$as_me:$LINENO:" \
19393 +     "checking for C++ compiler version" >&5
19394 +ac_compiler=`set X $ac_compile; echo $2`
19395 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19396 +  (eval $ac_compiler --version </dev/null >&5) 2>&5
19397 +  ac_status=$?
19398 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 +  (exit $ac_status); }
19400 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19401 +  (eval $ac_compiler -v </dev/null >&5) 2>&5
19402 +  ac_status=$?
19403 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 +  (exit $ac_status); }
19405 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19406 +  (eval $ac_compiler -V </dev/null >&5) 2>&5
19407 +  ac_status=$?
19408 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 +  (exit $ac_status); }
19410  
19411 -int main(){return(0);}
19412 -EOF
19413 -if { (eval echo configure:6211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19414 -  ac_cv_prog_cxx_works=yes
19415 -  # If we can't run a trivial program, we are probably using a cross compiler.
19416 -  if (./conftest; exit) 2>/dev/null; then
19417 -    ac_cv_prog_cxx_cross=no
19418 -  else
19419 -    ac_cv_prog_cxx_cross=yes
19420 -  fi
19421 +echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
19422 +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
19423 +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
19424 +  echo $ECHO_N "(cached) $ECHO_C" >&6
19425  else
19426 -  echo "configure: failed program was:" >&5
19427 -  cat conftest.$ac_ext >&5
19428 -  ac_cv_prog_cxx_works=no
19429 -fi
19430 -rm -fr conftest*
19431 -ac_ext=c
19432 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19433 -ac_cpp='$CPP $CPPFLAGS'
19434 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19435 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19436 -cross_compiling=$ac_cv_prog_cc_cross
19437 -
19438 -echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
19439 -if test $ac_cv_prog_cxx_works = no; then
19440 -  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
19441 -fi
19442 -echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
19443 -echo "configure:6237: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
19444 -echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
19445 -cross_compiling=$ac_cv_prog_cxx_cross
19446 +  cat >conftest.$ac_ext <<_ACEOF
19447 +#line $LINENO "configure"
19448 +/* confdefs.h.  */
19449 +_ACEOF
19450 +cat confdefs.h >>conftest.$ac_ext
19451 +cat >>conftest.$ac_ext <<_ACEOF
19452 +/* end confdefs.h.  */
19453  
19454 -echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
19455 -echo "configure:6242: checking whether we are using GNU C++" >&5
19456 -if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
19457 -  echo $ac_n "(cached) $ac_c" 1>&6
19458 -else
19459 -  cat > conftest.C <<EOF
19460 -#ifdef __GNUC__
19461 -  yes;
19462 +int
19463 +main ()
19464 +{
19465 +#ifndef __GNUC__
19466 +       choke me
19467  #endif
19468 -EOF
19469 -if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
19470 -  ac_cv_prog_gxx=yes
19471 -else
19472 -  ac_cv_prog_gxx=no
19473 -fi
19474 -fi
19475 -
19476 -echo "$ac_t""$ac_cv_prog_gxx" 1>&6
19477  
19478 -if test $ac_cv_prog_gxx = yes; then
19479 -  GXX=yes
19480 +  ;
19481 +  return 0;
19482 +}
19483 +_ACEOF
19484 +rm -f conftest.$ac_objext
19485 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19486 +  (eval $ac_compile) 2>&5
19487 +  ac_status=$?
19488 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 +  (exit $ac_status); } &&
19490 +         { ac_try='test -s conftest.$ac_objext'
19491 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 +  (eval $ac_try) 2>&5
19493 +  ac_status=$?
19494 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 +  (exit $ac_status); }; }; then
19496 +  ac_compiler_gnu=yes
19497  else
19498 -  GXX=
19499 +  echo "$as_me: failed program was:" >&5
19500 +sed 's/^/| /' conftest.$ac_ext >&5
19501 +
19502 +ac_compiler_gnu=no
19503  fi
19504 +rm -f conftest.$ac_objext conftest.$ac_ext
19505 +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
19506  
19507 -ac_test_CXXFLAGS="${CXXFLAGS+set}"
19508 -ac_save_CXXFLAGS="$CXXFLAGS"
19509 -CXXFLAGS=
19510 -echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
19511 -echo "configure:6270: checking whether ${CXX-g++} accepts -g" >&5
19512 -if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
19513 -  echo $ac_n "(cached) $ac_c" 1>&6
19514 +fi
19515 +echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
19516 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
19517 +GXX=`test $ac_compiler_gnu = yes && echo yes`
19518 +ac_test_CXXFLAGS=${CXXFLAGS+set}
19519 +ac_save_CXXFLAGS=$CXXFLAGS
19520 +CXXFLAGS="-g"
19521 +echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
19522 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
19523 +if test "${ac_cv_prog_cxx_g+set}" = set; then
19524 +  echo $ECHO_N "(cached) $ECHO_C" >&6
19525  else
19526 -  echo 'void f(){}' > conftest.cc
19527 -if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
19528 +  cat >conftest.$ac_ext <<_ACEOF
19529 +#line $LINENO "configure"
19530 +/* confdefs.h.  */
19531 +_ACEOF
19532 +cat confdefs.h >>conftest.$ac_ext
19533 +cat >>conftest.$ac_ext <<_ACEOF
19534 +/* end confdefs.h.  */
19535 +
19536 +int
19537 +main ()
19538 +{
19539 +
19540 +  ;
19541 +  return 0;
19542 +}
19543 +_ACEOF
19544 +rm -f conftest.$ac_objext
19545 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19546 +  (eval $ac_compile) 2>&5
19547 +  ac_status=$?
19548 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 +  (exit $ac_status); } &&
19550 +         { ac_try='test -s conftest.$ac_objext'
19551 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552 +  (eval $ac_try) 2>&5
19553 +  ac_status=$?
19554 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 +  (exit $ac_status); }; }; then
19556    ac_cv_prog_cxx_g=yes
19557  else
19558 -  ac_cv_prog_cxx_g=no
19559 -fi
19560 -rm -f conftest*
19561 +  echo "$as_me: failed program was:" >&5
19562 +sed 's/^/| /' conftest.$ac_ext >&5
19563  
19564 +ac_cv_prog_cxx_g=no
19565  fi
19566 -
19567 -echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
19568 +rm -f conftest.$ac_objext conftest.$ac_ext
19569 +fi
19570 +echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
19571 +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
19572  if test "$ac_test_CXXFLAGS" = set; then
19573 -  CXXFLAGS="$ac_save_CXXFLAGS"
19574 +  CXXFLAGS=$ac_save_CXXFLAGS
19575  elif test $ac_cv_prog_cxx_g = yes; then
19576    if test "$GXX" = yes; then
19577      CXXFLAGS="-g -O2"
19578 @@ -6296,10 +15432,206 @@
19579      CXXFLAGS=
19580    fi
19581  fi
19582 +for ac_declaration in \
19583 +   ''\
19584 +   '#include <stdlib.h>' \
19585 +   'extern "C" void std::exit (int) throw (); using std::exit;' \
19586 +   'extern "C" void std::exit (int); using std::exit;' \
19587 +   'extern "C" void exit (int) throw ();' \
19588 +   'extern "C" void exit (int);' \
19589 +   'void exit (int);'
19590 +do
19591 +  cat >conftest.$ac_ext <<_ACEOF
19592 +#line $LINENO "configure"
19593 +/* confdefs.h.  */
19594 +_ACEOF
19595 +cat confdefs.h >>conftest.$ac_ext
19596 +cat >>conftest.$ac_ext <<_ACEOF
19597 +/* end confdefs.h.  */
19598 +#include <stdlib.h>
19599 +$ac_declaration
19600 +int
19601 +main ()
19602 +{
19603 +exit (42);
19604 +  ;
19605 +  return 0;
19606 +}
19607 +_ACEOF
19608 +rm -f conftest.$ac_objext
19609 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19610 +  (eval $ac_compile) 2>&5
19611 +  ac_status=$?
19612 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 +  (exit $ac_status); } &&
19614 +         { ac_try='test -s conftest.$ac_objext'
19615 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19616 +  (eval $ac_try) 2>&5
19617 +  ac_status=$?
19618 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 +  (exit $ac_status); }; }; then
19620 +  :
19621 +else
19622 +  echo "$as_me: failed program was:" >&5
19623 +sed 's/^/| /' conftest.$ac_ext >&5
19624  
19625 -                       cat >> confdefs.h <<\EOF
19626 +continue
19627 +fi
19628 +rm -f conftest.$ac_objext conftest.$ac_ext
19629 +  cat >conftest.$ac_ext <<_ACEOF
19630 +#line $LINENO "configure"
19631 +/* confdefs.h.  */
19632 +_ACEOF
19633 +cat confdefs.h >>conftest.$ac_ext
19634 +cat >>conftest.$ac_ext <<_ACEOF
19635 +/* end confdefs.h.  */
19636 +$ac_declaration
19637 +int
19638 +main ()
19639 +{
19640 +exit (42);
19641 +  ;
19642 +  return 0;
19643 +}
19644 +_ACEOF
19645 +rm -f conftest.$ac_objext
19646 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19647 +  (eval $ac_compile) 2>&5
19648 +  ac_status=$?
19649 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 +  (exit $ac_status); } &&
19651 +         { ac_try='test -s conftest.$ac_objext'
19652 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 +  (eval $ac_try) 2>&5
19654 +  ac_status=$?
19655 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 +  (exit $ac_status); }; }; then
19657 +  break
19658 +else
19659 +  echo "$as_me: failed program was:" >&5
19660 +sed 's/^/| /' conftest.$ac_ext >&5
19661 +
19662 +fi
19663 +rm -f conftest.$ac_objext conftest.$ac_ext
19664 +done
19665 +rm -f conftest*
19666 +if test -n "$ac_declaration"; then
19667 +  echo '#ifdef __cplusplus' >>confdefs.h
19668 +  echo $ac_declaration      >>confdefs.h
19669 +  echo '#endif'             >>confdefs.h
19670 +fi
19671 +
19672 +ac_ext=c
19673 +ac_cpp='$CPP $CPPFLAGS'
19674 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19675 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19676 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
19677 +
19678 +depcc="$CXX"  am_compiler_list=
19679 +
19680 +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19681 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19682 +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19683 +  echo $ECHO_N "(cached) $ECHO_C" >&6
19684 +else
19685 +  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19686 +  # We make a subdir and do the tests there.  Otherwise we can end up
19687 +  # making bogus files that we don't know about and never remove.  For
19688 +  # instance it was reported that on HP-UX the gcc test will end up
19689 +  # making a dummy file named `D' -- because `-MD' means `put the output
19690 +  # in D'.
19691 +  mkdir conftest.dir
19692 +  # Copy depcomp to subdir because otherwise we won't find it if we're
19693 +  # using a relative directory.
19694 +  cp "$am_depcomp" conftest.dir
19695 +  cd conftest.dir
19696 +  # We will build objects and dependencies in a subdirectory because
19697 +  # it helps to detect inapplicable dependency modes.  For instance
19698 +  # both Tru64's cc and ICC support -MD to output dependencies as a
19699 +  # side effect of compilation, but ICC will put the dependencies in
19700 +  # the current directory while Tru64 will put them in the object
19701 +  # directory.
19702 +  mkdir sub
19703 +
19704 +  am_cv_CXX_dependencies_compiler_type=none
19705 +  if test "$am_compiler_list" = ""; then
19706 +     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19707 +  fi
19708 +  for depmode in $am_compiler_list; do
19709 +    # Setup a source with many dependencies, because some compilers
19710 +    # like to wrap large dependency lists on column 80 (with \), and
19711 +    # we should not choose a depcomp mode which is confused by this.
19712 +    #
19713 +    # We need to recreate these files for each test, as the compiler may
19714 +    # overwrite some of them when testing with obscure command lines.
19715 +    # This happens at least with the AIX C compiler.
19716 +    : > sub/conftest.c
19717 +    for i in 1 2 3 4 5 6; do
19718 +      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19719 +      : > sub/conftst$i.h
19720 +    done
19721 +    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19722 +
19723 +    case $depmode in
19724 +    nosideeffect)
19725 +      # after this tag, mechanisms are not by side-effect, so they'll
19726 +      # only be used when explicitly requested
19727 +      if test "x$enable_dependency_tracking" = xyes; then
19728 +       continue
19729 +      else
19730 +       break
19731 +      fi
19732 +      ;;
19733 +    none) break ;;
19734 +    esac
19735 +    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19736 +    # mode.  It turns out that the SunPro C++ compiler does not properly
19737 +    # handle `-M -o', and we need to detect this.
19738 +    if depmode=$depmode \
19739 +       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19740 +       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19741 +       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19742 +         >/dev/null 2>conftest.err &&
19743 +       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19744 +       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19745 +       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19746 +      # icc doesn't choke on unknown options, it will just issue warnings
19747 +      # (even with -Werror).  So we grep stderr for any message
19748 +      # that says an option was ignored.
19749 +      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
19750 +        am_cv_CXX_dependencies_compiler_type=$depmode
19751 +        break
19752 +      fi
19753 +    fi
19754 +  done
19755 +
19756 +  cd ..
19757 +  rm -rf conftest.dir
19758 +else
19759 +  am_cv_CXX_dependencies_compiler_type=none
19760 +fi
19761 +
19762 +fi
19763 +echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19764 +echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
19765 +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19766 +
19767 +
19768 +
19769 +if
19770 +  test "x$enable_dependency_tracking" != xno \
19771 +  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19772 +  am__fastdepCXX_TRUE=
19773 +  am__fastdepCXX_FALSE='#'
19774 +else
19775 +  am__fastdepCXX_TRUE='#'
19776 +  am__fastdepCXX_FALSE=
19777 +fi
19778 +
19779 +
19780 +                       cat >>confdefs.h <<\_ACEOF
19781  #define GRDRV_ATHEOS 1
19782 -EOF
19783 +_ACEOF
19784  
19785                         drivers="$drivers ATHEOS"
19786                         cf_have_atheos=yes
19787 @@ -6308,7 +15640,9 @@
19788  fi
19789  
19790         if test -z "$drivers" && test "$cf_use_graphics" = yes; then
19791 -               { echo "configure: error: No graphics drivers found." 1>&2; exit 1; }
19792 +               { { echo "$as_me:$LINENO: error: No graphics drivers found." >&5
19793 +echo "$as_me: error: No graphics drivers found." >&2;}
19794 +   { (exit 1); exit 1; }; }
19795         fi
19796  fi
19797  
19798 @@ -6322,380 +15656,1345 @@
19799    ATHEOS_GR_FALSE=
19800  fi
19801  
19802 +
19803  test "$ac_cv_have_emx" = yes && LDFLAGS="$LDFLAGS -Zexe"
19804  test "$ac_cv_have_emx" = yes && LDFLAGS=`echo "$LDFLAGS" | sed "s/-Zbin-files//g"`
19805  
19806 -trap '' 1 2 15
19807 -cat > confcache <<\EOF
19808 +          ac_config_files="$ac_config_files Makefile"
19809 +
19810 +cat >confcache <<\_ACEOF
19811  # This file is a shell script that caches the results of configure
19812  # tests run on this system so they can be shared between configure
19813 -# scripts and configure runs.  It is not useful on other systems.
19814 -# If it contains results you don't want to keep, you may remove or edit it.
19815 +# scripts and configure runs, see configure's option --config-cache.
19816 +# It is not useful on other systems.  If it contains results you don't
19817 +# want to keep, you may remove or edit it.
19818  #
19819 -# By default, configure uses ./config.cache as the cache file,
19820 -# creating it if it does not exist already.  You can give configure
19821 -# the --cache-file=FILE option to use a different cache file; that is
19822 -# what configure does when it calls configure scripts in
19823 -# subdirectories, so they share the cache.
19824 -# Giving --cache-file=/dev/null disables caching, for debugging configure.
19825 -# config.status only pays attention to the cache file if you give it the
19826 -# --recheck option to rerun configure.
19827 +# config.status only pays attention to the cache file if you give it
19828 +# the --recheck option to rerun configure.
19829  #
19830 -EOF
19831 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
19832 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
19833 +# following values.
19834 +
19835 +_ACEOF
19836 +
19837  # The following way of writing the cache mishandles newlines in values,
19838  # but we know of no workaround that is simple, portable, and efficient.
19839  # So, don't put newlines in cache variables' values.
19840  # Ultrix sh set writes to stderr and can't be redirected directly,
19841  # and sets the high bit in the cache file unless we assign to the vars.
19842 -(set) 2>&1 |
19843 -  case `(ac_space=' '; set | grep ac_space) 2>&1` in
19844 -  *ac_space=\ *)
19845 -    # `set' does not quote correctly, so add quotes (double-quote substitution
19846 -    # turns \\\\ into \\, and sed turns \\ into \).
19847 -    sed -n \
19848 -      -e "s/'/'\\\\''/g" \
19849 -      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19850 -    ;;
19851 -  *)
19852 -    # `set' quotes correctly as required by POSIX, so do not add quotes.
19853 -    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19854 -    ;;
19855 -  esac >> confcache
19856 -if cmp -s $cache_file confcache; then
19857 -  :
19858 -else
19859 +{
19860 +  (set) 2>&1 |
19861 +    case `(ac_space=' '; set | grep ac_space) 2>&1` in
19862 +    *ac_space=\ *)
19863 +      # `set' does not quote correctly, so add quotes (double-quote
19864 +      # substitution turns \\\\ into \\, and sed turns \\ into \).
19865 +      sed -n \
19866 +        "s/'/'\\\\''/g;
19867 +         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19868 +      ;;
19869 +    *)
19870 +      # `set' quotes correctly as required by POSIX, so do not add quotes.
19871 +      sed -n \
19872 +        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19873 +      ;;
19874 +    esac;
19875 +} |
19876 +  sed '
19877 +     t clear
19878 +     : clear
19879 +     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19880 +     t end
19881 +     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19882 +     : end' >>confcache
19883 +if diff $cache_file confcache >/dev/null 2>&1; then :; else
19884    if test -w $cache_file; then
19885 -    echo "updating cache $cache_file"
19886 -    cat confcache > $cache_file
19887 +    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19888 +    cat confcache >$cache_file
19889    else
19890      echo "not updating unwritable cache $cache_file"
19891    fi
19892  fi
19893  rm -f confcache
19894  
19895 -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19896 -
19897  test "x$prefix" = xNONE && prefix=$ac_default_prefix
19898  # Let make expand exec_prefix.
19899  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19900  
19901 -# Any assignment to VPATH causes Sun make to only execute
19902 -# the first set of double-colon rules, so remove it if not needed.
19903 -# If there is a colon in the path, we need to keep it.
19904 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
19905 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19906 +# trailing colons and then remove the whole line if VPATH becomes empty
19907 +# (actually we leave an empty line to preserve line numbers).
19908  if test "x$srcdir" = x.; then
19909 -  ac_vpsub='/^[        ]*VPATH[        ]*=[^:]*$/d'
19910 +  ac_vpsub='/^[        ]*VPATH[        ]*=/{
19911 +s/:*\$(srcdir):*/:/;
19912 +s/:*\${srcdir}:*/:/;
19913 +s/:*@srcdir@:*/:/;
19914 +s/^\([^=]*=[   ]*\):*/\1/;
19915 +s/:*$//;
19916 +s/^[^=]*=[     ]*$//;
19917 +}'
19918  fi
19919  
19920 -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19921 -
19922  DEFS=-DHAVE_CONFIG_H
19923  
19924 -# Without the "./", some shells look in PATH for config.status.
19925 -: ${CONFIG_STATUS=./config.status}
19926 +ac_libobjs=
19927 +ac_ltlibobjs=
19928 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19929 +  # 1. Remove the extension, and $U if already installed.
19930 +  ac_i=`echo "$ac_i" |
19931 +         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19932 +  # 2. Add them.
19933 +  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19934 +  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19935 +done
19936 +LIBOBJS=$ac_libobjs
19937  
19938 -echo creating $CONFIG_STATUS
19939 -rm -f $CONFIG_STATUS
19940 -cat > $CONFIG_STATUS <<EOF
19941 -#! /bin/sh
19942 -# Generated automatically by configure.
19943 +LTLIBOBJS=$ac_ltlibobjs
19944 +
19945 +
19946 +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19947 +  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19948 +Usually this means the macro was only invoked conditionally." >&5
19949 +echo "$as_me: error: conditional \"AMDEP\" was never defined.
19950 +Usually this means the macro was only invoked conditionally." >&2;}
19951 +   { (exit 1); exit 1; }; }
19952 +fi
19953 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19954 +  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19955 +Usually this means the macro was only invoked conditionally." >&5
19956 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19957 +Usually this means the macro was only invoked conditionally." >&2;}
19958 +   { (exit 1); exit 1; }; }
19959 +fi
19960 +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19961 +  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19962 +Usually this means the macro was only invoked conditionally." >&5
19963 +echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19964 +Usually this means the macro was only invoked conditionally." >&2;}
19965 +   { (exit 1); exit 1; }; }
19966 +fi
19967 +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19968 +  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19969 +Usually this means the macro was only invoked conditionally." >&5
19970 +echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19971 +Usually this means the macro was only invoked conditionally." >&2;}
19972 +   { (exit 1); exit 1; }; }
19973 +fi
19974 +if test -z "${ATHEOS_GR_TRUE}" && test -z "${ATHEOS_GR_FALSE}"; then
19975 +  { { echo "$as_me:$LINENO: error: conditional \"ATHEOS_GR\" was never defined.
19976 +Usually this means the macro was only invoked conditionally." >&5
19977 +echo "$as_me: error: conditional \"ATHEOS_GR\" was never defined.
19978 +Usually this means the macro was only invoked conditionally." >&2;}
19979 +   { (exit 1); exit 1; }; }
19980 +fi
19981 +
19982 +: ${CONFIG_STATUS=./config.status}
19983 +ac_clean_files_save=$ac_clean_files
19984 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19985 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19986 +echo "$as_me: creating $CONFIG_STATUS" >&6;}
19987 +cat >$CONFIG_STATUS <<_ACEOF
19988 +#! $SHELL
19989 +# Generated by $as_me.
19990  # Run this file to recreate the current configuration.
19991 -# This directory was configured as follows,
19992 -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19993 -#
19994 -# $0 $ac_configure_args
19995 -#
19996  # Compiler output produced by configure, useful for debugging
19997 -# configure, is in ./config.log if it exists.
19998 +# configure, is in config.log if it exists.
19999  
20000 -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20001 -for ac_option
20002 +debug=false
20003 +ac_cs_recheck=false
20004 +ac_cs_silent=false
20005 +SHELL=\${CONFIG_SHELL-$SHELL}
20006 +_ACEOF
20007 +
20008 +cat >>$CONFIG_STATUS <<\_ACEOF
20009 +## --------------------- ##
20010 +## M4sh Initialization.  ##
20011 +## --------------------- ##
20012 +
20013 +# Be Bourne compatible
20014 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20015 +  emulate sh
20016 +  NULLCMD=:
20017 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20018 +  # is contrary to our usage.  Disable this feature.
20019 +  alias -g '${1+"$@"}'='"$@"'
20020 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20021 +  set -o posix
20022 +fi
20023 +
20024 +# Support unset when possible.
20025 +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
20026 +  as_unset=unset
20027 +else
20028 +  as_unset=false
20029 +fi
20030 +
20031 +
20032 +# Work around bugs in pre-3.0 UWIN ksh.
20033 +$as_unset ENV MAIL MAILPATH
20034 +PS1='$ '
20035 +PS2='> '
20036 +PS4='+ '
20037 +
20038 +# NLS nuisances.
20039 +for as_var in \
20040 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20041 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20042 +  LC_TELEPHONE LC_TIME
20043  do
20044 -  case "\$ac_option" in
20045 -  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20046 -    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20047 -    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20048 -  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20049 -    echo "$CONFIG_STATUS generated by autoconf version 2.13"
20050 -    exit 0 ;;
20051 -  -help | --help | --hel | --he | --h)
20052 -    echo "\$ac_cs_usage"; exit 0 ;;
20053 -  *) echo "\$ac_cs_usage"; exit 1 ;;
20054 -  esac
20055 +  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
20056 +    eval $as_var=C; export $as_var
20057 +  else
20058 +    $as_unset $as_var
20059 +  fi
20060  done
20061  
20062 -ac_given_srcdir=$srcdir
20063 -ac_given_INSTALL="$INSTALL"
20064 +# Required to use basename.
20065 +if expr a : '\(a\)' >/dev/null 2>&1; then
20066 +  as_expr=expr
20067 +else
20068 +  as_expr=false
20069 +fi
20070  
20071 -trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
20072 -EOF
20073 -cat >> $CONFIG_STATUS <<EOF
20074 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20075 +  as_basename=basename
20076 +else
20077 +  as_basename=false
20078 +fi
20079  
20080 -# Protect against being on the right side of a sed subst in config.status.
20081 -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20082 - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20083 -$ac_vpsub
20084 -$extrasub
20085 -s%@SHELL@%$SHELL%g
20086 -s%@CFLAGS@%$CFLAGS%g
20087 -s%@CPPFLAGS@%$CPPFLAGS%g
20088 -s%@CXXFLAGS@%$CXXFLAGS%g
20089 -s%@FFLAGS@%$FFLAGS%g
20090 -s%@DEFS@%$DEFS%g
20091 -s%@LDFLAGS@%$LDFLAGS%g
20092 -s%@LIBS@%$LIBS%g
20093 -s%@exec_prefix@%$exec_prefix%g
20094 -s%@prefix@%$prefix%g
20095 -s%@program_transform_name@%$program_transform_name%g
20096 -s%@bindir@%$bindir%g
20097 -s%@sbindir@%$sbindir%g
20098 -s%@libexecdir@%$libexecdir%g
20099 -s%@datadir@%$datadir%g
20100 -s%@sysconfdir@%$sysconfdir%g
20101 -s%@sharedstatedir@%$sharedstatedir%g
20102 -s%@localstatedir@%$localstatedir%g
20103 -s%@libdir@%$libdir%g
20104 -s%@includedir@%$includedir%g
20105 -s%@oldincludedir@%$oldincludedir%g
20106 -s%@infodir@%$infodir%g
20107 -s%@mandir@%$mandir%g
20108 -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
20109 -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
20110 -s%@INSTALL_DATA@%$INSTALL_DATA%g
20111 -s%@PACKAGE@%$PACKAGE%g
20112 -s%@VERSION@%$VERSION%g
20113 -s%@ACLOCAL@%$ACLOCAL%g
20114 -s%@AUTOCONF@%$AUTOCONF%g
20115 -s%@AUTOMAKE@%$AUTOMAKE%g
20116 -s%@AUTOHEADER@%$AUTOHEADER%g
20117 -s%@MAKEINFO@%$MAKEINFO%g
20118 -s%@SET_MAKE@%$SET_MAKE%g
20119 -s%@CC@%$CC%g
20120 -s%@CPP@%$CPP%g
20121 -s%@LIBOBJS@%$LIBOBJS%g
20122 -s%@DIRECTFB_CONFIG@%$DIRECTFB_CONFIG%g
20123 -s%@CXX@%$CXX%g
20124 -s%@ATHEOS_GR_TRUE@%$ATHEOS_GR_TRUE%g
20125 -s%@ATHEOS_GR_FALSE@%$ATHEOS_GR_FALSE%g
20126  
20127 -CEOF
20128 -EOF
20129 +# Name of the executable.
20130 +as_me=`$as_basename "$0" ||
20131 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20132 +        X"$0" : 'X\(//\)$' \| \
20133 +        X"$0" : 'X\(/\)$' \| \
20134 +        .     : '\(.\)' 2>/dev/null ||
20135 +echo X/"$0" |
20136 +    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20137 +         /^X\/\(\/\/\)$/{ s//\1/; q; }
20138 +         /^X\/\(\/\).*/{ s//\1/; q; }
20139 +         s/.*/./; q'`
20140  
20141 -cat >> $CONFIG_STATUS <<\EOF
20142  
20143 -# Split the substitutions into bite-sized pieces for seds with
20144 -# small command number limits, like on Digital OSF/1 and HP-UX.
20145 -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20146 -ac_file=1 # Number of current file.
20147 -ac_beg=1 # First line for current file.
20148 -ac_end=$ac_max_sed_cmds # Line after last line for current file.
20149 -ac_more_lines=:
20150 -ac_sed_cmds=""
20151 -while $ac_more_lines; do
20152 -  if test $ac_beg -gt 1; then
20153 -    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
20154 +# PATH needs CR, and LINENO needs CR and PATH.
20155 +# Avoid depending upon Character Ranges.
20156 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20157 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20158 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20159 +as_cr_digits='0123456789'
20160 +as_cr_alnum=$as_cr_Letters$as_cr_digits
20161 +
20162 +# The user is always right.
20163 +if test "${PATH_SEPARATOR+set}" != set; then
20164 +  echo "#! /bin/sh" >conf$$.sh
20165 +  echo  "exit 0"   >>conf$$.sh
20166 +  chmod +x conf$$.sh
20167 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20168 +    PATH_SEPARATOR=';'
20169    else
20170 -    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
20171 +    PATH_SEPARATOR=:
20172    fi
20173 -  if test ! -s conftest.s$ac_file; then
20174 -    ac_more_lines=false
20175 -    rm -f conftest.s$ac_file
20176 +  rm -f conf$$.sh
20177 +fi
20178 +
20179 +
20180 +  as_lineno_1=$LINENO
20181 +  as_lineno_2=$LINENO
20182 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20183 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
20184 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20185 +  # Find who we are.  Look in the path if we contain no path at all
20186 +  # relative or not.
20187 +  case $0 in
20188 +    *[\\/]* ) as_myself=$0 ;;
20189 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20190 +for as_dir in $PATH
20191 +do
20192 +  IFS=$as_save_IFS
20193 +  test -z "$as_dir" && as_dir=.
20194 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20195 +done
20196 +
20197 +       ;;
20198 +  esac
20199 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
20200 +  # in which case we are not to be found in the path.
20201 +  if test "x$as_myself" = x; then
20202 +    as_myself=$0
20203 +  fi
20204 +  if test ! -f "$as_myself"; then
20205 +    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20206 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20207 +   { (exit 1); exit 1; }; }
20208 +  fi
20209 +  case $CONFIG_SHELL in
20210 +  '')
20211 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20212 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20213 +do
20214 +  IFS=$as_save_IFS
20215 +  test -z "$as_dir" && as_dir=.
20216 +  for as_base in sh bash ksh sh5; do
20217 +        case $as_dir in
20218 +        /*)
20219 +          if ("$as_dir/$as_base" -c '
20220 +  as_lineno_1=$LINENO
20221 +  as_lineno_2=$LINENO
20222 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20223 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
20224 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20225 +            $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20226 +            $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20227 +            CONFIG_SHELL=$as_dir/$as_base
20228 +            export CONFIG_SHELL
20229 +            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20230 +          fi;;
20231 +        esac
20232 +       done
20233 +done
20234 +;;
20235 +  esac
20236 +
20237 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20238 +  # uniformly replaced by the line number.  The first 'sed' inserts a
20239 +  # line-number line before each line; the second 'sed' does the real
20240 +  # work.  The second script uses 'N' to pair each line-number line
20241 +  # with the numbered line, and appends trailing '-' during
20242 +  # substitution so that $LINENO is not a special case at line end.
20243 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20244 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20245 +  sed '=' <$as_myself |
20246 +    sed '
20247 +      N
20248 +      s,$,-,
20249 +      : loop
20250 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20251 +      t loop
20252 +      s,-$,,
20253 +      s,^['$as_cr_digits']*\n,,
20254 +    ' >$as_me.lineno &&
20255 +  chmod +x $as_me.lineno ||
20256 +    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20257 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20258 +   { (exit 1); exit 1; }; }
20259 +
20260 +  # Don't try to exec as it changes $[0], causing all sort of problems
20261 +  # (the dirname of $[0] is not the place where we might find the
20262 +  # original and so on.  Autoconf is especially sensible to this).
20263 +  . ./$as_me.lineno
20264 +  # Exit status is that of the last command.
20265 +  exit
20266 +}
20267 +
20268 +
20269 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20270 +  *c*,-n*) ECHO_N= ECHO_C='
20271 +' ECHO_T='     ' ;;
20272 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20273 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20274 +esac
20275 +
20276 +if expr a : '\(a\)' >/dev/null 2>&1; then
20277 +  as_expr=expr
20278 +else
20279 +  as_expr=false
20280 +fi
20281 +
20282 +rm -f conf$$ conf$$.exe conf$$.file
20283 +echo >conf$$.file
20284 +if ln -s conf$$.file conf$$ 2>/dev/null; then
20285 +  # We could just check for DJGPP; but this test a) works b) is more generic
20286 +  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20287 +  if test -f conf$$.exe; then
20288 +    # Don't use ln at all; we don't have any links
20289 +    as_ln_s='cp -p'
20290    else
20291 -    if test -z "$ac_sed_cmds"; then
20292 -      ac_sed_cmds="sed -f conftest.s$ac_file"
20293 -    else
20294 -      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
20295 -    fi
20296 -    ac_file=`expr $ac_file + 1`
20297 -    ac_beg=$ac_end
20298 -    ac_end=`expr $ac_end + $ac_max_sed_cmds`
20299 +    as_ln_s='ln -s'
20300    fi
20301 +elif ln conf$$.file conf$$ 2>/dev/null; then
20302 +  as_ln_s=ln
20303 +else
20304 +  as_ln_s='cp -p'
20305 +fi
20306 +rm -f conf$$ conf$$.exe conf$$.file
20307 +
20308 +if mkdir -p . 2>/dev/null; then
20309 +  as_mkdir_p=:
20310 +else
20311 +  as_mkdir_p=false
20312 +fi
20313 +
20314 +as_executable_p="test -f"
20315 +
20316 +# Sed expression to map a string onto a valid CPP name.
20317 +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20318 +
20319 +# Sed expression to map a string onto a valid variable name.
20320 +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20321 +
20322 +
20323 +# IFS
20324 +# We need space, tab and new line, in precisely that order.
20325 +as_nl='
20326 +'
20327 +IFS="  $as_nl"
20328 +
20329 +# CDPATH.
20330 +$as_unset CDPATH
20331 +
20332 +exec 6>&1
20333 +
20334 +# Open the log real soon, to keep \$[0] and so on meaningful, and to
20335 +# report actual input values of CONFIG_FILES etc. instead of their
20336 +# values after options handling.  Logging --version etc. is OK.
20337 +exec 5>>config.log
20338 +{
20339 +  echo
20340 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20341 +## Running $as_me. ##
20342 +_ASBOX
20343 +} >&5
20344 +cat >&5 <<_CSEOF
20345 +
20346 +This file was extended by $as_me, which was
20347 +generated by GNU Autoconf 2.57.  Invocation command line was
20348 +
20349 +  CONFIG_FILES    = $CONFIG_FILES
20350 +  CONFIG_HEADERS  = $CONFIG_HEADERS
20351 +  CONFIG_LINKS    = $CONFIG_LINKS
20352 +  CONFIG_COMMANDS = $CONFIG_COMMANDS
20353 +  $ $0 $@
20354 +
20355 +_CSEOF
20356 +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20357 +echo >&5
20358 +_ACEOF
20359 +
20360 +# Files that config.status was made for.
20361 +if test -n "$ac_config_files"; then
20362 +  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20363 +fi
20364 +
20365 +if test -n "$ac_config_headers"; then
20366 +  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20367 +fi
20368 +
20369 +if test -n "$ac_config_links"; then
20370 +  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20371 +fi
20372 +
20373 +if test -n "$ac_config_commands"; then
20374 +  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20375 +fi
20376 +
20377 +cat >>$CONFIG_STATUS <<\_ACEOF
20378 +
20379 +ac_cs_usage="\
20380 +\`$as_me' instantiates files from templates according to the
20381 +current configuration.
20382 +
20383 +Usage: $0 [OPTIONS] [FILE]...
20384 +
20385 +  -h, --help       print this help, then exit
20386 +  -V, --version    print version number, then exit
20387 +  -q, --quiet      do not print progress messages
20388 +  -d, --debug      don't remove temporary files
20389 +      --recheck    update $as_me by reconfiguring in the same conditions
20390 +  --file=FILE[:TEMPLATE]
20391 +                   instantiate the configuration file FILE
20392 +  --header=FILE[:TEMPLATE]
20393 +                   instantiate the configuration header FILE
20394 +
20395 +Configuration files:
20396 +$config_files
20397 +
20398 +Configuration headers:
20399 +$config_headers
20400 +
20401 +Configuration commands:
20402 +$config_commands
20403 +
20404 +Report bugs to <bug-autoconf@gnu.org>."
20405 +_ACEOF
20406 +
20407 +cat >>$CONFIG_STATUS <<_ACEOF
20408 +ac_cs_version="\\
20409 +config.status
20410 +configured by $0, generated by GNU Autoconf 2.57,
20411 +  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20412 +
20413 +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
20414 +Free Software Foundation, Inc.
20415 +This config.status script is free software; the Free Software Foundation
20416 +gives unlimited permission to copy, distribute and modify it."
20417 +srcdir=$srcdir
20418 +INSTALL="$INSTALL"
20419 +_ACEOF
20420 +
20421 +cat >>$CONFIG_STATUS <<\_ACEOF
20422 +# If no file are specified by the user, then we need to provide default
20423 +# value.  By we need to know if files were specified by the user.
20424 +ac_need_defaults=:
20425 +while test $# != 0
20426 +do
20427 +  case $1 in
20428 +  --*=*)
20429 +    ac_option=`expr "x$1" : 'x\([^=]*\)='`
20430 +    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20431 +    ac_shift=:
20432 +    ;;
20433 +  -*)
20434 +    ac_option=$1
20435 +    ac_optarg=$2
20436 +    ac_shift=shift
20437 +    ;;
20438 +  *) # This is not an option, so the user has probably given explicit
20439 +     # arguments.
20440 +     ac_option=$1
20441 +     ac_need_defaults=false;;
20442 +  esac
20443 +
20444 +  case $ac_option in
20445 +  # Handling of the options.
20446 +_ACEOF
20447 +cat >>$CONFIG_STATUS <<\_ACEOF
20448 +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20449 +    ac_cs_recheck=: ;;
20450 +  --version | --vers* | -V )
20451 +    echo "$ac_cs_version"; exit 0 ;;
20452 +  --he | --h)
20453 +    # Conflict between --help and --header
20454 +    { { echo "$as_me:$LINENO: error: ambiguous option: $1
20455 +Try \`$0 --help' for more information." >&5
20456 +echo "$as_me: error: ambiguous option: $1
20457 +Try \`$0 --help' for more information." >&2;}
20458 +   { (exit 1); exit 1; }; };;
20459 +  --help | --hel | -h )
20460 +    echo "$ac_cs_usage"; exit 0 ;;
20461 +  --debug | --d* | -d )
20462 +    debug=: ;;
20463 +  --file | --fil | --fi | --f )
20464 +    $ac_shift
20465 +    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20466 +    ac_need_defaults=false;;
20467 +  --header | --heade | --head | --hea )
20468 +    $ac_shift
20469 +    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20470 +    ac_need_defaults=false;;
20471 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20472 +  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20473 +    ac_cs_silent=: ;;
20474 +
20475 +  # This is an error.
20476 +  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20477 +Try \`$0 --help' for more information." >&5
20478 +echo "$as_me: error: unrecognized option: $1
20479 +Try \`$0 --help' for more information." >&2;}
20480 +   { (exit 1); exit 1; }; } ;;
20481 +
20482 +  *) ac_config_targets="$ac_config_targets $1" ;;
20483 +
20484 +  esac
20485 +  shift
20486  done
20487 -if test -z "$ac_sed_cmds"; then
20488 -  ac_sed_cmds=cat
20489 +
20490 +ac_configure_extra_args=
20491 +
20492 +if $ac_cs_silent; then
20493 +  exec 6>/dev/null
20494 +  ac_configure_extra_args="$ac_configure_extra_args --silent"
20495  fi
20496 -EOF
20497  
20498 -cat >> $CONFIG_STATUS <<EOF
20499 +_ACEOF
20500 +cat >>$CONFIG_STATUS <<_ACEOF
20501 +if \$ac_cs_recheck; then
20502 +  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20503 +  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20504 +fi
20505  
20506 -CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
20507 -EOF
20508 -cat >> $CONFIG_STATUS <<\EOF
20509 -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
20510 -  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20511 -  case "$ac_file" in
20512 -  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20513 -       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20514 -  *) ac_file_in="${ac_file}.in" ;;
20515 +_ACEOF
20516 +
20517 +cat >>$CONFIG_STATUS <<_ACEOF
20518 +#
20519 +# INIT-COMMANDS section.
20520 +#
20521 +
20522 +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20523 +
20524 +_ACEOF
20525 +
20526 +
20527 +
20528 +cat >>$CONFIG_STATUS <<\_ACEOF
20529 +for ac_config_target in $ac_config_targets
20530 +do
20531 +  case "$ac_config_target" in
20532 +  # Handling of arguments.
20533 +  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20534 +  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20535 +  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20536 +  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20537 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20538 +   { (exit 1); exit 1; }; };;
20539    esac
20540 +done
20541  
20542 -  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
20543 +# If the user did not use the arguments to specify the items to instantiate,
20544 +# then the envvar interface is used.  Set only those that are not.
20545 +# We use the long form for the default assignment because of an extremely
20546 +# bizarre bug on SunOS 4.1.3.
20547 +if $ac_need_defaults; then
20548 +  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20549 +  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20550 +  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20551 +fi
20552  
20553 -  # Remove last slash and all that follows it.  Not all systems have dirname.
20554 -  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20555 -  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20556 -    # The file is in a subdirectory.
20557 -    test ! -d "$ac_dir" && mkdir "$ac_dir"
20558 -    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
20559 -    # A "../" for each directory in $ac_dir_suffix.
20560 -    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
20561 -  else
20562 -    ac_dir_suffix= ac_dots=
20563 +# Have a temporary directory for convenience.  Make it in the build tree
20564 +# simply because there is no reason to put it here, and in addition,
20565 +# creating and moving files from /tmp can sometimes cause problems.
20566 +# Create a temporary directory, and hook for its removal unless debugging.
20567 +$debug ||
20568 +{
20569 +  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20570 +  trap '{ (exit 1); exit 1; }' 1 2 13 15
20571 +}
20572 +
20573 +# Create a (secure) tmp directory for tmp files.
20574 +
20575 +{
20576 +  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20577 +  test -n "$tmp" && test -d "$tmp"
20578 +}  ||
20579 +{
20580 +  tmp=./confstat$$-$RANDOM
20581 +  (umask 077 && mkdir $tmp)
20582 +} ||
20583 +{
20584 +   echo "$me: cannot create a temporary directory in ." >&2
20585 +   { (exit 1); exit 1; }
20586 +}
20587 +
20588 +_ACEOF
20589 +
20590 +cat >>$CONFIG_STATUS <<_ACEOF
20591 +
20592 +#
20593 +# CONFIG_FILES section.
20594 +#
20595 +
20596 +# No need to generate the scripts if there are no CONFIG_FILES.
20597 +# This happens for instance when ./config.status config.h
20598 +if test -n "\$CONFIG_FILES"; then
20599 +  # Protect against being on the right side of a sed subst in config.status.
20600 +  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20601 +   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20602 +s,@SHELL@,$SHELL,;t t
20603 +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20604 +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20605 +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20606 +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20607 +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20608 +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20609 +s,@exec_prefix@,$exec_prefix,;t t
20610 +s,@prefix@,$prefix,;t t
20611 +s,@program_transform_name@,$program_transform_name,;t t
20612 +s,@bindir@,$bindir,;t t
20613 +s,@sbindir@,$sbindir,;t t
20614 +s,@libexecdir@,$libexecdir,;t t
20615 +s,@datadir@,$datadir,;t t
20616 +s,@sysconfdir@,$sysconfdir,;t t
20617 +s,@sharedstatedir@,$sharedstatedir,;t t
20618 +s,@localstatedir@,$localstatedir,;t t
20619 +s,@libdir@,$libdir,;t t
20620 +s,@includedir@,$includedir,;t t
20621 +s,@oldincludedir@,$oldincludedir,;t t
20622 +s,@infodir@,$infodir,;t t
20623 +s,@mandir@,$mandir,;t t
20624 +s,@build_alias@,$build_alias,;t t
20625 +s,@host_alias@,$host_alias,;t t
20626 +s,@target_alias@,$target_alias,;t t
20627 +s,@DEFS@,$DEFS,;t t
20628 +s,@ECHO_C@,$ECHO_C,;t t
20629 +s,@ECHO_N@,$ECHO_N,;t t
20630 +s,@ECHO_T@,$ECHO_T,;t t
20631 +s,@LIBS@,$LIBS,;t t
20632 +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20633 +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20634 +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20635 +s,@CYGPATH_W@,$CYGPATH_W,;t t
20636 +s,@PACKAGE@,$PACKAGE,;t t
20637 +s,@VERSION@,$VERSION,;t t
20638 +s,@ACLOCAL@,$ACLOCAL,;t t
20639 +s,@AUTOCONF@,$AUTOCONF,;t t
20640 +s,@AUTOMAKE@,$AUTOMAKE,;t t
20641 +s,@AUTOHEADER@,$AUTOHEADER,;t t
20642 +s,@MAKEINFO@,$MAKEINFO,;t t
20643 +s,@AMTAR@,$AMTAR,;t t
20644 +s,@install_sh@,$install_sh,;t t
20645 +s,@STRIP@,$STRIP,;t t
20646 +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20647 +s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20648 +s,@AWK@,$AWK,;t t
20649 +s,@SET_MAKE@,$SET_MAKE,;t t
20650 +s,@am__leading_dot@,$am__leading_dot,;t t
20651 +s,@CC@,$CC,;t t
20652 +s,@CFLAGS@,$CFLAGS,;t t
20653 +s,@LDFLAGS@,$LDFLAGS,;t t
20654 +s,@CPPFLAGS@,$CPPFLAGS,;t t
20655 +s,@ac_ct_CC@,$ac_ct_CC,;t t
20656 +s,@EXEEXT@,$EXEEXT,;t t
20657 +s,@OBJEXT@,$OBJEXT,;t t
20658 +s,@DEPDIR@,$DEPDIR,;t t
20659 +s,@am__include@,$am__include,;t t
20660 +s,@am__quote@,$am__quote,;t t
20661 +s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20662 +s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20663 +s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20664 +s,@CCDEPMODE@,$CCDEPMODE,;t t
20665 +s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20666 +s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20667 +s,@CXX@,$CXX,;t t
20668 +s,@CXXFLAGS@,$CXXFLAGS,;t t
20669 +s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20670 +s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20671 +s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20672 +s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20673 +s,@CPP@,$CPP,;t t
20674 +s,@EGREP@,$EGREP,;t t
20675 +s,@LIBOBJS@,$LIBOBJS,;t t
20676 +s,@DIRECTFB_CONFIG@,$DIRECTFB_CONFIG,;t t
20677 +s,@ATHEOS_GR_TRUE@,$ATHEOS_GR_TRUE,;t t
20678 +s,@ATHEOS_GR_FALSE@,$ATHEOS_GR_FALSE,;t t
20679 +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20680 +CEOF
20681 +
20682 +_ACEOF
20683 +
20684 +  cat >>$CONFIG_STATUS <<\_ACEOF
20685 +  # Split the substitutions into bite-sized pieces for seds with
20686 +  # small command number limits, like on Digital OSF/1 and HP-UX.
20687 +  ac_max_sed_lines=48
20688 +  ac_sed_frag=1 # Number of current file.
20689 +  ac_beg=1 # First line for current file.
20690 +  ac_end=$ac_max_sed_lines # Line after last line for current file.
20691 +  ac_more_lines=:
20692 +  ac_sed_cmds=
20693 +  while $ac_more_lines; do
20694 +    if test $ac_beg -gt 1; then
20695 +      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20696 +    else
20697 +      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20698 +    fi
20699 +    if test ! -s $tmp/subs.frag; then
20700 +      ac_more_lines=false
20701 +    else
20702 +      # The purpose of the label and of the branching condition is to
20703 +      # speed up the sed processing (if there are no `@' at all, there
20704 +      # is no need to browse any of the substitutions).
20705 +      # These are the two extra sed commands mentioned above.
20706 +      (echo ':t
20707 +  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20708 +      if test -z "$ac_sed_cmds"; then
20709 +       ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20710 +      else
20711 +       ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20712 +      fi
20713 +      ac_sed_frag=`expr $ac_sed_frag + 1`
20714 +      ac_beg=$ac_end
20715 +      ac_end=`expr $ac_end + $ac_max_sed_lines`
20716 +    fi
20717 +  done
20718 +  if test -z "$ac_sed_cmds"; then
20719 +    ac_sed_cmds=cat
20720    fi
20721 +fi # test -n "$CONFIG_FILES"
20722  
20723 -  case "$ac_given_srcdir" in
20724 -  .)  srcdir=.
20725 -      if test -z "$ac_dots"; then top_srcdir=.
20726 -      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20727 -  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
20728 -  *) # Relative path.
20729 -    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20730 -    top_srcdir="$ac_dots$ac_given_srcdir" ;;
20731 +_ACEOF
20732 +cat >>$CONFIG_STATUS <<\_ACEOF
20733 +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20734 +  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20735 +  case $ac_file in
20736 +  - | *:- | *:-:* ) # input from stdin
20737 +        cat >$tmp/stdin
20738 +        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20739 +        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20740 +  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20741 +        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20742 +  * )   ac_file_in=$ac_file.in ;;
20743    esac
20744  
20745 -  case "$ac_given_INSTALL" in
20746 -  [/$]*) INSTALL="$ac_given_INSTALL" ;;
20747 -  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20748 -  esac
20749 +  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20750 +  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20751 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20752 +         X"$ac_file" : 'X\(//\)[^/]' \| \
20753 +         X"$ac_file" : 'X\(//\)$' \| \
20754 +         X"$ac_file" : 'X\(/\)' \| \
20755 +         .     : '\(.\)' 2>/dev/null ||
20756 +echo X"$ac_file" |
20757 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20758 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20759 +         /^X\(\/\/\)$/{ s//\1/; q; }
20760 +         /^X\(\/\).*/{ s//\1/; q; }
20761 +         s/.*/./; q'`
20762 +  { if $as_mkdir_p; then
20763 +    mkdir -p "$ac_dir"
20764 +  else
20765 +    as_dir="$ac_dir"
20766 +    as_dirs=
20767 +    while test ! -d "$as_dir"; do
20768 +      as_dirs="$as_dir $as_dirs"
20769 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20770 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20771 +         X"$as_dir" : 'X\(//\)[^/]' \| \
20772 +         X"$as_dir" : 'X\(//\)$' \| \
20773 +         X"$as_dir" : 'X\(/\)' \| \
20774 +         .     : '\(.\)' 2>/dev/null ||
20775 +echo X"$as_dir" |
20776 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20777 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20778 +         /^X\(\/\/\)$/{ s//\1/; q; }
20779 +         /^X\(\/\).*/{ s//\1/; q; }
20780 +         s/.*/./; q'`
20781 +    done
20782 +    test ! -n "$as_dirs" || mkdir $as_dirs
20783 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20784 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20785 +   { (exit 1); exit 1; }; }; }
20786  
20787 -  echo creating "$ac_file"
20788 -  rm -f "$ac_file"
20789 -  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20790 -  case "$ac_file" in
20791 -  *Makefile*) ac_comsub="1i\\
20792 -# $configure_input" ;;
20793 -  *) ac_comsub= ;;
20794 +  ac_builddir=.
20795 +
20796 +if test "$ac_dir" != .; then
20797 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20798 +  # A "../" for each directory in $ac_dir_suffix.
20799 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20800 +else
20801 +  ac_dir_suffix= ac_top_builddir=
20802 +fi
20803 +
20804 +case $srcdir in
20805 +  .)  # No --srcdir option.  We are building in place.
20806 +    ac_srcdir=.
20807 +    if test -z "$ac_top_builddir"; then
20808 +       ac_top_srcdir=.
20809 +    else
20810 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20811 +    fi ;;
20812 +  [\\/]* | ?:[\\/]* )  # Absolute path.
20813 +    ac_srcdir=$srcdir$ac_dir_suffix;
20814 +    ac_top_srcdir=$srcdir ;;
20815 +  *) # Relative path.
20816 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20817 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20818 +esac
20819 +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20820 +# absolute.
20821 +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20822 +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20823 +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20824 +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20825 +
20826 +
20827 +  case $INSTALL in
20828 +  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20829 +  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20830    esac
20831  
20832 -  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20833 -  sed -e "$ac_comsub
20834 -s%@configure_input@%$configure_input%g
20835 -s%@srcdir@%$srcdir%g
20836 -s%@top_srcdir@%$top_srcdir%g
20837 -s%@INSTALL@%$INSTALL%g
20838 -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20839 -fi; done
20840 -rm -f conftest.s*
20841 +  if test x"$ac_file" != x-; then
20842 +    { echo "$as_me:$LINENO: creating $ac_file" >&5
20843 +echo "$as_me: creating $ac_file" >&6;}
20844 +    rm -f "$ac_file"
20845 +  fi
20846 +  # Let's still pretend it is `configure' which instantiates (i.e., don't
20847 +  # use $as_me), people would be surprised to read:
20848 +  #    /* config.h.  Generated by config.status.  */
20849 +  if test x"$ac_file" = x-; then
20850 +    configure_input=
20851 +  else
20852 +    configure_input="$ac_file.  "
20853 +  fi
20854 +  configure_input=$configure_input"Generated from `echo $ac_file_in |
20855 +                                     sed 's,.*/,,'` by configure."
20856 +
20857 +  # First look for the input files in the build tree, otherwise in the
20858 +  # src tree.
20859 +  ac_file_inputs=`IFS=:
20860 +    for f in $ac_file_in; do
20861 +      case $f in
20862 +      -) echo $tmp/stdin ;;
20863 +      [\\/$]*)
20864 +         # Absolute (can't be DOS-style, as IFS=:)
20865 +         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20866 +echo "$as_me: error: cannot find input file: $f" >&2;}
20867 +   { (exit 1); exit 1; }; }
20868 +         echo $f;;
20869 +      *) # Relative
20870 +         if test -f "$f"; then
20871 +           # Build tree
20872 +           echo $f
20873 +         elif test -f "$srcdir/$f"; then
20874 +           # Source tree
20875 +           echo $srcdir/$f
20876 +         else
20877 +           # /dev/null tree
20878 +           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20879 +echo "$as_me: error: cannot find input file: $f" >&2;}
20880 +   { (exit 1); exit 1; }; }
20881 +         fi;;
20882 +      esac
20883 +    done` || { (exit 1); exit 1; }
20884 +_ACEOF
20885 +cat >>$CONFIG_STATUS <<_ACEOF
20886 +  sed "$ac_vpsub
20887 +$extrasub
20888 +_ACEOF
20889 +cat >>$CONFIG_STATUS <<\_ACEOF
20890 +:t
20891 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20892 +s,@configure_input@,$configure_input,;t t
20893 +s,@srcdir@,$ac_srcdir,;t t
20894 +s,@abs_srcdir@,$ac_abs_srcdir,;t t
20895 +s,@top_srcdir@,$ac_top_srcdir,;t t
20896 +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20897 +s,@builddir@,$ac_builddir,;t t
20898 +s,@abs_builddir@,$ac_abs_builddir,;t t
20899 +s,@top_builddir@,$ac_top_builddir,;t t
20900 +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20901 +s,@INSTALL@,$ac_INSTALL,;t t
20902 +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20903 +  rm -f $tmp/stdin
20904 +  if test x"$ac_file" != x-; then
20905 +    mv $tmp/out $ac_file
20906 +  else
20907 +    cat $tmp/out
20908 +    rm -f $tmp/out
20909 +  fi
20910 +
20911 +done
20912 +_ACEOF
20913 +cat >>$CONFIG_STATUS <<\_ACEOF
20914 +
20915 +#
20916 +# CONFIG_HEADER section.
20917 +#
20918  
20919  # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20920  # NAME is the cpp macro being defined and VALUE is the value it is being given.
20921  #
20922  # ac_d sets the value in "#define NAME VALUE" lines.
20923 -ac_dA='s%^\([  ]*\)#\([        ]*define[       ][      ]*\)'
20924 -ac_dB='\([     ][      ]*\)[^  ]*%\1#\2'
20925 -ac_dC='\3'
20926 -ac_dD='%g'
20927 -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20928 -ac_uA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20929 -ac_uB='\([     ]\)%\1#\2define\3'
20930 +ac_dA='s,^\([  ]*\)#\([        ]*define[       ][      ]*\)'
20931 +ac_dB='[       ].*$,\1#\2'
20932 +ac_dC=' '
20933 +ac_dD=',;t'
20934 +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20935 +ac_uA='s,^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20936 +ac_uB='$,\1#\2define\3'
20937  ac_uC=' '
20938 -ac_uD='\4%g'
20939 -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20940 -ac_eA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20941 -ac_eB='$%\1#\2define\3'
20942 -ac_eC=' '
20943 -ac_eD='%g'
20944 +ac_uD=',;t'
20945  
20946 -if test "${CONFIG_HEADERS+set}" != set; then
20947 -EOF
20948 -cat >> $CONFIG_STATUS <<EOF
20949 -  CONFIG_HEADERS="config.h"
20950 -EOF
20951 -cat >> $CONFIG_STATUS <<\EOF
20952 -fi
20953 -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
20954 +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20955    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20956 -  case "$ac_file" in
20957 -  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20958 -       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20959 -  *) ac_file_in="${ac_file}.in" ;;
20960 +  case $ac_file in
20961 +  - | *:- | *:-:* ) # input from stdin
20962 +        cat >$tmp/stdin
20963 +        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20964 +        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20965 +  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20966 +        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20967 +  * )   ac_file_in=$ac_file.in ;;
20968    esac
20969  
20970 -  echo creating $ac_file
20971 +  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20972 +echo "$as_me: creating $ac_file" >&6;}
20973  
20974 -  rm -f conftest.frag conftest.in conftest.out
20975 -  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20976 -  cat $ac_file_inputs > conftest.in
20977 +  # First look for the input files in the build tree, otherwise in the
20978 +  # src tree.
20979 +  ac_file_inputs=`IFS=:
20980 +    for f in $ac_file_in; do
20981 +      case $f in
20982 +      -) echo $tmp/stdin ;;
20983 +      [\\/$]*)
20984 +         # Absolute (can't be DOS-style, as IFS=:)
20985 +         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20986 +echo "$as_me: error: cannot find input file: $f" >&2;}
20987 +   { (exit 1); exit 1; }; }
20988 +         echo $f;;
20989 +      *) # Relative
20990 +         if test -f "$f"; then
20991 +           # Build tree
20992 +           echo $f
20993 +         elif test -f "$srcdir/$f"; then
20994 +           # Source tree
20995 +           echo $srcdir/$f
20996 +         else
20997 +           # /dev/null tree
20998 +           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20999 +echo "$as_me: error: cannot find input file: $f" >&2;}
21000 +   { (exit 1); exit 1; }; }
21001 +         fi;;
21002 +      esac
21003 +    done` || { (exit 1); exit 1; }
21004 +  # Remove the trailing spaces.
21005 +  sed 's/[     ]*$//' $ac_file_inputs >$tmp/in
21006  
21007 -EOF
21008 +_ACEOF
21009  
21010 -# Transform confdefs.h into a sed script conftest.vals that substitutes
21011 -# the proper values into config.h.in to produce config.h.  And first:
21012 -# Protect against being on the right side of a sed subst in config.status.
21013 -# Protect against being in an unquoted here document in config.status.
21014 -rm -f conftest.vals
21015 -cat > conftest.hdr <<\EOF
21016 -s/[\\&%]/\\&/g
21017 -s%[\\$`]%\\&%g
21018 -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21019 -s%ac_d%ac_u%gp
21020 -s%ac_u%ac_e%gp
21021 -EOF
21022 -sed -n -f conftest.hdr confdefs.h > conftest.vals
21023 -rm -f conftest.hdr
21024 +# Transform confdefs.h into two sed scripts, `conftest.defines' and
21025 +# `conftest.undefs', that substitutes the proper values into
21026 +# config.h.in to produce config.h.  The first handles `#define'
21027 +# templates, and the second `#undef' templates.
21028 +# And first: Protect against being on the right side of a sed subst in
21029 +# config.status.  Protect against being in an unquoted here document
21030 +# in config.status.
21031 +rm -f conftest.defines conftest.undefs
21032 +# Using a here document instead of a string reduces the quoting nightmare.
21033 +# Putting comments in sed scripts is not portable.
21034 +#
21035 +# `end' is used to avoid that the second main sed command (meant for
21036 +# 0-ary CPP macros) applies to n-ary macro definitions.
21037 +# See the Autoconf documentation for `clear'.
21038 +cat >confdef2sed.sed <<\_ACEOF
21039 +s/[\\&,]/\\&/g
21040 +s,[\\$`],\\&,g
21041 +t clear
21042 +: clear
21043 +s,^[   ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21044 +t end
21045 +s,^[   ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21046 +: end
21047 +_ACEOF
21048 +# If some macros were called several times there might be several times
21049 +# the same #defines, which is useless.  Nevertheless, we may not want to
21050 +# sort them, since we want the *last* AC-DEFINE to be honored.
21051 +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21052 +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21053 +rm -f confdef2sed.sed
21054  
21055  # This sed command replaces #undef with comments.  This is necessary, for
21056  # example, in the case of _POSIX_SOURCE, which is predefined and required
21057  # on some systems where configure will not decide to define it.
21058 -cat >> conftest.vals <<\EOF
21059 -s%^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21060 -EOF
21061 +cat >>conftest.undefs <<\_ACEOF
21062 +s,^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21063 +_ACEOF
21064  
21065 -# Break up conftest.vals because some shells have a limit on
21066 -# the size of here documents, and old seds have small limits too.
21067 +# Break up conftest.defines because some shells have a limit on the size
21068 +# of here documents, and old seds have small limits too (100 cmds).
21069 +echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21070 +echo '  if grep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21071 +echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21072 +echo '  :' >>$CONFIG_STATUS
21073 +rm -f conftest.tail
21074 +while grep . conftest.defines >/dev/null
21075 +do
21076 +  # Write a limited-size here document to $tmp/defines.sed.
21077 +  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21078 +  # Speed up: don't consider the non `#define' lines.
21079 +  echo '/^[    ]*#[    ]*define/!b' >>$CONFIG_STATUS
21080 +  # Work around the forget-to-reset-the-flag bug.
21081 +  echo 't clr' >>$CONFIG_STATUS
21082 +  echo ': clr' >>$CONFIG_STATUS
21083 +  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21084 +  echo 'CEOF
21085 +  sed -f $tmp/defines.sed $tmp/in >$tmp/out
21086 +  rm -f $tmp/in
21087 +  mv $tmp/out $tmp/in
21088 +' >>$CONFIG_STATUS
21089 +  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21090 +  rm -f conftest.defines
21091 +  mv conftest.tail conftest.defines
21092 +done
21093 +rm -f conftest.defines
21094 +echo '  fi # grep' >>$CONFIG_STATUS
21095 +echo >>$CONFIG_STATUS
21096  
21097 +# Break up conftest.undefs because some shells have a limit on the size
21098 +# of here documents, and old seds have small limits too (100 cmds).
21099 +echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21100  rm -f conftest.tail
21101 -while :
21102 +while grep . conftest.undefs >/dev/null
21103  do
21104 -  ac_lines=`grep -c . conftest.vals`
21105 -  # grep -c gives empty output for an empty file on some AIX systems.
21106 -  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21107 -  # Write a limited-size here document to conftest.frag.
21108 -  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21109 -  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21110 +  # Write a limited-size here document to $tmp/undefs.sed.
21111 +  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21112 +  # Speed up: don't consider the non `#undef'
21113 +  echo '/^[    ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21114 +  # Work around the forget-to-reset-the-flag bug.
21115 +  echo 't clr' >>$CONFIG_STATUS
21116 +  echo ': clr' >>$CONFIG_STATUS
21117 +  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21118    echo 'CEOF
21119 -  sed -f conftest.frag conftest.in > conftest.out
21120 -  rm -f conftest.in
21121 -  mv conftest.out conftest.in
21122 -' >> $CONFIG_STATUS
21123 -  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21124 -  rm -f conftest.vals
21125 -  mv conftest.tail conftest.vals
21126 +  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21127 +  rm -f $tmp/in
21128 +  mv $tmp/out $tmp/in
21129 +' >>$CONFIG_STATUS
21130 +  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21131 +  rm -f conftest.undefs
21132 +  mv conftest.tail conftest.undefs
21133  done
21134 -rm -f conftest.vals
21135 +rm -f conftest.undefs
21136  
21137 -cat >> $CONFIG_STATUS <<\EOF
21138 -  rm -f conftest.frag conftest.h
21139 -  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
21140 -  cat conftest.in >> conftest.h
21141 -  rm -f conftest.in
21142 -  if cmp -s $ac_file conftest.h 2>/dev/null; then
21143 -    echo "$ac_file is unchanged"
21144 -    rm -f conftest.h
21145 +cat >>$CONFIG_STATUS <<\_ACEOF
21146 +  # Let's still pretend it is `configure' which instantiates (i.e., don't
21147 +  # use $as_me), people would be surprised to read:
21148 +  #    /* config.h.  Generated by config.status.  */
21149 +  if test x"$ac_file" = x-; then
21150 +    echo "/* Generated by configure.  */" >$tmp/config.h
21151    else
21152 -    # Remove last slash and all that follows it.  Not all systems have dirname.
21153 -      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21154 -      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21155 -      # The file is in a subdirectory.
21156 -      test ! -d "$ac_dir" && mkdir "$ac_dir"
21157 +    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21158 +  fi
21159 +  cat $tmp/in >>$tmp/config.h
21160 +  rm -f $tmp/in
21161 +  if test x"$ac_file" != x-; then
21162 +    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21163 +      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21164 +echo "$as_me: $ac_file is unchanged" >&6;}
21165 +    else
21166 +      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21167 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21168 +         X"$ac_file" : 'X\(//\)[^/]' \| \
21169 +         X"$ac_file" : 'X\(//\)$' \| \
21170 +         X"$ac_file" : 'X\(/\)' \| \
21171 +         .     : '\(.\)' 2>/dev/null ||
21172 +echo X"$ac_file" |
21173 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21174 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21175 +         /^X\(\/\/\)$/{ s//\1/; q; }
21176 +         /^X\(\/\).*/{ s//\1/; q; }
21177 +         s/.*/./; q'`
21178 +      { if $as_mkdir_p; then
21179 +    mkdir -p "$ac_dir"
21180 +  else
21181 +    as_dir="$ac_dir"
21182 +    as_dirs=
21183 +    while test ! -d "$as_dir"; do
21184 +      as_dirs="$as_dir $as_dirs"
21185 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21186 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21187 +         X"$as_dir" : 'X\(//\)[^/]' \| \
21188 +         X"$as_dir" : 'X\(//\)$' \| \
21189 +         X"$as_dir" : 'X\(/\)' \| \
21190 +         .     : '\(.\)' 2>/dev/null ||
21191 +echo X"$as_dir" |
21192 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21193 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21194 +         /^X\(\/\/\)$/{ s//\1/; q; }
21195 +         /^X\(\/\).*/{ s//\1/; q; }
21196 +         s/.*/./; q'`
21197 +    done
21198 +    test ! -n "$as_dirs" || mkdir $as_dirs
21199 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21200 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21201 +   { (exit 1); exit 1; }; }; }
21202 +
21203 +      rm -f $ac_file
21204 +      mv $tmp/config.h $ac_file
21205      fi
21206 -    rm -f $ac_file
21207 -    mv conftest.h $ac_file
21208 +  else
21209 +    cat $tmp/config.h
21210 +    rm -f $tmp/config.h
21211    fi
21212 -fi; done
21213 +# Compute $ac_file's index in $config_headers.
21214 +_am_stamp_count=1
21215 +for _am_header in $config_headers :; do
21216 +  case $_am_header in
21217 +    $ac_file | $ac_file:* )
21218 +      break ;;
21219 +    * )
21220 +      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21221 +  esac
21222 +done
21223 +echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21224 +$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21225 +         X$ac_file : 'X\(//\)[^/]' \| \
21226 +         X$ac_file : 'X\(//\)$' \| \
21227 +         X$ac_file : 'X\(/\)' \| \
21228 +         .     : '\(.\)' 2>/dev/null ||
21229 +echo X$ac_file |
21230 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21231 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21232 +         /^X\(\/\/\)$/{ s//\1/; q; }
21233 +         /^X\(\/\).*/{ s//\1/; q; }
21234 +         s/.*/./; q'`/stamp-h$_am_stamp_count
21235 +done
21236 +_ACEOF
21237 +cat >>$CONFIG_STATUS <<\_ACEOF
21238  
21239 -EOF
21240 -cat >> $CONFIG_STATUS <<EOF
21241 +#
21242 +# CONFIG_COMMANDS section.
21243 +#
21244 +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21245 +  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21246 +  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21247 +  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21248 +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21249 +         X"$ac_dest" : 'X\(//\)[^/]' \| \
21250 +         X"$ac_dest" : 'X\(//\)$' \| \
21251 +         X"$ac_dest" : 'X\(/\)' \| \
21252 +         .     : '\(.\)' 2>/dev/null ||
21253 +echo X"$ac_dest" |
21254 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21255 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21256 +         /^X\(\/\/\)$/{ s//\1/; q; }
21257 +         /^X\(\/\).*/{ s//\1/; q; }
21258 +         s/.*/./; q'`
21259 +  ac_builddir=.
21260  
21261 +if test "$ac_dir" != .; then
21262 +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21263 +  # A "../" for each directory in $ac_dir_suffix.
21264 +  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21265 +else
21266 +  ac_dir_suffix= ac_top_builddir=
21267 +fi
21268  
21269 -EOF
21270 -cat >> $CONFIG_STATUS <<\EOF
21271 -test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
21272 +case $srcdir in
21273 +  .)  # No --srcdir option.  We are building in place.
21274 +    ac_srcdir=.
21275 +    if test -z "$ac_top_builddir"; then
21276 +       ac_top_srcdir=.
21277 +    else
21278 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21279 +    fi ;;
21280 +  [\\/]* | ?:[\\/]* )  # Absolute path.
21281 +    ac_srcdir=$srcdir$ac_dir_suffix;
21282 +    ac_top_srcdir=$srcdir ;;
21283 +  *) # Relative path.
21284 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21285 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21286 +esac
21287 +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
21288 +# absolute.
21289 +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
21290 +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
21291 +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
21292 +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
21293  
21294 -exit 0
21295 -EOF
21296 +
21297 +  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21298 +echo "$as_me: executing $ac_dest commands" >&6;}
21299 +  case $ac_dest in
21300 +    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21301 +  # Strip MF so we end up with the name of the file.
21302 +  mf=`echo "$mf" | sed -e 's/:.*$//'`
21303 +  # Check whether this is an Automake generated Makefile or not.
21304 +  # We used to match only the files named `Makefile.in', but
21305 +  # some people rename them; so instead we look at the file content.
21306 +  # Grep'ing the first line is not enough: some people post-process
21307 +  # each Makefile.in and add a new line on top of each file to say so.
21308 +  # So let's grep whole file.
21309 +  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21310 +    dirpart=`(dirname "$mf") 2>/dev/null ||
21311 +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21312 +         X"$mf" : 'X\(//\)[^/]' \| \
21313 +         X"$mf" : 'X\(//\)$' \| \
21314 +         X"$mf" : 'X\(/\)' \| \
21315 +         .     : '\(.\)' 2>/dev/null ||
21316 +echo X"$mf" |
21317 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21318 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21319 +         /^X\(\/\/\)$/{ s//\1/; q; }
21320 +         /^X\(\/\).*/{ s//\1/; q; }
21321 +         s/.*/./; q'`
21322 +  else
21323 +    continue
21324 +  fi
21325 +  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21326 +  # Extract the definition of DEP_FILES from the Makefile without
21327 +  # running `make'.
21328 +  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21329 +  test -z "$DEPDIR" && continue
21330 +  # When using ansi2knr, U may be empty or an underscore; expand it
21331 +  U=`sed -n -e '/^U = / s///p' < "$mf"`
21332 +  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21333 +  # We invoke sed twice because it is the simplest approach to
21334 +  # changing $(DEPDIR) to its actual value in the expansion.
21335 +  for file in `sed -n -e '
21336 +    /^DEP_FILES = .*\\\\$/ {
21337 +      s/^DEP_FILES = //
21338 +      :loop
21339 +       s/\\\\$//
21340 +       p
21341 +       n
21342 +       /\\\\$/ b loop
21343 +      p
21344 +    }
21345 +    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21346 +       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21347 +    # Make sure the directory exists.
21348 +    test -f "$dirpart/$file" && continue
21349 +    fdir=`(dirname "$file") 2>/dev/null ||
21350 +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21351 +         X"$file" : 'X\(//\)[^/]' \| \
21352 +         X"$file" : 'X\(//\)$' \| \
21353 +         X"$file" : 'X\(/\)' \| \
21354 +         .     : '\(.\)' 2>/dev/null ||
21355 +echo X"$file" |
21356 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21357 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21358 +         /^X\(\/\/\)$/{ s//\1/; q; }
21359 +         /^X\(\/\).*/{ s//\1/; q; }
21360 +         s/.*/./; q'`
21361 +    { if $as_mkdir_p; then
21362 +    mkdir -p $dirpart/$fdir
21363 +  else
21364 +    as_dir=$dirpart/$fdir
21365 +    as_dirs=
21366 +    while test ! -d "$as_dir"; do
21367 +      as_dirs="$as_dir $as_dirs"
21368 +      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21369 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21370 +         X"$as_dir" : 'X\(//\)[^/]' \| \
21371 +         X"$as_dir" : 'X\(//\)$' \| \
21372 +         X"$as_dir" : 'X\(/\)' \| \
21373 +         .     : '\(.\)' 2>/dev/null ||
21374 +echo X"$as_dir" |
21375 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21376 +         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21377 +         /^X\(\/\/\)$/{ s//\1/; q; }
21378 +         /^X\(\/\).*/{ s//\1/; q; }
21379 +         s/.*/./; q'`
21380 +    done
21381 +    test ! -n "$as_dirs" || mkdir $as_dirs
21382 +  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21383 +echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21384 +   { (exit 1); exit 1; }; }; }
21385 +
21386 +    # echo "creating $dirpart/$file"
21387 +    echo '# dummy' > "$dirpart/$file"
21388 +  done
21389 +done
21390 + ;;
21391 +  esac
21392 +done
21393 +_ACEOF
21394 +
21395 +cat >>$CONFIG_STATUS <<\_ACEOF
21396 +
21397 +{ (exit 0); exit 0; }
21398 +_ACEOF
21399  chmod +x $CONFIG_STATUS
21400 -rm -fr confdefs* $ac_clean_files
21401 -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21402 +ac_clean_files=$ac_clean_files_save
21403 +
21404 +
21405 +# configure is writing to config.log, and then calls config.status.
21406 +# config.status does its own redirection, appending to config.log.
21407 +# Unfortunately, on DOS this fails, as config.log is still kept open
21408 +# by configure, so config.status won't be able to write to it; its
21409 +# output is simply discarded.  So we exec the FD to /dev/null,
21410 +# effectively closing config.log, so it can be properly (re)opened and
21411 +# appended to by config.status.  When coming back to configure, we
21412 +# need to make the FD available again.
21413 +if test "$no_create" != yes; then
21414 +  ac_cs_success=:
21415 +  ac_config_status_args=
21416 +  test "$silent" = yes &&
21417 +    ac_config_status_args="$ac_config_status_args --quiet"
21418 +  exec 5>/dev/null
21419 +  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21420 +  exec 5>>config.log
21421 +  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21422 +  # would make configure fail if this is the last instruction.
21423 +  $ac_cs_success || { (exit 1); exit 1; }
21424 +fi
21425  
21426  
21427  echo "---------------------------------------------------------"
21428 @@ -6704,7 +17003,7 @@
21429  if test "$cf_have_gpm" = yes; then echo "GPM support:          YES"; else echo "GPM support:           NO"; fi
21430  if test "$cf_have_ssl" = yes; then echo "SSL support:          YES"; else echo "SSL support:           NO"; fi
21431  if test "$cf_use_javascript" = yes; then echo "Javascript enabled:     YES"; else echo "Javascript enabled:    NO"; fi
21432 -if test "$cf_use_graphics" = yes; then 
21433 +if test "$cf_use_graphics" = yes; then
21434         echo "Graphics enabled: YES"
21435         echo "Graphics drivers: `echo $drivers|sed 's/^ //'`"
21436         echo "Image formats:            $image_formats"
21437 @@ -6718,5 +17017,5 @@
21438  #rm Makefile.tmp
21439  
21440  #if test -z "$AWK"; then
21441 -#      AC_WARN([awk not found. You won't be able to rebuild code page table.]);
21442 +#      AC_MSG_WARN([awk not found. You won't be able to rebuild code page table.]);
21443  #fi