/[public]/psiconv/trunk/configure
ViewVC logotype

Annotation of /psiconv/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations)
Sun Oct 3 21:10:47 1999 UTC (24 years, 6 months ago) by frodo
File size: 82429 byte(s)
Imported sources

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

Properties

Name Value
svn:executable *

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26