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