source: trunk/third/ammonite/configure @ 15602

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