source: trunk/third/gnome-core/configure @ 15821

Revision 15821, 207.8 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r15820, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --enable-maintainer-mode enable make rules and dependencies not useful
16                          (and sometimes confusing) to the casual installer"
17ac_help="$ac_help
18  --with-gnome-includes   Specify location of GNOME headers"
19ac_help="$ac_help
20  --with-gnome-libs       Specify location of GNOME libs"
21ac_help="$ac_help
22  --with-gnome            Specify prefix for GNOME files"
23ac_help="$ac_help
24  --enable-shared[=PKGS]  build shared libraries [default=yes]"
25ac_help="$ac_help
26  --enable-static[=PKGS]  build static libraries [default=yes]"
27ac_help="$ac_help
28  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
29ac_help="$ac_help
30  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
31ac_help="$ac_help
32  --disable-libtool-lock  avoid locking (might break parallel builds)"
33ac_help="$ac_help
34  --enable-compile-warnings=[no/minimum/yes]    Turn on compiler warnings."
35ac_help="$ac_help
36  --enable-iso-c          Try to warn if code is not ISO C "
37ac_help="$ac_help
38  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
39ac_help="$ac_help
40  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
41ac_help="$ac_help
42  --disable-gtktest       Do not try to compile and run a test GTK program"
43ac_help="$ac_help
44  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
45ac_help="$ac_help
46  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
47ac_help="$ac_help
48  --disable-gtktest       Do not try to compile and run a test GTK program"
49ac_help="$ac_help
50  --disable-nls           do not use Native Language Support"
51ac_help="$ac_help
52  --with-catgets          use catgets functions if available"
53ac_help="$ac_help
54  --with-window-manager=NAME
55                           Specify default window manager"
56ac_help="$ac_help
57  --with-gtkhtml=PREFIX  Specify gtkhtml prefix"
58ac_help="$ac_help
59  --with-gnome-print=PREFIX  Specify gnome-print prefix"
60ac_help="$ac_help
61  --enable-gtkhtml-help  Use GtkHTML for the help browser"
62ac_help="$ac_help
63  --with-kde-datadir=DIR         Location of KDE data"
64ac_help="$ac_help
65  --with-kde-docdir=DIR         Location of KDE documentation"
66ac_help="$ac_help
67  --enable-gtk-doc  Use gtk-doc to build documentation [default=auto]"
68
69# Initialize some variables set by options.
70# The variables have the same names as the options, with
71# dashes changed to underlines.
72build=NONE
73cache_file=./config.cache
74exec_prefix=NONE
75host=NONE
76no_create=
77nonopt=NONE
78no_recursion=
79prefix=NONE
80program_prefix=NONE
81program_suffix=NONE
82program_transform_name=s,x,x,
83silent=
84site=
85srcdir=
86target=NONE
87verbose=
88x_includes=NONE
89x_libraries=NONE
90bindir='${exec_prefix}/bin'
91sbindir='${exec_prefix}/sbin'
92libexecdir='${exec_prefix}/libexec'
93datadir='${prefix}/share'
94sysconfdir='${prefix}/etc'
95sharedstatedir='${prefix}/com'
96localstatedir='${prefix}/var'
97libdir='${exec_prefix}/lib'
98includedir='${prefix}/include'
99oldincludedir='/usr/include'
100infodir='${prefix}/info'
101mandir='${prefix}/man'
102
103# Initialize some other variables.
104subdirs=
105MFLAGS= MAKEFLAGS=
106SHELL=${CONFIG_SHELL-/bin/sh}
107# Maximum number of lines to put in a shell here document.
108ac_max_here_lines=12
109
110ac_prev=
111for ac_option
112do
113
114  # If the previous option needs an argument, assign it.
115  if test -n "$ac_prev"; then
116    eval "$ac_prev=\$ac_option"
117    ac_prev=
118    continue
119  fi
120
121  case "$ac_option" in
122  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123  *) ac_optarg= ;;
124  esac
125
126  # Accept the important Cygnus configure options, so we can diagnose typos.
127
128  case "$ac_option" in
129
130  -bindir | --bindir | --bindi | --bind | --bin | --bi)
131    ac_prev=bindir ;;
132  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133    bindir="$ac_optarg" ;;
134
135  -build | --build | --buil | --bui | --bu)
136    ac_prev=build ;;
137  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
138    build="$ac_optarg" ;;
139
140  -cache-file | --cache-file | --cache-fil | --cache-fi \
141  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142    ac_prev=cache_file ;;
143  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145    cache_file="$ac_optarg" ;;
146
147  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
148    ac_prev=datadir ;;
149  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
150  | --da=*)
151    datadir="$ac_optarg" ;;
152
153  -disable-* | --disable-*)
154    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155    # Reject names that are not valid shell variable names.
156    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158    fi
159    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160    eval "enable_${ac_feature}=no" ;;
161
162  -enable-* | --enable-*)
163    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164    # Reject names that are not valid shell variable names.
165    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167    fi
168    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169    case "$ac_option" in
170      *=*) ;;
171      *) ac_optarg=yes ;;
172    esac
173    eval "enable_${ac_feature}='$ac_optarg'" ;;
174
175  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177  | --exec | --exe | --ex)
178    ac_prev=exec_prefix ;;
179  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181  | --exec=* | --exe=* | --ex=*)
182    exec_prefix="$ac_optarg" ;;
183
184  -gas | --gas | --ga | --g)
185    # Obsolete; use --with-gas.
186    with_gas=yes ;;
187
188  -help | --help | --hel | --he)
189    # Omit some internal or obsolete options to make the list less imposing.
190    # This message is too long to be a string in the A/UX 3.1 sh.
191    cat << EOF
192Usage: configure [options] [host]
193Options: [defaults in brackets after descriptions]
194Configuration:
195  --cache-file=FILE       cache test results in FILE
196  --help                  print this message
197  --no-create             do not create output files
198  --quiet, --silent       do not print \`checking...' messages
199  --version               print the version of autoconf that created configure
200Directory and file names:
201  --prefix=PREFIX         install architecture-independent files in PREFIX
202                          [$ac_default_prefix]
203  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
204                          [same as prefix]
205  --bindir=DIR            user executables in DIR [EPREFIX/bin]
206  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
207  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
208  --datadir=DIR           read-only architecture-independent data in DIR
209                          [PREFIX/share]
210  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
211  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
212                          [PREFIX/com]
213  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
214  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
215  --includedir=DIR        C header files in DIR [PREFIX/include]
216  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
217  --infodir=DIR           info documentation in DIR [PREFIX/info]
218  --mandir=DIR            man documentation in DIR [PREFIX/man]
219  --srcdir=DIR            find the sources in DIR [configure dir or ..]
220  --program-prefix=PREFIX prepend PREFIX to installed program names
221  --program-suffix=SUFFIX append SUFFIX to installed program names
222  --program-transform-name=PROGRAM
223                          run sed PROGRAM on installed program names
224EOF
225    cat << EOF
226Host type:
227  --build=BUILD           configure for building on BUILD [BUILD=HOST]
228  --host=HOST             configure for HOST [guessed]
229  --target=TARGET         configure for TARGET [TARGET=HOST]
230Features and packages:
231  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
232  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
233  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
234  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
235  --x-includes=DIR        X include files are in DIR
236  --x-libraries=DIR       X library files are in DIR
237EOF
238    if test -n "$ac_help"; then
239      echo "--enable and --with options recognized:$ac_help"
240    fi
241    exit 0 ;;
242
243  -host | --host | --hos | --ho)
244    ac_prev=host ;;
245  -host=* | --host=* | --hos=* | --ho=*)
246    host="$ac_optarg" ;;
247
248  -includedir | --includedir | --includedi | --included | --include \
249  | --includ | --inclu | --incl | --inc)
250    ac_prev=includedir ;;
251  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252  | --includ=* | --inclu=* | --incl=* | --inc=*)
253    includedir="$ac_optarg" ;;
254
255  -infodir | --infodir | --infodi | --infod | --info | --inf)
256    ac_prev=infodir ;;
257  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258    infodir="$ac_optarg" ;;
259
260  -libdir | --libdir | --libdi | --libd)
261    ac_prev=libdir ;;
262  -libdir=* | --libdir=* | --libdi=* | --libd=*)
263    libdir="$ac_optarg" ;;
264
265  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266  | --libexe | --libex | --libe)
267    ac_prev=libexecdir ;;
268  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269  | --libexe=* | --libex=* | --libe=*)
270    libexecdir="$ac_optarg" ;;
271
272  -localstatedir | --localstatedir | --localstatedi | --localstated \
273  | --localstate | --localstat | --localsta | --localst \
274  | --locals | --local | --loca | --loc | --lo)
275    ac_prev=localstatedir ;;
276  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279    localstatedir="$ac_optarg" ;;
280
281  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282    ac_prev=mandir ;;
283  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284    mandir="$ac_optarg" ;;
285
286  -nfp | --nfp | --nf)
287    # Obsolete; use --without-fp.
288    with_fp=no ;;
289
290  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
291  | --no-cr | --no-c)
292    no_create=yes ;;
293
294  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296    no_recursion=yes ;;
297
298  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300  | --oldin | --oldi | --old | --ol | --o)
301    ac_prev=oldincludedir ;;
302  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305    oldincludedir="$ac_optarg" ;;
306
307  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308    ac_prev=prefix ;;
309  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310    prefix="$ac_optarg" ;;
311
312  -program-prefix | --program-prefix | --program-prefi | --program-pref \
313  | --program-pre | --program-pr | --program-p)
314    ac_prev=program_prefix ;;
315  -program-prefix=* | --program-prefix=* | --program-prefi=* \
316  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317    program_prefix="$ac_optarg" ;;
318
319  -program-suffix | --program-suffix | --program-suffi | --program-suff \
320  | --program-suf | --program-su | --program-s)
321    ac_prev=program_suffix ;;
322  -program-suffix=* | --program-suffix=* | --program-suffi=* \
323  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324    program_suffix="$ac_optarg" ;;
325
326  -program-transform-name | --program-transform-name \
327  | --program-transform-nam | --program-transform-na \
328  | --program-transform-n | --program-transform- \
329  | --program-transform | --program-transfor \
330  | --program-transfo | --program-transf \
331  | --program-trans | --program-tran \
332  | --progr-tra | --program-tr | --program-t)
333    ac_prev=program_transform_name ;;
334  -program-transform-name=* | --program-transform-name=* \
335  | --program-transform-nam=* | --program-transform-na=* \
336  | --program-transform-n=* | --program-transform-=* \
337  | --program-transform=* | --program-transfor=* \
338  | --program-transfo=* | --program-transf=* \
339  | --program-trans=* | --program-tran=* \
340  | --progr-tra=* | --program-tr=* | --program-t=*)
341    program_transform_name="$ac_optarg" ;;
342
343  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344  | -silent | --silent | --silen | --sile | --sil)
345    silent=yes ;;
346
347  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
348    ac_prev=sbindir ;;
349  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
350  | --sbi=* | --sb=*)
351    sbindir="$ac_optarg" ;;
352
353  -sharedstatedir | --sharedstatedir | --sharedstatedi \
354  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355  | --sharedst | --shareds | --shared | --share | --shar \
356  | --sha | --sh)
357    ac_prev=sharedstatedir ;;
358  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
361  | --sha=* | --sh=*)
362    sharedstatedir="$ac_optarg" ;;
363
364  -site | --site | --sit)
365    ac_prev=site ;;
366  -site=* | --site=* | --sit=*)
367    site="$ac_optarg" ;;
368
369  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
370    ac_prev=srcdir ;;
371  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372    srcdir="$ac_optarg" ;;
373
374  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375  | --syscon | --sysco | --sysc | --sys | --sy)
376    ac_prev=sysconfdir ;;
377  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379    sysconfdir="$ac_optarg" ;;
380
381  -target | --target | --targe | --targ | --tar | --ta | --t)
382    ac_prev=target ;;
383  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384    target="$ac_optarg" ;;
385
386  -v | -verbose | --verbose | --verbos | --verbo | --verb)
387    verbose=yes ;;
388
389  -version | --version | --versio | --versi | --vers)
390    echo "configure generated by autoconf version 2.13"
391    exit 0 ;;
392
393  -with-* | --with-*)
394    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395    # Reject names that are not valid shell variable names.
396    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398    fi
399    ac_package=`echo $ac_package| sed 's/-/_/g'`
400    case "$ac_option" in
401      *=*) ;;
402      *) ac_optarg=yes ;;
403    esac
404    eval "with_${ac_package}='$ac_optarg'" ;;
405
406  -without-* | --without-*)
407    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408    # Reject names that are not valid shell variable names.
409    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411    fi
412    ac_package=`echo $ac_package| sed 's/-/_/g'`
413    eval "with_${ac_package}=no" ;;
414
415  --x)
416    # Obsolete; use --with-x.
417    with_x=yes ;;
418
419  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420  | --x-incl | --x-inc | --x-in | --x-i)
421    ac_prev=x_includes ;;
422  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424    x_includes="$ac_optarg" ;;
425
426  -x-libraries | --x-libraries | --x-librarie | --x-librari \
427  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428    ac_prev=x_libraries ;;
429  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431    x_libraries="$ac_optarg" ;;
432
433  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
434    ;;
435
436  *)
437    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438      echo "configure: warning: $ac_option: invalid host type" 1>&2
439    fi
440    if test "x$nonopt" != xNONE; then
441      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
442    fi
443    nonopt="$ac_option"
444    ;;
445
446  esac
447done
448
449if test -n "$ac_prev"; then
450  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
451fi
452
453trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
454
455# File descriptor usage:
456# 0 standard input
457# 1 file creation
458# 2 errors and warnings
459# 3 some systems may open it to /dev/tty
460# 4 used on the Kubota Titan
461# 6 checking for... messages and results
462# 5 compiler messages saved in config.log
463if test "$silent" = yes; then
464  exec 6>/dev/null
465else
466  exec 6>&1
467fi
468exec 5>./config.log
469
470echo "\
471This file contains any messages produced by compilers while
472running configure, to aid debugging if configure makes a mistake.
473" 1>&5
474
475# Strip out --no-create and --no-recursion so they do not pile up.
476# Also quote any args containing shell metacharacters.
477ac_configure_args=
478for ac_arg
479do
480  case "$ac_arg" in
481  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482  | --no-cr | --no-c) ;;
483  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
488  esac
489done
490
491# NLS nuisances.
492# Only set these to C if already set.  These must not be set unconditionally
493# because not all systems understand e.g. LANG=C (notably SCO).
494# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495# Non-C LC_CTYPE values break the ctype check.
496if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
497if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
500
501# confdefs.h avoids OS command line length limits that DEFS can exceed.
502rm -rf conftest* confdefs.h
503# AIX cpp loses on an empty file, so make sure it contains at least a newline.
504echo > confdefs.h
505
506# A filename unique to this package, relative to the directory that
507# configure is in, which we can look for to find out if srcdir is correct.
508ac_unique_file=panel
509
510# Find the source files, if location was not specified.
511if test -z "$srcdir"; then
512  ac_srcdir_defaulted=yes
513  # Try the directory containing this script, then its parent.
514  ac_prog=$0
515  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
517  srcdir=$ac_confdir
518  if test ! -r $srcdir/$ac_unique_file; then
519    srcdir=..
520  fi
521else
522  ac_srcdir_defaulted=no
523fi
524if test ! -r $srcdir/$ac_unique_file; then
525  if test "$ac_srcdir_defaulted" = yes; then
526    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
527  else
528    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
529  fi
530fi
531srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
532
533# Prefer explicitly selected file to automatically selected ones.
534if test -z "$CONFIG_SITE"; then
535  if test "x$prefix" != xNONE; then
536    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
537  else
538    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
539  fi
540fi
541for ac_site_file in $CONFIG_SITE; do
542  if test -r "$ac_site_file"; then
543    echo "loading site script $ac_site_file"
544    . "$ac_site_file"
545  fi
546done
547
548if test -r "$cache_file"; then
549  echo "loading cache $cache_file"
550  . $cache_file
551else
552  echo "creating cache $cache_file"
553  > $cache_file
554fi
555
556ac_ext=c
557# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558ac_cpp='$CPP $CPPFLAGS'
559ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561cross_compiling=$ac_cv_prog_cc_cross
562
563ac_exeext=
564ac_objext=o
565if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
568    ac_n= ac_c='
569' ac_t='        '
570  else
571    ac_n=-n ac_c= ac_t=
572  fi
573else
574  ac_n= ac_c='\c' ac_t=
575fi
576
577
578
579
580
581
582ac_aux_dir=
583for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
584  if test -f $ac_dir/install-sh; then
585    ac_aux_dir=$ac_dir
586    ac_install_sh="$ac_aux_dir/install-sh -c"
587    break
588  elif test -f $ac_dir/install.sh; then
589    ac_aux_dir=$ac_dir
590    ac_install_sh="$ac_aux_dir/install.sh -c"
591    break
592  fi
593done
594if test -z "$ac_aux_dir"; then
595  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
596fi
597ac_config_guess=$ac_aux_dir/config.guess
598ac_config_sub=$ac_aux_dir/config.sub
599ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
600
601# Find a good install program.  We prefer a C program (faster),
602# so one script is as good as another.  But avoid the broken or
603# incompatible versions:
604# SysV /etc/install, /usr/sbin/install
605# SunOS /usr/etc/install
606# IRIX /sbin/install
607# AIX /bin/install
608# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
609# AFS /usr/afsws/bin/install, which mishandles nonexistent args
610# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
611# ./install, which can be erroneously created by make from ./install.sh.
612echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
613echo "configure:614: checking for a BSD compatible install" >&5
614if test -z "$INSTALL"; then
615if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
616  echo $ac_n "(cached) $ac_c" 1>&6
617else
618    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
619  for ac_dir in $PATH; do
620    # Account for people who put trailing slashes in PATH elements.
621    case "$ac_dir/" in
622    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
623    *)
624      # OSF1 and SCO ODT 3.0 have their own names for install.
625      # Don't use installbsd from OSF since it installs stuff as root
626      # by default.
627      for ac_prog in ginstall scoinst install; do
628        if test -f $ac_dir/$ac_prog; then
629          if test $ac_prog = install &&
630            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
631            # AIX install.  It has an incompatible calling convention.
632            :
633          else
634            ac_cv_path_install="$ac_dir/$ac_prog -c"
635            break 2
636          fi
637        fi
638      done
639      ;;
640    esac
641  done
642  IFS="$ac_save_IFS"
643
644fi
645  if test "${ac_cv_path_install+set}" = set; then
646    INSTALL="$ac_cv_path_install"
647  else
648    # As a last resort, use the slow shell script.  We don't cache a
649    # path for INSTALL within a source directory, because that will
650    # break other packages using the cache if that directory is
651    # removed, or if the path is relative.
652    INSTALL="$ac_install_sh"
653  fi
654fi
655echo "$ac_t""$INSTALL" 1>&6
656
657# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
658# It thinks the first close brace ends the variable substitution.
659test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
660
661test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
662
663test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
664
665echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
666echo "configure:667: checking whether build environment is sane" >&5
667# Just in case
668sleep 1
669echo timestamp > conftestfile
670# Do `set' in a subshell so we don't clobber the current shell's
671# arguments.  Must try -L first in case configure is actually a
672# symlink; some systems play weird games with the mod time of symlinks
673# (eg FreeBSD returns the mod time of the symlink's containing
674# directory).
675if (
676   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
677   if test "$*" = "X"; then
678      # -L didn't work.
679      set X `ls -t $srcdir/configure conftestfile`
680   fi
681   if test "$*" != "X $srcdir/configure conftestfile" \
682      && test "$*" != "X conftestfile $srcdir/configure"; then
683
684      # If neither matched, then we have a broken ls.  This can happen
685      # if, for instance, CONFIG_SHELL is bash and it inherits a
686      # broken ls alias from the environment.  This has actually
687      # happened.  Such a system could not be considered "sane".
688      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
689alias in your environment" 1>&2; exit 1; }
690   fi
691
692   test "$2" = conftestfile
693   )
694then
695   # Ok.
696   :
697else
698   { echo "configure: error: newly created file is older than distributed files!
699Check your system clock" 1>&2; exit 1; }
700fi
701rm -f conftest*
702echo "$ac_t""yes" 1>&6
703if test "$program_transform_name" = s,x,x,; then
704  program_transform_name=
705else
706  # Double any \ or $.  echo might interpret backslashes.
707  cat <<\EOF_SED > conftestsed
708s,\\,\\\\,g; s,\$,$$,g
709EOF_SED
710  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
711  rm -f conftestsed
712fi
713test "$program_prefix" != NONE &&
714  program_transform_name="s,^,${program_prefix},; $program_transform_name"
715# Use a double $ so make ignores it.
716test "$program_suffix" != NONE &&
717  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
718
719# sed with no file args requires a program.
720test "$program_transform_name" = "" && program_transform_name="s,x,x,"
721
722echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
723echo "configure:724: checking whether ${MAKE-make} sets \${MAKE}" >&5
724set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
725if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
726  echo $ac_n "(cached) $ac_c" 1>&6
727else
728  cat > conftestmake <<\EOF
729all:
730        @echo 'ac_maketemp="${MAKE}"'
731EOF
732# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
733eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
734if test -n "$ac_maketemp"; then
735  eval ac_cv_prog_make_${ac_make}_set=yes
736else
737  eval ac_cv_prog_make_${ac_make}_set=no
738fi
739rm -f conftestmake
740fi
741if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
742  echo "$ac_t""yes" 1>&6
743  SET_MAKE=
744else
745  echo "$ac_t""no" 1>&6
746  SET_MAKE="MAKE=${MAKE-make}"
747fi
748
749
750PACKAGE=gnome-core
751
752VERSION=1.4.0
753
754if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
755  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
756fi
757cat >> confdefs.h <<EOF
758#define PACKAGE "$PACKAGE"
759EOF
760
761cat >> confdefs.h <<EOF
762#define VERSION "$VERSION"
763EOF
764
765
766
767missing_dir=`cd $ac_aux_dir && pwd`
768echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
769echo "configure:770: checking for working aclocal" >&5
770# Run test in a subshell; some versions of sh will print an error if
771# an executable is not found, even if stderr is redirected.
772# Redirect stdin to placate older versions of autoconf.  Sigh.
773if (aclocal --version) < /dev/null > /dev/null 2>&1; then
774   ACLOCAL=aclocal
775   echo "$ac_t""found" 1>&6
776else
777   ACLOCAL="$missing_dir/missing aclocal"
778   echo "$ac_t""missing" 1>&6
779fi
780
781echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
782echo "configure:783: checking for working autoconf" >&5
783# Run test in a subshell; some versions of sh will print an error if
784# an executable is not found, even if stderr is redirected.
785# Redirect stdin to placate older versions of autoconf.  Sigh.
786if (autoconf --version) < /dev/null > /dev/null 2>&1; then
787   AUTOCONF=autoconf
788   echo "$ac_t""found" 1>&6
789else
790   AUTOCONF="$missing_dir/missing autoconf"
791   echo "$ac_t""missing" 1>&6
792fi
793
794echo $ac_n "checking for working automake""... $ac_c" 1>&6
795echo "configure:796: checking for working automake" >&5
796# Run test in a subshell; some versions of sh will print an error if
797# an executable is not found, even if stderr is redirected.
798# Redirect stdin to placate older versions of autoconf.  Sigh.
799if (automake --version) < /dev/null > /dev/null 2>&1; then
800   AUTOMAKE=automake
801   echo "$ac_t""found" 1>&6
802else
803   AUTOMAKE="$missing_dir/missing automake"
804   echo "$ac_t""missing" 1>&6
805fi
806
807echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
808echo "configure:809: checking for working autoheader" >&5
809# Run test in a subshell; some versions of sh will print an error if
810# an executable is not found, even if stderr is redirected.
811# Redirect stdin to placate older versions of autoconf.  Sigh.
812if (autoheader --version) < /dev/null > /dev/null 2>&1; then
813   AUTOHEADER=autoheader
814   echo "$ac_t""found" 1>&6
815else
816   AUTOHEADER="$missing_dir/missing autoheader"
817   echo "$ac_t""missing" 1>&6
818fi
819
820echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
821echo "configure:822: checking for working makeinfo" >&5
822# Run test in a subshell; some versions of sh will print an error if
823# an executable is not found, even if stderr is redirected.
824# Redirect stdin to placate older versions of autoconf.  Sigh.
825if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
826   MAKEINFO=makeinfo
827   echo "$ac_t""found" 1>&6
828else
829   MAKEINFO="$missing_dir/missing makeinfo"
830   echo "$ac_t""missing" 1>&6
831fi
832
833
834
835echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
836echo "configure:837: checking whether to enable maintainer-specific portions of Makefiles" >&5
837    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
838if test "${enable_maintainer_mode+set}" = set; then
839  enableval="$enable_maintainer_mode"
840  USE_MAINTAINER_MODE=$enableval
841else
842  USE_MAINTAINER_MODE=no
843fi
844
845  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
846 
847
848if test $USE_MAINTAINER_MODE = yes; then
849  MAINTAINER_MODE_TRUE=
850  MAINTAINER_MODE_FALSE='#'
851else
852  MAINTAINER_MODE_TRUE='#'
853  MAINTAINER_MODE_FALSE=
854fi
855  MAINT=$MAINTAINER_MODE_TRUE
856 
857
858
859
860       
861
862if test x = y; then
863  INSIDE_GNOME_COMMON_TRUE=
864  INSIDE_GNOME_COMMON_FALSE='#'
865else
866  INSIDE_GNOME_COMMON_TRUE='#'
867  INSIDE_GNOME_COMMON_FALSE=
868fi
869
870        test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
871
872        for k in macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
873
874
875
876
877XML_I18N_MERGE_OAF_RULE='\%.oaf : \%.oaf.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\
878        $(top_builddir)/xml-i18n-merge -o $(top_srcdir)/po $< $*.oaf'
879
880XML_I18N_MERGE_KEYS_RULE='\%.keys : \%.keys.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\
881        $(top_builddir)/xml-i18n-merge -k $(top_srcdir)/po $< $*.keys'
882
883XML_I18N_MERGE_DESKTOP_RULE='\%.desktop : \%.desktop.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\
884        $(top_builddir)/xml-i18n-merge -d $(top_srcdir)/po $< $*.desktop'
885
886XML_I18N_MERGE_DIRECTORY_RULE='\%.directory : \%.directory.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\
887        $(top_builddir)/xml-i18n-merge -d $(top_srcdir)/po $< $*.directory'
888
889# Always use our own xml-i18n-tools.
890XML_I18N_EXTRACT='$(top_builddir)/xml-i18n-extract'
891
892XML_I18N_MERGE='$(top_builddir)/xml-i18n-merge'
893
894XML_I18N_UPDATE='$(top_builddir)/xml-i18n-update'
895
896XML_I18N_MERGE_SOUNDLIST_RULE='\%.soundlist : \%.soundlist.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\
897        $(top_builddir)/xml-i18n-merge -d $(top_srcdir)/po $< $*.soundlist'
898
899# Extract the first word of "perl", so it can be a program name with args.
900set dummy perl; ac_word=$2
901echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
902echo "configure:903: checking for $ac_word" >&5
903if eval "test \"`echo '$''{'ac_cv_path_XML_I18N_TOOLS_PERL'+set}'`\" = set"; then
904  echo $ac_n "(cached) $ac_c" 1>&6
905else
906  case "$XML_I18N_TOOLS_PERL" in
907  /*)
908  ac_cv_path_XML_I18N_TOOLS_PERL="$XML_I18N_TOOLS_PERL" # Let the user override the test with a path.
909  ;;
910  ?:/*)                 
911  ac_cv_path_XML_I18N_TOOLS_PERL="$XML_I18N_TOOLS_PERL" # Let the user override the test with a dos path.
912  ;;
913  *)
914  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
915  ac_dummy="$PATH"
916  for ac_dir in $ac_dummy; do
917    test -z "$ac_dir" && ac_dir=.
918    if test -f $ac_dir/$ac_word; then
919      ac_cv_path_XML_I18N_TOOLS_PERL="$ac_dir/$ac_word"
920      break
921    fi
922  done
923  IFS="$ac_save_ifs"
924  ;;
925esac
926fi
927XML_I18N_TOOLS_PERL="$ac_cv_path_XML_I18N_TOOLS_PERL"
928if test -n "$XML_I18N_TOOLS_PERL"; then
929  echo "$ac_t""$XML_I18N_TOOLS_PERL" 1>&6
930else
931  echo "$ac_t""no" 1>&6
932fi
933
934if test -z "$XML_I18N_TOOLS_PERL"; then
935   { echo "configure: error: perl not found; required for xml-i18n-tools" 1>&2; exit 1; }
936fi
937if test -z "`$XML_I18N_TOOLS_PERL -v | fgrep '5.' 2> /dev/null`"; then
938   { echo "configure: error: perl 5.x required for xml-i18n-tools" 1>&2; exit 1; }
939fi
940
941
942
943# Redirect the config.log output again, so that the ltconfig log is not
944# clobbered by the next message.
945exec 5>>./config.log
946
947
948gnome_cv_use_gnome=yes
949
950
951       
952       
953       
954       
955       
956       
957       
958       
959
960        # Check whether --with-gnome-includes or --without-gnome-includes was given.
961if test "${with_gnome_includes+set}" = set; then
962  withval="$with_gnome_includes"
963 
964        CFLAGS="$CFLAGS -I$withval"
965       
966fi
967
968       
969        # Check whether --with-gnome-libs or --without-gnome-libs was given.
970if test "${with_gnome_libs+set}" = set; then
971  withval="$with_gnome_libs"
972 
973        LDFLAGS="$LDFLAGS -L$withval"
974        gnome_prefix=$withval
975       
976fi
977
978
979        # Check whether --with-gnome or --without-gnome was given.
980if test "${with_gnome+set}" = set; then
981  withval="$with_gnome"
982  if test x$withval = xyes; then
983                        want_gnome=yes
984                                                                        :
985                else
986                        if test "x$withval" = xno; then
987                                want_gnome=no
988                        else
989                                want_gnome=yes
990                                LDFLAGS="$LDFLAGS -L$withval/lib"
991                                CFLAGS="$CFLAGS -I$withval/include"
992                                gnome_prefix=$withval/lib
993                        fi
994                fi
995else
996  want_gnome=yes
997fi
998
999
1000        if test "x$want_gnome" = xyes; then
1001
1002            # Extract the first word of "gnome-config", so it can be a program name with args.
1003set dummy gnome-config; ac_word=$2
1004echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1005echo "configure:1006: checking for $ac_word" >&5
1006if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
1007  echo $ac_n "(cached) $ac_c" 1>&6
1008else
1009  case "$GNOME_CONFIG" in
1010  /*)
1011  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
1012  ;;
1013  ?:/*)                 
1014  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
1015  ;;
1016  *)
1017  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1018  ac_dummy="$PATH"
1019  for ac_dir in $ac_dummy; do
1020    test -z "$ac_dir" && ac_dir=.
1021    if test -f $ac_dir/$ac_word; then
1022      ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
1023      break
1024    fi
1025  done
1026  IFS="$ac_save_ifs"
1027  test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
1028  ;;
1029esac
1030fi
1031GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
1032if test -n "$GNOME_CONFIG"; then
1033  echo "$ac_t""$GNOME_CONFIG" 1>&6
1034else
1035  echo "$ac_t""no" 1>&6
1036fi
1037
1038            if test "$GNOME_CONFIG" = "no"; then
1039              no_gnome_config="yes"
1040            else
1041              echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
1042echo "configure:1043: checking if $GNOME_CONFIG works" >&5
1043              if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
1044                echo "$ac_t""yes" 1>&6
1045               
1046       
1047        # Extract the first word of "orbit-config", so it can be a program name with args.
1048set dummy orbit-config; ac_word=$2
1049echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1050echo "configure:1051: checking for $ac_word" >&5
1051if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
1052  echo $ac_n "(cached) $ac_c" 1>&6
1053else
1054  case "$ORBIT_CONFIG" in
1055  /*)
1056  ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
1057  ;;
1058  ?:/*)                 
1059  ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
1060  ;;
1061  *)
1062  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1063  ac_dummy="$PATH"
1064  for ac_dir in $ac_dummy; do
1065    test -z "$ac_dir" && ac_dir=.
1066    if test -f $ac_dir/$ac_word; then
1067      ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
1068      break
1069    fi
1070  done
1071  IFS="$ac_save_ifs"
1072  test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
1073  ;;
1074esac
1075fi
1076ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
1077if test -n "$ORBIT_CONFIG"; then
1078  echo "$ac_t""$ORBIT_CONFIG" 1>&6
1079else
1080  echo "$ac_t""no" 1>&6
1081fi
1082
1083        # Extract the first word of "orbit-idl", so it can be a program name with args.
1084set dummy orbit-idl; ac_word=$2
1085echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1086echo "configure:1087: checking for $ac_word" >&5
1087if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
1088  echo $ac_n "(cached) $ac_c" 1>&6
1089else
1090  case "$ORBIT_IDL" in
1091  /*)
1092  ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
1093  ;;
1094  ?:/*)                 
1095  ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
1096  ;;
1097  *)
1098  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1099  ac_dummy="$PATH"
1100  for ac_dir in $ac_dummy; do
1101    test -z "$ac_dir" && ac_dir=.
1102    if test -f $ac_dir/$ac_word; then
1103      ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
1104      break
1105    fi
1106  done
1107  IFS="$ac_save_ifs"
1108  test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
1109  ;;
1110esac
1111fi
1112ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
1113if test -n "$ORBIT_IDL"; then
1114  echo "$ac_t""$ORBIT_IDL" 1>&6
1115else
1116  echo "$ac_t""no" 1>&6
1117fi
1118
1119        echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
1120echo "configure:1121: checking for working ORBit environment" >&5
1121if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
1122  echo $ac_n "(cached) $ac_c" 1>&6
1123else
1124 
1125                if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
1126                        gnome_cv_orbit_found=no
1127                else
1128                        gnome_cv_orbit_found=yes
1129                fi
1130       
1131fi
1132
1133echo "$ac_t""$gnome_cv_orbit_found" 1>&6
1134       
1135
1136if test x$gnome_cv_orbit_found = xyes; then
1137  HAVE_ORBIT_TRUE=
1138  HAVE_ORBIT_FALSE='#'
1139else
1140  HAVE_ORBIT_TRUE='#'
1141  HAVE_ORBIT_FALSE=
1142fi
1143        if test x$gnome_cv_orbit_found = xyes; then
1144               
1145                ORBIT_CFLAGS=`orbit-config --cflags client server`
1146                ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
1147               
1148               
1149        else
1150                if test xfail = xfailure; then
1151                        { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
1152                fi
1153        fi
1154
1155        echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
1156echo "configure:1157: checking for gnorba libraries" >&5
1157if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
1158  echo $ac_n "(cached) $ac_c" 1>&6
1159else
1160 
1161                gnome_cv_gnorba_found=no
1162                if test x$gnome_cv_orbit_found = xyes; then
1163                        GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
1164                        GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
1165                        if test -n "$GNORBA_LIBS"; then
1166                                gnome_cv_gnorba_found=yes
1167                        fi
1168                fi
1169       
1170fi
1171
1172echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
1173       
1174
1175if test x$gnome_cv_gnorba_found = xyes; then
1176  HAVE_GNORBA_TRUE=
1177  HAVE_GNORBA_FALSE='#'
1178else
1179  HAVE_GNORBA_TRUE='#'
1180  HAVE_GNORBA_FALSE=
1181fi
1182        if test x$gnome_cv_orbit_found = xyes; then
1183               
1184                GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
1185                GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
1186               
1187               
1188        else
1189                if test xfail = xfailure; then
1190                        { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
1191                fi
1192        fi
1193
1194                GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
1195                GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
1196                GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
1197                GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
1198                ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
1199                GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
1200                GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
1201               
1202              else
1203                echo "$ac_t""no" 1>&6
1204                no_gnome_config="yes"
1205              fi
1206            fi
1207
1208            if test x$exec_prefix = xNONE; then
1209                if test x$prefix = xNONE; then
1210                    gnome_prefix=$ac_default_prefix/lib
1211                else
1212                    gnome_prefix=$prefix/lib
1213                fi
1214            else
1215                gnome_prefix=`eval echo \`echo $libdir\``
1216            fi
1217       
1218            if test "$no_gnome_config" = "yes"; then
1219              echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
1220echo "configure:1221: checking for gnomeConf.sh file in $gnome_prefix" >&5
1221              if test -f $gnome_prefix/gnomeConf.sh; then
1222                echo "$ac_t""found" 1>&6
1223                echo "loading gnome configuration from" \
1224                     "$gnome_prefix/gnomeConf.sh"
1225                . $gnome_prefix/gnomeConf.sh
1226               
1227              else
1228                echo "$ac_t""not found" 1>&6
1229                if test xfail = xfail; then
1230                  { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
1231                fi
1232              fi
1233            fi
1234        fi
1235
1236        if test -n "capplet"; then
1237          n="capplet"
1238          for i in $n; do
1239            echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
1240echo "configure:1241: checking extra library \"$i\"" >&5
1241            case $i in
1242              applets)
1243               
1244                GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
1245                echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
1246              docklets)
1247               
1248                GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
1249                echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
1250              capplet)
1251               
1252                GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
1253                echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
1254              *)
1255                echo "$ac_t""unknown library" 1>&6
1256            esac
1257          done
1258        fi
1259
1260
1261
1262# Extract the first word of "gcc", so it can be a program name with args.
1263set dummy gcc; ac_word=$2
1264echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1265echo "configure:1266: checking for $ac_word" >&5
1266if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1267  echo $ac_n "(cached) $ac_c" 1>&6
1268else
1269  if test -n "$CC"; then
1270  ac_cv_prog_CC="$CC" # Let the user override the test.
1271else
1272  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1273  ac_dummy="$PATH"
1274  for ac_dir in $ac_dummy; do
1275    test -z "$ac_dir" && ac_dir=.
1276    if test -f $ac_dir/$ac_word; then
1277      ac_cv_prog_CC="gcc"
1278      break
1279    fi
1280  done
1281  IFS="$ac_save_ifs"
1282fi
1283fi
1284CC="$ac_cv_prog_CC"
1285if test -n "$CC"; then
1286  echo "$ac_t""$CC" 1>&6
1287else
1288  echo "$ac_t""no" 1>&6
1289fi
1290
1291if test -z "$CC"; then
1292  # Extract the first word of "cc", so it can be a program name with args.
1293set dummy cc; ac_word=$2
1294echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1295echo "configure:1296: checking for $ac_word" >&5
1296if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1297  echo $ac_n "(cached) $ac_c" 1>&6
1298else
1299  if test -n "$CC"; then
1300  ac_cv_prog_CC="$CC" # Let the user override the test.
1301else
1302  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1303  ac_prog_rejected=no
1304  ac_dummy="$PATH"
1305  for ac_dir in $ac_dummy; do
1306    test -z "$ac_dir" && ac_dir=.
1307    if test -f $ac_dir/$ac_word; then
1308      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1309        ac_prog_rejected=yes
1310        continue
1311      fi
1312      ac_cv_prog_CC="cc"
1313      break
1314    fi
1315  done
1316  IFS="$ac_save_ifs"
1317if test $ac_prog_rejected = yes; then
1318  # We found a bogon in the path, so make sure we never use it.
1319  set dummy $ac_cv_prog_CC
1320  shift
1321  if test $# -gt 0; then
1322    # We chose a different compiler from the bogus one.
1323    # However, it has the same basename, so the bogon will be chosen
1324    # first if we set CC to just the basename; use the full file name.
1325    shift
1326    set dummy "$ac_dir/$ac_word" "$@"
1327    shift
1328    ac_cv_prog_CC="$@"
1329  fi
1330fi
1331fi
1332fi
1333CC="$ac_cv_prog_CC"
1334if test -n "$CC"; then
1335  echo "$ac_t""$CC" 1>&6
1336else
1337  echo "$ac_t""no" 1>&6
1338fi
1339
1340  if test -z "$CC"; then
1341    case "`uname -s`" in
1342    *win32* | *WIN32*)
1343      # Extract the first word of "cl", so it can be a program name with args.
1344set dummy cl; ac_word=$2
1345echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1346echo "configure:1347: checking for $ac_word" >&5
1347if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1348  echo $ac_n "(cached) $ac_c" 1>&6
1349else
1350  if test -n "$CC"; then
1351  ac_cv_prog_CC="$CC" # Let the user override the test.
1352else
1353  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1354  ac_dummy="$PATH"
1355  for ac_dir in $ac_dummy; do
1356    test -z "$ac_dir" && ac_dir=.
1357    if test -f $ac_dir/$ac_word; then
1358      ac_cv_prog_CC="cl"
1359      break
1360    fi
1361  done
1362  IFS="$ac_save_ifs"
1363fi
1364fi
1365CC="$ac_cv_prog_CC"
1366if test -n "$CC"; then
1367  echo "$ac_t""$CC" 1>&6
1368else
1369  echo "$ac_t""no" 1>&6
1370fi
1371 ;;
1372    esac
1373  fi
1374  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1375fi
1376
1377echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1378echo "configure:1379: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1379
1380ac_ext=c
1381# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1382ac_cpp='$CPP $CPPFLAGS'
1383ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1384ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1385cross_compiling=$ac_cv_prog_cc_cross
1386
1387cat > conftest.$ac_ext << EOF
1388
1389#line 1390 "configure"
1390#include "confdefs.h"
1391
1392main(){return(0);}
1393EOF
1394if { (eval echo configure:1395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1395  ac_cv_prog_cc_works=yes
1396  # If we can't run a trivial program, we are probably using a cross compiler.
1397  if (./conftest; exit) 2>/dev/null; then
1398    ac_cv_prog_cc_cross=no
1399  else
1400    ac_cv_prog_cc_cross=yes
1401  fi
1402else
1403  echo "configure: failed program was:" >&5
1404  cat conftest.$ac_ext >&5
1405  ac_cv_prog_cc_works=no
1406fi
1407rm -fr conftest*
1408ac_ext=c
1409# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1410ac_cpp='$CPP $CPPFLAGS'
1411ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1412ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1413cross_compiling=$ac_cv_prog_cc_cross
1414
1415echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1416if test $ac_cv_prog_cc_works = no; then
1417  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1418fi
1419echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1420echo "configure:1421: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1421echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1422cross_compiling=$ac_cv_prog_cc_cross
1423
1424echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1425echo "configure:1426: checking whether we are using GNU C" >&5
1426if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1427  echo $ac_n "(cached) $ac_c" 1>&6
1428else
1429  cat > conftest.c <<EOF
1430#ifdef __GNUC__
1431  yes;
1432#endif
1433EOF
1434if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1435  ac_cv_prog_gcc=yes
1436else
1437  ac_cv_prog_gcc=no
1438fi
1439fi
1440
1441echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1442
1443if test $ac_cv_prog_gcc = yes; then
1444  GCC=yes
1445else
1446  GCC=
1447fi
1448
1449ac_test_CFLAGS="${CFLAGS+set}"
1450ac_save_CFLAGS="$CFLAGS"
1451CFLAGS=
1452echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1453echo "configure:1454: checking whether ${CC-cc} accepts -g" >&5
1454if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1455  echo $ac_n "(cached) $ac_c" 1>&6
1456else
1457  echo 'void f(){}' > conftest.c
1458if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1459  ac_cv_prog_cc_g=yes
1460else
1461  ac_cv_prog_cc_g=no
1462fi
1463rm -f conftest*
1464
1465fi
1466
1467echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1468if test "$ac_test_CFLAGS" = set; then
1469  CFLAGS="$ac_save_CFLAGS"
1470elif test $ac_cv_prog_cc_g = yes; then
1471  if test "$GCC" = yes; then
1472    CFLAGS="-g -O2"
1473  else
1474    CFLAGS="-g"
1475  fi
1476else
1477  if test "$GCC" = yes; then
1478    CFLAGS="-O2"
1479  else
1480    CFLAGS=
1481  fi
1482fi
1483
1484echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1485echo "configure:1486: checking for POSIXized ISC" >&5
1486if test -d /etc/conf/kconfig.d &&
1487  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1488then
1489  echo "$ac_t""yes" 1>&6
1490  ISC=yes # If later tests want to check for ISC.
1491  cat >> confdefs.h <<\EOF
1492#define _POSIX_SOURCE 1
1493EOF
1494
1495  if test "$GCC" = yes; then
1496    CC="$CC -posix"
1497  else
1498    CC="$CC -Xp"
1499  fi
1500else
1501  echo "$ac_t""no" 1>&6
1502  ISC=
1503fi
1504
1505# Extract the first word of "gcc", so it can be a program name with args.
1506set dummy gcc; ac_word=$2
1507echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1508echo "configure:1509: checking for $ac_word" >&5
1509if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1510  echo $ac_n "(cached) $ac_c" 1>&6
1511else
1512  if test -n "$CC"; then
1513  ac_cv_prog_CC="$CC" # Let the user override the test.
1514else
1515  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1516  ac_dummy="$PATH"
1517  for ac_dir in $ac_dummy; do
1518    test -z "$ac_dir" && ac_dir=.
1519    if test -f $ac_dir/$ac_word; then
1520      ac_cv_prog_CC="gcc"
1521      break
1522    fi
1523  done
1524  IFS="$ac_save_ifs"
1525fi
1526fi
1527CC="$ac_cv_prog_CC"
1528if test -n "$CC"; then
1529  echo "$ac_t""$CC" 1>&6
1530else
1531  echo "$ac_t""no" 1>&6
1532fi
1533
1534if test -z "$CC"; then
1535  # Extract the first word of "cc", so it can be a program name with args.
1536set dummy cc; ac_word=$2
1537echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1538echo "configure:1539: checking for $ac_word" >&5
1539if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1540  echo $ac_n "(cached) $ac_c" 1>&6
1541else
1542  if test -n "$CC"; then
1543  ac_cv_prog_CC="$CC" # Let the user override the test.
1544else
1545  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1546  ac_prog_rejected=no
1547  ac_dummy="$PATH"
1548  for ac_dir in $ac_dummy; do
1549    test -z "$ac_dir" && ac_dir=.
1550    if test -f $ac_dir/$ac_word; then
1551      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1552        ac_prog_rejected=yes
1553        continue
1554      fi
1555      ac_cv_prog_CC="cc"
1556      break
1557    fi
1558  done
1559  IFS="$ac_save_ifs"
1560if test $ac_prog_rejected = yes; then
1561  # We found a bogon in the path, so make sure we never use it.
1562  set dummy $ac_cv_prog_CC
1563  shift
1564  if test $# -gt 0; then
1565    # We chose a different compiler from the bogus one.
1566    # However, it has the same basename, so the bogon will be chosen
1567    # first if we set CC to just the basename; use the full file name.
1568    shift
1569    set dummy "$ac_dir/$ac_word" "$@"
1570    shift
1571    ac_cv_prog_CC="$@"
1572  fi
1573fi
1574fi
1575fi
1576CC="$ac_cv_prog_CC"
1577if test -n "$CC"; then
1578  echo "$ac_t""$CC" 1>&6
1579else
1580  echo "$ac_t""no" 1>&6
1581fi
1582
1583  if test -z "$CC"; then
1584    case "`uname -s`" in
1585    *win32* | *WIN32*)
1586      # Extract the first word of "cl", so it can be a program name with args.
1587set dummy cl; ac_word=$2
1588echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1589echo "configure:1590: checking for $ac_word" >&5
1590if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1591  echo $ac_n "(cached) $ac_c" 1>&6
1592else
1593  if test -n "$CC"; then
1594  ac_cv_prog_CC="$CC" # Let the user override the test.
1595else
1596  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1597  ac_dummy="$PATH"
1598  for ac_dir in $ac_dummy; do
1599    test -z "$ac_dir" && ac_dir=.
1600    if test -f $ac_dir/$ac_word; then
1601      ac_cv_prog_CC="cl"
1602      break
1603    fi
1604  done
1605  IFS="$ac_save_ifs"
1606fi
1607fi
1608CC="$ac_cv_prog_CC"
1609if test -n "$CC"; then
1610  echo "$ac_t""$CC" 1>&6
1611else
1612  echo "$ac_t""no" 1>&6
1613fi
1614 ;;
1615    esac
1616  fi
1617  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1618fi
1619
1620echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1621echo "configure:1622: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1622
1623ac_ext=c
1624# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1625ac_cpp='$CPP $CPPFLAGS'
1626ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1627ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1628cross_compiling=$ac_cv_prog_cc_cross
1629
1630cat > conftest.$ac_ext << EOF
1631
1632#line 1633 "configure"
1633#include "confdefs.h"
1634
1635main(){return(0);}
1636EOF
1637if { (eval echo configure:1638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1638  ac_cv_prog_cc_works=yes
1639  # If we can't run a trivial program, we are probably using a cross compiler.
1640  if (./conftest; exit) 2>/dev/null; then
1641    ac_cv_prog_cc_cross=no
1642  else
1643    ac_cv_prog_cc_cross=yes
1644  fi
1645else
1646  echo "configure: failed program was:" >&5
1647  cat conftest.$ac_ext >&5
1648  ac_cv_prog_cc_works=no
1649fi
1650rm -fr conftest*
1651ac_ext=c
1652# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1653ac_cpp='$CPP $CPPFLAGS'
1654ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1655ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1656cross_compiling=$ac_cv_prog_cc_cross
1657
1658echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1659if test $ac_cv_prog_cc_works = no; then
1660  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1661fi
1662echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1663echo "configure:1664: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1664echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1665cross_compiling=$ac_cv_prog_cc_cross
1666
1667echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1668echo "configure:1669: checking whether we are using GNU C" >&5
1669if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1670  echo $ac_n "(cached) $ac_c" 1>&6
1671else
1672  cat > conftest.c <<EOF
1673#ifdef __GNUC__
1674  yes;
1675#endif
1676EOF
1677if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1678  ac_cv_prog_gcc=yes
1679else
1680  ac_cv_prog_gcc=no
1681fi
1682fi
1683
1684echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1685
1686if test $ac_cv_prog_gcc = yes; then
1687  GCC=yes
1688else
1689  GCC=
1690fi
1691
1692ac_test_CFLAGS="${CFLAGS+set}"
1693ac_save_CFLAGS="$CFLAGS"
1694CFLAGS=
1695echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1696echo "configure:1697: checking whether ${CC-cc} accepts -g" >&5
1697if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1698  echo $ac_n "(cached) $ac_c" 1>&6
1699else
1700  echo 'void f(){}' > conftest.c
1701if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1702  ac_cv_prog_cc_g=yes
1703else
1704  ac_cv_prog_cc_g=no
1705fi
1706rm -f conftest*
1707
1708fi
1709
1710echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1711if test "$ac_test_CFLAGS" = set; then
1712  CFLAGS="$ac_save_CFLAGS"
1713elif test $ac_cv_prog_cc_g = yes; then
1714  if test "$GCC" = yes; then
1715    CFLAGS="-g -O2"
1716  else
1717    CFLAGS="-g"
1718  fi
1719else
1720  if test "$GCC" = yes; then
1721    CFLAGS="-O2"
1722  else
1723    CFLAGS=
1724  fi
1725fi
1726
1727echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1728echo "configure:1729: checking how to run the C preprocessor" >&5
1729# On Suns, sometimes $CPP names a directory.
1730if test -n "$CPP" && test -d "$CPP"; then
1731  CPP=
1732fi
1733if test -z "$CPP"; then
1734if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1735  echo $ac_n "(cached) $ac_c" 1>&6
1736else
1737    # This must be in double quotes, not single quotes, because CPP may get
1738  # substituted into the Makefile and "${CC-cc}" will confuse make.
1739  CPP="${CC-cc} -E"
1740  # On the NeXT, cc -E runs the code through the compiler's parser,
1741  # not just through cpp.
1742  cat > conftest.$ac_ext <<EOF
1743#line 1744 "configure"
1744#include "confdefs.h"
1745#include <assert.h>
1746Syntax Error
1747EOF
1748ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1749{ (eval echo configure:1750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1750ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1751if test -z "$ac_err"; then
1752  :
1753else
1754  echo "$ac_err" >&5
1755  echo "configure: failed program was:" >&5
1756  cat conftest.$ac_ext >&5
1757  rm -rf conftest*
1758  CPP="${CC-cc} -E -traditional-cpp"
1759  cat > conftest.$ac_ext <<EOF
1760#line 1761 "configure"
1761#include "confdefs.h"
1762#include <assert.h>
1763Syntax Error
1764EOF
1765ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1766{ (eval echo configure:1767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1767ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1768if test -z "$ac_err"; then
1769  :
1770else
1771  echo "$ac_err" >&5
1772  echo "configure: failed program was:" >&5
1773  cat conftest.$ac_ext >&5
1774  rm -rf conftest*
1775  CPP="${CC-cc} -nologo -E"
1776  cat > conftest.$ac_ext <<EOF
1777#line 1778 "configure"
1778#include "confdefs.h"
1779#include <assert.h>
1780Syntax Error
1781EOF
1782ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1783{ (eval echo configure:1784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1784ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1785if test -z "$ac_err"; then
1786  :
1787else
1788  echo "$ac_err" >&5
1789  echo "configure: failed program was:" >&5
1790  cat conftest.$ac_ext >&5
1791  rm -rf conftest*
1792  CPP=/lib/cpp
1793fi
1794rm -f conftest*
1795fi
1796rm -f conftest*
1797fi
1798rm -f conftest*
1799  ac_cv_prog_CPP="$CPP"
1800fi
1801  CPP="$ac_cv_prog_CPP"
1802else
1803  ac_cv_prog_CPP="$CPP"
1804fi
1805echo "$ac_t""$CPP" 1>&6
1806
1807echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1808echo "configure:1809: checking for ANSI C header files" >&5
1809if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1810  echo $ac_n "(cached) $ac_c" 1>&6
1811else
1812  cat > conftest.$ac_ext <<EOF
1813#line 1814 "configure"
1814#include "confdefs.h"
1815#include <stdlib.h>
1816#include <stdarg.h>
1817#include <string.h>
1818#include <float.h>
1819EOF
1820ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1821{ (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1822ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1823if test -z "$ac_err"; then
1824  rm -rf conftest*
1825  ac_cv_header_stdc=yes
1826else
1827  echo "$ac_err" >&5
1828  echo "configure: failed program was:" >&5
1829  cat conftest.$ac_ext >&5
1830  rm -rf conftest*
1831  ac_cv_header_stdc=no
1832fi
1833rm -f conftest*
1834
1835if test $ac_cv_header_stdc = yes; then
1836  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1837cat > conftest.$ac_ext <<EOF
1838#line 1839 "configure"
1839#include "confdefs.h"
1840#include <string.h>
1841EOF
1842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1843  egrep "memchr" >/dev/null 2>&1; then
1844  :
1845else
1846  rm -rf conftest*
1847  ac_cv_header_stdc=no
1848fi
1849rm -f conftest*
1850
1851fi
1852
1853if test $ac_cv_header_stdc = yes; then
1854  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1855cat > conftest.$ac_ext <<EOF
1856#line 1857 "configure"
1857#include "confdefs.h"
1858#include <stdlib.h>
1859EOF
1860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1861  egrep "free" >/dev/null 2>&1; then
1862  :
1863else
1864  rm -rf conftest*
1865  ac_cv_header_stdc=no
1866fi
1867rm -f conftest*
1868
1869fi
1870
1871if test $ac_cv_header_stdc = yes; then
1872  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1873if test "$cross_compiling" = yes; then
1874  :
1875else
1876  cat > conftest.$ac_ext <<EOF
1877#line 1878 "configure"
1878#include "confdefs.h"
1879#include <ctype.h>
1880#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1881#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1882#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1883int main () { int i; for (i = 0; i < 256; i++)
1884if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1885exit (0); }
1886
1887EOF
1888if { (eval echo configure:1889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1889then
1890  :
1891else
1892  echo "configure: failed program was:" >&5
1893  cat conftest.$ac_ext >&5
1894  rm -fr conftest*
1895  ac_cv_header_stdc=no
1896fi
1897rm -fr conftest*
1898fi
1899
1900fi
1901fi
1902
1903echo "$ac_t""$ac_cv_header_stdc" 1>&6
1904if test $ac_cv_header_stdc = yes; then
1905  cat >> confdefs.h <<\EOF
1906#define STDC_HEADERS 1
1907EOF
1908
1909fi
1910
1911if test "$program_transform_name" = s,x,x,; then
1912  program_transform_name=
1913else
1914  # Double any \ or $.  echo might interpret backslashes.
1915  cat <<\EOF_SED > conftestsed
1916s,\\,\\\\,g; s,\$,$$,g
1917EOF_SED
1918  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1919  rm -f conftestsed
1920fi
1921test "$program_prefix" != NONE &&
1922  program_transform_name="s,^,${program_prefix},; $program_transform_name"
1923# Use a double $ so make ignores it.
1924test "$program_suffix" != NONE &&
1925  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1926
1927# sed with no file args requires a program.
1928test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1929
1930# Check whether --enable-shared or --disable-shared was given.
1931if test "${enable_shared+set}" = set; then
1932  enableval="$enable_shared"
1933  p=${PACKAGE-default}
1934case "$enableval" in
1935yes) enable_shared=yes ;;
1936no) enable_shared=no ;;
1937*)
1938  enable_shared=no
1939  # Look at the argument we got.  We use all the common list separators.
1940  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1941  for pkg in $enableval; do
1942    if test "X$pkg" = "X$p"; then
1943      enable_shared=yes
1944    fi
1945  done
1946  IFS="$ac_save_ifs"
1947  ;;
1948esac
1949else
1950  enable_shared=yes
1951fi
1952
1953# Check whether --enable-static or --disable-static was given.
1954if test "${enable_static+set}" = set; then
1955  enableval="$enable_static"
1956  p=${PACKAGE-default}
1957case "$enableval" in
1958yes) enable_static=yes ;;
1959no) enable_static=no ;;
1960*)
1961  enable_static=no
1962  # Look at the argument we got.  We use all the common list separators.
1963  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1964  for pkg in $enableval; do
1965    if test "X$pkg" = "X$p"; then
1966      enable_static=yes
1967    fi
1968  done
1969  IFS="$ac_save_ifs"
1970  ;;
1971esac
1972else
1973  enable_static=yes
1974fi
1975
1976# Check whether --enable-fast-install or --disable-fast-install was given.
1977if test "${enable_fast_install+set}" = set; then
1978  enableval="$enable_fast_install"
1979  p=${PACKAGE-default}
1980case "$enableval" in
1981yes) enable_fast_install=yes ;;
1982no) enable_fast_install=no ;;
1983*)
1984  enable_fast_install=no
1985  # Look at the argument we got.  We use all the common list separators.
1986  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1987  for pkg in $enableval; do
1988    if test "X$pkg" = "X$p"; then
1989      enable_fast_install=yes
1990    fi
1991  done
1992  IFS="$ac_save_ifs"
1993  ;;
1994esac
1995else
1996  enable_fast_install=yes
1997fi
1998
1999
2000# Make sure we can run config.sub.
2001if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
2002else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
2003fi
2004
2005echo $ac_n "checking host system type""... $ac_c" 1>&6
2006echo "configure:2007: checking host system type" >&5
2007
2008host_alias=$host
2009case "$host_alias" in
2010NONE)
2011  case $nonopt in
2012  NONE)
2013    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
2014    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
2015    fi ;;
2016  *) host_alias=$nonopt ;;
2017  esac ;;
2018esac
2019
2020host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
2021host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2022host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2023host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2024echo "$ac_t""$host" 1>&6
2025
2026echo $ac_n "checking build system type""... $ac_c" 1>&6
2027echo "configure:2028: checking build system type" >&5
2028
2029build_alias=$build
2030case "$build_alias" in
2031NONE)
2032  case $nonopt in
2033  NONE) build_alias=$host_alias ;;
2034  *) build_alias=$nonopt ;;
2035  esac ;;
2036esac
2037
2038build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
2039build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2040build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2041build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2042echo "$ac_t""$build" 1>&6
2043
2044# Extract the first word of "ranlib", so it can be a program name with args.
2045set dummy ranlib; ac_word=$2
2046echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2047echo "configure:2048: checking for $ac_word" >&5
2048if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2049  echo $ac_n "(cached) $ac_c" 1>&6
2050else
2051  if test -n "$RANLIB"; then
2052  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2053else
2054  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2055  ac_dummy="$PATH"
2056  for ac_dir in $ac_dummy; do
2057    test -z "$ac_dir" && ac_dir=.
2058    if test -f $ac_dir/$ac_word; then
2059      ac_cv_prog_RANLIB="ranlib"
2060      break
2061    fi
2062  done
2063  IFS="$ac_save_ifs"
2064  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2065fi
2066fi
2067RANLIB="$ac_cv_prog_RANLIB"
2068if test -n "$RANLIB"; then
2069  echo "$ac_t""$RANLIB" 1>&6
2070else
2071  echo "$ac_t""no" 1>&6
2072fi
2073
2074# Check whether --with-gnu-ld or --without-gnu-ld was given.
2075if test "${with_gnu_ld+set}" = set; then
2076  withval="$with_gnu_ld"
2077  test "$withval" = no || with_gnu_ld=yes
2078else
2079  with_gnu_ld=no
2080fi
2081
2082ac_prog=ld
2083if test "$ac_cv_prog_gcc" = yes; then
2084  # Check if gcc -print-prog-name=ld gives a path.
2085  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2086echo "configure:2087: checking for ld used by GCC" >&5
2087  ac_prog=`($CC -print-prog-name=ld) 2>&5`
2088  case "$ac_prog" in
2089    # Accept absolute paths.
2090    [\\/]* | [A-Za-z]:[\\/]*)
2091      re_direlt='/[^/][^/]*/\.\./'
2092      # Canonicalize the path of ld
2093      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2094      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2095        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2096      done
2097      test -z "$LD" && LD="$ac_prog"
2098      ;;
2099  "")
2100    # If it fails, then pretend we aren't using GCC.
2101    ac_prog=ld
2102    ;;
2103  *)
2104    # If it is relative, then search for the first ld in PATH.
2105    with_gnu_ld=unknown
2106    ;;
2107  esac
2108elif test "$with_gnu_ld" = yes; then
2109  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2110echo "configure:2111: checking for GNU ld" >&5
2111else
2112  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2113echo "configure:2114: checking for non-GNU ld" >&5
2114fi
2115if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2116  echo $ac_n "(cached) $ac_c" 1>&6
2117else
2118  if test -z "$LD"; then
2119  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2120  for ac_dir in $PATH; do
2121    test -z "$ac_dir" && ac_dir=.
2122    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2123      ac_cv_path_LD="$ac_dir/$ac_prog"
2124      # Check to see if the program is GNU ld.  I'd rather use --version,
2125      # but apparently some GNU ld's only accept -v.
2126      # Break only if it was the GNU/non-GNU ld that we prefer.
2127      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2128        test "$with_gnu_ld" != no && break
2129      else
2130        test "$with_gnu_ld" != yes && break
2131      fi
2132    fi
2133  done
2134  IFS="$ac_save_ifs"
2135else
2136  ac_cv_path_LD="$LD" # Let the user override the test with a path.
2137fi
2138fi
2139
2140LD="$ac_cv_path_LD"
2141if test -n "$LD"; then
2142  echo "$ac_t""$LD" 1>&6
2143else
2144  echo "$ac_t""no" 1>&6
2145fi
2146test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2147echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2148echo "configure:2149: checking if the linker ($LD) is GNU ld" >&5
2149if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2150  echo $ac_n "(cached) $ac_c" 1>&6
2151else
2152  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2153if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2154  ac_cv_prog_gnu_ld=yes
2155else
2156  ac_cv_prog_gnu_ld=no
2157fi
2158fi
2159
2160echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2161
2162
2163echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2164echo "configure:2165: checking for BSD-compatible nm" >&5
2165if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2166  echo $ac_n "(cached) $ac_c" 1>&6
2167else
2168  if test -n "$NM"; then
2169  # Let the user override the test.
2170  ac_cv_path_NM="$NM"
2171else
2172  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2173  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2174    test -z "$ac_dir" && ac_dir=.
2175    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2176      # Check to see if the nm accepts a BSD-compat flag.
2177      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2178      #   nm: unknown option "B" ignored
2179      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2180        ac_cv_path_NM="$ac_dir/nm -B"
2181        break
2182      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2183        ac_cv_path_NM="$ac_dir/nm -p"
2184        break
2185      else
2186        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2187        continue # so that we can try to find one that supports BSD flags
2188      fi
2189    fi
2190  done
2191  IFS="$ac_save_ifs"
2192  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2193fi
2194fi
2195
2196NM="$ac_cv_path_NM"
2197echo "$ac_t""$NM" 1>&6
2198
2199echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2200echo "configure:2201: checking whether ln -s works" >&5
2201if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2202  echo $ac_n "(cached) $ac_c" 1>&6
2203else
2204  rm -f conftestdata
2205if ln -s X conftestdata 2>/dev/null
2206then
2207  rm -f conftestdata
2208  ac_cv_prog_LN_S="ln -s"
2209else
2210  ac_cv_prog_LN_S=ln
2211fi
2212fi
2213LN_S="$ac_cv_prog_LN_S"
2214if test "$ac_cv_prog_LN_S" = "ln -s"; then
2215  echo "$ac_t""yes" 1>&6
2216else
2217  echo "$ac_t""no" 1>&6
2218fi
2219
2220
2221case "$target" in
2222NONE) lt_target="$host" ;;
2223*) lt_target="$target" ;;
2224esac
2225
2226# Check for any special flags to pass to ltconfig.
2227libtool_flags="--cache-file=$cache_file"
2228test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2229test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2230test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2231test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2232test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2233
2234
2235# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2236if test "${enable_libtool_lock+set}" = set; then
2237  enableval="$enable_libtool_lock"
2238  :
2239fi
2240
2241test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2242test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2243
2244# Some flags need to be propagated to the compiler or linker for good
2245# libtool support.
2246case "$lt_target" in
2247*-*-irix6*)
2248  # Find out which ABI we are using.
2249  echo '#line 2250 "configure"' > conftest.$ac_ext
2250  if { (eval echo configure:2251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2251    case "`/usr/bin/file conftest.o`" in
2252    *32-bit*)
2253      LD="${LD-ld} -32"
2254      ;;
2255    *N32*)
2256      LD="${LD-ld} -n32"
2257      ;;
2258    *64-bit*)
2259      LD="${LD-ld} -64"
2260      ;;
2261    esac
2262  fi
2263  rm -rf conftest*
2264  ;;
2265
2266*-*-sco3.2v5*)
2267  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2268  SAVE_CFLAGS="$CFLAGS"
2269  CFLAGS="$CFLAGS -belf"
2270  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2271echo "configure:2272: checking whether the C compiler needs -belf" >&5
2272if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2273  echo $ac_n "(cached) $ac_c" 1>&6
2274else
2275  cat > conftest.$ac_ext <<EOF
2276#line 2277 "configure"
2277#include "confdefs.h"
2278
2279int main() {
2280
2281; return 0; }
2282EOF
2283if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2284  rm -rf conftest*
2285  lt_cv_cc_needs_belf=yes
2286else
2287  echo "configure: failed program was:" >&5
2288  cat conftest.$ac_ext >&5
2289  rm -rf conftest*
2290  lt_cv_cc_needs_belf=no
2291fi
2292rm -f conftest*
2293fi
2294
2295echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2296  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2297    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2298    CFLAGS="$SAVE_CFLAGS"
2299  fi
2300  ;;
2301
2302
2303esac
2304
2305
2306# Save cache, so that ltconfig can load it
2307cat > confcache <<\EOF
2308# This file is a shell script that caches the results of configure
2309# tests run on this system so they can be shared between configure
2310# scripts and configure runs.  It is not useful on other systems.
2311# If it contains results you don't want to keep, you may remove or edit it.
2312#
2313# By default, configure uses ./config.cache as the cache file,
2314# creating it if it does not exist already.  You can give configure
2315# the --cache-file=FILE option to use a different cache file; that is
2316# what configure does when it calls configure scripts in
2317# subdirectories, so they share the cache.
2318# Giving --cache-file=/dev/null disables caching, for debugging configure.
2319# config.status only pays attention to the cache file if you give it the
2320# --recheck option to rerun configure.
2321#
2322EOF
2323# The following way of writing the cache mishandles newlines in values,
2324# but we know of no workaround that is simple, portable, and efficient.
2325# So, don't put newlines in cache variables' values.
2326# Ultrix sh set writes to stderr and can't be redirected directly,
2327# and sets the high bit in the cache file unless we assign to the vars.
2328(set) 2>&1 |
2329  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2330  *ac_space=\ *)
2331    # `set' does not quote correctly, so add quotes (double-quote substitution
2332    # turns \\\\ into \\, and sed turns \\ into \).
2333    sed -n \
2334      -e "s/'/'\\\\''/g" \
2335      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2336    ;;
2337  *)
2338    # `set' quotes correctly as required by POSIX, so do not add quotes.
2339    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2340    ;;
2341  esac >> confcache
2342if cmp -s $cache_file confcache; then
2343  :
2344else
2345  if test -w $cache_file; then
2346    echo "updating cache $cache_file"
2347    cat confcache > $cache_file
2348  else
2349    echo "not updating unwritable cache $cache_file"
2350  fi
2351fi
2352rm -f confcache
2353
2354
2355# Actually configure libtool.  ac_aux_dir is where install-sh is found.
2356CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2357LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2358LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2359DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2360${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2361$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
2362|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2363
2364# Reload cache, that may have been modified by ltconfig
2365if test -r "$cache_file"; then
2366  echo "loading cache $cache_file"
2367  . $cache_file
2368else
2369  echo "creating cache $cache_file"
2370  > $cache_file
2371fi
2372
2373
2374# This can be used to rebuild libtool when needed
2375LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2376
2377# Always use our own libtool.
2378LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2379
2380# Redirect the config.log output again, so that the ltconfig log is not
2381# clobbered by the next message.
2382exec 5>>./config.log
2383
2384missing_dir=`cd $ac_aux_dir && pwd`
2385for ac_prog in flex lex
2386do
2387# Extract the first word of "$ac_prog", so it can be a program name with args.
2388set dummy $ac_prog; ac_word=$2
2389echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2390echo "configure:2391: checking for $ac_word" >&5
2391if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2392  echo $ac_n "(cached) $ac_c" 1>&6
2393else
2394  if test -n "$LEX"; then
2395  ac_cv_prog_LEX="$LEX" # Let the user override the test.
2396else
2397  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2398  ac_dummy="$PATH"
2399  for ac_dir in $ac_dummy; do
2400    test -z "$ac_dir" && ac_dir=.
2401    if test -f $ac_dir/$ac_word; then
2402      ac_cv_prog_LEX="$ac_prog"
2403      break
2404    fi
2405  done
2406  IFS="$ac_save_ifs"
2407fi
2408fi
2409LEX="$ac_cv_prog_LEX"
2410if test -n "$LEX"; then
2411  echo "$ac_t""$LEX" 1>&6
2412else
2413  echo "$ac_t""no" 1>&6
2414fi
2415
2416test -n "$LEX" && break
2417done
2418test -n "$LEX" || LEX=""$missing_dir/missing flex""
2419
2420# Extract the first word of "flex", so it can be a program name with args.
2421set dummy flex; ac_word=$2
2422echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2423echo "configure:2424: checking for $ac_word" >&5
2424if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2425  echo $ac_n "(cached) $ac_c" 1>&6
2426else
2427  if test -n "$LEX"; then
2428  ac_cv_prog_LEX="$LEX" # Let the user override the test.
2429else
2430  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2431  ac_dummy="$PATH"
2432  for ac_dir in $ac_dummy; do
2433    test -z "$ac_dir" && ac_dir=.
2434    if test -f $ac_dir/$ac_word; then
2435      ac_cv_prog_LEX="flex"
2436      break
2437    fi
2438  done
2439  IFS="$ac_save_ifs"
2440  test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
2441fi
2442fi
2443LEX="$ac_cv_prog_LEX"
2444if test -n "$LEX"; then
2445  echo "$ac_t""$LEX" 1>&6
2446else
2447  echo "$ac_t""no" 1>&6
2448fi
2449
2450if test -z "$LEXLIB"
2451then
2452  case "$LEX" in
2453  flex*) ac_lib=fl ;;
2454  *) ac_lib=l ;;
2455  esac
2456  echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2457echo "configure:2458: checking for yywrap in -l$ac_lib" >&5
2458ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2459if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2460  echo $ac_n "(cached) $ac_c" 1>&6
2461else
2462  ac_save_LIBS="$LIBS"
2463LIBS="-l$ac_lib  $LIBS"
2464cat > conftest.$ac_ext <<EOF
2465#line 2466 "configure"
2466#include "confdefs.h"
2467/* Override any gcc2 internal prototype to avoid an error.  */
2468/* We use char because int might match the return type of a gcc2
2469    builtin and then its argument prototype would still apply.  */
2470char yywrap();
2471
2472int main() {
2473yywrap()
2474; return 0; }
2475EOF
2476if { (eval echo configure:2477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2477  rm -rf conftest*
2478  eval "ac_cv_lib_$ac_lib_var=yes"
2479else
2480  echo "configure: failed program was:" >&5
2481  cat conftest.$ac_ext >&5
2482  rm -rf conftest*
2483  eval "ac_cv_lib_$ac_lib_var=no"
2484fi
2485rm -f conftest*
2486LIBS="$ac_save_LIBS"
2487
2488fi
2489if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2490  echo "$ac_t""yes" 1>&6
2491  LEXLIB="-l$ac_lib"
2492else
2493  echo "$ac_t""no" 1>&6
2494fi
2495
2496fi
2497
2498echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2499echo "configure:2500: checking lex output file root" >&5
2500if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2501  echo $ac_n "(cached) $ac_c" 1>&6
2502else
2503  # The minimal lex program is just a single line: %%.  But some broken lexes
2504# (Solaris, I think it was) want two %% lines, so accommodate them.
2505echo '%%
2506%%' | $LEX
2507if test -f lex.yy.c; then
2508  ac_cv_prog_lex_root=lex.yy
2509elif test -f lexyy.c; then
2510  ac_cv_prog_lex_root=lexyy
2511else
2512  { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2513fi
2514fi
2515
2516echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2517LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2518
2519echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2520echo "configure:2521: checking whether yytext is a pointer" >&5
2521if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2522  echo $ac_n "(cached) $ac_c" 1>&6
2523else
2524  # POSIX says lex can declare yytext either as a pointer or an array; the
2525# default is implementation-dependent. Figure out which it is, since
2526# not all implementations provide the %pointer and %array declarations.
2527ac_cv_prog_lex_yytext_pointer=no
2528echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2529ac_save_LIBS="$LIBS"
2530LIBS="$LIBS $LEXLIB"
2531cat > conftest.$ac_ext <<EOF
2532#line 2533 "configure"
2533#include "confdefs.h"
2534`cat $LEX_OUTPUT_ROOT.c`
2535int main() {
2536
2537; return 0; }
2538EOF
2539if { (eval echo configure:2540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2540  rm -rf conftest*
2541  ac_cv_prog_lex_yytext_pointer=yes
2542else
2543  echo "configure: failed program was:" >&5
2544  cat conftest.$ac_ext >&5
2545fi
2546rm -f conftest*
2547LIBS="$ac_save_LIBS"
2548rm -f "${LEX_OUTPUT_ROOT}.c"
2549
2550fi
2551
2552echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2553if test $ac_cv_prog_lex_yytext_pointer = yes; then
2554  cat >> confdefs.h <<\EOF
2555#define YYTEXT_POINTER 1
2556EOF
2557
2558fi
2559
2560for ac_prog in 'bison -y' byacc
2561do
2562# Extract the first word of "$ac_prog", so it can be a program name with args.
2563set dummy $ac_prog; ac_word=$2
2564echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2565echo "configure:2566: checking for $ac_word" >&5
2566if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2567  echo $ac_n "(cached) $ac_c" 1>&6
2568else
2569  if test -n "$YACC"; then
2570  ac_cv_prog_YACC="$YACC" # Let the user override the test.
2571else
2572  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2573  ac_dummy="$PATH"
2574  for ac_dir in $ac_dummy; do
2575    test -z "$ac_dir" && ac_dir=.
2576    if test -f $ac_dir/$ac_word; then
2577      ac_cv_prog_YACC="$ac_prog"
2578      break
2579    fi
2580  done
2581  IFS="$ac_save_ifs"
2582fi
2583fi
2584YACC="$ac_cv_prog_YACC"
2585if test -n "$YACC"; then
2586  echo "$ac_t""$YACC" 1>&6
2587else
2588  echo "$ac_t""no" 1>&6
2589fi
2590
2591test -n "$YACC" && break
2592done
2593test -n "$YACC" || YACC="yacc"
2594
2595for ac_prog in "xrdb"
2596do
2597# Extract the first word of "$ac_prog", so it can be a program name with args.
2598set dummy $ac_prog; ac_word=$2
2599echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2600echo "configure:2601: checking for $ac_word" >&5
2601if eval "test \"`echo '$''{'ac_cv_path_PATH_TO_XRDB'+set}'`\" = set"; then
2602  echo $ac_n "(cached) $ac_c" 1>&6
2603else
2604  case "$PATH_TO_XRDB" in
2605  /*)
2606  ac_cv_path_PATH_TO_XRDB="$PATH_TO_XRDB" # Let the user override the test with a path.
2607  ;;
2608  ?:/*)                 
2609  ac_cv_path_PATH_TO_XRDB="$PATH_TO_XRDB" # Let the user override the test with a dos path.
2610  ;;
2611  *)
2612  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2613  ac_dummy="$PATH"
2614  for ac_dir in $ac_dummy; do
2615    test -z "$ac_dir" && ac_dir=.
2616    if test -f $ac_dir/$ac_word; then
2617      ac_cv_path_PATH_TO_XRDB="$ac_dir/$ac_word"
2618      break
2619    fi
2620  done
2621  IFS="$ac_save_ifs"
2622  ;;
2623esac
2624fi
2625PATH_TO_XRDB="$ac_cv_path_PATH_TO_XRDB"
2626if test -n "$PATH_TO_XRDB"; then
2627  echo "$ac_t""$PATH_TO_XRDB" 1>&6
2628else
2629  echo "$ac_t""no" 1>&6
2630fi
2631
2632test -n "$PATH_TO_XRDB" && break
2633done
2634
2635
2636
2637  # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
2638if test "${enable_compile_warnings+set}" = set; then
2639  enableval="$enable_compile_warnings"
2640  :
2641else
2642  enable_compile_warnings=minimum
2643fi
2644
2645
2646  echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6
2647echo "configure:2648: checking what warning flags to pass to the C compiler" >&5
2648  warnCFLAGS=
2649  if test "x$GCC" != xyes; then
2650    enable_compile_warnings=no
2651  fi
2652
2653  if test "x$enable_compile_warnings" != "xno"; then
2654    if test "x$GCC" = "xyes"; then
2655      case " $CFLAGS " in
2656      *\ \      -Wall\ \        *) ;;
2657      *) warnCFLAGS="-Wall -Wunused" ;;
2658      esac
2659
2660      ## -W is not all that useful.  And it cannot be controlled
2661      ## with individual -Wno-xxx flags, unlike -Wall
2662      if test "x$enable_compile_warnings" = "xyes"; then
2663        warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations"
2664      fi
2665    fi
2666  fi
2667  echo "$ac_t""$warnCFLAGS" 1>&6
2668
2669  # Check whether --enable-iso-c or --disable-iso-c was given.
2670if test "${enable_iso_c+set}" = set; then
2671  enableval="$enable_iso_c"
2672  :
2673else
2674  enable_iso_c=no
2675fi
2676
2677
2678  echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6
2679echo "configure:2680: checking what language compliance flags to pass to the C compiler" >&5
2680  complCFLAGS=
2681  if test "x$enable_iso_c" != "xno"; then
2682    if test "x$GCC" = "xyes"; then
2683      case " $CFLAGS " in
2684      *\ \      -ansi\ \        *) ;;
2685      *) complCFLAGS="$complCFLAGS -ansi" ;;
2686      esac
2687
2688      case " $CFLAGS " in
2689      *\ \      -pedantic\ \    *) ;;
2690      *) complCFLAGS="$complCFLAGS -pedantic" ;;
2691      esac
2692    fi
2693  fi
2694  echo "$ac_t""$complCFLAGS" 1>&6
2695  if test "x$cflags_set" != "xyes"; then
2696    CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
2697    cflags_set=yes
2698   
2699  fi
2700
2701
2702
2703        PTHREAD_LIB=""
2704        echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2705echo "configure:2706: checking for pthread_create in -lpthread" >&5
2706ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2707if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2708  echo $ac_n "(cached) $ac_c" 1>&6
2709else
2710  ac_save_LIBS="$LIBS"
2711LIBS="-lpthread  $LIBS"
2712cat > conftest.$ac_ext <<EOF
2713#line 2714 "configure"
2714#include "confdefs.h"
2715/* Override any gcc2 internal prototype to avoid an error.  */
2716/* We use char because int might match the return type of a gcc2
2717    builtin and then its argument prototype would still apply.  */
2718char pthread_create();
2719
2720int main() {
2721pthread_create()
2722; return 0; }
2723EOF
2724if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2725  rm -rf conftest*
2726  eval "ac_cv_lib_$ac_lib_var=yes"
2727else
2728  echo "configure: failed program was:" >&5
2729  cat conftest.$ac_ext >&5
2730  rm -rf conftest*
2731  eval "ac_cv_lib_$ac_lib_var=no"
2732fi
2733rm -f conftest*
2734LIBS="$ac_save_LIBS"
2735
2736fi
2737if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2738  echo "$ac_t""yes" 1>&6
2739  PTHREAD_LIB="-lpthread"
2740else
2741  echo "$ac_t""no" 1>&6
2742echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
2743echo "configure:2744: checking for pthread_create in -lpthreads" >&5
2744ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
2745if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2746  echo $ac_n "(cached) $ac_c" 1>&6
2747else
2748  ac_save_LIBS="$LIBS"
2749LIBS="-lpthreads  $LIBS"
2750cat > conftest.$ac_ext <<EOF
2751#line 2752 "configure"
2752#include "confdefs.h"
2753/* Override any gcc2 internal prototype to avoid an error.  */
2754/* We use char because int might match the return type of a gcc2
2755    builtin and then its argument prototype would still apply.  */
2756char pthread_create();
2757
2758int main() {
2759pthread_create()
2760; return 0; }
2761EOF
2762if { (eval echo configure:2763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2763  rm -rf conftest*
2764  eval "ac_cv_lib_$ac_lib_var=yes"
2765else
2766  echo "configure: failed program was:" >&5
2767  cat conftest.$ac_ext >&5
2768  rm -rf conftest*
2769  eval "ac_cv_lib_$ac_lib_var=no"
2770fi
2771rm -f conftest*
2772LIBS="$ac_save_LIBS"
2773
2774fi
2775if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2776  echo "$ac_t""yes" 1>&6
2777  PTHREAD_LIB="-lpthreads"
2778else
2779  echo "$ac_t""no" 1>&6
2780echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2781echo "configure:2782: checking for pthread_create in -lc_r" >&5
2782ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2783if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2784  echo $ac_n "(cached) $ac_c" 1>&6
2785else
2786  ac_save_LIBS="$LIBS"
2787LIBS="-lc_r  $LIBS"
2788cat > conftest.$ac_ext <<EOF
2789#line 2790 "configure"
2790#include "confdefs.h"
2791/* Override any gcc2 internal prototype to avoid an error.  */
2792/* We use char because int might match the return type of a gcc2
2793    builtin and then its argument prototype would still apply.  */
2794char pthread_create();
2795
2796int main() {
2797pthread_create()
2798; return 0; }
2799EOF
2800if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2801  rm -rf conftest*
2802  eval "ac_cv_lib_$ac_lib_var=yes"
2803else
2804  echo "configure: failed program was:" >&5
2805  cat conftest.$ac_ext >&5
2806  rm -rf conftest*
2807  eval "ac_cv_lib_$ac_lib_var=no"
2808fi
2809rm -f conftest*
2810LIBS="$ac_save_LIBS"
2811
2812fi
2813if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2814  echo "$ac_t""yes" 1>&6
2815  PTHREAD_LIB="-lc_r"
2816else
2817  echo "$ac_t""no" 1>&6
2818echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
2819echo "configure:2820: checking for pthread_create" >&5
2820if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
2821  echo $ac_n "(cached) $ac_c" 1>&6
2822else
2823  cat > conftest.$ac_ext <<EOF
2824#line 2825 "configure"
2825#include "confdefs.h"
2826/* System header to define __stub macros and hopefully few prototypes,
2827    which can conflict with char pthread_create(); below.  */
2828#include <assert.h>
2829/* Override any gcc2 internal prototype to avoid an error.  */
2830/* We use char because int might match the return type of a gcc2
2831    builtin and then its argument prototype would still apply.  */
2832char pthread_create();
2833
2834int main() {
2835
2836/* The GNU C library defines this for functions which it implements
2837    to always fail with ENOSYS.  Some functions are actually named
2838    something starting with __ and the normal name is an alias.  */
2839#if defined (__stub_pthread_create) || defined (__stub___pthread_create)
2840choke me
2841#else
2842pthread_create();
2843#endif
2844
2845; return 0; }
2846EOF
2847if { (eval echo configure:2848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2848  rm -rf conftest*
2849  eval "ac_cv_func_pthread_create=yes"
2850else
2851  echo "configure: failed program was:" >&5
2852  cat conftest.$ac_ext >&5
2853  rm -rf conftest*
2854  eval "ac_cv_func_pthread_create=no"
2855fi
2856rm -f conftest*
2857fi
2858
2859if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
2860  echo "$ac_t""yes" 1>&6
2861  :
2862else
2863  echo "$ac_t""no" 1>&6
2864fi
2865
2866                   
2867fi
2868
2869               
2870fi
2871
2872       
2873fi
2874
2875       
2876       
2877
2878
2879        # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
2880if test "${with_gtk_prefix+set}" = set; then
2881  withval="$with_gtk_prefix"
2882  gtk_config_prefix="$withval"
2883else
2884  gtk_config_prefix=""
2885fi
2886
2887# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
2888if test "${with_gtk_exec_prefix+set}" = set; then
2889  withval="$with_gtk_exec_prefix"
2890  gtk_config_exec_prefix="$withval"
2891else
2892  gtk_config_exec_prefix=""
2893fi
2894
2895# Check whether --enable-gtktest or --disable-gtktest was given.
2896if test "${enable_gtktest+set}" = set; then
2897  enableval="$enable_gtktest"
2898  :
2899else
2900  enable_gtktest=yes
2901fi
2902
2903
2904  for module in .
2905  do
2906      case "$module" in
2907         gthread)
2908             gtk_config_args="$gtk_config_args gthread"
2909         ;;
2910      esac
2911  done
2912
2913  if test x$gtk_config_exec_prefix != x ; then
2914     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
2915     if test x${GTK_CONFIG+set} != xset ; then
2916        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
2917     fi
2918  fi
2919  if test x$gtk_config_prefix != x ; then
2920     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
2921     if test x${GTK_CONFIG+set} != xset ; then
2922        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
2923     fi
2924  fi
2925
2926  # Extract the first word of "gtk-config", so it can be a program name with args.
2927set dummy gtk-config; ac_word=$2
2928echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2929echo "configure:2930: checking for $ac_word" >&5
2930if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
2931  echo $ac_n "(cached) $ac_c" 1>&6
2932else
2933  case "$GTK_CONFIG" in
2934  /*)
2935  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
2936  ;;
2937  ?:/*)                 
2938  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
2939  ;;
2940  *)
2941  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2942  ac_dummy="$PATH"
2943  for ac_dir in $ac_dummy; do
2944    test -z "$ac_dir" && ac_dir=.
2945    if test -f $ac_dir/$ac_word; then
2946      ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
2947      break
2948    fi
2949  done
2950  IFS="$ac_save_ifs"
2951  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
2952  ;;
2953esac
2954fi
2955GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
2956if test -n "$GTK_CONFIG"; then
2957  echo "$ac_t""$GTK_CONFIG" 1>&6
2958else
2959  echo "$ac_t""no" 1>&6
2960fi
2961
2962  min_gtk_version=1.2.0
2963  echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
2964echo "configure:2965: checking for GTK - version >= $min_gtk_version" >&5
2965  no_gtk=""
2966  if test "$GTK_CONFIG" = "no" ; then
2967    no_gtk=yes
2968  else
2969    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
2970    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
2971    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
2972           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2973    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
2974           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2975    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
2976           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2977    if test "x$enable_gtktest" = "xyes" ; then
2978      ac_save_CFLAGS="$CFLAGS"
2979      ac_save_LIBS="$LIBS"
2980      CFLAGS="$CFLAGS $GTK_CFLAGS"
2981      LIBS="$GTK_LIBS $LIBS"
2982      rm -f conf.gtktest
2983      if test "$cross_compiling" = yes; then
2984  echo $ac_n "cross compiling; assumed OK... $ac_c"
2985else
2986  cat > conftest.$ac_ext <<EOF
2987#line 2988 "configure"
2988#include "confdefs.h"
2989
2990#include <gtk/gtk.h>
2991#include <stdio.h>
2992#include <stdlib.h>
2993
2994int
2995main ()
2996{
2997  int major, minor, micro;
2998  char *tmp_version;
2999
3000  system ("touch conf.gtktest");
3001
3002  /* HP/UX 9 (%@#!) writes to sscanf strings */
3003  tmp_version = g_strdup("$min_gtk_version");
3004  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
3005     printf("%s, bad version string\n", "$min_gtk_version");
3006     exit(1);
3007   }
3008
3009  if ((gtk_major_version != $gtk_config_major_version) ||
3010      (gtk_minor_version != $gtk_config_minor_version) ||
3011      (gtk_micro_version != $gtk_config_micro_version))
3012    {
3013      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
3014             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
3015             gtk_major_version, gtk_minor_version, gtk_micro_version);
3016      printf ("*** was found! If gtk-config was correct, then it is best\n");
3017      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
3018      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
3019      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
3020      printf("*** required on your system.\n");
3021      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
3022      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
3023      printf("*** before re-running configure\n");
3024    }
3025#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
3026  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
3027           (gtk_minor_version != GTK_MINOR_VERSION) ||
3028           (gtk_micro_version != GTK_MICRO_VERSION))
3029    {
3030      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
3031             GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
3032      printf("*** library (version %d.%d.%d)\n",
3033             gtk_major_version, gtk_minor_version, gtk_micro_version);
3034    }
3035#endif /* defined (GTK_MAJOR_VERSION) ... */
3036  else
3037    {
3038      if ((gtk_major_version > major) ||
3039        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
3040        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
3041      {
3042        return 0;
3043       }
3044     else
3045      {
3046        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
3047               gtk_major_version, gtk_minor_version, gtk_micro_version);
3048        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
3049               major, minor, micro);
3050        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
3051        printf("***\n");
3052        printf("*** If you have already installed a sufficiently new version, this error\n");
3053        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
3054        printf("*** being found. The easiest way to fix this is to remove the old version\n");
3055        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
3056        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
3057        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
3058        printf("*** so that the correct libraries are found at run-time))\n");
3059      }
3060    }
3061  return 1;
3062}
3063
3064EOF
3065if { (eval echo configure:3066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3066then
3067  :
3068else
3069  echo "configure: failed program was:" >&5
3070  cat conftest.$ac_ext >&5
3071  rm -fr conftest*
3072  no_gtk=yes
3073fi
3074rm -fr conftest*
3075fi
3076
3077       CFLAGS="$ac_save_CFLAGS"
3078       LIBS="$ac_save_LIBS"
3079     fi
3080  fi
3081  if test "x$no_gtk" = x ; then
3082     echo "$ac_t""yes" 1>&6
3083     :     
3084  else
3085     echo "$ac_t""no" 1>&6
3086     if test "$GTK_CONFIG" = "no" ; then
3087       echo "*** The gtk-config script installed by GTK could not be found"
3088       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
3089       echo "*** your path, or set the GTK_CONFIG environment variable to the"
3090       echo "*** full path to gtk-config."
3091     else
3092       if test -f conf.gtktest ; then
3093        :
3094       else
3095          echo "*** Could not run GTK test program, checking why..."
3096          CFLAGS="$CFLAGS $GTK_CFLAGS"
3097          LIBS="$LIBS $GTK_LIBS"
3098          cat > conftest.$ac_ext <<EOF
3099#line 3100 "configure"
3100#include "confdefs.h"
3101
3102#include <gtk/gtk.h>
3103#include <stdio.h>
3104
3105int main() {
3106 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
3107; return 0; }
3108EOF
3109if { (eval echo configure:3110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3110  rm -rf conftest*
3111   echo "*** The test program compiled, but did not run. This usually means"
3112          echo "*** that the run-time linker is not finding GTK or finding the wrong"
3113          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
3114          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3115          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
3116          echo "*** is required on your system"
3117          echo "***"
3118          echo "*** If you have an old version installed, it is best to remove it, although"
3119          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3120          echo "***"
3121          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
3122          echo "*** came with the system with the command"
3123          echo "***"
3124          echo "***    rpm --erase --nodeps gtk gtk-devel"
3125else
3126  echo "configure: failed program was:" >&5
3127  cat conftest.$ac_ext >&5
3128  rm -rf conftest*
3129   echo "*** The test program failed to compile or link. See the file config.log for the"
3130          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
3131          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
3132          echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
3133fi
3134rm -f conftest*
3135          CFLAGS="$ac_save_CFLAGS"
3136          LIBS="$ac_save_LIBS"
3137       fi
3138     fi
3139     GTK_CFLAGS=""
3140     GTK_LIBS=""
3141     { echo "configure: error: GTK not installed" 1>&2; exit 1; }
3142  fi
3143 
3144 
3145  rm -f conf.gtktest
3146
3147                                                CPPFLAGS="$CPPFLAGS $GTK_CFLAGS"
3148
3149        saved_ldflags="$LDFLAGS"
3150        LDFLAGS="$LDFLAGS $GTK_LIBS"
3151
3152        gnome_cv_passdown_x_libs="$GTK_LIBS"
3153        gnome_cv_passdown_X_LIBS="$GTK_LIBS"
3154        gnome_cv_passdown_X_CFLAGS="$GTK_CFLAGS"
3155        gnome_cv_passdown_GTK_LIBS="$GTK_LIBS"
3156
3157        LDFLAGS="$saved_ldflags $GTK_LIBS"
3158
3159        USE_DEVGTK=true
3160
3161
3162        GNOME_HAVE_SM=true
3163        case "$GTK_LIBS" in
3164         *-lSM*)
3165                    ;;
3166         *)
3167                    echo $ac_n "checking for SmcSaveYourselfDone in -lSM""... $ac_c" 1>&6
3168echo "configure:3169: checking for SmcSaveYourselfDone in -lSM" >&5
3169ac_lib_var=`echo SM'_'SmcSaveYourselfDone | sed 'y%./+-%__p_%'`
3170if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3171  echo $ac_n "(cached) $ac_c" 1>&6
3172else
3173  ac_save_LIBS="$LIBS"
3174LIBS="-lSM $x_libs -lICE $LIBS"
3175cat > conftest.$ac_ext <<EOF
3176#line 3177 "configure"
3177#include "confdefs.h"
3178/* Override any gcc2 internal prototype to avoid an error.  */
3179/* We use char because int might match the return type of a gcc2
3180    builtin and then its argument prototype would still apply.  */
3181char SmcSaveYourselfDone();
3182
3183int main() {
3184SmcSaveYourselfDone()
3185; return 0; }
3186EOF
3187if { (eval echo configure:3188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3188  rm -rf conftest*
3189  eval "ac_cv_lib_$ac_lib_var=yes"
3190else
3191  echo "configure: failed program was:" >&5
3192  cat conftest.$ac_ext >&5
3193  rm -rf conftest*
3194  eval "ac_cv_lib_$ac_lib_var=no"
3195fi
3196rm -f conftest*
3197LIBS="$ac_save_LIBS"
3198
3199fi
3200if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3201  echo "$ac_t""yes" 1>&6
3202  GTK_LIBS="-lSM -lICE $GTK_LIBS"
3203else
3204  echo "$ac_t""no" 1>&6
3205GNOME_HAVE_SM=false
3206fi
3207
3208            ;;
3209        esac
3210
3211        if test "$GNOME_HAVE_SM" = true; then
3212           for ac_hdr in X11/SM/SMlib.h
3213do
3214ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3215echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3216echo "configure:3217: checking for $ac_hdr" >&5
3217if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3218  echo $ac_n "(cached) $ac_c" 1>&6
3219else
3220  cat > conftest.$ac_ext <<EOF
3221#line 3222 "configure"
3222#include "confdefs.h"
3223#include <$ac_hdr>
3224EOF
3225ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3226{ (eval echo configure:3227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3227ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3228if test -z "$ac_err"; then
3229  rm -rf conftest*
3230  eval "ac_cv_header_$ac_safe=yes"
3231else
3232  echo "$ac_err" >&5
3233  echo "configure: failed program was:" >&5
3234  cat conftest.$ac_ext >&5
3235  rm -rf conftest*
3236  eval "ac_cv_header_$ac_safe=no"
3237fi
3238rm -f conftest*
3239fi
3240if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3241  echo "$ac_t""yes" 1>&6
3242    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3243  cat >> confdefs.h <<EOF
3244#define $ac_tr_hdr 1
3245EOF
3246 
3247else
3248  echo "$ac_t""no" 1>&6
3249GNOME_HAVE_SM=false
3250fi
3251done
3252
3253        fi
3254
3255        if test "$GNOME_HAVE_SM" = true; then
3256           cat >> confdefs.h <<\EOF
3257#define HAVE_LIBSM 1
3258EOF
3259
3260        fi
3261
3262        XPM_LIBS=""
3263        echo $ac_n "checking for XpmFreeXpmImage in -lXpm""... $ac_c" 1>&6
3264echo "configure:3265: checking for XpmFreeXpmImage in -lXpm" >&5
3265ac_lib_var=`echo Xpm'_'XpmFreeXpmImage | sed 'y%./+-%__p_%'`
3266if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3267  echo $ac_n "(cached) $ac_c" 1>&6
3268else
3269  ac_save_LIBS="$LIBS"
3270LIBS="-lXpm $x_libs $LIBS"
3271cat > conftest.$ac_ext <<EOF
3272#line 3273 "configure"
3273#include "confdefs.h"
3274/* Override any gcc2 internal prototype to avoid an error.  */
3275/* We use char because int might match the return type of a gcc2
3276    builtin and then its argument prototype would still apply.  */
3277char XpmFreeXpmImage();
3278
3279int main() {
3280XpmFreeXpmImage()
3281; return 0; }
3282EOF
3283if { (eval echo configure:3284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3284  rm -rf conftest*
3285  eval "ac_cv_lib_$ac_lib_var=yes"
3286else
3287  echo "configure: failed program was:" >&5
3288  cat conftest.$ac_ext >&5
3289  rm -rf conftest*
3290  eval "ac_cv_lib_$ac_lib_var=no"
3291fi
3292rm -f conftest*
3293LIBS="$ac_save_LIBS"
3294
3295fi
3296if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3297  echo "$ac_t""yes" 1>&6
3298  XPM_LIBS="-lXpm"
3299else
3300  echo "$ac_t""no" 1>&6
3301fi
3302
3303       
3304
3305       
3306        LDFLAGS="$saved_ldflags"
3307
3308       
3309
3310
3311       
3312        # Extract the first word of "gnome-config", so it can be a program name with args.
3313set dummy gnome-config; ac_word=$2
3314echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3315echo "configure:3316: checking for $ac_word" >&5
3316if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
3317  echo $ac_n "(cached) $ac_c" 1>&6
3318else
3319  case "$GNOME_CONFIG" in
3320  /*)
3321  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
3322  ;;
3323  ?:/*)                 
3324  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
3325  ;;
3326  *)
3327  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3328  ac_dummy="$PATH"
3329  for ac_dir in $ac_dummy; do
3330    test -z "$ac_dir" && ac_dir=.
3331    if test -f $ac_dir/$ac_word; then
3332      ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
3333      break
3334    fi
3335  done
3336  IFS="$ac_save_ifs"
3337  test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
3338  ;;
3339esac
3340fi
3341GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
3342if test -n "$GNOME_CONFIG"; then
3343  echo "$ac_t""$GNOME_CONFIG" 1>&6
3344else
3345  echo "$ac_t""no" 1>&6
3346fi
3347
3348        if test "$GNOME_CONFIG" = no; then
3349                if test xfailure = xfailure; then
3350                        { echo "configure: error: Could not find gnome-config" 1>&2; exit 1; }
3351                fi
3352        fi
3353        GNOME_XML_CFLAGS=`$GNOME_CONFIG --cflags xml`
3354       
3355        echo $ac_n "checking for xmlNewDoc in -lxml""... $ac_c" 1>&6
3356echo "configure:3357: checking for xmlNewDoc in -lxml" >&5
3357ac_lib_var=`echo xml'_'xmlNewDoc | sed 'y%./+-%__p_%'`
3358if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3359  echo $ac_n "(cached) $ac_c" 1>&6
3360else
3361  ac_save_LIBS="$LIBS"
3362LIBS="-lxml `$GNOME_CONFIG --libs xml` $LIBS"
3363cat > conftest.$ac_ext <<EOF
3364#line 3365 "configure"
3365#include "confdefs.h"
3366/* Override any gcc2 internal prototype to avoid an error.  */
3367/* We use char because int might match the return type of a gcc2
3368    builtin and then its argument prototype would still apply.  */
3369char xmlNewDoc();
3370
3371int main() {
3372xmlNewDoc()
3373; return 0; }
3374EOF
3375if { (eval echo configure:3376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3376  rm -rf conftest*
3377  eval "ac_cv_lib_$ac_lib_var=yes"
3378else
3379  echo "configure: failed program was:" >&5
3380  cat conftest.$ac_ext >&5
3381  rm -rf conftest*
3382  eval "ac_cv_lib_$ac_lib_var=no"
3383fi
3384rm -f conftest*
3385LIBS="$ac_save_LIBS"
3386
3387fi
3388if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3389  echo "$ac_t""yes" 1>&6
3390 
3391               
3392                GNOME_XML_LIB=`$GNOME_CONFIG --libs xml`
3393       
3394else
3395  echo "$ac_t""no" 1>&6
3396
3397                if test xfailure = xfailure; then
3398                        { echo "configure: error: Could not link sample xml program" 1>&2; exit 1; }
3399                fi
3400       
3401fi
3402
3403       
3404
3405
3406
3407# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
3408if test "${with_gtk_prefix+set}" = set; then
3409  withval="$with_gtk_prefix"
3410  gtk_config_prefix="$withval"
3411else
3412  gtk_config_prefix=""
3413fi
3414
3415# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
3416if test "${with_gtk_exec_prefix+set}" = set; then
3417  withval="$with_gtk_exec_prefix"
3418  gtk_config_exec_prefix="$withval"
3419else
3420  gtk_config_exec_prefix=""
3421fi
3422
3423# Check whether --enable-gtktest or --disable-gtktest was given.
3424if test "${enable_gtktest+set}" = set; then
3425  enableval="$enable_gtktest"
3426  :
3427else
3428  enable_gtktest=yes
3429fi
3430
3431
3432  for module in .
3433  do
3434      case "$module" in
3435         gthread)
3436             gtk_config_args="$gtk_config_args gthread"
3437         ;;
3438      esac
3439  done
3440
3441  if test x$gtk_config_exec_prefix != x ; then
3442     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
3443     if test x${GTK_CONFIG+set} != xset ; then
3444        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
3445     fi
3446  fi
3447  if test x$gtk_config_prefix != x ; then
3448     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
3449     if test x${GTK_CONFIG+set} != xset ; then
3450        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
3451     fi
3452  fi
3453
3454  # Extract the first word of "gtk-config", so it can be a program name with args.
3455set dummy gtk-config; ac_word=$2
3456echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3457echo "configure:3458: checking for $ac_word" >&5
3458if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
3459  echo $ac_n "(cached) $ac_c" 1>&6
3460else
3461  case "$GTK_CONFIG" in
3462  /*)
3463  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
3464  ;;
3465  ?:/*)                 
3466  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
3467  ;;
3468  *)
3469  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3470  ac_dummy="$PATH"
3471  for ac_dir in $ac_dummy; do
3472    test -z "$ac_dir" && ac_dir=.
3473    if test -f $ac_dir/$ac_word; then
3474      ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
3475      break
3476    fi
3477  done
3478  IFS="$ac_save_ifs"
3479  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
3480  ;;
3481esac
3482fi
3483GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
3484if test -n "$GTK_CONFIG"; then
3485  echo "$ac_t""$GTK_CONFIG" 1>&6
3486else
3487  echo "$ac_t""no" 1>&6
3488fi
3489
3490  min_gtk_version=1.2.5
3491  echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
3492echo "configure:3493: checking for GTK - version >= $min_gtk_version" >&5
3493  no_gtk=""
3494  if test "$GTK_CONFIG" = "no" ; then
3495    no_gtk=yes
3496  else
3497    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
3498    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
3499    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
3500           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3501    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
3502           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3503    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
3504           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3505    if test "x$enable_gtktest" = "xyes" ; then
3506      ac_save_CFLAGS="$CFLAGS"
3507      ac_save_LIBS="$LIBS"
3508      CFLAGS="$CFLAGS $GTK_CFLAGS"
3509      LIBS="$GTK_LIBS $LIBS"
3510      rm -f conf.gtktest
3511      if test "$cross_compiling" = yes; then
3512  echo $ac_n "cross compiling; assumed OK... $ac_c"
3513else
3514  cat > conftest.$ac_ext <<EOF
3515#line 3516 "configure"
3516#include "confdefs.h"
3517
3518#include <gtk/gtk.h>
3519#include <stdio.h>
3520#include <stdlib.h>
3521
3522int
3523main ()
3524{
3525  int major, minor, micro;
3526  char *tmp_version;
3527
3528  system ("touch conf.gtktest");
3529
3530  /* HP/UX 9 (%@#!) writes to sscanf strings */
3531  tmp_version = g_strdup("$min_gtk_version");
3532  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
3533     printf("%s, bad version string\n", "$min_gtk_version");
3534     exit(1);
3535   }
3536
3537  if ((gtk_major_version != $gtk_config_major_version) ||
3538      (gtk_minor_version != $gtk_config_minor_version) ||
3539      (gtk_micro_version != $gtk_config_micro_version))
3540    {
3541      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
3542             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
3543             gtk_major_version, gtk_minor_version, gtk_micro_version);
3544      printf ("*** was found! If gtk-config was correct, then it is best\n");
3545      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
3546      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
3547      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
3548      printf("*** required on your system.\n");
3549      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
3550      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
3551      printf("*** before re-running configure\n");
3552    }
3553#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
3554  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
3555           (gtk_minor_version != GTK_MINOR_VERSION) ||
3556           (gtk_micro_version != GTK_MICRO_VERSION))
3557    {
3558      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
3559             GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
3560      printf("*** library (version %d.%d.%d)\n",
3561             gtk_major_version, gtk_minor_version, gtk_micro_version);
3562    }
3563#endif /* defined (GTK_MAJOR_VERSION) ... */
3564  else
3565    {
3566      if ((gtk_major_version > major) ||
3567        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
3568        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
3569      {
3570        return 0;
3571       }
3572     else
3573      {
3574        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
3575               gtk_major_version, gtk_minor_version, gtk_micro_version);
3576        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
3577               major, minor, micro);
3578        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
3579        printf("***\n");
3580        printf("*** If you have already installed a sufficiently new version, this error\n");
3581        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
3582        printf("*** being found. The easiest way to fix this is to remove the old version\n");
3583        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
3584        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
3585        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
3586        printf("*** so that the correct libraries are found at run-time))\n");
3587      }
3588    }
3589  return 1;
3590}
3591
3592EOF
3593if { (eval echo configure:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3594then
3595  :
3596else
3597  echo "configure: failed program was:" >&5
3598  cat conftest.$ac_ext >&5
3599  rm -fr conftest*
3600  no_gtk=yes
3601fi
3602rm -fr conftest*
3603fi
3604
3605       CFLAGS="$ac_save_CFLAGS"
3606       LIBS="$ac_save_LIBS"
3607     fi
3608  fi
3609  if test "x$no_gtk" = x ; then
3610     echo "$ac_t""yes" 1>&6
3611     :     
3612  else
3613     echo "$ac_t""no" 1>&6
3614     if test "$GTK_CONFIG" = "no" ; then
3615       echo "*** The gtk-config script installed by GTK could not be found"
3616       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
3617       echo "*** your path, or set the GTK_CONFIG environment variable to the"
3618       echo "*** full path to gtk-config."
3619     else
3620       if test -f conf.gtktest ; then
3621        :
3622       else
3623          echo "*** Could not run GTK test program, checking why..."
3624          CFLAGS="$CFLAGS $GTK_CFLAGS"
3625          LIBS="$LIBS $GTK_LIBS"
3626          cat > conftest.$ac_ext <<EOF
3627#line 3628 "configure"
3628#include "confdefs.h"
3629
3630#include <gtk/gtk.h>
3631#include <stdio.h>
3632
3633int main() {
3634 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
3635; return 0; }
3636EOF
3637if { (eval echo configure:3638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3638  rm -rf conftest*
3639   echo "*** The test program compiled, but did not run. This usually means"
3640          echo "*** that the run-time linker is not finding GTK or finding the wrong"
3641          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
3642          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3643          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
3644          echo "*** is required on your system"
3645          echo "***"
3646          echo "*** If you have an old version installed, it is best to remove it, although"
3647          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3648          echo "***"
3649          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
3650          echo "*** came with the system with the command"
3651          echo "***"
3652          echo "***    rpm --erase --nodeps gtk gtk-devel"
3653else
3654  echo "configure: failed program was:" >&5
3655  cat conftest.$ac_ext >&5
3656  rm -rf conftest*
3657   echo "*** The test program failed to compile or link. See the file config.log for the"
3658          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
3659          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
3660          echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
3661fi
3662rm -f conftest*
3663          CFLAGS="$ac_save_CFLAGS"
3664          LIBS="$ac_save_LIBS"
3665       fi
3666     fi
3667     GTK_CFLAGS=""
3668     GTK_LIBS=""
3669     
3670{ echo "configure: error: Please upgrade your GTK+" 1>&2; exit 1; }
3671  fi
3672 
3673 
3674  rm -f conf.gtktest
3675
3676
3677CFLAGS_save=$CFLAGS
3678LIBS_save=$LIBS
3679CFLAGS=`gnome-config --cflags gnomeui`
3680LIBS=`gnome-config --libs gnomeui`
3681
3682echo $ac_n "checking for gnome_window_icon_set_default_from_file in -lgnomeui""... $ac_c" 1>&6
3683echo "configure:3684: checking for gnome_window_icon_set_default_from_file in -lgnomeui" >&5
3684ac_lib_var=`echo gnomeui'_'gnome_window_icon_set_default_from_file | sed 'y%./+-%__p_%'`
3685if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3686  echo $ac_n "(cached) $ac_c" 1>&6
3687else
3688  ac_save_LIBS="$LIBS"
3689LIBS="-lgnomeui  $LIBS"
3690cat > conftest.$ac_ext <<EOF
3691#line 3692 "configure"
3692#include "confdefs.h"
3693/* Override any gcc2 internal prototype to avoid an error.  */
3694/* We use char because int might match the return type of a gcc2
3695    builtin and then its argument prototype would still apply.  */
3696char gnome_window_icon_set_default_from_file();
3697
3698int main() {
3699gnome_window_icon_set_default_from_file()
3700; return 0; }
3701EOF
3702if { (eval echo configure:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3703  rm -rf conftest*
3704  eval "ac_cv_lib_$ac_lib_var=yes"
3705else
3706  echo "configure: failed program was:" >&5
3707  cat conftest.$ac_ext >&5
3708  rm -rf conftest*
3709  eval "ac_cv_lib_$ac_lib_var=no"
3710fi
3711rm -f conftest*
3712LIBS="$ac_save_LIBS"
3713
3714fi
3715if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3716  echo "$ac_t""yes" 1>&6
3717    ac_tr_lib=HAVE_LIB`echo gnomeui | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3718    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3719  cat >> confdefs.h <<EOF
3720#define $ac_tr_lib 1
3721EOF
3722
3723  LIBS="-lgnomeui $LIBS"
3724
3725else
3726  echo "$ac_t""no" 1>&6
3727
3728{ echo "configure: error: gnome-libs 1.0.59 or higher is required." 1>&2; exit 1; }
3729fi
3730
3731
3732CFLAGS=$CFLAGS_save
3733LIBS=$LIBS_save
3734
3735
3736
3737if test "x" = "y"; then
3738  FALSE_TRUE=
3739  FALSE_FALSE='#'
3740else
3741  FALSE_TRUE='#'
3742  FALSE_FALSE=
3743fi
3744
3745ALL_LINGUAS="az bg_BG.cp1251 ca cs da de el en_GB es et eu fi fr ga gl hu it ja ko lt nl nn no pl pt pt_BR ro ru sk sl sp sr sv ta tr uk wa zh_TW.Big5 zh_CN.GB2312"
3746echo $ac_n "checking for working const""... $ac_c" 1>&6
3747echo "configure:3748: checking for working const" >&5
3748if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3749  echo $ac_n "(cached) $ac_c" 1>&6
3750else
3751  cat > conftest.$ac_ext <<EOF
3752#line 3753 "configure"
3753#include "confdefs.h"
3754
3755int main() {
3756
3757/* Ultrix mips cc rejects this.  */
3758typedef int charset[2]; const charset x;
3759/* SunOS 4.1.1 cc rejects this.  */
3760char const *const *ccp;
3761char **p;
3762/* NEC SVR4.0.2 mips cc rejects this.  */
3763struct point {int x, y;};
3764static struct point const zero = {0,0};
3765/* AIX XL C 1.02.0.0 rejects this.
3766   It does not let you subtract one const X* pointer from another in an arm
3767   of an if-expression whose if-part is not a constant expression */
3768const char *g = "string";
3769ccp = &g + (g ? g-g : 0);
3770/* HPUX 7.0 cc rejects these. */
3771++ccp;
3772p = (char**) ccp;
3773ccp = (char const *const *) p;
3774{ /* SCO 3.2v4 cc rejects this.  */
3775  char *t;
3776  char const *s = 0 ? (char *) 0 : (char const *) 0;
3777
3778  *t++ = 0;
3779}
3780{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3781  int x[] = {25, 17};
3782  const int *foo = &x[0];
3783  ++foo;
3784}
3785{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3786  typedef const int *iptr;
3787  iptr p = 0;
3788  ++p;
3789}
3790{ /* AIX XL C 1.02.0.0 rejects this saying
3791     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3792  struct s { int j; const int *ap[3]; };
3793  struct s *b; b->j = 5;
3794}
3795{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3796  const int foo = 10;
3797}
3798
3799; return 0; }
3800EOF
3801if { (eval echo configure:3802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3802  rm -rf conftest*
3803  ac_cv_c_const=yes
3804else
3805  echo "configure: failed program was:" >&5
3806  cat conftest.$ac_ext >&5
3807  rm -rf conftest*
3808  ac_cv_c_const=no
3809fi
3810rm -f conftest*
3811fi
3812
3813echo "$ac_t""$ac_cv_c_const" 1>&6
3814if test $ac_cv_c_const = no; then
3815  cat >> confdefs.h <<\EOF
3816#define const
3817EOF
3818
3819fi
3820
3821echo $ac_n "checking for inline""... $ac_c" 1>&6
3822echo "configure:3823: checking for inline" >&5
3823if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3824  echo $ac_n "(cached) $ac_c" 1>&6
3825else
3826  ac_cv_c_inline=no
3827for ac_kw in inline __inline__ __inline; do
3828  cat > conftest.$ac_ext <<EOF
3829#line 3830 "configure"
3830#include "confdefs.h"
3831
3832int main() {
3833} $ac_kw foo() {
3834; return 0; }
3835EOF
3836if { (eval echo configure:3837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3837  rm -rf conftest*
3838  ac_cv_c_inline=$ac_kw; break
3839else
3840  echo "configure: failed program was:" >&5
3841  cat conftest.$ac_ext >&5
3842fi
3843rm -f conftest*
3844done
3845
3846fi
3847
3848echo "$ac_t""$ac_cv_c_inline" 1>&6
3849case "$ac_cv_c_inline" in
3850  inline | yes) ;;
3851  no) cat >> confdefs.h <<\EOF
3852#define inline
3853EOF
3854 ;;
3855  *)  cat >> confdefs.h <<EOF
3856#define inline $ac_cv_c_inline
3857EOF
3858 ;;
3859esac
3860
3861echo $ac_n "checking for off_t""... $ac_c" 1>&6
3862echo "configure:3863: checking for off_t" >&5
3863if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3864  echo $ac_n "(cached) $ac_c" 1>&6
3865else
3866  cat > conftest.$ac_ext <<EOF
3867#line 3868 "configure"
3868#include "confdefs.h"
3869#include <sys/types.h>
3870#if STDC_HEADERS
3871#include <stdlib.h>
3872#include <stddef.h>
3873#endif
3874EOF
3875if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3876  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3877  rm -rf conftest*
3878  ac_cv_type_off_t=yes
3879else
3880  rm -rf conftest*
3881  ac_cv_type_off_t=no
3882fi
3883rm -f conftest*
3884
3885fi
3886echo "$ac_t""$ac_cv_type_off_t" 1>&6
3887if test $ac_cv_type_off_t = no; then
3888  cat >> confdefs.h <<\EOF
3889#define off_t long
3890EOF
3891
3892fi
3893
3894echo $ac_n "checking for size_t""... $ac_c" 1>&6
3895echo "configure:3896: checking for size_t" >&5
3896if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3897  echo $ac_n "(cached) $ac_c" 1>&6
3898else
3899  cat > conftest.$ac_ext <<EOF
3900#line 3901 "configure"
3901#include "confdefs.h"
3902#include <sys/types.h>
3903#if STDC_HEADERS
3904#include <stdlib.h>
3905#include <stddef.h>
3906#endif
3907EOF
3908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3910  rm -rf conftest*
3911  ac_cv_type_size_t=yes
3912else
3913  rm -rf conftest*
3914  ac_cv_type_size_t=no
3915fi
3916rm -f conftest*
3917
3918fi
3919echo "$ac_t""$ac_cv_type_size_t" 1>&6
3920if test $ac_cv_type_size_t = no; then
3921  cat >> confdefs.h <<\EOF
3922#define size_t unsigned
3923EOF
3924
3925fi
3926
3927# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3928# for constant arguments.  Useless!
3929echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3930echo "configure:3931: checking for working alloca.h" >&5
3931if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3932  echo $ac_n "(cached) $ac_c" 1>&6
3933else
3934  cat > conftest.$ac_ext <<EOF
3935#line 3936 "configure"
3936#include "confdefs.h"
3937#include <alloca.h>
3938int main() {
3939char *p = alloca(2 * sizeof(int));
3940; return 0; }
3941EOF
3942if { (eval echo configure:3943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3943  rm -rf conftest*
3944  ac_cv_header_alloca_h=yes
3945else
3946  echo "configure: failed program was:" >&5
3947  cat conftest.$ac_ext >&5
3948  rm -rf conftest*
3949  ac_cv_header_alloca_h=no
3950fi
3951rm -f conftest*
3952fi
3953
3954echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3955if test $ac_cv_header_alloca_h = yes; then
3956  cat >> confdefs.h <<\EOF
3957#define HAVE_ALLOCA_H 1
3958EOF
3959
3960fi
3961
3962echo $ac_n "checking for alloca""... $ac_c" 1>&6
3963echo "configure:3964: checking for alloca" >&5
3964if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3965  echo $ac_n "(cached) $ac_c" 1>&6
3966else
3967  cat > conftest.$ac_ext <<EOF
3968#line 3969 "configure"
3969#include "confdefs.h"
3970
3971#ifdef __GNUC__
3972# define alloca __builtin_alloca
3973#else
3974# ifdef _MSC_VER
3975#  include <malloc.h>
3976#  define alloca _alloca
3977# else
3978#  if HAVE_ALLOCA_H
3979#   include <alloca.h>
3980#  else
3981#   ifdef _AIX
3982 #pragma alloca
3983#   else
3984#    ifndef alloca /* predefined by HP cc +Olibcalls */
3985char *alloca ();
3986#    endif
3987#   endif
3988#  endif
3989# endif
3990#endif
3991
3992int main() {
3993char *p = (char *) alloca(1);
3994; return 0; }
3995EOF
3996if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3997  rm -rf conftest*
3998  ac_cv_func_alloca_works=yes
3999else
4000  echo "configure: failed program was:" >&5
4001  cat conftest.$ac_ext >&5
4002  rm -rf conftest*
4003  ac_cv_func_alloca_works=no
4004fi
4005rm -f conftest*
4006fi
4007
4008echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4009if test $ac_cv_func_alloca_works = yes; then
4010  cat >> confdefs.h <<\EOF
4011#define HAVE_ALLOCA 1
4012EOF
4013
4014fi
4015
4016if test $ac_cv_func_alloca_works = no; then
4017  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4018  # that cause trouble.  Some versions do not even contain alloca or
4019  # contain a buggy version.  If you still want to use their alloca,
4020  # use ar to extract alloca.o from them instead of compiling alloca.c.
4021  ALLOCA=alloca.${ac_objext}
4022  cat >> confdefs.h <<\EOF
4023#define C_ALLOCA 1
4024EOF
4025
4026
4027echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4028echo "configure:4029: checking whether alloca needs Cray hooks" >&5
4029if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4030  echo $ac_n "(cached) $ac_c" 1>&6
4031else
4032  cat > conftest.$ac_ext <<EOF
4033#line 4034 "configure"
4034#include "confdefs.h"
4035#if defined(CRAY) && ! defined(CRAY2)
4036webecray
4037#else
4038wenotbecray
4039#endif
4040
4041EOF
4042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4043  egrep "webecray" >/dev/null 2>&1; then
4044  rm -rf conftest*
4045  ac_cv_os_cray=yes
4046else
4047  rm -rf conftest*
4048  ac_cv_os_cray=no
4049fi
4050rm -f conftest*
4051
4052fi
4053
4054echo "$ac_t""$ac_cv_os_cray" 1>&6
4055if test $ac_cv_os_cray = yes; then
4056for ac_func in _getb67 GETB67 getb67; do
4057  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4058echo "configure:4059: checking for $ac_func" >&5
4059if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4060  echo $ac_n "(cached) $ac_c" 1>&6
4061else
4062  cat > conftest.$ac_ext <<EOF
4063#line 4064 "configure"
4064#include "confdefs.h"
4065/* System header to define __stub macros and hopefully few prototypes,
4066    which can conflict with char $ac_func(); below.  */
4067#include <assert.h>
4068/* Override any gcc2 internal prototype to avoid an error.  */
4069/* We use char because int might match the return type of a gcc2
4070    builtin and then its argument prototype would still apply.  */
4071char $ac_func();
4072
4073int main() {
4074
4075/* The GNU C library defines this for functions which it implements
4076    to always fail with ENOSYS.  Some functions are actually named
4077    something starting with __ and the normal name is an alias.  */
4078#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4079choke me
4080#else
4081$ac_func();
4082#endif
4083
4084; return 0; }
4085EOF
4086if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4087  rm -rf conftest*
4088  eval "ac_cv_func_$ac_func=yes"
4089else
4090  echo "configure: failed program was:" >&5
4091  cat conftest.$ac_ext >&5
4092  rm -rf conftest*
4093  eval "ac_cv_func_$ac_func=no"
4094fi
4095rm -f conftest*
4096fi
4097
4098if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4099  echo "$ac_t""yes" 1>&6
4100  cat >> confdefs.h <<EOF
4101#define CRAY_STACKSEG_END $ac_func
4102EOF
4103
4104  break
4105else
4106  echo "$ac_t""no" 1>&6
4107fi
4108
4109done
4110fi
4111
4112echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4113echo "configure:4114: checking stack direction for C alloca" >&5
4114if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4115  echo $ac_n "(cached) $ac_c" 1>&6
4116else
4117  if test "$cross_compiling" = yes; then
4118  ac_cv_c_stack_direction=0
4119else
4120  cat > conftest.$ac_ext <<EOF
4121#line 4122 "configure"
4122#include "confdefs.h"
4123find_stack_direction ()
4124{
4125  static char *addr = 0;
4126  auto char dummy;
4127  if (addr == 0)
4128    {
4129      addr = &dummy;
4130      return find_stack_direction ();
4131    }
4132  else
4133    return (&dummy > addr) ? 1 : -1;
4134}
4135main ()
4136{
4137  exit (find_stack_direction() < 0);
4138}
4139EOF
4140if { (eval echo configure:4141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4141then
4142  ac_cv_c_stack_direction=1
4143else
4144  echo "configure: failed program was:" >&5
4145  cat conftest.$ac_ext >&5
4146  rm -fr conftest*
4147  ac_cv_c_stack_direction=-1
4148fi
4149rm -fr conftest*
4150fi
4151
4152fi
4153
4154echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4155cat >> confdefs.h <<EOF
4156#define STACK_DIRECTION $ac_cv_c_stack_direction
4157EOF
4158
4159fi
4160
4161for ac_hdr in unistd.h
4162do
4163ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4164echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4165echo "configure:4166: checking for $ac_hdr" >&5
4166if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4167  echo $ac_n "(cached) $ac_c" 1>&6
4168else
4169  cat > conftest.$ac_ext <<EOF
4170#line 4171 "configure"
4171#include "confdefs.h"
4172#include <$ac_hdr>
4173EOF
4174ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4175{ (eval echo configure:4176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4176ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4177if test -z "$ac_err"; then
4178  rm -rf conftest*
4179  eval "ac_cv_header_$ac_safe=yes"
4180else
4181  echo "$ac_err" >&5
4182  echo "configure: failed program was:" >&5
4183  cat conftest.$ac_ext >&5
4184  rm -rf conftest*
4185  eval "ac_cv_header_$ac_safe=no"
4186fi
4187rm -f conftest*
4188fi
4189if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4190  echo "$ac_t""yes" 1>&6
4191    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4192  cat >> confdefs.h <<EOF
4193#define $ac_tr_hdr 1
4194EOF
4195 
4196else
4197  echo "$ac_t""no" 1>&6
4198fi
4199done
4200
4201for ac_func in getpagesize
4202do
4203echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4204echo "configure:4205: checking for $ac_func" >&5
4205if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4206  echo $ac_n "(cached) $ac_c" 1>&6
4207else
4208  cat > conftest.$ac_ext <<EOF
4209#line 4210 "configure"
4210#include "confdefs.h"
4211/* System header to define __stub macros and hopefully few prototypes,
4212    which can conflict with char $ac_func(); below.  */
4213#include <assert.h>
4214/* Override any gcc2 internal prototype to avoid an error.  */
4215/* We use char because int might match the return type of a gcc2
4216    builtin and then its argument prototype would still apply.  */
4217char $ac_func();
4218
4219int main() {
4220
4221/* The GNU C library defines this for functions which it implements
4222    to always fail with ENOSYS.  Some functions are actually named
4223    something starting with __ and the normal name is an alias.  */
4224#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4225choke me
4226#else
4227$ac_func();
4228#endif
4229
4230; return 0; }
4231EOF
4232if { (eval echo configure:4233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4233  rm -rf conftest*
4234  eval "ac_cv_func_$ac_func=yes"
4235else
4236  echo "configure: failed program was:" >&5
4237  cat conftest.$ac_ext >&5
4238  rm -rf conftest*
4239  eval "ac_cv_func_$ac_func=no"
4240fi
4241rm -f conftest*
4242fi
4243
4244if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4245  echo "$ac_t""yes" 1>&6
4246    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4247  cat >> confdefs.h <<EOF
4248#define $ac_tr_func 1
4249EOF
4250 
4251else
4252  echo "$ac_t""no" 1>&6
4253fi
4254done
4255
4256echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4257echo "configure:4258: checking for working mmap" >&5
4258if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4259  echo $ac_n "(cached) $ac_c" 1>&6
4260else
4261  if test "$cross_compiling" = yes; then
4262  ac_cv_func_mmap_fixed_mapped=no
4263else
4264  cat > conftest.$ac_ext <<EOF
4265#line 4266 "configure"
4266#include "confdefs.h"
4267
4268/* Thanks to Mike Haertel and Jim Avera for this test.
4269   Here is a matrix of mmap possibilities:
4270        mmap private not fixed
4271        mmap private fixed at somewhere currently unmapped
4272        mmap private fixed at somewhere already mapped
4273        mmap shared not fixed
4274        mmap shared fixed at somewhere currently unmapped
4275        mmap shared fixed at somewhere already mapped
4276   For private mappings, we should verify that changes cannot be read()
4277   back from the file, nor mmap's back from the file at a different
4278   address.  (There have been systems where private was not correctly
4279   implemented like the infamous i386 svr4.0, and systems where the
4280   VM page cache was not coherent with the filesystem buffer cache
4281   like early versions of FreeBSD and possibly contemporary NetBSD.)
4282   For shared mappings, we should conversely verify that changes get
4283   propogated back to all the places they're supposed to be.
4284
4285   Grep wants private fixed already mapped.
4286   The main things grep needs to know about mmap are:
4287   * does it exist and is it safe to write into the mmap'd area
4288   * how to use it (BSD variants)  */
4289#include <sys/types.h>
4290#include <fcntl.h>
4291#include <sys/mman.h>
4292
4293/* This mess was copied from the GNU getpagesize.h.  */
4294#ifndef HAVE_GETPAGESIZE
4295# ifdef HAVE_UNISTD_H
4296#  include <unistd.h>
4297# endif
4298
4299/* Assume that all systems that can run configure have sys/param.h.  */
4300# ifndef HAVE_SYS_PARAM_H
4301#  define HAVE_SYS_PARAM_H 1
4302# endif
4303
4304# ifdef _SC_PAGESIZE
4305#  define getpagesize() sysconf(_SC_PAGESIZE)
4306# else /* no _SC_PAGESIZE */
4307#  ifdef HAVE_SYS_PARAM_H
4308#   include <sys/param.h>
4309#   ifdef EXEC_PAGESIZE
4310#    define getpagesize() EXEC_PAGESIZE
4311#   else /* no EXEC_PAGESIZE */
4312#    ifdef NBPG
4313#     define getpagesize() NBPG * CLSIZE
4314#     ifndef CLSIZE
4315#      define CLSIZE 1
4316#     endif /* no CLSIZE */
4317#    else /* no NBPG */
4318#     ifdef NBPC
4319#      define getpagesize() NBPC
4320#     else /* no NBPC */
4321#      ifdef PAGESIZE
4322#       define getpagesize() PAGESIZE
4323#      endif /* PAGESIZE */
4324#     endif /* no NBPC */
4325#    endif /* no NBPG */
4326#   endif /* no EXEC_PAGESIZE */
4327#  else /* no HAVE_SYS_PARAM_H */
4328#   define getpagesize() 8192   /* punt totally */
4329#  endif /* no HAVE_SYS_PARAM_H */
4330# endif /* no _SC_PAGESIZE */
4331
4332#endif /* no HAVE_GETPAGESIZE */
4333
4334#ifdef __cplusplus
4335extern "C" { void *malloc(unsigned); }
4336#else
4337char *malloc();
4338#endif
4339
4340int
4341main()
4342{
4343        char *data, *data2, *data3;
4344        int i, pagesize;
4345        int fd;
4346
4347        pagesize = getpagesize();
4348
4349        /*
4350         * First, make a file with some known garbage in it.
4351         */
4352        data = malloc(pagesize);
4353        if (!data)
4354                exit(1);
4355        for (i = 0; i < pagesize; ++i)
4356                *(data + i) = rand();
4357        umask(0);
4358        fd = creat("conftestmmap", 0600);
4359        if (fd < 0)
4360                exit(1);
4361        if (write(fd, data, pagesize) != pagesize)
4362                exit(1);
4363        close(fd);
4364
4365        /*
4366         * Next, try to mmap the file at a fixed address which
4367         * already has something else allocated at it.  If we can,
4368         * also make sure that we see the same garbage.
4369         */
4370        fd = open("conftestmmap", O_RDWR);
4371        if (fd < 0)
4372                exit(1);
4373        data2 = malloc(2 * pagesize);
4374        if (!data2)
4375                exit(1);
4376        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4377        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4378            MAP_PRIVATE | MAP_FIXED, fd, 0L))
4379                exit(1);
4380        for (i = 0; i < pagesize; ++i)
4381                if (*(data + i) != *(data2 + i))
4382                        exit(1);
4383
4384        /*
4385         * Finally, make sure that changes to the mapped area
4386         * do not percolate back to the file as seen by read().
4387         * (This is a bug on some variants of i386 svr4.0.)
4388         */
4389        for (i = 0; i < pagesize; ++i)
4390                *(data2 + i) = *(data2 + i) + 1;
4391        data3 = malloc(pagesize);
4392        if (!data3)
4393                exit(1);
4394        if (read(fd, data3, pagesize) != pagesize)
4395                exit(1);
4396        for (i = 0; i < pagesize; ++i)
4397                if (*(data + i) != *(data3 + i))
4398                        exit(1);
4399        close(fd);
4400        unlink("conftestmmap");
4401        exit(0);
4402}
4403
4404EOF
4405if { (eval echo configure:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4406then
4407  ac_cv_func_mmap_fixed_mapped=yes
4408else
4409  echo "configure: failed program was:" >&5
4410  cat conftest.$ac_ext >&5
4411  rm -fr conftest*
4412  ac_cv_func_mmap_fixed_mapped=no
4413fi
4414rm -fr conftest*
4415fi
4416
4417fi
4418
4419echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4420if test $ac_cv_func_mmap_fixed_mapped = yes; then
4421  cat >> confdefs.h <<\EOF
4422#define HAVE_MMAP 1
4423EOF
4424
4425fi
4426
4427                             
4428   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4429unistd.h sys/param.h
4430do
4431ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4432echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4433echo "configure:4434: checking for $ac_hdr" >&5
4434if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4435  echo $ac_n "(cached) $ac_c" 1>&6
4436else
4437  cat > conftest.$ac_ext <<EOF
4438#line 4439 "configure"
4439#include "confdefs.h"
4440#include <$ac_hdr>
4441EOF
4442ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4443{ (eval echo configure:4444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4444ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4445if test -z "$ac_err"; then
4446  rm -rf conftest*
4447  eval "ac_cv_header_$ac_safe=yes"
4448else
4449  echo "$ac_err" >&5
4450  echo "configure: failed program was:" >&5
4451  cat conftest.$ac_ext >&5
4452  rm -rf conftest*
4453  eval "ac_cv_header_$ac_safe=no"
4454fi
4455rm -f conftest*
4456fi
4457if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4458  echo "$ac_t""yes" 1>&6
4459    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4460  cat >> confdefs.h <<EOF
4461#define $ac_tr_hdr 1
4462EOF
4463 
4464else
4465  echo "$ac_t""no" 1>&6
4466fi
4467done
4468
4469   for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4470strdup __argz_count __argz_stringify __argz_next
4471do
4472echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4473echo "configure:4474: checking for $ac_func" >&5
4474if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4475  echo $ac_n "(cached) $ac_c" 1>&6
4476else
4477  cat > conftest.$ac_ext <<EOF
4478#line 4479 "configure"
4479#include "confdefs.h"
4480/* System header to define __stub macros and hopefully few prototypes,
4481    which can conflict with char $ac_func(); below.  */
4482#include <assert.h>
4483/* Override any gcc2 internal prototype to avoid an error.  */
4484/* We use char because int might match the return type of a gcc2
4485    builtin and then its argument prototype would still apply.  */
4486char $ac_func();
4487
4488int main() {
4489
4490/* The GNU C library defines this for functions which it implements
4491    to always fail with ENOSYS.  Some functions are actually named
4492    something starting with __ and the normal name is an alias.  */
4493#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4494choke me
4495#else
4496$ac_func();
4497#endif
4498
4499; return 0; }
4500EOF
4501if { (eval echo configure:4502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4502  rm -rf conftest*
4503  eval "ac_cv_func_$ac_func=yes"
4504else
4505  echo "configure: failed program was:" >&5
4506  cat conftest.$ac_ext >&5
4507  rm -rf conftest*
4508  eval "ac_cv_func_$ac_func=no"
4509fi
4510rm -f conftest*
4511fi
4512
4513if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4514  echo "$ac_t""yes" 1>&6
4515    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4516  cat >> confdefs.h <<EOF
4517#define $ac_tr_func 1
4518EOF
4519 
4520else
4521  echo "$ac_t""no" 1>&6
4522fi
4523done
4524
4525
4526   if test "${ac_cv_func_stpcpy+set}" != "set"; then
4527     for ac_func in stpcpy
4528do
4529echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4530echo "configure:4531: checking for $ac_func" >&5
4531if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4532  echo $ac_n "(cached) $ac_c" 1>&6
4533else
4534  cat > conftest.$ac_ext <<EOF
4535#line 4536 "configure"
4536#include "confdefs.h"
4537/* System header to define __stub macros and hopefully few prototypes,
4538    which can conflict with char $ac_func(); below.  */
4539#include <assert.h>
4540/* Override any gcc2 internal prototype to avoid an error.  */
4541/* We use char because int might match the return type of a gcc2
4542    builtin and then its argument prototype would still apply.  */
4543char $ac_func();
4544
4545int main() {
4546
4547/* The GNU C library defines this for functions which it implements
4548    to always fail with ENOSYS.  Some functions are actually named
4549    something starting with __ and the normal name is an alias.  */
4550#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4551choke me
4552#else
4553$ac_func();
4554#endif
4555
4556; return 0; }
4557EOF
4558if { (eval echo configure:4559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4559  rm -rf conftest*
4560  eval "ac_cv_func_$ac_func=yes"
4561else
4562  echo "configure: failed program was:" >&5
4563  cat conftest.$ac_ext >&5
4564  rm -rf conftest*
4565  eval "ac_cv_func_$ac_func=no"
4566fi
4567rm -f conftest*
4568fi
4569
4570if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4571  echo "$ac_t""yes" 1>&6
4572    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4573  cat >> confdefs.h <<EOF
4574#define $ac_tr_func 1
4575EOF
4576 
4577else
4578  echo "$ac_t""no" 1>&6
4579fi
4580done
4581
4582   fi
4583   if test "${ac_cv_func_stpcpy}" = "yes"; then
4584     cat >> confdefs.h <<\EOF
4585#define HAVE_STPCPY 1
4586EOF
4587
4588   fi
4589
4590   if test $ac_cv_header_locale_h = yes; then
4591    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4592echo "configure:4593: checking for LC_MESSAGES" >&5
4593if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4594  echo $ac_n "(cached) $ac_c" 1>&6
4595else
4596  cat > conftest.$ac_ext <<EOF
4597#line 4598 "configure"
4598#include "confdefs.h"
4599#include <locale.h>
4600int main() {
4601return LC_MESSAGES
4602; return 0; }
4603EOF
4604if { (eval echo configure:4605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4605  rm -rf conftest*
4606  am_cv_val_LC_MESSAGES=yes
4607else
4608  echo "configure: failed program was:" >&5
4609  cat conftest.$ac_ext >&5
4610  rm -rf conftest*
4611  am_cv_val_LC_MESSAGES=no
4612fi
4613rm -f conftest*
4614fi
4615
4616echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4617    if test $am_cv_val_LC_MESSAGES = yes; then
4618      cat >> confdefs.h <<\EOF
4619#define HAVE_LC_MESSAGES 1
4620EOF
4621
4622    fi
4623  fi
4624   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
4625echo "configure:4626: checking whether NLS is requested" >&5
4626        # Check whether --enable-nls or --disable-nls was given.
4627if test "${enable_nls+set}" = set; then
4628  enableval="$enable_nls"
4629  USE_NLS=$enableval
4630else
4631  USE_NLS=yes
4632fi
4633
4634    echo "$ac_t""$USE_NLS" 1>&6
4635   
4636
4637    USE_INCLUDED_LIBINTL=no
4638
4639        if test "$USE_NLS" = "yes"; then
4640#      AC_DEFINE(ENABLE_NLS)
4641#      AC_MSG_CHECKING([whether included gettext is requested])
4642#      AC_ARG_WITH(included-gettext,
4643#        [  --with-included-gettext use the GNU gettext library included here],
4644#        nls_cv_force_use_gnu_gettext=$withval,
4645#        nls_cv_force_use_gnu_gettext=no)
4646#      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
4647      nls_cv_force_use_gnu_gettext="no"
4648
4649      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4650      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4651                                        nls_cv_header_intl=
4652        nls_cv_header_libgt=
4653        CATOBJEXT=NONE
4654
4655        ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4656echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4657echo "configure:4658: checking for libintl.h" >&5
4658if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4659  echo $ac_n "(cached) $ac_c" 1>&6
4660else
4661  cat > conftest.$ac_ext <<EOF
4662#line 4663 "configure"
4663#include "confdefs.h"
4664#include <libintl.h>
4665EOF
4666ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4667{ (eval echo configure:4668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4668ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4669if test -z "$ac_err"; then
4670  rm -rf conftest*
4671  eval "ac_cv_header_$ac_safe=yes"
4672else
4673  echo "$ac_err" >&5
4674  echo "configure: failed program was:" >&5
4675  cat conftest.$ac_ext >&5
4676  rm -rf conftest*
4677  eval "ac_cv_header_$ac_safe=no"
4678fi
4679rm -f conftest*
4680fi
4681if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4682  echo "$ac_t""yes" 1>&6
4683  echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
4684echo "configure:4685: checking for gettext in libc" >&5
4685if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
4686  echo $ac_n "(cached) $ac_c" 1>&6
4687else
4688  cat > conftest.$ac_ext <<EOF
4689#line 4690 "configure"
4690#include "confdefs.h"
4691#include <libintl.h>
4692int main() {
4693return (int) gettext ("")
4694; return 0; }
4695EOF
4696if { (eval echo configure:4697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4697  rm -rf conftest*
4698  gt_cv_func_gettext_libc=yes
4699else
4700  echo "configure: failed program was:" >&5
4701  cat conftest.$ac_ext >&5
4702  rm -rf conftest*
4703  gt_cv_func_gettext_libc=no
4704fi
4705rm -f conftest*
4706fi
4707
4708echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
4709
4710           if test "$gt_cv_func_gettext_libc" != "yes"; then
4711             echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
4712echo "configure:4713: checking for bindtextdomain in -lintl" >&5
4713ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
4714if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4715  echo $ac_n "(cached) $ac_c" 1>&6
4716else
4717  ac_save_LIBS="$LIBS"
4718LIBS="-lintl  $LIBS"
4719cat > conftest.$ac_ext <<EOF
4720#line 4721 "configure"
4721#include "confdefs.h"
4722/* Override any gcc2 internal prototype to avoid an error.  */
4723/* We use char because int might match the return type of a gcc2
4724    builtin and then its argument prototype would still apply.  */
4725char bindtextdomain();
4726
4727int main() {
4728bindtextdomain()
4729; return 0; }
4730EOF
4731if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4732  rm -rf conftest*
4733  eval "ac_cv_lib_$ac_lib_var=yes"
4734else
4735  echo "configure: failed program was:" >&5
4736  cat conftest.$ac_ext >&5
4737  rm -rf conftest*
4738  eval "ac_cv_lib_$ac_lib_var=no"
4739fi
4740rm -f conftest*
4741LIBS="$ac_save_LIBS"
4742
4743fi
4744if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4745  echo "$ac_t""yes" 1>&6
4746  echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4747echo "configure:4748: checking for gettext in libintl" >&5
4748if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4749  echo $ac_n "(cached) $ac_c" 1>&6
4750else
4751  echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
4752echo "configure:4753: checking for gettext in -lintl" >&5
4753ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
4754if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4755  echo $ac_n "(cached) $ac_c" 1>&6
4756else
4757  ac_save_LIBS="$LIBS"
4758LIBS="-lintl  $LIBS"
4759cat > conftest.$ac_ext <<EOF
4760#line 4761 "configure"
4761#include "confdefs.h"
4762/* Override any gcc2 internal prototype to avoid an error.  */
4763/* We use char because int might match the return type of a gcc2
4764    builtin and then its argument prototype would still apply.  */
4765char gettext();
4766
4767int main() {
4768gettext()
4769; return 0; }
4770EOF
4771if { (eval echo configure:4772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4772  rm -rf conftest*
4773  eval "ac_cv_lib_$ac_lib_var=yes"
4774else
4775  echo "configure: failed program was:" >&5
4776  cat conftest.$ac_ext >&5
4777  rm -rf conftest*
4778  eval "ac_cv_lib_$ac_lib_var=no"
4779fi
4780rm -f conftest*
4781LIBS="$ac_save_LIBS"
4782
4783fi
4784if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4785  echo "$ac_t""yes" 1>&6
4786  gt_cv_func_gettext_libintl=yes
4787else
4788  echo "$ac_t""no" 1>&6
4789gt_cv_func_gettext_libintl=no
4790fi
4791
4792fi
4793
4794echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4795else
4796  echo "$ac_t""no" 1>&6
4797fi
4798
4799           fi
4800
4801           if test "$gt_cv_func_gettext_libc" = "yes" \
4802              || test "$gt_cv_func_gettext_libintl" = "yes"; then
4803              cat >> confdefs.h <<\EOF
4804#define HAVE_GETTEXT 1
4805EOF
4806
4807              # Extract the first word of "msgfmt", so it can be a program name with args.
4808set dummy msgfmt; ac_word=$2
4809echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4810echo "configure:4811: checking for $ac_word" >&5
4811if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4812  echo $ac_n "(cached) $ac_c" 1>&6
4813else
4814  case "$MSGFMT" in
4815  /*)
4816  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4817  ;;
4818  *)
4819  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4820  for ac_dir in $PATH; do
4821    test -z "$ac_dir" && ac_dir=.
4822    if test -f $ac_dir/$ac_word; then
4823      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4824        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4825        break
4826      fi
4827    fi
4828  done
4829  IFS="$ac_save_ifs"
4830  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
4831  ;;
4832esac
4833fi
4834MSGFMT="$ac_cv_path_MSGFMT"
4835if test -n "$MSGFMT"; then
4836  echo "$ac_t""$MSGFMT" 1>&6
4837else
4838  echo "$ac_t""no" 1>&6
4839fi
4840              if test "$MSGFMT" != "no"; then
4841                for ac_func in dcgettext
4842do
4843echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4844echo "configure:4845: checking for $ac_func" >&5
4845if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4846  echo $ac_n "(cached) $ac_c" 1>&6
4847else
4848  cat > conftest.$ac_ext <<EOF
4849#line 4850 "configure"
4850#include "confdefs.h"
4851/* System header to define __stub macros and hopefully few prototypes,
4852    which can conflict with char $ac_func(); below.  */
4853#include <assert.h>
4854/* Override any gcc2 internal prototype to avoid an error.  */
4855/* We use char because int might match the return type of a gcc2
4856    builtin and then its argument prototype would still apply.  */
4857char $ac_func();
4858
4859int main() {
4860
4861/* The GNU C library defines this for functions which it implements
4862    to always fail with ENOSYS.  Some functions are actually named
4863    something starting with __ and the normal name is an alias.  */
4864#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4865choke me
4866#else
4867$ac_func();
4868#endif
4869
4870; return 0; }
4871EOF
4872if { (eval echo configure:4873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4873  rm -rf conftest*
4874  eval "ac_cv_func_$ac_func=yes"
4875else
4876  echo "configure: failed program was:" >&5
4877  cat conftest.$ac_ext >&5
4878  rm -rf conftest*
4879  eval "ac_cv_func_$ac_func=no"
4880fi
4881rm -f conftest*
4882fi
4883
4884if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4885  echo "$ac_t""yes" 1>&6
4886    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4887  cat >> confdefs.h <<EOF
4888#define $ac_tr_func 1
4889EOF
4890 
4891else
4892  echo "$ac_t""no" 1>&6
4893fi
4894done
4895
4896                # Extract the first word of "gmsgfmt", so it can be a program name with args.
4897set dummy gmsgfmt; ac_word=$2
4898echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4899echo "configure:4900: checking for $ac_word" >&5
4900if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4901  echo $ac_n "(cached) $ac_c" 1>&6
4902else
4903  case "$GMSGFMT" in
4904  /*)
4905  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4906  ;;
4907  ?:/*)                 
4908  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4909  ;;
4910  *)
4911  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4912  ac_dummy="$PATH"
4913  for ac_dir in $ac_dummy; do
4914    test -z "$ac_dir" && ac_dir=.
4915    if test -f $ac_dir/$ac_word; then
4916      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4917      break
4918    fi
4919  done
4920  IFS="$ac_save_ifs"
4921  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4922  ;;
4923esac
4924fi
4925GMSGFMT="$ac_cv_path_GMSGFMT"
4926if test -n "$GMSGFMT"; then
4927  echo "$ac_t""$GMSGFMT" 1>&6
4928else
4929  echo "$ac_t""no" 1>&6
4930fi
4931
4932                # Extract the first word of "xgettext", so it can be a program name with args.
4933set dummy xgettext; ac_word=$2
4934echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4935echo "configure:4936: checking for $ac_word" >&5
4936if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4937  echo $ac_n "(cached) $ac_c" 1>&6
4938else
4939  case "$XGETTEXT" in
4940  /*)
4941  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4942  ;;
4943  *)
4944  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4945  for ac_dir in $PATH; do
4946    test -z "$ac_dir" && ac_dir=.
4947    if test -f $ac_dir/$ac_word; then
4948      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4949        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4950        break
4951      fi
4952    fi
4953  done
4954  IFS="$ac_save_ifs"
4955  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4956  ;;
4957esac
4958fi
4959XGETTEXT="$ac_cv_path_XGETTEXT"
4960if test -n "$XGETTEXT"; then
4961  echo "$ac_t""$XGETTEXT" 1>&6
4962else
4963  echo "$ac_t""no" 1>&6
4964fi
4965
4966                cat > conftest.$ac_ext <<EOF
4967#line 4968 "configure"
4968#include "confdefs.h"
4969
4970int main() {
4971extern int _nl_msg_cat_cntr;
4972                               return _nl_msg_cat_cntr
4973; return 0; }
4974EOF
4975if { (eval echo configure:4976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4976  rm -rf conftest*
4977  CATOBJEXT=.gmo
4978                   DATADIRNAME=share
4979else
4980  echo "configure: failed program was:" >&5
4981  cat conftest.$ac_ext >&5
4982  rm -rf conftest*
4983  CATOBJEXT=.mo
4984                   DATADIRNAME=lib
4985fi
4986rm -f conftest*
4987                INSTOBJEXT=.mo
4988              fi
4989            fi
4990
4991            # Added by Martin Baulig 12/15/98 for libc5 systems
4992            if test "$gt_cv_func_gettext_libc" != "yes" \
4993               && test "$gt_cv_func_gettext_libintl" = "yes"; then
4994               INTLLIBS=-lintl
4995               LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4996            fi
4997       
4998else
4999  echo "$ac_t""no" 1>&6
5000fi
5001
5002
5003        if test "$CATOBJEXT" = "NONE"; then
5004          echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
5005echo "configure:5006: checking whether catgets can be used" >&5
5006          # Check whether --with-catgets or --without-catgets was given.
5007if test "${with_catgets+set}" = set; then
5008  withval="$with_catgets"
5009  nls_cv_use_catgets=$withval
5010else
5011  nls_cv_use_catgets=no
5012fi
5013
5014          echo "$ac_t""$nls_cv_use_catgets" 1>&6
5015
5016          if test "$nls_cv_use_catgets" = "yes"; then
5017                    echo $ac_n "checking for main in -li""... $ac_c" 1>&6
5018echo "configure:5019: checking for main in -li" >&5
5019ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
5020if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5021  echo $ac_n "(cached) $ac_c" 1>&6
5022else
5023  ac_save_LIBS="$LIBS"
5024LIBS="-li  $LIBS"
5025cat > conftest.$ac_ext <<EOF
5026#line 5027 "configure"
5027#include "confdefs.h"
5028
5029int main() {
5030main()
5031; return 0; }
5032EOF
5033if { (eval echo configure:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5034  rm -rf conftest*
5035  eval "ac_cv_lib_$ac_lib_var=yes"
5036else
5037  echo "configure: failed program was:" >&5
5038  cat conftest.$ac_ext >&5
5039  rm -rf conftest*
5040  eval "ac_cv_lib_$ac_lib_var=no"
5041fi
5042rm -f conftest*
5043LIBS="$ac_save_LIBS"
5044
5045fi
5046if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5047  echo "$ac_t""yes" 1>&6
5048    ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5049    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5050  cat >> confdefs.h <<EOF
5051#define $ac_tr_lib 1
5052EOF
5053
5054  LIBS="-li $LIBS"
5055
5056else
5057  echo "$ac_t""no" 1>&6
5058fi
5059
5060            echo $ac_n "checking for catgets""... $ac_c" 1>&6
5061echo "configure:5062: checking for catgets" >&5
5062if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
5063  echo $ac_n "(cached) $ac_c" 1>&6
5064else
5065  cat > conftest.$ac_ext <<EOF
5066#line 5067 "configure"
5067#include "confdefs.h"
5068/* System header to define __stub macros and hopefully few prototypes,
5069    which can conflict with char catgets(); below.  */
5070#include <assert.h>
5071/* Override any gcc2 internal prototype to avoid an error.  */
5072/* We use char because int might match the return type of a gcc2
5073    builtin and then its argument prototype would still apply.  */
5074char catgets();
5075
5076int main() {
5077
5078/* The GNU C library defines this for functions which it implements
5079    to always fail with ENOSYS.  Some functions are actually named
5080    something starting with __ and the normal name is an alias.  */
5081#if defined (__stub_catgets) || defined (__stub___catgets)
5082choke me
5083#else
5084catgets();
5085#endif
5086
5087; return 0; }
5088EOF
5089if { (eval echo configure:5090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5090  rm -rf conftest*
5091  eval "ac_cv_func_catgets=yes"
5092else
5093  echo "configure: failed program was:" >&5
5094  cat conftest.$ac_ext >&5
5095  rm -rf conftest*
5096  eval "ac_cv_func_catgets=no"
5097fi
5098rm -f conftest*
5099fi
5100
5101if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
5102  echo "$ac_t""yes" 1>&6
5103  cat >> confdefs.h <<\EOF
5104#define HAVE_CATGETS 1
5105EOF
5106
5107               INTLOBJS="\$(CATOBJS)"
5108               # Extract the first word of "gencat", so it can be a program name with args.
5109set dummy gencat; ac_word=$2
5110echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5111echo "configure:5112: checking for $ac_word" >&5
5112if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
5113  echo $ac_n "(cached) $ac_c" 1>&6
5114else
5115  case "$GENCAT" in
5116  /*)
5117  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
5118  ;;
5119  ?:/*)                 
5120  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
5121  ;;
5122  *)
5123  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5124  ac_dummy="$PATH"
5125  for ac_dir in $ac_dummy; do
5126    test -z "$ac_dir" && ac_dir=.
5127    if test -f $ac_dir/$ac_word; then
5128      ac_cv_path_GENCAT="$ac_dir/$ac_word"
5129      break
5130    fi
5131  done
5132  IFS="$ac_save_ifs"
5133  test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
5134  ;;
5135esac
5136fi
5137GENCAT="$ac_cv_path_GENCAT"
5138if test -n "$GENCAT"; then
5139  echo "$ac_t""$GENCAT" 1>&6
5140else
5141  echo "$ac_t""no" 1>&6
5142fi
5143#              if test "$GENCAT" != "no"; then
5144#                AC_PATH_PROG(GMSGFMT, gmsgfmt, no)
5145#                if test "$GMSGFMT" = "no"; then
5146#                  AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt,
5147#                   [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)
5148#                fi
5149#                AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
5150#                  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
5151#                USE_INCLUDED_LIBINTL=yes
5152#                CATOBJEXT=.cat
5153#                INSTOBJEXT=.cat
5154#                DATADIRNAME=lib
5155#                INTLDEPS='$(top_builddir)/intl/libintl.a'
5156#                INTLLIBS=$INTLDEPS
5157#                LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5158#                nls_cv_header_intl=intl/libintl.h
5159#                nls_cv_header_libgt=intl/libgettext.h
5160#              fi
5161           
5162else
5163  echo "$ac_t""no" 1>&6
5164fi
5165
5166          fi
5167        fi
5168
5169        if test "$CATOBJEXT" = "NONE"; then
5170                          nls_cv_use_gnu_gettext=yes
5171        fi
5172      fi
5173
5174      if test "$nls_cv_use_gnu_gettext" != "yes"; then
5175        cat >> confdefs.h <<\EOF
5176#define ENABLE_NLS 1
5177EOF
5178
5179      else
5180         # Unset this variable since we use the non-zero value as a flag.
5181         CATOBJEXT=
5182#        dnl Mark actions used to generate GNU NLS library.
5183#        INTLOBJS="\$(GETTOBJS)"
5184#        AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
5185#         [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt)
5186#        AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
5187#        AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
5188#         [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
5189#        AC_SUBST(MSGFMT)
5190#       USE_INCLUDED_LIBINTL=yes
5191#        CATOBJEXT=.gmo
5192#        INSTOBJEXT=.mo
5193#        DATADIRNAME=share
5194#       INTLDEPS='$(top_builddir)/intl/libintl.a'
5195#       INTLLIBS=$INTLDEPS
5196#       LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5197#        nls_cv_header_intl=intl/libintl.h
5198#        nls_cv_header_libgt=intl/libgettext.h
5199      fi
5200
5201            if test "$XGETTEXT" != ":"; then
5202                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5203          : ;
5204        else
5205          echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
5206          XGETTEXT=":"
5207        fi
5208      fi
5209
5210      # We need to process the po/ directory.
5211      POSUB=po
5212    else
5213      DATADIRNAME=share
5214      nls_cv_header_intl=intl/libintl.h
5215      nls_cv_header_libgt=intl/libgettext.h
5216    fi
5217   
5218   
5219
5220
5221#    # If this is used in GNU gettext we have to set USE_NLS to `yes'
5222#    # because some of the sources are only built for this goal.
5223#    if test "$PACKAGE" = gettext; then
5224#      USE_NLS=yes
5225#      USE_INCLUDED_LIBINTL=yes
5226#    fi
5227
5228                for lang in $ALL_LINGUAS; do
5229      GMOFILES="$GMOFILES $lang.gmo"
5230      POFILES="$POFILES $lang.po"
5231    done
5232
5233       
5234   
5235   
5236   
5237   
5238   
5239   
5240   
5241   
5242   
5243   
5244 
5245
5246   if test "x$CATOBJEXT" != "x"; then
5247     if test "x$ALL_LINGUAS" = "x"; then
5248       LINGUAS=
5249     else
5250       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
5251echo "configure:5252: checking for catalogs to be installed" >&5
5252       NEW_LINGUAS=
5253       if test "x$LINGUAS" = "x"; then
5254           LINGUAS=$ALL_LINGUAS
5255       fi
5256       for lang in $LINGUAS; do
5257         case "$ALL_LINGUAS" in
5258          *\ $lang\ *|$lang\ *|*\ $lang) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5259         esac
5260       done
5261       LINGUAS=$NEW_LINGUAS
5262       echo "$ac_t""$LINGUAS" 1>&6
5263     fi
5264
5265          if test -n "$LINGUAS"; then
5266       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5267     fi
5268   fi
5269
5270            if test $ac_cv_header_locale_h = yes; then
5271     INCLUDE_LOCALE_H="#include <locale.h>"
5272   else
5273     INCLUDE_LOCALE_H="\
5274/* The system does not provide the header <locale.h>.  Take care yourself.  */"
5275   fi
5276   
5277
5278            test -d intl || mkdir intl
5279   if test "$CATOBJEXT" = ".cat"; then
5280     ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
5281echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
5282echo "configure:5283: checking for linux/version.h" >&5
5283if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5284  echo $ac_n "(cached) $ac_c" 1>&6
5285else
5286  cat > conftest.$ac_ext <<EOF
5287#line 5288 "configure"
5288#include "confdefs.h"
5289#include <linux/version.h>
5290EOF
5291ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5292{ (eval echo configure:5293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5293ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5294if test -z "$ac_err"; then
5295  rm -rf conftest*
5296  eval "ac_cv_header_$ac_safe=yes"
5297else
5298  echo "$ac_err" >&5
5299  echo "configure: failed program was:" >&5
5300  cat conftest.$ac_ext >&5
5301  rm -rf conftest*
5302  eval "ac_cv_header_$ac_safe=no"
5303fi
5304rm -f conftest*
5305fi
5306if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5307  echo "$ac_t""yes" 1>&6
5308  msgformat=linux
5309else
5310  echo "$ac_t""no" 1>&6
5311msgformat=xopen
5312fi
5313
5314
5315               sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
5316   fi
5317      sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5318     $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
5319
5320            if test "$PACKAGE" = "gettext"; then
5321     GT_NO="#NO#"
5322     GT_YES=
5323   else
5324     GT_NO=
5325     GT_YES="#YES#"
5326   fi
5327   
5328   
5329
5330            MKINSTALLDIRS=
5331   if test -n "$ac_aux_dir"; then
5332     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5333   fi
5334   if test -z "$MKINSTALLDIRS"; then
5335     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5336   fi
5337   
5338
5339      l=
5340   
5341
5342         test -d po || mkdir po
5343   if test "x$srcdir" != "x."; then
5344     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5345       posrcprefix="$srcdir/"
5346     else
5347       posrcprefix="../$srcdir/"
5348     fi
5349   else
5350     posrcprefix="../"
5351   fi
5352   rm -f po/POTFILES
5353   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5354        < $srcdir/po/POTFILES.in > po/POTFILES
5355 
5356# AM_GNOME_GETTEXT above substs $DATADIRNAME
5357# this is the directory where the *.{mo,gmo} files are installed
5358gnomelocaledir='${prefix}/share/locale'
5359
5360
5361
5362
5363
5364
5365for ac_hdr in dlfcn.h dl.h syslog.h tcpd.h
5366do
5367ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5368echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5369echo "configure:5370: checking for $ac_hdr" >&5
5370if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5371  echo $ac_n "(cached) $ac_c" 1>&6
5372else
5373  cat > conftest.$ac_ext <<EOF
5374#line 5375 "configure"
5375#include "confdefs.h"
5376#include <$ac_hdr>
5377EOF
5378ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5379{ (eval echo configure:5380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5380ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5381if test -z "$ac_err"; then
5382  rm -rf conftest*
5383  eval "ac_cv_header_$ac_safe=yes"
5384else
5385  echo "$ac_err" >&5
5386  echo "configure: failed program was:" >&5
5387  cat conftest.$ac_ext >&5
5388  rm -rf conftest*
5389  eval "ac_cv_header_$ac_safe=no"
5390fi
5391rm -f conftest*
5392fi
5393if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5394  echo "$ac_t""yes" 1>&6
5395    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5396  cat >> confdefs.h <<EOF
5397#define $ac_tr_hdr 1
5398EOF
5399 
5400else
5401  echo "$ac_t""no" 1>&6
5402fi
5403done
5404
5405echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5406echo "configure:5407: checking for dlopen in -ldl" >&5
5407ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5408if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5409  echo $ac_n "(cached) $ac_c" 1>&6
5410else
5411  ac_save_LIBS="$LIBS"
5412LIBS="-ldl  $LIBS"
5413cat > conftest.$ac_ext <<EOF
5414#line 5415 "configure"
5415#include "confdefs.h"
5416/* Override any gcc2 internal prototype to avoid an error.  */
5417/* We use char because int might match the return type of a gcc2
5418    builtin and then its argument prototype would still apply.  */
5419char dlopen();
5420
5421int main() {
5422dlopen()
5423; return 0; }
5424EOF
5425if { (eval echo configure:5426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5426  rm -rf conftest*
5427  eval "ac_cv_lib_$ac_lib_var=yes"
5428else
5429  echo "configure: failed program was:" >&5
5430  cat conftest.$ac_ext >&5
5431  rm -rf conftest*
5432  eval "ac_cv_lib_$ac_lib_var=no"
5433fi
5434rm -f conftest*
5435LIBS="$ac_save_LIBS"
5436
5437fi
5438if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5439  echo "$ac_t""yes" 1>&6
5440  DL_LIB="-ldl"
5441else
5442  echo "$ac_t""no" 1>&6
5443
5444echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
5445echo "configure:5446: checking for shl_load in -ldld" >&5
5446ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
5447if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5448  echo $ac_n "(cached) $ac_c" 1>&6
5449else
5450  ac_save_LIBS="$LIBS"
5451LIBS="-ldld  $LIBS"
5452cat > conftest.$ac_ext <<EOF
5453#line 5454 "configure"
5454#include "confdefs.h"
5455/* Override any gcc2 internal prototype to avoid an error.  */
5456/* We use char because int might match the return type of a gcc2
5457    builtin and then its argument prototype would still apply.  */
5458char shl_load();
5459
5460int main() {
5461shl_load()
5462; return 0; }
5463EOF
5464if { (eval echo configure:5465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5465  rm -rf conftest*
5466  eval "ac_cv_lib_$ac_lib_var=yes"
5467else
5468  echo "configure: failed program was:" >&5
5469  cat conftest.$ac_ext >&5
5470  rm -rf conftest*
5471  eval "ac_cv_lib_$ac_lib_var=no"
5472fi
5473rm -f conftest*
5474LIBS="$ac_save_LIBS"
5475
5476fi
5477if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5478  echo "$ac_t""yes" 1>&6
5479  DL_LIB="-ldld"
5480else
5481  echo "$ac_t""no" 1>&6
5482
5483for ac_func in dlopen
5484do
5485echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5486echo "configure:5487: checking for $ac_func" >&5
5487if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5488  echo $ac_n "(cached) $ac_c" 1>&6
5489else
5490  cat > conftest.$ac_ext <<EOF
5491#line 5492 "configure"
5492#include "confdefs.h"
5493/* System header to define __stub macros and hopefully few prototypes,
5494    which can conflict with char $ac_func(); below.  */
5495#include <assert.h>
5496/* Override any gcc2 internal prototype to avoid an error.  */
5497/* We use char because int might match the return type of a gcc2
5498    builtin and then its argument prototype would still apply.  */
5499char $ac_func();
5500
5501int main() {
5502
5503/* The GNU C library defines this for functions which it implements
5504    to always fail with ENOSYS.  Some functions are actually named
5505    something starting with __ and the normal name is an alias.  */
5506#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5507choke me
5508#else
5509$ac_func();
5510#endif
5511
5512; return 0; }
5513EOF
5514if { (eval echo configure:5515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5515  rm -rf conftest*
5516  eval "ac_cv_func_$ac_func=yes"
5517else
5518  echo "configure: failed program was:" >&5
5519  cat conftest.$ac_ext >&5
5520  rm -rf conftest*
5521  eval "ac_cv_func_$ac_func=no"
5522fi
5523rm -f conftest*
5524fi
5525
5526if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5527  echo "$ac_t""yes" 1>&6
5528    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5529  cat >> confdefs.h <<EOF
5530#define $ac_tr_func 1
5531EOF
5532 DL_LIB=""
5533else
5534  echo "$ac_t""no" 1>&6
5535{ echo "configure: error: Dynamic linking is not available on this platform.  Some
5536apps" 1>&2; exit 1; }
5537fi
5538done
5539
5540
5541fi
5542
5543fi
5544
5545
5546
5547for dir in `(IFS=:; for i in $PATH; do echo $i ; done)` ; do
5548  if test -f $dir/orbit-idl ; then
5549     orbit_prefix=`echo $dir | sed 's%/bin$%%' |sed 's%/bin/$%%'`
5550     break
5551  fi
5552done
5553
5554ORB_LIBS="$ORBIT_LIBS"
5555ORB_CFLAGS="$ORBIT_CFLAGS"
5556
5557
5558
5559
5560echo $ac_n "checking for CApplet library""... $ac_c" 1>&6
5561echo "configure:5562: checking for CApplet library" >&5
5562vers=`$GNOME_CONFIG --modversion capplet`
5563case "x$vers" in
5564  xcapplet-*)
5565    echo "$ac_t""found" 1>&6
5566    ;;
5567  *)
5568    { echo "configure: error: Did not find CApplet library" 1>&2; exit 1; }
5569    ;;
5570esac
5571
5572echo $ac_n "checking for Configure Easter Egg version >= 3.14""... $ac_c" 1>&6
5573echo "configure:5574: checking for Configure Easter Egg version >= 3.14" >&5
5574echo "$ac_t""found" 1>&6
5575
5576echo $ac_n "checking for GdkPixbuf library >= 0.7.0""... $ac_c" 1>&6
5577echo "configure:5578: checking for GdkPixbuf library >= 0.7.0" >&5
5578PIXBUF_CFLAGS=`$GNOME_CONFIG --cflags gdk_pixbuf`
5579PIXBUF_LIBS=`$GNOME_CONFIG --libs gdk_pixbuf`
5580if test "x$PIXBUF_CFLAGS" != x ; then
5581    vers=`gdk-pixbuf-config --version | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
5582    if test "$vers" -ge 0007000; then
5583        echo "$ac_t""found" 1>&6
5584    else
5585       { echo "configure: error: You need at least GdkPixbuf version 0.7.0 for the panel" 1>&2; exit 1; }
5586    fi
5587else
5588    { echo "configure: error: Did not find GdkPixbuf installed" 1>&2; exit 1; }
5589fi
5590
5591
5592
5593CANVAS_PIXBUF_CFLAGS=`$GNOME_CONFIG --cflags gnomecanvaspixbuf`
5594CANVAS_PIXBUF_LIBS=`$GNOME_CONFIG --libs gnomecanvaspixbuf`
5595
5596
5597if test "x$CANVAS_PIXBUF_CFLAGS" = x ; then
5598        { echo "configure: error: GnomeCanvasPixbuf is required for gnome-about.
5599This is contained in the gdk-pixbuf module" 1>&2; exit 1; }
5600fi
5601
5602ZVT_LIBS=`$GNOME_CONFIG --libs zvt`
5603
5604
5605echo $ac_n "checking for Glade libraries >= 0.14""... $ac_c" 1>&6
5606echo "configure:5607: checking for Glade libraries >= 0.14" >&5
5607libglade_ok=no
5608if gnome-config --libs libglade > /dev/null 2>&1; then
5609    verstxt=`gnome-config --modversion libglade`
5610    vers=`echo "$verstxt" | awk -F. '{ printf "%d", $1 * 1000 + $2;}'`
5611    if test "$vers" -ge 14; then
5612        echo "$ac_t""$marker_ok found $verstxt" 1>&6
5613        libglade_ok=yes
5614    else
5615        echo "$ac_t""$marker_fail found only $verstxt" 1>&6
5616    fi
5617else
5618    echo "$ac_t""$marker_fail not found" 1>&6
5619fi
5620if test "$libglade_ok" = no; then
5621    { echo "configure: error: You need at least libglade 0.14 for this version of gnome-core" 1>&2; exit 1; }
5622fi
5623unset libglade_ok
5624GT_LIBS="libglade zvt gnorba gnomeui"
5625GNOME_TERMINAL_LIBS=`gnome-config --libs $GT_LIBS`
5626GNOME_TERMINAL_CFLAGS=`gnome-config --cflags $GT_LIBS`
5627
5628
5629
5630
5631
5632if test "$GNOME_HAVE_SM" = true; then
5633  SESSION_TRUE=
5634  SESSION_FALSE='#'
5635else
5636  SESSION_TRUE='#'
5637  SESSION_FALSE=
5638fi
5639
5640echo $ac_n "checking "whether to use TCP wrappers"""... $ac_c" 1>&6
5641echo "configure:5642: checking "whether to use TCP wrappers"" >&5
5642LIBWRAP_PATH=""
5643for I in $LDFLAGS $LIBS -L/usr/lib -L/usr/local/lib; do
5644        case "$I" in
5645        -L*)
5646        THEFILE="`echo $I | sed -e 's,^-L,,'`"
5647        echo "From $I, checking in dir $THEFILE for libwrap.a" 1>&5
5648        if test -f $THEFILE/libwrap.a; then
5649                LIBWRAP_PATH="$THEFILE"
5650                echo "Found in $LIBWRAP_PATH" 1>&5
5651                break
5652        fi
5653                esac
5654done
5655if test -n "$LIBWRAP_PATH"; then
5656        echo "$ac_t""yes" 1>&6
5657else
5658        echo "$ac_t""no" 1>&6
5659fi
5660
5661if test -n "$LIBWRAP_PATH"; then
5662        nm $LIBWRAP_PATH/libwrap.* | grep 'T setenv' && LIBWRAP_PATH=""
5663        if test -z "$LIBWRAP_PATH"; then
5664                echo "*********************************************************"
5665                echo " You have a broken TCP wrappers library (setenv included)"
5666                echo " Please get the latest TCP wrappers package from your OS"
5667                echo " vendor, or recompile TCP wrappers to not include a"
5668                echo " setenv() implementation."
5669                echo
5670                echo "Not using TCP wrappers after all."
5671                echo "*********************************************************"
5672        fi
5673fi
5674if test "$ac_cv_header_syslog_h" != yes || test "$ac_cv_header_tcpd_h" != yes; then
5675        echo "Resetting $LIBWRAP_PATH because syslog is $ac_cv_header_syslog_h and tcpd is $ac_cv_header_tcpd_h" 1>&5
5676        LIBWRAP_PATH=""
5677fi
5678
5679LIBWRAP_NSL=
5680if test -n "$LIBWRAP_PATH"; then
5681        echo $ac_n "checking whether -lwrap requires -lnsl""... $ac_c" 1>&6
5682echo "configure:5683: checking whether -lwrap requires -lnsl" >&5
5683        ORIG_LIBS="$LIBS"
5684        LIBS="-L$LIBWRAP_PATH -lwrap $LIBS"
5685        cat > conftest.$ac_ext <<EOF
5686#line 5687 "configure"
5687#include "confdefs.h"
5688
5689extern int hosts_access;
5690int allow_severity, deny_severity;
5691
5692int main() {
5693return hosts_access;
5694; return 0; }
5695EOF
5696if { (eval echo configure:5697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5697  :
5698else
5699  echo "configure: failed program was:" >&5
5700  cat conftest.$ac_ext >&5
5701  rm -rf conftest*
5702 
5703OLD_LIBS="$LIBS"
5704LIBS="$LIBS -lnsl"
5705cat > conftest.$ac_ext <<EOF
5706#line 5707 "configure"
5707#include "confdefs.h"
5708
5709extern int hosts_access;
5710int allow_severity, deny_severity;
5711
5712int main() {
5713return hosts_access;
5714; return 0; }
5715EOF
5716if { (eval echo configure:5717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5717  rm -rf conftest*
5718  LIBWRAP_NSL="-lnsl"
5719else
5720  echo "configure: failed program was:" >&5
5721  cat conftest.$ac_ext >&5
5722  rm -rf conftest*
5723  LIBWRAP_PATH=""
5724fi
5725rm -f conftest*
5726LIBS="$OLD_LIBS"
5727
5728fi
5729rm -f conftest*
5730        LIBS="$ORIG_LIBS"
5731if test -n "$LIB_NSL"; then
5732        echo "$ac_t""yes" 1>&6
5733        LIBS="$LIBS $LIB_NSL"
5734else
5735        echo "$ac_t""no" 1>&6
5736fi
5737fi
5738LIBWRAP_LIBS=
5739if test -n "$LIBWRAP_PATH"; then
5740        LIBWRAP_LIBS="-L$LIBWRAP_PATH -lwrap $LIBWRAP_NSL"
5741        cat >> confdefs.h <<\EOF
5742#define HAVE_HOSTS_ACCESS 1
5743EOF
5744
5745fi
5746
5747
5748# Check whether --with-window-manager or --without-window-manager was given.
5749if test "${with_window_manager+set}" = set; then
5750  withval="$with_window_manager"
5751 
5752    WINDOW_MANAGER="$with_window_manager"
5753else
5754 
5755        WINDOW_MANAGER=gnome-wm
5756fi
5757
5758
5759
5760
5761
5762# Check whether --with-gtkhtml or --without-gtkhtml was given.
5763if test "${with_gtkhtml+set}" = set; then
5764  withval="$with_gtkhtml"
5765 
5766    GTK_HTML_PREFIX="$with_gtkhtml"
5767else
5768 
5769    GTK_HTML_PREFIX=`$GNOME_CONFIG --prefix`
5770fi
5771
5772
5773
5774# Check whether --with-gnome-print or --without-gnome-print was given.
5775if test "${with_gnome_print+set}" = set; then
5776  withval="$with_gnome_print"
5777 
5778    GNOME_PRINT_PREFIX="$with_gnome_print"
5779else
5780 
5781    GNOME_PRINT_PREFIX=`$GNOME_CONFIG --prefix`
5782fi
5783
5784
5785
5786help_use_gtkhtml=false
5787
5788CPPFLAGS_save=$CPPFLAGS
5789LDFLAGS_save=$LDFLAGS
5790CPPFLAGS=`$GNOME_CONFIG --cflags gtkhtml`
5791LDFLAGS=`$GNOME_CONFIG --libs gtkhtml`
5792
5793lib_gtkhtml=false
5794echo $ac_n "checking for gtk_html_construct in -lgtkhtml""... $ac_c" 1>&6
5795echo "configure:5796: checking for gtk_html_construct in -lgtkhtml" >&5
5796ac_lib_var=`echo gtkhtml'_'gtk_html_construct | sed 'y%./+-%__p_%'`
5797if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5798  echo $ac_n "(cached) $ac_c" 1>&6
5799else
5800  ac_save_LIBS="$LIBS"
5801LIBS="-lgtkhtml  $LIBS"
5802cat > conftest.$ac_ext <<EOF
5803#line 5804 "configure"
5804#include "confdefs.h"
5805/* Override any gcc2 internal prototype to avoid an error.  */
5806/* We use char because int might match the return type of a gcc2
5807    builtin and then its argument prototype would still apply.  */
5808char gtk_html_construct();
5809
5810int main() {
5811gtk_html_construct()
5812; return 0; }
5813EOF
5814if { (eval echo configure:5815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5815  rm -rf conftest*
5816  eval "ac_cv_lib_$ac_lib_var=yes"
5817else
5818  echo "configure: failed program was:" >&5
5819  cat conftest.$ac_ext >&5
5820  rm -rf conftest*
5821  eval "ac_cv_lib_$ac_lib_var=no"
5822fi
5823rm -f conftest*
5824LIBS="$ac_save_LIBS"
5825
5826fi
5827if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5828  echo "$ac_t""yes" 1>&6
5829  lib_gtkhtml=true
5830else
5831  echo "$ac_t""no" 1>&6
5832
5833        echo "configure: warning: Recent enough GtkHTML library not found (using GtkXmHTML)
5834        " 1>&2
5835
5836fi
5837
5838
5839CPPFLAGS=$CPPFLAGS_save
5840LDFLAGS=$LDFLAGS_save
5841
5842# Check whether --enable-gtkhtml-help or --disable-gtkhtml-help was given.
5843if test "${enable_gtkhtml_help+set}" = set; then
5844  enableval="$enable_gtkhtml_help"
5845  gtkhtml_enabled="$enableval"
5846else
5847  gtkhtml_enabled=no
5848fi
5849
5850
5851if test "x$gtkhtml_enabled" = "xyes" ; then
5852        if test "x$lib_gtkhtml" = "xtrue" ; then
5853                echo $ac_n "checking for static libgtkhtml""... $ac_c" 1>&6
5854echo "configure:5855: checking for static libgtkhtml" >&5
5855                if test -e $GTK_HTML_PREFIX/lib/libgtkhtml.a ; then
5856                        echo "$ac_t""yes" 1>&6
5857                        echo $ac_n "checking for static libgnomeprint""... $ac_c" 1>&6
5858echo "configure:5859: checking for static libgnomeprint" >&5
5859                        if test -e $GNOME_PRINT_PREFIX/lib/libgnomeprint.a ; then
5860                                echo "$ac_t""yes" 1>&6
5861                                help_use_gtkhtml=true
5862                        else
5863                                echo "$ac_t""no" 1>&6
5864                        fi
5865                else
5866                        echo "$ac_t""no" 1>&6
5867                fi
5868        fi
5869fi
5870
5871echo $ac_n "checking which HTML widget to use""... $ac_c" 1>&6
5872echo "configure:5873: checking which HTML widget to use" >&5
5873if test "x$help_use_gtkhtml" = "xtrue" ; then
5874        echo "$ac_t""GtkHTML" 1>&6
5875else
5876        echo "$ac_t""GtkXmHTML" 1>&6
5877fi
5878
5879
5880
5881if test x$help_use_gtkhtml = xtrue; then
5882  HELP_USE_GTKHTML_TRUE=
5883  HELP_USE_GTKHTML_FALSE='#'
5884else
5885  HELP_USE_GTKHTML_TRUE='#'
5886  HELP_USE_GTKHTML_FALSE=
5887fi
5888
5889oLIBS="$LIBS"
5890RES_LIBS=
5891# the following two are covered by X11 too.  If inet_aton is found in
5892# plain libc, -lsocket or -lnsl, RES_LIBS will be empty.
5893echo $ac_n "checking for connect""... $ac_c" 1>&6
5894echo "configure:5895: checking for connect" >&5
5895if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5896  echo $ac_n "(cached) $ac_c" 1>&6
5897else
5898  cat > conftest.$ac_ext <<EOF
5899#line 5900 "configure"
5900#include "confdefs.h"
5901/* System header to define __stub macros and hopefully few prototypes,
5902    which can conflict with char connect(); below.  */
5903#include <assert.h>
5904/* Override any gcc2 internal prototype to avoid an error.  */
5905/* We use char because int might match the return type of a gcc2
5906    builtin and then its argument prototype would still apply.  */
5907char connect();
5908
5909int main() {
5910
5911/* The GNU C library defines this for functions which it implements
5912    to always fail with ENOSYS.  Some functions are actually named
5913    something starting with __ and the normal name is an alias.  */
5914#if defined (__stub_connect) || defined (__stub___connect)
5915choke me
5916#else
5917connect();
5918#endif
5919
5920; return 0; }
5921EOF
5922if { (eval echo configure:5923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5923  rm -rf conftest*
5924  eval "ac_cv_func_connect=yes"
5925else
5926  echo "configure: failed program was:" >&5
5927  cat conftest.$ac_ext >&5
5928  rm -rf conftest*
5929  eval "ac_cv_func_connect=no"
5930fi
5931rm -f conftest*
5932fi
5933
5934if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5935  echo "$ac_t""yes" 1>&6
5936  :
5937else
5938  echo "$ac_t""no" 1>&6
5939echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5940echo "configure:5941: checking for connect in -lsocket" >&5
5941ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5942if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5943  echo $ac_n "(cached) $ac_c" 1>&6
5944else
5945  ac_save_LIBS="$LIBS"
5946LIBS="-lsocket  $LIBS"
5947cat > conftest.$ac_ext <<EOF
5948#line 5949 "configure"
5949#include "confdefs.h"
5950/* Override any gcc2 internal prototype to avoid an error.  */
5951/* We use char because int might match the return type of a gcc2
5952    builtin and then its argument prototype would still apply.  */
5953char connect();
5954
5955int main() {
5956connect()
5957; return 0; }
5958EOF
5959if { (eval echo configure:5960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5960  rm -rf conftest*
5961  eval "ac_cv_lib_$ac_lib_var=yes"
5962else
5963  echo "configure: failed program was:" >&5
5964  cat conftest.$ac_ext >&5
5965  rm -rf conftest*
5966  eval "ac_cv_lib_$ac_lib_var=no"
5967fi
5968rm -f conftest*
5969LIBS="$ac_save_LIBS"
5970
5971fi
5972if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5973  echo "$ac_t""yes" 1>&6
5974    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5975    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5976  cat >> confdefs.h <<EOF
5977#define $ac_tr_lib 1
5978EOF
5979
5980  LIBS="-lsocket $LIBS"
5981
5982else
5983  echo "$ac_t""no" 1>&6
5984fi
5985
5986fi
5987
5988echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5989echo "configure:5990: checking for gethostbyname" >&5
5990if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5991  echo $ac_n "(cached) $ac_c" 1>&6
5992else
5993  cat > conftest.$ac_ext <<EOF
5994#line 5995 "configure"
5995#include "confdefs.h"
5996/* System header to define __stub macros and hopefully few prototypes,
5997    which can conflict with char gethostbyname(); below.  */
5998#include <assert.h>
5999/* Override any gcc2 internal prototype to avoid an error.  */
6000/* We use char because int might match the return type of a gcc2
6001    builtin and then its argument prototype would still apply.  */
6002char gethostbyname();
6003
6004int main() {
6005
6006/* The GNU C library defines this for functions which it implements
6007    to always fail with ENOSYS.  Some functions are actually named
6008    something starting with __ and the normal name is an alias.  */
6009#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6010choke me
6011#else
6012gethostbyname();
6013#endif
6014
6015; return 0; }
6016EOF
6017if { (eval echo configure:6018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6018  rm -rf conftest*
6019  eval "ac_cv_func_gethostbyname=yes"
6020else
6021  echo "configure: failed program was:" >&5
6022  cat conftest.$ac_ext >&5
6023  rm -rf conftest*
6024  eval "ac_cv_func_gethostbyname=no"
6025fi
6026rm -f conftest*
6027fi
6028
6029if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6030  echo "$ac_t""yes" 1>&6
6031  :
6032else
6033  echo "$ac_t""no" 1>&6
6034echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6035echo "configure:6036: checking for gethostbyname in -lnsl" >&5
6036ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6037if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6038  echo $ac_n "(cached) $ac_c" 1>&6
6039else
6040  ac_save_LIBS="$LIBS"
6041LIBS="-lnsl  $LIBS"
6042cat > conftest.$ac_ext <<EOF
6043#line 6044 "configure"
6044#include "confdefs.h"
6045/* Override any gcc2 internal prototype to avoid an error.  */
6046/* We use char because int might match the return type of a gcc2
6047    builtin and then its argument prototype would still apply.  */
6048char gethostbyname();
6049
6050int main() {
6051gethostbyname()
6052; return 0; }
6053EOF
6054if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6055  rm -rf conftest*
6056  eval "ac_cv_lib_$ac_lib_var=yes"
6057else
6058  echo "configure: failed program was:" >&5
6059  cat conftest.$ac_ext >&5
6060  rm -rf conftest*
6061  eval "ac_cv_lib_$ac_lib_var=no"
6062fi
6063rm -f conftest*
6064LIBS="$ac_save_LIBS"
6065
6066fi
6067if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6068  echo "$ac_t""yes" 1>&6
6069    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6070    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6071  cat >> confdefs.h <<EOF
6072#define $ac_tr_lib 1
6073EOF
6074
6075  LIBS="-lnsl $LIBS"
6076
6077else
6078  echo "$ac_t""no" 1>&6
6079fi
6080
6081fi
6082
6083echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
6084echo "configure:6085: checking for inet_aton" >&5
6085if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
6086  echo $ac_n "(cached) $ac_c" 1>&6
6087else
6088  cat > conftest.$ac_ext <<EOF
6089#line 6090 "configure"
6090#include "confdefs.h"
6091/* System header to define __stub macros and hopefully few prototypes,
6092    which can conflict with char inet_aton(); below.  */
6093#include <assert.h>
6094/* Override any gcc2 internal prototype to avoid an error.  */
6095/* We use char because int might match the return type of a gcc2
6096    builtin and then its argument prototype would still apply.  */
6097char inet_aton();
6098
6099int main() {
6100
6101/* The GNU C library defines this for functions which it implements
6102    to always fail with ENOSYS.  Some functions are actually named
6103    something starting with __ and the normal name is an alias.  */
6104#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6105choke me
6106#else
6107inet_aton();
6108#endif
6109
6110; return 0; }
6111EOF
6112if { (eval echo configure:6113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6113  rm -rf conftest*
6114  eval "ac_cv_func_inet_aton=yes"
6115else
6116  echo "configure: failed program was:" >&5
6117  cat conftest.$ac_ext >&5
6118  rm -rf conftest*
6119  eval "ac_cv_func_inet_aton=no"
6120fi
6121rm -f conftest*
6122fi
6123
6124if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
6125  echo "$ac_t""yes" 1>&6
6126  :
6127else
6128  echo "$ac_t""no" 1>&6
6129echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
6130echo "configure:6131: checking for inet_aton in -lresolv" >&5
6131ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
6132if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6133  echo $ac_n "(cached) $ac_c" 1>&6
6134else
6135  ac_save_LIBS="$LIBS"
6136LIBS="-lresolv  $LIBS"
6137cat > conftest.$ac_ext <<EOF
6138#line 6139 "configure"
6139#include "confdefs.h"
6140/* Override any gcc2 internal prototype to avoid an error.  */
6141/* We use char because int might match the return type of a gcc2
6142    builtin and then its argument prototype would still apply.  */
6143char inet_aton();
6144
6145int main() {
6146inet_aton()
6147; return 0; }
6148EOF
6149if { (eval echo configure:6150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6150  rm -rf conftest*
6151  eval "ac_cv_lib_$ac_lib_var=yes"
6152else
6153  echo "configure: failed program was:" >&5
6154  cat conftest.$ac_ext >&5
6155  rm -rf conftest*
6156  eval "ac_cv_lib_$ac_lib_var=no"
6157fi
6158rm -f conftest*
6159LIBS="$ac_save_LIBS"
6160
6161fi
6162if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6163  echo "$ac_t""yes" 1>&6
6164  RES_LIBS="-lresolv"
6165else
6166  echo "$ac_t""no" 1>&6
6167fi
6168
6169fi
6170
6171
6172LIBS="$oLIBS"
6173
6174oLIBS="$LIBS"
6175LIBS="$GNOMEUI_LIBS $GNOME_LIBDIR $ZVT_LIBS"
6176echo $ac_n "checking for zvt_term_reset""... $ac_c" 1>&6
6177echo "configure:6178: checking for zvt_term_reset" >&5
6178if eval "test \"`echo '$''{'ac_cv_func_zvt_term_reset'+set}'`\" = set"; then
6179  echo $ac_n "(cached) $ac_c" 1>&6
6180else
6181  cat > conftest.$ac_ext <<EOF
6182#line 6183 "configure"
6183#include "confdefs.h"
6184/* System header to define __stub macros and hopefully few prototypes,
6185    which can conflict with char zvt_term_reset(); below.  */
6186#include <assert.h>
6187/* Override any gcc2 internal prototype to avoid an error.  */
6188/* We use char because int might match the return type of a gcc2
6189    builtin and then its argument prototype would still apply.  */
6190char zvt_term_reset();
6191
6192int main() {
6193
6194/* The GNU C library defines this for functions which it implements
6195    to always fail with ENOSYS.  Some functions are actually named
6196    something starting with __ and the normal name is an alias.  */
6197#if defined (__stub_zvt_term_reset) || defined (__stub___zvt_term_reset)
6198choke me
6199#else
6200zvt_term_reset();
6201#endif
6202
6203; return 0; }
6204EOF
6205if { (eval echo configure:6206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6206  rm -rf conftest*
6207  eval "ac_cv_func_zvt_term_reset=yes"
6208else
6209  echo "configure: failed program was:" >&5
6210  cat conftest.$ac_ext >&5
6211  rm -rf conftest*
6212  eval "ac_cv_func_zvt_term_reset=no"
6213fi
6214rm -f conftest*
6215fi
6216
6217if eval "test \"`echo '$ac_cv_func_'zvt_term_reset`\" = yes"; then
6218  echo "$ac_t""yes" 1>&6
6219  cat >> confdefs.h <<\EOF
6220#define HAVE_ZVT_TERM_RESET 1
6221EOF
6222
6223else
6224  echo "$ac_t""no" 1>&6
6225fi
6226
6227LIBS="$oLIBS"
6228
6229oLIBS="$LIBS"
6230BZ_LIBS=""
6231echo $ac_n "checking for bzopen in -lbz2""... $ac_c" 1>&6
6232echo "configure:6233: checking for bzopen in -lbz2" >&5
6233ac_lib_var=`echo bz2'_'bzopen | sed 'y%./+-%__p_%'`
6234if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6235  echo $ac_n "(cached) $ac_c" 1>&6
6236else
6237  ac_save_LIBS="$LIBS"
6238LIBS="-lbz2  $LIBS"
6239cat > conftest.$ac_ext <<EOF
6240#line 6241 "configure"
6241#include "confdefs.h"
6242/* Override any gcc2 internal prototype to avoid an error.  */
6243/* We use char because int might match the return type of a gcc2
6244    builtin and then its argument prototype would still apply.  */
6245char bzopen();
6246
6247int main() {
6248bzopen()
6249; return 0; }
6250EOF
6251if { (eval echo configure:6252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6252  rm -rf conftest*
6253  eval "ac_cv_lib_$ac_lib_var=yes"
6254else
6255  echo "configure: failed program was:" >&5
6256  cat conftest.$ac_ext >&5
6257  rm -rf conftest*
6258  eval "ac_cv_lib_$ac_lib_var=no"
6259fi
6260rm -f conftest*
6261LIBS="$ac_save_LIBS"
6262
6263fi
6264if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6265  echo "$ac_t""yes" 1>&6
6266 
6267        cat >> confdefs.h <<\EOF
6268#define HAVE_LIBBZ2 1
6269EOF
6270
6271        LIBS=$oLIBS
6272        BZ_LIBS="-lbz2"
6273       
6274else
6275  echo "$ac_t""no" 1>&6
6276echo $ac_n "checking for BZ2_bzopen in -lbz2""... $ac_c" 1>&6
6277echo "configure:6278: checking for BZ2_bzopen in -lbz2" >&5
6278ac_lib_var=`echo bz2'_'BZ2_bzopen | sed 'y%./+-%__p_%'`
6279if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6280  echo $ac_n "(cached) $ac_c" 1>&6
6281else
6282  ac_save_LIBS="$LIBS"
6283LIBS="-lbz2  $LIBS"
6284cat > conftest.$ac_ext <<EOF
6285#line 6286 "configure"
6286#include "confdefs.h"
6287/* Override any gcc2 internal prototype to avoid an error.  */
6288/* We use char because int might match the return type of a gcc2
6289    builtin and then its argument prototype would still apply.  */
6290char BZ2_bzopen();
6291
6292int main() {
6293BZ2_bzopen()
6294; return 0; }
6295EOF
6296if { (eval echo configure:6297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6297  rm -rf conftest*
6298  eval "ac_cv_lib_$ac_lib_var=yes"
6299else
6300  echo "configure: failed program was:" >&5
6301  cat conftest.$ac_ext >&5
6302  rm -rf conftest*
6303  eval "ac_cv_lib_$ac_lib_var=no"
6304fi
6305rm -f conftest*
6306LIBS="$ac_save_LIBS"
6307
6308fi
6309if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6310  echo "$ac_t""yes" 1>&6
6311 
6312           cat >> confdefs.h <<\EOF
6313#define HAVE_LIBBZ2 1
6314EOF
6315
6316           cat >> confdefs.h <<\EOF
6317#define HAVE_LIBBZ2_1_0 1
6318EOF
6319
6320           LIBS=$oLIBS
6321           BZ_LIBS="-lbz2"
6322           
6323else
6324  echo "$ac_t""no" 1>&6
6325echo "configure: warning: Recent enough BZ2 library not found. Help-Browser will not be able to read bzipped man/info pages" 1>&2
6326
6327fi
6328
6329fi
6330
6331
6332
6333# Check whether --with-kde-datadir or --without-kde-datadir was given.
6334if test "${with_kde_datadir+set}" = set; then
6335  withval="$with_kde_datadir"
6336  :
6337fi
6338
6339
6340if test "x$with_kde_datadir" = x ; then
6341  kde_datadir=/usr/share
6342else
6343  kde_datadir=$with_kde_datadir
6344fi
6345
6346cat >> confdefs.h <<EOF
6347#define KDE_MENUDIR "$kde_datadir/applnk"
6348EOF
6349
6350cat >> confdefs.h <<EOF
6351#define KDE_ICONDIR "$kde_datadir/icons"
6352EOF
6353
6354cat >> confdefs.h <<EOF
6355#define KDE_MINI_ICONDIR "$kde_datadir/icons/mini"
6356EOF
6357
6358
6359# Check whether --with-kde-docdir or --without-kde-docdir was given.
6360if test "${with_kde_docdir+set}" = set; then
6361  withval="$with_kde_docdir"
6362  :
6363fi
6364
6365
6366if test "x$with_kde_docdir" = x ; then
6367  kde_docdir=/usr/doc/kde
6368else
6369  kde_docdir=$with_kde_docdir
6370fi
6371
6372cat >> confdefs.h <<EOF
6373#define KDE_DOCDIR "$kde_docdir"
6374EOF
6375
6376
6377
6378
6379
6380
6381# Extract the first word of "gtkdoc-mkdb", so it can be a program name with args.
6382set dummy gtkdoc-mkdb; ac_word=$2
6383echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6384echo "configure:6385: checking for $ac_word" >&5
6385if eval "test \"`echo '$''{'ac_cv_prog_GTKDOC'+set}'`\" = set"; then
6386  echo $ac_n "(cached) $ac_c" 1>&6
6387else
6388  if test -n "$GTKDOC"; then
6389  ac_cv_prog_GTKDOC="$GTKDOC" # Let the user override the test.
6390else
6391  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6392  ac_dummy="$PATH"
6393  for ac_dir in $ac_dummy; do
6394    test -z "$ac_dir" && ac_dir=.
6395    if test -f $ac_dir/$ac_word; then
6396      ac_cv_prog_GTKDOC="true"
6397      break
6398    fi
6399  done
6400  IFS="$ac_save_ifs"
6401  test -z "$ac_cv_prog_GTKDOC" && ac_cv_prog_GTKDOC="false"
6402fi
6403fi
6404GTKDOC="$ac_cv_prog_GTKDOC"
6405if test -n "$GTKDOC"; then
6406  echo "$ac_t""$GTKDOC" 1>&6
6407else
6408  echo "$ac_t""no" 1>&6
6409fi
6410
6411
6412
6413if $GTKDOC; then
6414  HAVE_GTK_DOC_TRUE=
6415  HAVE_GTK_DOC_FALSE='#'
6416else
6417  HAVE_GTK_DOC_TRUE='#'
6418  HAVE_GTK_DOC_FALSE=
6419fi
6420
6421
6422# Check whether --enable-gtk-doc or --disable-gtk-doc was given.
6423if test "${enable_gtk_doc+set}" = set; then
6424  enableval="$enable_gtk_doc"
6425  enable_gtk_doc="$enableval"
6426else
6427  enable_gtk_doc=auto
6428fi
6429
6430
6431if test x$enable_gtk_doc = xauto ; then
6432  if test x$GTKDOC = xtrue ; then
6433    enable_gtk_doc=yes
6434  else
6435    enable_gtk_doc=no
6436  fi
6437fi
6438
6439oLIBS="$LIBS"
6440LIBS="$GNOMEUI_LIBS $GNOME_LIBDIR"
6441for ac_func in _IceTransNoListen
6442do
6443echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6444echo "configure:6445: checking for $ac_func" >&5
6445if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6446  echo $ac_n "(cached) $ac_c" 1>&6
6447else
6448  cat > conftest.$ac_ext <<EOF
6449#line 6450 "configure"
6450#include "confdefs.h"
6451/* System header to define __stub macros and hopefully few prototypes,
6452    which can conflict with char $ac_func(); below.  */
6453#include <assert.h>
6454/* Override any gcc2 internal prototype to avoid an error.  */
6455/* We use char because int might match the return type of a gcc2
6456    builtin and then its argument prototype would still apply.  */
6457char $ac_func();
6458
6459int main() {
6460
6461/* The GNU C library defines this for functions which it implements
6462    to always fail with ENOSYS.  Some functions are actually named
6463    something starting with __ and the normal name is an alias.  */
6464#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6465choke me
6466#else
6467$ac_func();
6468#endif
6469
6470; return 0; }
6471EOF
6472if { (eval echo configure:6473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6473  rm -rf conftest*
6474  eval "ac_cv_func_$ac_func=yes"
6475else
6476  echo "configure: failed program was:" >&5
6477  cat conftest.$ac_ext >&5
6478  rm -rf conftest*
6479  eval "ac_cv_func_$ac_func=no"
6480fi
6481rm -f conftest*
6482fi
6483
6484if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6485  echo "$ac_t""yes" 1>&6
6486    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6487  cat >> confdefs.h <<EOF
6488#define $ac_tr_func 1
6489EOF
6490 
6491else
6492  echo "$ac_t""no" 1>&6
6493fi
6494done
6495
6496LIBS="$oLIBS"
6497
6498uname_s=`uname -s`
6499if test "x$uname_s" = xSunOS; then
6500  cat >> confdefs.h <<\EOF
6501#define DO_LIBICE_CHECK 1
6502EOF
6503
6504fi
6505
6506
6507
6508if test x$enable_gtk_doc = xyes; then
6509  ENABLE_GTK_DOC_TRUE=
6510  ENABLE_GTK_DOC_FALSE='#'
6511else
6512  ENABLE_GTK_DOC_TRUE='#'
6513  ENABLE_GTK_DOC_FALSE=
6514fi
6515
6516ICONDIR=`eval echo "${datadir}/pixmaps"`
6517cat >> confdefs.h <<EOF
6518#define GNOME_ICONDIR "${ICONDIR}"
6519EOF
6520
6521
6522trap '' 1 2 15
6523cat > confcache <<\EOF
6524# This file is a shell script that caches the results of configure
6525# tests run on this system so they can be shared between configure
6526# scripts and configure runs.  It is not useful on other systems.
6527# If it contains results you don't want to keep, you may remove or edit it.
6528#
6529# By default, configure uses ./config.cache as the cache file,
6530# creating it if it does not exist already.  You can give configure
6531# the --cache-file=FILE option to use a different cache file; that is
6532# what configure does when it calls configure scripts in
6533# subdirectories, so they share the cache.
6534# Giving --cache-file=/dev/null disables caching, for debugging configure.
6535# config.status only pays attention to the cache file if you give it the
6536# --recheck option to rerun configure.
6537#
6538EOF
6539# The following way of writing the cache mishandles newlines in values,
6540# but we know of no workaround that is simple, portable, and efficient.
6541# So, don't put newlines in cache variables' values.
6542# Ultrix sh set writes to stderr and can't be redirected directly,
6543# and sets the high bit in the cache file unless we assign to the vars.
6544(set) 2>&1 |
6545  case `(ac_space=' '; set | grep ac_space) 2>&1` in
6546  *ac_space=\ *)
6547    # `set' does not quote correctly, so add quotes (double-quote substitution
6548    # turns \\\\ into \\, and sed turns \\ into \).
6549    sed -n \
6550      -e "s/'/'\\\\''/g" \
6551      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6552    ;;
6553  *)
6554    # `set' quotes correctly as required by POSIX, so do not add quotes.
6555    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6556    ;;
6557  esac >> confcache
6558if cmp -s $cache_file confcache; then
6559  :
6560else
6561  if test -w $cache_file; then
6562    echo "updating cache $cache_file"
6563    cat confcache > $cache_file
6564  else
6565    echo "not updating unwritable cache $cache_file"
6566  fi
6567fi
6568rm -f confcache
6569
6570trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6571
6572test "x$prefix" = xNONE && prefix=$ac_default_prefix
6573# Let make expand exec_prefix.
6574test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6575
6576# Any assignment to VPATH causes Sun make to only execute
6577# the first set of double-colon rules, so remove it if not needed.
6578# If there is a colon in the path, we need to keep it.
6579if test "x$srcdir" = x.; then
6580  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
6581fi
6582
6583trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6584
6585DEFS=-DHAVE_CONFIG_H
6586
6587# Without the "./", some shells look in PATH for config.status.
6588: ${CONFIG_STATUS=./config.status}
6589
6590echo creating $CONFIG_STATUS
6591rm -f $CONFIG_STATUS
6592cat > $CONFIG_STATUS <<EOF
6593#! /bin/sh
6594# Generated automatically by configure.
6595# Run this file to recreate the current configuration.
6596# This directory was configured as follows,
6597# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6598#
6599# $0 $ac_configure_args
6600#
6601# Compiler output produced by configure, useful for debugging
6602# configure, is in ./config.log if it exists.
6603
6604ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6605for ac_option
6606do
6607  case "\$ac_option" in
6608  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6609    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6610    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6611  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6612    echo "$CONFIG_STATUS generated by autoconf version 2.13"
6613    exit 0 ;;
6614  -help | --help | --hel | --he | --h)
6615    echo "\$ac_cs_usage"; exit 0 ;;
6616  *) echo "\$ac_cs_usage"; exit 1 ;;
6617  esac
6618done
6619
6620ac_given_srcdir=$srcdir
6621ac_given_INSTALL="$INSTALL"
6622
6623trap 'rm -fr `echo "
6624Makefile
6625gnome-core.spec
6626po/Makefile.in
6627macros/Makefile
6628panel/Makefile
6629panel/doc/Makefile
6630panel/help/Makefile
6631panel/help/C/Makefile
6632panel/help/de/Makefile
6633panel/help/it/Makefile
6634panel/help/ja/Makefile
6635applets/Makefile
6636applets/applet-dirs/Makefile
6637applets/gen_util/Makefile
6638applets/gen_util/help/Makefile
6639applets/gen_util/help/C/Makefile
6640applets/gen_util/help/C/clock/Makefile
6641applets/gen_util/help/C/mailcheck/Makefile
6642applets/gen_util/help/C/printer/Makefile
6643applets/gen_util/help/de/Makefile
6644applets/gen_util/help/no/Makefile
6645applets/gen_util/help/da/Makefile
6646applets/gen_util/help/da/clock/Makefile
6647applets/gen_util/help/da/mailcheck/Makefile
6648applets/gen_util/help/da/printer/Makefile
6649applets/gen_util/help/es/Makefile
6650applets/gen_util/help/es/printer/Makefile
6651applets/fish/Makefile
6652applets/fish/help/Makefile
6653applets/fish/help/C/Makefile
6654applets/fish/help/no/Makefile
6655applets/fish/help/da/Makefile
6656applets/desk-guide/Makefile
6657applets/desk-guide/help/Makefile
6658applets/desk-guide/help/C/Makefile
6659applets/desk-guide/help/de/Makefile
6660applets/tasklist/Makefile
6661applets/tasklist/help/Makefile
6662applets/tasklist/help/C/Makefile
6663core-docs/Makefile
6664core-docs/fdl/Makefile
6665core-docs/fdl/C/Makefile
6666core-docs/gpl/Makefile
6667core-docs/gpl/C/Makefile
6668core-docs/lgpl/Makefile
6669core-docs/lgpl/C/Makefile
6670desktop-links/Makefile
6671gnome-terminal/Makefile
6672gnome-terminal/C/Makefile
6673gnome-terminal/de/Makefile
6674gnome-terminal/da/Makefile
6675gnome-terminal/es/Makefile
6676gnome-terminal/it/Makefile
6677gnome-terminal/no/Makefile
6678help-browser/Makefile
6679help-browser/gnome-man2html/Makefile
6680help-browser/gnome-info2html/Makefile
6681help-browser/help/Makefile
6682help-browser/help/C/Makefile
6683help-browser/help/ca/Makefile
6684help-browser/help/da/Makefile
6685help-browser/help/el/Makefile
6686help-browser/help/es/Makefile
6687help-browser/help/et/Makefile
6688help-browser/help/eu/Makefile
6689help-browser/help/hu/Makefile
6690help-browser/help/fr/Makefile
6691help-browser/help/gl/Makefile
6692help-browser/help/it/Makefile
6693help-browser/help/ja/Makefile
6694help-browser/help/ko/Makefile
6695help-browser/help/lt/Makefile
6696help-browser/help/no/Makefile
6697help-browser/help/uk/Makefile
6698help-browser/help/wa/Makefile
6699gnome-hint/Makefile
6700gnome-about/Makefile
6701gmenu/Makefile
6702gnome-edit/Makefile
6703idl/Makefile
6704pixmaps/Makefile
6705gsm/Makefile
6706gsm/help/Makefile
6707gsm/help/C/Makefile
6708gsm/default.session.5
6709gsm/gnome-session.1
6710smproxy/Makefile
6711intl/Makefile
6712omf-install/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6713EOF
6714cat >> $CONFIG_STATUS <<EOF
6715
6716# Protect against being on the right side of a sed subst in config.status.
6717sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6718 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6719$ac_vpsub
6720$extrasub
6721s%@SHELL@%$SHELL%g
6722s%@CFLAGS@%$CFLAGS%g
6723s%@CPPFLAGS@%$CPPFLAGS%g
6724s%@CXXFLAGS@%$CXXFLAGS%g
6725s%@FFLAGS@%$FFLAGS%g
6726s%@DEFS@%$DEFS%g
6727s%@LDFLAGS@%$LDFLAGS%g
6728s%@LIBS@%$LIBS%g
6729s%@exec_prefix@%$exec_prefix%g
6730s%@prefix@%$prefix%g
6731s%@program_transform_name@%$program_transform_name%g
6732s%@bindir@%$bindir%g
6733s%@sbindir@%$sbindir%g
6734s%@libexecdir@%$libexecdir%g
6735s%@datadir@%$datadir%g
6736s%@sysconfdir@%$sysconfdir%g
6737s%@sharedstatedir@%$sharedstatedir%g
6738s%@localstatedir@%$localstatedir%g
6739s%@libdir@%$libdir%g
6740s%@includedir@%$includedir%g
6741s%@oldincludedir@%$oldincludedir%g
6742s%@infodir@%$infodir%g
6743s%@mandir@%$mandir%g
6744s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6745s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6746s%@INSTALL_DATA@%$INSTALL_DATA%g
6747s%@PACKAGE@%$PACKAGE%g
6748s%@VERSION@%$VERSION%g
6749s%@ACLOCAL@%$ACLOCAL%g
6750s%@AUTOCONF@%$AUTOCONF%g
6751s%@AUTOMAKE@%$AUTOMAKE%g
6752s%@AUTOHEADER@%$AUTOHEADER%g
6753s%@MAKEINFO@%$MAKEINFO%g
6754s%@SET_MAKE@%$SET_MAKE%g
6755s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6756s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6757s%@MAINT@%$MAINT%g
6758s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
6759s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
6760s%@XML_I18N_MERGE_OAF_RULE@%$XML_I18N_MERGE_OAF_RULE%g
6761s%@XML_I18N_MERGE_KEYS_RULE@%$XML_I18N_MERGE_KEYS_RULE%g
6762s%@XML_I18N_MERGE_DESKTOP_RULE@%$XML_I18N_MERGE_DESKTOP_RULE%g
6763s%@XML_I18N_MERGE_DIRECTORY_RULE@%$XML_I18N_MERGE_DIRECTORY_RULE%g
6764s%@XML_I18N_EXTRACT@%$XML_I18N_EXTRACT%g
6765s%@XML_I18N_MERGE@%$XML_I18N_MERGE%g
6766s%@XML_I18N_UPDATE@%$XML_I18N_UPDATE%g
6767s%@XML_I18N_MERGE_SOUNDLIST_RULE@%$XML_I18N_MERGE_SOUNDLIST_RULE%g
6768s%@XML_I18N_TOOLS_PERL@%$XML_I18N_TOOLS_PERL%g
6769s%@GNOME_LIBS@%$GNOME_LIBS%g
6770s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
6771s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
6772s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
6773s%@ZVT_LIBS@%$ZVT_LIBS%g
6774s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
6775s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
6776s%@GNOME_CONFIG@%$GNOME_CONFIG%g
6777s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
6778s%@ORBIT_IDL@%$ORBIT_IDL%g
6779s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
6780s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
6781s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
6782s%@ORBIT_LIBS@%$ORBIT_LIBS%g
6783s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
6784s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
6785s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
6786s%@GNORBA_LIBS@%$GNORBA_LIBS%g
6787s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
6788s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
6789s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
6790s%@CC@%$CC%g
6791s%@CPP@%$CPP%g
6792s%@host@%$host%g
6793s%@host_alias@%$host_alias%g
6794s%@host_cpu@%$host_cpu%g
6795s%@host_vendor@%$host_vendor%g
6796s%@host_os@%$host_os%g
6797s%@build@%$build%g
6798s%@build_alias@%$build_alias%g
6799s%@build_cpu@%$build_cpu%g
6800s%@build_vendor@%$build_vendor%g
6801s%@build_os@%$build_os%g
6802s%@RANLIB@%$RANLIB%g
6803s%@LN_S@%$LN_S%g
6804s%@LIBTOOL@%$LIBTOOL%g
6805s%@LEX@%$LEX%g
6806s%@LEXLIB@%$LEXLIB%g
6807s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
6808s%@YACC@%$YACC%g
6809s%@PATH_TO_XRDB@%$PATH_TO_XRDB%g
6810s%@cflags_set@%$cflags_set%g
6811s%@GTK_CONFIG@%$GTK_CONFIG%g
6812s%@GTK_CFLAGS@%$GTK_CFLAGS%g
6813s%@GTK_LIBS@%$GTK_LIBS%g
6814s%@XPM_LIBS@%$XPM_LIBS%g
6815s%@PTHREAD_LIB@%$PTHREAD_LIB%g
6816s%@GNOME_XML_CFLAGS@%$GNOME_XML_CFLAGS%g
6817s%@GNOME_XML_LIB@%$GNOME_XML_LIB%g
6818s%@FALSE_TRUE@%$FALSE_TRUE%g
6819s%@FALSE_FALSE@%$FALSE_FALSE%g
6820s%@ALLOCA@%$ALLOCA%g
6821s%@USE_NLS@%$USE_NLS%g
6822s%@MSGFMT@%$MSGFMT%g
6823s%@GMSGFMT@%$GMSGFMT%g
6824s%@XGETTEXT@%$XGETTEXT%g
6825s%@GENCAT@%$GENCAT%g
6826s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6827s%@CATALOGS@%$CATALOGS%g
6828s%@CATOBJEXT@%$CATOBJEXT%g
6829s%@DATADIRNAME@%$DATADIRNAME%g
6830s%@GMOFILES@%$GMOFILES%g
6831s%@INSTOBJEXT@%$INSTOBJEXT%g
6832s%@INTLDEPS@%$INTLDEPS%g
6833s%@INTLLIBS@%$INTLLIBS%g
6834s%@INTLOBJS@%$INTLOBJS%g
6835s%@POFILES@%$POFILES%g
6836s%@POSUB@%$POSUB%g
6837s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6838s%@GT_NO@%$GT_NO%g
6839s%@GT_YES@%$GT_YES%g
6840s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6841s%@l@%$l%g
6842s%@gnomelocaledir@%$gnomelocaledir%g
6843s%@DL_LIB@%$DL_LIB%g
6844s%@ORB_LIBS@%$ORB_LIBS%g
6845s%@ORB_CFLAGS@%$ORB_CFLAGS%g
6846s%@PIXBUF_CFLAGS@%$PIXBUF_CFLAGS%g
6847s%@PIXBUF_LIBS@%$PIXBUF_LIBS%g
6848s%@CANVAS_PIXBUF_CFLAGS@%$CANVAS_PIXBUF_CFLAGS%g
6849s%@CANVAS_PIXBUF_LIBS@%$CANVAS_PIXBUF_LIBS%g
6850s%@GNOME_TERMINAL_LIBS@%$GNOME_TERMINAL_LIBS%g
6851s%@GNOME_TERMINAL_CFLAGS@%$GNOME_TERMINAL_CFLAGS%g
6852s%@SESSION_TRUE@%$SESSION_TRUE%g
6853s%@SESSION_FALSE@%$SESSION_FALSE%g
6854s%@LIBWRAP_LIBS@%$LIBWRAP_LIBS%g
6855s%@WINDOW_MANAGER@%$WINDOW_MANAGER%g
6856s%@GTK_HTML_PREFIX@%$GTK_HTML_PREFIX%g
6857s%@GNOME_PRINT_PREFIX@%$GNOME_PRINT_PREFIX%g
6858s%@HELP_USE_GTKHTML_TRUE@%$HELP_USE_GTKHTML_TRUE%g
6859s%@HELP_USE_GTKHTML_FALSE@%$HELP_USE_GTKHTML_FALSE%g
6860s%@RES_LIBS@%$RES_LIBS%g
6861s%@BZ_LIBS@%$BZ_LIBS%g
6862s%@GTKDOC@%$GTKDOC%g
6863s%@HAVE_GTK_DOC_TRUE@%$HAVE_GTK_DOC_TRUE%g
6864s%@HAVE_GTK_DOC_FALSE@%$HAVE_GTK_DOC_FALSE%g
6865s%@HAVE_GTK_DOC@%$HAVE_GTK_DOC%g
6866s%@ENABLE_GTK_DOC_TRUE@%$ENABLE_GTK_DOC_TRUE%g
6867s%@ENABLE_GTK_DOC_FALSE@%$ENABLE_GTK_DOC_FALSE%g
6868
6869CEOF
6870EOF
6871
6872cat >> $CONFIG_STATUS <<\EOF
6873
6874# Split the substitutions into bite-sized pieces for seds with
6875# small command number limits, like on Digital OSF/1 and HP-UX.
6876ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6877ac_file=1 # Number of current file.
6878ac_beg=1 # First line for current file.
6879ac_end=$ac_max_sed_cmds # Line after last line for current file.
6880ac_more_lines=:
6881ac_sed_cmds=""
6882while $ac_more_lines; do
6883  if test $ac_beg -gt 1; then
6884    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6885  else
6886    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6887  fi
6888  if test ! -s conftest.s$ac_file; then
6889    ac_more_lines=false
6890    rm -f conftest.s$ac_file
6891  else
6892    if test -z "$ac_sed_cmds"; then
6893      ac_sed_cmds="sed -f conftest.s$ac_file"
6894    else
6895      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6896    fi
6897    ac_file=`expr $ac_file + 1`
6898    ac_beg=$ac_end
6899    ac_end=`expr $ac_end + $ac_max_sed_cmds`
6900  fi
6901done
6902if test -z "$ac_sed_cmds"; then
6903  ac_sed_cmds=cat
6904fi
6905EOF
6906
6907cat >> $CONFIG_STATUS <<EOF
6908
6909CONFIG_FILES=\${CONFIG_FILES-"Makefile
6910gnome-core.spec
6911po/Makefile.in
6912macros/Makefile
6913panel/Makefile
6914panel/doc/Makefile
6915panel/help/Makefile
6916panel/help/C/Makefile
6917panel/help/de/Makefile
6918panel/help/it/Makefile
6919panel/help/ja/Makefile
6920applets/Makefile
6921applets/applet-dirs/Makefile
6922applets/gen_util/Makefile
6923applets/gen_util/help/Makefile
6924applets/gen_util/help/C/Makefile
6925applets/gen_util/help/C/clock/Makefile
6926applets/gen_util/help/C/mailcheck/Makefile
6927applets/gen_util/help/C/printer/Makefile
6928applets/gen_util/help/de/Makefile
6929applets/gen_util/help/no/Makefile
6930applets/gen_util/help/da/Makefile
6931applets/gen_util/help/da/clock/Makefile
6932applets/gen_util/help/da/mailcheck/Makefile
6933applets/gen_util/help/da/printer/Makefile
6934applets/gen_util/help/es/Makefile
6935applets/gen_util/help/es/printer/Makefile
6936applets/fish/Makefile
6937applets/fish/help/Makefile
6938applets/fish/help/C/Makefile
6939applets/fish/help/no/Makefile
6940applets/fish/help/da/Makefile
6941applets/desk-guide/Makefile
6942applets/desk-guide/help/Makefile
6943applets/desk-guide/help/C/Makefile
6944applets/desk-guide/help/de/Makefile
6945applets/tasklist/Makefile
6946applets/tasklist/help/Makefile
6947applets/tasklist/help/C/Makefile
6948core-docs/Makefile
6949core-docs/fdl/Makefile
6950core-docs/fdl/C/Makefile
6951core-docs/gpl/Makefile
6952core-docs/gpl/C/Makefile
6953core-docs/lgpl/Makefile
6954core-docs/lgpl/C/Makefile
6955desktop-links/Makefile
6956gnome-terminal/Makefile
6957gnome-terminal/C/Makefile
6958gnome-terminal/de/Makefile
6959gnome-terminal/da/Makefile
6960gnome-terminal/es/Makefile
6961gnome-terminal/it/Makefile
6962gnome-terminal/no/Makefile
6963help-browser/Makefile
6964help-browser/gnome-man2html/Makefile
6965help-browser/gnome-info2html/Makefile
6966help-browser/help/Makefile
6967help-browser/help/C/Makefile
6968help-browser/help/ca/Makefile
6969help-browser/help/da/Makefile
6970help-browser/help/el/Makefile
6971help-browser/help/es/Makefile
6972help-browser/help/et/Makefile
6973help-browser/help/eu/Makefile
6974help-browser/help/hu/Makefile
6975help-browser/help/fr/Makefile
6976help-browser/help/gl/Makefile
6977help-browser/help/it/Makefile
6978help-browser/help/ja/Makefile
6979help-browser/help/ko/Makefile
6980help-browser/help/lt/Makefile
6981help-browser/help/no/Makefile
6982help-browser/help/uk/Makefile
6983help-browser/help/wa/Makefile
6984gnome-hint/Makefile
6985gnome-about/Makefile
6986gmenu/Makefile
6987gnome-edit/Makefile
6988idl/Makefile
6989pixmaps/Makefile
6990gsm/Makefile
6991gsm/help/Makefile
6992gsm/help/C/Makefile
6993gsm/default.session.5
6994gsm/gnome-session.1
6995smproxy/Makefile
6996intl/Makefile
6997omf-install/Makefile"}
6998EOF
6999cat >> $CONFIG_STATUS <<\EOF
7000for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7001  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7002  case "$ac_file" in
7003  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7004       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7005  *) ac_file_in="${ac_file}.in" ;;
7006  esac
7007
7008  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7009
7010  # Remove last slash and all that follows it.  Not all systems have dirname.
7011  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7012  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7013    # The file is in a subdirectory.
7014    test ! -d "$ac_dir" && mkdir "$ac_dir"
7015    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7016    # A "../" for each directory in $ac_dir_suffix.
7017    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7018  else
7019    ac_dir_suffix= ac_dots=
7020  fi
7021
7022  case "$ac_given_srcdir" in
7023  .)  srcdir=.
7024      if test -z "$ac_dots"; then top_srcdir=.
7025      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7026  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7027  *) # Relative path.
7028    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7029    top_srcdir="$ac_dots$ac_given_srcdir" ;;
7030  esac
7031
7032  case "$ac_given_INSTALL" in
7033  [/$]*) INSTALL="$ac_given_INSTALL" ;;
7034  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7035  esac
7036
7037  echo creating "$ac_file"
7038  rm -f "$ac_file"
7039  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7040  case "$ac_file" in
7041  *Makefile*) ac_comsub="1i\\
7042# $configure_input" ;;
7043  *) ac_comsub= ;;
7044  esac
7045
7046  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7047  sed -e "$ac_comsub
7048s%@configure_input@%$configure_input%g
7049s%@srcdir@%$srcdir%g
7050s%@top_srcdir@%$top_srcdir%g
7051s%@INSTALL@%$INSTALL%g
7052" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7053fi; done
7054rm -f conftest.s*
7055
7056# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7057# NAME is the cpp macro being defined and VALUE is the value it is being given.
7058#
7059# ac_d sets the value in "#define NAME VALUE" lines.
7060ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
7061ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
7062ac_dC='\3'
7063ac_dD='%g'
7064# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7065ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7066ac_uB='\([      ]\)%\1#\2define\3'
7067ac_uC=' '
7068ac_uD='\4%g'
7069# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7070ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7071ac_eB='$%\1#\2define\3'
7072ac_eC=' '
7073ac_eD='%g'
7074
7075if test "${CONFIG_HEADERS+set}" != set; then
7076EOF
7077cat >> $CONFIG_STATUS <<EOF
7078  CONFIG_HEADERS="config.h"
7079EOF
7080cat >> $CONFIG_STATUS <<\EOF
7081fi
7082for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7083  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7084  case "$ac_file" in
7085  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7086       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7087  *) ac_file_in="${ac_file}.in" ;;
7088  esac
7089
7090  echo creating $ac_file
7091
7092  rm -f conftest.frag conftest.in conftest.out
7093  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7094  cat $ac_file_inputs > conftest.in
7095
7096EOF
7097
7098# Transform confdefs.h into a sed script conftest.vals that substitutes
7099# the proper values into config.h.in to produce config.h.  And first:
7100# Protect against being on the right side of a sed subst in config.status.
7101# Protect against being in an unquoted here document in config.status.
7102rm -f conftest.vals
7103cat > conftest.hdr <<\EOF
7104s/[\\&%]/\\&/g
7105s%[\\$`]%\\&%g
7106s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7107s%ac_d%ac_u%gp
7108s%ac_u%ac_e%gp
7109EOF
7110sed -n -f conftest.hdr confdefs.h > conftest.vals
7111rm -f conftest.hdr
7112
7113# This sed command replaces #undef with comments.  This is necessary, for
7114# example, in the case of _POSIX_SOURCE, which is predefined and required
7115# on some systems where configure will not decide to define it.
7116cat >> conftest.vals <<\EOF
7117s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7118EOF
7119
7120# Break up conftest.vals because some shells have a limit on
7121# the size of here documents, and old seds have small limits too.
7122
7123rm -f conftest.tail
7124while :
7125do
7126  ac_lines=`grep -c . conftest.vals`
7127  # grep -c gives empty output for an empty file on some AIX systems.
7128  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7129  # Write a limited-size here document to conftest.frag.
7130  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7131  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7132  echo 'CEOF
7133  sed -f conftest.frag conftest.in > conftest.out
7134  rm -f conftest.in
7135  mv conftest.out conftest.in
7136' >> $CONFIG_STATUS
7137  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7138  rm -f conftest.vals
7139  mv conftest.tail conftest.vals
7140done
7141rm -f conftest.vals
7142
7143cat >> $CONFIG_STATUS <<\EOF
7144  rm -f conftest.frag conftest.h
7145  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
7146  cat conftest.in >> conftest.h
7147  rm -f conftest.in
7148  if cmp -s $ac_file conftest.h 2>/dev/null; then
7149    echo "$ac_file is unchanged"
7150    rm -f conftest.h
7151  else
7152    # Remove last slash and all that follows it.  Not all systems have dirname.
7153      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7154      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7155      # The file is in a subdirectory.
7156      test ! -d "$ac_dir" && mkdir "$ac_dir"
7157    fi
7158    rm -f $ac_file
7159    mv conftest.h $ac_file
7160  fi
7161fi; done
7162
7163EOF
7164
7165cat >> $CONFIG_STATUS <<EOF
7166ac_sources="$nls_cv_header_libgt"
7167ac_dests="$nls_cv_header_intl"
7168EOF
7169
7170cat >> $CONFIG_STATUS <<\EOF
7171srcdir=$ac_given_srcdir
7172while test -n "$ac_sources"; do
7173  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7174  set $ac_sources; ac_source=$1; shift; ac_sources=$*
7175
7176  echo "linking $srcdir/$ac_source to $ac_dest"
7177
7178  if test ! -r $srcdir/$ac_source; then
7179    { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7180  fi
7181  rm -f $ac_dest
7182
7183  # Make relative symlinks.
7184  # Remove last slash and all that follows it.  Not all systems have dirname.
7185  ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7186  if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7187    # The dest file is in a subdirectory.
7188    test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7189    ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7190    # A "../" for each directory in $ac_dest_dir_suffix.
7191    ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7192  else
7193    ac_dest_dir_suffix= ac_dots=
7194  fi
7195
7196  case "$srcdir" in
7197  [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7198  *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7199  esac
7200
7201  # Make a symlink if possible; otherwise try a hard link.
7202  if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7203    ln $srcdir/$ac_source $ac_dest; then :
7204  else
7205    { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7206  fi
7207done
7208EOF
7209cat >> $CONFIG_STATUS <<EOF
7210
7211XML_I18N_TOOLS_PERL=${XML_I18N_TOOLS_PERL}
7212
7213
7214EOF
7215cat >> $CONFIG_STATUS <<\EOF
7216test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7217
7218sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-extract.in > xml-i18n-extract;
7219chmod ugo+x xml-i18n-extract;
7220
7221sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-merge.in > xml-i18n-merge;
7222chmod ugo+x xml-i18n-merge;
7223
7224sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-update.in > xml-i18n-update;
7225chmod ugo+x xml-i18n-update;
7226
7227case "$CONFIG_FILES" in *po/Makefile.in*)
7228        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
7229      esac
7230
7231exit 0
7232EOF
7233chmod +x $CONFIG_STATUS
7234rm -fr confdefs* $ac_clean_files
7235test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7236
Note: See TracBrowser for help on using the repository browser.