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:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --with-fontdir=DIR\t  install fonts in DIR [PREFIX/share/emacs/fonts]"
16ac_help="$ac_help
17  --enable-compress[=ARG] whether to compress PCF fonts or not [ARG=gzip]"
18ac_help="$ac_help
19  --with-pcf[=ARG]	  install PCF fonts
20			  [ARG=yes] on Unix, [ARG=no] on DOS"
21ac_help="$ac_help
22  --with-bdf[=ARG]	  install BDF fonts [ARG=yes]"
23ac_help="$ac_help
24  --with-type1[=ARG]	  install Type1 fonts [ARG=no]"
25ac_help="$ac_help
26  --with-truetype[=ARG]	  install TrueType fonts [ARG=no]"
27
28# Initialize some variables set by options.
29# The variables have the same names as the options, with
30# dashes changed to underlines.
31build=NONE
32cache_file=./config.cache
33exec_prefix=NONE
34host=NONE
35no_create=
36nonopt=NONE
37no_recursion=
38prefix=NONE
39program_prefix=NONE
40program_suffix=NONE
41program_transform_name=s,x,x,
42silent=
43site=
44srcdir=
45target=NONE
46verbose=
47x_includes=NONE
48x_libraries=NONE
49bindir='${exec_prefix}/bin'
50sbindir='${exec_prefix}/sbin'
51libexecdir='${exec_prefix}/libexec'
52datadir='${prefix}/share'
53sysconfdir='${prefix}/etc'
54sharedstatedir='${prefix}/com'
55localstatedir='${prefix}/var'
56libdir='${exec_prefix}/lib'
57includedir='${prefix}/include'
58oldincludedir='/usr/include'
59infodir='${prefix}/info'
60mandir='${prefix}/man'
61
62# Initialize some other variables.
63subdirs=
64MFLAGS= MAKEFLAGS=
65SHELL=${CONFIG_SHELL-/bin/sh}
66# Maximum number of lines to put in a shell here document.
67ac_max_here_lines=12
68
69ac_prev=
70for ac_option
71do
72
73  # If the previous option needs an argument, assign it.
74  if test -n "$ac_prev"; then
75    eval "$ac_prev=\$ac_option"
76    ac_prev=
77    continue
78  fi
79
80  case "$ac_option" in
81  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82  *) ac_optarg= ;;
83  esac
84
85  # Accept the important Cygnus configure options, so we can diagnose typos.
86
87  case "$ac_option" in
88
89  -bindir | --bindir | --bindi | --bind | --bin | --bi)
90    ac_prev=bindir ;;
91  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92    bindir="$ac_optarg" ;;
93
94  -build | --build | --buil | --bui | --bu)
95    ac_prev=build ;;
96  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
97    build="$ac_optarg" ;;
98
99  -cache-file | --cache-file | --cache-fil | --cache-fi \
100  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101    ac_prev=cache_file ;;
102  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104    cache_file="$ac_optarg" ;;
105
106  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107    ac_prev=datadir ;;
108  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109  | --da=*)
110    datadir="$ac_optarg" ;;
111
112  -disable-* | --disable-*)
113    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114    # Reject names that are not valid shell variable names.
115    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117    fi
118    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119    eval "enable_${ac_feature}=no" ;;
120
121  -enable-* | --enable-*)
122    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123    # Reject names that are not valid shell variable names.
124    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126    fi
127    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128    case "$ac_option" in
129      *=*) ;;
130      *) ac_optarg=yes ;;
131    esac
132    eval "enable_${ac_feature}='$ac_optarg'" ;;
133
134  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136  | --exec | --exe | --ex)
137    ac_prev=exec_prefix ;;
138  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140  | --exec=* | --exe=* | --ex=*)
141    exec_prefix="$ac_optarg" ;;
142
143  -gas | --gas | --ga | --g)
144    # Obsolete; use --with-gas.
145    with_gas=yes ;;
146
147  -help | --help | --hel | --he)
148    # Omit some internal or obsolete options to make the list less imposing.
149    # This message is too long to be a string in the A/UX 3.1 sh.
150    cat << EOF
151Usage: configure [options] [host]
152Options: [defaults in brackets after descriptions]
153Configuration:
154  --cache-file=FILE       cache test results in FILE
155  --help                  print this message
156  --no-create             do not create output files
157  --quiet, --silent       do not print \`checking...' messages
158  --version               print the version of autoconf that created configure
159Directory and file names:
160  --prefix=PREFIX         install architecture-independent files in PREFIX
161                          [$ac_default_prefix]
162  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
163                          [same as prefix]
164  --bindir=DIR            user executables in DIR [EPREFIX/bin]
165  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
166  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
167  --datadir=DIR           read-only architecture-independent data in DIR
168                          [PREFIX/share]
169  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
170  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
171                          [PREFIX/com]
172  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
173  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
174  --includedir=DIR        C header files in DIR [PREFIX/include]
175  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
176  --infodir=DIR           info documentation in DIR [PREFIX/info]
177  --mandir=DIR            man documentation in DIR [PREFIX/man]
178  --srcdir=DIR            find the sources in DIR [configure dir or ..]
179  --program-prefix=PREFIX prepend PREFIX to installed program names
180  --program-suffix=SUFFIX append SUFFIX to installed program names
181  --program-transform-name=PROGRAM
182                          run sed PROGRAM on installed program names
183EOF
184    cat << EOF
185Host type:
186  --build=BUILD           configure for building on BUILD [BUILD=HOST]
187  --host=HOST             configure for HOST [guessed]
188  --target=TARGET         configure for TARGET [TARGET=HOST]
189Features and packages:
190  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
191  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
192  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
193  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
194  --x-includes=DIR        X include files are in DIR
195  --x-libraries=DIR       X library files are in DIR
196EOF
197    if test -n "$ac_help"; then
198      echo "--enable and --with options recognized:$ac_help"
199    fi
200    exit 0 ;;
201
202  -host | --host | --hos | --ho)
203    ac_prev=host ;;
204  -host=* | --host=* | --hos=* | --ho=*)
205    host="$ac_optarg" ;;
206
207  -includedir | --includedir | --includedi | --included | --include \
208  | --includ | --inclu | --incl | --inc)
209    ac_prev=includedir ;;
210  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211  | --includ=* | --inclu=* | --incl=* | --inc=*)
212    includedir="$ac_optarg" ;;
213
214  -infodir | --infodir | --infodi | --infod | --info | --inf)
215    ac_prev=infodir ;;
216  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217    infodir="$ac_optarg" ;;
218
219  -libdir | --libdir | --libdi | --libd)
220    ac_prev=libdir ;;
221  -libdir=* | --libdir=* | --libdi=* | --libd=*)
222    libdir="$ac_optarg" ;;
223
224  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225  | --libexe | --libex | --libe)
226    ac_prev=libexecdir ;;
227  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228  | --libexe=* | --libex=* | --libe=*)
229    libexecdir="$ac_optarg" ;;
230
231  -localstatedir | --localstatedir | --localstatedi | --localstated \
232  | --localstate | --localstat | --localsta | --localst \
233  | --locals | --local | --loca | --loc | --lo)
234    ac_prev=localstatedir ;;
235  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238    localstatedir="$ac_optarg" ;;
239
240  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241    ac_prev=mandir ;;
242  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243    mandir="$ac_optarg" ;;
244
245  -nfp | --nfp | --nf)
246    # Obsolete; use --without-fp.
247    with_fp=no ;;
248
249  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250  | --no-cr | --no-c)
251    no_create=yes ;;
252
253  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255    no_recursion=yes ;;
256
257  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259  | --oldin | --oldi | --old | --ol | --o)
260    ac_prev=oldincludedir ;;
261  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264    oldincludedir="$ac_optarg" ;;
265
266  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267    ac_prev=prefix ;;
268  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269    prefix="$ac_optarg" ;;
270
271  -program-prefix | --program-prefix | --program-prefi | --program-pref \
272  | --program-pre | --program-pr | --program-p)
273    ac_prev=program_prefix ;;
274  -program-prefix=* | --program-prefix=* | --program-prefi=* \
275  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276    program_prefix="$ac_optarg" ;;
277
278  -program-suffix | --program-suffix | --program-suffi | --program-suff \
279  | --program-suf | --program-su | --program-s)
280    ac_prev=program_suffix ;;
281  -program-suffix=* | --program-suffix=* | --program-suffi=* \
282  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283    program_suffix="$ac_optarg" ;;
284
285  -program-transform-name | --program-transform-name \
286  | --program-transform-nam | --program-transform-na \
287  | --program-transform-n | --program-transform- \
288  | --program-transform | --program-transfor \
289  | --program-transfo | --program-transf \
290  | --program-trans | --program-tran \
291  | --progr-tra | --program-tr | --program-t)
292    ac_prev=program_transform_name ;;
293  -program-transform-name=* | --program-transform-name=* \
294  | --program-transform-nam=* | --program-transform-na=* \
295  | --program-transform-n=* | --program-transform-=* \
296  | --program-transform=* | --program-transfor=* \
297  | --program-transfo=* | --program-transf=* \
298  | --program-trans=* | --program-tran=* \
299  | --progr-tra=* | --program-tr=* | --program-t=*)
300    program_transform_name="$ac_optarg" ;;
301
302  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303  | -silent | --silent | --silen | --sile | --sil)
304    silent=yes ;;
305
306  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307    ac_prev=sbindir ;;
308  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309  | --sbi=* | --sb=*)
310    sbindir="$ac_optarg" ;;
311
312  -sharedstatedir | --sharedstatedir | --sharedstatedi \
313  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314  | --sharedst | --shareds | --shared | --share | --shar \
315  | --sha | --sh)
316    ac_prev=sharedstatedir ;;
317  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320  | --sha=* | --sh=*)
321    sharedstatedir="$ac_optarg" ;;
322
323  -site | --site | --sit)
324    ac_prev=site ;;
325  -site=* | --site=* | --sit=*)
326    site="$ac_optarg" ;;
327
328  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329    ac_prev=srcdir ;;
330  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331    srcdir="$ac_optarg" ;;
332
333  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334  | --syscon | --sysco | --sysc | --sys | --sy)
335    ac_prev=sysconfdir ;;
336  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338    sysconfdir="$ac_optarg" ;;
339
340  -target | --target | --targe | --targ | --tar | --ta | --t)
341    ac_prev=target ;;
342  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343    target="$ac_optarg" ;;
344
345  -v | -verbose | --verbose | --verbos | --verbo | --verb)
346    verbose=yes ;;
347
348  -version | --version | --versio | --versi | --vers)
349    echo "configure generated by autoconf version 2.13"
350    exit 0 ;;
351
352  -with-* | --with-*)
353    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354    # Reject names that are not valid shell variable names.
355    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357    fi
358    ac_package=`echo $ac_package| sed 's/-/_/g'`
359    case "$ac_option" in
360      *=*) ;;
361      *) ac_optarg=yes ;;
362    esac
363    eval "with_${ac_package}='$ac_optarg'" ;;
364
365  -without-* | --without-*)
366    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367    # Reject names that are not valid shell variable names.
368    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370    fi
371    ac_package=`echo $ac_package| sed 's/-/_/g'`
372    eval "with_${ac_package}=no" ;;
373
374  --x)
375    # Obsolete; use --with-x.
376    with_x=yes ;;
377
378  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379  | --x-incl | --x-inc | --x-in | --x-i)
380    ac_prev=x_includes ;;
381  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383    x_includes="$ac_optarg" ;;
384
385  -x-libraries | --x-libraries | --x-librarie | --x-librari \
386  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387    ac_prev=x_libraries ;;
388  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390    x_libraries="$ac_optarg" ;;
391
392  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393    ;;
394
395  *)
396    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397      echo "configure: warning: $ac_option: invalid host type" 1>&2
398    fi
399    if test "x$nonopt" != xNONE; then
400      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401    fi
402    nonopt="$ac_option"
403    ;;
404
405  esac
406done
407
408if test -n "$ac_prev"; then
409  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410fi
411
412trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413
414# File descriptor usage:
415# 0 standard input
416# 1 file creation
417# 2 errors and warnings
418# 3 some systems may open it to /dev/tty
419# 4 used on the Kubota Titan
420# 6 checking for... messages and results
421# 5 compiler messages saved in config.log
422if test "$silent" = yes; then
423  exec 6>/dev/null
424else
425  exec 6>&1
426fi
427exec 5>./config.log
428
429echo "\
430This file contains any messages produced by compilers while
431running configure, to aid debugging if configure makes a mistake.
432" 1>&5
433
434# Strip out --no-create and --no-recursion so they do not pile up.
435# Also quote any args containing shell metacharacters.
436ac_configure_args=
437for ac_arg
438do
439  case "$ac_arg" in
440  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441  | --no-cr | --no-c) ;;
442  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447  esac
448done
449
450# NLS nuisances.
451# Only set these to C if already set.  These must not be set unconditionally
452# because not all systems understand e.g. LANG=C (notably SCO).
453# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454# Non-C LC_CTYPE values break the ctype check.
455if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
456if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
459
460# confdefs.h avoids OS command line length limits that DEFS can exceed.
461rm -rf conftest* confdefs.h
462# AIX cpp loses on an empty file, so make sure it contains at least a newline.
463echo > confdefs.h
464
465# A filename unique to this package, relative to the directory that
466# configure is in, which we can look for to find out if srcdir is correct.
467ac_unique_file=
468
469# Find the source files, if location was not specified.
470if test -z "$srcdir"; then
471  ac_srcdir_defaulted=yes
472  # Try the directory containing this script, then its parent.
473  ac_prog=$0
474  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476  srcdir=$ac_confdir
477  if test ! -r $srcdir/$ac_unique_file; then
478    srcdir=..
479  fi
480else
481  ac_srcdir_defaulted=no
482fi
483if test ! -r $srcdir/$ac_unique_file; then
484  if test "$ac_srcdir_defaulted" = yes; then
485    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486  else
487    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488  fi
489fi
490srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491
492# Prefer explicitly selected file to automatically selected ones.
493if test -z "$CONFIG_SITE"; then
494  if test "x$prefix" != xNONE; then
495    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496  else
497    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498  fi
499fi
500for ac_site_file in $CONFIG_SITE; do
501  if test -r "$ac_site_file"; then
502    echo "loading site script $ac_site_file"
503    . "$ac_site_file"
504  fi
505done
506
507if test -r "$cache_file"; then
508  echo "loading cache $cache_file"
509  . $cache_file
510else
511  echo "creating cache $cache_file"
512  > $cache_file
513fi
514
515ac_ext=c
516# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517ac_cpp='$CPP $CPPFLAGS'
518ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520cross_compiling=$ac_cv_prog_cc_cross
521
522ac_exeext=
523ac_objext=o
524if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527    ac_n= ac_c='
528' ac_t='	'
529  else
530    ac_n=-n ac_c= ac_t=
531  fi
532else
533  ac_n= ac_c='\c' ac_t=
534fi
535
536
537
538ac_aux_dir=
539for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
540  if test -f $ac_dir/install-sh; then
541    ac_aux_dir=$ac_dir
542    ac_install_sh="$ac_aux_dir/install-sh -c"
543    break
544  elif test -f $ac_dir/install.sh; then
545    ac_aux_dir=$ac_dir
546    ac_install_sh="$ac_aux_dir/install.sh -c"
547    break
548  fi
549done
550if test -z "$ac_aux_dir"; then
551  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
552fi
553ac_config_guess=$ac_aux_dir/config.guess
554ac_config_sub=$ac_aux_dir/config.sub
555ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
556
557# Find a good install program.  We prefer a C program (faster),
558# so one script is as good as another.  But avoid the broken or
559# incompatible versions:
560# SysV /etc/install, /usr/sbin/install
561# SunOS /usr/etc/install
562# IRIX /sbin/install
563# AIX /bin/install
564# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
565# AFS /usr/afsws/bin/install, which mishandles nonexistent args
566# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
567# ./install, which can be erroneously created by make from ./install.sh.
568echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
569echo "configure:570: checking for a BSD compatible install" >&5
570if test -z "$INSTALL"; then
571if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
572  echo $ac_n "(cached) $ac_c" 1>&6
573else
574    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
575  for ac_dir in $PATH; do
576    # Account for people who put trailing slashes in PATH elements.
577    case "$ac_dir/" in
578    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
579    *)
580      # OSF1 and SCO ODT 3.0 have their own names for install.
581      # Don't use installbsd from OSF since it installs stuff as root
582      # by default.
583      for ac_prog in ginstall scoinst install; do
584        if test -f $ac_dir/$ac_prog; then
585	  if test $ac_prog = install &&
586            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
587	    # AIX install.  It has an incompatible calling convention.
588	    :
589	  else
590	    ac_cv_path_install="$ac_dir/$ac_prog -c"
591	    break 2
592	  fi
593	fi
594      done
595      ;;
596    esac
597  done
598  IFS="$ac_save_IFS"
599
600fi
601  if test "${ac_cv_path_install+set}" = set; then
602    INSTALL="$ac_cv_path_install"
603  else
604    # As a last resort, use the slow shell script.  We don't cache a
605    # path for INSTALL within a source directory, because that will
606    # break other packages using the cache if that directory is
607    # removed, or if the path is relative.
608    INSTALL="$ac_install_sh"
609  fi
610fi
611echo "$ac_t""$INSTALL" 1>&6
612
613# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
614# It thinks the first close brace ends the variable substitution.
615test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
616
617test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
618
619test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
620
621
622
623# Check whether --with-fontdir or --without-fontdir was given.
624if test "${with_fontdir+set}" = set; then
625  withval="$with_fontdir"
626  :
627fi
628
629fontdir=${with_fontdir}
630if test -z "$fontdir" -o "${fontdir}" = yes; then
631  theprefix=$prefix
632  if test "x$theprefix" = "xNONE"; then
633    theprefix=$ac_default_prefix
634  fi
635  fontdir="${theprefix}/share/emacs/fonts"
636fi
637echo $ac_n "checking where fonts should go""... $ac_c" 1>&6
638echo "configure:639: checking where fonts should go" >&5
639echo "$ac_t""${fontdir}" 1>&6
640
641
642# Check whether --enable-compress or --disable-compress was given.
643if test "${enable_compress+set}" = set; then
644  enableval="$enable_compress"
645  :
646fi
647
648if test -z "${enable_compress}"; then
649  compress=no
650elif test "${enable_compress}" = "yes"; then
651  compress=gzip
652else
653  compress=${enable_compress}
654fi
655echo $ac_n "checking whether to compress fonts or not""... $ac_c" 1>&6
656echo "configure:657: checking whether to compress fonts or not" >&5
657if test "${compress}" = "no" ; then
658  echo "$ac_t""no" 1>&6
659else
660  echo "$ac_t""yes, by ${compress}" 1>&6
661fi
662
663
664# Check whether --with-pcf or --without-pcf was given.
665if test "${with_pcf+set}" = set; then
666  withval="$with_pcf"
667  :
668else
669  test -z "${COMSPEC}" || with_pcf=no
670fi
671
672# Check whether --with-bdf or --without-bdf was given.
673if test "${with_bdf+set}" = set; then
674  withval="$with_bdf"
675  :
676fi
677
678# Check whether --with-type1 or --without-type1 was given.
679if test "${with_type1+set}" = set; then
680  withval="$with_type1"
681  :
682else
683  with_type1=no
684fi
685
686# Check whether --with-truetype or --without-truetype was given.
687if test "${with_truetype+set}" = set; then
688  withval="$with_truetype"
689  :
690else
691  with_truetype=no
692fi
693
694targets=""
695test "${with_pcf}" = "no" || targets="${targets} pcf"
696test "${with_bdf}" = "no" || targets="${targets} bdf"
697test "${with_type1}" = "no" || targets="${targets} type1"
698test "${with_truetype}" = "no" || targets="${targets} truetype"
699echo $ac_n "checking installing font types""... $ac_c" 1>&6
700echo "configure:701: checking installing font types" >&5
701echo "$ac_t""$targets" 1>&6
702
703
704trap '' 1 2 15
705cat > confcache <<\EOF
706# This file is a shell script that caches the results of configure
707# tests run on this system so they can be shared between configure
708# scripts and configure runs.  It is not useful on other systems.
709# If it contains results you don't want to keep, you may remove or edit it.
710#
711# By default, configure uses ./config.cache as the cache file,
712# creating it if it does not exist already.  You can give configure
713# the --cache-file=FILE option to use a different cache file; that is
714# what configure does when it calls configure scripts in
715# subdirectories, so they share the cache.
716# Giving --cache-file=/dev/null disables caching, for debugging configure.
717# config.status only pays attention to the cache file if you give it the
718# --recheck option to rerun configure.
719#
720EOF
721# The following way of writing the cache mishandles newlines in values,
722# but we know of no workaround that is simple, portable, and efficient.
723# So, don't put newlines in cache variables' values.
724# Ultrix sh set writes to stderr and can't be redirected directly,
725# and sets the high bit in the cache file unless we assign to the vars.
726(set) 2>&1 |
727  case `(ac_space=' '; set | grep ac_space) 2>&1` in
728  *ac_space=\ *)
729    # `set' does not quote correctly, so add quotes (double-quote substitution
730    # turns \\\\ into \\, and sed turns \\ into \).
731    sed -n \
732      -e "s/'/'\\\\''/g" \
733      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
734    ;;
735  *)
736    # `set' quotes correctly as required by POSIX, so do not add quotes.
737    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
738    ;;
739  esac >> confcache
740if cmp -s $cache_file confcache; then
741  :
742else
743  if test -w $cache_file; then
744    echo "updating cache $cache_file"
745    cat confcache > $cache_file
746  else
747    echo "not updating unwritable cache $cache_file"
748  fi
749fi
750rm -f confcache
751
752trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
753
754test "x$prefix" = xNONE && prefix=$ac_default_prefix
755# Let make expand exec_prefix.
756test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
757
758# Any assignment to VPATH causes Sun make to only execute
759# the first set of double-colon rules, so remove it if not needed.
760# If there is a colon in the path, we need to keep it.
761if test "x$srcdir" = x.; then
762  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
763fi
764
765trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
766
767# Transform confdefs.h into DEFS.
768# Protect against shell expansion while executing Makefile rules.
769# Protect against Makefile macro expansion.
770cat > conftest.defs <<\EOF
771s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
772s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
773s%\[%\\&%g
774s%\]%\\&%g
775s%\$%$$%g
776EOF
777DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
778rm -f conftest.defs
779
780
781# Without the "./", some shells look in PATH for config.status.
782: ${CONFIG_STATUS=./config.status}
783
784echo creating $CONFIG_STATUS
785rm -f $CONFIG_STATUS
786cat > $CONFIG_STATUS <<EOF
787#! /bin/sh
788# Generated automatically by configure.
789# Run this file to recreate the current configuration.
790# This directory was configured as follows,
791# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
792#
793# $0 $ac_configure_args
794#
795# Compiler output produced by configure, useful for debugging
796# configure, is in ./config.log if it exists.
797
798ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
799for ac_option
800do
801  case "\$ac_option" in
802  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
803    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
804    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
805  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
806    echo "$CONFIG_STATUS generated by autoconf version 2.13"
807    exit 0 ;;
808  -help | --help | --hel | --he | --h)
809    echo "\$ac_cs_usage"; exit 0 ;;
810  *) echo "\$ac_cs_usage"; exit 1 ;;
811  esac
812done
813
814ac_given_srcdir=$srcdir
815ac_given_INSTALL="$INSTALL"
816
817trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
818EOF
819cat >> $CONFIG_STATUS <<EOF
820
821# Protect against being on the right side of a sed subst in config.status.
822sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
823 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
824$ac_vpsub
825$extrasub
826s%@SHELL@%$SHELL%g
827s%@CFLAGS@%$CFLAGS%g
828s%@CPPFLAGS@%$CPPFLAGS%g
829s%@CXXFLAGS@%$CXXFLAGS%g
830s%@FFLAGS@%$FFLAGS%g
831s%@DEFS@%$DEFS%g
832s%@LDFLAGS@%$LDFLAGS%g
833s%@LIBS@%$LIBS%g
834s%@exec_prefix@%$exec_prefix%g
835s%@prefix@%$prefix%g
836s%@program_transform_name@%$program_transform_name%g
837s%@bindir@%$bindir%g
838s%@sbindir@%$sbindir%g
839s%@libexecdir@%$libexecdir%g
840s%@datadir@%$datadir%g
841s%@sysconfdir@%$sysconfdir%g
842s%@sharedstatedir@%$sharedstatedir%g
843s%@localstatedir@%$localstatedir%g
844s%@libdir@%$libdir%g
845s%@includedir@%$includedir%g
846s%@oldincludedir@%$oldincludedir%g
847s%@infodir@%$infodir%g
848s%@mandir@%$mandir%g
849s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
850s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
851s%@INSTALL_DATA@%$INSTALL_DATA%g
852s%@INSTALL@%$INSTALL%g
853s%@fontdir@%$fontdir%g
854s%@compress@%$compress%g
855s%@targets@%$targets%g
856
857CEOF
858EOF
859
860cat >> $CONFIG_STATUS <<\EOF
861
862# Split the substitutions into bite-sized pieces for seds with
863# small command number limits, like on Digital OSF/1 and HP-UX.
864ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
865ac_file=1 # Number of current file.
866ac_beg=1 # First line for current file.
867ac_end=$ac_max_sed_cmds # Line after last line for current file.
868ac_more_lines=:
869ac_sed_cmds=""
870while $ac_more_lines; do
871  if test $ac_beg -gt 1; then
872    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
873  else
874    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
875  fi
876  if test ! -s conftest.s$ac_file; then
877    ac_more_lines=false
878    rm -f conftest.s$ac_file
879  else
880    if test -z "$ac_sed_cmds"; then
881      ac_sed_cmds="sed -f conftest.s$ac_file"
882    else
883      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
884    fi
885    ac_file=`expr $ac_file + 1`
886    ac_beg=$ac_end
887    ac_end=`expr $ac_end + $ac_max_sed_cmds`
888  fi
889done
890if test -z "$ac_sed_cmds"; then
891  ac_sed_cmds=cat
892fi
893EOF
894
895cat >> $CONFIG_STATUS <<EOF
896
897CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
898EOF
899cat >> $CONFIG_STATUS <<\EOF
900for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
901  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
902  case "$ac_file" in
903  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
904       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
905  *) ac_file_in="${ac_file}.in" ;;
906  esac
907
908  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
909
910  # Remove last slash and all that follows it.  Not all systems have dirname.
911  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
912  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
913    # The file is in a subdirectory.
914    test ! -d "$ac_dir" && mkdir "$ac_dir"
915    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
916    # A "../" for each directory in $ac_dir_suffix.
917    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
918  else
919    ac_dir_suffix= ac_dots=
920  fi
921
922  case "$ac_given_srcdir" in
923  .)  srcdir=.
924      if test -z "$ac_dots"; then top_srcdir=.
925      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
926  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
927  *) # Relative path.
928    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
929    top_srcdir="$ac_dots$ac_given_srcdir" ;;
930  esac
931
932  case "$ac_given_INSTALL" in
933  [/$]*) INSTALL="$ac_given_INSTALL" ;;
934  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
935  esac
936
937  echo creating "$ac_file"
938  rm -f "$ac_file"
939  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
940  case "$ac_file" in
941  *Makefile*) ac_comsub="1i\\
942# $configure_input" ;;
943  *) ac_comsub= ;;
944  esac
945
946  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
947  sed -e "$ac_comsub
948s%@configure_input@%$configure_input%g
949s%@srcdir@%$srcdir%g
950s%@top_srcdir@%$top_srcdir%g
951s%@INSTALL@%$INSTALL%g
952" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
953fi; done
954rm -f conftest.s*
955
956EOF
957cat >> $CONFIG_STATUS <<EOF
958
959EOF
960cat >> $CONFIG_STATUS <<\EOF
961
962exit 0
963EOF
964chmod +x $CONFIG_STATUS
965rm -fr confdefs* $ac_clean_files
966test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
967
968