source: trunk/third/gtk/configure @ 17071

Revision 17071, 206.0 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17070, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
RevLine 
[14481]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:
14#
15# Making releases:
16#   GTK_MICRO_VERSION += 1;
17#   GTK_INTERFACE_AGE += 1;
18#   GTK_BINARY_AGE += 1;
19# if any functions have been added, set GTK_INTERFACE_AGE to 0.
20# if backwards compatibility has been broken,
21# set GTK_BINARY_AGE and GTK_INTERFACE_AGE to 0.
22#
23GTK_MAJOR_VERSION=1
24GTK_MINOR_VERSION=2
[17070]25GTK_MICRO_VERSION=10
26GTK_INTERFACE_AGE=1
27GTK_BINARY_AGE=10
[14481]28GTK_VERSION=$GTK_MAJOR_VERSION.$GTK_MINOR_VERSION.$GTK_MICRO_VERSION
29ac_help="$ac_help
30  --enable-shared[=PKGS]  build shared libraries [default=yes]"
31ac_help="$ac_help
32  --enable-static[=PKGS]  build static libraries [default=yes]"
33ac_help="$ac_help
34  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
35ac_help="$ac_help
36  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
37ac_help="$ac_help
38  --disable-libtool-lock  avoid locking (might break parallel builds)"
39ac_help="$ac_help
40  --enable-maintainer-mode enable make rules and dependencies not useful
41                          (and sometimes confusing) to the casual installer"
42if test `expr $GTK_MINOR_VERSION \% 2` = 1 ; then
43        debug_default=yes
44else
45        debug_default=minimum
46fi
47ac_help="$ac_help
48  --enable-debug=[no/minimum/yes] turn on debugging [default=$debug_default]"
49ac_help="$ac_help
50  --enable-shm            support shared memory if available [default=yes]"
51ac_help="$ac_help
52  --enable-ansi           turn on strict ansi [default=no]"
53ac_help="$ac_help
54  --with-glib=DIR         Use uninstalled copy of glib"
55ac_help="$ac_help
56  --enable-xim            support XIM [default=yes]"
57ac_help="$ac_help
58  --disable-xim-inst      does not use xim instantiate callback"
59ac_help="$ac_help
60  --disable-rebuilds      disable all source autogeneration rules"
61ac_help="$ac_help
62  --with-locale=LOCALE    locale name you want to use "
63ac_help="$ac_help
64  --with-xinput=[no/gxi/xfree] support XInput "
65ac_help="$ac_help
[15780]66  --with-native-locale=[yes/no] Use native locale support [default=no]"
67ac_help="$ac_help
[14481]68  --disable-nls           do not use Native Language Support"
69ac_help="$ac_help
70  --with-catgets          use catgets functions if available"
71ac_help="$ac_help
72  --with-glib-prefix=PFX   Prefix where GLIB is installed (optional)"
73ac_help="$ac_help
74  --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
75ac_help="$ac_help
76  --disable-glibtest       Do not try to compile and run a test GLIB program"
77ac_help="$ac_help
78  --with-x                use the X Window System"
79
80# Initialize some variables set by options.
81# The variables have the same names as the options, with
82# dashes changed to underlines.
83build=NONE
84cache_file=./config.cache
85exec_prefix=NONE
86host=NONE
87no_create=
88nonopt=NONE
89no_recursion=
90prefix=NONE
91program_prefix=NONE
92program_suffix=NONE
93program_transform_name=s,x,x,
94silent=
95site=
96srcdir=
97target=NONE
98verbose=
99x_includes=NONE
100x_libraries=NONE
101bindir='${exec_prefix}/bin'
102sbindir='${exec_prefix}/sbin'
103libexecdir='${exec_prefix}/libexec'
104datadir='${prefix}/share'
105sysconfdir='${prefix}/etc'
106sharedstatedir='${prefix}/com'
107localstatedir='${prefix}/var'
108libdir='${exec_prefix}/lib'
109includedir='${prefix}/include'
110oldincludedir='/usr/include'
111infodir='${prefix}/info'
112mandir='${prefix}/man'
113
114# Initialize some other variables.
115subdirs=
116MFLAGS= MAKEFLAGS=
117SHELL=${CONFIG_SHELL-/bin/sh}
118# Maximum number of lines to put in a shell here document.
119ac_max_here_lines=12
120
121ac_prev=
122for ac_option
123do
124
125  # If the previous option needs an argument, assign it.
126  if test -n "$ac_prev"; then
127    eval "$ac_prev=\$ac_option"
128    ac_prev=
129    continue
130  fi
131
132  case "$ac_option" in
133  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
134  *) ac_optarg= ;;
135  esac
136
137  # Accept the important Cygnus configure options, so we can diagnose typos.
138
139  case "$ac_option" in
140
141  -bindir | --bindir | --bindi | --bind | --bin | --bi)
142    ac_prev=bindir ;;
143  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
144    bindir="$ac_optarg" ;;
145
146  -build | --build | --buil | --bui | --bu)
147    ac_prev=build ;;
148  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
149    build="$ac_optarg" ;;
150
151  -cache-file | --cache-file | --cache-fil | --cache-fi \
152  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
153    ac_prev=cache_file ;;
154  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
155  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
156    cache_file="$ac_optarg" ;;
157
158  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
159    ac_prev=datadir ;;
160  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
161  | --da=*)
162    datadir="$ac_optarg" ;;
163
164  -disable-* | --disable-*)
165    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
166    # Reject names that are not valid shell variable names.
167    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
168      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169    fi
170    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
171    eval "enable_${ac_feature}=no" ;;
172
173  -enable-* | --enable-*)
174    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
175    # Reject names that are not valid shell variable names.
176    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
177      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178    fi
179    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180    case "$ac_option" in
181      *=*) ;;
182      *) ac_optarg=yes ;;
183    esac
184    eval "enable_${ac_feature}='$ac_optarg'" ;;
185
186  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
187  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
188  | --exec | --exe | --ex)
189    ac_prev=exec_prefix ;;
190  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
191  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
192  | --exec=* | --exe=* | --ex=*)
193    exec_prefix="$ac_optarg" ;;
194
195  -gas | --gas | --ga | --g)
196    # Obsolete; use --with-gas.
197    with_gas=yes ;;
198
199  -help | --help | --hel | --he)
200    # Omit some internal or obsolete options to make the list less imposing.
201    # This message is too long to be a string in the A/UX 3.1 sh.
202    cat << EOF
203Usage: configure [options] [host]
204Options: [defaults in brackets after descriptions]
205Configuration:
206  --cache-file=FILE       cache test results in FILE
207  --help                  print this message
208  --no-create             do not create output files
209  --quiet, --silent       do not print \`checking...' messages
210  --version               print the version of autoconf that created configure
211Directory and file names:
212  --prefix=PREFIX         install architecture-independent files in PREFIX
213                          [$ac_default_prefix]
214  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
215                          [same as prefix]
216  --bindir=DIR            user executables in DIR [EPREFIX/bin]
217  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
218  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
219  --datadir=DIR           read-only architecture-independent data in DIR
220                          [PREFIX/share]
221  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
222  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
223                          [PREFIX/com]
224  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
225  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
226  --includedir=DIR        C header files in DIR [PREFIX/include]
227  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
228  --infodir=DIR           info documentation in DIR [PREFIX/info]
229  --mandir=DIR            man documentation in DIR [PREFIX/man]
230  --srcdir=DIR            find the sources in DIR [configure dir or ..]
231  --program-prefix=PREFIX prepend PREFIX to installed program names
232  --program-suffix=SUFFIX append SUFFIX to installed program names
233  --program-transform-name=PROGRAM
234                          run sed PROGRAM on installed program names
235EOF
236    cat << EOF
237Host type:
238  --build=BUILD           configure for building on BUILD [BUILD=HOST]
239  --host=HOST             configure for HOST [guessed]
240  --target=TARGET         configure for TARGET [TARGET=HOST]
241Features and packages:
242  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
243  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
244  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
245  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
246  --x-includes=DIR        X include files are in DIR
247  --x-libraries=DIR       X library files are in DIR
248EOF
249    if test -n "$ac_help"; then
250      echo "--enable and --with options recognized:$ac_help"
251    fi
252    exit 0 ;;
253
254  -host | --host | --hos | --ho)
255    ac_prev=host ;;
256  -host=* | --host=* | --hos=* | --ho=*)
257    host="$ac_optarg" ;;
258
259  -includedir | --includedir | --includedi | --included | --include \
260  | --includ | --inclu | --incl | --inc)
261    ac_prev=includedir ;;
262  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
263  | --includ=* | --inclu=* | --incl=* | --inc=*)
264    includedir="$ac_optarg" ;;
265
266  -infodir | --infodir | --infodi | --infod | --info | --inf)
267    ac_prev=infodir ;;
268  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
269    infodir="$ac_optarg" ;;
270
271  -libdir | --libdir | --libdi | --libd)
272    ac_prev=libdir ;;
273  -libdir=* | --libdir=* | --libdi=* | --libd=*)
274    libdir="$ac_optarg" ;;
275
276  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
277  | --libexe | --libex | --libe)
278    ac_prev=libexecdir ;;
279  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
280  | --libexe=* | --libex=* | --libe=*)
281    libexecdir="$ac_optarg" ;;
282
283  -localstatedir | --localstatedir | --localstatedi | --localstated \
284  | --localstate | --localstat | --localsta | --localst \
285  | --locals | --local | --loca | --loc | --lo)
286    ac_prev=localstatedir ;;
287  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
288  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
289  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
290    localstatedir="$ac_optarg" ;;
291
292  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
293    ac_prev=mandir ;;
294  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
295    mandir="$ac_optarg" ;;
296
297  -nfp | --nfp | --nf)
298    # Obsolete; use --without-fp.
299    with_fp=no ;;
300
301  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
302  | --no-cr | --no-c)
303    no_create=yes ;;
304
305  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
306  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
307    no_recursion=yes ;;
308
309  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
310  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
311  | --oldin | --oldi | --old | --ol | --o)
312    ac_prev=oldincludedir ;;
313  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
314  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
315  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
316    oldincludedir="$ac_optarg" ;;
317
318  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
319    ac_prev=prefix ;;
320  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
321    prefix="$ac_optarg" ;;
322
323  -program-prefix | --program-prefix | --program-prefi | --program-pref \
324  | --program-pre | --program-pr | --program-p)
325    ac_prev=program_prefix ;;
326  -program-prefix=* | --program-prefix=* | --program-prefi=* \
327  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
328    program_prefix="$ac_optarg" ;;
329
330  -program-suffix | --program-suffix | --program-suffi | --program-suff \
331  | --program-suf | --program-su | --program-s)
332    ac_prev=program_suffix ;;
333  -program-suffix=* | --program-suffix=* | --program-suffi=* \
334  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
335    program_suffix="$ac_optarg" ;;
336
337  -program-transform-name | --program-transform-name \
338  | --program-transform-nam | --program-transform-na \
339  | --program-transform-n | --program-transform- \
340  | --program-transform | --program-transfor \
341  | --program-transfo | --program-transf \
342  | --program-trans | --program-tran \
343  | --progr-tra | --program-tr | --program-t)
344    ac_prev=program_transform_name ;;
345  -program-transform-name=* | --program-transform-name=* \
346  | --program-transform-nam=* | --program-transform-na=* \
347  | --program-transform-n=* | --program-transform-=* \
348  | --program-transform=* | --program-transfor=* \
349  | --program-transfo=* | --program-transf=* \
350  | --program-trans=* | --program-tran=* \
351  | --progr-tra=* | --program-tr=* | --program-t=*)
352    program_transform_name="$ac_optarg" ;;
353
354  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
355  | -silent | --silent | --silen | --sile | --sil)
356    silent=yes ;;
357
358  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
359    ac_prev=sbindir ;;
360  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
361  | --sbi=* | --sb=*)
362    sbindir="$ac_optarg" ;;
363
364  -sharedstatedir | --sharedstatedir | --sharedstatedi \
365  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
366  | --sharedst | --shareds | --shared | --share | --shar \
367  | --sha | --sh)
368    ac_prev=sharedstatedir ;;
369  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
370  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
371  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
372  | --sha=* | --sh=*)
373    sharedstatedir="$ac_optarg" ;;
374
375  -site | --site | --sit)
376    ac_prev=site ;;
377  -site=* | --site=* | --sit=*)
378    site="$ac_optarg" ;;
379
380  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
381    ac_prev=srcdir ;;
382  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
383    srcdir="$ac_optarg" ;;
384
385  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
386  | --syscon | --sysco | --sysc | --sys | --sy)
387    ac_prev=sysconfdir ;;
388  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
389  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
390    sysconfdir="$ac_optarg" ;;
391
392  -target | --target | --targe | --targ | --tar | --ta | --t)
393    ac_prev=target ;;
394  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
395    target="$ac_optarg" ;;
396
397  -v | -verbose | --verbose | --verbos | --verbo | --verb)
398    verbose=yes ;;
399
400  -version | --version | --versio | --versi | --vers)
401    echo "configure generated by autoconf version 2.13"
402    exit 0 ;;
403
404  -with-* | --with-*)
405    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
406    # Reject names that are not valid shell variable names.
407    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
408      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409    fi
410    ac_package=`echo $ac_package| sed 's/-/_/g'`
411    case "$ac_option" in
412      *=*) ;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "with_${ac_package}='$ac_optarg'" ;;
416
417  -without-* | --without-*)
418    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
419    # Reject names that are not valid shell variable names.
420    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
421      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422    fi
423    ac_package=`echo $ac_package| sed 's/-/_/g'`
424    eval "with_${ac_package}=no" ;;
425
426  --x)
427    # Obsolete; use --with-x.
428    with_x=yes ;;
429
430  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
431  | --x-incl | --x-inc | --x-in | --x-i)
432    ac_prev=x_includes ;;
433  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
434  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
435    x_includes="$ac_optarg" ;;
436
437  -x-libraries | --x-libraries | --x-librarie | --x-librari \
438  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
439    ac_prev=x_libraries ;;
440  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
441  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
442    x_libraries="$ac_optarg" ;;
443
444  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
445    ;;
446
447  *)
448    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
449      echo "configure: warning: $ac_option: invalid host type" 1>&2
450    fi
451    if test "x$nonopt" != xNONE; then
452      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
453    fi
454    nonopt="$ac_option"
455    ;;
456
457  esac
458done
459
460if test -n "$ac_prev"; then
461  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
462fi
463
464trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
465
466# File descriptor usage:
467# 0 standard input
468# 1 file creation
469# 2 errors and warnings
470# 3 some systems may open it to /dev/tty
471# 4 used on the Kubota Titan
472# 6 checking for... messages and results
473# 5 compiler messages saved in config.log
474if test "$silent" = yes; then
475  exec 6>/dev/null
476else
477  exec 6>&1
478fi
479exec 5>./config.log
480
481echo "\
482This file contains any messages produced by compilers while
483running configure, to aid debugging if configure makes a mistake.
484" 1>&5
485
486# Strip out --no-create and --no-recursion so they do not pile up.
487# Also quote any args containing shell metacharacters.
488ac_configure_args=
489for ac_arg
490do
491  case "$ac_arg" in
492  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
493  | --no-cr | --no-c) ;;
494  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
496  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
497  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
498  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
499  esac
500done
501
502# NLS nuisances.
503# Only set these to C if already set.  These must not be set unconditionally
504# because not all systems understand e.g. LANG=C (notably SCO).
505# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
506# Non-C LC_CTYPE values break the ctype check.
507if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
508if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
509if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
510if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
511
512# confdefs.h avoids OS command line length limits that DEFS can exceed.
513rm -rf conftest* confdefs.h
514# AIX cpp loses on an empty file, so make sure it contains at least a newline.
515echo > confdefs.h
516
517# A filename unique to this package, relative to the directory that
518# configure is in, which we can look for to find out if srcdir is correct.
519ac_unique_file=gdk/gdktypes.h
520
521# Find the source files, if location was not specified.
522if test -z "$srcdir"; then
523  ac_srcdir_defaulted=yes
524  # Try the directory containing this script, then its parent.
525  ac_prog=$0
526  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
527  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
528  srcdir=$ac_confdir
529  if test ! -r $srcdir/$ac_unique_file; then
530    srcdir=..
531  fi
532else
533  ac_srcdir_defaulted=no
534fi
535if test ! -r $srcdir/$ac_unique_file; then
536  if test "$ac_srcdir_defaulted" = yes; then
537    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
538  else
539    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
540  fi
541fi
542srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
543
544# Prefer explicitly selected file to automatically selected ones.
545if test -z "$CONFIG_SITE"; then
546  if test "x$prefix" != xNONE; then
547    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
548  else
549    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
550  fi
551fi
552for ac_site_file in $CONFIG_SITE; do
553  if test -r "$ac_site_file"; then
554    echo "loading site script $ac_site_file"
555    . "$ac_site_file"
556  fi
557done
558
559if test -r "$cache_file"; then
560  echo "loading cache $cache_file"
561  . $cache_file
562else
563  echo "creating cache $cache_file"
564  > $cache_file
565fi
566
567ac_ext=c
568# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
569ac_cpp='$CPP $CPPFLAGS'
570ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
571ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
572cross_compiling=$ac_cv_prog_cc_cross
573
574ac_exeext=
575ac_objext=o
576if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
577  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
579    ac_n= ac_c='
580' ac_t='        '
581  else
582    ac_n=-n ac_c= ac_t=
583  fi
584else
585  ac_n= ac_c='\c' ac_t=
586fi
587
588
589
590# In the following, there are a the following variants
591# of GLib cflags and libs variables
592#
593# GLIB_CFLAGS:  cflags for compiling libraries and example progs
594# GLIB_LIBS:    libraries for linking example programs
595# GLIB_DEPLIBS: libraries for linking libraries against
596# glib_cflags:  cflags to store in gtk-config
597# glib_libs:    libs to store in gtk-config
598# glib_thread_cflags: cflags to store in gtk-config for gtk-config gthread
599# glib_thread_libs:   libs to store in gtk-config for gtk-config gthread
600
601# Save this value here, since automake will set cflags later
602cflags_set=${CFLAGS+set}
603
604
605
606
607
608
609
610
611
612# libtool versioning
613LT_RELEASE=$GTK_MAJOR_VERSION.$GTK_MINOR_VERSION
614LT_CURRENT=`expr $GTK_MICRO_VERSION - $GTK_INTERFACE_AGE`
615LT_REVISION=$GTK_INTERFACE_AGE
616LT_AGE=`expr $GTK_BINARY_AGE - $GTK_INTERFACE_AGE`
617
618
619
620
621
622# For automake.
623VERSION=$GTK_VERSION
624PACKAGE=gtk+
625
626# Save this value here, since automake will set cflags later
627cflags_set=${CFLAGS+set}
628
629ac_aux_dir=
630for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
631  if test -f $ac_dir/install-sh; then
632    ac_aux_dir=$ac_dir
633    ac_install_sh="$ac_aux_dir/install-sh -c"
634    break
635  elif test -f $ac_dir/install.sh; then
636    ac_aux_dir=$ac_dir
637    ac_install_sh="$ac_aux_dir/install.sh -c"
638    break
639  fi
640done
641if test -z "$ac_aux_dir"; then
642  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
643fi
644ac_config_guess=$ac_aux_dir/config.guess
645ac_config_sub=$ac_aux_dir/config.sub
646ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
647
648# Find a good install program.  We prefer a C program (faster),
649# so one script is as good as another.  But avoid the broken or
650# incompatible versions:
651# SysV /etc/install, /usr/sbin/install
652# SunOS /usr/etc/install
653# IRIX /sbin/install
654# AIX /bin/install
655# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
656# AFS /usr/afsws/bin/install, which mishandles nonexistent args
657# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
658# ./install, which can be erroneously created by make from ./install.sh.
659echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
[15780]660echo "configure:661: checking for a BSD compatible install" >&5
[14481]661if test -z "$INSTALL"; then
662if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
663  echo $ac_n "(cached) $ac_c" 1>&6
664else
665    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
666  for ac_dir in $PATH; do
667    # Account for people who put trailing slashes in PATH elements.
668    case "$ac_dir/" in
669    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
670    *)
671      # OSF1 and SCO ODT 3.0 have their own names for install.
672      # Don't use installbsd from OSF since it installs stuff as root
673      # by default.
674      for ac_prog in ginstall scoinst install; do
675        if test -f $ac_dir/$ac_prog; then
676          if test $ac_prog = install &&
677            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
678            # AIX install.  It has an incompatible calling convention.
679            :
680          else
681            ac_cv_path_install="$ac_dir/$ac_prog -c"
682            break 2
683          fi
684        fi
685      done
686      ;;
687    esac
688  done
689  IFS="$ac_save_IFS"
690
691fi
692  if test "${ac_cv_path_install+set}" = set; then
693    INSTALL="$ac_cv_path_install"
694  else
695    # As a last resort, use the slow shell script.  We don't cache a
696    # path for INSTALL within a source directory, because that will
697    # break other packages using the cache if that directory is
698    # removed, or if the path is relative.
699    INSTALL="$ac_install_sh"
700  fi
701fi
702echo "$ac_t""$INSTALL" 1>&6
703
704# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
705# It thinks the first close brace ends the variable substitution.
706test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
707
708test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
709
710test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
711
712echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
[15780]713echo "configure:714: checking whether build environment is sane" >&5
[14481]714# Just in case
715sleep 1
716echo timestamp > conftestfile
717# Do `set' in a subshell so we don't clobber the current shell's
718# arguments.  Must try -L first in case configure is actually a
719# symlink; some systems play weird games with the mod time of symlinks
720# (eg FreeBSD returns the mod time of the symlink's containing
721# directory).
722if (
723   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
724   if test "$*" = "X"; then
725      # -L didn't work.
726      set X `ls -t $srcdir/configure conftestfile`
727   fi
728   if test "$*" != "X $srcdir/configure conftestfile" \
729      && test "$*" != "X conftestfile $srcdir/configure"; then
730
731      # If neither matched, then we have a broken ls.  This can happen
732      # if, for instance, CONFIG_SHELL is bash and it inherits a
733      # broken ls alias from the environment.  This has actually
734      # happened.  Such a system could not be considered "sane".
735      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
736alias in your environment" 1>&2; exit 1; }
737   fi
738
739   test "$2" = conftestfile
740   )
741then
742   # Ok.
743   :
744else
745   { echo "configure: error: newly created file is older than distributed files!
746Check your system clock" 1>&2; exit 1; }
747fi
748rm -f conftest*
749echo "$ac_t""yes" 1>&6
750if test "$program_transform_name" = s,x,x,; then
751  program_transform_name=
752else
753  # Double any \ or $.  echo might interpret backslashes.
754  cat <<\EOF_SED > conftestsed
755s,\\,\\\\,g; s,\$,$$,g
756EOF_SED
757  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
758  rm -f conftestsed
759fi
760test "$program_prefix" != NONE &&
761  program_transform_name="s,^,${program_prefix},; $program_transform_name"
762# Use a double $ so make ignores it.
763test "$program_suffix" != NONE &&
764  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
765
766# sed with no file args requires a program.
767test "$program_transform_name" = "" && program_transform_name="s,x,x,"
768
769echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
[15780]770echo "configure:771: checking whether ${MAKE-make} sets \${MAKE}" >&5
[14481]771set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
772if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
773  echo $ac_n "(cached) $ac_c" 1>&6
774else
775  cat > conftestmake <<\EOF
776all:
777        @echo 'ac_maketemp="${MAKE}"'
778EOF
779# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
780eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
781if test -n "$ac_maketemp"; then
782  eval ac_cv_prog_make_${ac_make}_set=yes
783else
784  eval ac_cv_prog_make_${ac_make}_set=no
785fi
786rm -f conftestmake
787fi
788if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
789  echo "$ac_t""yes" 1>&6
790  SET_MAKE=
791else
792  echo "$ac_t""no" 1>&6
793  SET_MAKE="MAKE=${MAKE-make}"
794fi
795
796
797PACKAGE=$PACKAGE
798
799VERSION=$VERSION
800
801if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
802  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
803fi
804
805
806
807missing_dir=`cd $ac_aux_dir && pwd`
808echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
[15780]809echo "configure:810: checking for working aclocal" >&5
[14481]810# Run test in a subshell; some versions of sh will print an error if
811# an executable is not found, even if stderr is redirected.
812# Redirect stdin to placate older versions of autoconf.  Sigh.
813if (aclocal --version) < /dev/null > /dev/null 2>&1; then
814   ACLOCAL=aclocal
815   echo "$ac_t""found" 1>&6
816else
817   ACLOCAL="$missing_dir/missing aclocal"
818   echo "$ac_t""missing" 1>&6
819fi
820
821echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
[15780]822echo "configure:823: checking for working autoconf" >&5
[14481]823# Run test in a subshell; some versions of sh will print an error if
824# an executable is not found, even if stderr is redirected.
825# Redirect stdin to placate older versions of autoconf.  Sigh.
826if (autoconf --version) < /dev/null > /dev/null 2>&1; then
827   AUTOCONF=autoconf
828   echo "$ac_t""found" 1>&6
829else
830   AUTOCONF="$missing_dir/missing autoconf"
831   echo "$ac_t""missing" 1>&6
832fi
833
834echo $ac_n "checking for working automake""... $ac_c" 1>&6
[15780]835echo "configure:836: checking for working automake" >&5
[14481]836# Run test in a subshell; some versions of sh will print an error if
837# an executable is not found, even if stderr is redirected.
838# Redirect stdin to placate older versions of autoconf.  Sigh.
839if (automake --version) < /dev/null > /dev/null 2>&1; then
840   AUTOMAKE=automake
841   echo "$ac_t""found" 1>&6
842else
843   AUTOMAKE="$missing_dir/missing automake"
844   echo "$ac_t""missing" 1>&6
845fi
846
847echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
[15780]848echo "configure:849: checking for working autoheader" >&5
[14481]849# Run test in a subshell; some versions of sh will print an error if
850# an executable is not found, even if stderr is redirected.
851# Redirect stdin to placate older versions of autoconf.  Sigh.
852if (autoheader --version) < /dev/null > /dev/null 2>&1; then
853   AUTOHEADER=autoheader
854   echo "$ac_t""found" 1>&6
855else
856   AUTOHEADER="$missing_dir/missing autoheader"
857   echo "$ac_t""missing" 1>&6
858fi
859
860echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
[15780]861echo "configure:862: checking for working makeinfo" >&5
[14481]862# Run test in a subshell; some versions of sh will print an error if
863# an executable is not found, even if stderr is redirected.
864# Redirect stdin to placate older versions of autoconf.  Sigh.
865if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
866   MAKEINFO=makeinfo
867   echo "$ac_t""found" 1>&6
868else
869   MAKEINFO="$missing_dir/missing makeinfo"
870   echo "$ac_t""missing" 1>&6
871fi
872
873
874
875# Specify a configuration file
876
877
878
879
880# Check whether --enable-shared or --disable-shared was given.
881if test "${enable_shared+set}" = set; then
882  enableval="$enable_shared"
883  p=${PACKAGE-default}
884case "$enableval" in
885yes) enable_shared=yes ;;
886no) enable_shared=no ;;
887*)
888  enable_shared=no
889  # Look at the argument we got.  We use all the common list separators.
890  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
891  for pkg in $enableval; do
892    if test "X$pkg" = "X$p"; then
893      enable_shared=yes
894    fi
895  done
896  IFS="$ac_save_ifs"
897  ;;
898esac
899else
900  enable_shared=yes
901fi
902
903# Check whether --enable-static or --disable-static was given.
904if test "${enable_static+set}" = set; then
905  enableval="$enable_static"
906  p=${PACKAGE-default}
907case "$enableval" in
908yes) enable_static=yes ;;
909no) enable_static=no ;;
910*)
911  enable_static=no
912  # Look at the argument we got.  We use all the common list separators.
913  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
914  for pkg in $enableval; do
915    if test "X$pkg" = "X$p"; then
916      enable_static=yes
917    fi
918  done
919  IFS="$ac_save_ifs"
920  ;;
921esac
922else
923  enable_static=yes
924fi
925
926# Check whether --enable-fast-install or --disable-fast-install was given.
927if test "${enable_fast_install+set}" = set; then
928  enableval="$enable_fast_install"
929  p=${PACKAGE-default}
930case "$enableval" in
931yes) enable_fast_install=yes ;;
932no) enable_fast_install=no ;;
933*)
934  enable_fast_install=no
935  # Look at the argument we got.  We use all the common list separators.
936  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
937  for pkg in $enableval; do
938    if test "X$pkg" = "X$p"; then
939      enable_fast_install=yes
940    fi
941  done
942  IFS="$ac_save_ifs"
943  ;;
944esac
945else
946  enable_fast_install=yes
947fi
948
949
950# Make sure we can run config.sub.
951if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
952else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
953fi
954
955echo $ac_n "checking host system type""... $ac_c" 1>&6
[15780]956echo "configure:957: checking host system type" >&5
[14481]957
958host_alias=$host
959case "$host_alias" in
960NONE)
961  case $nonopt in
962  NONE)
963    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
964    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
965    fi ;;
966  *) host_alias=$nonopt ;;
967  esac ;;
968esac
969
970host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
971host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
972host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
973host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
974echo "$ac_t""$host" 1>&6
975
976echo $ac_n "checking build system type""... $ac_c" 1>&6
[15780]977echo "configure:978: checking build system type" >&5
[14481]978
979build_alias=$build
980case "$build_alias" in
981NONE)
982  case $nonopt in
983  NONE) build_alias=$host_alias ;;
984  *) build_alias=$nonopt ;;
985  esac ;;
986esac
987
988build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
989build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
990build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
991build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
992echo "$ac_t""$build" 1>&6
993
994# Extract the first word of "ranlib", so it can be a program name with args.
995set dummy ranlib; ac_word=$2
996echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[15780]997echo "configure:998: checking for $ac_word" >&5
[14481]998if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
999  echo $ac_n "(cached) $ac_c" 1>&6
1000else
1001  if test -n "$RANLIB"; then
1002  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1003else
1004  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1005  ac_dummy="$PATH"
1006  for ac_dir in $ac_dummy; do
1007    test -z "$ac_dir" && ac_dir=.
1008    if test -f $ac_dir/$ac_word; then
1009      ac_cv_prog_RANLIB="ranlib"
1010      break
1011    fi
1012  done
1013  IFS="$ac_save_ifs"
1014  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1015fi
1016fi
1017RANLIB="$ac_cv_prog_RANLIB"
1018if test -n "$RANLIB"; then
1019  echo "$ac_t""$RANLIB" 1>&6
1020else
1021  echo "$ac_t""no" 1>&6
1022fi
1023
1024# Extract the first word of "gcc", so it can be a program name with args.
1025set dummy gcc; ac_word=$2
1026echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[15780]1027echo "configure:1028: checking for $ac_word" >&5
[14481]1028if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1029  echo $ac_n "(cached) $ac_c" 1>&6
1030else
1031  if test -n "$CC"; then
1032  ac_cv_prog_CC="$CC" # Let the user override the test.
1033else
1034  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1035  ac_dummy="$PATH"
1036  for ac_dir in $ac_dummy; do
1037    test -z "$ac_dir" && ac_dir=.
1038    if test -f $ac_dir/$ac_word; then
1039      ac_cv_prog_CC="gcc"
1040      break
1041    fi
1042  done
1043  IFS="$ac_save_ifs"
1044fi
1045fi
1046CC="$ac_cv_prog_CC"
1047if test -n "$CC"; then
1048  echo "$ac_t""$CC" 1>&6
1049else
1050  echo "$ac_t""no" 1>&6
1051fi
1052
1053if test -z "$CC"; then
1054  # Extract the first word of "cc", so it can be a program name with args.
1055set dummy cc; ac_word=$2
1056echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[15780]1057echo "configure:1058: checking for $ac_word" >&5
[14481]1058if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1059  echo $ac_n "(cached) $ac_c" 1>&6
1060else
1061  if test -n "$CC"; then
1062  ac_cv_prog_CC="$CC" # Let the user override the test.
1063else
1064  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1065  ac_prog_rejected=no
1066  ac_dummy="$PATH"
1067  for ac_dir in $ac_dummy; do
1068    test -z "$ac_dir" && ac_dir=.
1069    if test -f $ac_dir/$ac_word; then
1070      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1071        ac_prog_rejected=yes
1072        continue
1073      fi
1074      ac_cv_prog_CC="cc"
1075      break
1076    fi
1077  done
1078  IFS="$ac_save_ifs"
1079if test $ac_prog_rejected = yes; then
1080  # We found a bogon in the path, so make sure we never use it.
1081  set dummy $ac_cv_prog_CC
1082  shift
1083  if test $# -gt 0; then
1084    # We chose a different compiler from the bogus one.
1085    # However, it has the same basename, so the bogon will be chosen
1086    # first if we set CC to just the basename; use the full file name.
1087    shift
1088    set dummy "$ac_dir/$ac_word" "$@"
1089    shift
1090    ac_cv_prog_CC="$@"
1091  fi
1092fi
1093fi
1094fi
1095CC="$ac_cv_prog_CC"
1096if test -n "$CC"; then
1097  echo "$ac_t""$CC" 1>&6
1098else
1099  echo "$ac_t""no" 1>&6
1100fi
1101
1102  if test -z "$CC"; then
1103    case "`uname -s`" in
1104    *win32* | *WIN32*)
1105      # Extract the first word of "cl", so it can be a program name with args.
1106set dummy cl; ac_word=$2
1107echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[15780]1108echo "configure:1109: checking for $ac_word" >&5
[14481]1109if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1110  echo $ac_n "(cached) $ac_c" 1>&6
1111else
1112  if test -n "$CC"; then
1113  ac_cv_prog_CC="$CC" # Let the user override the test.
1114else
1115  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1116  ac_dummy="$PATH"
1117  for ac_dir in $ac_dummy; do
1118    test -z "$ac_dir" && ac_dir=.
1119    if test -f $ac_dir/$ac_word; then
1120      ac_cv_prog_CC="cl"
1121      break
1122    fi
1123  done
1124  IFS="$ac_save_ifs"
1125fi
1126fi
1127CC="$ac_cv_prog_CC"
1128if test -n "$CC"; then
1129  echo "$ac_t""$CC" 1>&6
1130else
1131  echo "$ac_t""no" 1>&6
1132fi
1133 ;;
1134    esac
1135  fi
1136  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1137fi
1138
1139echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
[15780]1140echo "configure:1141: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
[14481]1141
1142ac_ext=c
1143# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1144ac_cpp='$CPP $CPPFLAGS'
1145ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1146ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1147cross_compiling=$ac_cv_prog_cc_cross
1148
1149cat > conftest.$ac_ext << EOF
1150
[15780]1151#line 1152 "configure"
[14481]1152#include "confdefs.h"
1153
1154main(){return(0);}
1155EOF
[15780]1156if { (eval echo configure:1157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]1157  ac_cv_prog_cc_works=yes
1158  # If we can't run a trivial program, we are probably using a cross compiler.
1159  if (./conftest; exit) 2>/dev/null; then
1160    ac_cv_prog_cc_cross=no
1161  else
1162    ac_cv_prog_cc_cross=yes
1163  fi
1164else
1165  echo "configure: failed program was:" >&5
1166  cat conftest.$ac_ext >&5
1167  ac_cv_prog_cc_works=no
1168fi
1169rm -fr conftest*
1170ac_ext=c
1171# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1172ac_cpp='$CPP $CPPFLAGS'
1173ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1174ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1175cross_compiling=$ac_cv_prog_cc_cross
1176
1177echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1178if test $ac_cv_prog_cc_works = no; then
1179  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1180fi
1181echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
[15780]1182echo "configure:1183: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
[14481]1183echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1184cross_compiling=$ac_cv_prog_cc_cross
1185
1186echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
[15780]1187echo "configure:1188: checking whether we are using GNU C" >&5
[14481]1188if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1189  echo $ac_n "(cached) $ac_c" 1>&6
1190else
1191  cat > conftest.c <<EOF
1192#ifdef __GNUC__
1193  yes;
1194#endif
1195EOF
[15780]1196if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
[14481]1197  ac_cv_prog_gcc=yes
1198else
1199  ac_cv_prog_gcc=no
1200fi
1201fi
1202
1203echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1204
1205if test $ac_cv_prog_gcc = yes; then
1206  GCC=yes
1207else
1208  GCC=
1209fi
1210
1211ac_test_CFLAGS="${CFLAGS+set}"
1212ac_save_CFLAGS="$CFLAGS"
1213CFLAGS=
1214echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
[15780]1215echo "configure:1216: checking whether ${CC-cc} accepts -g" >&5
[14481]1216if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1217  echo $ac_n "(cached) $ac_c" 1>&6
1218else
1219  echo 'void f(){}' > conftest.c
1220if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1221  ac_cv_prog_cc_g=yes
1222else
1223  ac_cv_prog_cc_g=no
1224fi
1225rm -f conftest*
1226
1227fi
1228
1229echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1230if test "$ac_test_CFLAGS" = set; then
1231  CFLAGS="$ac_save_CFLAGS"
1232elif test $ac_cv_prog_cc_g = yes; then
1233  if test "$GCC" = yes; then
1234    CFLAGS="-g -O2"
1235  else
1236    CFLAGS="-g"
1237  fi
1238else
1239  if test "$GCC" = yes; then
1240    CFLAGS="-O2"
1241  else
1242    CFLAGS=
1243  fi
1244fi
1245
1246# Check whether --with-gnu-ld or --without-gnu-ld was given.
1247if test "${with_gnu_ld+set}" = set; then
1248  withval="$with_gnu_ld"
1249  test "$withval" = no || with_gnu_ld=yes
1250else
1251  with_gnu_ld=no
1252fi
1253
1254ac_prog=ld
1255if test "$ac_cv_prog_gcc" = yes; then
1256  # Check if gcc -print-prog-name=ld gives a path.
1257  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
[15780]1258echo "configure:1259: checking for ld used by GCC" >&5
[14481]1259  ac_prog=`($CC -print-prog-name=ld) 2>&5`
1260  case "$ac_prog" in
1261    # Accept absolute paths.
1262    [\\/]* | [A-Za-z]:[\\/]*)
1263      re_direlt='/[^/][^/]*/\.\./'
1264      # Canonicalize the path of ld
1265      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1266      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1267        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1268      done
1269      test -z "$LD" && LD="$ac_prog"
1270      ;;
1271  "")
1272    # If it fails, then pretend we aren't using GCC.
1273    ac_prog=ld
1274    ;;
1275  *)
1276    # If it is relative, then search for the first ld in PATH.
1277    with_gnu_ld=unknown
1278    ;;
1279  esac
1280elif test "$with_gnu_ld" = yes; then
1281  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
[15780]1282echo "configure:1283: checking for GNU ld" >&5
[14481]1283else
1284  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
[15780]1285echo "configure:1286: checking for non-GNU ld" >&5
[14481]1286fi
1287if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1288  echo $ac_n "(cached) $ac_c" 1>&6
1289else
1290  if test -z "$LD"; then
1291  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1292  for ac_dir in $PATH; do
1293    test -z "$ac_dir" && ac_dir=.
1294    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1295      ac_cv_path_LD="$ac_dir/$ac_prog"
1296      # Check to see if the program is GNU ld.  I'd rather use --version,
1297      # but apparently some GNU ld's only accept -v.
1298      # Break only if it was the GNU/non-GNU ld that we prefer.
1299      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1300        test "$with_gnu_ld" != no && break
1301      else
1302        test "$with_gnu_ld" != yes && break
1303      fi
1304    fi
1305  done
1306  IFS="$ac_save_ifs"
1307else
1308  ac_cv_path_LD="$LD" # Let the user override the test with a path.
1309fi
1310fi
1311
1312LD="$ac_cv_path_LD"
1313if test -n "$LD"; then
1314  echo "$ac_t""$LD" 1>&6
1315else
1316  echo "$ac_t""no" 1>&6
1317fi
1318test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1319echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
[15780]1320echo "configure:1321: checking if the linker ($LD) is GNU ld" >&5
[14481]1321if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1322  echo $ac_n "(cached) $ac_c" 1>&6
1323else
1324  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1325if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1326  ac_cv_prog_gnu_ld=yes
1327else
1328  ac_cv_prog_gnu_ld=no
1329fi
1330fi
1331
1332echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1333
1334
1335echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
[15780]1336echo "configure:1337: checking for BSD-compatible nm" >&5
[14481]1337if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1338  echo $ac_n "(cached) $ac_c" 1>&6
1339else
1340  if test -n "$NM"; then
1341  # Let the user override the test.
1342  ac_cv_path_NM="$NM"
1343else
1344  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1345  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1346    test -z "$ac_dir" && ac_dir=.
1347    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1348      # Check to see if the nm accepts a BSD-compat flag.
1349      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1350      #   nm: unknown option "B" ignored
1351      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1352        ac_cv_path_NM="$ac_dir/nm -B"
1353        break
1354      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1355        ac_cv_path_NM="$ac_dir/nm -p"
1356        break
1357      else
1358        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1359        continue # so that we can try to find one that supports BSD flags
1360      fi
1361    fi
1362  done
1363  IFS="$ac_save_ifs"
1364  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1365fi
1366fi
1367
1368NM="$ac_cv_path_NM"
1369echo "$ac_t""$NM" 1>&6
1370
1371echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
[15780]1372echo "configure:1373: checking whether ln -s works" >&5
[14481]1373if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1374  echo $ac_n "(cached) $ac_c" 1>&6
1375else
1376  rm -f conftestdata
1377if ln -s X conftestdata 2>/dev/null
1378then
1379  rm -f conftestdata
1380  ac_cv_prog_LN_S="ln -s"
1381else
1382  ac_cv_prog_LN_S=ln
1383fi
1384fi
1385LN_S="$ac_cv_prog_LN_S"
1386if test "$ac_cv_prog_LN_S" = "ln -s"; then
1387  echo "$ac_t""yes" 1>&6
1388else
1389  echo "$ac_t""no" 1>&6
1390fi
1391
1392
1393case "$target" in
1394NONE) lt_target="$host" ;;
1395*) lt_target="$target" ;;
1396esac
1397
1398# Check for any special flags to pass to ltconfig.
1399libtool_flags="--cache-file=$cache_file"
1400test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1401test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1402test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1403test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1404test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1405
1406
1407# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1408if test "${enable_libtool_lock+set}" = set; then
1409  enableval="$enable_libtool_lock"
1410  :
1411fi
1412
1413test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1414test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1415
1416# Some flags need to be propagated to the compiler or linker for good
1417# libtool support.
1418case "$lt_target" in
1419*-*-irix6*)
1420  # Find out which ABI we are using.
[15780]1421  echo '#line 1422 "configure"' > conftest.$ac_ext
1422  if { (eval echo configure:1423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
[14481]1423    case "`/usr/bin/file conftest.o`" in
1424    *32-bit*)
1425      LD="${LD-ld} -32"
1426      ;;
1427    *N32*)
1428      LD="${LD-ld} -n32"
1429      ;;
1430    *64-bit*)
1431      LD="${LD-ld} -64"
1432      ;;
1433    esac
1434  fi
1435  rm -rf conftest*
1436  ;;
1437
1438*-*-sco3.2v5*)
1439  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1440  SAVE_CFLAGS="$CFLAGS"
1441  CFLAGS="$CFLAGS -belf"
1442  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
[15780]1443echo "configure:1444: checking whether the C compiler needs -belf" >&5
[14481]1444if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1445  echo $ac_n "(cached) $ac_c" 1>&6
1446else
1447  cat > conftest.$ac_ext <<EOF
[15780]1448#line 1449 "configure"
[14481]1449#include "confdefs.h"
1450
1451int main() {
1452
1453; return 0; }
1454EOF
[15780]1455if { (eval echo configure:1456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]1456  rm -rf conftest*
1457  lt_cv_cc_needs_belf=yes
1458else
1459  echo "configure: failed program was:" >&5
1460  cat conftest.$ac_ext >&5
1461  rm -rf conftest*
1462  lt_cv_cc_needs_belf=no
1463fi
1464rm -f conftest*
1465fi
1466
1467echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1468  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1469    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1470    CFLAGS="$SAVE_CFLAGS"
1471  fi
1472  ;;
1473
1474
1475esac
1476
1477
1478# Save cache, so that ltconfig can load it
1479cat > confcache <<\EOF
1480# This file is a shell script that caches the results of configure
1481# tests run on this system so they can be shared between configure
1482# scripts and configure runs.  It is not useful on other systems.
1483# If it contains results you don't want to keep, you may remove or edit it.
1484#
1485# By default, configure uses ./config.cache as the cache file,
1486# creating it if it does not exist already.  You can give configure
1487# the --cache-file=FILE option to use a different cache file; that is
1488# what configure does when it calls configure scripts in
1489# subdirectories, so they share the cache.
1490# Giving --cache-file=/dev/null disables caching, for debugging configure.
1491# config.status only pays attention to the cache file if you give it the
1492# --recheck option to rerun configure.
1493#
1494EOF
1495# The following way of writing the cache mishandles newlines in values,
1496# but we know of no workaround that is simple, portable, and efficient.
1497# So, don't put newlines in cache variables' values.
1498# Ultrix sh set writes to stderr and can't be redirected directly,
1499# and sets the high bit in the cache file unless we assign to the vars.
1500(set) 2>&1 |
1501  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1502  *ac_space=\ *)
1503    # `set' does not quote correctly, so add quotes (double-quote substitution
1504    # turns \\\\ into \\, and sed turns \\ into \).
1505    sed -n \
1506      -e "s/'/'\\\\''/g" \
1507      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1508    ;;
1509  *)
1510    # `set' quotes correctly as required by POSIX, so do not add quotes.
1511    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1512    ;;
1513  esac >> confcache
1514if cmp -s $cache_file confcache; then
1515  :
1516else
1517  if test -w $cache_file; then
1518    echo "updating cache $cache_file"
1519    cat confcache > $cache_file
1520  else
1521    echo "not updating unwritable cache $cache_file"
1522  fi
1523fi
1524rm -f confcache
1525
1526
1527# Actually configure libtool.  ac_aux_dir is where install-sh is found.
1528CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1529LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1530LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1531DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1532${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1533$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1534|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1535
1536# Reload cache, that may have been modified by ltconfig
1537if test -r "$cache_file"; then
1538  echo "loading cache $cache_file"
1539  . $cache_file
1540else
1541  echo "creating cache $cache_file"
1542  > $cache_file
1543fi
1544
1545
1546# This can be used to rebuild libtool when needed
1547LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1548
1549# Always use our own libtool.
1550LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1551
1552# Redirect the config.log output again, so that the ltconfig log is not
1553# clobbered by the next message.
1554exec 5>>./config.log
1555
1556
1557echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
[15780]1558echo "configure:1559: checking whether to enable maintainer-specific portions of Makefiles" >&5
[14481]1559    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1560if test "${enable_maintainer_mode+set}" = set; then
1561  enableval="$enable_maintainer_mode"
1562  USE_MAINTAINER_MODE=$enableval
1563else
1564  USE_MAINTAINER_MODE=no
1565fi
1566
1567  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1568 
1569
1570if test $USE_MAINTAINER_MODE = yes; then
1571  MAINTAINER_MODE_TRUE=
1572  MAINTAINER_MODE_FALSE='#'
1573else
1574  MAINTAINER_MODE_TRUE='#'
1575  MAINTAINER_MODE_FALSE=
1576fi
1577  MAINT=$MAINTAINER_MODE_TRUE
1578 
1579
1580
1581
1582# Make sure we can run config.sub.
1583if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1584else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1585fi
1586
1587echo $ac_n "checking host system type""... $ac_c" 1>&6
[15780]1588echo "configure:1589: checking host system type" >&5
[14481]1589
1590host_alias=$host
1591case "$host_alias" in
1592NONE)
1593  case $nonopt in
1594  NONE)
1595    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1596    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1597    fi ;;
1598  *) host_alias=$nonopt ;;
1599  esac ;;
1600esac
1601
1602host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1603host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606echo "$ac_t""$host" 1>&6
1607
1608
1609
1610# Check whether --enable-debug or --disable-debug was given.
1611if test "${enable_debug+set}" = set; then
1612  enableval="$enable_debug"
1613  :
1614else
1615  enable_debug=$debug_default
1616fi
1617
1618# Check whether --enable-shm or --disable-shm was given.
1619if test "${enable_shm+set}" = set; then
1620  enableval="$enable_shm"
1621  echo $enable_shm
1622else
1623  enable_shm="yes"
1624fi
1625
1626# Check whether --enable-ansi or --disable-ansi was given.
1627if test "${enable_ansi+set}" = set; then
1628  enableval="$enable_ansi"
1629  :
1630else
1631  enable_ansi=no
1632fi
1633
1634# Check whether --with-glib or --without-glib was given.
1635if test "${with_glib+set}" = set; then
1636  withval="$with_glib"
1637  :
1638fi
1639
1640# Check whether --enable-xim or --disable-xim was given.
1641if test "${enable_xim+set}" = set; then
1642  enableval="$enable_xim"
1643  :
1644else
1645  enable_xim="yes"
1646fi
1647
1648# Check whether --enable-xim_inst or --disable-xim_inst was given.
1649if test "${enable_xim_inst+set}" = set; then
1650  enableval="$enable_xim_inst"
1651  :
1652else
1653  enable_xim_inst="maybe"
1654fi
1655
1656# Check whether --enable-rebuilds or --disable-rebuilds was given.
1657if test "${enable_rebuilds+set}" = set; then
1658  enableval="$enable_rebuilds"
1659  :
1660else
1661  enable_rebuilds=yes
1662fi
1663
1664# Check whether --with-locale or --without-locale was given.
1665if test "${with_locale+set}" = set; then
1666  withval="$with_locale"
1667  :
1668fi
1669
1670
1671# Check whether --with-xinput or --without-xinput was given.
1672if test "${with_xinput+set}" = set; then
1673  withval="$with_xinput"
1674  :
1675fi
1676
[15780]1677# Check whether --with-native_locale or --without-native_locale was given.
1678if test "${with_native_locale+set}" = set; then
1679  withval="$with_native_locale"
1680  :
1681else
1682  with_native_locale=no
1683fi
[14481]1684
[15780]1685
[14481]1686if test "x$enable_debug" = "xyes"; then
1687  test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
1688  GTK_DEBUG_FLAGS="-DG_ENABLE_DEBUG"
1689else
1690  if test "x$enable_debug" = "xno"; then
1691    GTK_DEBUG_FLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DGTK_NO_CHECK_CASTS"
1692  else
1693    GTK_DEBUG_FLAGS="-DGTK_NO_CHECK_CASTS"
1694  fi
1695fi
1696
1697cat >> confdefs.h <<EOF
1698#define GTK_COMPILED_WITH_DEBUGGING "${enable_debug}"
1699EOF
1700
1701
1702# Build time sanity check...
1703echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
[15780]1704echo "configure:1705: checking whether build environment is sane" >&5
[14481]1705# Just in case
1706sleep 1
1707echo timestamp > conftestfile
1708# Do `set' in a subshell so we don't clobber the current shell's
1709# arguments.  Must try -L first in case configure is actually a
1710# symlink; some systems play weird games with the mod time of symlinks
1711# (eg FreeBSD returns the mod time of the symlink's containing
1712# directory).
1713if (
1714   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1715   if test "$*" = "X"; then
1716      # -L didn't work.
1717      set X `ls -t $srcdir/configure conftestfile`
1718   fi
1719   if test "$*" != "X $srcdir/configure conftestfile" \
1720      && test "$*" != "X conftestfile $srcdir/configure"; then
1721
1722      # If neither matched, then we have a broken ls.  This can happen
1723      # if, for instance, CONFIG_SHELL is bash and it inherits a
1724      # broken ls alias from the environment.  This has actually
1725      # happened.  Such a system could not be considered "sane".
1726      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1727alias in your environment" 1>&2; exit 1; }
1728   fi
1729
1730   test "$2" = conftestfile
1731   )
1732then
1733   # Ok.
1734   :
1735else
1736   { echo "configure: error: newly created file is older than distributed files!
1737Check your system clock" 1>&2; exit 1; }
1738fi
1739rm -f conftest*
1740echo "$ac_t""yes" 1>&6
1741
1742# Checks for programs.
1743# Extract the first word of "gcc", so it can be a program name with args.
1744set dummy gcc; ac_word=$2
1745echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[15780]1746echo "configure:1747: checking for $ac_word" >&5
[14481]1747if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1748  echo $ac_n "(cached) $ac_c" 1>&6
1749else
1750  if test -n "$CC"; then
1751  ac_cv_prog_CC="$CC" # Let the user override the test.
1752else
1753  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1754  ac_dummy="$PATH"
1755  for ac_dir in $ac_dummy; do
1756    test -z "$ac_dir" && ac_dir=.
1757    if test -f $ac_dir/$ac_word; then
1758      ac_cv_prog_CC="gcc"
1759      break
1760    fi
1761  done
1762  IFS="$ac_save_ifs"
1763fi
1764fi
1765CC="$ac_cv_prog_CC"
1766if test -n "$CC"; then
1767  echo "$ac_t""$CC" 1>&6
1768else
1769  echo "$ac_t""no" 1>&6
1770fi
1771
1772if test -z "$CC"; then
1773  # Extract the first word of "cc", so it can be a program name with args.
1774set dummy cc; ac_word=$2
1775echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[15780]1776echo "configure:1777: checking for $ac_word" >&5
[14481]1777if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1778  echo $ac_n "(cached) $ac_c" 1>&6
1779else
1780  if test -n "$CC"; then
1781  ac_cv_prog_CC="$CC" # Let the user override the test.
1782else
1783  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1784  ac_prog_rejected=no
1785  ac_dummy="$PATH"
1786  for ac_dir in $ac_dummy; do
1787    test -z "$ac_dir" && ac_dir=.
1788    if test -f $ac_dir/$ac_word; then
1789      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1790        ac_prog_rejected=yes
1791        continue
1792      fi
1793      ac_cv_prog_CC="cc"
1794      break
1795    fi
1796  done
1797  IFS="$ac_save_ifs"
1798if test $ac_prog_rejected = yes; then
1799  # We found a bogon in the path, so make sure we never use it.
1800  set dummy $ac_cv_prog_CC
1801  shift
1802  if test $# -gt 0; then
1803    # We chose a different compiler from the bogus one.
1804    # However, it has the same basename, so the bogon will be chosen
1805    # first if we set CC to just the basename; use the full file name.
1806    shift
1807    set dummy "$ac_dir/$ac_word" "$@"
1808    shift
1809    ac_cv_prog_CC="$@"
1810  fi
1811fi
1812fi
1813fi
1814CC="$ac_cv_prog_CC"
1815if test -n "$CC"; then
1816  echo "$ac_t""$CC" 1>&6
1817else
1818  echo "$ac_t""no" 1>&6
1819fi
1820
1821  if test -z "$CC"; then
1822    case "`uname -s`" in
1823    *win32* | *WIN32*)
1824      # Extract the first word of "cl", so it can be a program name with args.
1825set dummy cl; ac_word=$2
1826echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[15780]1827echo "configure:1828: checking for $ac_word" >&5
[14481]1828if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1829  echo $ac_n "(cached) $ac_c" 1>&6
1830else
1831  if test -n "$CC"; then
1832  ac_cv_prog_CC="$CC" # Let the user override the test.
1833else
1834  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1835  ac_dummy="$PATH"
1836  for ac_dir in $ac_dummy; do
1837    test -z "$ac_dir" && ac_dir=.
1838    if test -f $ac_dir/$ac_word; then
1839      ac_cv_prog_CC="cl"
1840      break
1841    fi
1842  done
1843  IFS="$ac_save_ifs"
1844fi
1845fi
1846CC="$ac_cv_prog_CC"
1847if test -n "$CC"; then
1848  echo "$ac_t""$CC" 1>&6
1849else
1850  echo "$ac_t""no" 1>&6
1851fi
1852 ;;
1853    esac
1854  fi
1855  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1856fi
1857
1858echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
[15780]1859echo "configure:1860: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
[14481]1860
1861ac_ext=c
1862# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1863ac_cpp='$CPP $CPPFLAGS'
1864ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1865ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1866cross_compiling=$ac_cv_prog_cc_cross
1867
1868cat > conftest.$ac_ext << EOF
1869
[15780]1870#line 1871 "configure"
[14481]1871#include "confdefs.h"
1872
1873main(){return(0);}
1874EOF
[15780]1875if { (eval echo configure:1876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]1876  ac_cv_prog_cc_works=yes
1877  # If we can't run a trivial program, we are probably using a cross compiler.
1878  if (./conftest; exit) 2>/dev/null; then
1879    ac_cv_prog_cc_cross=no
1880  else
1881    ac_cv_prog_cc_cross=yes
1882  fi
1883else
1884  echo "configure: failed program was:" >&5
1885  cat conftest.$ac_ext >&5
1886  ac_cv_prog_cc_works=no
1887fi
1888rm -fr conftest*
1889ac_ext=c
1890# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1891ac_cpp='$CPP $CPPFLAGS'
1892ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1893ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1894cross_compiling=$ac_cv_prog_cc_cross
1895
1896echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1897if test $ac_cv_prog_cc_works = no; then
1898  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1899fi
1900echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
[15780]1901echo "configure:1902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
[14481]1902echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1903cross_compiling=$ac_cv_prog_cc_cross
1904
1905echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
[15780]1906echo "configure:1907: checking whether we are using GNU C" >&5
[14481]1907if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1908  echo $ac_n "(cached) $ac_c" 1>&6
1909else
1910  cat > conftest.c <<EOF
1911#ifdef __GNUC__
1912  yes;
1913#endif
1914EOF
[15780]1915if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
[14481]1916  ac_cv_prog_gcc=yes
1917else
1918  ac_cv_prog_gcc=no
1919fi
1920fi
1921
1922echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1923
1924if test $ac_cv_prog_gcc = yes; then
1925  GCC=yes
1926else
1927  GCC=
1928fi
1929
1930ac_test_CFLAGS="${CFLAGS+set}"
1931ac_save_CFLAGS="$CFLAGS"
1932CFLAGS=
1933echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
[15780]1934echo "configure:1935: checking whether ${CC-cc} accepts -g" >&5
[14481]1935if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1936  echo $ac_n "(cached) $ac_c" 1>&6
1937else
1938  echo 'void f(){}' > conftest.c
1939if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1940  ac_cv_prog_cc_g=yes
1941else
1942  ac_cv_prog_cc_g=no
1943fi
1944rm -f conftest*
1945
1946fi
1947
1948echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1949if test "$ac_test_CFLAGS" = set; then
1950  CFLAGS="$ac_save_CFLAGS"
1951elif test $ac_cv_prog_cc_g = yes; then
1952  if test "$GCC" = yes; then
1953    CFLAGS="-g -O2"
1954  else
1955    CFLAGS="-g"
1956  fi
1957else
1958  if test "$GCC" = yes; then
1959    CFLAGS="-O2"
1960  else
1961    CFLAGS=
1962  fi
1963fi
1964
1965echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
[15780]1966echo "configure:1967: checking for POSIXized ISC" >&5
[14481]1967if test -d /etc/conf/kconfig.d &&
1968  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1969then
1970  echo "$ac_t""yes" 1>&6
1971  ISC=yes # If later tests want to check for ISC.
1972  cat >> confdefs.h <<\EOF
1973#define _POSIX_SOURCE 1
1974EOF
1975
1976  if test "$GCC" = yes; then
1977    CC="$CC -posix"
1978  else
1979    CC="$CC -Xp"
1980  fi
1981else
1982  echo "$ac_t""no" 1>&6
1983  ISC=
1984fi
1985
1986
1987
1988
1989echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
[15780]1990echo "configure:1991: checking for ${CC-cc} option to accept ANSI C" >&5
[14481]1991if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1992  echo $ac_n "(cached) $ac_c" 1>&6
1993else
1994  am_cv_prog_cc_stdc=no
1995ac_save_CC="$CC"
1996# Don't try gcc -ansi; that turns off useful extensions and
1997# breaks some systems' header files.
1998# AIX                   -qlanglvl=ansi
1999# Ultrix and OSF/1      -std1
2000# HP-UX                 -Aa -D_HPUX_SOURCE
2001# SVR4                  -Xc -D__EXTENSIONS__
2002for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2003do
2004  CC="$ac_save_CC $ac_arg"
2005  cat > conftest.$ac_ext <<EOF
[15780]2006#line 2007 "configure"
[14481]2007#include "confdefs.h"
2008#include <stdarg.h>
2009#include <stdio.h>
2010#include <sys/types.h>
2011#include <sys/stat.h>
2012/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2013struct buf { int x; };
2014FILE * (*rcsopen) (struct buf *, struct stat *, int);
2015static char *e (p, i)
2016     char **p;
2017     int i;
2018{
2019  return p[i];
2020}
2021static char *f (char * (*g) (char **, int), char **p, ...)
2022{
2023  char *s;
2024  va_list v;
2025  va_start (v,p);
2026  s = g (p, va_arg (v,int));
2027  va_end (v);
2028  return s;
2029}
2030int test (int i, double x);
2031struct s1 {int (*f) (int a);};
2032struct s2 {int (*f) (double a);};
2033int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2034int argc;
2035char **argv;
2036
2037int main() {
2038
2039return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2040
2041; return 0; }
2042EOF
[15780]2043if { (eval echo configure:2044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
[14481]2044  rm -rf conftest*
2045  am_cv_prog_cc_stdc="$ac_arg"; break
2046else
2047  echo "configure: failed program was:" >&5
2048  cat conftest.$ac_ext >&5
2049fi
2050rm -f conftest*
2051done
2052CC="$ac_save_CC"
2053
2054fi
2055
2056if test -z "$am_cv_prog_cc_stdc"; then
2057  echo "$ac_t""none needed" 1>&6
2058else
2059  echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2060fi
2061case "x$am_cv_prog_cc_stdc" in
2062  x|xno) ;;
2063  *) CC="$CC $am_cv_prog_cc_stdc" ;;
2064esac
2065
2066# Find a good install program.  We prefer a C program (faster),
2067# so one script is as good as another.  But avoid the broken or
2068# incompatible versions:
2069# SysV /etc/install, /usr/sbin/install
2070# SunOS /usr/etc/install
2071# IRIX /sbin/install
2072# AIX /bin/install
2073# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2074# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2075# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2076# ./install, which can be erroneously created by make from ./install.sh.
2077echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
[15780]2078echo "configure:2079: checking for a BSD compatible install" >&5
[14481]2079if test -z "$INSTALL"; then
2080if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2081  echo $ac_n "(cached) $ac_c" 1>&6
2082else
2083    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
2084  for ac_dir in $PATH; do
2085    # Account for people who put trailing slashes in PATH elements.
2086    case "$ac_dir/" in
2087    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2088    *)
2089      # OSF1 and SCO ODT 3.0 have their own names for install.
2090      # Don't use installbsd from OSF since it installs stuff as root
2091      # by default.
2092      for ac_prog in ginstall scoinst install; do
2093        if test -f $ac_dir/$ac_prog; then
2094          if test $ac_prog = install &&
2095            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2096            # AIX install.  It has an incompatible calling convention.
2097            :
2098          else
2099            ac_cv_path_install="$ac_dir/$ac_prog -c"
2100            break 2
2101          fi
2102        fi
2103      done
2104      ;;
2105    esac
2106  done
2107  IFS="$ac_save_IFS"
2108
2109fi
2110  if test "${ac_cv_path_install+set}" = set; then
2111    INSTALL="$ac_cv_path_install"
2112  else
2113    # As a last resort, use the slow shell script.  We don't cache a
2114    # path for INSTALL within a source directory, because that will
2115    # break other packages using the cache if that directory is
2116    # removed, or if the path is relative.
2117    INSTALL="$ac_install_sh"
2118  fi
2119fi
2120echo "$ac_t""$INSTALL" 1>&6
2121
2122# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2123# It thinks the first close brace ends the variable substitution.
2124test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2125
2126test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2127
2128test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2129
2130echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
[15780]2131echo "configure:2132: checking whether ${MAKE-make} sets \${MAKE}" >&5
[14481]2132set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2133if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2134  echo $ac_n "(cached) $ac_c" 1>&6
2135else
2136  cat > conftestmake <<\EOF
2137all:
2138        @echo 'ac_maketemp="${MAKE}"'
2139EOF
2140# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2141eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2142if test -n "$ac_maketemp"; then
2143  eval ac_cv_prog_make_${ac_make}_set=yes
2144else
2145  eval ac_cv_prog_make_${ac_make}_set=no
2146fi
2147rm -f conftestmake
2148fi
2149if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2150  echo "$ac_t""yes" 1>&6
2151  SET_MAKE=
2152else
2153  echo "$ac_t""no" 1>&6
2154  SET_MAKE="MAKE=${MAKE-make}"
2155fi
2156
2157
2158if test "x$GCC" = "xyes"; then
2159  case " $CFLAGS " in
2160  *[\ \ ]-Wall[\ \      ]*) ;;
2161  *) CFLAGS="$CFLAGS -Wall" ;;
2162  esac
2163
2164  if test "x$enable_ansi" = "xyes"; then
2165    case " $CFLAGS " in
2166    *[\ \       ]-ansi[\ \      ]*) ;;
2167    *) CFLAGS="$CFLAGS -ansi" ;;
2168    esac
2169
2170    case " $CFLAGS " in
2171    *[\ \       ]-pedantic[\ \  ]*) ;;
2172    *) CFLAGS="$CFLAGS -pedantic" ;;
2173    esac
2174  fi
2175fi
2176
2177# Honor aclocal flags
2178ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2179
2180# define a MAINT-like variable REBUILD which is set if Perl
2181# and awk are found, so autogenerated sources can be rebuilt
2182
[15780]2183for ac_prog in gawk mawk nawk awk
[14481]2184do
2185# Extract the first word of "$ac_prog", so it can be a program name with args.
2186set dummy $ac_prog; ac_word=$2
2187echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[15780]2188echo "configure:2189: checking for $ac_word" >&5
[14481]2189if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2190  echo $ac_n "(cached) $ac_c" 1>&6
2191else
2192  if test -n "$AWK"; then
2193  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2194else
2195  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2196  ac_dummy="$PATH"
2197  for ac_dir in $ac_dummy; do
2198    test -z "$ac_dir" && ac_dir=.
2199    if test -f $ac_dir/$ac_word; then
2200      ac_cv_prog_AWK="$ac_prog"
2201      break
2202    fi
2203  done
2204  IFS="$ac_save_ifs"
2205fi
2206fi
2207AWK="$ac_cv_prog_AWK"
2208if test -n "$AWK"; then
2209  echo "$ac_t""$AWK" 1>&6
2210else
2211  echo "$ac_t""no" 1>&6
2212fi
2213
2214test -n "$AWK" && break
2215done
2216
2217for ac_prog in perl5 perl
2218do
2219# Extract the first word of "$ac_prog", so it can be a program name with args.
2220set dummy $ac_prog; ac_word=$2
2221echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[15780]2222echo "configure:2223: checking for $ac_word" >&5
[14481]2223if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
2224  echo $ac_n "(cached) $ac_c" 1>&6
2225else
2226  if test -n "$PERL"; then
2227  ac_cv_prog_PERL="$PERL" # Let the user override the test.
2228else
2229  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2230  ac_dummy="$PATH"
2231  for ac_dir in $ac_dummy; do
2232    test -z "$ac_dir" && ac_dir=.
2233    if test -f $ac_dir/$ac_word; then
2234      ac_cv_prog_PERL="$ac_prog"
2235      break
2236    fi
2237  done
2238  IFS="$ac_save_ifs"
2239fi
2240fi
2241PERL="$ac_cv_prog_PERL"
2242if test -n "$PERL"; then
2243  echo "$ac_t""$PERL" 1>&6
2244else
2245  echo "$ac_t""no" 1>&6
2246fi
2247
2248test -n "$PERL" && break
2249done
2250
2251
2252# We would like indent, but don't require it.
2253# Extract the first word of "indent", so it can be a program name with args.
2254set dummy indent; ac_word=$2
2255echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[15780]2256echo "configure:2257: checking for $ac_word" >&5
[14481]2257if eval "test \"`echo '$''{'ac_cv_prog_INDENT'+set}'`\" = set"; then
2258  echo $ac_n "(cached) $ac_c" 1>&6
2259else
2260  if test -n "$INDENT"; then
2261  ac_cv_prog_INDENT="$INDENT" # Let the user override the test.
2262else
2263  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2264  ac_dummy="$PATH"
2265  for ac_dir in $ac_dummy; do
2266    test -z "$ac_dir" && ac_dir=.
2267    if test -f $ac_dir/$ac_word; then
2268      ac_cv_prog_INDENT="indent"
2269      break
2270    fi
2271  done
2272  IFS="$ac_save_ifs"
2273fi
2274fi
2275INDENT="$ac_cv_prog_INDENT"
2276if test -n "$INDENT"; then
2277  echo "$ac_t""$INDENT" 1>&6
2278else
2279  echo "$ac_t""no" 1>&6
2280fi
2281
2282
2283REBUILD=\#
2284if test "x$enable_rebuilds" = "xyes" && \
2285     test -n "$PERL" && \
2286     $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
2287     test -n "$AWK" ; then
2288  REBUILD=
2289fi
2290
2291
2292echo $ac_n "checking whether make is GNU Make""... $ac_c" 1>&6
[15780]2293echo "configure:2294: checking whether make is GNU Make" >&5
[14481]2294STRIP_BEGIN=
2295STRIP_END=
2296if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then
[14809]2297        STRIP_BEGIN='$(strip $(STRIP_DUMMY)'
[14481]2298        STRIP_END=')'
2299        echo "$ac_t""yes" 1>&6
2300else
2301        echo "$ac_t""no" 1>&6
2302fi
[14809]2303STRIP_DUMMY=
[14481]2304
2305
2306
[14809]2307
[14481]2308# i18n stuff
[17070]2309ALL_LINGUAS="az ca cs da de el es et eu fi fr ga gl hr hu it ja ko lt nl no nn pl pt pt_BR ro ru sk sl sp sr sv tr uk vi wa zh_CN.GB2312 zh_TW.Big5"
[14481]2310echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
[15780]2311echo "configure:2312: checking how to run the C preprocessor" >&5
[14481]2312# On Suns, sometimes $CPP names a directory.
2313if test -n "$CPP" && test -d "$CPP"; then
2314  CPP=
2315fi
2316if test -z "$CPP"; then
2317if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2318  echo $ac_n "(cached) $ac_c" 1>&6
2319else
2320    # This must be in double quotes, not single quotes, because CPP may get
2321  # substituted into the Makefile and "${CC-cc}" will confuse make.
2322  CPP="${CC-cc} -E"
2323  # On the NeXT, cc -E runs the code through the compiler's parser,
2324  # not just through cpp.
2325  cat > conftest.$ac_ext <<EOF
[15780]2326#line 2327 "configure"
[14481]2327#include "confdefs.h"
2328#include <assert.h>
2329Syntax Error
2330EOF
2331ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[15780]2332{ (eval echo configure:2333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[14481]2333ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2334if test -z "$ac_err"; then
2335  :
2336else
2337  echo "$ac_err" >&5
2338  echo "configure: failed program was:" >&5
2339  cat conftest.$ac_ext >&5
2340  rm -rf conftest*
2341  CPP="${CC-cc} -E -traditional-cpp"
2342  cat > conftest.$ac_ext <<EOF
[15780]2343#line 2344 "configure"
[14481]2344#include "confdefs.h"
2345#include <assert.h>
2346Syntax Error
2347EOF
2348ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[15780]2349{ (eval echo configure:2350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[14481]2350ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2351if test -z "$ac_err"; then
2352  :
2353else
2354  echo "$ac_err" >&5
2355  echo "configure: failed program was:" >&5
2356  cat conftest.$ac_ext >&5
2357  rm -rf conftest*
2358  CPP="${CC-cc} -nologo -E"
2359  cat > conftest.$ac_ext <<EOF
[15780]2360#line 2361 "configure"
[14481]2361#include "confdefs.h"
2362#include <assert.h>
2363Syntax Error
2364EOF
2365ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[15780]2366{ (eval echo configure:2367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[14481]2367ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2368if test -z "$ac_err"; then
2369  :
2370else
2371  echo "$ac_err" >&5
2372  echo "configure: failed program was:" >&5
2373  cat conftest.$ac_ext >&5
2374  rm -rf conftest*
2375  CPP=/lib/cpp
2376fi
2377rm -f conftest*
2378fi
2379rm -f conftest*
2380fi
2381rm -f conftest*
2382  ac_cv_prog_CPP="$CPP"
2383fi
2384  CPP="$ac_cv_prog_CPP"
2385else
2386  ac_cv_prog_CPP="$CPP"
2387fi
2388echo "$ac_t""$CPP" 1>&6
2389
2390echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
[15780]2391echo "configure:2392: checking for ANSI C header files" >&5
[14481]2392if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2393  echo $ac_n "(cached) $ac_c" 1>&6
2394else
2395  cat > conftest.$ac_ext <<EOF
[15780]2396#line 2397 "configure"
[14481]2397#include "confdefs.h"
2398#include <stdlib.h>
2399#include <stdarg.h>
2400#include <string.h>
2401#include <float.h>
2402EOF
2403ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[15780]2404{ (eval echo configure:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[14481]2405ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2406if test -z "$ac_err"; then
2407  rm -rf conftest*
2408  ac_cv_header_stdc=yes
2409else
2410  echo "$ac_err" >&5
2411  echo "configure: failed program was:" >&5
2412  cat conftest.$ac_ext >&5
2413  rm -rf conftest*
2414  ac_cv_header_stdc=no
2415fi
2416rm -f conftest*
2417
2418if test $ac_cv_header_stdc = yes; then
2419  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2420cat > conftest.$ac_ext <<EOF
[15780]2421#line 2422 "configure"
[14481]2422#include "confdefs.h"
2423#include <string.h>
2424EOF
2425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2426  egrep "memchr" >/dev/null 2>&1; then
2427  :
2428else
2429  rm -rf conftest*
2430  ac_cv_header_stdc=no
2431fi
2432rm -f conftest*
2433
2434fi
2435
2436if test $ac_cv_header_stdc = yes; then
2437  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2438cat > conftest.$ac_ext <<EOF
[15780]2439#line 2440 "configure"
[14481]2440#include "confdefs.h"
2441#include <stdlib.h>
2442EOF
2443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2444  egrep "free" >/dev/null 2>&1; then
2445  :
2446else
2447  rm -rf conftest*
2448  ac_cv_header_stdc=no
2449fi
2450rm -f conftest*
2451
2452fi
2453
2454if test $ac_cv_header_stdc = yes; then
2455  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2456if test "$cross_compiling" = yes; then
2457  :
2458else
2459  cat > conftest.$ac_ext <<EOF
[15780]2460#line 2461 "configure"
[14481]2461#include "confdefs.h"
2462#include <ctype.h>
2463#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2464#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2465#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2466int main () { int i; for (i = 0; i < 256; i++)
2467if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2468exit (0); }
2469
2470EOF
[15780]2471if { (eval echo configure:2472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
[14481]2472then
2473  :
2474else
2475  echo "configure: failed program was:" >&5
2476  cat conftest.$ac_ext >&5
2477  rm -fr conftest*
2478  ac_cv_header_stdc=no
2479fi
2480rm -fr conftest*
2481fi
2482
2483fi
2484fi
2485
2486echo "$ac_t""$ac_cv_header_stdc" 1>&6
2487if test $ac_cv_header_stdc = yes; then
2488  cat >> confdefs.h <<\EOF
2489#define STDC_HEADERS 1
2490EOF
2491
2492fi
2493
2494echo $ac_n "checking for working const""... $ac_c" 1>&6
[15780]2495echo "configure:2496: checking for working const" >&5
[14481]2496if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2497  echo $ac_n "(cached) $ac_c" 1>&6
2498else
2499  cat > conftest.$ac_ext <<EOF
[15780]2500#line 2501 "configure"
[14481]2501#include "confdefs.h"
2502
2503int main() {
2504
2505/* Ultrix mips cc rejects this.  */
[15780]2506typedef int charset[2]; const charset x;
[14481]2507/* SunOS 4.1.1 cc rejects this.  */
2508char const *const *ccp;
2509char **p;
2510/* NEC SVR4.0.2 mips cc rejects this.  */
2511struct point {int x, y;};
2512static struct point const zero = {0,0};
2513/* AIX XL C 1.02.0.0 rejects this.
2514   It does not let you subtract one const X* pointer from another in an arm
2515   of an if-expression whose if-part is not a constant expression */
2516const char *g = "string";
2517ccp = &g + (g ? g-g : 0);
2518/* HPUX 7.0 cc rejects these. */
2519++ccp;
2520p = (char**) ccp;
2521ccp = (char const *const *) p;
2522{ /* SCO 3.2v4 cc rejects this.  */
2523  char *t;
2524  char const *s = 0 ? (char *) 0 : (char const *) 0;
2525
2526  *t++ = 0;
2527}
2528{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2529  int x[] = {25, 17};
2530  const int *foo = &x[0];
2531  ++foo;
2532}
2533{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2534  typedef const int *iptr;
2535  iptr p = 0;
2536  ++p;
2537}
2538{ /* AIX XL C 1.02.0.0 rejects this saying
2539     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2540  struct s { int j; const int *ap[3]; };
2541  struct s *b; b->j = 5;
2542}
2543{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2544  const int foo = 10;
2545}
2546
2547; return 0; }
2548EOF
[15780]2549if { (eval echo configure:2550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
[14481]2550  rm -rf conftest*
2551  ac_cv_c_const=yes
2552else
2553  echo "configure: failed program was:" >&5
2554  cat conftest.$ac_ext >&5
2555  rm -rf conftest*
2556  ac_cv_c_const=no
2557fi
2558rm -f conftest*
2559fi
2560
2561echo "$ac_t""$ac_cv_c_const" 1>&6
2562if test $ac_cv_c_const = no; then
2563  cat >> confdefs.h <<\EOF
2564#define const
2565EOF
2566
2567fi
2568
2569echo $ac_n "checking for inline""... $ac_c" 1>&6
[15780]2570echo "configure:2571: checking for inline" >&5
[14481]2571if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2572  echo $ac_n "(cached) $ac_c" 1>&6
2573else
2574  ac_cv_c_inline=no
2575for ac_kw in inline __inline__ __inline; do
2576  cat > conftest.$ac_ext <<EOF
[15780]2577#line 2578 "configure"
[14481]2578#include "confdefs.h"
2579
2580int main() {
[15780]2581} $ac_kw foo() {
[14481]2582; return 0; }
2583EOF
[15780]2584if { (eval echo configure:2585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
[14481]2585  rm -rf conftest*
2586  ac_cv_c_inline=$ac_kw; break
2587else
2588  echo "configure: failed program was:" >&5
2589  cat conftest.$ac_ext >&5
2590fi
2591rm -f conftest*
2592done
2593
2594fi
2595
2596echo "$ac_t""$ac_cv_c_inline" 1>&6
2597case "$ac_cv_c_inline" in
2598  inline | yes) ;;
2599  no) cat >> confdefs.h <<\EOF
2600#define inline
2601EOF
2602 ;;
2603  *)  cat >> confdefs.h <<EOF
2604#define inline $ac_cv_c_inline
2605EOF
2606 ;;
2607esac
2608
2609echo $ac_n "checking for off_t""... $ac_c" 1>&6
[15780]2610echo "configure:2611: checking for off_t" >&5
[14481]2611if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2612  echo $ac_n "(cached) $ac_c" 1>&6
2613else
2614  cat > conftest.$ac_ext <<EOF
[15780]2615#line 2616 "configure"
[14481]2616#include "confdefs.h"
2617#include <sys/types.h>
2618#if STDC_HEADERS
2619#include <stdlib.h>
2620#include <stddef.h>
2621#endif
2622EOF
2623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2624  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2625  rm -rf conftest*
2626  ac_cv_type_off_t=yes
2627else
2628  rm -rf conftest*
2629  ac_cv_type_off_t=no
2630fi
2631rm -f conftest*
2632
2633fi
2634echo "$ac_t""$ac_cv_type_off_t" 1>&6
2635if test $ac_cv_type_off_t = no; then
2636  cat >> confdefs.h <<\EOF
2637#define off_t long
2638EOF
2639
2640fi
2641
2642echo $ac_n "checking for size_t""... $ac_c" 1>&6
[15780]2643echo "configure:2644: checking for size_t" >&5
[14481]2644if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2645  echo $ac_n "(cached) $ac_c" 1>&6
2646else
2647  cat > conftest.$ac_ext <<EOF
[15780]2648#line 2649 "configure"
[14481]2649#include "confdefs.h"
2650#include <sys/types.h>
2651#if STDC_HEADERS
2652#include <stdlib.h>
2653#include <stddef.h>
2654#endif
2655EOF
2656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2657  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2658  rm -rf conftest*
2659  ac_cv_type_size_t=yes
2660else
2661  rm -rf conftest*
2662  ac_cv_type_size_t=no
2663fi
2664rm -f conftest*
2665
2666fi
2667echo "$ac_t""$ac_cv_type_size_t" 1>&6
2668if test $ac_cv_type_size_t = no; then
2669  cat >> confdefs.h <<\EOF
2670#define size_t unsigned
2671EOF
2672
2673fi
2674
2675# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2676# for constant arguments.  Useless!
2677echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
[15780]2678echo "configure:2679: checking for working alloca.h" >&5
[14481]2679if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2680  echo $ac_n "(cached) $ac_c" 1>&6
2681else
2682  cat > conftest.$ac_ext <<EOF
[15780]2683#line 2684 "configure"
[14481]2684#include "confdefs.h"
2685#include <alloca.h>
2686int main() {
[15780]2687char *p = alloca(2 * sizeof(int));
[14481]2688; return 0; }
2689EOF
[15780]2690if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]2691  rm -rf conftest*
2692  ac_cv_header_alloca_h=yes
2693else
2694  echo "configure: failed program was:" >&5
2695  cat conftest.$ac_ext >&5
2696  rm -rf conftest*
2697  ac_cv_header_alloca_h=no
2698fi
2699rm -f conftest*
2700fi
2701
2702echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2703if test $ac_cv_header_alloca_h = yes; then
2704  cat >> confdefs.h <<\EOF
2705#define HAVE_ALLOCA_H 1
2706EOF
2707
2708fi
2709
2710echo $ac_n "checking for alloca""... $ac_c" 1>&6
[15780]2711echo "configure:2712: checking for alloca" >&5
[14481]2712if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2713  echo $ac_n "(cached) $ac_c" 1>&6
2714else
2715  cat > conftest.$ac_ext <<EOF
[15780]2716#line 2717 "configure"
[14481]2717#include "confdefs.h"
2718
2719#ifdef __GNUC__
2720# define alloca __builtin_alloca
2721#else
2722# ifdef _MSC_VER
2723#  include <malloc.h>
2724#  define alloca _alloca
2725# else
2726#  if HAVE_ALLOCA_H
2727#   include <alloca.h>
2728#  else
2729#   ifdef _AIX
2730 #pragma alloca
2731#   else
2732#    ifndef alloca /* predefined by HP cc +Olibcalls */
2733char *alloca ();
2734#    endif
2735#   endif
2736#  endif
2737# endif
2738#endif
2739
2740int main() {
2741char *p = (char *) alloca(1);
2742; return 0; }
2743EOF
[15780]2744if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]2745  rm -rf conftest*
2746  ac_cv_func_alloca_works=yes
2747else
2748  echo "configure: failed program was:" >&5
2749  cat conftest.$ac_ext >&5
2750  rm -rf conftest*
2751  ac_cv_func_alloca_works=no
2752fi
2753rm -f conftest*
2754fi
2755
2756echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2757if test $ac_cv_func_alloca_works = yes; then
2758  cat >> confdefs.h <<\EOF
2759#define HAVE_ALLOCA 1
2760EOF
2761
2762fi
2763
2764if test $ac_cv_func_alloca_works = no; then
2765  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2766  # that cause trouble.  Some versions do not even contain alloca or
2767  # contain a buggy version.  If you still want to use their alloca,
2768  # use ar to extract alloca.o from them instead of compiling alloca.c.
2769  ALLOCA=alloca.${ac_objext}
2770  cat >> confdefs.h <<\EOF
2771#define C_ALLOCA 1
2772EOF
2773
2774
2775echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
[15780]2776echo "configure:2777: checking whether alloca needs Cray hooks" >&5
[14481]2777if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2778  echo $ac_n "(cached) $ac_c" 1>&6
2779else
2780  cat > conftest.$ac_ext <<EOF
[15780]2781#line 2782 "configure"
[14481]2782#include "confdefs.h"
2783#if defined(CRAY) && ! defined(CRAY2)
2784webecray
2785#else
2786wenotbecray
2787#endif
2788
2789EOF
2790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2791  egrep "webecray" >/dev/null 2>&1; then
2792  rm -rf conftest*
2793  ac_cv_os_cray=yes
2794else
2795  rm -rf conftest*
2796  ac_cv_os_cray=no
2797fi
2798rm -f conftest*
2799
2800fi
2801
2802echo "$ac_t""$ac_cv_os_cray" 1>&6
2803if test $ac_cv_os_cray = yes; then
2804for ac_func in _getb67 GETB67 getb67; do
2805  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
[15780]2806echo "configure:2807: checking for $ac_func" >&5
[14481]2807if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2808  echo $ac_n "(cached) $ac_c" 1>&6
2809else
2810  cat > conftest.$ac_ext <<EOF
[15780]2811#line 2812 "configure"
[14481]2812#include "confdefs.h"
2813/* System header to define __stub macros and hopefully few prototypes,
2814    which can conflict with char $ac_func(); below.  */
2815#include <assert.h>
2816/* Override any gcc2 internal prototype to avoid an error.  */
2817/* We use char because int might match the return type of a gcc2
2818    builtin and then its argument prototype would still apply.  */
2819char $ac_func();
2820
2821int main() {
2822
2823/* The GNU C library defines this for functions which it implements
2824    to always fail with ENOSYS.  Some functions are actually named
2825    something starting with __ and the normal name is an alias.  */
2826#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2827choke me
2828#else
2829$ac_func();
2830#endif
2831
2832; return 0; }
2833EOF
[15780]2834if { (eval echo configure:2835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]2835  rm -rf conftest*
2836  eval "ac_cv_func_$ac_func=yes"
2837else
2838  echo "configure: failed program was:" >&5
2839  cat conftest.$ac_ext >&5
2840  rm -rf conftest*
2841  eval "ac_cv_func_$ac_func=no"
2842fi
2843rm -f conftest*
2844fi
2845
2846if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2847  echo "$ac_t""yes" 1>&6
2848  cat >> confdefs.h <<EOF
2849#define CRAY_STACKSEG_END $ac_func
2850EOF
2851
2852  break
2853else
2854  echo "$ac_t""no" 1>&6
2855fi
2856
2857done
2858fi
2859
2860echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
[15780]2861echo "configure:2862: checking stack direction for C alloca" >&5
[14481]2862if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2863  echo $ac_n "(cached) $ac_c" 1>&6
2864else
2865  if test "$cross_compiling" = yes; then
2866  ac_cv_c_stack_direction=0
2867else
2868  cat > conftest.$ac_ext <<EOF
[15780]2869#line 2870 "configure"
[14481]2870#include "confdefs.h"
2871find_stack_direction ()
2872{
2873  static char *addr = 0;
2874  auto char dummy;
2875  if (addr == 0)
2876    {
2877      addr = &dummy;
2878      return find_stack_direction ();
2879    }
2880  else
2881    return (&dummy > addr) ? 1 : -1;
2882}
2883main ()
2884{
2885  exit (find_stack_direction() < 0);
2886}
2887EOF
[15780]2888if { (eval echo configure:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
[14481]2889then
2890  ac_cv_c_stack_direction=1
2891else
2892  echo "configure: failed program was:" >&5
2893  cat conftest.$ac_ext >&5
2894  rm -fr conftest*
2895  ac_cv_c_stack_direction=-1
2896fi
2897rm -fr conftest*
2898fi
2899
2900fi
2901
2902echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2903cat >> confdefs.h <<EOF
2904#define STACK_DIRECTION $ac_cv_c_stack_direction
2905EOF
2906
2907fi
2908
2909for ac_hdr in unistd.h
2910do
2911ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2912echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
[15780]2913echo "configure:2914: checking for $ac_hdr" >&5
[14481]2914if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2915  echo $ac_n "(cached) $ac_c" 1>&6
2916else
2917  cat > conftest.$ac_ext <<EOF
[15780]2918#line 2919 "configure"
[14481]2919#include "confdefs.h"
2920#include <$ac_hdr>
2921EOF
2922ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[15780]2923{ (eval echo configure:2924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[14481]2924ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2925if test -z "$ac_err"; then
2926  rm -rf conftest*
2927  eval "ac_cv_header_$ac_safe=yes"
2928else
2929  echo "$ac_err" >&5
2930  echo "configure: failed program was:" >&5
2931  cat conftest.$ac_ext >&5
2932  rm -rf conftest*
2933  eval "ac_cv_header_$ac_safe=no"
2934fi
2935rm -f conftest*
2936fi
2937if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2938  echo "$ac_t""yes" 1>&6
2939    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2940  cat >> confdefs.h <<EOF
2941#define $ac_tr_hdr 1
2942EOF
2943 
2944else
2945  echo "$ac_t""no" 1>&6
2946fi
2947done
2948
2949for ac_func in getpagesize
2950do
2951echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
[15780]2952echo "configure:2953: checking for $ac_func" >&5
[14481]2953if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2954  echo $ac_n "(cached) $ac_c" 1>&6
2955else
2956  cat > conftest.$ac_ext <<EOF
[15780]2957#line 2958 "configure"
[14481]2958#include "confdefs.h"
2959/* System header to define __stub macros and hopefully few prototypes,
2960    which can conflict with char $ac_func(); below.  */
2961#include <assert.h>
2962/* Override any gcc2 internal prototype to avoid an error.  */
2963/* We use char because int might match the return type of a gcc2
2964    builtin and then its argument prototype would still apply.  */
2965char $ac_func();
2966
2967int main() {
2968
2969/* The GNU C library defines this for functions which it implements
2970    to always fail with ENOSYS.  Some functions are actually named
2971    something starting with __ and the normal name is an alias.  */
2972#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2973choke me
2974#else
2975$ac_func();
2976#endif
2977
2978; return 0; }
2979EOF
[15780]2980if { (eval echo configure:2981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]2981  rm -rf conftest*
2982  eval "ac_cv_func_$ac_func=yes"
2983else
2984  echo "configure: failed program was:" >&5
2985  cat conftest.$ac_ext >&5
2986  rm -rf conftest*
2987  eval "ac_cv_func_$ac_func=no"
2988fi
2989rm -f conftest*
2990fi
2991
2992if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2993  echo "$ac_t""yes" 1>&6
2994    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2995  cat >> confdefs.h <<EOF
2996#define $ac_tr_func 1
2997EOF
2998 
2999else
3000  echo "$ac_t""no" 1>&6
3001fi
3002done
3003
3004echo $ac_n "checking for working mmap""... $ac_c" 1>&6
[15780]3005echo "configure:3006: checking for working mmap" >&5
[14481]3006if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3007  echo $ac_n "(cached) $ac_c" 1>&6
3008else
3009  if test "$cross_compiling" = yes; then
3010  ac_cv_func_mmap_fixed_mapped=no
3011else
3012  cat > conftest.$ac_ext <<EOF
[15780]3013#line 3014 "configure"
[14481]3014#include "confdefs.h"
3015
3016/* Thanks to Mike Haertel and Jim Avera for this test.
3017   Here is a matrix of mmap possibilities:
3018        mmap private not fixed
3019        mmap private fixed at somewhere currently unmapped
3020        mmap private fixed at somewhere already mapped
3021        mmap shared not fixed
3022        mmap shared fixed at somewhere currently unmapped
3023        mmap shared fixed at somewhere already mapped
3024   For private mappings, we should verify that changes cannot be read()
3025   back from the file, nor mmap's back from the file at a different
3026   address.  (There have been systems where private was not correctly
3027   implemented like the infamous i386 svr4.0, and systems where the
3028   VM page cache was not coherent with the filesystem buffer cache
3029   like early versions of FreeBSD and possibly contemporary NetBSD.)
3030   For shared mappings, we should conversely verify that changes get
3031   propogated back to all the places they're supposed to be.
3032
3033   Grep wants private fixed already mapped.
3034   The main things grep needs to know about mmap are:
3035   * does it exist and is it safe to write into the mmap'd area
3036   * how to use it (BSD variants)  */
3037#include <sys/types.h>
3038#include <fcntl.h>
3039#include <sys/mman.h>
3040
3041/* This mess was copied from the GNU getpagesize.h.  */
3042#ifndef HAVE_GETPAGESIZE
[15780]3043# ifdef HAVE_UNISTD_H
3044#  include <unistd.h>
3045# endif
[14481]3046
3047/* Assume that all systems that can run configure have sys/param.h.  */
3048# ifndef HAVE_SYS_PARAM_H
3049#  define HAVE_SYS_PARAM_H 1
3050# endif
3051
3052# ifdef _SC_PAGESIZE
3053#  define getpagesize() sysconf(_SC_PAGESIZE)
3054# else /* no _SC_PAGESIZE */
3055#  ifdef HAVE_SYS_PARAM_H
3056#   include <sys/param.h>
3057#   ifdef EXEC_PAGESIZE
3058#    define getpagesize() EXEC_PAGESIZE
3059#   else /* no EXEC_PAGESIZE */
3060#    ifdef NBPG
3061#     define getpagesize() NBPG * CLSIZE
3062#     ifndef CLSIZE
3063#      define CLSIZE 1
3064#     endif /* no CLSIZE */
3065#    else /* no NBPG */
3066#     ifdef NBPC
3067#      define getpagesize() NBPC
3068#     else /* no NBPC */
3069#      ifdef PAGESIZE
3070#       define getpagesize() PAGESIZE
3071#      endif /* PAGESIZE */
3072#     endif /* no NBPC */
3073#    endif /* no NBPG */
3074#   endif /* no EXEC_PAGESIZE */
3075#  else /* no HAVE_SYS_PARAM_H */
3076#   define getpagesize() 8192   /* punt totally */
3077#  endif /* no HAVE_SYS_PARAM_H */
3078# endif /* no _SC_PAGESIZE */
3079
3080#endif /* no HAVE_GETPAGESIZE */
3081
3082#ifdef __cplusplus
3083extern "C" { void *malloc(unsigned); }
3084#else
3085char *malloc();
3086#endif
3087
3088int
3089main()
3090{
3091        char *data, *data2, *data3;
3092        int i, pagesize;
3093        int fd;
3094
3095        pagesize = getpagesize();
3096
3097        /*
3098         * First, make a file with some known garbage in it.
3099         */
[15780]3100        data = malloc(pagesize);
[14481]3101        if (!data)
3102                exit(1);
3103        for (i = 0; i < pagesize; ++i)
3104                *(data + i) = rand();
3105        umask(0);
3106        fd = creat("conftestmmap", 0600);
3107        if (fd < 0)
3108                exit(1);
3109        if (write(fd, data, pagesize) != pagesize)
3110                exit(1);
3111        close(fd);
3112
3113        /*
3114         * Next, try to mmap the file at a fixed address which
3115         * already has something else allocated at it.  If we can,
3116         * also make sure that we see the same garbage.
3117         */
3118        fd = open("conftestmmap", O_RDWR);
3119        if (fd < 0)
3120                exit(1);
[15780]3121        data2 = malloc(2 * pagesize);
[14481]3122        if (!data2)
3123                exit(1);
3124        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3125        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3126            MAP_PRIVATE | MAP_FIXED, fd, 0L))
3127                exit(1);
3128        for (i = 0; i < pagesize; ++i)
3129                if (*(data + i) != *(data2 + i))
3130                        exit(1);
3131
3132        /*
3133         * Finally, make sure that changes to the mapped area
3134         * do not percolate back to the file as seen by read().
3135         * (This is a bug on some variants of i386 svr4.0.)
3136         */
3137        for (i = 0; i < pagesize; ++i)
3138                *(data2 + i) = *(data2 + i) + 1;
[15780]3139        data3 = malloc(pagesize);
[14481]3140        if (!data3)
3141                exit(1);
3142        if (read(fd, data3, pagesize) != pagesize)
3143                exit(1);
3144        for (i = 0; i < pagesize; ++i)
3145                if (*(data + i) != *(data3 + i))
3146                        exit(1);
3147        close(fd);
3148        unlink("conftestmmap");
3149        exit(0);
3150}
3151
3152EOF
[15780]3153if { (eval echo configure:3154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
[14481]3154then
3155  ac_cv_func_mmap_fixed_mapped=yes
3156else
3157  echo "configure: failed program was:" >&5
3158  cat conftest.$ac_ext >&5
3159  rm -fr conftest*
3160  ac_cv_func_mmap_fixed_mapped=no
3161fi
3162rm -fr conftest*
3163fi
3164
3165fi
3166
3167echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3168if test $ac_cv_func_mmap_fixed_mapped = yes; then
3169  cat >> confdefs.h <<\EOF
3170#define HAVE_MMAP 1
3171EOF
3172
3173fi
3174
3175                             
3176   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3177unistd.h sys/param.h
3178do
3179ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3180echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
[15780]3181echo "configure:3182: checking for $ac_hdr" >&5
[14481]3182if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3183  echo $ac_n "(cached) $ac_c" 1>&6
3184else
3185  cat > conftest.$ac_ext <<EOF
[15780]3186#line 3187 "configure"
[14481]3187#include "confdefs.h"
3188#include <$ac_hdr>
3189EOF
3190ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[15780]3191{ (eval echo configure:3192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[14481]3192ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3193if test -z "$ac_err"; then
3194  rm -rf conftest*
3195  eval "ac_cv_header_$ac_safe=yes"
3196else
3197  echo "$ac_err" >&5
3198  echo "configure: failed program was:" >&5
3199  cat conftest.$ac_ext >&5
3200  rm -rf conftest*
3201  eval "ac_cv_header_$ac_safe=no"
3202fi
3203rm -f conftest*
3204fi
3205if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3206  echo "$ac_t""yes" 1>&6
3207    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3208  cat >> confdefs.h <<EOF
3209#define $ac_tr_hdr 1
3210EOF
3211 
3212else
3213  echo "$ac_t""no" 1>&6
3214fi
3215done
3216
3217   for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3218strdup __argz_count __argz_stringify __argz_next
3219do
3220echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
[15780]3221echo "configure:3222: checking for $ac_func" >&5
[14481]3222if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3223  echo $ac_n "(cached) $ac_c" 1>&6
3224else
3225  cat > conftest.$ac_ext <<EOF
[15780]3226#line 3227 "configure"
[14481]3227#include "confdefs.h"
3228/* System header to define __stub macros and hopefully few prototypes,
3229    which can conflict with char $ac_func(); below.  */
3230#include <assert.h>
3231/* Override any gcc2 internal prototype to avoid an error.  */
3232/* We use char because int might match the return type of a gcc2
3233    builtin and then its argument prototype would still apply.  */
3234char $ac_func();
3235
3236int main() {
3237
3238/* The GNU C library defines this for functions which it implements
3239    to always fail with ENOSYS.  Some functions are actually named
3240    something starting with __ and the normal name is an alias.  */
3241#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3242choke me
3243#else
3244$ac_func();
3245#endif
3246
3247; return 0; }
3248EOF
[15780]3249if { (eval echo configure:3250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]3250  rm -rf conftest*
3251  eval "ac_cv_func_$ac_func=yes"
3252else
3253  echo "configure: failed program was:" >&5
3254  cat conftest.$ac_ext >&5
3255  rm -rf conftest*
3256  eval "ac_cv_func_$ac_func=no"
3257fi
3258rm -f conftest*
3259fi
3260
3261if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3262  echo "$ac_t""yes" 1>&6
3263    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3264  cat >> confdefs.h <<EOF
3265#define $ac_tr_func 1
3266EOF
3267 
3268else
3269  echo "$ac_t""no" 1>&6
3270fi
3271done
3272
3273
3274   if test "${ac_cv_func_stpcpy+set}" != "set"; then
3275     for ac_func in stpcpy
3276do
3277echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
[15780]3278echo "configure:3279: checking for $ac_func" >&5
[14481]3279if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3280  echo $ac_n "(cached) $ac_c" 1>&6
3281else
3282  cat > conftest.$ac_ext <<EOF
[15780]3283#line 3284 "configure"
[14481]3284#include "confdefs.h"
3285/* System header to define __stub macros and hopefully few prototypes,
3286    which can conflict with char $ac_func(); below.  */
3287#include <assert.h>
3288/* Override any gcc2 internal prototype to avoid an error.  */
3289/* We use char because int might match the return type of a gcc2
3290    builtin and then its argument prototype would still apply.  */
3291char $ac_func();
3292
3293int main() {
3294
3295/* The GNU C library defines this for functions which it implements
3296    to always fail with ENOSYS.  Some functions are actually named
3297    something starting with __ and the normal name is an alias.  */
3298#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3299choke me
3300#else
3301$ac_func();
3302#endif
3303
3304; return 0; }
3305EOF
[15780]3306if { (eval echo configure:3307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]3307  rm -rf conftest*
3308  eval "ac_cv_func_$ac_func=yes"
3309else
3310  echo "configure: failed program was:" >&5
3311  cat conftest.$ac_ext >&5
3312  rm -rf conftest*
3313  eval "ac_cv_func_$ac_func=no"
3314fi
3315rm -f conftest*
3316fi
3317
3318if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3319  echo "$ac_t""yes" 1>&6
3320    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3321  cat >> confdefs.h <<EOF
3322#define $ac_tr_func 1
3323EOF
3324 
3325else
3326  echo "$ac_t""no" 1>&6
3327fi
3328done
3329
3330   fi
3331   if test "${ac_cv_func_stpcpy}" = "yes"; then
3332     cat >> confdefs.h <<\EOF
3333#define HAVE_STPCPY 1
3334EOF
3335
3336   fi
3337
3338   if test $ac_cv_header_locale_h = yes; then
3339    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
[15780]3340echo "configure:3341: checking for LC_MESSAGES" >&5
[14481]3341if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3342  echo $ac_n "(cached) $ac_c" 1>&6
3343else
3344  cat > conftest.$ac_ext <<EOF
[15780]3345#line 3346 "configure"
[14481]3346#include "confdefs.h"
3347#include <locale.h>
3348int main() {
3349return LC_MESSAGES
3350; return 0; }
3351EOF
[15780]3352if { (eval echo configure:3353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]3353  rm -rf conftest*
3354  am_cv_val_LC_MESSAGES=yes
3355else
3356  echo "configure: failed program was:" >&5
3357  cat conftest.$ac_ext >&5
3358  rm -rf conftest*
3359  am_cv_val_LC_MESSAGES=no
3360fi
3361rm -f conftest*
3362fi
3363
3364echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3365    if test $am_cv_val_LC_MESSAGES = yes; then
3366      cat >> confdefs.h <<\EOF
3367#define HAVE_LC_MESSAGES 1
3368EOF
3369
3370    fi
3371  fi
3372   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
[15780]3373echo "configure:3374: checking whether NLS is requested" >&5
[14481]3374        # Check whether --enable-nls or --disable-nls was given.
3375if test "${enable_nls+set}" = set; then
3376  enableval="$enable_nls"
3377  USE_NLS=$enableval
3378else
3379  USE_NLS=yes
3380fi
3381
3382    echo "$ac_t""$USE_NLS" 1>&6
3383   
3384
3385    USE_INCLUDED_LIBINTL=no
3386
3387        if test "$USE_NLS" = "yes"; then
3388#      AC_DEFINE(ENABLE_NLS)
3389#      AC_MSG_CHECKING([whether included gettext is requested])
3390#      AC_ARG_WITH(included-gettext,
3391#        [  --with-included-gettext use the GNU gettext library included here],
3392#        nls_cv_force_use_gnu_gettext=$withval,
3393#        nls_cv_force_use_gnu_gettext=no)
3394#      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
3395      nls_cv_force_use_gnu_gettext="no"
3396
3397      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3398      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3399                                        nls_cv_header_intl=
3400        nls_cv_header_libgt=
3401        CATOBJEXT=NONE
3402
3403        ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3404echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
[15780]3405echo "configure:3406: checking for libintl.h" >&5
[14481]3406if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3407  echo $ac_n "(cached) $ac_c" 1>&6
3408else
3409  cat > conftest.$ac_ext <<EOF
[15780]3410#line 3411 "configure"
[14481]3411#include "confdefs.h"
3412#include <libintl.h>
3413EOF
3414ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[15780]3415{ (eval echo configure:3416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[14481]3416ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3417if test -z "$ac_err"; then
3418  rm -rf conftest*
3419  eval "ac_cv_header_$ac_safe=yes"
3420else
3421  echo "$ac_err" >&5
3422  echo "configure: failed program was:" >&5
3423  cat conftest.$ac_ext >&5
3424  rm -rf conftest*
3425  eval "ac_cv_header_$ac_safe=no"
3426fi
3427rm -f conftest*
3428fi
3429if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3430  echo "$ac_t""yes" 1>&6
3431  echo $ac_n "checking for dgettext in libc""... $ac_c" 1>&6
[15780]3432echo "configure:3433: checking for dgettext in libc" >&5
[14481]3433if eval "test \"`echo '$''{'gt_cv_func_dgettext_libc'+set}'`\" = set"; then
3434  echo $ac_n "(cached) $ac_c" 1>&6
3435else
3436  cat > conftest.$ac_ext <<EOF
[15780]3437#line 3438 "configure"
[14481]3438#include "confdefs.h"
3439#include <libintl.h>
3440int main() {
3441return (int) dgettext ("","")
3442; return 0; }
3443EOF
[15780]3444if { (eval echo configure:3445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]3445  rm -rf conftest*
3446  gt_cv_func_dgettext_libc=yes
3447else
3448  echo "configure: failed program was:" >&5
3449  cat conftest.$ac_ext >&5
3450  rm -rf conftest*
3451  gt_cv_func_dgettext_libc=no
3452fi
3453rm -f conftest*
3454fi
3455
3456echo "$ac_t""$gt_cv_func_dgettext_libc" 1>&6
3457
3458           if test "$gt_cv_func_dgettext_libc" != "yes"; then
3459             echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
[15780]3460echo "configure:3461: checking for bindtextdomain in -lintl" >&5
[14481]3461ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3462if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3463  echo $ac_n "(cached) $ac_c" 1>&6
3464else
3465  ac_save_LIBS="$LIBS"
3466LIBS="-lintl  $LIBS"
3467cat > conftest.$ac_ext <<EOF
[15780]3468#line 3469 "configure"
[14481]3469#include "confdefs.h"
3470/* Override any gcc2 internal prototype to avoid an error.  */
3471/* We use char because int might match the return type of a gcc2
3472    builtin and then its argument prototype would still apply.  */
3473char bindtextdomain();
3474
3475int main() {
3476bindtextdomain()
3477; return 0; }
3478EOF
[15780]3479if { (eval echo configure:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]3480  rm -rf conftest*
3481  eval "ac_cv_lib_$ac_lib_var=yes"
3482else
3483  echo "configure: failed program was:" >&5
3484  cat conftest.$ac_ext >&5
3485  rm -rf conftest*
3486  eval "ac_cv_lib_$ac_lib_var=no"
3487fi
3488rm -f conftest*
3489LIBS="$ac_save_LIBS"
3490
3491fi
3492if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3493  echo "$ac_t""yes" 1>&6
3494  echo $ac_n "checking for dgettext in libintl""... $ac_c" 1>&6
[15780]3495echo "configure:3496: checking for dgettext in libintl" >&5
[14481]3496if eval "test \"`echo '$''{'gt_cv_func_dgettext_libintl'+set}'`\" = set"; then
3497  echo $ac_n "(cached) $ac_c" 1>&6
3498else
3499  echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
[15780]3500echo "configure:3501: checking for dgettext in -lintl" >&5
[14481]3501ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
3502if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3503  echo $ac_n "(cached) $ac_c" 1>&6
3504else
3505  ac_save_LIBS="$LIBS"
3506LIBS="-lintl  $LIBS"
3507cat > conftest.$ac_ext <<EOF
[15780]3508#line 3509 "configure"
[14481]3509#include "confdefs.h"
3510/* Override any gcc2 internal prototype to avoid an error.  */
3511/* We use char because int might match the return type of a gcc2
3512    builtin and then its argument prototype would still apply.  */
3513char dgettext();
3514
3515int main() {
3516dgettext()
3517; return 0; }
3518EOF
[15780]3519if { (eval echo configure:3520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]3520  rm -rf conftest*
3521  eval "ac_cv_lib_$ac_lib_var=yes"
3522else
3523  echo "configure: failed program was:" >&5
3524  cat conftest.$ac_ext >&5
3525  rm -rf conftest*
3526  eval "ac_cv_lib_$ac_lib_var=no"
3527fi
3528rm -f conftest*
3529LIBS="$ac_save_LIBS"
3530
3531fi
3532if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3533  echo "$ac_t""yes" 1>&6
3534  gt_cv_func_dgettext_libintl=yes
3535else
3536  echo "$ac_t""no" 1>&6
3537gt_cv_func_dgettext_libintl=no
3538fi
3539
3540fi
3541
3542echo "$ac_t""$gt_cv_func_dgettext_libintl" 1>&6
3543else
3544  echo "$ac_t""no" 1>&6
3545fi
3546
3547           fi
3548
3549           if test "$gt_cv_func_dgettext_libintl" = "yes"; then
3550             LIBS="$LIBS -lintl";
3551           fi
3552
3553           if test "$gt_cv_func_dgettext_libc" = "yes" \
3554              || test "$gt_cv_func_dgettext_libintl" = "yes"; then
3555              cat >> confdefs.h <<\EOF
3556#define HAVE_GETTEXT 1
3557EOF
3558
3559              # Extract the first word of "msgfmt", so it can be a program name with args.
3560set dummy msgfmt; ac_word=$2
3561echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[15780]3562echo "configure:3563: checking for $ac_word" >&5
[14481]3563if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3564  echo $ac_n "(cached) $ac_c" 1>&6
3565else
3566  case "$MSGFMT" in
3567  /*)
3568  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3569  ;;
3570  *)
3571  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3572  for ac_dir in $PATH; do
3573    test -z "$ac_dir" && ac_dir=.
3574    if test -f $ac_dir/$ac_word; then
3575      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3576        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3577        break
3578      fi
3579    fi
3580  done
3581  IFS="$ac_save_ifs"
3582  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3583  ;;
3584esac
3585fi
3586MSGFMT="$ac_cv_path_MSGFMT"
3587if test -n "$MSGFMT"; then
3588  echo "$ac_t""$MSGFMT" 1>&6
3589else
3590  echo "$ac_t""no" 1>&6
3591fi
3592              if test "$MSGFMT" != "no"; then
3593                for ac_func in dcgettext
3594do
3595echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
[15780]3596echo "configure:3597: checking for $ac_func" >&5
[14481]3597if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3598  echo $ac_n "(cached) $ac_c" 1>&6
3599else
3600  cat > conftest.$ac_ext <<EOF
[15780]3601#line 3602 "configure"
[14481]3602#include "confdefs.h"
3603/* System header to define __stub macros and hopefully few prototypes,
3604    which can conflict with char $ac_func(); below.  */
3605#include <assert.h>
3606/* Override any gcc2 internal prototype to avoid an error.  */
3607/* We use char because int might match the return type of a gcc2
3608    builtin and then its argument prototype would still apply.  */
3609char $ac_func();
3610
3611int main() {
3612
3613/* The GNU C library defines this for functions which it implements
3614    to always fail with ENOSYS.  Some functions are actually named
3615    something starting with __ and the normal name is an alias.  */
3616#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3617choke me
3618#else
3619$ac_func();
3620#endif
3621
3622; return 0; }
3623EOF
[15780]3624if { (eval echo configure:3625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]3625  rm -rf conftest*
3626  eval "ac_cv_func_$ac_func=yes"
3627else
3628  echo "configure: failed program was:" >&5
3629  cat conftest.$ac_ext >&5
3630  rm -rf conftest*
3631  eval "ac_cv_func_$ac_func=no"
3632fi
3633rm -f conftest*
3634fi
3635
3636if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3637  echo "$ac_t""yes" 1>&6
3638    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3639  cat >> confdefs.h <<EOF
3640#define $ac_tr_func 1
3641EOF
3642 
3643else
3644  echo "$ac_t""no" 1>&6
3645fi
3646done
3647
3648                # Extract the first word of "gmsgfmt", so it can be a program name with args.
3649set dummy gmsgfmt; ac_word=$2
3650echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[15780]3651echo "configure:3652: checking for $ac_word" >&5
[14481]3652if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3653  echo $ac_n "(cached) $ac_c" 1>&6
3654else
3655  case "$GMSGFMT" in
3656  /*)
3657  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3658  ;;
3659  ?:/*)                 
3660  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3661  ;;
3662  *)
3663  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3664  ac_dummy="$PATH"
3665  for ac_dir in $ac_dummy; do
3666    test -z "$ac_dir" && ac_dir=.
3667    if test -f $ac_dir/$ac_word; then
3668      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3669      break
3670    fi
3671  done
3672  IFS="$ac_save_ifs"
3673  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3674  ;;
3675esac
3676fi
3677GMSGFMT="$ac_cv_path_GMSGFMT"
3678if test -n "$GMSGFMT"; then
3679  echo "$ac_t""$GMSGFMT" 1>&6
3680else
3681  echo "$ac_t""no" 1>&6
3682fi
3683
3684                # Extract the first word of "xgettext", so it can be a program name with args.
3685set dummy xgettext; ac_word=$2
3686echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[15780]3687echo "configure:3688: checking for $ac_word" >&5
[14481]3688if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3689  echo $ac_n "(cached) $ac_c" 1>&6
3690else
3691  case "$XGETTEXT" in
3692  /*)
3693  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3694  ;;
3695  *)
3696  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3697  for ac_dir in $PATH; do
3698    test -z "$ac_dir" && ac_dir=.
3699    if test -f $ac_dir/$ac_word; then
3700      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3701        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3702        break
3703      fi
3704    fi
3705  done
3706  IFS="$ac_save_ifs"
3707  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3708  ;;
3709esac
3710fi
3711XGETTEXT="$ac_cv_path_XGETTEXT"
3712if test -n "$XGETTEXT"; then
3713  echo "$ac_t""$XGETTEXT" 1>&6
3714else
3715  echo "$ac_t""no" 1>&6
3716fi
3717
3718                cat > conftest.$ac_ext <<EOF
[15780]3719#line 3720 "configure"
[14481]3720#include "confdefs.h"
3721
3722int main() {
3723extern int _nl_msg_cat_cntr;
3724                               return _nl_msg_cat_cntr
3725; return 0; }
3726EOF
[15780]3727if { (eval echo configure:3728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]3728  rm -rf conftest*
3729  CATOBJEXT=.gmo
3730                   DATADIRNAME=share
3731else
3732  echo "configure: failed program was:" >&5
3733  cat conftest.$ac_ext >&5
3734  rm -rf conftest*
3735  CATOBJEXT=.mo
3736                   DATADIRNAME=lib
3737fi
3738rm -f conftest*
3739                INSTOBJEXT=.mo
3740              fi
3741            fi
3742
3743            # Added by Martin Baulig 12/15/98 for libc5 systems
3744            if test "$gt_cv_func_dgettext_libc" != "yes" \
3745               && test "$gt_cv_func_dgettext_libintl" = "yes"; then
3746               INTLLIBS=-lintl
3747               LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3748            fi
3749       
3750else
3751  echo "$ac_t""no" 1>&6
3752fi
3753
3754
3755        if test "$CATOBJEXT" = "NONE"; then
3756          echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
[15780]3757echo "configure:3758: checking whether catgets can be used" >&5
[14481]3758          # Check whether --with-catgets or --without-catgets was given.
3759if test "${with_catgets+set}" = set; then
3760  withval="$with_catgets"
3761  nls_cv_use_catgets=$withval
3762else
3763  nls_cv_use_catgets=no
3764fi
3765
3766          echo "$ac_t""$nls_cv_use_catgets" 1>&6
3767
3768          if test "$nls_cv_use_catgets" = "yes"; then
3769                    echo $ac_n "checking for main in -li""... $ac_c" 1>&6
[15780]3770echo "configure:3771: checking for main in -li" >&5
[14481]3771ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
3772if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3773  echo $ac_n "(cached) $ac_c" 1>&6
3774else
3775  ac_save_LIBS="$LIBS"
3776LIBS="-li  $LIBS"
3777cat > conftest.$ac_ext <<EOF
[15780]3778#line 3779 "configure"
[14481]3779#include "confdefs.h"
3780
3781int main() {
3782main()
3783; return 0; }
3784EOF
[15780]3785if { (eval echo configure:3786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]3786  rm -rf conftest*
3787  eval "ac_cv_lib_$ac_lib_var=yes"
3788else
3789  echo "configure: failed program was:" >&5
3790  cat conftest.$ac_ext >&5
3791  rm -rf conftest*
3792  eval "ac_cv_lib_$ac_lib_var=no"
3793fi
3794rm -f conftest*
3795LIBS="$ac_save_LIBS"
3796
3797fi
3798if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3799  echo "$ac_t""yes" 1>&6
3800    ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3801    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3802  cat >> confdefs.h <<EOF
3803#define $ac_tr_lib 1
3804EOF
3805
3806  LIBS="-li $LIBS"
3807
3808else
3809  echo "$ac_t""no" 1>&6
3810fi
3811
3812            echo $ac_n "checking for catgets""... $ac_c" 1>&6
[15780]3813echo "configure:3814: checking for catgets" >&5
[14481]3814if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
3815  echo $ac_n "(cached) $ac_c" 1>&6
3816else
3817  cat > conftest.$ac_ext <<EOF
[15780]3818#line 3819 "configure"
[14481]3819#include "confdefs.h"
3820/* System header to define __stub macros and hopefully few prototypes,
3821    which can conflict with char catgets(); below.  */
3822#include <assert.h>
3823/* Override any gcc2 internal prototype to avoid an error.  */
3824/* We use char because int might match the return type of a gcc2
3825    builtin and then its argument prototype would still apply.  */
3826char catgets();
3827
3828int main() {
3829
3830/* The GNU C library defines this for functions which it implements
3831    to always fail with ENOSYS.  Some functions are actually named
3832    something starting with __ and the normal name is an alias.  */
3833#if defined (__stub_catgets) || defined (__stub___catgets)
3834choke me
3835#else
3836catgets();
3837#endif
3838
3839; return 0; }
3840EOF
[15780]3841if { (eval echo configure:3842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]3842  rm -rf conftest*
3843  eval "ac_cv_func_catgets=yes"
3844else
3845  echo "configure: failed program was:" >&5
3846  cat conftest.$ac_ext >&5
3847  rm -rf conftest*
3848  eval "ac_cv_func_catgets=no"
3849fi
3850rm -f conftest*
3851fi
3852
3853if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
3854  echo "$ac_t""yes" 1>&6
3855  cat >> confdefs.h <<\EOF
3856#define HAVE_CATGETS 1
3857EOF
3858
3859               INTLOBJS="\$(CATOBJS)"
3860               # Extract the first word of "gencat", so it can be a program name with args.
3861set dummy gencat; ac_word=$2
3862echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[15780]3863echo "configure:3864: checking for $ac_word" >&5
[14481]3864if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
3865  echo $ac_n "(cached) $ac_c" 1>&6
3866else
3867  case "$GENCAT" in
3868  /*)
3869  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
3870  ;;
3871  ?:/*)                 
3872  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
3873  ;;
3874  *)
3875  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3876  ac_dummy="$PATH"
3877  for ac_dir in $ac_dummy; do
3878    test -z "$ac_dir" && ac_dir=.
3879    if test -f $ac_dir/$ac_word; then
3880      ac_cv_path_GENCAT="$ac_dir/$ac_word"
3881      break
3882    fi
3883  done
3884  IFS="$ac_save_ifs"
3885  test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
3886  ;;
3887esac
3888fi
3889GENCAT="$ac_cv_path_GENCAT"
3890if test -n "$GENCAT"; then
3891  echo "$ac_t""$GENCAT" 1>&6
3892else
3893  echo "$ac_t""no" 1>&6
3894fi
3895#              if test "$GENCAT" != "no"; then
3896#                AC_PATH_PROG(GMSGFMT, gmsgfmt, no)
3897#                if test "$GMSGFMT" = "no"; then
3898#                  AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt,
3899#                   [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)
3900#                fi
3901#                AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
3902#                  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
3903#                USE_INCLUDED_LIBINTL=yes
3904#                CATOBJEXT=.cat
3905#                INSTOBJEXT=.cat
3906#                DATADIRNAME=lib
3907#                INTLDEPS='$(top_builddir)/intl/libintl.a'
3908#                INTLLIBS=$INTLDEPS
3909#                LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3910#                nls_cv_header_intl=intl/libintl.h
3911#                nls_cv_header_libgt=intl/libgettext.h
3912#              fi
3913           
3914else
3915  echo "$ac_t""no" 1>&6
3916fi
3917
3918          fi
3919        fi
3920
3921        if test "$CATOBJEXT" = "NONE"; then
3922                          nls_cv_use_gnu_gettext=yes
3923        fi
3924      fi
3925
3926      if test "$nls_cv_use_gnu_gettext" != "yes"; then
3927        cat >> confdefs.h <<\EOF
3928#define ENABLE_NLS 1
3929EOF
3930
3931      else
3932         # Unset this variable since we use the non-zero value as a flag.
3933         CATOBJEXT=
3934#        dnl Mark actions used to generate GNU NLS library.
3935#        INTLOBJS="\$(GETTOBJS)"
3936#        AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
3937#         [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt)
3938#        AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
3939#        AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
3940#         [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
3941#        AC_SUBST(MSGFMT)
3942#       USE_INCLUDED_LIBINTL=yes
3943#        CATOBJEXT=.gmo
3944#        INSTOBJEXT=.mo
3945#        DATADIRNAME=share
3946#       INTLDEPS='$(top_builddir)/intl/libintl.a'
3947#       INTLLIBS=$INTLDEPS
3948#       LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3949#        nls_cv_header_intl=intl/libintl.h
3950#        nls_cv_header_libgt=intl/libgettext.h
3951      fi
3952
3953            if test "$XGETTEXT" != ":"; then
3954                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3955          : ;
3956        else
3957          echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3958          XGETTEXT=":"
3959        fi
3960      fi
3961
3962      # We need to process the po/ directory.
3963      POSUB=po
3964    else
3965      DATADIRNAME=share
3966      nls_cv_header_intl=intl/libintl.h
3967      nls_cv_header_libgt=intl/libgettext.h
3968    fi
3969   
3970   
3971
3972
3973#    # If this is used in GNU gettext we have to set USE_NLS to `yes'
3974#    # because some of the sources are only built for this goal.
3975#    if test "$PACKAGE" = gettext; then
3976#      USE_NLS=yes
3977#      USE_INCLUDED_LIBINTL=yes
3978#    fi
3979
3980                for lang in $ALL_LINGUAS; do
3981      GMOFILES="$GMOFILES $lang.gmo"
3982      POFILES="$POFILES $lang.po"
3983    done
3984
3985       
3986   
3987   
3988   
3989   
3990   
3991   
3992   
3993   
3994   
3995   
3996 
3997
3998   if test "x$CATOBJEXT" != "x"; then
3999     if test "x$ALL_LINGUAS" = "x"; then
4000       LINGUAS=
4001     else
4002       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
[15780]4003echo "configure:4004: checking for catalogs to be installed" >&5
[14481]4004       NEW_LINGUAS=
4005       for lang in ${LINGUAS=$ALL_LINGUAS}; do
4006         case "$ALL_LINGUAS" in
4007          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4008         esac
4009       done
4010       LINGUAS=$NEW_LINGUAS
4011       echo "$ac_t""$LINGUAS" 1>&6
4012     fi
4013
4014          if test -n "$LINGUAS"; then
4015       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4016     fi
4017   fi
4018
4019            if test $ac_cv_header_locale_h = yes; then
4020     INCLUDE_LOCALE_H="#include <locale.h>"
4021   else
4022     INCLUDE_LOCALE_H="\
4023/* The system does not provide the header <locale.h>.  Take care yourself.  */"
4024   fi
4025   
4026
4027            test -d intl || mkdir intl
4028   if test "$CATOBJEXT" = ".cat"; then
4029     ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4030echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
[15780]4031echo "configure:4032: checking for linux/version.h" >&5
[14481]4032if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4033  echo $ac_n "(cached) $ac_c" 1>&6
4034else
4035  cat > conftest.$ac_ext <<EOF
[15780]4036#line 4037 "configure"
[14481]4037#include "confdefs.h"
4038#include <linux/version.h>
4039EOF
4040ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[15780]4041{ (eval echo configure:4042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[14481]4042ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4043if test -z "$ac_err"; then
4044  rm -rf conftest*
4045  eval "ac_cv_header_$ac_safe=yes"
4046else
4047  echo "$ac_err" >&5
4048  echo "configure: failed program was:" >&5
4049  cat conftest.$ac_ext >&5
4050  rm -rf conftest*
4051  eval "ac_cv_header_$ac_safe=no"
4052fi
4053rm -f conftest*
4054fi
4055if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4056  echo "$ac_t""yes" 1>&6
4057  msgformat=linux
4058else
4059  echo "$ac_t""no" 1>&6
4060msgformat=xopen
4061fi
4062
4063
4064               sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
4065   fi
4066      sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4067     $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
4068
4069            if test "$PACKAGE" = "gettext"; then
4070     GT_NO="#NO#"
4071     GT_YES=
4072   else
4073     GT_NO=
4074     GT_YES="#YES#"
4075   fi
4076   
4077   
4078
4079            MKINSTALLDIRS=
4080   if test -n "$ac_aux_dir"; then
4081     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
4082   fi
4083   if test -z "$MKINSTALLDIRS"; then
4084     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4085   fi
4086   
4087
4088      l=
4089   
4090
4091         test -d po || mkdir po
4092   if test "x$srcdir" != "x."; then
4093     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4094       posrcprefix="$srcdir/"
4095     else
4096       posrcprefix="../$srcdir/"
4097     fi
4098   else
4099     posrcprefix="../"
4100   fi
4101   rm -f po/POTFILES
4102   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4103        < $srcdir/po/POTFILES.in > po/POTFILES
4104 
4105LIBS="$LIBS $INTLLIBS"
4106
4107# AM_GTK_GNU_GETTEXT above substs $DATADIRNAME
4108# this is the directory where the *.{mo,gmo} files are installed
4109gtklocaledir='${prefix}/${DATADIRNAME}/locale'
4110
4111
4112echo $ac_n "checking for extra flags to get ANSI library prototypes""... $ac_c" 1>&6
[15780]4113echo "configure:4114: checking for extra flags to get ANSI library prototypes" >&5
[14481]4114
4115gtk_save_LIBS=$LIBS
4116LIBS="$LIBS -lm"
4117if test "$cross_compiling" = yes; then
4118  echo "$ac_t""none needed" 1>&6
4119
4120else
4121  cat > conftest.$ac_ext <<EOF
[15780]4122#line 4123 "configure"
[14481]4123#include "confdefs.h"
4124#include <math.h>
4125             int main (void) { return (log(1) != log(1.)); }
4126EOF
[15780]4127if { (eval echo configure:4128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
[14481]4128then
4129  echo "$ac_t""none needed" 1>&6
4130else
4131  echo "configure: failed program was:" >&5
4132  cat conftest.$ac_ext >&5
4133  rm -fr conftest*
4134  gtk_save_CFLAGS=$CFLAGS
4135     CFLAGS="$CFLAGS -std1"
4136     if test "$cross_compiling" = yes; then
4137  true
4138     
4139else
4140  cat > conftest.$ac_ext <<EOF
[15780]4141#line 4142 "configure"
[14481]4142#include "confdefs.h"
4143#include <math.h>
4144                 int main (void) { return (log(1) != log(1.)); }
4145EOF
[15780]4146if { (eval echo configure:4147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
[14481]4147then
4148  echo "$ac_t""-std1" 1>&6
4149else
4150  echo "configure: failed program was:" >&5
4151  cat conftest.$ac_ext >&5
4152  rm -fr conftest*
4153  echo "$ac_t""" 1>&6
4154         CFLAGS=$gtk_save_CFLAGS
4155         echo "configure: warning: No ANSI prototypes found in library. (-std1 didn't work.)" 1>&2
4156fi
4157rm -fr conftest*
4158fi
4159
4160fi
4161rm -fr conftest*
4162fi
4163
4164LIBS=$gtk_save_LIBS
4165
4166echo $ac_n "checking for extra flags for POSIX compliance""... $ac_c" 1>&6
[15780]4167echo "configure:4168: checking for extra flags for POSIX compliance" >&5
[14481]4168cat > conftest.$ac_ext <<EOF
[15780]4169#line 4170 "configure"
[14481]4170#include "confdefs.h"
4171#include <dirent.h>
4172int main() {
4173DIR *dir;
4174; return 0; }
4175EOF
[15780]4176if { (eval echo configure:4177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
[14481]4177  rm -rf conftest*
4178  echo "$ac_t""none needed" 1>&6
4179else
4180  echo "configure: failed program was:" >&5
4181  cat conftest.$ac_ext >&5
4182  rm -rf conftest*
4183  gtk_save_CFLAGS=$CFLAGS
4184  CFLAGS="$CFLAGS -posix"
4185  cat > conftest.$ac_ext <<EOF
[15780]4186#line 4187 "configure"
[14481]4187#include "confdefs.h"
4188#include <dirent.h>
4189int main() {
4190DIR *dir;
4191; return 0; }
4192EOF
[15780]4193if { (eval echo configure:4194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
[14481]4194  rm -rf conftest*
4195  echo "$ac_t""-posix" 1>&6
4196else
4197  echo "configure: failed program was:" >&5
4198  cat conftest.$ac_ext >&5
4199  rm -rf conftest*
4200  echo "$ac_t""" 1>&6
4201    CFLAGS=$gtk_save_CFLAGS
4202    echo "configure: warning: Could not determine POSIX flag. (-posix didn't work.)" 1>&2
4203fi
4204rm -f conftest*
4205fi
4206rm -f conftest*
4207
4208if test x$with_glib = xyes ; then
4209  { echo "configure: error:
4210*** Directory must be specified for --with-glib" 1>&2; exit 1; }
4211fi
4212
4213if test x$with_glib = x ; then
4214  # Look for separately installed glib
4215
4216  # Check whether --with-glib-prefix or --without-glib-prefix was given.
4217if test "${with_glib_prefix+set}" = set; then
4218  withval="$with_glib_prefix"
4219  glib_config_prefix="$withval"
4220else
4221  glib_config_prefix=""
4222fi
4223
4224# Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
4225if test "${with_glib_exec_prefix+set}" = set; then
4226  withval="$with_glib_exec_prefix"
4227  glib_config_exec_prefix="$withval"
4228else
4229  glib_config_exec_prefix=""
4230fi
4231
4232# Check whether --enable-glibtest or --disable-glibtest was given.
4233if test "${enable_glibtest+set}" = set; then
4234  enableval="$enable_glibtest"
4235  :
4236else
4237  enable_glibtest=yes
4238fi
4239
4240
4241  if test x$glib_config_exec_prefix != x ; then
4242     glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
4243     if test x${GLIB_CONFIG+set} != xset ; then
4244        GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
4245     fi
4246  fi
4247  if test x$glib_config_prefix != x ; then
4248     glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
4249     if test x${GLIB_CONFIG+set} != xset ; then
4250        GLIB_CONFIG=$glib_config_prefix/bin/glib-config
4251     fi
4252  fi
4253
4254  for module in . gmodule gthread
4255  do
4256      case "$module" in
4257         gmodule)
4258             glib_config_args="$glib_config_args gmodule"
4259         ;;
4260         gthread)
4261             glib_config_args="$glib_config_args gthread"
4262         ;;
4263      esac
4264  done
4265
4266  # Extract the first word of "glib-config", so it can be a program name with args.
4267set dummy glib-config; ac_word=$2
4268echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
[15780]4269echo "configure:4270: checking for $ac_word" >&5
[14481]4270if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
4271  echo $ac_n "(cached) $ac_c" 1>&6
4272else
4273  case "$GLIB_CONFIG" in
4274  /*)
4275  ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
4276  ;;
4277  ?:/*)                 
4278  ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
4279  ;;
4280  *)
4281  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4282  ac_dummy="$PATH"
4283  for ac_dir in $ac_dummy; do
4284    test -z "$ac_dir" && ac_dir=.
4285    if test -f $ac_dir/$ac_word; then
4286      ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
4287      break
4288    fi
4289  done
4290  IFS="$ac_save_ifs"
4291  test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
4292  ;;
4293esac
4294fi
4295GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
4296if test -n "$GLIB_CONFIG"; then
4297  echo "$ac_t""$GLIB_CONFIG" 1>&6
4298else
4299  echo "$ac_t""no" 1>&6
4300fi
4301
[14809]4302  min_glib_version=1.2.8
[14481]4303  echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
[15780]4304echo "configure:4305: checking for GLIB - version >= $min_glib_version" >&5
[14481]4305  no_glib=""
4306  if test "$GLIB_CONFIG" = "no" ; then
4307    no_glib=yes
4308  else
4309    GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
4310    GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
4311    glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
4312           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4313    glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
4314           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4315    glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
4316           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4317    if test "x$enable_glibtest" = "xyes" ; then
4318      ac_save_CFLAGS="$CFLAGS"
4319      ac_save_LIBS="$LIBS"
4320      CFLAGS="$CFLAGS $GLIB_CFLAGS"
4321      LIBS="$GLIB_LIBS $LIBS"
4322      rm -f conf.glibtest
4323      if test "$cross_compiling" = yes; then
4324  echo $ac_n "cross compiling; assumed OK... $ac_c"
4325else
4326  cat > conftest.$ac_ext <<EOF
[15780]4327#line 4328 "configure"
[14481]4328#include "confdefs.h"
4329
4330#include <glib.h>
4331#include <stdio.h>
4332#include <stdlib.h>
4333
4334int
4335main ()
4336{
4337  int major, minor, micro;
4338  char *tmp_version;
4339
4340  system ("touch conf.glibtest");
4341
4342  /* HP/UX 9 (%@#!) writes to sscanf strings */
4343  tmp_version = g_strdup("$min_glib_version");
4344  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
4345     printf("%s, bad version string\n", "$min_glib_version");
4346     exit(1);
4347   }
4348
4349  if ((glib_major_version != $glib_config_major_version) ||
4350      (glib_minor_version != $glib_config_minor_version) ||
4351      (glib_micro_version != $glib_config_micro_version))
4352    {
4353      printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
4354             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
4355             glib_major_version, glib_minor_version, glib_micro_version);
4356      printf ("*** was found! If glib-config was correct, then it is best\n");
4357      printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
4358      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
4359      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
4360      printf("*** required on your system.\n");
4361      printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
4362      printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
4363      printf("*** before re-running configure\n");
4364    }
4365  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
4366           (glib_minor_version != GLIB_MINOR_VERSION) ||
4367           (glib_micro_version != GLIB_MICRO_VERSION))
4368    {
4369      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
4370             GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
4371      printf("*** library (version %d.%d.%d)\n",
4372             glib_major_version, glib_minor_version, glib_micro_version);
4373    }
4374  else
4375    {
4376      if ((glib_major_version > major) ||
4377        ((glib_major_version == major) && (glib_minor_version > minor)) ||
4378        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
4379      {
4380        return 0;
4381       }
4382     else
4383      {
4384        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
4385               glib_major_version, glib_minor_version, glib_micro_version);
4386        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
4387               major, minor, micro);
4388        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
4389        printf("***\n");
4390        printf("*** If you have already installed a sufficiently new version, this error\n");
4391        printf("*** probably means that the wrong copy of the glib-config shell script is\n");
4392        printf("*** being found. The easiest way to fix this is to remove the old version\n");
4393        printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
4394        printf("*** correct copy of glib-config. (In this case, you will have to\n");
4395        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
4396        printf("*** so that the correct libraries are found at run-time))\n");
4397      }
4398    }
4399  return 1;
4400}
4401
4402EOF
[15780]4403if { (eval echo configure:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
[14481]4404then
4405  :
4406else
4407  echo "configure: failed program was:" >&5
4408  cat conftest.$ac_ext >&5
4409  rm -fr conftest*
4410  no_glib=yes
4411fi
4412rm -fr conftest*
4413fi
4414
4415       CFLAGS="$ac_save_CFLAGS"
4416       LIBS="$ac_save_LIBS"
4417     fi
4418  fi
4419  if test "x$no_glib" = x ; then
4420     echo "$ac_t""yes" 1>&6
4421     :     
4422  else
4423     echo "$ac_t""no" 1>&6
4424     if test "$GLIB_CONFIG" = "no" ; then
4425       echo "*** The glib-config script installed by GLIB could not be found"
4426       echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
4427       echo "*** your path, or set the GLIB_CONFIG environment variable to the"
4428       echo "*** full path to glib-config."
4429     else
4430       if test -f conf.glibtest ; then
4431        :
4432       else
4433          echo "*** Could not run GLIB test program, checking why..."
4434          CFLAGS="$CFLAGS $GLIB_CFLAGS"
4435          LIBS="$LIBS $GLIB_LIBS"
4436          cat > conftest.$ac_ext <<EOF
[15780]4437#line 4438 "configure"
[14481]4438#include "confdefs.h"
4439
4440#include <glib.h>
4441#include <stdio.h>
4442
4443int main() {
4444 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
4445; return 0; }
4446EOF
[15780]4447if { (eval echo configure:4448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]4448  rm -rf conftest*
4449   echo "*** The test program compiled, but did not run. This usually means"
4450          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
4451          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
4452          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4453          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
4454          echo "*** is required on your system"
4455          echo "***"
4456          echo "*** If you have an old version installed, it is best to remove it, although"
4457          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4458          echo "***"
4459          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
4460          echo "*** came with the system with the command"
4461          echo "***"
4462          echo "***    rpm --erase --nodeps gtk gtk-devel"
4463else
4464  echo "configure: failed program was:" >&5
4465  cat conftest.$ac_ext >&5
4466  rm -rf conftest*
4467   echo "*** The test program failed to compile or link. See the file config.log for the"
4468          echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
4469          echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
4470          echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
4471fi
4472rm -f conftest*
4473          CFLAGS="$ac_save_CFLAGS"
4474          LIBS="$ac_save_LIBS"
4475       fi
4476     fi
4477     GLIB_CFLAGS=""
4478     GLIB_LIBS=""
4479     { echo "configure: error:
[14809]4480*** GLIB 1.2.8 or better is required. The latest version of GLIB
[14481]4481*** is always available from ftp://ftp.gtk.org/." 1>&2; exit 1; }
4482  fi
4483 
4484 
4485  rm -f conf.glibtest
4486
4487
4488  # we do not want to make all gtk progs to link to thread libraries.
4489  glib_cflags=`$GLIB_CONFIG glib gmodule --cflags`
4490  glib_thread_cflags="$GLIB_CFLAGS"
4491  glib_libs=`$GLIB_CONFIG glib gmodule --libs`
4492  glib_thread_libs="$GLIB_LIBS"
4493  GLIB_LIBS="$glib_libs"
4494  GLIB_DEPLIBS="$glib_libs"
4495else
4496  # Use uninstalled glib (assume they got the version right)
4497
4498  GLIB_CONFIG=$with_glib/glib-config
4499  if test -x $GLIB_CONFIG ; then
4500    :
4501  else
4502    { echo "configure: error: GLIB directory ($with_glib) not present or not configured" 1>&2; exit 1; }
4503  fi
4504
4505  # For use in gtk-config
4506  glib_cflags=`$GLIB_CONFIG --cflags gmodule`
4507  glib_thread_cflags=`$GLIB_CONFIG --cflags gmodule gthread`
4508  glib_libs=`$GLIB_CONFIG --libs gmodule`
4509  glib_thread_libs=`$GLIB_CONFIG --libs gmodule gthread`
4510
4511  glib_release=`$GLIB_CONFIG --version | sed 's%\\.[0-9]*$%%'`
4512
4513  # canonicalize relative paths
4514  case $with_glib in
4515    /*)
4516      glib_dir=$with_glib
4517      ;;
4518    *)
4519      glib_dir="\$(top_builddir)/$with_glib"
4520      ;;
4521  esac
4522
4523  GLIB_CFLAGS="-I$glib_dir -I$glib_dir/gmodule"
4524  GLIB_LIBS="$glib_dir/libglib.la $glib_dir/gmodule/libgmodule.la"
4525  GLIB_DEPLIBS=
4526
4527 
4528 
4529fi
4530
4531
4532
4533
4534
4535
4536
4537# Find the X11 include and library directories
4538# If we find X, set shell vars x_includes and x_libraries to the
4539# paths, otherwise set no_x=yes.
4540# Uses ac_ vars as temps to allow command line to override cache and checks.
4541# --without-x overrides everything else, but does not touch the cache.
4542echo $ac_n "checking for X""... $ac_c" 1>&6
[15780]4543echo "configure:4544: checking for X" >&5
[14481]4544
4545# Check whether --with-x or --without-x was given.
4546if test "${with_x+set}" = set; then
4547  withval="$with_x"
4548  :
4549fi
4550
4551# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4552if test "x$with_x" = xno; then
4553  # The user explicitly disabled X.
4554  have_x=disabled
4555else
4556  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4557    # Both variables are already set.
4558    have_x=yes
4559  else
4560if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4561  echo $ac_n "(cached) $ac_c" 1>&6
4562else
4563  # One or both of the vars are not set, and there is no cached value.
4564ac_x_includes=NO ac_x_libraries=NO
4565rm -fr conftestdir
4566if mkdir conftestdir; then
4567  cd conftestdir
4568  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4569  cat > Imakefile <<'EOF'
4570acfindx:
4571        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4572EOF
4573  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4574    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4575    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4576    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4577    for ac_extension in a so sl; do
4578      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4579        test -f $ac_im_libdir/libX11.$ac_extension; then
4580        ac_im_usrlibdir=$ac_im_libdir; break
4581      fi
4582    done
4583    # Screen out bogus values from the imake configuration.  They are
4584    # bogus both because they are the default anyway, and because
4585    # using them would break gcc on systems where it needs fixed includes.
4586    case "$ac_im_incroot" in
4587        /usr/include) ;;
4588        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4589    esac
4590    case "$ac_im_usrlibdir" in
4591        /usr/lib | /lib) ;;
4592        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4593    esac
4594  fi
4595  cd ..
4596  rm -fr conftestdir
4597fi
4598
4599if test "$ac_x_includes" = NO; then
4600  # Guess where to find include files, by looking for this one X11 .h file.
4601  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4602
4603  # First, try using that file with no special directory specified.
4604cat > conftest.$ac_ext <<EOF
[15780]4605#line 4606 "configure"
[14481]4606#include "confdefs.h"
4607#include <$x_direct_test_include>
4608EOF
4609ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
[15780]4610{ (eval echo configure:4611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
[14481]4611ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4612if test -z "$ac_err"; then
4613  rm -rf conftest*
4614  # We can compile using X headers with no special include directory.
4615ac_x_includes=
4616else
4617  echo "$ac_err" >&5
4618  echo "configure: failed program was:" >&5
4619  cat conftest.$ac_ext >&5
4620  rm -rf conftest*
4621  # Look for the header file in a standard set of common directories.
4622# Check X11 before X11Rn because it is often a symlink to the current release.
4623  for ac_dir in               \
4624    /usr/X11/include          \
4625    /usr/X11R6/include        \
4626    /usr/X11R5/include        \
4627    /usr/X11R4/include        \
4628                              \
4629    /usr/include/X11          \
4630    /usr/include/X11R6        \
4631    /usr/include/X11R5        \
4632    /usr/include/X11R4        \
4633                              \
4634    /usr/local/X11/include    \
4635    /usr/local/X11R6/include  \
4636    /usr/local/X11R5/include  \
4637    /usr/local/X11R4/include  \
4638                              \
4639    /usr/local/include/X11    \
4640    /usr/local/include/X11R6  \
4641    /usr/local/include/X11R5  \
4642    /usr/local/include/X11R4  \
4643                              \
4644    /usr/X386/include         \
4645    /usr/x386/include         \
4646    /usr/XFree86/include/X11  \
4647                              \
4648    /usr/include              \
4649    /usr/local/include        \
4650    /usr/unsupported/include  \
4651    /usr/athena/include       \
4652    /usr/local/x11r5/include  \
4653    /usr/lpp/Xamples/include  \
4654                              \
4655    /usr/openwin/include      \
4656    /usr/openwin/share/include \
4657    ; \
4658  do
4659    if test -r "$ac_dir/$x_direct_test_include"; then
4660      ac_x_includes=$ac_dir
4661      break
4662    fi
4663  done
4664fi
4665rm -f conftest*
4666fi # $ac_x_includes = NO
4667
4668if test "$ac_x_libraries" = NO; then
4669  # Check for the libraries.
4670
4671  test -z "$x_direct_test_library" && x_direct_test_library=Xt
4672  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4673
4674  # See if we find them without any special options.
4675  # Don't add to $LIBS permanently.
4676  ac_save_LIBS="$LIBS"
4677  LIBS="-l$x_direct_test_library $LIBS"
4678cat > conftest.$ac_ext <<EOF
[15780]4679#line 4680 "configure"
[14481]4680#include "confdefs.h"
4681
4682int main() {
4683${x_direct_test_function}()
4684; return 0; }
4685EOF
[15780]4686if { (eval echo configure:4687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]4687  rm -rf conftest*
4688  LIBS="$ac_save_LIBS"
4689# We can link X programs with no special library path.
4690ac_x_libraries=
4691else
4692  echo "configure: failed program was:" >&5
4693  cat conftest.$ac_ext >&5
4694  rm -rf conftest*
4695  LIBS="$ac_save_LIBS"
4696# First see if replacing the include by lib works.
4697# Check X11 before X11Rn because it is often a symlink to the current release.
4698for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4699    /usr/X11/lib          \
4700    /usr/X11R6/lib        \
4701    /usr/X11R5/lib        \
4702    /usr/X11R4/lib        \
4703                          \
4704    /usr/lib/X11          \
4705    /usr/lib/X11R6        \
4706    /usr/lib/X11R5        \
4707    /usr/lib/X11R4        \
4708                          \
4709    /usr/local/X11/lib    \
4710    /usr/local/X11R6/lib  \
4711    /usr/local/X11R5/lib  \
4712    /usr/local/X11R4/lib  \
4713                          \
4714    /usr/local/lib/X11    \
4715    /usr/local/lib/X11R6  \
4716    /usr/local/lib/X11R5  \
4717    /usr/local/lib/X11R4  \
4718                          \
4719    /usr/X386/lib         \
4720    /usr/x386/lib         \
4721    /usr/XFree86/lib/X11  \
4722                          \
4723    /usr/lib              \
4724    /usr/local/lib        \
4725    /usr/unsupported/lib  \
4726    /usr/athena/lib       \
4727    /usr/local/x11r5/lib  \
4728    /usr/lpp/Xamples/lib  \
4729    /lib/usr/lib/X11      \
4730                          \
4731    /usr/openwin/lib      \
4732    /usr/openwin/share/lib \
4733    ; \
4734do
4735  for ac_extension in a so sl; do
4736    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4737      ac_x_libraries=$ac_dir
4738      break 2
4739    fi
4740  done
4741done
4742fi
4743rm -f conftest*
4744fi # $ac_x_libraries = NO
4745
4746if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4747  # Didn't find X anywhere.  Cache the known absence of X.
4748  ac_cv_have_x="have_x=no"
4749else
4750  # Record where we found X for the cache.
4751  ac_cv_have_x="have_x=yes \
4752                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4753fi
4754fi
4755  fi
4756  eval "$ac_cv_have_x"
4757fi # $with_x != no
4758
4759if test "$have_x" != yes; then
4760  echo "$ac_t""$have_x" 1>&6
4761  no_x=yes
4762else
4763  # If each of the values was on the command line, it overrides each guess.
4764  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4765  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4766  # Update the cache value to reflect the command line values.
4767  ac_cv_have_x="have_x=yes \
4768                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4769  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4770fi
4771
4772if test "$no_x" = yes; then
4773  # Not all programs may use this symbol, but it does not hurt to define it.
4774  cat >> confdefs.h <<\EOF
4775#define X_DISPLAY_MISSING 1
4776EOF
4777
4778  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4779else
4780  if test -n "$x_includes"; then
4781    X_CFLAGS="$X_CFLAGS -I$x_includes"
4782  fi
4783
4784  # It would also be nice to do this for all -L options, not just this one.
4785  if test -n "$x_libraries"; then
4786    X_LIBS="$X_LIBS -L$x_libraries"
4787    # For Solaris; some versions of Sun CC require a space after -R and
4788    # others require no space.  Words are not sufficient . . . .
4789    case "`(uname -sr) 2>/dev/null`" in
4790    "SunOS 5"*)
4791      echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
[15780]4792echo "configure:4793: checking whether -R must be followed by a space" >&5
[14481]4793      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4794      cat > conftest.$ac_ext <<EOF
[15780]4795#line 4796 "configure"
[14481]4796#include "confdefs.h"
4797
4798int main() {
4799
4800; return 0; }
4801EOF
[15780]4802if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]4803  rm -rf conftest*
4804  ac_R_nospace=yes
4805else
4806  echo "configure: failed program was:" >&5
4807  cat conftest.$ac_ext >&5
4808  rm -rf conftest*
4809  ac_R_nospace=no
4810fi
4811rm -f conftest*
4812      if test $ac_R_nospace = yes; then
4813        echo "$ac_t""no" 1>&6
4814        X_LIBS="$X_LIBS -R$x_libraries"
4815      else
4816        LIBS="$ac_xsave_LIBS -R $x_libraries"
4817        cat > conftest.$ac_ext <<EOF
[15780]4818#line 4819 "configure"
[14481]4819#include "confdefs.h"
4820
4821int main() {
4822
4823; return 0; }
4824EOF
[15780]4825if { (eval echo configure:4826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
[14481]4826  rm -rf conftest*
4827  ac_R_space=yes
4828else
4829  echo "configure: failed program was:" >&5
4830  cat conftest.$ac_ext >&5
4831  rm -rf conftest*
4832  ac_R_space=no
4833fi
4834rm -f conftest*
4835        if test $ac_R_space = yes; then
4836          echo "$ac_t""yes" 1>&6
4837          X_LIBS="$X_LIBS -R $x_libraries"
4838        else
4839          echo "$ac_t""neither works" 1>&6
4840        fi
4841      fi
4842      LIBS="$ac_xsave_LIBS"
4843    esac
4844  fi
4845
4846  # Check for system-dependent libraries X programs must link with.
4847  # Do this before checking for the system-independent R6 libraries
4848  # (-lICE), since we may need -lsocket or whatever for X linking.
4849
4850  if test "$ISC" = yes; then
4851    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4852  else
4853    # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4854    # libraries were built with DECnet support.  And karl@cs.umb.edu says
4855    # the Alpha needs dnet_stub (dnet does not exist).
4856    echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
[15780]4857echo "configure:4858: checking for dnet_ntoa in -ldnet" >&5
[14481]4858ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4859if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4860  echo $ac_n "(cached) $ac_c" 1>&6
4861else
4862  ac_save_LIBS="$LIBS"
4863LIBS="-ldnet  $LIBS"
4864cat > conftest.$ac_ext <<EOF