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="asmail-2.1"
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 sys/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
2160for ac_hdr in pthread.h
2161do
2162ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2163echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2164echo "configure:2165: checking for $ac_hdr" >&5
2165if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2166  echo $ac_n "(cached) $ac_c" 1>&6
2167else
2168  cat > conftest.$ac_ext <<EOF
2169#line 2170 "configure"
2170#include "confdefs.h"
2171#include <$ac_hdr>
2172EOF
2173ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2174{ (eval echo configure:2175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2175ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2176if test -z "$ac_err"; then
2177  rm -rf conftest*
2178  eval "ac_cv_header_$ac_safe=yes"
2179else
2180  echo "$ac_err" >&5
2181  echo "configure: failed program was:" >&5
2182  cat conftest.$ac_ext >&5
2183  rm -rf conftest*
2184  eval "ac_cv_header_$ac_safe=no"
2185fi
2186rm -f conftest*
2187fi
2188if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2189  echo "$ac_t""yes" 1>&6
2190    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2191  cat >> confdefs.h <<EOF
2192#define $ac_tr_hdr 1
2193EOF
2194
2195else
2196  echo "$ac_t""no" 1>&6
2197fi
2198done
2199
2200for ac_hdr in openssl/ssl.h
2201do
2202ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2203echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2204echo "configure:2205: checking for $ac_hdr" >&5
2205if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2206  echo $ac_n "(cached) $ac_c" 1>&6
2207else
2208  cat > conftest.$ac_ext <<EOF
2209#line 2210 "configure"
2210#include "confdefs.h"
2211#include <$ac_hdr>
2212EOF
2213ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2214{ (eval echo configure:2215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2215ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2216if test -z "$ac_err"; then
2217  rm -rf conftest*
2218  eval "ac_cv_header_$ac_safe=yes"
2219else
2220  echo "$ac_err" >&5
2221  echo "configure: failed program was:" >&5
2222  cat conftest.$ac_ext >&5
2223  rm -rf conftest*
2224  eval "ac_cv_header_$ac_safe=no"
2225fi
2226rm -f conftest*
2227fi
2228if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2229  echo "$ac_t""yes" 1>&6
2230    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2231  cat >> confdefs.h <<EOF
2232#define $ac_tr_hdr 1
2233EOF
2234
2235else
2236  echo "$ac_t""no" 1>&6
2237fi
2238done
2239
2240
2241
2242
2243saved_cflags="$CFLAGS"
2244saved_ldflags="$LDFLAGS"
2245
2246CFLAGS="$CFLAGS $X_CFLAGS"
2247LDFLAGS="$LDFLAGS $X_LDFLAGS $X_LIBS"
2248
2249x_libs="$X_EXTRA_LIBS $X_PRE_LIBS"
2250echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
2251echo "configure:2252: checking for XOpenDisplay in -lX11" >&5
2252ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
2253if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2254  echo $ac_n "(cached) $ac_c" 1>&6
2255else
2256  ac_save_LIBS="$LIBS"
2257LIBS="-lX11 $x_libs $LIBS"
2258cat > conftest.$ac_ext <<EOF
2259#line 2260 "configure"
2260#include "confdefs.h"
2261/* Override any gcc2 internal prototype to avoid an error.  */
2262/* We use char because int might match the return type of a gcc2
2263    builtin and then its argument prototype would still apply.  */
2264char XOpenDisplay();
2265
2266int main() {
2267XOpenDisplay()
2268; return 0; }
2269EOF
2270if { (eval echo configure:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2271  rm -rf conftest*
2272  eval "ac_cv_lib_$ac_lib_var=yes"
2273else
2274  echo "configure: failed program was:" >&5
2275  cat conftest.$ac_ext >&5
2276  rm -rf conftest*
2277  eval "ac_cv_lib_$ac_lib_var=no"
2278fi
2279rm -f conftest*
2280LIBS="$ac_save_LIBS"
2281
2282fi
2283if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2284  echo "$ac_t""yes" 1>&6
2285  x_libs="-lX11 $x_libs"
2286else
2287  echo "$ac_t""no" 1>&6
2288fi
2289
2290
2291
2292
2293
2294
2295# Initialize some more variables set by options.
2296# The variables have the same names as the options, with
2297# dashes changed to underlines.
2298
2299# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
2300# paths, otherwise set no_xpm=yes.
2301# Uses ac_ vars as temps to allow command line to override cache and checks.
2302echo $ac_n "checking for libXpm""... $ac_c" 1>&6
2303echo "configure:2304: checking for libXpm" >&5
2304
2305# Check whether --with-xpm_includes or --without-xpm_includes was given.
2306if test "${with_xpm_includes+set}" = set; then
2307  withval="$with_xpm_includes"
2308  xpm_includes="$withval"
2309else
2310  xpm_includes=NO
2311fi
2312
2313# Check whether --with-xpm_library or --without-xpm_library was given.
2314if test "${with_xpm_library+set}" = set; then
2315  withval="$with_xpm_library"
2316  xpm_libraries="$withval"
2317else
2318  xpm_libraries=NO
2319fi
2320
2321
2322# --without-xpm overrides everything else, but does not touch the cache.
2323# Check whether --with-xpm or --without-xpm was given.
2324if test "${with_xpm+set}" = set; then
2325  withval="$with_xpm"
2326  :
2327fi
2328
2329if test "$with_xpm" = no; then
2330  have_xpm=disabled
2331else
2332  if eval "test \"`echo '$''{'ac_cv_have_xpm'+set}'`\" = set"; then
2333  echo $ac_n "(cached) $ac_c" 1>&6
2334else
2335
2336  vt_xpm_include_X11=no
2337  if test -n "$xpm_includes"; then
2338    vt_xpm_includes=$xpm_includes
2339  else
2340    vt_xpm_includes=NO
2341  fi
2342  if test -n "$xpm_libraries"; then
2343    vt_xpm_libraries=$xpm_libraries
2344  else
2345    vt_xpm_libraries=NO
2346  fi
2347
2348  if test "$vt_xpm_includes" = NO; then
2349  # Guess where to find xpm.h
2350
2351  # First, try using that file with no special directory specified.
2352cat > conftest.$ac_ext <<EOF
2353#line 2354 "configure"
2354#include "confdefs.h"
2355#include <X11/xpm.h>
2356EOF
2357ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2358{ (eval echo configure:2359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2359ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2360if test -z "$ac_err"; then
2361  rm -rf conftest*
2362  # We can compile using X headers with no special include directory.
2363vt_xpm_includes=
2364vt_xpm_include_X11=yes
2365else
2366  echo "$ac_err" >&5
2367  echo "configure: failed program was:" >&5
2368  cat conftest.$ac_ext >&5
2369  rm -rf conftest*
2370  # Look for the header file in a standard set of common directories.
2371  for ac_dir in               \
2372    /usr/X11/include          \
2373    /usr/X11R6/include        \
2374    /usr/X11R5/include        \
2375    /usr/X11R4/include        \
2376                              \
2377    /usr/include/X11          \
2378    /usr/include/X11R6        \
2379    /usr/include/X11R5        \
2380    /usr/include/X11R4        \
2381                              \
2382    /usr/local/X11/include    \
2383    /usr/local/X11R6/include  \
2384    /usr/local/X11R5/include  \
2385    /usr/local/X11R4/include  \
2386                              \
2387    /usr/local/include/X11    \
2388    /usr/local/include/X11R6  \
2389    /usr/local/include/X11R5  \
2390    /usr/local/include/X11R4  \
2391                              \
2392    /usr/X386/include         \
2393    /usr/x386/include         \
2394    /usr/XFree86/include/X11  \
2395                              \
2396    /usr/include              \
2397    /usr/local/include        \
2398    /usr/unsupported/include  \
2399    /usr/athena/include       \
2400    /usr/local/x11r5/include  \
2401    /usr/lpp/Xamples/include  \
2402                              \
2403    /usr/openwin/include      \
2404    /usr/openwin/share/include \
2405    ; \
2406  do
2407    if test -r "$ac_dir/X11/xpm.h"; then
2408      vt_xpm_includes="$ac_dir"
2409      vt_xpm_include_X11=yes
2410      break
2411# Albert@dma.be: does not make sense because we #include <X11/xpm.h>
2412#    else
2413#      if test -r "$ac_dir/xpm.h"; then
2414#        vt_xpm_includes=$ac_dir
2415#        break
2416#      fi
2417    fi
2418  done
2419fi
2420rm -f conftest*
2421fi
2422
2423if test "$vt_xpm_libraries" = NO; then
2424  # Check for the libraries.
2425
2426  # See if we find them without any special options.
2427  # Don't add to $LIBS permanently.
2428  ac_save_LIBS="$LIBS"
2429  LIBS="-lXpm $LIBS"
2430cat > conftest.$ac_ext <<EOF
2431#line 2432 "configure"
2432#include "confdefs.h"
2433
2434int main() {
2435XpmReadFileToPixmap()
2436; return 0; }
2437EOF
2438if { (eval echo configure:2439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2439  rm -rf conftest*
2440  LIBS="$ac_save_LIBS"
2441# We can link libXpm with no special library path.
2442vt_xpm_libraries=
2443else
2444  echo "configure: failed program was:" >&5
2445  cat conftest.$ac_ext >&5
2446  rm -rf conftest*
2447  LIBS="$ac_save_LIBS"
2448# First see if replacing the include by lib works.
2449for ac_dir in \
2450    `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
2451    /usr/X11/lib          \
2452    /usr/X11R6/lib        \
2453    /usr/X11R5/lib        \
2454    /usr/X11R4/lib        \
2455                          \
2456    /usr/lib/X11          \
2457    /usr/lib/X11R6        \
2458    /usr/lib/X11R5        \
2459    /usr/lib/X11R4        \
2460                          \
2461    /usr/local/X11/lib    \
2462    /usr/local/X11R6/lib  \
2463    /usr/local/X11R5/lib  \
2464    /usr/local/X11R4/lib  \
2465                          \
2466    /usr/local/lib/X11    \
2467    /usr/local/lib/X11R6  \
2468    /usr/local/lib/X11R5  \
2469    /usr/local/lib/X11R4  \
2470                          \
2471    /usr/X386/lib         \
2472    /usr/x386/lib         \
2473    /usr/XFree86/lib/X11  \
2474                          \
2475    /usr/lib              \
2476    /usr/local/lib        \
2477    /usr/unsupported/lib  \
2478    /usr/athena/lib       \
2479    /usr/local/x11r5/lib  \
2480    /usr/lpp/Xamples/lib  \
2481                          \
2482    /usr/openwin/lib      \
2483    /usr/openwin/share/lib \
2484    ; \
2485do
2486  for ac_extension in a so sl; do
2487    if test -r $ac_dir/libXpm.$ac_extension; then
2488      vt_xpm_libraries=$ac_dir
2489      break 2
2490    fi
2491  done
2492done
2493fi
2494rm -f conftest*
2495fi
2496
2497
2498  if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
2499    ac_cv_have_xpm="have_xpm=no"
2500  else
2501    ac_cv_have_xpm="have_xpm=yes \
2502        vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
2503	vt_xpm_include_X11=$vt_xpm_include_X11"
2504  fi
2505fi
2506  eval "$ac_cv_have_xpm"
2507fi
2508
2509if test "$have_xpm" != yes; then
2510  echo "$ac_t""$have_xpm" 1>&6
2511  no_xpm=yes
2512else
2513  if test "$xpm_includes" != NO; then
2514    if test "$xpm_includes" != "$vt_xpm_includes"; then
2515      vt_xpm_include_X11=no
2516      if test -z "$xpm_includes"; then
2517	cat > conftest.$ac_ext <<EOF
2518#line 2519 "configure"
2519#include "confdefs.h"
2520#include <X11/xpm.h>
2521EOF
2522ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2523{ (eval echo configure:2524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2524ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2525if test -z "$ac_err"; then
2526  rm -rf conftest*
2527  vt_xpm_include_X11=yes
2528else
2529  echo "$ac_err" >&5
2530  echo "configure: failed program was:" >&5
2531  cat conftest.$ac_ext >&5
2532fi
2533rm -f conftest*
2534      else
2535        if test -r "$xpm_includes/X11/xpm.h"; then
2536	  vt_xpm_include_X11=yes
2537        fi
2538      fi
2539    fi
2540    vt_xpm_includes=$xpm_includes
2541  fi
2542  if test "x$xpm_libraries" != xNO; then
2543    vt_xpm_libraries=$xpm_libraries
2544  fi
2545  # Update the cache value to reflect the command line values.
2546  ac_cv_have_xpm="have_xpm=yes \
2547	vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
2548	vt_xpm_include_X11=$vt_xpm_include_X11"
2549  eval "$ac_cv_have_xpm"
2550  echo "$ac_t""-I$vt_xpm_includes, -L$vt_xpm_libraries" 1>&6
2551  if test -n "$vt_xpm_includes"; then
2552    HAVEXPM="NOXPM"
2553  else
2554    HAVEXPM="XPM"
2555  fi
2556  if test -n "$vt_xpm_includes"; then
2557    XPM_CFLAGS="-I$vt_xpm_includes"
2558  fi
2559  XPM_LIBS="-lXpm"
2560  if test -n "$vt_xpm_libraries"; then
2561    XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
2562  fi
2563fi
2564
2565
2566
2567
2568
2569HAVEXPM="NOXPM"
2570if test "x$have_xpm" = "xyes"; then
2571  HAVEXPM="XPM"
2572  x_libs="$x_libs $XPM_LIBS"
2573fi
2574for x in $X_CFLAGS; do
2575  XPM_CFLAGS=`echo " $XPM_CFLAGS " | sed "s@ $x @ @"`
2576done
2577
2578
2579HAVESHAPE="NOSHAPE"
2580if test "x$enable_shaping" = "xyes"; then
2581  echo $ac_n "checking for XShapeCombineMask in -lXext""... $ac_c" 1>&6
2582echo "configure:2583: checking for XShapeCombineMask in -lXext" >&5
2583ac_lib_var=`echo Xext'_'XShapeCombineMask | sed 'y%./+-%__p_%'`
2584if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2585  echo $ac_n "(cached) $ac_c" 1>&6
2586else
2587  ac_save_LIBS="$LIBS"
2588LIBS="-lXext $x_libs $LIBS"
2589cat > conftest.$ac_ext <<EOF
2590#line 2591 "configure"
2591#include "confdefs.h"
2592/* Override any gcc2 internal prototype to avoid an error.  */
2593/* We use char because int might match the return type of a gcc2
2594    builtin and then its argument prototype would still apply.  */
2595char XShapeCombineMask();
2596
2597int main() {
2598XShapeCombineMask()
2599; return 0; }
2600EOF
2601if { (eval echo configure:2602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2602  rm -rf conftest*
2603  eval "ac_cv_lib_$ac_lib_var=yes"
2604else
2605  echo "configure: failed program was:" >&5
2606  cat conftest.$ac_ext >&5
2607  rm -rf conftest*
2608  eval "ac_cv_lib_$ac_lib_var=no"
2609fi
2610rm -f conftest*
2611LIBS="$ac_save_LIBS"
2612
2613fi
2614if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2615  echo "$ac_t""yes" 1>&6
2616  x_libs="$x_libs -lXext" HAVESHAPE="SHAPE"
2617else
2618  echo "$ac_t""no" 1>&6
2619fi
2620
2621fi
2622
2623CFLAGS="$saved_cflags"
2624LDFLAGS="$saved_ldflags"
2625
2626
2627HAVEJPEG="NOJPEG"
2628if test "x$enable_jpeg" = "xyes"; then
2629  echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
2630echo "configure:2631: checking for jpeg_destroy_compress in -ljpeg" >&5
2631ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
2632if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2633  echo $ac_n "(cached) $ac_c" 1>&6
2634else
2635  ac_save_LIBS="$LIBS"
2636LIBS="-ljpeg  $LIBS"
2637cat > conftest.$ac_ext <<EOF
2638#line 2639 "configure"
2639#include "confdefs.h"
2640/* Override any gcc2 internal prototype to avoid an error.  */
2641/* We use char because int might match the return type of a gcc2
2642    builtin and then its argument prototype would still apply.  */
2643char jpeg_destroy_compress();
2644
2645int main() {
2646jpeg_destroy_compress()
2647; return 0; }
2648EOF
2649if { (eval echo configure:2650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2650  rm -rf conftest*
2651  eval "ac_cv_lib_$ac_lib_var=yes"
2652else
2653  echo "configure: failed program was:" >&5
2654  cat conftest.$ac_ext >&5
2655  rm -rf conftest*
2656  eval "ac_cv_lib_$ac_lib_var=no"
2657fi
2658rm -f conftest*
2659LIBS="$ac_save_LIBS"
2660
2661fi
2662if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2663  echo "$ac_t""yes" 1>&6
2664  JPEG_LIB="-ljpeg" HAVEJPEG="JPEG"
2665else
2666  echo "$ac_t""no" 1>&6
2667fi
2668
2669fi
2670
2671echo $ac_n "checking for pthread_create in -pthread""... $ac_c" 1>&6
2672echo "configure:2673: checking for pthread_create in -pthread" >&5
2673ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2674if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2675  echo $ac_n "(cached) $ac_c" 1>&6
2676else
2677  ac_save_LIBS="$LIBS"
2678LIBS="-pthread  $LIBS"
2679cat > conftest.$ac_ext <<EOF
2680#line 2681 "configure"
2681#include "confdefs.h"
2682/* Override any gcc2 internal prototype to avoid an error.  */
2683/* We use char because int might match the return type of a gcc2
2684    builtin and then its argument prototype would still apply.  */
2685char pthread_create();
2686
2687int main() {
2688pthread_create()
2689; return 0; }
2690EOF
2691if { (eval echo configure:2692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2692  rm -rf conftest*
2693  eval "ac_cv_lib_$ac_lib_var=yes"
2694else
2695  echo "configure: failed program was:" >&5
2696  cat conftest.$ac_ext >&5
2697  rm -rf conftest*
2698  eval "ac_cv_lib_$ac_lib_var=no"
2699fi
2700rm -f conftest*
2701LIBS="$ac_save_LIBS"
2702
2703fi
2704if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2705  echo "$ac_t""yes" 1>&6
2706  PTHREAD_LIB="-pthread" HAVEPTHREAD="PTHREAD"
2707else
2708  echo "$ac_t""no" 1>&6
2709fi
2710
2711
2712HAVESSL=""
2713echo $ac_n "checking for SSL_CTX_new in -lssl""... $ac_c" 1>&6
2714echo "configure:2715: checking for SSL_CTX_new in -lssl" >&5
2715ac_lib_var=`echo ssl'_'SSL_CTX_new | sed 'y%./+-%__p_%'`
2716if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2717  echo $ac_n "(cached) $ac_c" 1>&6
2718else
2719  ac_save_LIBS="$LIBS"
2720LIBS="-lssl  $LIBS"
2721cat > conftest.$ac_ext <<EOF
2722#line 2723 "configure"
2723#include "confdefs.h"
2724/* Override any gcc2 internal prototype to avoid an error.  */
2725/* We use char because int might match the return type of a gcc2
2726    builtin and then its argument prototype would still apply.  */
2727char SSL_CTX_new();
2728
2729int main() {
2730SSL_CTX_new()
2731; return 0; }
2732EOF
2733if { (eval echo configure:2734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2734  rm -rf conftest*
2735  eval "ac_cv_lib_$ac_lib_var=yes"
2736else
2737  echo "configure: failed program was:" >&5
2738  cat conftest.$ac_ext >&5
2739  rm -rf conftest*
2740  eval "ac_cv_lib_$ac_lib_var=no"
2741fi
2742rm -f conftest*
2743LIBS="$ac_save_LIBS"
2744
2745fi
2746if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2747  echo "$ac_t""yes" 1>&6
2748  SSL_LIB="-lssl" HAVESSL="-lssl"
2749else
2750  echo "$ac_t""no" 1>&6
2751fi
2752
2753MD5_OBJ=""
2754if test "x$HAVESSL" = "x"; then
2755	MD5_OBJ="md5c.o"
2756fi
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778MAKEFILEDEFINES=./autoconf/Makefile.defines
2779MAKEFILECOMMON=./autoconf/Makefile.common
2780MAKEFILECOMMONLIB=./autoconf/Makefile.common.lib
2781
2782
2783
2784
2785
2786trap '' 1 2 15
2787cat > confcache <<\EOF
2788# This file is a shell script that caches the results of configure
2789# tests run on this system so they can be shared between configure
2790# scripts and configure runs.  It is not useful on other systems.
2791# If it contains results you don't want to keep, you may remove or edit it.
2792#
2793# By default, configure uses ./config.cache as the cache file,
2794# creating it if it does not exist already.  You can give configure
2795# the --cache-file=FILE option to use a different cache file; that is
2796# what configure does when it calls configure scripts in
2797# subdirectories, so they share the cache.
2798# Giving --cache-file=/dev/null disables caching, for debugging configure.
2799# config.status only pays attention to the cache file if you give it the
2800# --recheck option to rerun configure.
2801#
2802EOF
2803# The following way of writing the cache mishandles newlines in values,
2804# but we know of no workaround that is simple, portable, and efficient.
2805# So, don't put newlines in cache variables' values.
2806# Ultrix sh set writes to stderr and can't be redirected directly,
2807# and sets the high bit in the cache file unless we assign to the vars.
2808(set) 2>&1 |
2809  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2810  *ac_space=\ *)
2811    # `set' does not quote correctly, so add quotes (double-quote substitution
2812    # turns \\\\ into \\, and sed turns \\ into \).
2813    sed -n \
2814      -e "s/'/'\\\\''/g" \
2815      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2816    ;;
2817  *)
2818    # `set' quotes correctly as required by POSIX, so do not add quotes.
2819    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2820    ;;
2821  esac >> confcache
2822if cmp -s $cache_file confcache; then
2823  :
2824else
2825  if test -w $cache_file; then
2826    echo "updating cache $cache_file"
2827    cat confcache > $cache_file
2828  else
2829    echo "not updating unwritable cache $cache_file"
2830  fi
2831fi
2832rm -f confcache
2833
2834trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2835
2836test "x$prefix" = xNONE && prefix=$ac_default_prefix
2837# Let make expand exec_prefix.
2838test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2839
2840# Any assignment to VPATH causes Sun make to only execute
2841# the first set of double-colon rules, so remove it if not needed.
2842# If there is a colon in the path, we need to keep it.
2843if test "x$srcdir" = x.; then
2844  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
2845fi
2846
2847trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2848
2849DEFS=-DHAVE_CONFIG_H
2850
2851# Without the "./", some shells look in PATH for config.status.
2852: ${CONFIG_STATUS=./config.status}
2853
2854echo creating $CONFIG_STATUS
2855rm -f $CONFIG_STATUS
2856cat > $CONFIG_STATUS <<EOF
2857#! /bin/sh
2858# Generated automatically by configure.
2859# Run this file to recreate the current configuration.
2860# This directory was configured as follows,
2861# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2862#
2863# $0 $ac_configure_args
2864#
2865# Compiler output produced by configure, useful for debugging
2866# configure, is in ./config.log if it exists.
2867
2868ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2869for ac_option
2870do
2871  case "\$ac_option" in
2872  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2873    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2874    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2875  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2876    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2877    exit 0 ;;
2878  -help | --help | --hel | --he | --h)
2879    echo "\$ac_cs_usage"; exit 0 ;;
2880  *) echo "\$ac_cs_usage"; exit 1 ;;
2881  esac
2882done
2883
2884ac_given_srcdir=$srcdir
2885ac_given_INSTALL="$INSTALL"
2886
2887trap 'rm -fr `echo "\
2888autoconf/Makefile.defines \
2889autoconf/Makefile.common \
2890autoconf/Makefile.common.lib \
2891Makefile
2892 config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2893EOF
2894cat >> $CONFIG_STATUS <<EOF
2895
2896# Protect against being on the right side of a sed subst in config.status.
2897sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2898 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2899$ac_vpsub
2900$extrasub
2901s%@SHELL@%$SHELL%g
2902s%@CFLAGS@%$CFLAGS%g
2903s%@CPPFLAGS@%$CPPFLAGS%g
2904s%@CXXFLAGS@%$CXXFLAGS%g
2905s%@FFLAGS@%$FFLAGS%g
2906s%@DEFS@%$DEFS%g
2907s%@LDFLAGS@%$LDFLAGS%g
2908s%@LIBS@%$LIBS%g
2909s%@exec_prefix@%$exec_prefix%g
2910s%@prefix@%$prefix%g
2911s%@program_transform_name@%$program_transform_name%g
2912s%@bindir@%$bindir%g
2913s%@sbindir@%$sbindir%g
2914s%@libexecdir@%$libexecdir%g
2915s%@datadir@%$datadir%g
2916s%@sysconfdir@%$sysconfdir%g
2917s%@sharedstatedir@%$sharedstatedir%g
2918s%@localstatedir@%$localstatedir%g
2919s%@libdir@%$libdir%g
2920s%@includedir@%$includedir%g
2921s%@oldincludedir@%$oldincludedir%g
2922s%@infodir@%$infodir%g
2923s%@mandir@%$mandir%g
2924s%@CC@%$CC%g
2925s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2926s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2927s%@INSTALL_DATA@%$INSTALL_DATA%g
2928s%@RANLIB@%$RANLIB%g
2929s%@RM@%$RM%g
2930s%@MV@%$MV%g
2931s%@CP@%$CP%g
2932s%@MKDIR@%$MKDIR%g
2933s%@STRIP@%$STRIP%g
2934s%@CPP@%$CPP%g
2935s%@X_CFLAGS@%$X_CFLAGS%g
2936s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2937s%@X_LIBS@%$X_LIBS%g
2938s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2939s%@HAVEXPM@%$HAVEXPM%g
2940s%@XPM_CFLAGS@%$XPM_CFLAGS%g
2941s%@XPM_LIBS@%$XPM_LIBS%g
2942s%@version@%$version%g
2943s%@with_locale@%$with_locale%g
2944s%@HAVESHAPE@%$HAVESHAPE%g
2945s%@HAVEJPEG@%$HAVEJPEG%g
2946s%@x_libs@%$x_libs%g
2947s%@x_includes@%$x_includes%g
2948s%@XEXT_LIB@%$XEXT_LIB%g
2949s%@JPEG_LIB@%$JPEG_LIB%g
2950s%@with_gnustep_dir@%$with_gnustep_dir%g
2951s%@with_gnustep_lib@%$with_gnustep_lib%g
2952s%@with_afterdir@%$with_afterdir%g
2953s%@HAVESSL@%$HAVESSL%g
2954s%@MD5_OBJ@%$MD5_OBJ%g
2955/@MAKEFILEDEFINES@/r $MAKEFILEDEFINES
2956s%@MAKEFILEDEFINES@%%g
2957/@MAKEFILECOMMON@/r $MAKEFILECOMMON
2958s%@MAKEFILECOMMON@%%g
2959/@MAKEFILECOMMONLIB@/r $MAKEFILECOMMONLIB
2960s%@MAKEFILECOMMONLIB@%%g
2961
2962CEOF
2963EOF
2964
2965cat >> $CONFIG_STATUS <<\EOF
2966
2967# Split the substitutions into bite-sized pieces for seds with
2968# small command number limits, like on Digital OSF/1 and HP-UX.
2969ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2970ac_file=1 # Number of current file.
2971ac_beg=1 # First line for current file.
2972ac_end=$ac_max_sed_cmds # Line after last line for current file.
2973ac_more_lines=:
2974ac_sed_cmds=""
2975while $ac_more_lines; do
2976  if test $ac_beg -gt 1; then
2977    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2978  else
2979    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2980  fi
2981  if test ! -s conftest.s$ac_file; then
2982    ac_more_lines=false
2983    rm -f conftest.s$ac_file
2984  else
2985    if test -z "$ac_sed_cmds"; then
2986      ac_sed_cmds="sed -f conftest.s$ac_file"
2987    else
2988      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2989    fi
2990    ac_file=`expr $ac_file + 1`
2991    ac_beg=$ac_end
2992    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2993  fi
2994done
2995if test -z "$ac_sed_cmds"; then
2996  ac_sed_cmds=cat
2997fi
2998EOF
2999
3000cat >> $CONFIG_STATUS <<EOF
3001
3002CONFIG_FILES=\${CONFIG_FILES-"\
3003autoconf/Makefile.defines \
3004autoconf/Makefile.common \
3005autoconf/Makefile.common.lib \
3006Makefile
3007"}
3008EOF
3009cat >> $CONFIG_STATUS <<\EOF
3010for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3011  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3012  case "$ac_file" in
3013  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3014       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3015  *) ac_file_in="${ac_file}.in" ;;
3016  esac
3017
3018  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3019
3020  # Remove last slash and all that follows it.  Not all systems have dirname.
3021  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3022  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3023    # The file is in a subdirectory.
3024    test ! -d "$ac_dir" && mkdir "$ac_dir"
3025    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3026    # A "../" for each directory in $ac_dir_suffix.
3027    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3028  else
3029    ac_dir_suffix= ac_dots=
3030  fi
3031
3032  case "$ac_given_srcdir" in
3033  .)  srcdir=.
3034      if test -z "$ac_dots"; then top_srcdir=.
3035      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3036  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3037  *) # Relative path.
3038    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3039    top_srcdir="$ac_dots$ac_given_srcdir" ;;
3040  esac
3041
3042  case "$ac_given_INSTALL" in
3043  [/$]*) INSTALL="$ac_given_INSTALL" ;;
3044  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3045  esac
3046
3047  echo creating "$ac_file"
3048  rm -f "$ac_file"
3049  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3050  case "$ac_file" in
3051  *Makefile*) ac_comsub="1i\\
3052# $configure_input" ;;
3053  *) ac_comsub= ;;
3054  esac
3055
3056  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3057  sed -e "$ac_comsub
3058s%@configure_input@%$configure_input%g
3059s%@srcdir@%$srcdir%g
3060s%@top_srcdir@%$top_srcdir%g
3061s%@INSTALL@%$INSTALL%g
3062" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3063fi; done
3064rm -f conftest.s*
3065
3066# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3067# NAME is the cpp macro being defined and VALUE is the value it is being given.
3068#
3069# ac_d sets the value in "#define NAME VALUE" lines.
3070ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
3071ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
3072ac_dC='\3'
3073ac_dD='%g'
3074# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3075ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
3076ac_uB='\([ 	]\)%\1#\2define\3'
3077ac_uC=' '
3078ac_uD='\4%g'
3079# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3080ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
3081ac_eB='$%\1#\2define\3'
3082ac_eC=' '
3083ac_eD='%g'
3084
3085if test "${CONFIG_HEADERS+set}" != set; then
3086EOF
3087cat >> $CONFIG_STATUS <<EOF
3088  CONFIG_HEADERS="config.h:autoconf/config.h.in"
3089EOF
3090cat >> $CONFIG_STATUS <<\EOF
3091fi
3092for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3093  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3094  case "$ac_file" in
3095  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3096       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3097  *) ac_file_in="${ac_file}.in" ;;
3098  esac
3099
3100  echo creating $ac_file
3101
3102  rm -f conftest.frag conftest.in conftest.out
3103  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3104  cat $ac_file_inputs > conftest.in
3105
3106EOF
3107
3108# Transform confdefs.h into a sed script conftest.vals that substitutes
3109# the proper values into config.h.in to produce config.h.  And first:
3110# Protect against being on the right side of a sed subst in config.status.
3111# Protect against being in an unquoted here document in config.status.
3112rm -f conftest.vals
3113cat > conftest.hdr <<\EOF
3114s/[\\&%]/\\&/g
3115s%[\\$`]%\\&%g
3116s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3117s%ac_d%ac_u%gp
3118s%ac_u%ac_e%gp
3119EOF
3120sed -n -f conftest.hdr confdefs.h > conftest.vals
3121rm -f conftest.hdr
3122
3123# This sed command replaces #undef with comments.  This is necessary, for
3124# example, in the case of _POSIX_SOURCE, which is predefined and required
3125# on some systems where configure will not decide to define it.
3126cat >> conftest.vals <<\EOF
3127s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3128EOF
3129
3130# Break up conftest.vals because some shells have a limit on
3131# the size of here documents, and old seds have small limits too.
3132
3133rm -f conftest.tail
3134while :
3135do
3136  ac_lines=`grep -c . conftest.vals`
3137  # grep -c gives empty output for an empty file on some AIX systems.
3138  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3139  # Write a limited-size here document to conftest.frag.
3140  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3141  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3142  echo 'CEOF
3143  sed -f conftest.frag conftest.in > conftest.out
3144  rm -f conftest.in
3145  mv conftest.out conftest.in
3146' >> $CONFIG_STATUS
3147  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3148  rm -f conftest.vals
3149  mv conftest.tail conftest.vals
3150done
3151rm -f conftest.vals
3152
3153cat >> $CONFIG_STATUS <<\EOF
3154  rm -f conftest.frag conftest.h
3155  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3156  cat conftest.in >> conftest.h
3157  rm -f conftest.in
3158  if cmp -s $ac_file conftest.h 2>/dev/null; then
3159    echo "$ac_file is unchanged"
3160    rm -f conftest.h
3161  else
3162    # Remove last slash and all that follows it.  Not all systems have dirname.
3163      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3164      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3165      # The file is in a subdirectory.
3166      test ! -d "$ac_dir" && mkdir "$ac_dir"
3167    fi
3168    rm -f $ac_file
3169    mv conftest.h $ac_file
3170  fi
3171fi; done
3172
3173EOF
3174cat >> $CONFIG_STATUS <<EOF
3175
3176EOF
3177cat >> $CONFIG_STATUS <<\EOF
3178
3179exit 0
3180EOF
3181chmod +x $CONFIG_STATUS
3182rm -fr confdefs* $ac_clean_files
3183test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3184
3185
3186echo "
3187
3188
3189AfterStep applet $version is now hopefully configured, just run :
3190make ; make install
3191"
3192