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