1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.12
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14
15# Initialize some variables set by options.
16# The variables have the same names as the options, with
17# dashes changed to underlines.
18build=NONE
19cache_file=./config.cache
20exec_prefix=NONE
21host=NONE
22no_create=
23nonopt=NONE
24no_recursion=
25prefix=NONE
26program_prefix=NONE
27program_suffix=NONE
28program_transform_name=s,x,x,
29silent=
30site=
31srcdir=
32target=NONE
33verbose=
34x_includes=NONE
35x_libraries=NONE
36bindir='${exec_prefix}/bin'
37sbindir='${exec_prefix}/sbin'
38libexecdir='${exec_prefix}/libexec'
39datadir='${prefix}/share'
40sysconfdir='${prefix}/etc'
41sharedstatedir='${prefix}/com'
42localstatedir='${prefix}/var'
43libdir='${exec_prefix}/lib'
44includedir='${prefix}/include'
45oldincludedir='/usr/include'
46infodir='${prefix}/info'
47mandir='${prefix}/man'
48
49# Initialize some other variables.
50subdirs=
51MFLAGS= MAKEFLAGS=
52# Maximum number of lines to put in a shell here document.
53ac_max_here_lines=12
54
55ac_prev=
56for ac_option
57do
58
59  # If the previous option needs an argument, assign it.
60  if test -n "$ac_prev"; then
61    eval "$ac_prev=\$ac_option"
62    ac_prev=
63    continue
64  fi
65
66  case "$ac_option" in
67  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
68  *) ac_optarg= ;;
69  esac
70
71  # Accept the important Cygnus configure options, so we can diagnose typos.
72
73  case "$ac_option" in
74
75  -bindir | --bindir | --bindi | --bind | --bin | --bi)
76    ac_prev=bindir ;;
77  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
78    bindir="$ac_optarg" ;;
79
80  -build | --build | --buil | --bui | --bu)
81    ac_prev=build ;;
82  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
83    build="$ac_optarg" ;;
84
85  -cache-file | --cache-file | --cache-fil | --cache-fi \
86  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
87    ac_prev=cache_file ;;
88  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
89  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
90    cache_file="$ac_optarg" ;;
91
92  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
93    ac_prev=datadir ;;
94  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
95  | --da=*)
96    datadir="$ac_optarg" ;;
97
98  -disable-* | --disable-*)
99    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
100    # Reject names that are not valid shell variable names.
101    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
102      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
103    fi
104    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
105    eval "enable_${ac_feature}=no" ;;
106
107  -enable-* | --enable-*)
108    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
109    # Reject names that are not valid shell variable names.
110    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
111      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112    fi
113    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114    case "$ac_option" in
115      *=*) ;;
116      *) ac_optarg=yes ;;
117    esac
118    eval "enable_${ac_feature}='$ac_optarg'" ;;
119
120  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
121  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
122  | --exec | --exe | --ex)
123    ac_prev=exec_prefix ;;
124  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
125  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
126  | --exec=* | --exe=* | --ex=*)
127    exec_prefix="$ac_optarg" ;;
128
129  -gas | --gas | --ga | --g)
130    # Obsolete; use --with-gas.
131    with_gas=yes ;;
132
133  -help | --help | --hel | --he)
134    # Omit some internal or obsolete options to make the list less imposing.
135    # This message is too long to be a string in the A/UX 3.1 sh.
136    cat << EOF
137Usage: configure [options] [host]
138Options: [defaults in brackets after descriptions]
139Configuration:
140  --cache-file=FILE       cache test results in FILE
141  --help                  print this message
142  --no-create             do not create output files
143  --quiet, --silent       do not print \`checking...' messages
144  --version               print the version of autoconf that created configure
145Directory and file names:
146  --prefix=PREFIX         install architecture-independent files in PREFIX
147                          [$ac_default_prefix]
148  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
149                          [same as prefix]
150  --bindir=DIR            user executables in DIR [EPREFIX/bin]
151  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
152  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
153  --datadir=DIR           read-only architecture-independent data in DIR
154                          [PREFIX/share]
155  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
156  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
157                          [PREFIX/com]
158  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
159  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
160  --includedir=DIR        C header files in DIR [PREFIX/include]
161  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
162  --infodir=DIR           info documentation in DIR [PREFIX/info]
163  --mandir=DIR            man documentation in DIR [PREFIX/man]
164  --srcdir=DIR            find the sources in DIR [configure dir or ..]
165  --program-prefix=PREFIX prepend PREFIX to installed program names
166  --program-suffix=SUFFIX append SUFFIX to installed program names
167  --program-transform-name=PROGRAM
168                          run sed PROGRAM on installed program names
169EOF
170    cat << EOF
171Host type:
172  --build=BUILD           configure for building on BUILD [BUILD=HOST]
173  --host=HOST             configure for HOST [guessed]
174  --target=TARGET         configure for TARGET [TARGET=HOST]
175Features and packages:
176  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
177  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
178  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
179  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
180  --x-includes=DIR        X include files are in DIR
181  --x-libraries=DIR       X library files are in DIR
182EOF
183    if test -n "$ac_help"; then
184      echo "--enable and --with options recognized:$ac_help"
185    fi
186    exit 0 ;;
187
188  -host | --host | --hos | --ho)
189    ac_prev=host ;;
190  -host=* | --host=* | --hos=* | --ho=*)
191    host="$ac_optarg" ;;
192
193  -includedir | --includedir | --includedi | --included | --include \
194  | --includ | --inclu | --incl | --inc)
195    ac_prev=includedir ;;
196  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
197  | --includ=* | --inclu=* | --incl=* | --inc=*)
198    includedir="$ac_optarg" ;;
199
200  -infodir | --infodir | --infodi | --infod | --info | --inf)
201    ac_prev=infodir ;;
202  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
203    infodir="$ac_optarg" ;;
204
205  -libdir | --libdir | --libdi | --libd)
206    ac_prev=libdir ;;
207  -libdir=* | --libdir=* | --libdi=* | --libd=*)
208    libdir="$ac_optarg" ;;
209
210  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
211  | --libexe | --libex | --libe)
212    ac_prev=libexecdir ;;
213  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
214  | --libexe=* | --libex=* | --libe=*)
215    libexecdir="$ac_optarg" ;;
216
217  -localstatedir | --localstatedir | --localstatedi | --localstated \
218  | --localstate | --localstat | --localsta | --localst \
219  | --locals | --local | --loca | --loc | --lo)
220    ac_prev=localstatedir ;;
221  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
222  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
223  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
224    localstatedir="$ac_optarg" ;;
225
226  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
227    ac_prev=mandir ;;
228  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
229    mandir="$ac_optarg" ;;
230
231  -nfp | --nfp | --nf)
232    # Obsolete; use --without-fp.
233    with_fp=no ;;
234
235  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
236  | --no-cr | --no-c)
237    no_create=yes ;;
238
239  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
240  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
241    no_recursion=yes ;;
242
243  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
244  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
245  | --oldin | --oldi | --old | --ol | --o)
246    ac_prev=oldincludedir ;;
247  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
248  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
249  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
250    oldincludedir="$ac_optarg" ;;
251
252  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
253    ac_prev=prefix ;;
254  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
255    prefix="$ac_optarg" ;;
256
257  -program-prefix | --program-prefix | --program-prefi | --program-pref \
258  | --program-pre | --program-pr | --program-p)
259    ac_prev=program_prefix ;;
260  -program-prefix=* | --program-prefix=* | --program-prefi=* \
261  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
262    program_prefix="$ac_optarg" ;;
263
264  -program-suffix | --program-suffix | --program-suffi | --program-suff \
265  | --program-suf | --program-su | --program-s)
266    ac_prev=program_suffix ;;
267  -program-suffix=* | --program-suffix=* | --program-suffi=* \
268  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
269    program_suffix="$ac_optarg" ;;
270
271  -program-transform-name | --program-transform-name \
272  | --program-transform-nam | --program-transform-na \
273  | --program-transform-n | --program-transform- \
274  | --program-transform | --program-transfor \
275  | --program-transfo | --program-transf \
276  | --program-trans | --program-tran \
277  | --progr-tra | --program-tr | --program-t)
278    ac_prev=program_transform_name ;;
279  -program-transform-name=* | --program-transform-name=* \
280  | --program-transform-nam=* | --program-transform-na=* \
281  | --program-transform-n=* | --program-transform-=* \
282  | --program-transform=* | --program-transfor=* \
283  | --program-transfo=* | --program-transf=* \
284  | --program-trans=* | --program-tran=* \
285  | --progr-tra=* | --program-tr=* | --program-t=*)
286    program_transform_name="$ac_optarg" ;;
287
288  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
289  | -silent | --silent | --silen | --sile | --sil)
290    silent=yes ;;
291
292  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
293    ac_prev=sbindir ;;
294  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
295  | --sbi=* | --sb=*)
296    sbindir="$ac_optarg" ;;
297
298  -sharedstatedir | --sharedstatedir | --sharedstatedi \
299  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
300  | --sharedst | --shareds | --shared | --share | --shar \
301  | --sha | --sh)
302    ac_prev=sharedstatedir ;;
303  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
304  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
305  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
306  | --sha=* | --sh=*)
307    sharedstatedir="$ac_optarg" ;;
308
309  -site | --site | --sit)
310    ac_prev=site ;;
311  -site=* | --site=* | --sit=*)
312    site="$ac_optarg" ;;
313
314  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
315    ac_prev=srcdir ;;
316  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
317    srcdir="$ac_optarg" ;;
318
319  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
320  | --syscon | --sysco | --sysc | --sys | --sy)
321    ac_prev=sysconfdir ;;
322  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
323  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
324    sysconfdir="$ac_optarg" ;;
325
326  -target | --target | --targe | --targ | --tar | --ta | --t)
327    ac_prev=target ;;
328  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
329    target="$ac_optarg" ;;
330
331  -v | -verbose | --verbose | --verbos | --verbo | --verb)
332    verbose=yes ;;
333
334  -version | --version | --versio | --versi | --vers)
335    echo "configure generated by autoconf version 2.12"
336    exit 0 ;;
337
338  -with-* | --with-*)
339    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
340    # Reject names that are not valid shell variable names.
341    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
342      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
343    fi
344    ac_package=`echo $ac_package| sed 's/-/_/g'`
345    case "$ac_option" in
346      *=*) ;;
347      *) ac_optarg=yes ;;
348    esac
349    eval "with_${ac_package}='$ac_optarg'" ;;
350
351  -without-* | --without-*)
352    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
353    # Reject names that are not valid shell variable names.
354    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
355      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356    fi
357    ac_package=`echo $ac_package| sed 's/-/_/g'`
358    eval "with_${ac_package}=no" ;;
359
360  --x)
361    # Obsolete; use --with-x.
362    with_x=yes ;;
363
364  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
365  | --x-incl | --x-inc | --x-in | --x-i)
366    ac_prev=x_includes ;;
367  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
368  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
369    x_includes="$ac_optarg" ;;
370
371  -x-libraries | --x-libraries | --x-librarie | --x-librari \
372  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
373    ac_prev=x_libraries ;;
374  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
375  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
376    x_libraries="$ac_optarg" ;;
377
378  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
379    ;;
380
381  *)
382    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
383      echo "configure: warning: $ac_option: invalid host type" 1>&2
384    fi
385    if test "x$nonopt" != xNONE; then
386      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
387    fi
388    nonopt="$ac_option"
389    ;;
390
391  esac
392done
393
394if test -n "$ac_prev"; then
395  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
396fi
397
398trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
399
400# File descriptor usage:
401# 0 standard input
402# 1 file creation
403# 2 errors and warnings
404# 3 some systems may open it to /dev/tty
405# 4 used on the Kubota Titan
406# 6 checking for... messages and results
407# 5 compiler messages saved in config.log
408if test "$silent" = yes; then
409  exec 6>/dev/null
410else
411  exec 6>&1
412fi
413exec 5>./config.log
414
415echo "\
416This file contains any messages produced by compilers while
417running configure, to aid debugging if configure makes a mistake.
418" 1>&5
419
420# Strip out --no-create and --no-recursion so they do not pile up.
421# Also quote any args containing shell metacharacters.
422ac_configure_args=
423for ac_arg
424do
425  case "$ac_arg" in
426  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
427  | --no-cr | --no-c) ;;
428  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
429  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
430  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
431  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
432  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
433  esac
434done
435
436# NLS nuisances.
437# Only set these to C if already set.  These must not be set unconditionally
438# because not all systems understand e.g. LANG=C (notably SCO).
439# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
440# Non-C LC_CTYPE values break the ctype check.
441if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
442if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
443if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
444if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
445
446# confdefs.h avoids OS command line length limits that DEFS can exceed.
447rm -rf conftest* confdefs.h
448# AIX cpp loses on an empty file, so make sure it contains at least a newline.
449echo > confdefs.h
450
451# A filename unique to this package, relative to the directory that
452# configure is in, which we can look for to find out if srcdir is correct.
453ac_unique_file=ure.c
454
455# Find the source files, if location was not specified.
456if test -z "$srcdir"; then
457  ac_srcdir_defaulted=yes
458  # Try the directory containing this script, then its parent.
459  ac_prog=$0
460  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
461  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
462  srcdir=$ac_confdir
463  if test ! -r $srcdir/$ac_unique_file; then
464    srcdir=..
465  fi
466else
467  ac_srcdir_defaulted=no
468fi
469if test ! -r $srcdir/$ac_unique_file; then
470  if test "$ac_srcdir_defaulted" = yes; then
471    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
472  else
473    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
474  fi
475fi
476srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
477
478# Prefer explicitly selected file to automatically selected ones.
479if test -z "$CONFIG_SITE"; then
480  if test "x$prefix" != xNONE; then
481    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
482  else
483    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
484  fi
485fi
486for ac_site_file in $CONFIG_SITE; do
487  if test -r "$ac_site_file"; then
488    echo "loading site script $ac_site_file"
489    . "$ac_site_file"
490  fi
491done
492
493if test -r "$cache_file"; then
494  echo "loading cache $cache_file"
495  . $cache_file
496else
497  echo "creating cache $cache_file"
498  > $cache_file
499fi
500
501ac_ext=c
502# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
503ac_cpp='$CPP $CPPFLAGS'
504ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
505ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
506cross_compiling=$ac_cv_prog_cc_cross
507
508if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
509  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
510  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
511    ac_n= ac_c='
512' ac_t='	'
513  else
514    ac_n=-n ac_c= ac_t=
515  fi
516else
517  ac_n= ac_c='\c' ac_t=
518fi
519
520
521
522
523ac_aux_dir=
524for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
525  if test -f $ac_dir/install-sh; then
526    ac_aux_dir=$ac_dir
527    ac_install_sh="$ac_aux_dir/install-sh -c"
528    break
529  elif test -f $ac_dir/install.sh; then
530    ac_aux_dir=$ac_dir
531    ac_install_sh="$ac_aux_dir/install.sh -c"
532    break
533  fi
534done
535if test -z "$ac_aux_dir"; then
536  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
537fi
538ac_config_guess=$ac_aux_dir/config.guess
539ac_config_sub=$ac_aux_dir/config.sub
540ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
541
542# Find a good install program.  We prefer a C program (faster),
543# so one script is as good as another.  But avoid the broken or
544# incompatible versions:
545# SysV /etc/install, /usr/sbin/install
546# SunOS /usr/etc/install
547# IRIX /sbin/install
548# AIX /bin/install
549# AFS /usr/afsws/bin/install, which mishandles nonexistent args
550# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
551# ./install, which can be erroneously created by make from ./install.sh.
552echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
553echo "configure:554: checking for a BSD compatible install" >&5
554if test -z "$INSTALL"; then
555if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
556  echo $ac_n "(cached) $ac_c" 1>&6
557else
558    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
559  for ac_dir in $PATH; do
560    # Account for people who put trailing slashes in PATH elements.
561    case "$ac_dir/" in
562    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
563    *)
564      # OSF1 and SCO ODT 3.0 have their own names for install.
565      for ac_prog in ginstall installbsd scoinst install; do
566        if test -f $ac_dir/$ac_prog; then
567	  if test $ac_prog = install &&
568            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
569	    # AIX install.  It has an incompatible calling convention.
570	    # OSF/1 installbsd also uses dspmsg, but is usable.
571	    :
572	  else
573	    ac_cv_path_install="$ac_dir/$ac_prog -c"
574	    break 2
575	  fi
576	fi
577      done
578      ;;
579    esac
580  done
581  IFS="$ac_save_IFS"
582
583fi
584  if test "${ac_cv_path_install+set}" = set; then
585    INSTALL="$ac_cv_path_install"
586  else
587    # As a last resort, use the slow shell script.  We don't cache a
588    # path for INSTALL within a source directory, because that will
589    # break other packages using the cache if that directory is
590    # removed, or if the path is relative.
591    INSTALL="$ac_install_sh"
592  fi
593fi
594echo "$ac_t""$INSTALL" 1>&6
595
596# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
597# It thinks the first close brace ends the variable substitution.
598test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
599
600test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
601
602# Extract the first word of "gcc", so it can be a program name with args.
603set dummy gcc; ac_word=$2
604echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
605echo "configure:606: checking for $ac_word" >&5
606if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
607  echo $ac_n "(cached) $ac_c" 1>&6
608else
609  if test -n "$CC"; then
610  ac_cv_prog_CC="$CC" # Let the user override the test.
611else
612  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
613  for ac_dir in $PATH; do
614    test -z "$ac_dir" && ac_dir=.
615    if test -f $ac_dir/$ac_word; then
616      ac_cv_prog_CC="gcc"
617      break
618    fi
619  done
620  IFS="$ac_save_ifs"
621fi
622fi
623CC="$ac_cv_prog_CC"
624if test -n "$CC"; then
625  echo "$ac_t""$CC" 1>&6
626else
627  echo "$ac_t""no" 1>&6
628fi
629
630if test -z "$CC"; then
631  # Extract the first word of "cc", so it can be a program name with args.
632set dummy cc; ac_word=$2
633echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
634echo "configure:635: checking for $ac_word" >&5
635if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
636  echo $ac_n "(cached) $ac_c" 1>&6
637else
638  if test -n "$CC"; then
639  ac_cv_prog_CC="$CC" # Let the user override the test.
640else
641  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
642  ac_prog_rejected=no
643  for ac_dir in $PATH; do
644    test -z "$ac_dir" && ac_dir=.
645    if test -f $ac_dir/$ac_word; then
646      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
647        ac_prog_rejected=yes
648	continue
649      fi
650      ac_cv_prog_CC="cc"
651      break
652    fi
653  done
654  IFS="$ac_save_ifs"
655if test $ac_prog_rejected = yes; then
656  # We found a bogon in the path, so make sure we never use it.
657  set dummy $ac_cv_prog_CC
658  shift
659  if test $# -gt 0; then
660    # We chose a different compiler from the bogus one.
661    # However, it has the same basename, so the bogon will be chosen
662    # first if we set CC to just the basename; use the full file name.
663    shift
664    set dummy "$ac_dir/$ac_word" "$@"
665    shift
666    ac_cv_prog_CC="$@"
667  fi
668fi
669fi
670fi
671CC="$ac_cv_prog_CC"
672if test -n "$CC"; then
673  echo "$ac_t""$CC" 1>&6
674else
675  echo "$ac_t""no" 1>&6
676fi
677
678  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
679fi
680
681echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
682echo "configure:683: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
683
684ac_ext=c
685# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
686ac_cpp='$CPP $CPPFLAGS'
687ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
688ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
689cross_compiling=$ac_cv_prog_cc_cross
690
691cat > conftest.$ac_ext <<EOF
692#line 693 "configure"
693#include "confdefs.h"
694main(){return(0);}
695EOF
696if { (eval echo configure:697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
697  ac_cv_prog_cc_works=yes
698  # If we can't run a trivial program, we are probably using a cross compiler.
699  if (./conftest; exit) 2>/dev/null; then
700    ac_cv_prog_cc_cross=no
701  else
702    ac_cv_prog_cc_cross=yes
703  fi
704else
705  echo "configure: failed program was:" >&5
706  cat conftest.$ac_ext >&5
707  ac_cv_prog_cc_works=no
708fi
709rm -fr conftest*
710
711echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
712if test $ac_cv_prog_cc_works = no; then
713  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
714fi
715echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
716echo "configure:717: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
717echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
718cross_compiling=$ac_cv_prog_cc_cross
719
720echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
721echo "configure:722: checking whether we are using GNU C" >&5
722if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
723  echo $ac_n "(cached) $ac_c" 1>&6
724else
725  cat > conftest.c <<EOF
726#ifdef __GNUC__
727  yes;
728#endif
729EOF
730if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
731  ac_cv_prog_gcc=yes
732else
733  ac_cv_prog_gcc=no
734fi
735fi
736
737echo "$ac_t""$ac_cv_prog_gcc" 1>&6
738
739if test $ac_cv_prog_gcc = yes; then
740  GCC=yes
741  ac_test_CFLAGS="${CFLAGS+set}"
742  ac_save_CFLAGS="$CFLAGS"
743  CFLAGS=
744  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
745echo "configure:746: checking whether ${CC-cc} accepts -g" >&5
746if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
747  echo $ac_n "(cached) $ac_c" 1>&6
748else
749  echo 'void f(){}' > conftest.c
750if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
751  ac_cv_prog_cc_g=yes
752else
753  ac_cv_prog_cc_g=no
754fi
755rm -f conftest*
756
757fi
758
759echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
760  if test "$ac_test_CFLAGS" = set; then
761    CFLAGS="$ac_save_CFLAGS"
762  elif test $ac_cv_prog_cc_g = yes; then
763    CFLAGS="-g -O2"
764  else
765    CFLAGS="-O2"
766  fi
767else
768  GCC=
769  test "${CFLAGS+set}" = set || CFLAGS="-g"
770fi
771
772# Extract the first word of "ranlib", so it can be a program name with args.
773set dummy ranlib; ac_word=$2
774echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
775echo "configure:776: checking for $ac_word" >&5
776if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
777  echo $ac_n "(cached) $ac_c" 1>&6
778else
779  if test -n "$RANLIB"; then
780  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
781else
782  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
783  for ac_dir in $PATH; do
784    test -z "$ac_dir" && ac_dir=.
785    if test -f $ac_dir/$ac_word; then
786      ac_cv_prog_RANLIB="ranlib"
787      break
788    fi
789  done
790  IFS="$ac_save_ifs"
791  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
792fi
793fi
794RANLIB="$ac_cv_prog_RANLIB"
795if test -n "$RANLIB"; then
796  echo "$ac_t""$RANLIB" 1>&6
797else
798  echo "$ac_t""no" 1>&6
799fi
800
801
802echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
803echo "configure:804: checking how to run the C preprocessor" >&5
804# On Suns, sometimes $CPP names a directory.
805if test -n "$CPP" && test -d "$CPP"; then
806  CPP=
807fi
808if test -z "$CPP"; then
809if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
810  echo $ac_n "(cached) $ac_c" 1>&6
811else
812    # This must be in double quotes, not single quotes, because CPP may get
813  # substituted into the Makefile and "${CC-cc}" will confuse make.
814  CPP="${CC-cc} -E"
815  # On the NeXT, cc -E runs the code through the compiler's parser,
816  # not just through cpp.
817  cat > conftest.$ac_ext <<EOF
818#line 819 "configure"
819#include "confdefs.h"
820#include <assert.h>
821Syntax Error
822EOF
823ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
824{ (eval echo configure:825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
825ac_err=`grep -v '^ *+' conftest.out`
826if test -z "$ac_err"; then
827  :
828else
829  echo "$ac_err" >&5
830  echo "configure: failed program was:" >&5
831  cat conftest.$ac_ext >&5
832  rm -rf conftest*
833  CPP="${CC-cc} -E -traditional-cpp"
834  cat > conftest.$ac_ext <<EOF
835#line 836 "configure"
836#include "confdefs.h"
837#include <assert.h>
838Syntax Error
839EOF
840ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
841{ (eval echo configure:842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
842ac_err=`grep -v '^ *+' conftest.out`
843if test -z "$ac_err"; then
844  :
845else
846  echo "$ac_err" >&5
847  echo "configure: failed program was:" >&5
848  cat conftest.$ac_ext >&5
849  rm -rf conftest*
850  CPP=/lib/cpp
851fi
852rm -f conftest*
853fi
854rm -f conftest*
855  ac_cv_prog_CPP="$CPP"
856fi
857  CPP="$ac_cv_prog_CPP"
858else
859  ac_cv_prog_CPP="$CPP"
860fi
861echo "$ac_t""$CPP" 1>&6
862
863echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
864echo "configure:865: checking for ANSI C header files" >&5
865if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
866  echo $ac_n "(cached) $ac_c" 1>&6
867else
868  cat > conftest.$ac_ext <<EOF
869#line 870 "configure"
870#include "confdefs.h"
871#include <stdlib.h>
872#include <stdarg.h>
873#include <string.h>
874#include <float.h>
875EOF
876ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
877{ (eval echo configure:878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
878ac_err=`grep -v '^ *+' conftest.out`
879if test -z "$ac_err"; then
880  rm -rf conftest*
881  ac_cv_header_stdc=yes
882else
883  echo "$ac_err" >&5
884  echo "configure: failed program was:" >&5
885  cat conftest.$ac_ext >&5
886  rm -rf conftest*
887  ac_cv_header_stdc=no
888fi
889rm -f conftest*
890
891if test $ac_cv_header_stdc = yes; then
892  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
893cat > conftest.$ac_ext <<EOF
894#line 895 "configure"
895#include "confdefs.h"
896#include <string.h>
897EOF
898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
899  egrep "memchr" >/dev/null 2>&1; then
900  :
901else
902  rm -rf conftest*
903  ac_cv_header_stdc=no
904fi
905rm -f conftest*
906
907fi
908
909if test $ac_cv_header_stdc = yes; then
910  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
911cat > conftest.$ac_ext <<EOF
912#line 913 "configure"
913#include "confdefs.h"
914#include <stdlib.h>
915EOF
916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
917  egrep "free" >/dev/null 2>&1; then
918  :
919else
920  rm -rf conftest*
921  ac_cv_header_stdc=no
922fi
923rm -f conftest*
924
925fi
926
927if test $ac_cv_header_stdc = yes; then
928  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
929if test "$cross_compiling" = yes; then
930  :
931else
932  cat > conftest.$ac_ext <<EOF
933#line 934 "configure"
934#include "confdefs.h"
935#include <ctype.h>
936#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
937#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
938#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
939int main () { int i; for (i = 0; i < 256; i++)
940if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
941exit (0); }
942
943EOF
944if { (eval echo configure:945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
945then
946  :
947else
948  echo "configure: failed program was:" >&5
949  cat conftest.$ac_ext >&5
950  rm -fr conftest*
951  ac_cv_header_stdc=no
952fi
953rm -fr conftest*
954fi
955
956fi
957fi
958
959echo "$ac_t""$ac_cv_header_stdc" 1>&6
960if test $ac_cv_header_stdc = yes; then
961  cat >> confdefs.h <<\EOF
962#define STDC_HEADERS 1
963EOF
964
965fi
966
967for ac_hdr in limits.h stdlib.h unistd.h string.h stdarg.h sys/stat.h sys/types.h
968do
969ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
970echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
971echo "configure:972: checking for $ac_hdr" >&5
972if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
973  echo $ac_n "(cached) $ac_c" 1>&6
974else
975  cat > conftest.$ac_ext <<EOF
976#line 977 "configure"
977#include "confdefs.h"
978#include <$ac_hdr>
979EOF
980ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
981{ (eval echo configure:982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
982ac_err=`grep -v '^ *+' conftest.out`
983if test -z "$ac_err"; then
984  rm -rf conftest*
985  eval "ac_cv_header_$ac_safe=yes"
986else
987  echo "$ac_err" >&5
988  echo "configure: failed program was:" >&5
989  cat conftest.$ac_ext >&5
990  rm -rf conftest*
991  eval "ac_cv_header_$ac_safe=no"
992fi
993rm -f conftest*
994fi
995if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
996  echo "$ac_t""yes" 1>&6
997    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
998  cat >> confdefs.h <<EOF
999#define $ac_tr_hdr 1
1000EOF
1001
1002else
1003  echo "$ac_t""no" 1>&6
1004fi
1005done
1006
1007
1008for ac_func in memmove
1009do
1010echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1011echo "configure:1012: checking for $ac_func" >&5
1012if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1013  echo $ac_n "(cached) $ac_c" 1>&6
1014else
1015  cat > conftest.$ac_ext <<EOF
1016#line 1017 "configure"
1017#include "confdefs.h"
1018/* System header to define __stub macros and hopefully few prototypes,
1019    which can conflict with char $ac_func(); below.  */
1020#include <assert.h>
1021/* Override any gcc2 internal prototype to avoid an error.  */
1022/* We use char because int might match the return type of a gcc2
1023    builtin and then its argument prototype would still apply.  */
1024char $ac_func();
1025
1026int main() {
1027
1028/* The GNU C library defines this for functions which it implements
1029    to always fail with ENOSYS.  Some functions are actually named
1030    something starting with __ and the normal name is an alias.  */
1031#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1032choke me
1033#else
1034$ac_func();
1035#endif
1036
1037; return 0; }
1038EOF
1039if { (eval echo configure:1040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1040  rm -rf conftest*
1041  eval "ac_cv_func_$ac_func=yes"
1042else
1043  echo "configure: failed program was:" >&5
1044  cat conftest.$ac_ext >&5
1045  rm -rf conftest*
1046  eval "ac_cv_func_$ac_func=no"
1047fi
1048rm -f conftest*
1049fi
1050
1051if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1052  echo "$ac_t""yes" 1>&6
1053    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1054  cat >> confdefs.h <<EOF
1055#define $ac_tr_func 1
1056EOF
1057
1058else
1059  echo "$ac_t""no" 1>&6
1060fi
1061done
1062
1063
1064echo $ac_n "checking for working const""... $ac_c" 1>&6
1065echo "configure:1066: checking for working const" >&5
1066if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1067  echo $ac_n "(cached) $ac_c" 1>&6
1068else
1069  cat > conftest.$ac_ext <<EOF
1070#line 1071 "configure"
1071#include "confdefs.h"
1072
1073int main() {
1074
1075/* Ultrix mips cc rejects this.  */
1076typedef int charset[2]; const charset x;
1077/* SunOS 4.1.1 cc rejects this.  */
1078char const *const *ccp;
1079char **p;
1080/* NEC SVR4.0.2 mips cc rejects this.  */
1081struct point {int x, y;};
1082static struct point const zero = {0,0};
1083/* AIX XL C 1.02.0.0 rejects this.
1084   It does not let you subtract one const X* pointer from another in an arm
1085   of an if-expression whose if-part is not a constant expression */
1086const char *g = "string";
1087ccp = &g + (g ? g-g : 0);
1088/* HPUX 7.0 cc rejects these. */
1089++ccp;
1090p = (char**) ccp;
1091ccp = (char const *const *) p;
1092{ /* SCO 3.2v4 cc rejects this.  */
1093  char *t;
1094  char const *s = 0 ? (char *) 0 : (char const *) 0;
1095
1096  *t++ = 0;
1097}
1098{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1099  int x[] = {25, 17};
1100  const int *foo = &x[0];
1101  ++foo;
1102}
1103{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1104  typedef const int *iptr;
1105  iptr p = 0;
1106  ++p;
1107}
1108{ /* AIX XL C 1.02.0.0 rejects this saying
1109     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1110  struct s { int j; const int *ap[3]; };
1111  struct s *b; b->j = 5;
1112}
1113{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1114  const int foo = 10;
1115}
1116
1117; return 0; }
1118EOF
1119if { (eval echo configure:1120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1120  rm -rf conftest*
1121  ac_cv_c_const=yes
1122else
1123  echo "configure: failed program was:" >&5
1124  cat conftest.$ac_ext >&5
1125  rm -rf conftest*
1126  ac_cv_c_const=no
1127fi
1128rm -f conftest*
1129fi
1130
1131echo "$ac_t""$ac_cv_c_const" 1>&6
1132if test $ac_cv_c_const = no; then
1133  cat >> confdefs.h <<\EOF
1134#define const
1135EOF
1136
1137fi
1138
1139echo $ac_n "checking for size_t""... $ac_c" 1>&6
1140echo "configure:1141: checking for size_t" >&5
1141if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1142  echo $ac_n "(cached) $ac_c" 1>&6
1143else
1144  cat > conftest.$ac_ext <<EOF
1145#line 1146 "configure"
1146#include "confdefs.h"
1147#include <sys/types.h>
1148#if STDC_HEADERS
1149#include <stdlib.h>
1150#include <stddef.h>
1151#endif
1152EOF
1153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1154  egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1155  rm -rf conftest*
1156  ac_cv_type_size_t=yes
1157else
1158  rm -rf conftest*
1159  ac_cv_type_size_t=no
1160fi
1161rm -f conftest*
1162
1163fi
1164echo "$ac_t""$ac_cv_type_size_t" 1>&6
1165if test $ac_cv_type_size_t = no; then
1166  cat >> confdefs.h <<\EOF
1167#define size_t unsigned
1168EOF
1169
1170fi
1171
1172
1173trap '' 1 2 15
1174cat > confcache <<\EOF
1175# This file is a shell script that caches the results of configure
1176# tests run on this system so they can be shared between configure
1177# scripts and configure runs.  It is not useful on other systems.
1178# If it contains results you don't want to keep, you may remove or edit it.
1179#
1180# By default, configure uses ./config.cache as the cache file,
1181# creating it if it does not exist already.  You can give configure
1182# the --cache-file=FILE option to use a different cache file; that is
1183# what configure does when it calls configure scripts in
1184# subdirectories, so they share the cache.
1185# Giving --cache-file=/dev/null disables caching, for debugging configure.
1186# config.status only pays attention to the cache file if you give it the
1187# --recheck option to rerun configure.
1188#
1189EOF
1190# The following way of writing the cache mishandles newlines in values,
1191# but we know of no workaround that is simple, portable, and efficient.
1192# So, don't put newlines in cache variables' values.
1193# Ultrix sh set writes to stderr and can't be redirected directly,
1194# and sets the high bit in the cache file unless we assign to the vars.
1195(set) 2>&1 |
1196  case `(ac_space=' '; set) 2>&1` in
1197  *ac_space=\ *)
1198    # `set' does not quote correctly, so add quotes (double-quote substitution
1199    # turns \\\\ into \\, and sed turns \\ into \).
1200    sed -n \
1201      -e "s/'/'\\\\''/g" \
1202      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1203    ;;
1204  *)
1205    # `set' quotes correctly as required by POSIX, so do not add quotes.
1206    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1207    ;;
1208  esac >> confcache
1209if cmp -s $cache_file confcache; then
1210  :
1211else
1212  if test -w $cache_file; then
1213    echo "updating cache $cache_file"
1214    cat confcache > $cache_file
1215  else
1216    echo "not updating unwritable cache $cache_file"
1217  fi
1218fi
1219rm -f confcache
1220
1221trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1222
1223test "x$prefix" = xNONE && prefix=$ac_default_prefix
1224# Let make expand exec_prefix.
1225test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1226
1227# Any assignment to VPATH causes Sun make to only execute
1228# the first set of double-colon rules, so remove it if not needed.
1229# If there is a colon in the path, we need to keep it.
1230if test "x$srcdir" = x.; then
1231  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
1232fi
1233
1234trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1235
1236DEFS=-DHAVE_CONFIG_H
1237
1238# Without the "./", some shells look in PATH for config.status.
1239: ${CONFIG_STATUS=./config.status}
1240
1241echo creating $CONFIG_STATUS
1242rm -f $CONFIG_STATUS
1243cat > $CONFIG_STATUS <<EOF
1244#! /bin/sh
1245# Generated automatically by configure.
1246# Run this file to recreate the current configuration.
1247# This directory was configured as follows,
1248# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1249#
1250# $0 $ac_configure_args
1251#
1252# Compiler output produced by configure, useful for debugging
1253# configure, is in ./config.log if it exists.
1254
1255ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1256for ac_option
1257do
1258  case "\$ac_option" in
1259  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1260    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1261    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1262  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1263    echo "$CONFIG_STATUS generated by autoconf version 2.12"
1264    exit 0 ;;
1265  -help | --help | --hel | --he | --h)
1266    echo "\$ac_cs_usage"; exit 0 ;;
1267  *) echo "\$ac_cs_usage"; exit 1 ;;
1268  esac
1269done
1270
1271ac_given_srcdir=$srcdir
1272ac_given_INSTALL="$INSTALL"
1273
1274trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1275EOF
1276cat >> $CONFIG_STATUS <<EOF
1277
1278# Protect against being on the right side of a sed subst in config.status.
1279sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1280 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1281$ac_vpsub
1282$extrasub
1283s%@CFLAGS@%$CFLAGS%g
1284s%@CPPFLAGS@%$CPPFLAGS%g
1285s%@CXXFLAGS@%$CXXFLAGS%g
1286s%@DEFS@%$DEFS%g
1287s%@LDFLAGS@%$LDFLAGS%g
1288s%@LIBS@%$LIBS%g
1289s%@exec_prefix@%$exec_prefix%g
1290s%@prefix@%$prefix%g
1291s%@program_transform_name@%$program_transform_name%g
1292s%@bindir@%$bindir%g
1293s%@sbindir@%$sbindir%g
1294s%@libexecdir@%$libexecdir%g
1295s%@datadir@%$datadir%g
1296s%@sysconfdir@%$sysconfdir%g
1297s%@sharedstatedir@%$sharedstatedir%g
1298s%@localstatedir@%$localstatedir%g
1299s%@libdir@%$libdir%g
1300s%@includedir@%$includedir%g
1301s%@oldincludedir@%$oldincludedir%g
1302s%@infodir@%$infodir%g
1303s%@mandir@%$mandir%g
1304s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1305s%@INSTALL_DATA@%$INSTALL_DATA%g
1306s%@CC@%$CC%g
1307s%@RANLIB@%$RANLIB%g
1308s%@CPP@%$CPP%g
1309
1310CEOF
1311EOF
1312
1313cat >> $CONFIG_STATUS <<\EOF
1314
1315# Split the substitutions into bite-sized pieces for seds with
1316# small command number limits, like on Digital OSF/1 and HP-UX.
1317ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1318ac_file=1 # Number of current file.
1319ac_beg=1 # First line for current file.
1320ac_end=$ac_max_sed_cmds # Line after last line for current file.
1321ac_more_lines=:
1322ac_sed_cmds=""
1323while $ac_more_lines; do
1324  if test $ac_beg -gt 1; then
1325    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1326  else
1327    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1328  fi
1329  if test ! -s conftest.s$ac_file; then
1330    ac_more_lines=false
1331    rm -f conftest.s$ac_file
1332  else
1333    if test -z "$ac_sed_cmds"; then
1334      ac_sed_cmds="sed -f conftest.s$ac_file"
1335    else
1336      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1337    fi
1338    ac_file=`expr $ac_file + 1`
1339    ac_beg=$ac_end
1340    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1341  fi
1342done
1343if test -z "$ac_sed_cmds"; then
1344  ac_sed_cmds=cat
1345fi
1346EOF
1347
1348cat >> $CONFIG_STATUS <<EOF
1349
1350CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1351EOF
1352cat >> $CONFIG_STATUS <<\EOF
1353for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1354  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1355  case "$ac_file" in
1356  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1357       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1358  *) ac_file_in="${ac_file}.in" ;;
1359  esac
1360
1361  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1362
1363  # Remove last slash and all that follows it.  Not all systems have dirname.
1364  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1365  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1366    # The file is in a subdirectory.
1367    test ! -d "$ac_dir" && mkdir "$ac_dir"
1368    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1369    # A "../" for each directory in $ac_dir_suffix.
1370    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1371  else
1372    ac_dir_suffix= ac_dots=
1373  fi
1374
1375  case "$ac_given_srcdir" in
1376  .)  srcdir=.
1377      if test -z "$ac_dots"; then top_srcdir=.
1378      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1379  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1380  *) # Relative path.
1381    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1382    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1383  esac
1384
1385  case "$ac_given_INSTALL" in
1386  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1387  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1388  esac
1389
1390  echo creating "$ac_file"
1391  rm -f "$ac_file"
1392  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1393  case "$ac_file" in
1394  *Makefile*) ac_comsub="1i\\
1395# $configure_input" ;;
1396  *) ac_comsub= ;;
1397  esac
1398
1399  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1400  sed -e "$ac_comsub
1401s%@configure_input@%$configure_input%g
1402s%@srcdir@%$srcdir%g
1403s%@top_srcdir@%$top_srcdir%g
1404s%@INSTALL@%$INSTALL%g
1405" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1406fi; done
1407rm -f conftest.s*
1408
1409# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1410# NAME is the cpp macro being defined and VALUE is the value it is being given.
1411#
1412# ac_d sets the value in "#define NAME VALUE" lines.
1413ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
1414ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
1415ac_dC='\3'
1416ac_dD='%g'
1417# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1418ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
1419ac_uB='\([ 	]\)%\1#\2define\3'
1420ac_uC=' '
1421ac_uD='\4%g'
1422# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1423ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
1424ac_eB='$%\1#\2define\3'
1425ac_eC=' '
1426ac_eD='%g'
1427
1428if test "${CONFIG_HEADERS+set}" != set; then
1429EOF
1430cat >> $CONFIG_STATUS <<EOF
1431  CONFIG_HEADERS="config.h"
1432EOF
1433cat >> $CONFIG_STATUS <<\EOF
1434fi
1435for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1436  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1437  case "$ac_file" in
1438  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1439       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1440  *) ac_file_in="${ac_file}.in" ;;
1441  esac
1442
1443  echo creating $ac_file
1444
1445  rm -f conftest.frag conftest.in conftest.out
1446  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1447  cat $ac_file_inputs > conftest.in
1448
1449EOF
1450
1451# Transform confdefs.h into a sed script conftest.vals that substitutes
1452# the proper values into config.h.in to produce config.h.  And first:
1453# Protect against being on the right side of a sed subst in config.status.
1454# Protect against being in an unquoted here document in config.status.
1455rm -f conftest.vals
1456cat > conftest.hdr <<\EOF
1457s/[\\&%]/\\&/g
1458s%[\\$`]%\\&%g
1459s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1460s%ac_d%ac_u%gp
1461s%ac_u%ac_e%gp
1462EOF
1463sed -n -f conftest.hdr confdefs.h > conftest.vals
1464rm -f conftest.hdr
1465
1466# This sed command replaces #undef with comments.  This is necessary, for
1467# example, in the case of _POSIX_SOURCE, which is predefined and required
1468# on some systems where configure will not decide to define it.
1469cat >> conftest.vals <<\EOF
1470s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1471EOF
1472
1473# Break up conftest.vals because some shells have a limit on
1474# the size of here documents, and old seds have small limits too.
1475
1476rm -f conftest.tail
1477while :
1478do
1479  ac_lines=`grep -c . conftest.vals`
1480  # grep -c gives empty output for an empty file on some AIX systems.
1481  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1482  # Write a limited-size here document to conftest.frag.
1483  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1484  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1485  echo 'CEOF
1486  sed -f conftest.frag conftest.in > conftest.out
1487  rm -f conftest.in
1488  mv conftest.out conftest.in
1489' >> $CONFIG_STATUS
1490  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1491  rm -f conftest.vals
1492  mv conftest.tail conftest.vals
1493done
1494rm -f conftest.vals
1495
1496cat >> $CONFIG_STATUS <<\EOF
1497  rm -f conftest.frag conftest.h
1498  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
1499  cat conftest.in >> conftest.h
1500  rm -f conftest.in
1501  if cmp -s $ac_file conftest.h 2>/dev/null; then
1502    echo "$ac_file is unchanged"
1503    rm -f conftest.h
1504  else
1505    # Remove last slash and all that follows it.  Not all systems have dirname.
1506      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1507      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1508      # The file is in a subdirectory.
1509      test ! -d "$ac_dir" && mkdir "$ac_dir"
1510    fi
1511    rm -f $ac_file
1512    mv conftest.h $ac_file
1513  fi
1514fi; done
1515
1516EOF
1517cat >> $CONFIG_STATUS <<EOF
1518
1519EOF
1520cat >> $CONFIG_STATUS <<\EOF
1521
1522exit 0
1523EOF
1524chmod +x $CONFIG_STATUS
1525rm -fr confdefs* $ac_clean_files
1526test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1527
1528