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

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