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

Annotation of /psiconv/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 53 - (hide annotations)
Sat Oct 21 00:49:13 2000 UTC (24 years, 1 month ago) by frodo
File size: 88033 byte(s)
(Frodo) YES! Fixed everything - ImageMagick should now finally work!

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

Properties

Name Value
svn:executable *

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