source: trunk/third/xalf/configure @ 16253

Revision 16253, 107.9 KB checked in by ghudson, 24 years ago (diff)
Merge with xalf 0.12 (missing some IRIX changes).
  • Property svn:executable set to *
Line 
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  --enable-shared[=PKGS]  build shared libraries [default=yes]"
16ac_help="$ac_help
17  --enable-static[=PKGS]  build static libraries [default=yes]"
18ac_help="$ac_help
19  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
20ac_help="$ac_help
21  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
22ac_help="$ac_help
23  --disable-libtool-lock  avoid locking (might break parallel builds)"
24ac_help="$ac_help
25  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
26ac_help="$ac_help
27  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
28ac_help="$ac_help
29  --disable-gtktest       Do not try to compile and run a test GTK program"
30ac_help="$ac_help
31  --with-x                use the X Window System"
32ac_help="$ac_help
33  --enable-capplet        build the GNOME capplet [default=yes]"
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=src/xalf.c
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
544
545ac_aux_dir=
546for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
547  if test -f $ac_dir/install-sh; then
548    ac_aux_dir=$ac_dir
549    ac_install_sh="$ac_aux_dir/install-sh -c"
550    break
551  elif test -f $ac_dir/install.sh; then
552    ac_aux_dir=$ac_dir
553    ac_install_sh="$ac_aux_dir/install.sh -c"
554    break
555  fi
556done
557if test -z "$ac_aux_dir"; then
558  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
559fi
560ac_config_guess=$ac_aux_dir/config.guess
561ac_config_sub=$ac_aux_dir/config.sub
562ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
563
564# Find a good install program.  We prefer a C program (faster),
565# so one script is as good as another.  But avoid the broken or
566# incompatible versions:
567# SysV /etc/install, /usr/sbin/install
568# SunOS /usr/etc/install
569# IRIX /sbin/install
570# AIX /bin/install
571# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
572# AFS /usr/afsws/bin/install, which mishandles nonexistent args
573# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
574# ./install, which can be erroneously created by make from ./install.sh.
575echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
576echo "configure:577: checking for a BSD compatible install" >&5
577if test -z "$INSTALL"; then
578if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
579  echo $ac_n "(cached) $ac_c" 1>&6
580else
581    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
582  for ac_dir in $PATH; do
583    # Account for people who put trailing slashes in PATH elements.
584    case "$ac_dir/" in
585    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
586    *)
587      # OSF1 and SCO ODT 3.0 have their own names for install.
588      # Don't use installbsd from OSF since it installs stuff as root
589      # by default.
590      for ac_prog in ginstall scoinst install; do
591        if test -f $ac_dir/$ac_prog; then
592          if test $ac_prog = install &&
593            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
594            # AIX install.  It has an incompatible calling convention.
595            :
596          else
597            ac_cv_path_install="$ac_dir/$ac_prog -c"
598            break 2
599          fi
600        fi
601      done
602      ;;
603    esac
604  done
605  IFS="$ac_save_IFS"
606
607fi
608  if test "${ac_cv_path_install+set}" = set; then
609    INSTALL="$ac_cv_path_install"
610  else
611    # As a last resort, use the slow shell script.  We don't cache a
612    # path for INSTALL within a source directory, because that will
613    # break other packages using the cache if that directory is
614    # removed, or if the path is relative.
615    INSTALL="$ac_install_sh"
616  fi
617fi
618echo "$ac_t""$INSTALL" 1>&6
619
620# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
621# It thinks the first close brace ends the variable substitution.
622test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
623
624test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
625
626test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
627
628echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
629echo "configure:630: checking whether build environment is sane" >&5
630# Just in case
631sleep 1
632echo timestamp > conftestfile
633# Do `set' in a subshell so we don't clobber the current shell's
634# arguments.  Must try -L first in case configure is actually a
635# symlink; some systems play weird games with the mod time of symlinks
636# (eg FreeBSD returns the mod time of the symlink's containing
637# directory).
638if (
639   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
640   if test "$*" = "X"; then
641      # -L didn't work.
642      set X `ls -t $srcdir/configure conftestfile`
643   fi
644   if test "$*" != "X $srcdir/configure conftestfile" \
645      && test "$*" != "X conftestfile $srcdir/configure"; then
646
647      # If neither matched, then we have a broken ls.  This can happen
648      # if, for instance, CONFIG_SHELL is bash and it inherits a
649      # broken ls alias from the environment.  This has actually
650      # happened.  Such a system could not be considered "sane".
651      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
652alias in your environment" 1>&2; exit 1; }
653   fi
654
655   test "$2" = conftestfile
656   )
657then
658   # Ok.
659   :
660else
661   { echo "configure: error: newly created file is older than distributed files!
662Check your system clock" 1>&2; exit 1; }
663fi
664rm -f conftest*
665echo "$ac_t""yes" 1>&6
666if test "$program_transform_name" = s,x,x,; then
667  program_transform_name=
668else
669  # Double any \ or $.  echo might interpret backslashes.
670  cat <<\EOF_SED > conftestsed
671s,\\,\\\\,g; s,\$,$$,g
672EOF_SED
673  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
674  rm -f conftestsed
675fi
676test "$program_prefix" != NONE &&
677  program_transform_name="s,^,${program_prefix},; $program_transform_name"
678# Use a double $ so make ignores it.
679test "$program_suffix" != NONE &&
680  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
681
682# sed with no file args requires a program.
683test "$program_transform_name" = "" && program_transform_name="s,x,x,"
684
685echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
686echo "configure:687: checking whether ${MAKE-make} sets \${MAKE}" >&5
687set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
688if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
689  echo $ac_n "(cached) $ac_c" 1>&6
690else
691  cat > conftestmake <<\EOF
692all:
693        @echo 'ac_maketemp="${MAKE}"'
694EOF
695# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
696eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
697if test -n "$ac_maketemp"; then
698  eval ac_cv_prog_make_${ac_make}_set=yes
699else
700  eval ac_cv_prog_make_${ac_make}_set=no
701fi
702rm -f conftestmake
703fi
704if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
705  echo "$ac_t""yes" 1>&6
706  SET_MAKE=
707else
708  echo "$ac_t""no" 1>&6
709  SET_MAKE="MAKE=${MAKE-make}"
710fi
711
712
713PACKAGE=xalf
714
715VERSION=0.12
716
717if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
718  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
719fi
720cat >> confdefs.h <<EOF
721#define PACKAGE "$PACKAGE"
722EOF
723
724cat >> confdefs.h <<EOF
725#define VERSION "$VERSION"
726EOF
727
728
729
730missing_dir=`cd $ac_aux_dir && pwd`
731echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
732echo "configure:733: checking for working aclocal" >&5
733# Run test in a subshell; some versions of sh will print an error if
734# an executable is not found, even if stderr is redirected.
735# Redirect stdin to placate older versions of autoconf.  Sigh.
736if (aclocal --version) < /dev/null > /dev/null 2>&1; then
737   ACLOCAL=aclocal
738   echo "$ac_t""found" 1>&6
739else
740   ACLOCAL="$missing_dir/missing aclocal"
741   echo "$ac_t""missing" 1>&6
742fi
743
744echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
745echo "configure:746: checking for working autoconf" >&5
746# Run test in a subshell; some versions of sh will print an error if
747# an executable is not found, even if stderr is redirected.
748# Redirect stdin to placate older versions of autoconf.  Sigh.
749if (autoconf --version) < /dev/null > /dev/null 2>&1; then
750   AUTOCONF=autoconf
751   echo "$ac_t""found" 1>&6
752else
753   AUTOCONF="$missing_dir/missing autoconf"
754   echo "$ac_t""missing" 1>&6
755fi
756
757echo $ac_n "checking for working automake""... $ac_c" 1>&6
758echo "configure:759: checking for working automake" >&5
759# Run test in a subshell; some versions of sh will print an error if
760# an executable is not found, even if stderr is redirected.
761# Redirect stdin to placate older versions of autoconf.  Sigh.
762if (automake --version) < /dev/null > /dev/null 2>&1; then
763   AUTOMAKE=automake
764   echo "$ac_t""found" 1>&6
765else
766   AUTOMAKE="$missing_dir/missing automake"
767   echo "$ac_t""missing" 1>&6
768fi
769
770echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
771echo "configure:772: checking for working autoheader" >&5
772# Run test in a subshell; some versions of sh will print an error if
773# an executable is not found, even if stderr is redirected.
774# Redirect stdin to placate older versions of autoconf.  Sigh.
775if (autoheader --version) < /dev/null > /dev/null 2>&1; then
776   AUTOHEADER=autoheader
777   echo "$ac_t""found" 1>&6
778else
779   AUTOHEADER="$missing_dir/missing autoheader"
780   echo "$ac_t""missing" 1>&6
781fi
782
783echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
784echo "configure:785: checking for working makeinfo" >&5
785# Run test in a subshell; some versions of sh will print an error if
786# an executable is not found, even if stderr is redirected.
787# Redirect stdin to placate older versions of autoconf.  Sigh.
788if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
789   MAKEINFO=makeinfo
790   echo "$ac_t""found" 1>&6
791else
792   MAKEINFO="$missing_dir/missing makeinfo"
793   echo "$ac_t""missing" 1>&6
794fi
795
796
797
798
799
800
801
802# Extract the first word of "gcc", so it can be a program name with args.
803set dummy gcc; ac_word=$2
804echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805echo "configure:806: checking for $ac_word" >&5
806if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
807  echo $ac_n "(cached) $ac_c" 1>&6
808else
809  if test -n "$CC"; then
810  ac_cv_prog_CC="$CC" # Let the user override the test.
811else
812  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
813  ac_dummy="$PATH"
814  for ac_dir in $ac_dummy; do
815    test -z "$ac_dir" && ac_dir=.
816    if test -f $ac_dir/$ac_word; then
817      ac_cv_prog_CC="gcc"
818      break
819    fi
820  done
821  IFS="$ac_save_ifs"
822fi
823fi
824CC="$ac_cv_prog_CC"
825if test -n "$CC"; then
826  echo "$ac_t""$CC" 1>&6
827else
828  echo "$ac_t""no" 1>&6
829fi
830
831if test -z "$CC"; then
832  # Extract the first word of "cc", so it can be a program name with args.
833set dummy cc; ac_word=$2
834echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
835echo "configure:836: checking for $ac_word" >&5
836if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
837  echo $ac_n "(cached) $ac_c" 1>&6
838else
839  if test -n "$CC"; then
840  ac_cv_prog_CC="$CC" # Let the user override the test.
841else
842  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
843  ac_prog_rejected=no
844  ac_dummy="$PATH"
845  for ac_dir in $ac_dummy; do
846    test -z "$ac_dir" && ac_dir=.
847    if test -f $ac_dir/$ac_word; then
848      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
849        ac_prog_rejected=yes
850        continue
851      fi
852      ac_cv_prog_CC="cc"
853      break
854    fi
855  done
856  IFS="$ac_save_ifs"
857if test $ac_prog_rejected = yes; then
858  # We found a bogon in the path, so make sure we never use it.
859  set dummy $ac_cv_prog_CC
860  shift
861  if test $# -gt 0; then
862    # We chose a different compiler from the bogus one.
863    # However, it has the same basename, so the bogon will be chosen
864    # first if we set CC to just the basename; use the full file name.
865    shift
866    set dummy "$ac_dir/$ac_word" "$@"
867    shift
868    ac_cv_prog_CC="$@"
869  fi
870fi
871fi
872fi
873CC="$ac_cv_prog_CC"
874if test -n "$CC"; then
875  echo "$ac_t""$CC" 1>&6
876else
877  echo "$ac_t""no" 1>&6
878fi
879
880  if test -z "$CC"; then
881    case "`uname -s`" in
882    *win32* | *WIN32*)
883      # Extract the first word of "cl", so it can be a program name with args.
884set dummy cl; ac_word=$2
885echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
886echo "configure:887: checking for $ac_word" >&5
887if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
888  echo $ac_n "(cached) $ac_c" 1>&6
889else
890  if test -n "$CC"; then
891  ac_cv_prog_CC="$CC" # Let the user override the test.
892else
893  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
894  ac_dummy="$PATH"
895  for ac_dir in $ac_dummy; do
896    test -z "$ac_dir" && ac_dir=.
897    if test -f $ac_dir/$ac_word; then
898      ac_cv_prog_CC="cl"
899      break
900    fi
901  done
902  IFS="$ac_save_ifs"
903fi
904fi
905CC="$ac_cv_prog_CC"
906if test -n "$CC"; then
907  echo "$ac_t""$CC" 1>&6
908else
909  echo "$ac_t""no" 1>&6
910fi
911 ;;
912    esac
913  fi
914  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
915fi
916
917echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
918echo "configure:919: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
919
920ac_ext=c
921# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
922ac_cpp='$CPP $CPPFLAGS'
923ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
924ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
925cross_compiling=$ac_cv_prog_cc_cross
926
927cat > conftest.$ac_ext << EOF
928
929#line 930 "configure"
930#include "confdefs.h"
931
932main(){return(0);}
933EOF
934if { (eval echo configure:935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
935  ac_cv_prog_cc_works=yes
936  # If we can't run a trivial program, we are probably using a cross compiler.
937  if (./conftest; exit) 2>/dev/null; then
938    ac_cv_prog_cc_cross=no
939  else
940    ac_cv_prog_cc_cross=yes
941  fi
942else
943  echo "configure: failed program was:" >&5
944  cat conftest.$ac_ext >&5
945  ac_cv_prog_cc_works=no
946fi
947rm -fr conftest*
948ac_ext=c
949# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
950ac_cpp='$CPP $CPPFLAGS'
951ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
952ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
953cross_compiling=$ac_cv_prog_cc_cross
954
955echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
956if test $ac_cv_prog_cc_works = no; then
957  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
958fi
959echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
960echo "configure:961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
961echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
962cross_compiling=$ac_cv_prog_cc_cross
963
964echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
965echo "configure:966: checking whether we are using GNU C" >&5
966if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
967  echo $ac_n "(cached) $ac_c" 1>&6
968else
969  cat > conftest.c <<EOF
970#ifdef __GNUC__
971  yes;
972#endif
973EOF
974if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
975  ac_cv_prog_gcc=yes
976else
977  ac_cv_prog_gcc=no
978fi
979fi
980
981echo "$ac_t""$ac_cv_prog_gcc" 1>&6
982
983if test $ac_cv_prog_gcc = yes; then
984  GCC=yes
985else
986  GCC=
987fi
988
989ac_test_CFLAGS="${CFLAGS+set}"
990ac_save_CFLAGS="$CFLAGS"
991CFLAGS=
992echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
993echo "configure:994: checking whether ${CC-cc} accepts -g" >&5
994if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
995  echo $ac_n "(cached) $ac_c" 1>&6
996else
997  echo 'void f(){}' > conftest.c
998if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
999  ac_cv_prog_cc_g=yes
1000else
1001  ac_cv_prog_cc_g=no
1002fi
1003rm -f conftest*
1004
1005fi
1006
1007echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1008if test "$ac_test_CFLAGS" = set; then
1009  CFLAGS="$ac_save_CFLAGS"
1010elif test $ac_cv_prog_cc_g = yes; then
1011  if test "$GCC" = yes; then
1012    CFLAGS="-g -O2"
1013  else
1014    CFLAGS="-g"
1015  fi
1016else
1017  if test "$GCC" = yes; then
1018    CFLAGS="-O2"
1019  else
1020    CFLAGS=
1021  fi
1022fi
1023
1024
1025# Check whether --enable-shared or --disable-shared was given.
1026if test "${enable_shared+set}" = set; then
1027  enableval="$enable_shared"
1028  p=${PACKAGE-default}
1029case "$enableval" in
1030yes) enable_shared=yes ;;
1031no) enable_shared=no ;;
1032*)
1033  enable_shared=no
1034  # Look at the argument we got.  We use all the common list separators.
1035  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1036  for pkg in $enableval; do
1037    if test "X$pkg" = "X$p"; then
1038      enable_shared=yes
1039    fi
1040  done
1041  IFS="$ac_save_ifs"
1042  ;;
1043esac
1044else
1045  enable_shared=yes
1046fi
1047
1048# Check whether --enable-static or --disable-static was given.
1049if test "${enable_static+set}" = set; then
1050  enableval="$enable_static"
1051  p=${PACKAGE-default}
1052case "$enableval" in
1053yes) enable_static=yes ;;
1054no) enable_static=no ;;
1055*)
1056  enable_static=no
1057  # Look at the argument we got.  We use all the common list separators.
1058  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1059  for pkg in $enableval; do
1060    if test "X$pkg" = "X$p"; then
1061      enable_static=yes
1062    fi
1063  done
1064  IFS="$ac_save_ifs"
1065  ;;
1066esac
1067else
1068  enable_static=yes
1069fi
1070
1071# Check whether --enable-fast-install or --disable-fast-install was given.
1072if test "${enable_fast_install+set}" = set; then
1073  enableval="$enable_fast_install"
1074  p=${PACKAGE-default}
1075case "$enableval" in
1076yes) enable_fast_install=yes ;;
1077no) enable_fast_install=no ;;
1078*)
1079  enable_fast_install=no
1080  # Look at the argument we got.  We use all the common list separators.
1081  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1082  for pkg in $enableval; do
1083    if test "X$pkg" = "X$p"; then
1084      enable_fast_install=yes
1085    fi
1086  done
1087  IFS="$ac_save_ifs"
1088  ;;
1089esac
1090else
1091  enable_fast_install=yes
1092fi
1093
1094
1095# Make sure we can run config.sub.
1096if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1097else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1098fi
1099
1100echo $ac_n "checking host system type""... $ac_c" 1>&6
1101echo "configure:1102: checking host system type" >&5
1102
1103host_alias=$host
1104case "$host_alias" in
1105NONE)
1106  case $nonopt in
1107  NONE)
1108    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1109    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1110    fi ;;
1111  *) host_alias=$nonopt ;;
1112  esac ;;
1113esac
1114
1115host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1116host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1117host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1118host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1119echo "$ac_t""$host" 1>&6
1120
1121echo $ac_n "checking build system type""... $ac_c" 1>&6
1122echo "configure:1123: checking build system type" >&5
1123
1124build_alias=$build
1125case "$build_alias" in
1126NONE)
1127  case $nonopt in
1128  NONE) build_alias=$host_alias ;;
1129  *) build_alias=$nonopt ;;
1130  esac ;;
1131esac
1132
1133build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1134build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1135build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1136build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1137echo "$ac_t""$build" 1>&6
1138
1139# Extract the first word of "ranlib", so it can be a program name with args.
1140set dummy ranlib; ac_word=$2
1141echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1142echo "configure:1143: checking for $ac_word" >&5
1143if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1144  echo $ac_n "(cached) $ac_c" 1>&6
1145else
1146  if test -n "$RANLIB"; then
1147  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1148else
1149  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1150  ac_dummy="$PATH"
1151  for ac_dir in $ac_dummy; do
1152    test -z "$ac_dir" && ac_dir=.
1153    if test -f $ac_dir/$ac_word; then
1154      ac_cv_prog_RANLIB="ranlib"
1155      break
1156    fi
1157  done
1158  IFS="$ac_save_ifs"
1159  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1160fi
1161fi
1162RANLIB="$ac_cv_prog_RANLIB"
1163if test -n "$RANLIB"; then
1164  echo "$ac_t""$RANLIB" 1>&6
1165else
1166  echo "$ac_t""no" 1>&6
1167fi
1168
1169# Check whether --with-gnu-ld or --without-gnu-ld was given.
1170if test "${with_gnu_ld+set}" = set; then
1171  withval="$with_gnu_ld"
1172  test "$withval" = no || with_gnu_ld=yes
1173else
1174  with_gnu_ld=no
1175fi
1176
1177ac_prog=ld
1178if test "$ac_cv_prog_gcc" = yes; then
1179  # Check if gcc -print-prog-name=ld gives a path.
1180  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1181echo "configure:1182: checking for ld used by GCC" >&5
1182  ac_prog=`($CC -print-prog-name=ld) 2>&5`
1183  case "$ac_prog" in
1184    # Accept absolute paths.
1185    [\\/]* | [A-Za-z]:[\\/]*)
1186      re_direlt='/[^/][^/]*/\.\./'
1187      # Canonicalize the path of ld
1188      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1189      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1190        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1191      done
1192      test -z "$LD" && LD="$ac_prog"
1193      ;;
1194  "")
1195    # If it fails, then pretend we aren't using GCC.
1196    ac_prog=ld
1197    ;;
1198  *)
1199    # If it is relative, then search for the first ld in PATH.
1200    with_gnu_ld=unknown
1201    ;;
1202  esac
1203elif test "$with_gnu_ld" = yes; then
1204  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1205echo "configure:1206: checking for GNU ld" >&5
1206else
1207  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1208echo "configure:1209: checking for non-GNU ld" >&5
1209fi
1210if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1211  echo $ac_n "(cached) $ac_c" 1>&6
1212else
1213  if test -z "$LD"; then
1214  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1215  for ac_dir in $PATH; do
1216    test -z "$ac_dir" && ac_dir=.
1217    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1218      ac_cv_path_LD="$ac_dir/$ac_prog"
1219      # Check to see if the program is GNU ld.  I'd rather use --version,
1220      # but apparently some GNU ld's only accept -v.
1221      # Break only if it was the GNU/non-GNU ld that we prefer.
1222      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1223        test "$with_gnu_ld" != no && break
1224      else
1225        test "$with_gnu_ld" != yes && break
1226      fi
1227    fi
1228  done
1229  IFS="$ac_save_ifs"
1230else
1231  ac_cv_path_LD="$LD" # Let the user override the test with a path.
1232fi
1233fi
1234
1235LD="$ac_cv_path_LD"
1236if test -n "$LD"; then
1237  echo "$ac_t""$LD" 1>&6
1238else
1239  echo "$ac_t""no" 1>&6
1240fi
1241test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1242echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1243echo "configure:1244: checking if the linker ($LD) is GNU ld" >&5
1244if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1245  echo $ac_n "(cached) $ac_c" 1>&6
1246else
1247  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1248if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1249  ac_cv_prog_gnu_ld=yes
1250else
1251  ac_cv_prog_gnu_ld=no
1252fi
1253fi
1254
1255echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1256
1257
1258echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1259echo "configure:1260: checking for BSD-compatible nm" >&5
1260if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1261  echo $ac_n "(cached) $ac_c" 1>&6
1262else
1263  if test -n "$NM"; then
1264  # Let the user override the test.
1265  ac_cv_path_NM="$NM"
1266else
1267  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1268  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1269    test -z "$ac_dir" && ac_dir=.
1270    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1271      # Check to see if the nm accepts a BSD-compat flag.
1272      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1273      #   nm: unknown option "B" ignored
1274      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1275        ac_cv_path_NM="$ac_dir/nm -B"
1276        break
1277      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1278        ac_cv_path_NM="$ac_dir/nm -p"
1279        break
1280      else
1281        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1282        continue # so that we can try to find one that supports BSD flags
1283      fi
1284    fi
1285  done
1286  IFS="$ac_save_ifs"
1287  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1288fi
1289fi
1290
1291NM="$ac_cv_path_NM"
1292echo "$ac_t""$NM" 1>&6
1293
1294echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1295echo "configure:1296: checking whether ln -s works" >&5
1296if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1297  echo $ac_n "(cached) $ac_c" 1>&6
1298else
1299  rm -f conftestdata
1300if ln -s X conftestdata 2>/dev/null
1301then
1302  rm -f conftestdata
1303  ac_cv_prog_LN_S="ln -s"
1304else
1305  ac_cv_prog_LN_S=ln
1306fi
1307fi
1308LN_S="$ac_cv_prog_LN_S"
1309if test "$ac_cv_prog_LN_S" = "ln -s"; then
1310  echo "$ac_t""yes" 1>&6
1311else
1312  echo "$ac_t""no" 1>&6
1313fi
1314
1315
1316case "$target" in
1317NONE) lt_target="$host" ;;
1318*) lt_target="$target" ;;
1319esac
1320
1321# Check for any special flags to pass to ltconfig.
1322#
1323# the following will cause an existing older ltconfig to fail, so
1324# we ignore this at the expense of the cache file... Checking this
1325# will just take longer ... bummer!
1326#libtool_flags="--cache-file=$cache_file"
1327#
1328test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1329test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1330test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1331test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1332test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1333
1334
1335# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1336if test "${enable_libtool_lock+set}" = set; then
1337  enableval="$enable_libtool_lock"
1338  :
1339fi
1340
1341test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1342test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1343
1344# Some flags need to be propagated to the compiler or linker for good
1345# libtool support.
1346case "$lt_target" in
1347*-*-irix6*)
1348  # Find out which ABI we are using.
1349  echo '#line 1350 "configure"' > conftest.$ac_ext
1350  if { (eval echo configure:1351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1351    case "`/usr/bin/file conftest.o`" in
1352    *32-bit*)
1353      LD="${LD-ld} -32"
1354      ;;
1355    *N32*)
1356      LD="${LD-ld} -n32"
1357      ;;
1358    *64-bit*)
1359      LD="${LD-ld} -64"
1360      ;;
1361    esac
1362  fi
1363  rm -rf conftest*
1364  ;;
1365
1366*-*-sco3.2v5*)
1367  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1368  SAVE_CFLAGS="$CFLAGS"
1369  CFLAGS="$CFLAGS -belf"
1370  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1371echo "configure:1372: checking whether the C compiler needs -belf" >&5
1372if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1373  echo $ac_n "(cached) $ac_c" 1>&6
1374else
1375  cat > conftest.$ac_ext <<EOF
1376#line 1377 "configure"
1377#include "confdefs.h"
1378
1379int main() {
1380
1381; return 0; }
1382EOF
1383if { (eval echo configure:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1384  rm -rf conftest*
1385  lt_cv_cc_needs_belf=yes
1386else
1387  echo "configure: failed program was:" >&5
1388  cat conftest.$ac_ext >&5
1389  rm -rf conftest*
1390  lt_cv_cc_needs_belf=no
1391fi
1392rm -f conftest*
1393fi
1394
1395echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1396  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1397    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1398    CFLAGS="$SAVE_CFLAGS"
1399  fi
1400  ;;
1401
1402
1403esac
1404
1405
1406# Save cache, so that ltconfig can load it
1407cat > confcache <<\EOF
1408# This file is a shell script that caches the results of configure
1409# tests run on this system so they can be shared between configure
1410# scripts and configure runs.  It is not useful on other systems.
1411# If it contains results you don't want to keep, you may remove or edit it.
1412#
1413# By default, configure uses ./config.cache as the cache file,
1414# creating it if it does not exist already.  You can give configure
1415# the --cache-file=FILE option to use a different cache file; that is
1416# what configure does when it calls configure scripts in
1417# subdirectories, so they share the cache.
1418# Giving --cache-file=/dev/null disables caching, for debugging configure.
1419# config.status only pays attention to the cache file if you give it the
1420# --recheck option to rerun configure.
1421#
1422EOF
1423# The following way of writing the cache mishandles newlines in values,
1424# but we know of no workaround that is simple, portable, and efficient.
1425# So, don't put newlines in cache variables' values.
1426# Ultrix sh set writes to stderr and can't be redirected directly,
1427# and sets the high bit in the cache file unless we assign to the vars.
1428(set) 2>&1 |
1429  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1430  *ac_space=\ *)
1431    # `set' does not quote correctly, so add quotes (double-quote substitution
1432    # turns \\\\ into \\, and sed turns \\ into \).
1433    sed -n \
1434      -e "s/'/'\\\\''/g" \
1435      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1436    ;;
1437  *)
1438    # `set' quotes correctly as required by POSIX, so do not add quotes.
1439    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1440    ;;
1441  esac >> confcache
1442if cmp -s $cache_file confcache; then
1443  :
1444else
1445  if test -w $cache_file; then
1446    echo "updating cache $cache_file"
1447    cat confcache > $cache_file
1448  else
1449    echo "not updating unwritable cache $cache_file"
1450  fi
1451fi
1452rm -f confcache
1453
1454
1455# Actually configure libtool.  ac_aux_dir is where install-sh is found.
1456CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1457LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1458LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1459DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1460${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1461$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1462|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1463
1464# Reload cache, that may have been modified by ltconfig
1465if test -r "$cache_file"; then
1466  echo "loading cache $cache_file"
1467  . $cache_file
1468else
1469  echo "creating cache $cache_file"
1470  > $cache_file
1471fi
1472
1473
1474# This can be used to rebuild libtool when needed
1475LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1476
1477# Always use our own libtool.
1478LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1479
1480# Redirect the config.log output again, so that the ltconfig log is not
1481# clobbered by the next message.
1482exec 5>>./config.log
1483
1484
1485echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1486echo "configure:1487: checking whether build environment is sane" >&5
1487# Just in case
1488sleep 1
1489echo timestamp > conftestfile
1490# Do `set' in a subshell so we don't clobber the current shell's
1491# arguments.  Must try -L first in case configure is actually a
1492# symlink; some systems play weird games with the mod time of symlinks
1493# (eg FreeBSD returns the mod time of the symlink's containing
1494# directory).
1495if (
1496   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1497   if test "$*" = "X"; then
1498      # -L didn't work.
1499      set X `ls -t $srcdir/configure conftestfile`
1500   fi
1501   if test "$*" != "X $srcdir/configure conftestfile" \
1502      && test "$*" != "X conftestfile $srcdir/configure"; then
1503
1504      # If neither matched, then we have a broken ls.  This can happen
1505      # if, for instance, CONFIG_SHELL is bash and it inherits a
1506      # broken ls alias from the environment.  This has actually
1507      # happened.  Such a system could not be considered "sane".
1508      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1509alias in your environment" 1>&2; exit 1; }
1510   fi
1511
1512   test "$2" = conftestfile
1513   )
1514then
1515   # Ok.
1516   :
1517else
1518   { echo "configure: error: newly created file is older than distributed files!
1519Check your system clock" 1>&2; exit 1; }
1520fi
1521rm -f conftest*
1522echo "$ac_t""yes" 1>&6
1523
1524# Find a good install program.  We prefer a C program (faster),
1525# so one script is as good as another.  But avoid the broken or
1526# incompatible versions:
1527# SysV /etc/install, /usr/sbin/install
1528# SunOS /usr/etc/install
1529# IRIX /sbin/install
1530# AIX /bin/install
1531# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1532# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1533# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1534# ./install, which can be erroneously created by make from ./install.sh.
1535echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1536echo "configure:1537: checking for a BSD compatible install" >&5
1537if test -z "$INSTALL"; then
1538if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1539  echo $ac_n "(cached) $ac_c" 1>&6
1540else
1541    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1542  for ac_dir in $PATH; do
1543    # Account for people who put trailing slashes in PATH elements.
1544    case "$ac_dir/" in
1545    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1546    *)
1547      # OSF1 and SCO ODT 3.0 have their own names for install.
1548      # Don't use installbsd from OSF since it installs stuff as root
1549      # by default.
1550      for ac_prog in ginstall scoinst install; do
1551        if test -f $ac_dir/$ac_prog; then
1552          if test $ac_prog = install &&
1553            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1554            # AIX install.  It has an incompatible calling convention.
1555            :
1556          else
1557            ac_cv_path_install="$ac_dir/$ac_prog -c"
1558            break 2
1559          fi
1560        fi
1561      done
1562      ;;
1563    esac
1564  done
1565  IFS="$ac_save_IFS"
1566
1567fi
1568  if test "${ac_cv_path_install+set}" = set; then
1569    INSTALL="$ac_cv_path_install"
1570  else
1571    # As a last resort, use the slow shell script.  We don't cache a
1572    # path for INSTALL within a source directory, because that will
1573    # break other packages using the cache if that directory is
1574    # removed, or if the path is relative.
1575    INSTALL="$ac_install_sh"
1576  fi
1577fi
1578echo "$ac_t""$INSTALL" 1>&6
1579
1580# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1581# It thinks the first close brace ends the variable substitution.
1582test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1583
1584test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1585
1586test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1587
1588echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1589echo "configure:1590: checking whether ln -s works" >&5
1590if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1591  echo $ac_n "(cached) $ac_c" 1>&6
1592else
1593  rm -f conftestdata
1594if ln -s X conftestdata 2>/dev/null
1595then
1596  rm -f conftestdata
1597  ac_cv_prog_LN_S="ln -s"
1598else
1599  ac_cv_prog_LN_S=ln
1600fi
1601fi
1602LN_S="$ac_cv_prog_LN_S"
1603if test "$ac_cv_prog_LN_S" = "ln -s"; then
1604  echo "$ac_t""yes" 1>&6
1605else
1606  echo "$ac_t""no" 1>&6
1607fi
1608
1609echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1610echo "configure:1611: checking whether ${MAKE-make} sets \${MAKE}" >&5
1611set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1612if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1613  echo $ac_n "(cached) $ac_c" 1>&6
1614else
1615  cat > conftestmake <<\EOF
1616all:
1617        @echo 'ac_maketemp="${MAKE}"'
1618EOF
1619# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1620eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1621if test -n "$ac_maketemp"; then
1622  eval ac_cv_prog_make_${ac_make}_set=yes
1623else
1624  eval ac_cv_prog_make_${ac_make}_set=no
1625fi
1626rm -f conftestmake
1627fi
1628if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1629  echo "$ac_t""yes" 1>&6
1630  SET_MAKE=
1631else
1632  echo "$ac_t""no" 1>&6
1633  SET_MAKE="MAKE=${MAKE-make}"
1634fi
1635
1636
1637# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1638if test "${with_gtk_prefix+set}" = set; then
1639  withval="$with_gtk_prefix"
1640  gtk_config_prefix="$withval"
1641else
1642  gtk_config_prefix=""
1643fi
1644
1645# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1646if test "${with_gtk_exec_prefix+set}" = set; then
1647  withval="$with_gtk_exec_prefix"
1648  gtk_config_exec_prefix="$withval"
1649else
1650  gtk_config_exec_prefix=""
1651fi
1652
1653# Check whether --enable-gtktest or --disable-gtktest was given.
1654if test "${enable_gtktest+set}" = set; then
1655  enableval="$enable_gtktest"
1656  :
1657else
1658  enable_gtktest=yes
1659fi
1660
1661
1662  for module in .
1663  do
1664      case "$module" in
1665         gthread)
1666             gtk_config_args="$gtk_config_args gthread"
1667         ;;
1668      esac
1669  done
1670
1671  if test x$gtk_config_exec_prefix != x ; then
1672     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
1673     if test x${GTK_CONFIG+set} != xset ; then
1674        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
1675     fi
1676  fi
1677  if test x$gtk_config_prefix != x ; then
1678     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
1679     if test x${GTK_CONFIG+set} != xset ; then
1680        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
1681     fi
1682  fi
1683
1684  # Extract the first word of "gtk-config", so it can be a program name with args.
1685set dummy gtk-config; ac_word=$2
1686echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1687echo "configure:1688: checking for $ac_word" >&5
1688if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
1689  echo $ac_n "(cached) $ac_c" 1>&6
1690else
1691  case "$GTK_CONFIG" in
1692  /*)
1693  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
1694  ;;
1695  ?:/*)                 
1696  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
1697  ;;
1698  *)
1699  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1700  ac_dummy="$PATH"
1701  for ac_dir in $ac_dummy; do
1702    test -z "$ac_dir" && ac_dir=.
1703    if test -f $ac_dir/$ac_word; then
1704      ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
1705      break
1706    fi
1707  done
1708  IFS="$ac_save_ifs"
1709  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
1710  ;;
1711esac
1712fi
1713GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
1714if test -n "$GTK_CONFIG"; then
1715  echo "$ac_t""$GTK_CONFIG" 1>&6
1716else
1717  echo "$ac_t""no" 1>&6
1718fi
1719
1720  min_gtk_version=1.2.0
1721  echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1722echo "configure:1723: checking for GTK - version >= $min_gtk_version" >&5
1723  no_gtk=""
1724  if test "$GTK_CONFIG" = "no" ; then
1725    no_gtk=yes
1726  else
1727    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
1728    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
1729    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
1730           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1731    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
1732           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1733    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
1734           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1735    if test "x$enable_gtktest" = "xyes" ; then
1736      ac_save_CFLAGS="$CFLAGS"
1737      ac_save_LIBS="$LIBS"
1738      CFLAGS="$CFLAGS $GTK_CFLAGS"
1739      LIBS="$GTK_LIBS $LIBS"
1740      rm -f conf.gtktest
1741      if test "$cross_compiling" = yes; then
1742  echo $ac_n "cross compiling; assumed OK... $ac_c"
1743else
1744  cat > conftest.$ac_ext <<EOF
1745#line 1746 "configure"
1746#include "confdefs.h"
1747
1748#include <gtk/gtk.h>
1749#include <stdio.h>
1750#include <stdlib.h>
1751
1752int
1753main ()
1754{
1755  int major, minor, micro;
1756  char *tmp_version;
1757
1758  system ("touch conf.gtktest");
1759
1760  /* HP/UX 9 (%@#!) writes to sscanf strings */
1761  tmp_version = g_strdup("$min_gtk_version");
1762  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
1763     printf("%s, bad version string\n", "$min_gtk_version");
1764     exit(1);
1765   }
1766
1767  if ((gtk_major_version != $gtk_config_major_version) ||
1768      (gtk_minor_version != $gtk_config_minor_version) ||
1769      (gtk_micro_version != $gtk_config_micro_version))
1770    {
1771      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
1772             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
1773             gtk_major_version, gtk_minor_version, gtk_micro_version);
1774      printf ("*** was found! If gtk-config was correct, then it is best\n");
1775      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
1776      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1777      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1778      printf("*** required on your system.\n");
1779      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
1780      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
1781      printf("*** before re-running configure\n");
1782    }
1783#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
1784  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
1785           (gtk_minor_version != GTK_MINOR_VERSION) ||
1786           (gtk_micro_version != GTK_MICRO_VERSION))
1787    {
1788      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
1789             GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
1790      printf("*** library (version %d.%d.%d)\n",
1791             gtk_major_version, gtk_minor_version, gtk_micro_version);
1792    }
1793#endif /* defined (GTK_MAJOR_VERSION) ... */
1794  else
1795    {
1796      if ((gtk_major_version > major) ||
1797        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
1798        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
1799      {
1800        return 0;
1801       }
1802     else
1803      {
1804        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
1805               gtk_major_version, gtk_minor_version, gtk_micro_version);
1806        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
1807               major, minor, micro);
1808        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
1809        printf("***\n");
1810        printf("*** If you have already installed a sufficiently new version, this error\n");
1811        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
1812        printf("*** being found. The easiest way to fix this is to remove the old version\n");
1813        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
1814        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
1815        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1816        printf("*** so that the correct libraries are found at run-time))\n");
1817      }
1818    }
1819  return 1;
1820}
1821
1822EOF
1823if { (eval echo configure:1824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1824then
1825  :
1826else
1827  echo "configure: failed program was:" >&5
1828  cat conftest.$ac_ext >&5
1829  rm -fr conftest*
1830  no_gtk=yes
1831fi
1832rm -fr conftest*
1833fi
1834
1835       CFLAGS="$ac_save_CFLAGS"
1836       LIBS="$ac_save_LIBS"
1837     fi
1838  fi
1839  if test "x$no_gtk" = x ; then
1840     echo "$ac_t""yes" 1>&6
1841     :     
1842  else
1843     echo "$ac_t""no" 1>&6
1844     if test "$GTK_CONFIG" = "no" ; then
1845       echo "*** The gtk-config script installed by GTK could not be found"
1846       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
1847       echo "*** your path, or set the GTK_CONFIG environment variable to the"
1848       echo "*** full path to gtk-config."
1849     else
1850       if test -f conf.gtktest ; then
1851        :
1852       else
1853          echo "*** Could not run GTK test program, checking why..."
1854          CFLAGS="$CFLAGS $GTK_CFLAGS"
1855          LIBS="$LIBS $GTK_LIBS"
1856          cat > conftest.$ac_ext <<EOF
1857#line 1858 "configure"
1858#include "confdefs.h"
1859
1860#include <gtk/gtk.h>
1861#include <stdio.h>
1862
1863int main() {
1864 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
1865; return 0; }
1866EOF
1867if { (eval echo configure:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1868  rm -rf conftest*
1869   echo "*** The test program compiled, but did not run. This usually means"
1870          echo "*** that the run-time linker is not finding GTK or finding the wrong"
1871          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
1872          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1873          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
1874          echo "*** is required on your system"
1875          echo "***"
1876          echo "*** If you have an old version installed, it is best to remove it, although"
1877          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1878          echo "***"
1879          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
1880          echo "*** came with the system with the command"
1881          echo "***"
1882          echo "***    rpm --erase --nodeps gtk gtk-devel"
1883else
1884  echo "configure: failed program was:" >&5
1885  cat conftest.$ac_ext >&5
1886  rm -rf conftest*
1887   echo "*** The test program failed to compile or link. See the file config.log for the"
1888          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
1889          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
1890          echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
1891fi
1892rm -f conftest*
1893          CFLAGS="$ac_save_CFLAGS"
1894          LIBS="$ac_save_LIBS"
1895       fi
1896     fi
1897     GTK_CFLAGS=""
1898     GTK_LIBS=""
1899     :
1900  fi
1901 
1902 
1903  rm -f conf.gtktest
1904
1905echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1906echo "configure:1907: checking how to run the C preprocessor" >&5
1907# On Suns, sometimes $CPP names a directory.
1908if test -n "$CPP" && test -d "$CPP"; then
1909  CPP=
1910fi
1911if test -z "$CPP"; then
1912if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1913  echo $ac_n "(cached) $ac_c" 1>&6
1914else
1915    # This must be in double quotes, not single quotes, because CPP may get
1916  # substituted into the Makefile and "${CC-cc}" will confuse make.
1917  CPP="${CC-cc} -E"
1918  # On the NeXT, cc -E runs the code through the compiler's parser,
1919  # not just through cpp.
1920  cat > conftest.$ac_ext <<EOF
1921#line 1922 "configure"
1922#include "confdefs.h"
1923#include <assert.h>
1924Syntax Error
1925EOF
1926ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1927{ (eval echo configure:1928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1928ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1929if test -z "$ac_err"; then
1930  :
1931else
1932  echo "$ac_err" >&5
1933  echo "configure: failed program was:" >&5
1934  cat conftest.$ac_ext >&5
1935  rm -rf conftest*
1936  CPP="${CC-cc} -E -traditional-cpp"
1937  cat > conftest.$ac_ext <<EOF
1938#line 1939 "configure"
1939#include "confdefs.h"
1940#include <assert.h>
1941Syntax Error
1942EOF
1943ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1944{ (eval echo configure:1945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1945ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1946if test -z "$ac_err"; then
1947  :
1948else
1949  echo "$ac_err" >&5
1950  echo "configure: failed program was:" >&5
1951  cat conftest.$ac_ext >&5
1952  rm -rf conftest*
1953  CPP="${CC-cc} -nologo -E"
1954  cat > conftest.$ac_ext <<EOF
1955#line 1956 "configure"
1956#include "confdefs.h"
1957#include <assert.h>
1958Syntax Error
1959EOF
1960ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1961{ (eval echo configure:1962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1962ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1963if test -z "$ac_err"; then
1964  :
1965else
1966  echo "$ac_err" >&5
1967  echo "configure: failed program was:" >&5
1968  cat conftest.$ac_ext >&5
1969  rm -rf conftest*
1970  CPP=/lib/cpp
1971fi
1972rm -f conftest*
1973fi
1974rm -f conftest*
1975fi
1976rm -f conftest*
1977  ac_cv_prog_CPP="$CPP"
1978fi
1979  CPP="$ac_cv_prog_CPP"
1980else
1981  ac_cv_prog_CPP="$CPP"
1982fi
1983echo "$ac_t""$CPP" 1>&6
1984
1985# If we find X, set shell vars x_includes and x_libraries to the
1986# paths, otherwise set no_x=yes.
1987# Uses ac_ vars as temps to allow command line to override cache and checks.
1988# --without-x overrides everything else, but does not touch the cache.
1989echo $ac_n "checking for X""... $ac_c" 1>&6
1990echo "configure:1991: checking for X" >&5
1991
1992# Check whether --with-x or --without-x was given.
1993if test "${with_x+set}" = set; then
1994  withval="$with_x"
1995  :
1996fi
1997
1998# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1999if test "x$with_x" = xno; then
2000  # The user explicitly disabled X.
2001  have_x=disabled
2002else
2003  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2004    # Both variables are already set.
2005    have_x=yes
2006  else
2007if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2008  echo $ac_n "(cached) $ac_c" 1>&6
2009else
2010  # One or both of the vars are not set, and there is no cached value.
2011ac_x_includes=NO ac_x_libraries=NO
2012rm -fr conftestdir
2013if mkdir conftestdir; then
2014  cd conftestdir
2015  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2016  cat > Imakefile <<'EOF'
2017acfindx:
2018        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2019EOF
2020  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2021    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2022    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2023    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2024    for ac_extension in a so sl; do
2025      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2026        test -f $ac_im_libdir/libX11.$ac_extension; then
2027        ac_im_usrlibdir=$ac_im_libdir; break
2028      fi
2029    done
2030    # Screen out bogus values from the imake configuration.  They are
2031    # bogus both because they are the default anyway, and because
2032    # using them would break gcc on systems where it needs fixed includes.
2033    case "$ac_im_incroot" in
2034        /usr/include) ;;
2035        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
2036    esac
2037    case "$ac_im_usrlibdir" in
2038        /usr/lib | /lib) ;;
2039        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2040    esac
2041  fi
2042  cd ..
2043  rm -fr conftestdir
2044fi
2045
2046if test "$ac_x_includes" = NO; then
2047  # Guess where to find include files, by looking for this one X11 .h file.
2048  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2049
2050  # First, try using that file with no special directory specified.
2051cat > conftest.$ac_ext <<EOF
2052#line 2053 "configure"
2053#include "confdefs.h"
2054#include <$x_direct_test_include>
2055EOF
2056ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2057{ (eval echo configure:2058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2058ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2059if test -z "$ac_err"; then
2060  rm -rf conftest*
2061  # We can compile using X headers with no special include directory.
2062ac_x_includes=
2063else
2064  echo "$ac_err" >&5
2065  echo "configure: failed program was:" >&5
2066  cat conftest.$ac_ext >&5
2067  rm -rf conftest*
2068  # Look for the header file in a standard set of common directories.
2069# Check X11 before X11Rn because it is often a symlink to the current release.
2070  for ac_dir in               \
2071    /usr/X11/include          \
2072    /usr/X11R6/include        \
2073    /usr/X11R5/include        \
2074    /usr/X11R4/include        \
2075                              \
2076    /usr/include/X11          \
2077    /usr/include/X11R6        \
2078    /usr/include/X11R5        \
2079    /usr/include/X11R4        \
2080                              \
2081    /usr/local/X11/include    \
2082    /usr/local/X11R6/include  \
2083    /usr/local/X11R5/include  \
2084    /usr/local/X11R4/include  \
2085                              \
2086    /usr/local/include/X11    \
2087    /usr/local/include/X11R6  \
2088    /usr/local/include/X11R5  \
2089    /usr/local/include/X11R4  \
2090                              \
2091    /usr/X386/include         \
2092    /usr/x386/include         \
2093    /usr/XFree86/include/X11  \
2094                              \
2095    /usr/include              \
2096    /usr/local/include        \
2097    /usr/unsupported/include  \
2098    /usr/athena/include       \
2099    /usr/local/x11r5/include  \
2100    /usr/lpp/Xamples/include  \
2101                              \
2102    /usr/openwin/include      \
2103    /usr/openwin/share/include \
2104    ; \
2105  do
2106    if test -r "$ac_dir/$x_direct_test_include"; then
2107      ac_x_includes=$ac_dir
2108      break
2109    fi
2110  done
2111fi
2112rm -f conftest*
2113fi # $ac_x_includes = NO
2114
2115if test "$ac_x_libraries" = NO; then
2116  # Check for the libraries.
2117
2118  test -z "$x_direct_test_library" && x_direct_test_library=Xt
2119  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2120
2121  # See if we find them without any special options.
2122  # Don't add to $LIBS permanently.
2123  ac_save_LIBS="$LIBS"
2124  LIBS="-l$x_direct_test_library $LIBS"
2125cat > conftest.$ac_ext <<EOF
2126#line 2127 "configure"
2127#include "confdefs.h"
2128
2129int main() {
2130${x_direct_test_function}()
2131; return 0; }
2132EOF
2133if { (eval echo configure:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2134  rm -rf conftest*
2135  LIBS="$ac_save_LIBS"
2136# We can link X programs with no special library path.
2137ac_x_libraries=
2138else
2139  echo "configure: failed program was:" >&5
2140  cat conftest.$ac_ext >&5
2141  rm -rf conftest*
2142  LIBS="$ac_save_LIBS"
2143# First see if replacing the include by lib works.
2144# Check X11 before X11Rn because it is often a symlink to the current release.
2145for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2146    /usr/X11/lib          \
2147    /usr/X11R6/lib        \
2148    /usr/X11R5/lib        \
2149    /usr/X11R4/lib        \
2150                          \
2151    /usr/lib/X11          \
2152    /usr/lib/X11R6        \
2153    /usr/lib/X11R5        \
2154    /usr/lib/X11R4        \
2155                          \
2156    /usr/local/X11/lib    \
2157    /usr/local/X11R6/lib  \
2158    /usr/local/X11R5/lib  \
2159    /usr/local/X11R4/lib  \
2160                          \
2161    /usr/local/lib/X11    \
2162    /usr/local/lib/X11R6  \
2163    /usr/local/lib/X11R5  \
2164    /usr/local/lib/X11R4  \
2165                          \
2166    /usr/X386/lib         \
2167    /usr/x386/lib         \
2168    /usr/XFree86/lib/X11  \
2169                          \
2170    /usr/lib              \
2171    /usr/local/lib        \
2172    /usr/unsupported/lib  \
2173    /usr/athena/lib       \
2174    /usr/local/x11r5/lib  \
2175    /usr/lpp/Xamples/lib  \
2176    /lib/usr/lib/X11      \
2177                          \
2178    /usr/openwin/lib      \
2179    /usr/openwin/share/lib \
2180    ; \
2181do
2182  for ac_extension in a so sl; do
2183    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2184      ac_x_libraries=$ac_dir
2185      break 2
2186    fi
2187  done
2188done
2189fi
2190rm -f conftest*
2191fi # $ac_x_libraries = NO
2192
2193if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2194  # Didn't find X anywhere.  Cache the known absence of X.
2195  ac_cv_have_x="have_x=no"
2196else
2197  # Record where we found X for the cache.
2198  ac_cv_have_x="have_x=yes \
2199                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2200fi
2201fi
2202  fi
2203  eval "$ac_cv_have_x"
2204fi # $with_x != no
2205
2206if test "$have_x" != yes; then
2207  echo "$ac_t""$have_x" 1>&6
2208  no_x=yes
2209else
2210  # If each of the values was on the command line, it overrides each guess.
2211  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2212  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2213  # Update the cache value to reflect the command line values.
2214  ac_cv_have_x="have_x=yes \
2215                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2216  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2217fi
2218
2219if test "$no_x" = yes; then
2220  # Not all programs may use this symbol, but it does not hurt to define it.
2221  cat >> confdefs.h <<\EOF
2222#define X_DISPLAY_MISSING 1
2223EOF
2224
2225  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2226else
2227  if test -n "$x_includes"; then
2228    X_CFLAGS="$X_CFLAGS -I$x_includes"
2229  fi
2230
2231  # It would also be nice to do this for all -L options, not just this one.
2232  if test -n "$x_libraries"; then
2233    X_LIBS="$X_LIBS -L$x_libraries"
2234    # For Solaris; some versions of Sun CC require a space after -R and
2235    # others require no space.  Words are not sufficient . . . .
2236    case "`(uname -sr) 2>/dev/null`" in
2237    "SunOS 5"*)
2238      echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2239echo "configure:2240: checking whether -R must be followed by a space" >&5
2240      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2241      cat > conftest.$ac_ext <<EOF
2242#line 2243 "configure"
2243#include "confdefs.h"
2244
2245int main() {
2246
2247; return 0; }
2248EOF
2249if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2250  rm -rf conftest*
2251  ac_R_nospace=yes
2252else
2253  echo "configure: failed program was:" >&5
2254  cat conftest.$ac_ext >&5
2255  rm -rf conftest*
2256  ac_R_nospace=no
2257fi
2258rm -f conftest*
2259      if test $ac_R_nospace = yes; then
2260        echo "$ac_t""no" 1>&6
2261        X_LIBS="$X_LIBS -R$x_libraries"
2262      else
2263        LIBS="$ac_xsave_LIBS -R $x_libraries"
2264        cat > conftest.$ac_ext <<EOF
2265#line 2266 "configure"
2266#include "confdefs.h"
2267
2268int main() {
2269
2270; return 0; }
2271EOF
2272if { (eval echo configure:2273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2273  rm -rf conftest*
2274  ac_R_space=yes
2275else
2276  echo "configure: failed program was:" >&5
2277  cat conftest.$ac_ext >&5
2278  rm -rf conftest*
2279  ac_R_space=no
2280fi
2281rm -f conftest*
2282        if test $ac_R_space = yes; then
2283          echo "$ac_t""yes" 1>&6
2284          X_LIBS="$X_LIBS -R $x_libraries"
2285        else
2286          echo "$ac_t""neither works" 1>&6
2287        fi
2288      fi
2289      LIBS="$ac_xsave_LIBS"
2290    esac
2291  fi
2292
2293  # Check for system-dependent libraries X programs must link with.
2294  # Do this before checking for the system-independent R6 libraries
2295  # (-lICE), since we may need -lsocket or whatever for X linking.
2296
2297  if test "$ISC" = yes; then
2298    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2299  else
2300    # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2301    # libraries were built with DECnet support.  And karl@cs.umb.edu says
2302    # the Alpha needs dnet_stub (dnet does not exist).
2303    echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2304echo "configure:2305: checking for dnet_ntoa in -ldnet" >&5
2305ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2306if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2307  echo $ac_n "(cached) $ac_c" 1>&6
2308else
2309  ac_save_LIBS="$LIBS"
2310LIBS="-ldnet  $LIBS"
2311cat > conftest.$ac_ext <<EOF
2312#line 2313 "configure"
2313#include "confdefs.h"
2314/* Override any gcc2 internal prototype to avoid an error.  */
2315/* We use char because int might match the return type of a gcc2
2316    builtin and then its argument prototype would still apply.  */
2317char dnet_ntoa();
2318
2319int main() {
2320dnet_ntoa()
2321; return 0; }
2322EOF
2323if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2324  rm -rf conftest*
2325  eval "ac_cv_lib_$ac_lib_var=yes"
2326else
2327  echo "configure: failed program was:" >&5
2328  cat conftest.$ac_ext >&5
2329  rm -rf conftest*
2330  eval "ac_cv_lib_$ac_lib_var=no"
2331fi
2332rm -f conftest*
2333LIBS="$ac_save_LIBS"
2334
2335fi
2336if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2337  echo "$ac_t""yes" 1>&6
2338  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2339else
2340  echo "$ac_t""no" 1>&6
2341fi
2342
2343    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2344      echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2345echo "configure:2346: checking for dnet_ntoa in -ldnet_stub" >&5
2346ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2347if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2348  echo $ac_n "(cached) $ac_c" 1>&6
2349else
2350  ac_save_LIBS="$LIBS"
2351LIBS="-ldnet_stub  $LIBS"
2352cat > conftest.$ac_ext <<EOF
2353#line 2354 "configure"
2354#include "confdefs.h"
2355/* Override any gcc2 internal prototype to avoid an error.  */
2356/* We use char because int might match the return type of a gcc2
2357    builtin and then its argument prototype would still apply.  */
2358char dnet_ntoa();
2359
2360int main() {
2361dnet_ntoa()
2362; return 0; }
2363EOF
2364if { (eval echo configure:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2365  rm -rf conftest*
2366  eval "ac_cv_lib_$ac_lib_var=yes"
2367else
2368  echo "configure: failed program was:" >&5
2369  cat conftest.$ac_ext >&5
2370  rm -rf conftest*
2371  eval "ac_cv_lib_$ac_lib_var=no"
2372fi
2373rm -f conftest*
2374LIBS="$ac_save_LIBS"
2375
2376fi
2377if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2378  echo "$ac_t""yes" 1>&6
2379  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2380else
2381  echo "$ac_t""no" 1>&6
2382fi
2383
2384    fi
2385
2386    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2387    # to get the SysV transport functions.
2388    # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2389    # needs -lnsl.
2390    # The nsl library prevents programs from opening the X display
2391    # on Irix 5.2, according to dickey@clark.net.
2392    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2393echo "configure:2394: checking for gethostbyname" >&5
2394if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2395  echo $ac_n "(cached) $ac_c" 1>&6
2396else
2397  cat > conftest.$ac_ext <<EOF
2398#line 2399 "configure"
2399#include "confdefs.h"
2400/* System header to define __stub macros and hopefully few prototypes,
2401    which can conflict with char gethostbyname(); below.  */
2402#include <assert.h>
2403/* Override any gcc2 internal prototype to avoid an error.  */
2404/* We use char because int might match the return type of a gcc2
2405    builtin and then its argument prototype would still apply.  */
2406char gethostbyname();
2407
2408int main() {
2409
2410/* The GNU C library defines this for functions which it implements
2411    to always fail with ENOSYS.  Some functions are actually named
2412    something starting with __ and the normal name is an alias.  */
2413#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2414choke me
2415#else
2416gethostbyname();
2417#endif
2418
2419; return 0; }
2420EOF
2421if { (eval echo configure:2422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2422  rm -rf conftest*
2423  eval "ac_cv_func_gethostbyname=yes"
2424else
2425  echo "configure: failed program was:" >&5
2426  cat conftest.$ac_ext >&5
2427  rm -rf conftest*
2428  eval "ac_cv_func_gethostbyname=no"
2429fi
2430rm -f conftest*
2431fi
2432
2433if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2434  echo "$ac_t""yes" 1>&6
2435  :
2436else
2437  echo "$ac_t""no" 1>&6
2438fi
2439
2440    if test $ac_cv_func_gethostbyname = no; then
2441      echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2442echo "configure:2443: checking for gethostbyname in -lnsl" >&5
2443ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2444if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2445  echo $ac_n "(cached) $ac_c" 1>&6
2446else
2447  ac_save_LIBS="$LIBS"
2448LIBS="-lnsl  $LIBS"
2449cat > conftest.$ac_ext <<EOF
2450#line 2451 "configure"
2451#include "confdefs.h"
2452/* Override any gcc2 internal prototype to avoid an error.  */
2453/* We use char because int might match the return type of a gcc2
2454    builtin and then its argument prototype would still apply.  */
2455char gethostbyname();
2456
2457int main() {
2458gethostbyname()
2459; return 0; }
2460EOF
2461if { (eval echo configure:2462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2462  rm -rf conftest*
2463  eval "ac_cv_lib_$ac_lib_var=yes"
2464else
2465  echo "configure: failed program was:" >&5
2466  cat conftest.$ac_ext >&5
2467  rm -rf conftest*
2468  eval "ac_cv_lib_$ac_lib_var=no"
2469fi
2470rm -f conftest*
2471LIBS="$ac_save_LIBS"
2472
2473fi
2474if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2475  echo "$ac_t""yes" 1>&6
2476  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2477else
2478  echo "$ac_t""no" 1>&6
2479fi
2480
2481    fi
2482
2483    # lieder@skyler.mavd.honeywell.com says without -lsocket,
2484    # socket/setsockopt and other routines are undefined under SCO ODT
2485    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
2486    # on later versions), says simon@lia.di.epfl.ch: it contains
2487    # gethostby* variants that don't use the nameserver (or something).
2488    # -lsocket must be given before -lnsl if both are needed.
2489    # We assume that if connect needs -lnsl, so does gethostbyname.
2490    echo $ac_n "checking for connect""... $ac_c" 1>&6
2491echo "configure:2492: checking for connect" >&5
2492if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2493  echo $ac_n "(cached) $ac_c" 1>&6
2494else
2495  cat > conftest.$ac_ext <<EOF
2496#line 2497 "configure"
2497#include "confdefs.h"
2498/* System header to define __stub macros and hopefully few prototypes,
2499    which can conflict with char connect(); below.  */
2500#include <assert.h>
2501/* Override any gcc2 internal prototype to avoid an error.  */
2502/* We use char because int might match the return type of a gcc2
2503    builtin and then its argument prototype would still apply.  */
2504char connect();
2505
2506int main() {
2507
2508/* The GNU C library defines this for functions which it implements
2509    to always fail with ENOSYS.  Some functions are actually named
2510    something starting with __ and the normal name is an alias.  */
2511#if defined (__stub_connect) || defined (__stub___connect)
2512choke me
2513#else
2514connect();
2515#endif
2516
2517; return 0; }
2518EOF
2519if { (eval echo configure:2520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2520  rm -rf conftest*
2521  eval "ac_cv_func_connect=yes"
2522else
2523  echo "configure: failed program was:" >&5
2524  cat conftest.$ac_ext >&5
2525  rm -rf conftest*
2526  eval "ac_cv_func_connect=no"
2527fi
2528rm -f conftest*
2529fi
2530
2531if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2532  echo "$ac_t""yes" 1>&6
2533  :
2534else
2535  echo "$ac_t""no" 1>&6
2536fi
2537
2538    if test $ac_cv_func_connect = no; then
2539      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2540echo "configure:2541: checking for connect in -lsocket" >&5
2541ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2542if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2543  echo $ac_n "(cached) $ac_c" 1>&6
2544else
2545  ac_save_LIBS="$LIBS"
2546LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2547cat > conftest.$ac_ext <<EOF
2548#line 2549 "configure"
2549#include "confdefs.h"
2550/* Override any gcc2 internal prototype to avoid an error.  */
2551/* We use char because int might match the return type of a gcc2
2552    builtin and then its argument prototype would still apply.  */
2553char connect();
2554
2555int main() {
2556connect()
2557; return 0; }
2558EOF
2559if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2560  rm -rf conftest*
2561  eval "ac_cv_lib_$ac_lib_var=yes"
2562else
2563  echo "configure: failed program was:" >&5
2564  cat conftest.$ac_ext >&5
2565  rm -rf conftest*
2566  eval "ac_cv_lib_$ac_lib_var=no"
2567fi
2568rm -f conftest*
2569LIBS="$ac_save_LIBS"
2570
2571fi
2572if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2573  echo "$ac_t""yes" 1>&6
2574  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2575else
2576  echo "$ac_t""no" 1>&6
2577fi
2578
2579    fi
2580
2581    # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2582    echo $ac_n "checking for remove""... $ac_c" 1>&6
2583echo "configure:2584: checking for remove" >&5
2584if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2585  echo $ac_n "(cached) $ac_c" 1>&6
2586else
2587  cat > conftest.$ac_ext <<EOF
2588#line 2589 "configure"
2589#include "confdefs.h"
2590/* System header to define __stub macros and hopefully few prototypes,
2591    which can conflict with char remove(); below.  */
2592#include <assert.h>
2593/* Override any gcc2 internal prototype to avoid an error.  */
2594/* We use char because int might match the return type of a gcc2
2595    builtin and then its argument prototype would still apply.  */
2596char remove();
2597
2598int main() {
2599
2600/* The GNU C library defines this for functions which it implements
2601    to always fail with ENOSYS.  Some functions are actually named
2602    something starting with __ and the normal name is an alias.  */
2603#if defined (__stub_remove) || defined (__stub___remove)
2604choke me
2605#else
2606remove();
2607#endif
2608
2609; return 0; }
2610EOF
2611if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2612  rm -rf conftest*
2613  eval "ac_cv_func_remove=yes"
2614else
2615  echo "configure: failed program was:" >&5
2616  cat conftest.$ac_ext >&5
2617  rm -rf conftest*
2618  eval "ac_cv_func_remove=no"
2619fi
2620rm -f conftest*
2621fi
2622
2623if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2624  echo "$ac_t""yes" 1>&6
2625  :
2626else
2627  echo "$ac_t""no" 1>&6
2628fi
2629
2630    if test $ac_cv_func_remove = no; then
2631      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2632echo "configure:2633: checking for remove in -lposix" >&5
2633ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2634if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2635  echo $ac_n "(cached) $ac_c" 1>&6
2636else
2637  ac_save_LIBS="$LIBS"
2638LIBS="-lposix  $LIBS"
2639cat > conftest.$ac_ext <<EOF
2640#line 2641 "configure"
2641#include "confdefs.h"
2642/* Override any gcc2 internal prototype to avoid an error.  */
2643/* We use char because int might match the return type of a gcc2
2644    builtin and then its argument prototype would still apply.  */
2645char remove();
2646
2647int main() {
2648remove()
2649; return 0; }
2650EOF
2651if { (eval echo configure:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2652  rm -rf conftest*
2653  eval "ac_cv_lib_$ac_lib_var=yes"
2654else
2655  echo "configure: failed program was:" >&5
2656  cat conftest.$ac_ext >&5
2657  rm -rf conftest*
2658  eval "ac_cv_lib_$ac_lib_var=no"
2659fi
2660rm -f conftest*
2661LIBS="$ac_save_LIBS"
2662
2663fi
2664if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2665  echo "$ac_t""yes" 1>&6
2666  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2667else
2668  echo "$ac_t""no" 1>&6
2669fi
2670
2671    fi
2672
2673    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2674    echo $ac_n "checking for shmat""... $ac_c" 1>&6
2675echo "configure:2676: checking for shmat" >&5
2676if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2677  echo $ac_n "(cached) $ac_c" 1>&6
2678else
2679  cat > conftest.$ac_ext <<EOF
2680#line 2681 "configure"
2681#include "confdefs.h"
2682/* System header to define __stub macros and hopefully few prototypes,
2683    which can conflict with char shmat(); below.  */
2684#include <assert.h>
2685/* Override any gcc2 internal prototype to avoid an error.  */
2686/* We use char because int might match the return type of a gcc2
2687    builtin and then its argument prototype would still apply.  */
2688char shmat();
2689
2690int main() {
2691
2692/* The GNU C library defines this for functions which it implements
2693    to always fail with ENOSYS.  Some functions are actually named
2694    something starting with __ and the normal name is an alias.  */
2695#if defined (__stub_shmat) || defined (__stub___shmat)
2696choke me
2697#else
2698shmat();
2699#endif
2700
2701; return 0; }
2702EOF
2703if { (eval echo configure:2704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2704  rm -rf conftest*
2705  eval "ac_cv_func_shmat=yes"
2706else
2707  echo "configure: failed program was:" >&5
2708  cat conftest.$ac_ext >&5
2709  rm -rf conftest*
2710  eval "ac_cv_func_shmat=no"
2711fi
2712rm -f conftest*
2713fi
2714
2715if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2716  echo "$ac_t""yes" 1>&6
2717  :
2718else
2719  echo "$ac_t""no" 1>&6
2720fi
2721
2722    if test $ac_cv_func_shmat = no; then
2723      echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2724echo "configure:2725: checking for shmat in -lipc" >&5
2725ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2726if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2727  echo $ac_n "(cached) $ac_c" 1>&6
2728else
2729  ac_save_LIBS="$LIBS"
2730LIBS="-lipc  $LIBS"
2731cat > conftest.$ac_ext <<EOF
2732#line 2733 "configure"
2733#include "confdefs.h"
2734/* Override any gcc2 internal prototype to avoid an error.  */
2735/* We use char because int might match the return type of a gcc2
2736    builtin and then its argument prototype would still apply.  */
2737char shmat();
2738
2739int main() {
2740shmat()
2741; return 0; }
2742EOF
2743if { (eval echo configure:2744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2744  rm -rf conftest*
2745  eval "ac_cv_lib_$ac_lib_var=yes"
2746else
2747  echo "configure: failed program was:" >&5
2748  cat conftest.$ac_ext >&5
2749  rm -rf conftest*
2750  eval "ac_cv_lib_$ac_lib_var=no"
2751fi
2752rm -f conftest*
2753LIBS="$ac_save_LIBS"
2754
2755fi
2756if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2757  echo "$ac_t""yes" 1>&6
2758  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2759else
2760  echo "$ac_t""no" 1>&6
2761fi
2762
2763    fi
2764  fi
2765
2766  # Check for libraries that X11R6 Xt/Xaw programs need.
2767  ac_save_LDFLAGS="$LDFLAGS"
2768  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2769  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2770  # check for ICE first), but we must link in the order -lSM -lICE or
2771  # we get undefined symbols.  So assume we have SM if we have ICE.
2772  # These have to be linked with before -lX11, unlike the other
2773  # libraries we check for below, so use a different variable.
2774  #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2775  echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2776echo "configure:2777: checking for IceConnectionNumber in -lICE" >&5
2777ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2778if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2779  echo $ac_n "(cached) $ac_c" 1>&6
2780else
2781  ac_save_LIBS="$LIBS"
2782LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2783cat > conftest.$ac_ext <<EOF
2784#line 2785 "configure"
2785#include "confdefs.h"
2786/* Override any gcc2 internal prototype to avoid an error.  */
2787/* We use char because int might match the return type of a gcc2
2788    builtin and then its argument prototype would still apply.  */
2789char IceConnectionNumber();
2790
2791int main() {
2792IceConnectionNumber()
2793; return 0; }
2794EOF
2795if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2796  rm -rf conftest*
2797  eval "ac_cv_lib_$ac_lib_var=yes"
2798else
2799  echo "configure: failed program was:" >&5
2800  cat conftest.$ac_ext >&5
2801  rm -rf conftest*
2802  eval "ac_cv_lib_$ac_lib_var=no"
2803fi
2804rm -f conftest*
2805LIBS="$ac_save_LIBS"
2806
2807fi
2808if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2809  echo "$ac_t""yes" 1>&6
2810  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2811else
2812  echo "$ac_t""no" 1>&6
2813fi
2814
2815  LDFLAGS="$ac_save_LDFLAGS"
2816
2817fi
2818
2819
2820for ac_func in unsetenv
2821do
2822echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2823echo "configure:2824: checking for $ac_func" >&5
2824if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2825  echo $ac_n "(cached) $ac_c" 1>&6
2826else
2827  cat > conftest.$ac_ext <<EOF
2828#line 2829 "configure"
2829#include "confdefs.h"
2830/* System header to define __stub macros and hopefully few prototypes,
2831    which can conflict with char $ac_func(); below.  */
2832#include <assert.h>
2833/* Override any gcc2 internal prototype to avoid an error.  */
2834/* We use char because int might match the return type of a gcc2
2835    builtin and then its argument prototype would still apply.  */
2836char $ac_func();
2837
2838int main() {
2839
2840/* The GNU C library defines this for functions which it implements
2841    to always fail with ENOSYS.  Some functions are actually named
2842    something starting with __ and the normal name is an alias.  */
2843#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2844choke me
2845#else
2846$ac_func();
2847#endif
2848
2849; return 0; }
2850EOF
2851if { (eval echo configure:2852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2852  rm -rf conftest*
2853  eval "ac_cv_func_$ac_func=yes"
2854else
2855  echo "configure: failed program was:" >&5
2856  cat conftest.$ac_ext >&5
2857  rm -rf conftest*
2858  eval "ac_cv_func_$ac_func=no"
2859fi
2860rm -f conftest*
2861fi
2862
2863if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2864  echo "$ac_t""yes" 1>&6
2865    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2866  cat >> confdefs.h <<EOF
2867#define $ac_tr_func 1
2868EOF
2869 
2870else
2871  echo "$ac_t""no" 1>&6
2872fi
2873done
2874
2875
2876echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2877echo "configure:2878: checking for getopt_long" >&5
2878if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2879  echo $ac_n "(cached) $ac_c" 1>&6
2880else
2881  cat > conftest.$ac_ext <<EOF
2882#line 2883 "configure"
2883#include "confdefs.h"
2884/* System header to define __stub macros and hopefully few prototypes,
2885    which can conflict with char getopt_long(); below.  */
2886#include <assert.h>
2887/* Override any gcc2 internal prototype to avoid an error.  */
2888/* We use char because int might match the return type of a gcc2
2889    builtin and then its argument prototype would still apply.  */
2890char getopt_long();
2891
2892int main() {
2893
2894/* The GNU C library defines this for functions which it implements
2895    to always fail with ENOSYS.  Some functions are actually named
2896    something starting with __ and the normal name is an alias.  */
2897#if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2898choke me
2899#else
2900getopt_long();
2901#endif
2902
2903; return 0; }
2904EOF
2905if { (eval echo configure:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2906  rm -rf conftest*
2907  eval "ac_cv_func_getopt_long=yes"
2908else
2909  echo "configure: failed program was:" >&5
2910  cat conftest.$ac_ext >&5
2911  rm -rf conftest*
2912  eval "ac_cv_func_getopt_long=no"
2913fi
2914rm -f conftest*
2915fi
2916
2917if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2918  echo "$ac_t""yes" 1>&6
2919  :
2920else
2921  echo "$ac_t""no" 1>&6
2922LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2923fi
2924
2925
2926
2927
2928ac_safe=`echo "/lib/ld-linux.so.1" | sed 'y%./+-%__p_%'`
2929echo $ac_n "checking for /lib/ld-linux.so.1""... $ac_c" 1>&6
2930echo "configure:2931: checking for /lib/ld-linux.so.1" >&5
2931if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
2932  echo $ac_n "(cached) $ac_c" 1>&6
2933else
2934  if test "$cross_compiling" = yes; then
2935    { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
2936else
2937  if test -r /lib/ld-linux.so.1; then
2938    eval "ac_cv_file_$ac_safe=yes"
2939  else
2940    eval "ac_cv_file_$ac_safe=no"
2941  fi
2942fi
2943fi
2944if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
2945  echo "$ac_t""yes" 1>&6
2946  cat >> confdefs.h <<\EOF
2947#define MULTI_PRELOAD 1
2948EOF
2949
2950else
2951  echo "$ac_t""no" 1>&6
2952
2953fi
2954
2955
2956ac_safe=`echo "/lib/ld-linux.so.2" | sed 'y%./+-%__p_%'`
2957echo $ac_n "checking for /lib/ld-linux.so.2""... $ac_c" 1>&6
2958echo "configure:2959: checking for /lib/ld-linux.so.2" >&5
2959if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
2960  echo $ac_n "(cached) $ac_c" 1>&6
2961else
2962  if test "$cross_compiling" = yes; then
2963    { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
2964else
2965  if test -r /lib/ld-linux.so.2; then
2966    eval "ac_cv_file_$ac_safe=yes"
2967  else
2968    eval "ac_cv_file_$ac_safe=no"
2969  fi
2970fi
2971fi
2972if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
2973  echo "$ac_t""yes" 1>&6
2974  cat >> confdefs.h <<\EOF
2975#define MULTI_PRELOAD 1
2976EOF
2977
2978else
2979  echo "$ac_t""no" 1>&6
2980
2981fi
2982
2983
2984# Check whether --enable-capplet or --disable-capplet was given.
2985if test "${enable_capplet+set}" = set; then
2986  enableval="$enable_capplet"
2987  enable_capplet="$enableval"
2988else
2989  enable_capplet=yes
2990fi
2991 
2992if test "$enable_capplet" = "yes"; then                                         
2993  echo $ac_n "checking for GNOME control center config""... $ac_c" 1>&6
2994echo "configure:2995: checking for GNOME control center config" >&5                           
2995  GNOME_CC_CFLAGS="`gnome-config --cflags capplet`"                             
2996  GNOME_CC_LIBS="`gnome-config --libs capplet`"                                 
2997  if test $? -ne 0; then                                                       
2998    echo "$ac_t""no" 1>&6                                                         
2999    echo "configure: warning: Can't run "gnome-config capplet", not building capplet" 1>&2       
3000    enable_capplet=no
3001  else                                                                         
3002    echo "$ac_t""yes" 1>&6                                                       
3003                                                       
3004                                                         
3005  fi                                                                           
3006fi   
3007
3008
3009if test x$enable_capplet = xyes; then
3010  COMPILE_CAPPLET_TRUE=
3011  COMPILE_CAPPLET_FALSE='#'
3012else
3013  COMPILE_CAPPLET_TRUE='#'
3014  COMPILE_CAPPLET_FALSE=
3015fi
3016
3017case "$host" in
3018  *-sgi-irix6*)
3019    need_ldinit=yes
3020        /usr/sbin/getabi add "$CFLAGS" > /dev/null 2>&1
3021    case $? in
3022      3)
3023        cat >> confdefs.h <<\EOF
3024#define RLD_LIST "_RLDN32_LIST"
3025EOF
3026
3027        ;;
3028      *)
3029        cat >> confdefs.h <<\EOF
3030#define RLD_LIST "_RLD_LIST"
3031EOF
3032
3033        ;;
3034    esac
3035    ;;
3036  *)
3037    need_ldinit=no
3038    ;;
3039esac
3040
3041
3042if test x$need_ldinit = xyes; then
3043  NEED_LD_INIT_OPTION_TRUE=
3044  NEED_LD_INIT_OPTION_FALSE='#'
3045else
3046  NEED_LD_INIT_OPTION_TRUE='#'
3047  NEED_LD_INIT_OPTION_FALSE=
3048fi
3049
3050cat >> confdefs.h <<\EOF
3051#define DEFAULT_TIMEOUT 240
3052EOF
3053
3054
3055trap '' 1 2 15
3056cat > confcache <<\EOF
3057# This file is a shell script that caches the results of configure
3058# tests run on this system so they can be shared between configure
3059# scripts and configure runs.  It is not useful on other systems.
3060# If it contains results you don't want to keep, you may remove or edit it.
3061#
3062# By default, configure uses ./config.cache as the cache file,
3063# creating it if it does not exist already.  You can give configure
3064# the --cache-file=FILE option to use a different cache file; that is
3065# what configure does when it calls configure scripts in
3066# subdirectories, so they share the cache.
3067# Giving --cache-file=/dev/null disables caching, for debugging configure.
3068# config.status only pays attention to the cache file if you give it the
3069# --recheck option to rerun configure.
3070#
3071EOF
3072# The following way of writing the cache mishandles newlines in values,
3073# but we know of no workaround that is simple, portable, and efficient.
3074# So, don't put newlines in cache variables' values.
3075# Ultrix sh set writes to stderr and can't be redirected directly,
3076# and sets the high bit in the cache file unless we assign to the vars.
3077(set) 2>&1 |
3078  case `(ac_space=' '; set | grep ac_space) 2>&1` in
3079  *ac_space=\ *)
3080    # `set' does not quote correctly, so add quotes (double-quote substitution
3081    # turns \\\\ into \\, and sed turns \\ into \).
3082    sed -n \
3083      -e "s/'/'\\\\''/g" \
3084      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3085    ;;
3086  *)
3087    # `set' quotes correctly as required by POSIX, so do not add quotes.
3088    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3089    ;;
3090  esac >> confcache
3091if cmp -s $cache_file confcache; then
3092  :
3093else
3094  if test -w $cache_file; then
3095    echo "updating cache $cache_file"
3096    cat confcache > $cache_file
3097  else
3098    echo "not updating unwritable cache $cache_file"
3099  fi
3100fi
3101rm -f confcache
3102
3103trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3104
3105test "x$prefix" = xNONE && prefix=$ac_default_prefix
3106# Let make expand exec_prefix.
3107test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3108
3109# Any assignment to VPATH causes Sun make to only execute
3110# the first set of double-colon rules, so remove it if not needed.
3111# If there is a colon in the path, we need to keep it.
3112if test "x$srcdir" = x.; then
3113  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3114fi
3115
3116trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3117
3118DEFS=-DHAVE_CONFIG_H
3119
3120# Without the "./", some shells look in PATH for config.status.
3121: ${CONFIG_STATUS=./config.status}
3122
3123echo creating $CONFIG_STATUS
3124rm -f $CONFIG_STATUS
3125cat > $CONFIG_STATUS <<EOF
3126#! /bin/sh
3127# Generated automatically by configure.
3128# Run this file to recreate the current configuration.
3129# This directory was configured as follows,
3130# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3131#
3132# $0 $ac_configure_args
3133#
3134# Compiler output produced by configure, useful for debugging
3135# configure, is in ./config.log if it exists.
3136
3137ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3138for ac_option
3139do
3140  case "\$ac_option" in
3141  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3142    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3143    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3144  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3145    echo "$CONFIG_STATUS generated by autoconf version 2.13"
3146    exit 0 ;;
3147  -help | --help | --hel | --he | --h)
3148    echo "\$ac_cs_usage"; exit 0 ;;
3149  *) echo "\$ac_cs_usage"; exit 1 ;;
3150  esac
3151done
3152
3153ac_given_srcdir=$srcdir
3154ac_given_INSTALL="$INSTALL"
3155
3156trap 'rm -fr `echo "Makefile
3157extras/Makefile
3158lib/Makefile
3159src/Makefile
3160capplet/Makefile
3161 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3162EOF
3163cat >> $CONFIG_STATUS <<EOF
3164
3165# Protect against being on the right side of a sed subst in config.status.
3166sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3167 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3168$ac_vpsub
3169$extrasub
3170s%@SHELL@%$SHELL%g
3171s%@CFLAGS@%$CFLAGS%g
3172s%@CPPFLAGS@%$CPPFLAGS%g
3173s%@CXXFLAGS@%$CXXFLAGS%g
3174s%@FFLAGS@%$FFLAGS%g
3175s%@DEFS@%$DEFS%g
3176s%@LDFLAGS@%$LDFLAGS%g
3177s%@LIBS@%$LIBS%g
3178s%@exec_prefix@%$exec_prefix%g
3179s%@prefix@%$prefix%g
3180s%@program_transform_name@%$program_transform_name%g
3181s%@bindir@%$bindir%g
3182s%@sbindir@%$sbindir%g
3183s%@libexecdir@%$libexecdir%g
3184s%@datadir@%$datadir%g
3185s%@sysconfdir@%$sysconfdir%g
3186s%@sharedstatedir@%$sharedstatedir%g
3187s%@localstatedir@%$localstatedir%g
3188s%@libdir@%$libdir%g
3189s%@includedir@%$includedir%g
3190s%@oldincludedir@%$oldincludedir%g
3191s%@infodir@%$infodir%g
3192s%@mandir@%$mandir%g
3193s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3194s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3195s%@INSTALL_DATA@%$INSTALL_DATA%g
3196s%@PACKAGE@%$PACKAGE%g
3197s%@VERSION@%$VERSION%g
3198s%@ACLOCAL@%$ACLOCAL%g
3199s%@AUTOCONF@%$AUTOCONF%g
3200s%@AUTOMAKE@%$AUTOMAKE%g
3201s%@AUTOHEADER@%$AUTOHEADER%g
3202s%@MAKEINFO@%$MAKEINFO%g
3203s%@SET_MAKE@%$SET_MAKE%g
3204s%@CC@%$CC%g
3205s%@host@%$host%g
3206s%@host_alias@%$host_alias%g
3207s%@host_cpu@%$host_cpu%g
3208s%@host_vendor@%$host_vendor%g
3209s%@host_os@%$host_os%g
3210s%@build@%$build%g
3211s%@build_alias@%$build_alias%g
3212s%@build_cpu@%$build_cpu%g
3213s%@build_vendor@%$build_vendor%g
3214s%@build_os@%$build_os%g
3215s%@RANLIB@%$RANLIB%g
3216s%@LN_S@%$LN_S%g
3217s%@LIBTOOL@%$LIBTOOL%g
3218s%@GTK_CONFIG@%$GTK_CONFIG%g
3219s%@GTK_CFLAGS@%$GTK_CFLAGS%g
3220s%@GTK_LIBS@%$GTK_LIBS%g
3221s%@CPP@%$CPP%g
3222s%@X_CFLAGS@%$X_CFLAGS%g
3223s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3224s%@X_LIBS@%$X_LIBS%g
3225s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3226s%@LIBOBJS@%$LIBOBJS%g
3227s%@GNOME_CC_CFLAGS@%$GNOME_CC_CFLAGS%g
3228s%@GNOME_CC_LIBS@%$GNOME_CC_LIBS%g
3229s%@COMPILE_CAPPLET_TRUE@%$COMPILE_CAPPLET_TRUE%g
3230s%@COMPILE_CAPPLET_FALSE@%$COMPILE_CAPPLET_FALSE%g
3231s%@NEED_LD_INIT_OPTION_TRUE@%$NEED_LD_INIT_OPTION_TRUE%g
3232s%@NEED_LD_INIT_OPTION_FALSE@%$NEED_LD_INIT_OPTION_FALSE%g
3233
3234CEOF
3235EOF
3236
3237cat >> $CONFIG_STATUS <<\EOF
3238
3239# Split the substitutions into bite-sized pieces for seds with
3240# small command number limits, like on Digital OSF/1 and HP-UX.
3241ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3242ac_file=1 # Number of current file.
3243ac_beg=1 # First line for current file.
3244ac_end=$ac_max_sed_cmds # Line after last line for current file.
3245ac_more_lines=:
3246ac_sed_cmds=""
3247while $ac_more_lines; do
3248  if test $ac_beg -gt 1; then
3249    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3250  else
3251    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3252  fi
3253  if test ! -s conftest.s$ac_file; then
3254    ac_more_lines=false
3255    rm -f conftest.s$ac_file
3256  else
3257    if test -z "$ac_sed_cmds"; then
3258      ac_sed_cmds="sed -f conftest.s$ac_file"
3259    else
3260      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3261    fi
3262    ac_file=`expr $ac_file + 1`
3263    ac_beg=$ac_end
3264    ac_end=`expr $ac_end + $ac_max_sed_cmds`
3265  fi
3266done
3267if test -z "$ac_sed_cmds"; then
3268  ac_sed_cmds=cat
3269fi
3270EOF
3271
3272cat >> $CONFIG_STATUS <<EOF
3273
3274CONFIG_FILES=\${CONFIG_FILES-"Makefile
3275extras/Makefile
3276lib/Makefile
3277src/Makefile
3278capplet/Makefile
3279"}
3280EOF
3281cat >> $CONFIG_STATUS <<\EOF
3282for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3283  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3284  case "$ac_file" in
3285  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3286       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3287  *) ac_file_in="${ac_file}.in" ;;
3288  esac
3289
3290  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3291
3292  # Remove last slash and all that follows it.  Not all systems have dirname.
3293  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3294  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3295    # The file is in a subdirectory.
3296    test ! -d "$ac_dir" && mkdir "$ac_dir"
3297    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3298    # A "../" for each directory in $ac_dir_suffix.
3299    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3300  else
3301    ac_dir_suffix= ac_dots=
3302  fi
3303
3304  case "$ac_given_srcdir" in
3305  .)  srcdir=.
3306      if test -z "$ac_dots"; then top_srcdir=.
3307      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3308  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3309  *) # Relative path.
3310    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3311    top_srcdir="$ac_dots$ac_given_srcdir" ;;
3312  esac
3313
3314  case "$ac_given_INSTALL" in
3315  [/$]*) INSTALL="$ac_given_INSTALL" ;;
3316  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3317  esac
3318
3319  echo creating "$ac_file"
3320  rm -f "$ac_file"
3321  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3322  case "$ac_file" in
3323  *Makefile*) ac_comsub="1i\\
3324# $configure_input" ;;
3325  *) ac_comsub= ;;
3326  esac
3327
3328  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3329  sed -e "$ac_comsub
3330s%@configure_input@%$configure_input%g
3331s%@srcdir@%$srcdir%g
3332s%@top_srcdir@%$top_srcdir%g
3333s%@INSTALL@%$INSTALL%g
3334" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3335fi; done
3336rm -f conftest.s*
3337
3338# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3339# NAME is the cpp macro being defined and VALUE is the value it is being given.
3340#
3341# ac_d sets the value in "#define NAME VALUE" lines.
3342ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3343ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3344ac_dC='\3'
3345ac_dD='%g'
3346# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3347ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3348ac_uB='\([      ]\)%\1#\2define\3'
3349ac_uC=' '
3350ac_uD='\4%g'
3351# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3352ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3353ac_eB='$%\1#\2define\3'
3354ac_eC=' '
3355ac_eD='%g'
3356
3357if test "${CONFIG_HEADERS+set}" != set; then
3358EOF
3359cat >> $CONFIG_STATUS <<EOF
3360  CONFIG_HEADERS="config.h"
3361EOF
3362cat >> $CONFIG_STATUS <<\EOF
3363fi
3364for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3365  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3366  case "$ac_file" in
3367  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3368       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3369  *) ac_file_in="${ac_file}.in" ;;
3370  esac
3371
3372  echo creating $ac_file
3373
3374  rm -f conftest.frag conftest.in conftest.out
3375  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3376  cat $ac_file_inputs > conftest.in
3377
3378EOF
3379
3380# Transform confdefs.h into a sed script conftest.vals that substitutes
3381# the proper values into config.h.in to produce config.h.  And first:
3382# Protect against being on the right side of a sed subst in config.status.
3383# Protect against being in an unquoted here document in config.status.
3384rm -f conftest.vals
3385cat > conftest.hdr <<\EOF
3386s/[\\&%]/\\&/g
3387s%[\\$`]%\\&%g
3388s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3389s%ac_d%ac_u%gp
3390s%ac_u%ac_e%gp
3391EOF
3392sed -n -f conftest.hdr confdefs.h > conftest.vals
3393rm -f conftest.hdr
3394
3395# This sed command replaces #undef with comments.  This is necessary, for
3396# example, in the case of _POSIX_SOURCE, which is predefined and required
3397# on some systems where configure will not decide to define it.
3398cat >> conftest.vals <<\EOF
3399s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3400EOF
3401
3402# Break up conftest.vals because some shells have a limit on
3403# the size of here documents, and old seds have small limits too.
3404
3405rm -f conftest.tail
3406while :
3407do
3408  ac_lines=`grep -c . conftest.vals`
3409  # grep -c gives empty output for an empty file on some AIX systems.
3410  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3411  # Write a limited-size here document to conftest.frag.
3412  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3413  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3414  echo 'CEOF
3415  sed -f conftest.frag conftest.in > conftest.out
3416  rm -f conftest.in
3417  mv conftest.out conftest.in
3418' >> $CONFIG_STATUS
3419  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3420  rm -f conftest.vals
3421  mv conftest.tail conftest.vals
3422done
3423rm -f conftest.vals
3424
3425cat >> $CONFIG_STATUS <<\EOF
3426  rm -f conftest.frag conftest.h
3427  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3428  cat conftest.in >> conftest.h
3429  rm -f conftest.in
3430  if cmp -s $ac_file conftest.h 2>/dev/null; then
3431    echo "$ac_file is unchanged"
3432    rm -f conftest.h
3433  else
3434    # Remove last slash and all that follows it.  Not all systems have dirname.
3435      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3436      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3437      # The file is in a subdirectory.
3438      test ! -d "$ac_dir" && mkdir "$ac_dir"
3439    fi
3440    rm -f $ac_file
3441    mv conftest.h $ac_file
3442  fi
3443fi; done
3444
3445EOF
3446cat >> $CONFIG_STATUS <<EOF
3447
3448
3449EOF
3450cat >> $CONFIG_STATUS <<\EOF
3451test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3452
3453exit 0
3454EOF
3455chmod +x $CONFIG_STATUS
3456rm -fr confdefs* $ac_clean_files
3457test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3458
3459
Note: See TracBrowser for help on using the repository browser.