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-iconsdir=PATH    specify a different path to install icons"
16
17# Initialize some variables set by options.
18# The variables have the same names as the options, with
19# dashes changed to underlines.
20build=NONE
21cache_file=./config.cache
22exec_prefix=NONE
23host=NONE
24no_create=
25nonopt=NONE
26no_recursion=
27prefix=NONE
28program_prefix=NONE
29program_suffix=NONE
30program_transform_name=s,x,x,
31silent=
32site=
33srcdir=
34target=NONE
35verbose=
36x_includes=NONE
37x_libraries=NONE
38bindir='${exec_prefix}/bin'
39sbindir='${exec_prefix}/sbin'
40libexecdir='${exec_prefix}/libexec'
41datadir='${prefix}/share'
42sysconfdir='${prefix}/etc'
43sharedstatedir='${prefix}/com'
44localstatedir='${prefix}/var'
45libdir='${exec_prefix}/lib'
46includedir='${prefix}/include'
47oldincludedir='/usr/include'
48infodir='${prefix}/info'
49mandir='${prefix}/man'
50
51# Initialize some other variables.
52subdirs=
53MFLAGS= MAKEFLAGS=
54SHELL=${CONFIG_SHELL-/bin/sh}
55# Maximum number of lines to put in a shell here document.
56ac_max_here_lines=12
57
58ac_prev=
59for ac_option
60do
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
140Usage: configure [options] [host]
141Options: [defaults in brackets after descriptions]
142Configuration:
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
148Directory 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
172EOF
173    cat << EOF
174Host 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]
178Features 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
185EOF
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
395done
396
397if test -n "$ac_prev"; then
398  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399fi
400
401trap '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
411if test "$silent" = yes; then
412  exec 6>/dev/null
413else
414  exec 6>&1
415fi
416exec 5>./config.log
417
418echo "\
419This file contains any messages produced by compilers while
420running 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.
425ac_configure_args=
426for ac_arg
427do
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
437done
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.
444if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
445if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447if 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.
450rm -rf conftest* confdefs.h
451# AIX cpp loses on an empty file, so make sure it contains at least a newline.
452echo > 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.
456ac_unique_file=README
457
458# Find the source files, if location was not specified.
459if 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
469else
470  ac_srcdir_defaulted=no
471fi
472if 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
478fi
479srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480
481# Prefer explicitly selected file to automatically selected ones.
482if 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
488fi
489for 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
494done
495
496if test -r "$cache_file"; then
497  echo "loading cache $cache_file"
498  . $cache_file
499else
500  echo "creating cache $cache_file"
501  > $cache_file
502fi
503
504ac_ext=c
505# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506ac_cpp='$CPP $CPPFLAGS'
507ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509cross_compiling=$ac_cv_prog_cc_cross
510
511ac_exeext=
512ac_objext=o
513if (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
521else
522  ac_n= ac_c='\c' ac_t=
523fi
524
525
526
527ac_aux_dir=
528for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
529  if test -f $ac_dir/install-sh; then
530    ac_aux_dir=$ac_dir
531    ac_install_sh="$ac_aux_dir/install-sh -c"
532    break
533  elif test -f $ac_dir/install.sh; then
534    ac_aux_dir=$ac_dir
535    ac_install_sh="$ac_aux_dir/install.sh -c"
536    break
537  fi
538done
539if test -z "$ac_aux_dir"; then
540  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
541fi
542ac_config_guess=$ac_aux_dir/config.guess
543ac_config_sub=$ac_aux_dir/config.sub
544ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
545
546# Find a good install program.  We prefer a C program (faster),
547# so one script is as good as another.  But avoid the broken or
548# incompatible versions:
549# SysV /etc/install, /usr/sbin/install
550# SunOS /usr/etc/install
551# IRIX /sbin/install
552# AIX /bin/install
553# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
554# AFS /usr/afsws/bin/install, which mishandles nonexistent args
555# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
556# ./install, which can be erroneously created by make from ./install.sh.
557echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
558echo "configure:559: checking for a BSD compatible install" >&5
559if test -z "$INSTALL"; then
560if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
561  echo $ac_n "(cached) $ac_c" 1>&6
562else
563    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
564  for ac_dir in $PATH; do
565    # Account for people who put trailing slashes in PATH elements.
566    case "$ac_dir/" in
567    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
568    *)
569      # OSF1 and SCO ODT 3.0 have their own names for install.
570      # Don't use installbsd from OSF since it installs stuff as root
571      # by default.
572      for ac_prog in ginstall scoinst install; do
573        if test -f $ac_dir/$ac_prog; then
574	  if test $ac_prog = install &&
575            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
576	    # AIX install.  It has an incompatible calling convention.
577	    :
578	  else
579	    ac_cv_path_install="$ac_dir/$ac_prog -c"
580	    break 2
581	  fi
582	fi
583      done
584      ;;
585    esac
586  done
587  IFS="$ac_save_IFS"
588
589fi
590  if test "${ac_cv_path_install+set}" = set; then
591    INSTALL="$ac_cv_path_install"
592  else
593    # As a last resort, use the slow shell script.  We don't cache a
594    # path for INSTALL within a source directory, because that will
595    # break other packages using the cache if that directory is
596    # removed, or if the path is relative.
597    INSTALL="$ac_install_sh"
598  fi
599fi
600echo "$ac_t""$INSTALL" 1>&6
601
602# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
603# It thinks the first close brace ends the variable substitution.
604test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
605
606test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
607
608test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
609
610echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
611echo "configure:612: checking whether build environment is sane" >&5
612# Just in case
613sleep 1
614echo timestamp > conftestfile
615# Do `set' in a subshell so we don't clobber the current shell's
616# arguments.  Must try -L first in case configure is actually a
617# symlink; some systems play weird games with the mod time of symlinks
618# (eg FreeBSD returns the mod time of the symlink's containing
619# directory).
620if (
621   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
622   if test "$*" = "X"; then
623      # -L didn't work.
624      set X `ls -t $srcdir/configure conftestfile`
625   fi
626   if test "$*" != "X $srcdir/configure conftestfile" \
627      && test "$*" != "X conftestfile $srcdir/configure"; then
628
629      # If neither matched, then we have a broken ls.  This can happen
630      # if, for instance, CONFIG_SHELL is bash and it inherits a
631      # broken ls alias from the environment.  This has actually
632      # happened.  Such a system could not be considered "sane".
633      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
634alias in your environment" 1>&2; exit 1; }
635   fi
636
637   test "$2" = conftestfile
638   )
639then
640   # Ok.
641   :
642else
643   { echo "configure: error: newly created file is older than distributed files!
644Check your system clock" 1>&2; exit 1; }
645fi
646rm -f conftest*
647echo "$ac_t""yes" 1>&6
648if test "$program_transform_name" = s,x,x,; then
649  program_transform_name=
650else
651  # Double any \ or $.  echo might interpret backslashes.
652  cat <<\EOF_SED > conftestsed
653s,\\,\\\\,g; s,\$,$$,g
654EOF_SED
655  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
656  rm -f conftestsed
657fi
658test "$program_prefix" != NONE &&
659  program_transform_name="s,^,${program_prefix},; $program_transform_name"
660# Use a double $ so make ignores it.
661test "$program_suffix" != NONE &&
662  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
663
664# sed with no file args requires a program.
665test "$program_transform_name" = "" && program_transform_name="s,x,x,"
666
667echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
668echo "configure:669: checking whether ${MAKE-make} sets \${MAKE}" >&5
669set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
670if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
671  echo $ac_n "(cached) $ac_c" 1>&6
672else
673  cat > conftestmake <<\EOF
674all:
675	@echo 'ac_maketemp="${MAKE}"'
676EOF
677# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
678eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
679if test -n "$ac_maketemp"; then
680  eval ac_cv_prog_make_${ac_make}_set=yes
681else
682  eval ac_cv_prog_make_${ac_make}_set=no
683fi
684rm -f conftestmake
685fi
686if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
687  echo "$ac_t""yes" 1>&6
688  SET_MAKE=
689else
690  echo "$ac_t""no" 1>&6
691  SET_MAKE="MAKE=${MAKE-make}"
692fi
693
694
695PACKAGE=WindowMaker-extra
696
697VERSION=0.1
698
699if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
700  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
701fi
702cat >> confdefs.h <<EOF
703#define PACKAGE "$PACKAGE"
704EOF
705
706cat >> confdefs.h <<EOF
707#define VERSION "$VERSION"
708EOF
709
710
711
712missing_dir=`cd $ac_aux_dir && pwd`
713echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
714echo "configure:715: checking for working aclocal" >&5
715# Run test in a subshell; some versions of sh will print an error if
716# an executable is not found, even if stderr is redirected.
717# Redirect stdin to placate older versions of autoconf.  Sigh.
718if (aclocal --version) < /dev/null > /dev/null 2>&1; then
719   ACLOCAL=aclocal
720   echo "$ac_t""found" 1>&6
721else
722   ACLOCAL="$missing_dir/missing aclocal"
723   echo "$ac_t""missing" 1>&6
724fi
725
726echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
727echo "configure:728: checking for working autoconf" >&5
728# Run test in a subshell; some versions of sh will print an error if
729# an executable is not found, even if stderr is redirected.
730# Redirect stdin to placate older versions of autoconf.  Sigh.
731if (autoconf --version) < /dev/null > /dev/null 2>&1; then
732   AUTOCONF=autoconf
733   echo "$ac_t""found" 1>&6
734else
735   AUTOCONF="$missing_dir/missing autoconf"
736   echo "$ac_t""missing" 1>&6
737fi
738
739echo $ac_n "checking for working automake""... $ac_c" 1>&6
740echo "configure:741: checking for working automake" >&5
741# Run test in a subshell; some versions of sh will print an error if
742# an executable is not found, even if stderr is redirected.
743# Redirect stdin to placate older versions of autoconf.  Sigh.
744if (automake --version) < /dev/null > /dev/null 2>&1; then
745   AUTOMAKE=automake
746   echo "$ac_t""found" 1>&6
747else
748   AUTOMAKE="$missing_dir/missing automake"
749   echo "$ac_t""missing" 1>&6
750fi
751
752echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
753echo "configure:754: checking for working autoheader" >&5
754# Run test in a subshell; some versions of sh will print an error if
755# an executable is not found, even if stderr is redirected.
756# Redirect stdin to placate older versions of autoconf.  Sigh.
757if (autoheader --version) < /dev/null > /dev/null 2>&1; then
758   AUTOHEADER=autoheader
759   echo "$ac_t""found" 1>&6
760else
761   AUTOHEADER="$missing_dir/missing autoheader"
762   echo "$ac_t""missing" 1>&6
763fi
764
765echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
766echo "configure:767: checking for working makeinfo" >&5
767# Run test in a subshell; some versions of sh will print an error if
768# an executable is not found, even if stderr is redirected.
769# Redirect stdin to placate older versions of autoconf.  Sigh.
770if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
771   MAKEINFO=makeinfo
772   echo "$ac_t""found" 1>&6
773else
774   MAKEINFO="$missing_dir/missing makeinfo"
775   echo "$ac_t""missing" 1>&6
776fi
777
778
779
780# Check whether --with-iconsdir or --without-iconsdir was given.
781if test "${with_iconsdir+set}" = set; then
782  withval="$with_iconsdir"
783  :
784fi
785
786
787if test "x$with_iconsdir" != "x"; then
788	ICONSDIR=$with_iconsdir
789else
790	ICONSDIR='${datadir}/WindowMaker/Icons'
791fi
792
793
794
795
796trap '' 1 2 15
797cat > confcache <<\EOF
798# This file is a shell script that caches the results of configure
799# tests run on this system so they can be shared between configure
800# scripts and configure runs.  It is not useful on other systems.
801# If it contains results you don't want to keep, you may remove or edit it.
802#
803# By default, configure uses ./config.cache as the cache file,
804# creating it if it does not exist already.  You can give configure
805# the --cache-file=FILE option to use a different cache file; that is
806# what configure does when it calls configure scripts in
807# subdirectories, so they share the cache.
808# Giving --cache-file=/dev/null disables caching, for debugging configure.
809# config.status only pays attention to the cache file if you give it the
810# --recheck option to rerun configure.
811#
812EOF
813# The following way of writing the cache mishandles newlines in values,
814# but we know of no workaround that is simple, portable, and efficient.
815# So, don't put newlines in cache variables' values.
816# Ultrix sh set writes to stderr and can't be redirected directly,
817# and sets the high bit in the cache file unless we assign to the vars.
818(set) 2>&1 |
819  case `(ac_space=' '; set | grep ac_space) 2>&1` in
820  *ac_space=\ *)
821    # `set' does not quote correctly, so add quotes (double-quote substitution
822    # turns \\\\ into \\, and sed turns \\ into \).
823    sed -n \
824      -e "s/'/'\\\\''/g" \
825      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
826    ;;
827  *)
828    # `set' quotes correctly as required by POSIX, so do not add quotes.
829    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
830    ;;
831  esac >> confcache
832if cmp -s $cache_file confcache; then
833  :
834else
835  if test -w $cache_file; then
836    echo "updating cache $cache_file"
837    cat confcache > $cache_file
838  else
839    echo "not updating unwritable cache $cache_file"
840  fi
841fi
842rm -f confcache
843
844trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
845
846test "x$prefix" = xNONE && prefix=$ac_default_prefix
847# Let make expand exec_prefix.
848test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
849
850# Any assignment to VPATH causes Sun make to only execute
851# the first set of double-colon rules, so remove it if not needed.
852# If there is a colon in the path, we need to keep it.
853if test "x$srcdir" = x.; then
854  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
855fi
856
857trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
858
859# Transform confdefs.h into DEFS.
860# Protect against shell expansion while executing Makefile rules.
861# Protect against Makefile macro expansion.
862cat > conftest.defs <<\EOF
863s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
864s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
865s%\[%\\&%g
866s%\]%\\&%g
867s%\$%$$%g
868EOF
869DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
870rm -f conftest.defs
871
872
873# Without the "./", some shells look in PATH for config.status.
874: ${CONFIG_STATUS=./config.status}
875
876echo creating $CONFIG_STATUS
877rm -f $CONFIG_STATUS
878cat > $CONFIG_STATUS <<EOF
879#! /bin/sh
880# Generated automatically by configure.
881# Run this file to recreate the current configuration.
882# This directory was configured as follows,
883# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
884#
885# $0 $ac_configure_args
886#
887# Compiler output produced by configure, useful for debugging
888# configure, is in ./config.log if it exists.
889
890ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
891for ac_option
892do
893  case "\$ac_option" in
894  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
895    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
896    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
897  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
898    echo "$CONFIG_STATUS generated by autoconf version 2.13"
899    exit 0 ;;
900  -help | --help | --hel | --he | --h)
901    echo "\$ac_cs_usage"; exit 0 ;;
902  *) echo "\$ac_cs_usage"; exit 1 ;;
903  esac
904done
905
906ac_given_srcdir=$srcdir
907ac_given_INSTALL="$INSTALL"
908
909trap 'rm -fr `echo "Makefile Icons/Makefile \
910	Themes/Makefile \
911	Themes/Night.themed/Makefile \
912	Themes/LeetWM.themed/Makefile \
913	Themes/Checker.themed/Makefile \
914	Themes/STEP2000.themed/Makefile " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
915EOF
916cat >> $CONFIG_STATUS <<EOF
917
918# Protect against being on the right side of a sed subst in config.status.
919sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
920 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
921$ac_vpsub
922$extrasub
923s%@SHELL@%$SHELL%g
924s%@CFLAGS@%$CFLAGS%g
925s%@CPPFLAGS@%$CPPFLAGS%g
926s%@CXXFLAGS@%$CXXFLAGS%g
927s%@FFLAGS@%$FFLAGS%g
928s%@DEFS@%$DEFS%g
929s%@LDFLAGS@%$LDFLAGS%g
930s%@LIBS@%$LIBS%g
931s%@exec_prefix@%$exec_prefix%g
932s%@prefix@%$prefix%g
933s%@program_transform_name@%$program_transform_name%g
934s%@bindir@%$bindir%g
935s%@sbindir@%$sbindir%g
936s%@libexecdir@%$libexecdir%g
937s%@datadir@%$datadir%g
938s%@sysconfdir@%$sysconfdir%g
939s%@sharedstatedir@%$sharedstatedir%g
940s%@localstatedir@%$localstatedir%g
941s%@libdir@%$libdir%g
942s%@includedir@%$includedir%g
943s%@oldincludedir@%$oldincludedir%g
944s%@infodir@%$infodir%g
945s%@mandir@%$mandir%g
946s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
947s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
948s%@INSTALL_DATA@%$INSTALL_DATA%g
949s%@PACKAGE@%$PACKAGE%g
950s%@VERSION@%$VERSION%g
951s%@ACLOCAL@%$ACLOCAL%g
952s%@AUTOCONF@%$AUTOCONF%g
953s%@AUTOMAKE@%$AUTOMAKE%g
954s%@AUTOHEADER@%$AUTOHEADER%g
955s%@MAKEINFO@%$MAKEINFO%g
956s%@SET_MAKE@%$SET_MAKE%g
957s%@ICONSDIR@%$ICONSDIR%g
958
959CEOF
960EOF
961
962cat >> $CONFIG_STATUS <<\EOF
963
964# Split the substitutions into bite-sized pieces for seds with
965# small command number limits, like on Digital OSF/1 and HP-UX.
966ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
967ac_file=1 # Number of current file.
968ac_beg=1 # First line for current file.
969ac_end=$ac_max_sed_cmds # Line after last line for current file.
970ac_more_lines=:
971ac_sed_cmds=""
972while $ac_more_lines; do
973  if test $ac_beg -gt 1; then
974    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
975  else
976    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
977  fi
978  if test ! -s conftest.s$ac_file; then
979    ac_more_lines=false
980    rm -f conftest.s$ac_file
981  else
982    if test -z "$ac_sed_cmds"; then
983      ac_sed_cmds="sed -f conftest.s$ac_file"
984    else
985      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
986    fi
987    ac_file=`expr $ac_file + 1`
988    ac_beg=$ac_end
989    ac_end=`expr $ac_end + $ac_max_sed_cmds`
990  fi
991done
992if test -z "$ac_sed_cmds"; then
993  ac_sed_cmds=cat
994fi
995EOF
996
997cat >> $CONFIG_STATUS <<EOF
998
999CONFIG_FILES=\${CONFIG_FILES-"Makefile Icons/Makefile \
1000	Themes/Makefile \
1001	Themes/Night.themed/Makefile \
1002	Themes/LeetWM.themed/Makefile \
1003	Themes/Checker.themed/Makefile \
1004	Themes/STEP2000.themed/Makefile "}
1005EOF
1006cat >> $CONFIG_STATUS <<\EOF
1007for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1008  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1009  case "$ac_file" in
1010  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1011       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1012  *) ac_file_in="${ac_file}.in" ;;
1013  esac
1014
1015  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1016
1017  # Remove last slash and all that follows it.  Not all systems have dirname.
1018  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1019  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1020    # The file is in a subdirectory.
1021    test ! -d "$ac_dir" && mkdir "$ac_dir"
1022    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1023    # A "../" for each directory in $ac_dir_suffix.
1024    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1025  else
1026    ac_dir_suffix= ac_dots=
1027  fi
1028
1029  case "$ac_given_srcdir" in
1030  .)  srcdir=.
1031      if test -z "$ac_dots"; then top_srcdir=.
1032      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1033  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1034  *) # Relative path.
1035    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1036    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1037  esac
1038
1039  case "$ac_given_INSTALL" in
1040  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1041  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1042  esac
1043
1044  echo creating "$ac_file"
1045  rm -f "$ac_file"
1046  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1047  case "$ac_file" in
1048  *Makefile*) ac_comsub="1i\\
1049# $configure_input" ;;
1050  *) ac_comsub= ;;
1051  esac
1052
1053  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1054  sed -e "$ac_comsub
1055s%@configure_input@%$configure_input%g
1056s%@srcdir@%$srcdir%g
1057s%@top_srcdir@%$top_srcdir%g
1058s%@INSTALL@%$INSTALL%g
1059" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1060fi; done
1061rm -f conftest.s*
1062
1063EOF
1064cat >> $CONFIG_STATUS <<EOF
1065
1066EOF
1067cat >> $CONFIG_STATUS <<\EOF
1068
1069exit 0
1070EOF
1071chmod +x $CONFIG_STATUS
1072rm -fr confdefs* $ac_clean_files
1073test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1074
1075
1076
1077