1#! /bin/sh
2
3# From configure.in Id: configure.in
4
5# Guess values for system-dependent variables and create Makefiles.
6# Generated automatically using autoconf version 2.13
7# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11
12# Defaults:
13ac_help=
14ac_default_prefix=/usr/local
15# Any additions from configure.in:
16ac_help="$ac_help
17  --with-rx[=PATH]        checks for GNU librx "
18ac_help="$ac_help
19  --without-rx            do not use GNU librx "
20
21# Initialize some variables set by options.
22# The variables have the same names as the options, with
23# dashes changed to underlines.
24build=NONE
25cache_file=./config.cache
26exec_prefix=NONE
27host=NONE
28no_create=
29nonopt=NONE
30no_recursion=
31prefix=NONE
32program_prefix=NONE
33program_suffix=NONE
34program_transform_name=s,x,x,
35silent=
36site=
37srcdir=
38target=NONE
39verbose=
40x_includes=NONE
41x_libraries=NONE
42bindir='${exec_prefix}/bin'
43sbindir='${exec_prefix}/sbin'
44libexecdir='${exec_prefix}/libexec'
45datadir='${prefix}/share'
46sysconfdir='${prefix}/etc'
47sharedstatedir='${prefix}/com'
48localstatedir='${prefix}/var'
49libdir='${exec_prefix}/lib'
50includedir='${prefix}/include'
51oldincludedir='/usr/include'
52infodir='${prefix}/info'
53mandir='${prefix}/man'
54
55# Initialize some other variables.
56subdirs=
57MFLAGS= MAKEFLAGS=
58SHELL=${CONFIG_SHELL-/bin/sh}
59# Maximum number of lines to put in a shell here document.
60ac_max_here_lines=12
61
62ac_prev=
63for ac_option
64do
65
66  # If the previous option needs an argument, assign it.
67  if test -n "$ac_prev"; then
68    eval "$ac_prev=\$ac_option"
69    ac_prev=
70    continue
71  fi
72
73  case "$ac_option" in
74  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
75  *) ac_optarg= ;;
76  esac
77
78  # Accept the important Cygnus configure options, so we can diagnose typos.
79
80  case "$ac_option" in
81
82  -bindir | --bindir | --bindi | --bind | --bin | --bi)
83    ac_prev=bindir ;;
84  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85    bindir="$ac_optarg" ;;
86
87  -build | --build | --buil | --bui | --bu)
88    ac_prev=build ;;
89  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
90    build="$ac_optarg" ;;
91
92  -cache-file | --cache-file | --cache-fil | --cache-fi \
93  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
94    ac_prev=cache_file ;;
95  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
96  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
97    cache_file="$ac_optarg" ;;
98
99  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
100    ac_prev=datadir ;;
101  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
102  | --da=*)
103    datadir="$ac_optarg" ;;
104
105  -disable-* | --disable-*)
106    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
107    # Reject names that are not valid shell variable names.
108    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
109      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
110    fi
111    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112    eval "enable_${ac_feature}=no" ;;
113
114  -enable-* | --enable-*)
115    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
116    # Reject names that are not valid shell variable names.
117    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
118      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119    fi
120    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121    case "$ac_option" in
122      *=*) ;;
123      *) ac_optarg=yes ;;
124    esac
125    eval "enable_${ac_feature}='$ac_optarg'" ;;
126
127  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
128  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
129  | --exec | --exe | --ex)
130    ac_prev=exec_prefix ;;
131  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
132  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
133  | --exec=* | --exe=* | --ex=*)
134    exec_prefix="$ac_optarg" ;;
135
136  -gas | --gas | --ga | --g)
137    # Obsolete; use --with-gas.
138    with_gas=yes ;;
139
140  -help | --help | --hel | --he)
141    # Omit some internal or obsolete options to make the list less imposing.
142    # This message is too long to be a string in the A/UX 3.1 sh.
143    cat << EOF
144Usage: configure [options] [host]
145Options: [defaults in brackets after descriptions]
146Configuration:
147  --cache-file=FILE       cache test results in FILE
148  --help                  print this message
149  --no-create             do not create output files
150  --quiet, --silent       do not print \`checking...' messages
151  --version               print the version of autoconf that created configure
152Directory and file names:
153  --prefix=PREFIX         install architecture-independent files in PREFIX
154                          [$ac_default_prefix]
155  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
156                          [same as prefix]
157  --bindir=DIR            user executables in DIR [EPREFIX/bin]
158  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
159  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
160  --datadir=DIR           read-only architecture-independent data in DIR
161                          [PREFIX/share]
162  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
163  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
164                          [PREFIX/com]
165  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
166  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
167  --includedir=DIR        C header files in DIR [PREFIX/include]
168  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
169  --infodir=DIR           info documentation in DIR [PREFIX/info]
170  --mandir=DIR            man documentation in DIR [PREFIX/man]
171  --srcdir=DIR            find the sources in DIR [configure dir or ..]
172  --program-prefix=PREFIX prepend PREFIX to installed program names
173  --program-suffix=SUFFIX append SUFFIX to installed program names
174  --program-transform-name=PROGRAM
175                          run sed PROGRAM on installed program names
176EOF
177    cat << EOF
178Host type:
179  --build=BUILD           configure for building on BUILD [BUILD=HOST]
180  --host=HOST             configure for HOST [guessed]
181  --target=TARGET         configure for TARGET [TARGET=HOST]
182Features and packages:
183  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
184  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
185  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
186  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
187  --x-includes=DIR        X include files are in DIR
188  --x-libraries=DIR       X library files are in DIR
189EOF
190    if test -n "$ac_help"; then
191      echo "--enable and --with options recognized:$ac_help"
192    fi
193    exit 0 ;;
194
195  -host | --host | --hos | --ho)
196    ac_prev=host ;;
197  -host=* | --host=* | --hos=* | --ho=*)
198    host="$ac_optarg" ;;
199
200  -includedir | --includedir | --includedi | --included | --include \
201  | --includ | --inclu | --incl | --inc)
202    ac_prev=includedir ;;
203  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
204  | --includ=* | --inclu=* | --incl=* | --inc=*)
205    includedir="$ac_optarg" ;;
206
207  -infodir | --infodir | --infodi | --infod | --info | --inf)
208    ac_prev=infodir ;;
209  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210    infodir="$ac_optarg" ;;
211
212  -libdir | --libdir | --libdi | --libd)
213    ac_prev=libdir ;;
214  -libdir=* | --libdir=* | --libdi=* | --libd=*)
215    libdir="$ac_optarg" ;;
216
217  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
218  | --libexe | --libex | --libe)
219    ac_prev=libexecdir ;;
220  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
221  | --libexe=* | --libex=* | --libe=*)
222    libexecdir="$ac_optarg" ;;
223
224  -localstatedir | --localstatedir | --localstatedi | --localstated \
225  | --localstate | --localstat | --localsta | --localst \
226  | --locals | --local | --loca | --loc | --lo)
227    ac_prev=localstatedir ;;
228  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
229  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
230  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
231    localstatedir="$ac_optarg" ;;
232
233  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
234    ac_prev=mandir ;;
235  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236    mandir="$ac_optarg" ;;
237
238  -nfp | --nfp | --nf)
239    # Obsolete; use --without-fp.
240    with_fp=no ;;
241
242  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
243  | --no-cr | --no-c)
244    no_create=yes ;;
245
246  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
247  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
248    no_recursion=yes ;;
249
250  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
251  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
252  | --oldin | --oldi | --old | --ol | --o)
253    ac_prev=oldincludedir ;;
254  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
255  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
256  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
257    oldincludedir="$ac_optarg" ;;
258
259  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
260    ac_prev=prefix ;;
261  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
262    prefix="$ac_optarg" ;;
263
264  -program-prefix | --program-prefix | --program-prefi | --program-pref \
265  | --program-pre | --program-pr | --program-p)
266    ac_prev=program_prefix ;;
267  -program-prefix=* | --program-prefix=* | --program-prefi=* \
268  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
269    program_prefix="$ac_optarg" ;;
270
271  -program-suffix | --program-suffix | --program-suffi | --program-suff \
272  | --program-suf | --program-su | --program-s)
273    ac_prev=program_suffix ;;
274  -program-suffix=* | --program-suffix=* | --program-suffi=* \
275  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
276    program_suffix="$ac_optarg" ;;
277
278  -program-transform-name | --program-transform-name \
279  | --program-transform-nam | --program-transform-na \
280  | --program-transform-n | --program-transform- \
281  | --program-transform | --program-transfor \
282  | --program-transfo | --program-transf \
283  | --program-trans | --program-tran \
284  | --progr-tra | --program-tr | --program-t)
285    ac_prev=program_transform_name ;;
286  -program-transform-name=* | --program-transform-name=* \
287  | --program-transform-nam=* | --program-transform-na=* \
288  | --program-transform-n=* | --program-transform-=* \
289  | --program-transform=* | --program-transfor=* \
290  | --program-transfo=* | --program-transf=* \
291  | --program-trans=* | --program-tran=* \
292  | --progr-tra=* | --program-tr=* | --program-t=*)
293    program_transform_name="$ac_optarg" ;;
294
295  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
296  | -silent | --silent | --silen | --sile | --sil)
297    silent=yes ;;
298
299  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
300    ac_prev=sbindir ;;
301  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
302  | --sbi=* | --sb=*)
303    sbindir="$ac_optarg" ;;
304
305  -sharedstatedir | --sharedstatedir | --sharedstatedi \
306  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
307  | --sharedst | --shareds | --shared | --share | --shar \
308  | --sha | --sh)
309    ac_prev=sharedstatedir ;;
310  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
311  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
313  | --sha=* | --sh=*)
314    sharedstatedir="$ac_optarg" ;;
315
316  -site | --site | --sit)
317    ac_prev=site ;;
318  -site=* | --site=* | --sit=*)
319    site="$ac_optarg" ;;
320
321  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
322    ac_prev=srcdir ;;
323  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
324    srcdir="$ac_optarg" ;;
325
326  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
327  | --syscon | --sysco | --sysc | --sys | --sy)
328    ac_prev=sysconfdir ;;
329  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
330  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
331    sysconfdir="$ac_optarg" ;;
332
333  -target | --target | --targe | --targ | --tar | --ta | --t)
334    ac_prev=target ;;
335  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
336    target="$ac_optarg" ;;
337
338  -v | -verbose | --verbose | --verbos | --verbo | --verb)
339    verbose=yes ;;
340
341  -version | --version | --versio | --versi | --vers)
342    echo "configure generated by autoconf version 2.13"
343    exit 0 ;;
344
345  -with-* | --with-*)
346    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
347    # Reject names that are not valid shell variable names.
348    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
349      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
350    fi
351    ac_package=`echo $ac_package| sed 's/-/_/g'`
352    case "$ac_option" in
353      *=*) ;;
354      *) ac_optarg=yes ;;
355    esac
356    eval "with_${ac_package}='$ac_optarg'" ;;
357
358  -without-* | --without-*)
359    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
360    # Reject names that are not valid shell variable names.
361    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
362      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363    fi
364    ac_package=`echo $ac_package| sed 's/-/_/g'`
365    eval "with_${ac_package}=no" ;;
366
367  --x)
368    # Obsolete; use --with-x.
369    with_x=yes ;;
370
371  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
372  | --x-incl | --x-inc | --x-in | --x-i)
373    ac_prev=x_includes ;;
374  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
375  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
376    x_includes="$ac_optarg" ;;
377
378  -x-libraries | --x-libraries | --x-librarie | --x-librari \
379  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
380    ac_prev=x_libraries ;;
381  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
382  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
383    x_libraries="$ac_optarg" ;;
384
385  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
386    ;;
387
388  *)
389    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
390      echo "configure: warning: $ac_option: invalid host type" 1>&2
391    fi
392    if test "x$nonopt" != xNONE; then
393      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
394    fi
395    nonopt="$ac_option"
396    ;;
397
398  esac
399done
400
401if test -n "$ac_prev"; then
402  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403fi
404
405trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
406
407# File descriptor usage:
408# 0 standard input
409# 1 file creation
410# 2 errors and warnings
411# 3 some systems may open it to /dev/tty
412# 4 used on the Kubota Titan
413# 6 checking for... messages and results
414# 5 compiler messages saved in config.log
415if test "$silent" = yes; then
416  exec 6>/dev/null
417else
418  exec 6>&1
419fi
420exec 5>./config.log
421
422echo "\
423This file contains any messages produced by compilers while
424running configure, to aid debugging if configure makes a mistake.
425" 1>&5
426
427# Strip out --no-create and --no-recursion so they do not pile up.
428# Also quote any args containing shell metacharacters.
429ac_configure_args=
430for ac_arg
431do
432  case "$ac_arg" in
433  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
434  | --no-cr | --no-c) ;;
435  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
436  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
437  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
438  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
439  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
440  esac
441done
442
443# NLS nuisances.
444# Only set these to C if already set.  These must not be set unconditionally
445# because not all systems understand e.g. LANG=C (notably SCO).
446# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
447# Non-C LC_CTYPE values break the ctype check.
448if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
449if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
450if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
451if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
452
453# confdefs.h avoids OS command line length limits that DEFS can exceed.
454rm -rf conftest* confdefs.h
455# AIX cpp loses on an empty file, so make sure it contains at least a newline.
456echo > confdefs.h
457
458# A filename unique to this package, relative to the directory that
459# configure is in, which we can look for to find out if srcdir is correct.
460ac_unique_file=config.h
461
462# Find the source files, if location was not specified.
463if test -z "$srcdir"; then
464  ac_srcdir_defaulted=yes
465  # Try the directory containing this script, then its parent.
466  ac_prog=$0
467  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
468  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
469  srcdir=$ac_confdir
470  if test ! -r $srcdir/$ac_unique_file; then
471    srcdir=..
472  fi
473else
474  ac_srcdir_defaulted=no
475fi
476if test ! -r $srcdir/$ac_unique_file; then
477  if test "$ac_srcdir_defaulted" = yes; then
478    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
479  else
480    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481  fi
482fi
483srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
484
485# Prefer explicitly selected file to automatically selected ones.
486if test -z "$CONFIG_SITE"; then
487  if test "x$prefix" != xNONE; then
488    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
489  else
490    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491  fi
492fi
493for ac_site_file in $CONFIG_SITE; do
494  if test -r "$ac_site_file"; then
495    echo "loading site script $ac_site_file"
496    . "$ac_site_file"
497  fi
498done
499
500if test -r "$cache_file"; then
501  echo "loading cache $cache_file"
502  . $cache_file
503else
504  echo "creating cache $cache_file"
505  > $cache_file
506fi
507
508ac_ext=c
509# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
510ac_cpp='$CPP $CPPFLAGS'
511ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
512ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
513cross_compiling=$ac_cv_prog_cc_cross
514
515ac_exeext=
516ac_objext=o
517if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
518  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
519  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
520    ac_n= ac_c='
521' ac_t='	'
522  else
523    ac_n=-n ac_c= ac_t=
524  fi
525else
526  ac_n= ac_c='\c' ac_t=
527fi
528
529
530
531
532echo $ac_n "checking home""... $ac_c" 1>&6
533echo "configure:534: checking home" >&5
534if eval "test \"`echo '$''{'sic_cv_hostname'+set}'`\" = set"; then
535  echo $ac_n "(cached) $ac_c" 1>&6
536else
537  sic_cv_hostname="`hostname 2> /dev/null`"
538fi
539
540echo "$ac_t""$sic_cv_hostname" 1>&6
541if test "$sic_cv_hostname" != "`hostname 2> /dev/null`"; then
542  echo "configure: warning:
543
544		The cache was created on a different system!
545" 1>&2
546  sleep 2
547fi
548
549if test "x$prefix" = xNONE; then
550echo $ac_n "checking for prefix by $ac_c" 1>&6
551# Extract the first word of "sic", so it can be a program name with args.
552set dummy sic; ac_word=$2
553echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
554echo "configure:555: checking for $ac_word" >&5
555if eval "test \"`echo '$''{'ac_cv_path_SIC'+set}'`\" = set"; then
556  echo $ac_n "(cached) $ac_c" 1>&6
557else
558  case "$SIC" in
559  /*)
560  ac_cv_path_SIC="$SIC" # Let the user override the test with a path.
561  ;;
562  ?:/*)
563  ac_cv_path_SIC="$SIC" # Let the user override the test with a dos path.
564  ;;
565  *)
566  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
567  ac_dummy="$PATH"
568  for ac_dir in $ac_dummy; do
569    test -z "$ac_dir" && ac_dir=.
570    if test -f $ac_dir/$ac_word; then
571      ac_cv_path_SIC="$ac_dir/$ac_word"
572      break
573    fi
574  done
575  IFS="$ac_save_ifs"
576  ;;
577esac
578fi
579SIC="$ac_cv_path_SIC"
580if test -n "$SIC"; then
581  echo "$ac_t""$SIC" 1>&6
582else
583  echo "$ac_t""no" 1>&6
584fi
585
586  if test -n "$ac_cv_path_SIC"; then
587    prefix=`echo $ac_cv_path_SIC|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
588  fi
589fi
590
591
592# Extract the first word of "gcc", so it can be a program name with args.
593set dummy gcc; ac_word=$2
594echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
595echo "configure:596: checking for $ac_word" >&5
596if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
597  echo $ac_n "(cached) $ac_c" 1>&6
598else
599  if test -n "$CC"; then
600  ac_cv_prog_CC="$CC" # Let the user override the test.
601else
602  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
603  ac_dummy="$PATH"
604  for ac_dir in $ac_dummy; do
605    test -z "$ac_dir" && ac_dir=.
606    if test -f $ac_dir/$ac_word; then
607      ac_cv_prog_CC="gcc"
608      break
609    fi
610  done
611  IFS="$ac_save_ifs"
612fi
613fi
614CC="$ac_cv_prog_CC"
615if test -n "$CC"; then
616  echo "$ac_t""$CC" 1>&6
617else
618  echo "$ac_t""no" 1>&6
619fi
620
621if test -z "$CC"; then
622  # Extract the first word of "cc", so it can be a program name with args.
623set dummy cc; ac_word=$2
624echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
625echo "configure:626: checking for $ac_word" >&5
626if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
627  echo $ac_n "(cached) $ac_c" 1>&6
628else
629  if test -n "$CC"; then
630  ac_cv_prog_CC="$CC" # Let the user override the test.
631else
632  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
633  ac_prog_rejected=no
634  ac_dummy="$PATH"
635  for ac_dir in $ac_dummy; do
636    test -z "$ac_dir" && ac_dir=.
637    if test -f $ac_dir/$ac_word; then
638      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
639        ac_prog_rejected=yes
640	continue
641      fi
642      ac_cv_prog_CC="cc"
643      break
644    fi
645  done
646  IFS="$ac_save_ifs"
647if test $ac_prog_rejected = yes; then
648  # We found a bogon in the path, so make sure we never use it.
649  set dummy $ac_cv_prog_CC
650  shift
651  if test $# -gt 0; then
652    # We chose a different compiler from the bogus one.
653    # However, it has the same basename, so the bogon will be chosen
654    # first if we set CC to just the basename; use the full file name.
655    shift
656    set dummy "$ac_dir/$ac_word" "$@"
657    shift
658    ac_cv_prog_CC="$@"
659  fi
660fi
661fi
662fi
663CC="$ac_cv_prog_CC"
664if test -n "$CC"; then
665  echo "$ac_t""$CC" 1>&6
666else
667  echo "$ac_t""no" 1>&6
668fi
669
670  if test -z "$CC"; then
671    case "`uname -s`" in
672    *win32* | *WIN32*)
673      # Extract the first word of "cl", so it can be a program name with args.
674set dummy cl; ac_word=$2
675echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
676echo "configure:677: checking for $ac_word" >&5
677if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
678  echo $ac_n "(cached) $ac_c" 1>&6
679else
680  if test -n "$CC"; then
681  ac_cv_prog_CC="$CC" # Let the user override the test.
682else
683  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
684  ac_dummy="$PATH"
685  for ac_dir in $ac_dummy; do
686    test -z "$ac_dir" && ac_dir=.
687    if test -f $ac_dir/$ac_word; then
688      ac_cv_prog_CC="cl"
689      break
690    fi
691  done
692  IFS="$ac_save_ifs"
693fi
694fi
695CC="$ac_cv_prog_CC"
696if test -n "$CC"; then
697  echo "$ac_t""$CC" 1>&6
698else
699  echo "$ac_t""no" 1>&6
700fi
701 ;;
702    esac
703  fi
704  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
705fi
706
707echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
708echo "configure:709: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
709
710ac_ext=c
711# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
712ac_cpp='$CPP $CPPFLAGS'
713ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
714ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
715cross_compiling=$ac_cv_prog_cc_cross
716
717cat > conftest.$ac_ext << EOF
718
719#line 720 "configure"
720#include "confdefs.h"
721
722main(){return(0);}
723EOF
724if { (eval echo configure:725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
725  ac_cv_prog_cc_works=yes
726  # If we can't run a trivial program, we are probably using a cross compiler.
727  if (./conftest; exit) 2>/dev/null; then
728    ac_cv_prog_cc_cross=no
729  else
730    ac_cv_prog_cc_cross=yes
731  fi
732else
733  echo "configure: failed program was:" >&5
734  cat conftest.$ac_ext >&5
735  ac_cv_prog_cc_works=no
736fi
737rm -fr conftest*
738ac_ext=c
739# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
740ac_cpp='$CPP $CPPFLAGS'
741ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
742ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
743cross_compiling=$ac_cv_prog_cc_cross
744
745echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
746if test $ac_cv_prog_cc_works = no; then
747  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
748fi
749echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
750echo "configure:751: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
751echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
752cross_compiling=$ac_cv_prog_cc_cross
753
754echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
755echo "configure:756: checking whether we are using GNU C" >&5
756if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
757  echo $ac_n "(cached) $ac_c" 1>&6
758else
759  cat > conftest.c <<EOF
760#ifdef __GNUC__
761  yes;
762#endif
763EOF
764if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
765  ac_cv_prog_gcc=yes
766else
767  ac_cv_prog_gcc=no
768fi
769fi
770
771echo "$ac_t""$ac_cv_prog_gcc" 1>&6
772
773if test $ac_cv_prog_gcc = yes; then
774  GCC=yes
775else
776  GCC=
777fi
778
779ac_test_CFLAGS="${CFLAGS+set}"
780ac_save_CFLAGS="$CFLAGS"
781CFLAGS=
782echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
783echo "configure:784: checking whether ${CC-cc} accepts -g" >&5
784if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
785  echo $ac_n "(cached) $ac_c" 1>&6
786else
787  echo 'void f(){}' > conftest.c
788if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
789  ac_cv_prog_cc_g=yes
790else
791  ac_cv_prog_cc_g=no
792fi
793rm -f conftest*
794
795fi
796
797echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
798if test "$ac_test_CFLAGS" = set; then
799  CFLAGS="$ac_save_CFLAGS"
800elif test $ac_cv_prog_cc_g = yes; then
801  if test "$GCC" = yes; then
802    CFLAGS="-g -O2"
803  else
804    CFLAGS="-g"
805  fi
806else
807  if test "$GCC" = yes; then
808    CFLAGS="-O2"
809  else
810    CFLAGS=
811  fi
812fi
813
814ac_aux_dir=
815for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
816  if test -f $ac_dir/install-sh; then
817    ac_aux_dir=$ac_dir
818    ac_install_sh="$ac_aux_dir/install-sh -c"
819    break
820  elif test -f $ac_dir/install.sh; then
821    ac_aux_dir=$ac_dir
822    ac_install_sh="$ac_aux_dir/install.sh -c"
823    break
824  fi
825done
826if test -z "$ac_aux_dir"; then
827  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
828fi
829ac_config_guess=$ac_aux_dir/config.guess
830ac_config_sub=$ac_aux_dir/config.sub
831ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
832
833# Find a good install program.  We prefer a C program (faster),
834# so one script is as good as another.  But avoid the broken or
835# incompatible versions:
836# SysV /etc/install, /usr/sbin/install
837# SunOS /usr/etc/install
838# IRIX /sbin/install
839# AIX /bin/install
840# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
841# AFS /usr/afsws/bin/install, which mishandles nonexistent args
842# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
843# ./install, which can be erroneously created by make from ./install.sh.
844echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
845echo "configure:846: checking for a BSD compatible install" >&5
846if test -z "$INSTALL"; then
847if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
848  echo $ac_n "(cached) $ac_c" 1>&6
849else
850    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
851  for ac_dir in $PATH; do
852    # Account for people who put trailing slashes in PATH elements.
853    case "$ac_dir/" in
854    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
855    *)
856      # OSF1 and SCO ODT 3.0 have their own names for install.
857      # Don't use installbsd from OSF since it installs stuff as root
858      # by default.
859      for ac_prog in ginstall scoinst install; do
860        if test -f $ac_dir/$ac_prog; then
861	  if test $ac_prog = install &&
862            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
863	    # AIX install.  It has an incompatible calling convention.
864	    :
865	  else
866	    ac_cv_path_install="$ac_dir/$ac_prog -c"
867	    break 2
868	  fi
869	fi
870      done
871      ;;
872    esac
873  done
874  IFS="$ac_save_IFS"
875
876fi
877  if test "${ac_cv_path_install+set}" = set; then
878    INSTALL="$ac_cv_path_install"
879  else
880    # As a last resort, use the slow shell script.  We don't cache a
881    # path for INSTALL within a source directory, because that will
882    # break other packages using the cache if that directory is
883    # removed, or if the path is relative.
884    INSTALL="$ac_install_sh"
885  fi
886fi
887echo "$ac_t""$INSTALL" 1>&6
888
889# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
890# It thinks the first close brace ends the variable substitution.
891test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
892
893test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
894
895test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
896
897
898
899echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
900echo "configure:901: checking for library containing gethostbyname" >&5
901if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
902  echo $ac_n "(cached) $ac_c" 1>&6
903else
904  ac_func_search_save_LIBS="$LIBS"
905ac_cv_search_gethostbyname="no"
906cat > conftest.$ac_ext <<EOF
907#line 908 "configure"
908#include "confdefs.h"
909/* Override any gcc2 internal prototype to avoid an error.  */
910/* We use char because int might match the return type of a gcc2
911    builtin and then its argument prototype would still apply.  */
912char gethostbyname();
913
914int main() {
915gethostbyname()
916; return 0; }
917EOF
918if { (eval echo configure:919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
919  rm -rf conftest*
920  ac_cv_search_gethostbyname="none required"
921else
922  echo "configure: failed program was:" >&5
923  cat conftest.$ac_ext >&5
924fi
925rm -f conftest*
926test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do
927LIBS="-l$i  $ac_func_search_save_LIBS"
928cat > conftest.$ac_ext <<EOF
929#line 930 "configure"
930#include "confdefs.h"
931/* Override any gcc2 internal prototype to avoid an error.  */
932/* We use char because int might match the return type of a gcc2
933    builtin and then its argument prototype would still apply.  */
934char gethostbyname();
935
936int main() {
937gethostbyname()
938; return 0; }
939EOF
940if { (eval echo configure:941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
941  rm -rf conftest*
942  ac_cv_search_gethostbyname="-l$i"
943break
944else
945  echo "configure: failed program was:" >&5
946  cat conftest.$ac_ext >&5
947fi
948rm -f conftest*
949done
950LIBS="$ac_func_search_save_LIBS"
951fi
952
953echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
954if test "$ac_cv_search_gethostbyname" != "no"; then
955  test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
956
957else :
958  echo "configure: warning: I didn't find gethostbyname(). help me!" 1>&2
959fi
960
961echo $ac_n "checking for library containing inet_addr""... $ac_c" 1>&6
962echo "configure:963: checking for library containing inet_addr" >&5
963if eval "test \"`echo '$''{'ac_cv_search_inet_addr'+set}'`\" = set"; then
964  echo $ac_n "(cached) $ac_c" 1>&6
965else
966  ac_func_search_save_LIBS="$LIBS"
967ac_cv_search_inet_addr="no"
968cat > conftest.$ac_ext <<EOF
969#line 970 "configure"
970#include "confdefs.h"
971/* Override any gcc2 internal prototype to avoid an error.  */
972/* We use char because int might match the return type of a gcc2
973    builtin and then its argument prototype would still apply.  */
974char inet_addr();
975
976int main() {
977inet_addr()
978; return 0; }
979EOF
980if { (eval echo configure:981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
981  rm -rf conftest*
982  ac_cv_search_inet_addr="none required"
983else
984  echo "configure: failed program was:" >&5
985  cat conftest.$ac_ext >&5
986fi
987rm -f conftest*
988test "$ac_cv_search_inet_addr" = "no" && for i in nsl; do
989LIBS="-l$i  $ac_func_search_save_LIBS"
990cat > conftest.$ac_ext <<EOF
991#line 992 "configure"
992#include "confdefs.h"
993/* Override any gcc2 internal prototype to avoid an error.  */
994/* We use char because int might match the return type of a gcc2
995    builtin and then its argument prototype would still apply.  */
996char inet_addr();
997
998int main() {
999inet_addr()
1000; return 0; }
1001EOF
1002if { (eval echo configure:1003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1003  rm -rf conftest*
1004  ac_cv_search_inet_addr="-l$i"
1005break
1006else
1007  echo "configure: failed program was:" >&5
1008  cat conftest.$ac_ext >&5
1009fi
1010rm -f conftest*
1011done
1012LIBS="$ac_func_search_save_LIBS"
1013fi
1014
1015echo "$ac_t""$ac_cv_search_inet_addr" 1>&6
1016if test "$ac_cv_search_inet_addr" != "no"; then
1017  test "$ac_cv_search_inet_addr" = "none required" || LIBS="$ac_cv_search_inet_addr $LIBS"
1018
1019else :
1020  echo "configure: warning: I didn't find inet_addr(). help me!" 1>&2
1021fi
1022
1023echo $ac_n "checking for library containing getaddrinfo""... $ac_c" 1>&6
1024echo "configure:1025: checking for library containing getaddrinfo" >&5
1025if eval "test \"`echo '$''{'ac_cv_search_getaddrinfo'+set}'`\" = set"; then
1026  echo $ac_n "(cached) $ac_c" 1>&6
1027else
1028  ac_func_search_save_LIBS="$LIBS"
1029ac_cv_search_getaddrinfo="no"
1030cat > conftest.$ac_ext <<EOF
1031#line 1032 "configure"
1032#include "confdefs.h"
1033/* Override any gcc2 internal prototype to avoid an error.  */
1034/* We use char because int might match the return type of a gcc2
1035    builtin and then its argument prototype would still apply.  */
1036char getaddrinfo();
1037
1038int main() {
1039getaddrinfo()
1040; return 0; }
1041EOF
1042if { (eval echo configure:1043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1043  rm -rf conftest*
1044  ac_cv_search_getaddrinfo="none required"
1045else
1046  echo "configure: failed program was:" >&5
1047  cat conftest.$ac_ext >&5
1048fi
1049rm -f conftest*
1050test "$ac_cv_search_getaddrinfo" = "no" && for i in socket; do
1051LIBS="-l$i  $ac_func_search_save_LIBS"
1052cat > conftest.$ac_ext <<EOF
1053#line 1054 "configure"
1054#include "confdefs.h"
1055/* Override any gcc2 internal prototype to avoid an error.  */
1056/* We use char because int might match the return type of a gcc2
1057    builtin and then its argument prototype would still apply.  */
1058char getaddrinfo();
1059
1060int main() {
1061getaddrinfo()
1062; return 0; }
1063EOF
1064if { (eval echo configure:1065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1065  rm -rf conftest*
1066  ac_cv_search_getaddrinfo="-l$i"
1067break
1068else
1069  echo "configure: failed program was:" >&5
1070  cat conftest.$ac_ext >&5
1071fi
1072rm -f conftest*
1073done
1074LIBS="$ac_func_search_save_LIBS"
1075fi
1076
1077echo "$ac_t""$ac_cv_search_getaddrinfo" 1>&6
1078if test "$ac_cv_search_getaddrinfo" != "no"; then
1079  test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
1080  cat >> confdefs.h <<\EOF
1081#define HAVE_GETADDRINFO 1
1082EOF
1083
1084else :
1085  echo "configure: warning: no getaddrinfo(): IPv6 support not enabled." 1>&2
1086fi
1087
1088echo $ac_n "checking for library containing select""... $ac_c" 1>&6
1089echo "configure:1090: checking for library containing select" >&5
1090if eval "test \"`echo '$''{'ac_cv_search_select'+set}'`\" = set"; then
1091  echo $ac_n "(cached) $ac_c" 1>&6
1092else
1093  ac_func_search_save_LIBS="$LIBS"
1094ac_cv_search_select="no"
1095cat > conftest.$ac_ext <<EOF
1096#line 1097 "configure"
1097#include "confdefs.h"
1098/* Override any gcc2 internal prototype to avoid an error.  */
1099/* We use char because int might match the return type of a gcc2
1100    builtin and then its argument prototype would still apply.  */
1101char select();
1102
1103int main() {
1104select()
1105; return 0; }
1106EOF
1107if { (eval echo configure:1108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1108  rm -rf conftest*
1109  ac_cv_search_select="none required"
1110else
1111  echo "configure: failed program was:" >&5
1112  cat conftest.$ac_ext >&5
1113fi
1114rm -f conftest*
1115test "$ac_cv_search_select" = "no" && for i in socket; do
1116LIBS="-l$i  $ac_func_search_save_LIBS"
1117cat > conftest.$ac_ext <<EOF
1118#line 1119 "configure"
1119#include "confdefs.h"
1120/* Override any gcc2 internal prototype to avoid an error.  */
1121/* We use char because int might match the return type of a gcc2
1122    builtin and then its argument prototype would still apply.  */
1123char select();
1124
1125int main() {
1126select()
1127; return 0; }
1128EOF
1129if { (eval echo configure:1130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1130  rm -rf conftest*
1131  ac_cv_search_select="-l$i"
1132break
1133else
1134  echo "configure: failed program was:" >&5
1135  cat conftest.$ac_ext >&5
1136fi
1137rm -f conftest*
1138done
1139LIBS="$ac_func_search_save_LIBS"
1140fi
1141
1142echo "$ac_t""$ac_cv_search_select" 1>&6
1143if test "$ac_cv_search_select" != "no"; then
1144  test "$ac_cv_search_select" = "none required" || LIBS="$ac_cv_search_select $LIBS"
1145
1146else :
1147  echo "configure: warning: I didn't find select(). help me!" 1>&2
1148fi
1149
1150echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
1151echo "configure:1152: checking for library containing socket" >&5
1152if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
1153  echo $ac_n "(cached) $ac_c" 1>&6
1154else
1155  ac_func_search_save_LIBS="$LIBS"
1156ac_cv_search_socket="no"
1157cat > conftest.$ac_ext <<EOF
1158#line 1159 "configure"
1159#include "confdefs.h"
1160/* Override any gcc2 internal prototype to avoid an error.  */
1161/* We use char because int might match the return type of a gcc2
1162    builtin and then its argument prototype would still apply.  */
1163char socket();
1164
1165int main() {
1166socket()
1167; return 0; }
1168EOF
1169if { (eval echo configure:1170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1170  rm -rf conftest*
1171  ac_cv_search_socket="none required"
1172else
1173  echo "configure: failed program was:" >&5
1174  cat conftest.$ac_ext >&5
1175fi
1176rm -f conftest*
1177test "$ac_cv_search_socket" = "no" && for i in socket xnet; do
1178LIBS="-l$i  $ac_func_search_save_LIBS"
1179cat > conftest.$ac_ext <<EOF
1180#line 1181 "configure"
1181#include "confdefs.h"
1182/* Override any gcc2 internal prototype to avoid an error.  */
1183/* We use char because int might match the return type of a gcc2
1184    builtin and then its argument prototype would still apply.  */
1185char socket();
1186
1187int main() {
1188socket()
1189; return 0; }
1190EOF
1191if { (eval echo configure:1192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1192  rm -rf conftest*
1193  ac_cv_search_socket="-l$i"
1194break
1195else
1196  echo "configure: failed program was:" >&5
1197  cat conftest.$ac_ext >&5
1198fi
1199rm -f conftest*
1200done
1201LIBS="$ac_func_search_save_LIBS"
1202fi
1203
1204echo "$ac_t""$ac_cv_search_socket" 1>&6
1205if test "$ac_cv_search_socket" != "no"; then
1206  test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
1207
1208else :
1209  echo "configure: warning: I didn't find socket(). help me!" 1>&2
1210fi
1211
1212echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
1213echo "configure:1214: checking for library containing tgetent" >&5
1214if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
1215  echo $ac_n "(cached) $ac_c" 1>&6
1216else
1217  ac_func_search_save_LIBS="$LIBS"
1218ac_cv_search_tgetent="no"
1219cat > conftest.$ac_ext <<EOF
1220#line 1221 "configure"
1221#include "confdefs.h"
1222/* Override any gcc2 internal prototype to avoid an error.  */
1223/* We use char because int might match the return type of a gcc2
1224    builtin and then its argument prototype would still apply.  */
1225char tgetent();
1226
1227int main() {
1228tgetent()
1229; return 0; }
1230EOF
1231if { (eval echo configure:1232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1232  rm -rf conftest*
1233  ac_cv_search_tgetent="none required"
1234else
1235  echo "configure: failed program was:" >&5
1236  cat conftest.$ac_ext >&5
1237fi
1238rm -f conftest*
1239test "$ac_cv_search_tgetent" = "no" && for i in termcap curses ncurses; do
1240LIBS="-l$i  $ac_func_search_save_LIBS"
1241cat > conftest.$ac_ext <<EOF
1242#line 1243 "configure"
1243#include "confdefs.h"
1244/* Override any gcc2 internal prototype to avoid an error.  */
1245/* We use char because int might match the return type of a gcc2
1246    builtin and then its argument prototype would still apply.  */
1247char tgetent();
1248
1249int main() {
1250tgetent()
1251; return 0; }
1252EOF
1253if { (eval echo configure:1254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1254  rm -rf conftest*
1255  ac_cv_search_tgetent="-l$i"
1256break
1257else
1258  echo "configure: failed program was:" >&5
1259  cat conftest.$ac_ext >&5
1260fi
1261rm -f conftest*
1262done
1263LIBS="$ac_func_search_save_LIBS"
1264fi
1265
1266echo "$ac_t""$ac_cv_search_tgetent" 1>&6
1267if test "$ac_cv_search_tgetent" != "no"; then
1268  test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
1269
1270else :
1271  echo "configure: warning: I didn't find tgetent(). help me!" 1>&2
1272fi
1273echo $ac_n "checking for malloc in -lmapmalloc""... $ac_c" 1>&6
1274echo "configure:1275: checking for malloc in -lmapmalloc" >&5
1275ac_lib_var=`echo mapmalloc'_'malloc | sed 'y%./+-%__p_%'`
1276if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1277  echo $ac_n "(cached) $ac_c" 1>&6
1278else
1279  ac_save_LIBS="$LIBS"
1280LIBS="-lmapmalloc  $LIBS"
1281cat > conftest.$ac_ext <<EOF
1282#line 1283 "configure"
1283#include "confdefs.h"
1284/* Override any gcc2 internal prototype to avoid an error.  */
1285/* We use char because int might match the return type of a gcc2
1286    builtin and then its argument prototype would still apply.  */
1287char malloc();
1288
1289int main() {
1290malloc()
1291; return 0; }
1292EOF
1293if { (eval echo configure:1294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1294  rm -rf conftest*
1295  eval "ac_cv_lib_$ac_lib_var=yes"
1296else
1297  echo "configure: failed program was:" >&5
1298  cat conftest.$ac_ext >&5
1299  rm -rf conftest*
1300  eval "ac_cv_lib_$ac_lib_var=no"
1301fi
1302rm -f conftest*
1303LIBS="$ac_save_LIBS"
1304
1305fi
1306if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1307  echo "$ac_t""yes" 1>&6
1308    ac_tr_lib=HAVE_LIB`echo mapmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1309    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1310  cat >> confdefs.h <<EOF
1311#define $ac_tr_lib 1
1312EOF
1313
1314  LIBS="-lmapmalloc $LIBS"
1315
1316else
1317  echo "$ac_t""no" 1>&6
1318fi
1319
1320cat > confcache <<\EOF
1321# This file is a shell script that caches the results of configure
1322# tests run on this system so they can be shared between configure
1323# scripts and configure runs.  It is not useful on other systems.
1324# If it contains results you don't want to keep, you may remove or edit it.
1325#
1326# By default, configure uses ./config.cache as the cache file,
1327# creating it if it does not exist already.  You can give configure
1328# the --cache-file=FILE option to use a different cache file; that is
1329# what configure does when it calls configure scripts in
1330# subdirectories, so they share the cache.
1331# Giving --cache-file=/dev/null disables caching, for debugging configure.
1332# config.status only pays attention to the cache file if you give it the
1333# --recheck option to rerun configure.
1334#
1335EOF
1336# The following way of writing the cache mishandles newlines in values,
1337# but we know of no workaround that is simple, portable, and efficient.
1338# So, don't put newlines in cache variables' values.
1339# Ultrix sh set writes to stderr and can't be redirected directly,
1340# and sets the high bit in the cache file unless we assign to the vars.
1341(set) 2>&1 |
1342  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1343  *ac_space=\ *)
1344    # `set' does not quote correctly, so add quotes (double-quote substitution
1345    # turns \\\\ into \\, and sed turns \\ into \).
1346    sed -n \
1347      -e "s/'/'\\\\''/g" \
1348      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1349    ;;
1350  *)
1351    # `set' quotes correctly as required by POSIX, so do not add quotes.
1352    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1353    ;;
1354  esac >> confcache
1355if cmp -s $cache_file confcache; then
1356  :
1357else
1358  if test -w $cache_file; then
1359    echo "updating cache $cache_file"
1360    cat confcache > $cache_file
1361  else
1362    echo "not updating unwritable cache $cache_file"
1363  fi
1364fi
1365rm -f confcache
1366
1367echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1368echo "configure:1369: checking for pthread_create in -lpthread" >&5
1369ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1370if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1371  echo $ac_n "(cached) $ac_c" 1>&6
1372else
1373  ac_save_LIBS="$LIBS"
1374LIBS="-lpthread  $LIBS"
1375cat > conftest.$ac_ext <<EOF
1376#line 1377 "configure"
1377#include "confdefs.h"
1378/* Override any gcc2 internal prototype to avoid an error.  */
1379/* We use char because int might match the return type of a gcc2
1380    builtin and then its argument prototype would still apply.  */
1381char pthread_create();
1382
1383int main() {
1384pthread_create()
1385; return 0; }
1386EOF
1387if { (eval echo configure:1388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1388  rm -rf conftest*
1389  eval "ac_cv_lib_$ac_lib_var=yes"
1390else
1391  echo "configure: failed program was:" >&5
1392  cat conftest.$ac_ext >&5
1393  rm -rf conftest*
1394  eval "ac_cv_lib_$ac_lib_var=no"
1395fi
1396rm -f conftest*
1397LIBS="$ac_save_LIBS"
1398
1399fi
1400if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1401  echo "$ac_t""yes" 1>&6
1402    ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1403    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1404  cat >> confdefs.h <<EOF
1405#define $ac_tr_lib 1
1406EOF
1407
1408  LIBS="-lpthread $LIBS"
1409
1410else
1411  echo "$ac_t""no" 1>&6
1412NOPT=1
1413fi
1414
1415if test "x$NOPT" = "x1"; then
1416	if test "`uname -s`" = "FreeBSD"; then
1417				CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
1418		LDFLAGS="$LDFLAGS -pthread"
1419		echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
1420echo "configure:1421: checking for pthread_create" >&5
1421if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
1422  echo $ac_n "(cached) $ac_c" 1>&6
1423else
1424  cat > conftest.$ac_ext <<EOF
1425#line 1426 "configure"
1426#include "confdefs.h"
1427/* System header to define __stub macros and hopefully few prototypes,
1428    which can conflict with char pthread_create(); below.  */
1429#include <assert.h>
1430/* Override any gcc2 internal prototype to avoid an error.  */
1431/* We use char because int might match the return type of a gcc2
1432    builtin and then its argument prototype would still apply.  */
1433char pthread_create();
1434
1435int main() {
1436
1437/* The GNU C library defines this for functions which it implements
1438    to always fail with ENOSYS.  Some functions are actually named
1439    something starting with __ and the normal name is an alias.  */
1440#if defined (__stub_pthread_create) || defined (__stub___pthread_create)
1441choke me
1442#else
1443pthread_create();
1444#endif
1445
1446; return 0; }
1447EOF
1448if { (eval echo configure:1449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1449  rm -rf conftest*
1450  eval "ac_cv_func_pthread_create=yes"
1451else
1452  echo "configure: failed program was:" >&5
1453  cat conftest.$ac_ext >&5
1454  rm -rf conftest*
1455  eval "ac_cv_func_pthread_create=no"
1456fi
1457rm -f conftest*
1458fi
1459
1460if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
1461  echo "$ac_t""yes" 1>&6
1462  :
1463else
1464  echo "$ac_t""no" 1>&6
1465{ echo "configure: error: POSIX threads not found -- help!" 1>&2; exit 1; }
1466fi
1467
1468	else if test "`uname -s`" = "CYGWIN_NT-5.0"; then
1469			echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
1470echo "configure:1471: checking for pthread_create" >&5
1471if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
1472  echo $ac_n "(cached) $ac_c" 1>&6
1473else
1474  cat > conftest.$ac_ext <<EOF
1475#line 1476 "configure"
1476#include "confdefs.h"
1477/* System header to define __stub macros and hopefully few prototypes,
1478    which can conflict with char pthread_create(); below.  */
1479#include <assert.h>
1480/* Override any gcc2 internal prototype to avoid an error.  */
1481/* We use char because int might match the return type of a gcc2
1482    builtin and then its argument prototype would still apply.  */
1483char pthread_create();
1484
1485int main() {
1486
1487/* The GNU C library defines this for functions which it implements
1488    to always fail with ENOSYS.  Some functions are actually named
1489    something starting with __ and the normal name is an alias.  */
1490#if defined (__stub_pthread_create) || defined (__stub___pthread_create)
1491choke me
1492#else
1493pthread_create();
1494#endif
1495
1496; return 0; }
1497EOF
1498if { (eval echo configure:1499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1499  rm -rf conftest*
1500  eval "ac_cv_func_pthread_create=yes"
1501else
1502  echo "configure: failed program was:" >&5
1503  cat conftest.$ac_ext >&5
1504  rm -rf conftest*
1505  eval "ac_cv_func_pthread_create=no"
1506fi
1507rm -f conftest*
1508fi
1509
1510if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
1511  echo "$ac_t""yes" 1>&6
1512  :
1513else
1514  echo "$ac_t""no" 1>&6
1515{ echo "configure: error: POSIX threads not found -- Upgrade to a newer version of Cygwin." 1>&2; exit 1; }
1516fi
1517
1518		else
1519			{ echo "configure: error: POSIX threads not found -- help!" 1>&2; exit 1; }
1520		fi
1521	fi
1522fi
1523
1524echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1525echo "configure:1526: checking how to run the C preprocessor" >&5
1526# On Suns, sometimes $CPP names a directory.
1527if test -n "$CPP" && test -d "$CPP"; then
1528  CPP=
1529fi
1530if test -z "$CPP"; then
1531if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1532  echo $ac_n "(cached) $ac_c" 1>&6
1533else
1534    # This must be in double quotes, not single quotes, because CPP may get
1535  # substituted into the Makefile and "${CC-cc}" will confuse make.
1536  CPP="${CC-cc} -E"
1537  # On the NeXT, cc -E runs the code through the compiler's parser,
1538  # not just through cpp.
1539  cat > conftest.$ac_ext <<EOF
1540#line 1541 "configure"
1541#include "confdefs.h"
1542#include <assert.h>
1543Syntax Error
1544EOF
1545ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1546{ (eval echo configure:1547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1547ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1548if test -z "$ac_err"; then
1549  :
1550else
1551  echo "$ac_err" >&5
1552  echo "configure: failed program was:" >&5
1553  cat conftest.$ac_ext >&5
1554  rm -rf conftest*
1555  CPP="${CC-cc} -E -traditional-cpp"
1556  cat > conftest.$ac_ext <<EOF
1557#line 1558 "configure"
1558#include "confdefs.h"
1559#include <assert.h>
1560Syntax Error
1561EOF
1562ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1563{ (eval echo configure:1564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1564ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1565if test -z "$ac_err"; then
1566  :
1567else
1568  echo "$ac_err" >&5
1569  echo "configure: failed program was:" >&5
1570  cat conftest.$ac_ext >&5
1571  rm -rf conftest*
1572  CPP="${CC-cc} -nologo -E"
1573  cat > conftest.$ac_ext <<EOF
1574#line 1575 "configure"
1575#include "confdefs.h"
1576#include <assert.h>
1577Syntax Error
1578EOF
1579ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1580{ (eval echo configure:1581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1581ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1582if test -z "$ac_err"; then
1583  :
1584else
1585  echo "$ac_err" >&5
1586  echo "configure: failed program was:" >&5
1587  cat conftest.$ac_ext >&5
1588  rm -rf conftest*
1589  CPP=/lib/cpp
1590fi
1591rm -f conftest*
1592fi
1593rm -f conftest*
1594fi
1595rm -f conftest*
1596  ac_cv_prog_CPP="$CPP"
1597fi
1598  CPP="$ac_cv_prog_CPP"
1599else
1600  ac_cv_prog_CPP="$CPP"
1601fi
1602echo "$ac_t""$CPP" 1>&6
1603
1604echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1605echo "configure:1606: checking for ANSI C header files" >&5
1606if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1607  echo $ac_n "(cached) $ac_c" 1>&6
1608else
1609  cat > conftest.$ac_ext <<EOF
1610#line 1611 "configure"
1611#include "confdefs.h"
1612#include <stdlib.h>
1613#include <stdarg.h>
1614#include <string.h>
1615#include <float.h>
1616EOF
1617ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1618{ (eval echo configure:1619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1619ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1620if test -z "$ac_err"; then
1621  rm -rf conftest*
1622  ac_cv_header_stdc=yes
1623else
1624  echo "$ac_err" >&5
1625  echo "configure: failed program was:" >&5
1626  cat conftest.$ac_ext >&5
1627  rm -rf conftest*
1628  ac_cv_header_stdc=no
1629fi
1630rm -f conftest*
1631
1632if test $ac_cv_header_stdc = yes; then
1633  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1634cat > conftest.$ac_ext <<EOF
1635#line 1636 "configure"
1636#include "confdefs.h"
1637#include <string.h>
1638EOF
1639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1640  egrep "memchr" >/dev/null 2>&1; then
1641  :
1642else
1643  rm -rf conftest*
1644  ac_cv_header_stdc=no
1645fi
1646rm -f conftest*
1647
1648fi
1649
1650if test $ac_cv_header_stdc = yes; then
1651  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1652cat > conftest.$ac_ext <<EOF
1653#line 1654 "configure"
1654#include "confdefs.h"
1655#include <stdlib.h>
1656EOF
1657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1658  egrep "free" >/dev/null 2>&1; then
1659  :
1660else
1661  rm -rf conftest*
1662  ac_cv_header_stdc=no
1663fi
1664rm -f conftest*
1665
1666fi
1667
1668if test $ac_cv_header_stdc = yes; then
1669  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1670if test "$cross_compiling" = yes; then
1671  :
1672else
1673  cat > conftest.$ac_ext <<EOF
1674#line 1675 "configure"
1675#include "confdefs.h"
1676#include <ctype.h>
1677#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1678#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1679#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1680int main () { int i; for (i = 0; i < 256; i++)
1681if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1682exit (0); }
1683
1684EOF
1685if { (eval echo configure:1686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1686then
1687  :
1688else
1689  echo "configure: failed program was:" >&5
1690  cat conftest.$ac_ext >&5
1691  rm -fr conftest*
1692  ac_cv_header_stdc=no
1693fi
1694rm -fr conftest*
1695fi
1696
1697fi
1698fi
1699
1700echo "$ac_t""$ac_cv_header_stdc" 1>&6
1701if test $ac_cv_header_stdc = yes; then
1702  cat >> confdefs.h <<\EOF
1703#define STDC_HEADERS 1
1704EOF
1705
1706fi
1707
1708for ac_hdr in stdio.h stdlib.h unistd.h regex.h strings.h sys/time.h sys/filio.h sys/select.h termcap.h pth.h pthread.h
1709do
1710ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1711echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1712echo "configure:1713: checking for $ac_hdr" >&5
1713if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1714  echo $ac_n "(cached) $ac_c" 1>&6
1715else
1716  cat > conftest.$ac_ext <<EOF
1717#line 1718 "configure"
1718#include "confdefs.h"
1719#include <$ac_hdr>
1720EOF
1721ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1722{ (eval echo configure:1723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1723ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1724if test -z "$ac_err"; then
1725  rm -rf conftest*
1726  eval "ac_cv_header_$ac_safe=yes"
1727else
1728  echo "$ac_err" >&5
1729  echo "configure: failed program was:" >&5
1730  cat conftest.$ac_ext >&5
1731  rm -rf conftest*
1732  eval "ac_cv_header_$ac_safe=no"
1733fi
1734rm -f conftest*
1735fi
1736if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1737  echo "$ac_t""yes" 1>&6
1738    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1739  cat >> confdefs.h <<EOF
1740#define $ac_tr_hdr 1
1741EOF
1742
1743else
1744  echo "$ac_t""no" 1>&6
1745fi
1746done
1747
1748
1749echo $ac_n "checking for working const""... $ac_c" 1>&6
1750echo "configure:1751: checking for working const" >&5
1751if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1752  echo $ac_n "(cached) $ac_c" 1>&6
1753else
1754  cat > conftest.$ac_ext <<EOF
1755#line 1756 "configure"
1756#include "confdefs.h"
1757
1758int main() {
1759
1760/* Ultrix mips cc rejects this.  */
1761typedef int charset[2]; const charset x;
1762/* SunOS 4.1.1 cc rejects this.  */
1763char const *const *ccp;
1764char **p;
1765/* NEC SVR4.0.2 mips cc rejects this.  */
1766struct point {int x, y;};
1767static struct point const zero = {0,0};
1768/* AIX XL C 1.02.0.0 rejects this.
1769   It does not let you subtract one const X* pointer from another in an arm
1770   of an if-expression whose if-part is not a constant expression */
1771const char *g = "string";
1772ccp = &g + (g ? g-g : 0);
1773/* HPUX 7.0 cc rejects these. */
1774++ccp;
1775p = (char**) ccp;
1776ccp = (char const *const *) p;
1777{ /* SCO 3.2v4 cc rejects this.  */
1778  char *t;
1779  char const *s = 0 ? (char *) 0 : (char const *) 0;
1780
1781  *t++ = 0;
1782}
1783{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1784  int x[] = {25, 17};
1785  const int *foo = &x[0];
1786  ++foo;
1787}
1788{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1789  typedef const int *iptr;
1790  iptr p = 0;
1791  ++p;
1792}
1793{ /* AIX XL C 1.02.0.0 rejects this saying
1794     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1795  struct s { int j; const int *ap[3]; };
1796  struct s *b; b->j = 5;
1797}
1798{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1799  const int foo = 10;
1800}
1801
1802; return 0; }
1803EOF
1804if { (eval echo configure:1805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1805  rm -rf conftest*
1806  ac_cv_c_const=yes
1807else
1808  echo "configure: failed program was:" >&5
1809  cat conftest.$ac_ext >&5
1810  rm -rf conftest*
1811  ac_cv_c_const=no
1812fi
1813rm -f conftest*
1814fi
1815
1816echo "$ac_t""$ac_cv_c_const" 1>&6
1817if test $ac_cv_c_const = no; then
1818  cat >> confdefs.h <<\EOF
1819#define const
1820EOF
1821
1822fi
1823
1824echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1825echo "configure:1826: checking whether time.h and sys/time.h may both be included" >&5
1826if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1827  echo $ac_n "(cached) $ac_c" 1>&6
1828else
1829  cat > conftest.$ac_ext <<EOF
1830#line 1831 "configure"
1831#include "confdefs.h"
1832#include <sys/types.h>
1833#include <sys/time.h>
1834#include <time.h>
1835int main() {
1836struct tm *tp;
1837; return 0; }
1838EOF
1839if { (eval echo configure:1840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1840  rm -rf conftest*
1841  ac_cv_header_time=yes
1842else
1843  echo "configure: failed program was:" >&5
1844  cat conftest.$ac_ext >&5
1845  rm -rf conftest*
1846  ac_cv_header_time=no
1847fi
1848rm -f conftest*
1849fi
1850
1851echo "$ac_t""$ac_cv_header_time" 1>&6
1852if test $ac_cv_header_time = yes; then
1853  cat >> confdefs.h <<\EOF
1854#define TIME_WITH_SYS_TIME 1
1855EOF
1856
1857fi
1858
1859
1860if test $ac_cv_prog_gcc = yes; then
1861    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1862echo "configure:1863: checking whether ${CC-cc} needs -traditional" >&5
1863if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1864  echo $ac_n "(cached) $ac_c" 1>&6
1865else
1866    ac_pattern="Autoconf.*'x'"
1867  cat > conftest.$ac_ext <<EOF
1868#line 1869 "configure"
1869#include "confdefs.h"
1870#include <sgtty.h>
1871Autoconf TIOCGETP
1872EOF
1873if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1874  egrep "$ac_pattern" >/dev/null 2>&1; then
1875  rm -rf conftest*
1876  ac_cv_prog_gcc_traditional=yes
1877else
1878  rm -rf conftest*
1879  ac_cv_prog_gcc_traditional=no
1880fi
1881rm -f conftest*
1882
1883
1884  if test $ac_cv_prog_gcc_traditional = no; then
1885    cat > conftest.$ac_ext <<EOF
1886#line 1887 "configure"
1887#include "confdefs.h"
1888#include <termio.h>
1889Autoconf TCGETA
1890EOF
1891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1892  egrep "$ac_pattern" >/dev/null 2>&1; then
1893  rm -rf conftest*
1894  ac_cv_prog_gcc_traditional=yes
1895fi
1896rm -f conftest*
1897
1898  fi
1899fi
1900
1901echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1902  if test $ac_cv_prog_gcc_traditional = yes; then
1903    CC="$CC -traditional"
1904  fi
1905fi
1906
1907echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1908echo "configure:1909: checking for vprintf" >&5
1909if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1910  echo $ac_n "(cached) $ac_c" 1>&6
1911else
1912  cat > conftest.$ac_ext <<EOF
1913#line 1914 "configure"
1914#include "confdefs.h"
1915/* System header to define __stub macros and hopefully few prototypes,
1916    which can conflict with char vprintf(); below.  */
1917#include <assert.h>
1918/* Override any gcc2 internal prototype to avoid an error.  */
1919/* We use char because int might match the return type of a gcc2
1920    builtin and then its argument prototype would still apply.  */
1921char vprintf();
1922
1923int main() {
1924
1925/* The GNU C library defines this for functions which it implements
1926    to always fail with ENOSYS.  Some functions are actually named
1927    something starting with __ and the normal name is an alias.  */
1928#if defined (__stub_vprintf) || defined (__stub___vprintf)
1929choke me
1930#else
1931vprintf();
1932#endif
1933
1934; return 0; }
1935EOF
1936if { (eval echo configure:1937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1937  rm -rf conftest*
1938  eval "ac_cv_func_vprintf=yes"
1939else
1940  echo "configure: failed program was:" >&5
1941  cat conftest.$ac_ext >&5
1942  rm -rf conftest*
1943  eval "ac_cv_func_vprintf=no"
1944fi
1945rm -f conftest*
1946fi
1947
1948if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1949  echo "$ac_t""yes" 1>&6
1950  cat >> confdefs.h <<\EOF
1951#define HAVE_VPRINTF 1
1952EOF
1953
1954else
1955  echo "$ac_t""no" 1>&6
1956fi
1957
1958if test "$ac_cv_func_vprintf" != yes; then
1959echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1960echo "configure:1961: checking for _doprnt" >&5
1961if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1962  echo $ac_n "(cached) $ac_c" 1>&6
1963else
1964  cat > conftest.$ac_ext <<EOF
1965#line 1966 "configure"
1966#include "confdefs.h"
1967/* System header to define __stub macros and hopefully few prototypes,
1968    which can conflict with char _doprnt(); below.  */
1969#include <assert.h>
1970/* Override any gcc2 internal prototype to avoid an error.  */
1971/* We use char because int might match the return type of a gcc2
1972    builtin and then its argument prototype would still apply.  */
1973char _doprnt();
1974
1975int main() {
1976
1977/* The GNU C library defines this for functions which it implements
1978    to always fail with ENOSYS.  Some functions are actually named
1979    something starting with __ and the normal name is an alias.  */
1980#if defined (__stub__doprnt) || defined (__stub____doprnt)
1981choke me
1982#else
1983_doprnt();
1984#endif
1985
1986; return 0; }
1987EOF
1988if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1989  rm -rf conftest*
1990  eval "ac_cv_func__doprnt=yes"
1991else
1992  echo "configure: failed program was:" >&5
1993  cat conftest.$ac_ext >&5
1994  rm -rf conftest*
1995  eval "ac_cv_func__doprnt=no"
1996fi
1997rm -f conftest*
1998fi
1999
2000if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2001  echo "$ac_t""yes" 1>&6
2002  cat >> confdefs.h <<\EOF
2003#define HAVE_DOPRNT 1
2004EOF
2005
2006else
2007  echo "$ac_t""no" 1>&6
2008fi
2009
2010fi
2011
2012echo $ac_n "checking for strdup""... $ac_c" 1>&6
2013echo "configure:2014: checking for strdup" >&5
2014if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
2015  echo $ac_n "(cached) $ac_c" 1>&6
2016else
2017  cat > conftest.$ac_ext <<EOF
2018#line 2019 "configure"
2019#include "confdefs.h"
2020/* System header to define __stub macros and hopefully few prototypes,
2021    which can conflict with char strdup(); below.  */
2022#include <assert.h>
2023/* Override any gcc2 internal prototype to avoid an error.  */
2024/* We use char because int might match the return type of a gcc2
2025    builtin and then its argument prototype would still apply.  */
2026char strdup();
2027
2028int main() {
2029
2030/* The GNU C library defines this for functions which it implements
2031    to always fail with ENOSYS.  Some functions are actually named
2032    something starting with __ and the normal name is an alias.  */
2033#if defined (__stub_strdup) || defined (__stub___strdup)
2034choke me
2035#else
2036strdup();
2037#endif
2038
2039; return 0; }
2040EOF
2041if { (eval echo configure:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2042  rm -rf conftest*
2043  eval "ac_cv_func_strdup=yes"
2044else
2045  echo "configure: failed program was:" >&5
2046  cat conftest.$ac_ext >&5
2047  rm -rf conftest*
2048  eval "ac_cv_func_strdup=no"
2049fi
2050rm -f conftest*
2051fi
2052
2053if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
2054  echo "$ac_t""yes" 1>&6
2055  :
2056else
2057  echo "$ac_t""no" 1>&6
2058{ echo "configure: error: no strdup()!" 1>&2; exit 1; }
2059fi
2060
2061echo $ac_n "checking for strtoul""... $ac_c" 1>&6
2062echo "configure:2063: checking for strtoul" >&5
2063if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
2064  echo $ac_n "(cached) $ac_c" 1>&6
2065else
2066  cat > conftest.$ac_ext <<EOF
2067#line 2068 "configure"
2068#include "confdefs.h"
2069/* System header to define __stub macros and hopefully few prototypes,
2070    which can conflict with char strtoul(); below.  */
2071#include <assert.h>
2072/* Override any gcc2 internal prototype to avoid an error.  */
2073/* We use char because int might match the return type of a gcc2
2074    builtin and then its argument prototype would still apply.  */
2075char strtoul();
2076
2077int main() {
2078
2079/* The GNU C library defines this for functions which it implements
2080    to always fail with ENOSYS.  Some functions are actually named
2081    something starting with __ and the normal name is an alias.  */
2082#if defined (__stub_strtoul) || defined (__stub___strtoul)
2083choke me
2084#else
2085strtoul();
2086#endif
2087
2088; return 0; }
2089EOF
2090if { (eval echo configure:2091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2091  rm -rf conftest*
2092  eval "ac_cv_func_strtoul=yes"
2093else
2094  echo "configure: failed program was:" >&5
2095  cat conftest.$ac_ext >&5
2096  rm -rf conftest*
2097  eval "ac_cv_func_strtoul=no"
2098fi
2099rm -f conftest*
2100fi
2101
2102if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
2103  echo "$ac_t""yes" 1>&6
2104  :
2105else
2106  echo "$ac_t""no" 1>&6
2107{ echo "configure: error: no strtoul()!" 1>&2; exit 1; }
2108fi
2109
2110for ac_func in strftime strerror
2111do
2112echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2113echo "configure:2114: checking for $ac_func" >&5
2114if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2115  echo $ac_n "(cached) $ac_c" 1>&6
2116else
2117  cat > conftest.$ac_ext <<EOF
2118#line 2119 "configure"
2119#include "confdefs.h"
2120/* System header to define __stub macros and hopefully few prototypes,
2121    which can conflict with char $ac_func(); below.  */
2122#include <assert.h>
2123/* Override any gcc2 internal prototype to avoid an error.  */
2124/* We use char because int might match the return type of a gcc2
2125    builtin and then its argument prototype would still apply.  */
2126char $ac_func();
2127
2128int main() {
2129
2130/* The GNU C library defines this for functions which it implements
2131    to always fail with ENOSYS.  Some functions are actually named
2132    something starting with __ and the normal name is an alias.  */
2133#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2134choke me
2135#else
2136$ac_func();
2137#endif
2138
2139; return 0; }
2140EOF
2141if { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2142  rm -rf conftest*
2143  eval "ac_cv_func_$ac_func=yes"
2144else
2145  echo "configure: failed program was:" >&5
2146  cat conftest.$ac_ext >&5
2147  rm -rf conftest*
2148  eval "ac_cv_func_$ac_func=no"
2149fi
2150rm -f conftest*
2151fi
2152
2153if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2154  echo "$ac_t""yes" 1>&6
2155    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2156  cat >> confdefs.h <<EOF
2157#define $ac_tr_func 1
2158EOF
2159
2160else
2161  echo "$ac_t""no" 1>&6
2162fi
2163done
2164
2165echo $ac_n "checking for pth_yield""... $ac_c" 1>&6
2166echo "configure:2167: checking for pth_yield" >&5
2167if eval "test \"`echo '$''{'ac_cv_func_pth_yield'+set}'`\" = set"; then
2168  echo $ac_n "(cached) $ac_c" 1>&6
2169else
2170  cat > conftest.$ac_ext <<EOF
2171#line 2172 "configure"
2172#include "confdefs.h"
2173/* System header to define __stub macros and hopefully few prototypes,
2174    which can conflict with char pth_yield(); below.  */
2175#include <assert.h>
2176/* Override any gcc2 internal prototype to avoid an error.  */
2177/* We use char because int might match the return type of a gcc2
2178    builtin and then its argument prototype would still apply.  */
2179char pth_yield();
2180
2181int main() {
2182
2183/* The GNU C library defines this for functions which it implements
2184    to always fail with ENOSYS.  Some functions are actually named
2185    something starting with __ and the normal name is an alias.  */
2186#if defined (__stub_pth_yield) || defined (__stub___pth_yield)
2187choke me
2188#else
2189pth_yield();
2190#endif
2191
2192; return 0; }
2193EOF
2194if { (eval echo configure:2195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2195  rm -rf conftest*
2196  eval "ac_cv_func_pth_yield=yes"
2197else
2198  echo "configure: failed program was:" >&5
2199  cat conftest.$ac_ext >&5
2200  rm -rf conftest*
2201  eval "ac_cv_func_pth_yield=no"
2202fi
2203rm -f conftest*
2204fi
2205
2206if eval "test \"`echo '$ac_cv_func_'pth_yield`\" = yes"; then
2207  echo "$ac_t""yes" 1>&6
2208  cat >> confdefs.h <<\EOF
2209#define GNU_PTH 1
2210EOF
2211
2212    echo "configure: warning: Ugh -- detected GNU Pth library." 1>&2
2213else
2214  echo "$ac_t""no" 1>&6
2215fi
2216
2217
2218if test $ac_cv_func_strerror != yes; then
2219  echo $ac_n "checking for sys_errlist declaration in stdio.h, errno.h or sys/errno.h""... $ac_c" 1>&6
2220echo "configure:2221: checking for sys_errlist declaration in stdio.h, errno.h or sys/errno.h" >&5
2221if eval "test \"`echo '$''{'sic_cv_decl_sys_errlist'+set}'`\" = set"; then
2222  echo $ac_n "(cached) $ac_c" 1>&6
2223else
2224  cat > conftest.$ac_ext <<EOF
2225#line 2226 "configure"
2226#include "confdefs.h"
2227
2228#if HAVE_SYS_TYPES_H
2229#include <sys/types.h>
2230#endif
2231#if HAVE_STDIO_H
2232#include <stdio.h>
2233#endif
2234#if HAVE_ERRNO_H
2235#include <errno.h>
2236#endif
2237#if HAVE_SYS_ERRNO_H
2238#include <sys/errno.h>
2239#endif
2240int main() {
2241char *msg = sys_errlist[0];
2242; return 0; }
2243EOF
2244if { (eval echo configure:2245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2245  rm -rf conftest*
2246  sic_cv_decl_sys_errlist=yes
2247else
2248  echo "configure: failed program was:" >&5
2249  cat conftest.$ac_ext >&5
2250  rm -rf conftest*
2251  sic_cv_decl_sys_errlist=no
2252fi
2253rm -f conftest*
2254fi
2255
2256echo "$ac_t""$sic_cv_decl_sys_errlist" 1>&6
2257  if test $sic_cv_decl_sys_errlist = yes; then
2258    cat >> confdefs.h <<\EOF
2259#define SYS_ERRLIST_DECLARED 1
2260EOF
2261
2262  fi
2263
2264  echo $ac_n "checking for sys_nerr declaration in stdio.h, errno.h or sys/errno.h""... $ac_c" 1>&6
2265echo "configure:2266: checking for sys_nerr declaration in stdio.h, errno.h or sys/errno.h" >&5
2266if eval "test \"`echo '$''{'sic_cv_decl_sys_nerr'+set}'`\" = set"; then
2267  echo $ac_n "(cached) $ac_c" 1>&6
2268else
2269  cat > conftest.$ac_ext <<EOF
2270#line 2271 "configure"
2271#include "confdefs.h"
2272
2273#if HAVE_SYS_TYPES_H
2274#include <sys/types.h>
2275#endif
2276#if HAVE_STDIO_H
2277#include <stdio.h>
2278#endif
2279#if HAVE_ERRNO_H
2280#include <errno.h>
2281#endif
2282#if HAVE_SYS_ERRNO_H
2283#include <sys/errno.h>
2284#endif
2285int main() {
2286int num = sys_nerr;
2287; return 0; }
2288EOF
2289if { (eval echo configure:2290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2290  rm -rf conftest*
2291  sic_cv_decl_sys_nerr=yes
2292else
2293  echo "configure: failed program was:" >&5
2294  cat conftest.$ac_ext >&5
2295  rm -rf conftest*
2296  sic_cv_decl_sys_nerr=no
2297fi
2298rm -f conftest*
2299fi
2300
2301echo "$ac_t""$sic_cv_decl_sys_nerr" 1>&6
2302  if test $sic_cv_decl_sys_nerr = yes; then
2303    cat >> confdefs.h <<\EOF
2304#define SYS_NERR_DECLARED 1
2305EOF
2306
2307  fi
2308fi
2309
2310echo $ac_n "checking for a 32 bit integer""... $ac_c" 1>&6
2311echo "configure:2312: checking for a 32 bit integer" >&5
2312if eval "test \"`echo '$''{'sic_cv_int32'+set}'`\" = set"; then
2313  echo $ac_n "(cached) $ac_c" 1>&6
2314else
2315  if test "$cross_compiling" = yes; then
2316    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2317else
2318  cat > conftest.$ac_ext <<EOF
2319#line 2320 "configure"
2320#include "confdefs.h"
2321
2322main() {
2323  if (4 == sizeof(unsigned long)) exit(0);
2324  exit(1);
2325}
2326
2327EOF
2328if { (eval echo configure:2329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2329then
2330  sic_cv_int32="long"
2331else
2332  echo "configure: failed program was:" >&5
2333  cat conftest.$ac_ext >&5
2334  rm -fr conftest*
2335  if test "$cross_compiling" = yes; then
2336    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2337else
2338  cat > conftest.$ac_ext <<EOF
2339#line 2340 "configure"
2340#include "confdefs.h"
2341
2342main() {
2343  if (4 == sizeof(unsigned int)) exit(0);
2344  exit(1);
2345}
2346
2347EOF
2348if { (eval echo configure:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2349then
2350  sic_cv_int32="int"
2351else
2352  echo "configure: failed program was:" >&5
2353  cat conftest.$ac_ext >&5
2354  rm -fr conftest*
2355  sic_cv_int32="none"
2356fi
2357rm -fr conftest*
2358fi
2359
2360fi
2361rm -fr conftest*
2362fi
2363
2364fi
2365
2366if test "$sic_cv_int32" = "long"; then
2367  echo "$ac_t""unsigned long" 1>&6
2368  cat >> confdefs.h <<\EOF
2369#define UNSIGNED_LONG32 1
2370EOF
2371
2372else if test "$sic_cv_int32" = "int"; then
2373    echo "$ac_t""unsigned int" 1>&6
2374    cat >> confdefs.h <<\EOF
2375#define UNSIGNED_INT32 1
2376EOF
2377
2378  else
2379    echo "$ac_t""none, using unsigned long" 1>&6
2380    cat >> confdefs.h <<\EOF
2381#define UNSIGNED_UNKNOWN32 1
2382EOF
2383
2384  fi
2385fi
2386
2387echo $ac_n "checking for SunOS 5.x""... $ac_c" 1>&6
2388echo "configure:2389: checking for SunOS 5.x" >&5
2389if eval "test \"`echo '$''{'sic_cv_sunos_5'+set}'`\" = set"; then
2390  echo $ac_n "(cached) $ac_c" 1>&6
2391else
2392  if test "x`(uname) 2>/dev/null`" = "xSunOS" &&
2393  uname -r 2>/dev/null | grep "^5" >/dev/null; then
2394  sic_cv_sunos_5="`uname -r | sed -e \"s/^5/2/g\"`"
2395else
2396  sic_cv_sunos_5=no
2397fi
2398
2399fi
2400
2401if test "$sic_cv_sunos_5" = "no"; then
2402  echo "$ac_t""no" 1>&6
2403else
2404  echo "$ac_t""yes, $sic_cv_sunos_5" 1>&6
2405  cat >> confdefs.h <<\EOF
2406#define SUNOS_5 1
2407EOF
2408
2409fi
2410
2411# Check whether --with-rx or --without-rx was given.
2412if test "${with_rx+set}" = set; then
2413  withval="$with_rx"
2414  :
2415fi
2416
2417# Check whether --with-rx or --without-rx was given.
2418if test "${with_rx+set}" = set; then
2419  withval="$with_rx"
2420  :
2421fi
2422
2423if test "x$with_rx" != xno; then
2424  echo $ac_n "checking for GNU librx""... $ac_c" 1>&6
2425echo "configure:2426: checking for GNU librx" >&5
2426  if eval "test \"`echo '$''{'sic_cv_path_GNUrx'+set}'`\" = set"; then
2427  echo $ac_n "(cached) $ac_c" 1>&6
2428else
2429
2430      sic_save_CPPFLAGS="$CPPFLAGS"
2431      cat > conftest.$ac_ext <<EOF
2432#line 2433 "configure"
2433#include "confdefs.h"
2434#include <rxposix.h>
2435EOF
2436ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2437{ (eval echo configure:2438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2438ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2439if test -z "$ac_err"; then
2440  rm -rf conftest*
2441  GNUrx_path=yes
2442else
2443  echo "$ac_err" >&5
2444  echo "configure: failed program was:" >&5
2445  cat conftest.$ac_ext >&5
2446  rm -rf conftest*
2447
2448          if test -d "$with_rx/include"; then
2449            CPPFLAGS="$CPPFLAGS -I$with_rx/include";
2450          fi
2451          cat > conftest.$ac_ext <<EOF
2452#line 2453 "configure"
2453#include "confdefs.h"
2454#include <rxposix.h>
2455EOF
2456ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2457{ (eval echo configure:2458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2458ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2459if test -z "$ac_err"; then
2460  rm -rf conftest*
2461  GNUrx_path="$with_rx"
2462else
2463  echo "$ac_err" >&5
2464  echo "configure: failed program was:" >&5
2465  cat conftest.$ac_ext >&5
2466  rm -rf conftest*
2467  GNUrx_path=no
2468fi
2469rm -f conftest*
2470
2471fi
2472rm -f conftest*
2473      CPPFLAGS="$sic_save_CPPFLAGS"
2474
2475fi
2476
2477  if test "x$GNUrx_path" != x && test "x$GNUrx_path" != xno; then
2478        sic_save_LIBS="$LIBS"
2479    if test "$with_rx" = "$GNUrx_path"; then
2480      LIBS="-L$GNUrx_path/lib -lrx $LIBS"
2481    else
2482      LIBS="-lrx $LIBS"
2483    fi
2484    if test "$cross_compiling" = yes; then
2485    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2486else
2487  cat > conftest.$ac_ext <<EOF
2488#line 2489 "configure"
2489#include "confdefs.h"
2490      extern char rx_version_string[];
2491      main(int argc) {
2492        if (argc>1) {printf("%s\n", rx_version_string);}
2493        exit(0);
2494      }
2495EOF
2496if { (eval echo configure:2497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2497then
2498        sic_cv_GNUrx_version="`./conftest show | sed 's/version /v/'`"
2499else
2500  echo "configure: failed program was:" >&5
2501  cat conftest.$ac_ext >&5
2502  rm -fr conftest*
2503  GNUrx_path=no
2504fi
2505rm -fr conftest*
2506fi
2507
2508    if test "x$GNUrx_path" = xno; then
2509      GNUrx_path=no
2510    fi
2511    LIBS="$sic_save_LIBS"
2512  fi
2513  if test "x$GNUrx_path" = xyes; then
2514    sic_cv_path_GNUrx=
2515  else
2516    if test "x$GNUrx_path" != x; then
2517      sic_cv_path_GNUrx=$GNUrx_path
2518    fi
2519  fi
2520  if test "x$sic_cv_path_GNUrx" = xno; then
2521    echo "$ac_t""no" 1>&6
2522    if test "x$ac_cv_header_sys_ioctl_h" = "no"; then
2523      echo "configure: warning: Some features will not be available." 1>&2
2524    fi
2525  else
2526    cat >> confdefs.h <<\EOF
2527#define USE_GNU_RX 1
2528EOF
2529
2530    cat >> confdefs.h <<\EOF
2531#define HAVE_REGEXP 1
2532EOF
2533
2534    if test "x$sic_cv_path_GNUrx" = x; then
2535      echo "$ac_t""yes ($sic_cv_GNUrx_version found by compiler & linker)" 1>&6
2536      LIBS="-lrx $LIBS"
2537    else
2538      echo "$ac_t""yes ($sic_cv_GNUrx_version found in $sic_cv_path_GNUrx)" 1>&6
2539      LIBS="-L$sic_cv_path_GNUrx/lib -lrx $LIBS"
2540      CPPFLAGS="-I$sic_cv_path_GNUrx/include $CPPFLAGS"
2541    fi
2542    if test "x$ac_cv_header_regex_h" = "xyes"; then
2543      echo "configure: warning: Using the GNU librx on top of the system's function may result in compilation errors." 1>&2
2544    fi
2545  fi
2546fi
2547
2548echo $ac_n "checking for yow""... $ac_c" 1>&6
2549echo "configure:2550: checking for yow" >&5
2550IFS="${IFS=   }"; sic_save_ifs="$IFS"; IFS=":"
2551sic_dummy="$PATH"
2552for sic_dir in $sic_dummy; do
2553  test -z "$sic_dir" && sic_dir=.
2554  if test -x $sic_dir/emacs; then
2555    sic_path_emacs="$sic_dir/emacs"
2556    break
2557  fi
2558done
2559IFS="$sic_save_ifs"
2560if test -n "$sic_path_emacs"; then
2561  rm -f conftest.el
2562  echo "(defun whereisyow () (princ (eval 'exec-directory)))" > conftest.el
2563  yow_path="`$sic_path_emacs -batch -l conftest.el -f whereisyow 2>&1`"
2564  if test -x "${yow_path}/yow"; then
2565    sic_cv_yow_path="${yow_path}/yow"
2566    echo "$ac_t""yes" 1>&6
2567    cat >> confdefs.h <<EOF
2568#define YOW_PATH "$sic_cv_yow_path"
2569EOF
2570
2571  else
2572    echo "$ac_t""no" 1>&6
2573  fi
2574  rm -f conftest.el
2575else
2576  echo "$ac_t""no" 1>&6
2577fi
2578
2579VERSION="`cat patchlevel.h | grep const | sed 's/^.* \"//' | sed 's/\".*$//'`"
2580
2581
2582trap '' 1 2 15
2583cat > confcache <<\EOF
2584# This file is a shell script that caches the results of configure
2585# tests run on this system so they can be shared between configure
2586# scripts and configure runs.  It is not useful on other systems.
2587# If it contains results you don't want to keep, you may remove or edit it.
2588#
2589# By default, configure uses ./config.cache as the cache file,
2590# creating it if it does not exist already.  You can give configure
2591# the --cache-file=FILE option to use a different cache file; that is
2592# what configure does when it calls configure scripts in
2593# subdirectories, so they share the cache.
2594# Giving --cache-file=/dev/null disables caching, for debugging configure.
2595# config.status only pays attention to the cache file if you give it the
2596# --recheck option to rerun configure.
2597#
2598EOF
2599# The following way of writing the cache mishandles newlines in values,
2600# but we know of no workaround that is simple, portable, and efficient.
2601# So, don't put newlines in cache variables' values.
2602# Ultrix sh set writes to stderr and can't be redirected directly,
2603# and sets the high bit in the cache file unless we assign to the vars.
2604(set) 2>&1 |
2605  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2606  *ac_space=\ *)
2607    # `set' does not quote correctly, so add quotes (double-quote substitution
2608    # turns \\\\ into \\, and sed turns \\ into \).
2609    sed -n \
2610      -e "s/'/'\\\\''/g" \
2611      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2612    ;;
2613  *)
2614    # `set' quotes correctly as required by POSIX, so do not add quotes.
2615    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2616    ;;
2617  esac >> confcache
2618if cmp -s $cache_file confcache; then
2619  :
2620else
2621  if test -w $cache_file; then
2622    echo "updating cache $cache_file"
2623    cat confcache > $cache_file
2624  else
2625    echo "not updating unwritable cache $cache_file"
2626  fi
2627fi
2628rm -f confcache
2629
2630trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2631
2632test "x$prefix" = xNONE && prefix=$ac_default_prefix
2633# Let make expand exec_prefix.
2634test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2635
2636# Any assignment to VPATH causes Sun make to only execute
2637# the first set of double-colon rules, so remove it if not needed.
2638# If there is a colon in the path, we need to keep it.
2639if test "x$srcdir" = x.; then
2640  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
2641fi
2642
2643trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2644
2645DEFS=-DHAVE_CONFIG_H
2646
2647# Without the "./", some shells look in PATH for config.status.
2648: ${CONFIG_STATUS=./config.status}
2649
2650echo creating $CONFIG_STATUS
2651rm -f $CONFIG_STATUS
2652cat > $CONFIG_STATUS <<EOF
2653#! /bin/sh
2654# Generated automatically by configure.
2655# Run this file to recreate the current configuration.
2656# This directory was configured as follows,
2657# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2658#
2659# $0 $ac_configure_args
2660#
2661# Compiler output produced by configure, useful for debugging
2662# configure, is in ./config.log if it exists.
2663
2664ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2665for ac_option
2666do
2667  case "\$ac_option" in
2668  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2669    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2670    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2671  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2672    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2673    exit 0 ;;
2674  -help | --help | --hel | --he | --h)
2675    echo "\$ac_cs_usage"; exit 0 ;;
2676  *) echo "\$ac_cs_usage"; exit 1 ;;
2677  esac
2678done
2679
2680ac_given_srcdir=$srcdir
2681ac_given_INSTALL="$INSTALL"
2682
2683trap 'rm -fr `echo "Makefile setup.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2684EOF
2685cat >> $CONFIG_STATUS <<EOF
2686
2687# Protect against being on the right side of a sed subst in config.status.
2688sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2689 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2690$ac_vpsub
2691$extrasub
2692s%@SHELL@%$SHELL%g
2693s%@CFLAGS@%$CFLAGS%g
2694s%@CPPFLAGS@%$CPPFLAGS%g
2695s%@CXXFLAGS@%$CXXFLAGS%g
2696s%@FFLAGS@%$FFLAGS%g
2697s%@DEFS@%$DEFS%g
2698s%@LDFLAGS@%$LDFLAGS%g
2699s%@LIBS@%$LIBS%g
2700s%@exec_prefix@%$exec_prefix%g
2701s%@prefix@%$prefix%g
2702s%@program_transform_name@%$program_transform_name%g
2703s%@bindir@%$bindir%g
2704s%@sbindir@%$sbindir%g
2705s%@libexecdir@%$libexecdir%g
2706s%@datadir@%$datadir%g
2707s%@sysconfdir@%$sysconfdir%g
2708s%@sharedstatedir@%$sharedstatedir%g
2709s%@localstatedir@%$localstatedir%g
2710s%@libdir@%$libdir%g
2711s%@includedir@%$includedir%g
2712s%@oldincludedir@%$oldincludedir%g
2713s%@infodir@%$infodir%g
2714s%@mandir@%$mandir%g
2715s%@SIC@%$SIC%g
2716s%@CC@%$CC%g
2717s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2718s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2719s%@INSTALL_DATA@%$INSTALL_DATA%g
2720s%@CPP@%$CPP%g
2721s%@VERSION@%$VERSION%g
2722
2723CEOF
2724EOF
2725
2726cat >> $CONFIG_STATUS <<\EOF
2727
2728# Split the substitutions into bite-sized pieces for seds with
2729# small command number limits, like on Digital OSF/1 and HP-UX.
2730ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2731ac_file=1 # Number of current file.
2732ac_beg=1 # First line for current file.
2733ac_end=$ac_max_sed_cmds # Line after last line for current file.
2734ac_more_lines=:
2735ac_sed_cmds=""
2736while $ac_more_lines; do
2737  if test $ac_beg -gt 1; then
2738    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2739  else
2740    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2741  fi
2742  if test ! -s conftest.s$ac_file; then
2743    ac_more_lines=false
2744    rm -f conftest.s$ac_file
2745  else
2746    if test -z "$ac_sed_cmds"; then
2747      ac_sed_cmds="sed -f conftest.s$ac_file"
2748    else
2749      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2750    fi
2751    ac_file=`expr $ac_file + 1`
2752    ac_beg=$ac_end
2753    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2754  fi
2755done
2756if test -z "$ac_sed_cmds"; then
2757  ac_sed_cmds=cat
2758fi
2759EOF
2760
2761cat >> $CONFIG_STATUS <<EOF
2762
2763CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2764EOF
2765cat >> $CONFIG_STATUS <<\EOF
2766for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2767  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2768  case "$ac_file" in
2769  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2770       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2771  *) ac_file_in="${ac_file}.in" ;;
2772  esac
2773
2774  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2775
2776  # Remove last slash and all that follows it.  Not all systems have dirname.
2777  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2778  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2779    # The file is in a subdirectory.
2780    test ! -d "$ac_dir" && mkdir "$ac_dir"
2781    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2782    # A "../" for each directory in $ac_dir_suffix.
2783    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2784  else
2785    ac_dir_suffix= ac_dots=
2786  fi
2787
2788  case "$ac_given_srcdir" in
2789  .)  srcdir=.
2790      if test -z "$ac_dots"; then top_srcdir=.
2791      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2792  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2793  *) # Relative path.
2794    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2795    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2796  esac
2797
2798  case "$ac_given_INSTALL" in
2799  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2800  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2801  esac
2802
2803  echo creating "$ac_file"
2804  rm -f "$ac_file"
2805  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2806  case "$ac_file" in
2807  *Makefile*) ac_comsub="1i\\
2808# $configure_input" ;;
2809  *) ac_comsub= ;;
2810  esac
2811
2812  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2813  sed -e "$ac_comsub
2814s%@configure_input@%$configure_input%g
2815s%@srcdir@%$srcdir%g
2816s%@top_srcdir@%$top_srcdir%g
2817s%@INSTALL@%$INSTALL%g
2818" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2819fi; done
2820rm -f conftest.s*
2821
2822# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2823# NAME is the cpp macro being defined and VALUE is the value it is being given.
2824#
2825# ac_d sets the value in "#define NAME VALUE" lines.
2826ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
2827ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
2828ac_dC='\3'
2829ac_dD='%g'
2830# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2831ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
2832ac_uB='\([ 	]\)%\1#\2define\3'
2833ac_uC=' '
2834ac_uD='\4%g'
2835# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2836ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
2837ac_eB='$%\1#\2define\3'
2838ac_eC=' '
2839ac_eD='%g'
2840
2841if test "${CONFIG_HEADERS+set}" != set; then
2842EOF
2843cat >> $CONFIG_STATUS <<EOF
2844  CONFIG_HEADERS="setup.h"
2845EOF
2846cat >> $CONFIG_STATUS <<\EOF
2847fi
2848for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2849  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2850  case "$ac_file" in
2851  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2852       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2853  *) ac_file_in="${ac_file}.in" ;;
2854  esac
2855
2856  echo creating $ac_file
2857
2858  rm -f conftest.frag conftest.in conftest.out
2859  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2860  cat $ac_file_inputs > conftest.in
2861
2862EOF
2863
2864# Transform confdefs.h into a sed script conftest.vals that substitutes
2865# the proper values into config.h.in to produce config.h.  And first:
2866# Protect against being on the right side of a sed subst in config.status.
2867# Protect against being in an unquoted here document in config.status.
2868rm -f conftest.vals
2869cat > conftest.hdr <<\EOF
2870s/[\\&%]/\\&/g
2871s%[\\$`]%\\&%g
2872s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2873s%ac_d%ac_u%gp
2874s%ac_u%ac_e%gp
2875EOF
2876sed -n -f conftest.hdr confdefs.h > conftest.vals
2877rm -f conftest.hdr
2878
2879# This sed command replaces #undef with comments.  This is necessary, for
2880# example, in the case of _POSIX_SOURCE, which is predefined and required
2881# on some systems where configure will not decide to define it.
2882cat >> conftest.vals <<\EOF
2883s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2884EOF
2885
2886# Break up conftest.vals because some shells have a limit on
2887# the size of here documents, and old seds have small limits too.
2888
2889rm -f conftest.tail
2890while :
2891do
2892  ac_lines=`grep -c . conftest.vals`
2893  # grep -c gives empty output for an empty file on some AIX systems.
2894  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2895  # Write a limited-size here document to conftest.frag.
2896  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2897  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2898  echo 'CEOF
2899  sed -f conftest.frag conftest.in > conftest.out
2900  rm -f conftest.in
2901  mv conftest.out conftest.in
2902' >> $CONFIG_STATUS
2903  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2904  rm -f conftest.vals
2905  mv conftest.tail conftest.vals
2906done
2907rm -f conftest.vals
2908
2909cat >> $CONFIG_STATUS <<\EOF
2910  rm -f conftest.frag conftest.h
2911  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2912  cat conftest.in >> conftest.h
2913  rm -f conftest.in
2914  if cmp -s $ac_file conftest.h 2>/dev/null; then
2915    echo "$ac_file is unchanged"
2916    rm -f conftest.h
2917  else
2918    # Remove last slash and all that follows it.  Not all systems have dirname.
2919      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2920      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2921      # The file is in a subdirectory.
2922      test ! -d "$ac_dir" && mkdir "$ac_dir"
2923    fi
2924    rm -f $ac_file
2925    mv conftest.h $ac_file
2926  fi
2927fi; done
2928
2929EOF
2930cat >> $CONFIG_STATUS <<EOF
2931
2932EOF
2933cat >> $CONFIG_STATUS <<\EOF
2934
2935exit 0
2936EOF
2937chmod +x $CONFIG_STATUS
2938rm -fr confdefs* $ac_clean_files
2939test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2940
2941