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