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