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