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