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