1@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.59.
4@%:@
5@%:@ Copyright (C) 2003 Free Software Foundation, Inc.
6@%:@ This configure script is free software; the Free Software Foundation
7@%:@ gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="src/Main.cpp"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CXXCPP EGREP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS SHAPE IMLIB2_CONFIG IMLIB_LIBS IMLIB_CXXFLAGS IMLIB2_CFLAGS IMLIB2_LIBS PKG_CONFIG ac_pt_PKG_CONFIG LIBSN_CFLAGS LIBSN_LIBS HAVE_STARTUP_NOTIFICATION_TRUE HAVE_STARTUP_NOTIFICATION_FALSE STARTUP XFT_TRUE XFT_FALSE DEFAULT_PREFIX LIB@&t@OBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package| sed 's/-/_/g'`
593    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if test -n "$ac_prev"; then
653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  { echo "$as_me: error: missing argument to $ac_option" >&2
655   { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661  eval ac_val=$`echo $ac_var`
662  case $ac_val in
663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665   { (exit 1); exit 1; }; };;
666  esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671	      localstatedir libdir includedir oldincludedir infodir mandir
672do
673  eval ac_val=$`echo $ac_var`
674  case $ac_val in
675    [\\/$]* | ?:[\\/]* ) ;;
676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677   { (exit 1); exit 1; }; };;
678  esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707  ac_srcdir_defaulted=yes
708  # Try the directory containing this script, then its parent.
709  ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711	 X"$0" : 'X\(//\)[^/]' \| \
712	 X"$0" : 'X\(//\)$' \| \
713	 X"$0" : 'X\(/\)' \| \
714	 .     : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718  	  /^X\(\/\/\)$/{ s//\1/; q; }
719  	  /^X\(\/\).*/{ s//\1/; q; }
720  	  s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r $srcdir/$ac_unique_file; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739   { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CXX_set=${CXX+set}
770ac_env_CXX_value=$CXX
771ac_cv_env_CXX_set=${CXX+set}
772ac_cv_env_CXX_value=$CXX
773ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774ac_env_CXXFLAGS_value=$CXXFLAGS
775ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777ac_env_CXXCPP_set=${CXXCPP+set}
778ac_env_CXXCPP_value=$CXXCPP
779ac_cv_env_CXXCPP_set=${CXXCPP+set}
780ac_cv_env_CXXCPP_value=$CXXCPP
781ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
782ac_env_PKG_CONFIG_value=$PKG_CONFIG
783ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
784ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
785ac_env_LIBSN_CFLAGS_set=${LIBSN_CFLAGS+set}
786ac_env_LIBSN_CFLAGS_value=$LIBSN_CFLAGS
787ac_cv_env_LIBSN_CFLAGS_set=${LIBSN_CFLAGS+set}
788ac_cv_env_LIBSN_CFLAGS_value=$LIBSN_CFLAGS
789ac_env_LIBSN_LIBS_set=${LIBSN_LIBS+set}
790ac_env_LIBSN_LIBS_value=$LIBSN_LIBS
791ac_cv_env_LIBSN_LIBS_set=${LIBSN_LIBS+set}
792ac_cv_env_LIBSN_LIBS_value=$LIBSN_LIBS
793
794#
795# Report the --help message.
796#
797if test "$ac_init_help" = "long"; then
798  # Omit some internal or obsolete options to make the list less imposing.
799  # This message is too long to be a string in the A/UX 3.1 sh.
800  cat <<_ACEOF
801\`configure' configures this package to adapt to many kinds of systems.
802
803Usage: $0 [OPTION]... [VAR=VALUE]...
804
805To assign environment variables (e.g., CC, CFLAGS...), specify them as
806VAR=VALUE.  See below for descriptions of some of the useful variables.
807
808Defaults for the options are specified in brackets.
809
810Configuration:
811  -h, --help              display this help and exit
812      --help=short        display options specific to this package
813      --help=recursive    display the short help of all the included packages
814  -V, --version           display version information and exit
815  -q, --quiet, --silent   do not print \`checking...' messages
816      --cache-file=FILE   cache test results in FILE [disabled]
817  -C, --config-cache      alias for \`--cache-file=config.cache'
818  -n, --no-create         do not create output files
819      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
820
821_ACEOF
822
823  cat <<_ACEOF
824Installation directories:
825  --prefix=PREFIX         install architecture-independent files in PREFIX
826			  [$ac_default_prefix]
827  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
828			  [PREFIX]
829
830By default, \`make install' will install all the files in
831\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
832an installation prefix other than \`$ac_default_prefix' using \`--prefix',
833for instance \`--prefix=\$HOME'.
834
835For better control, use the options below.
836
837Fine tuning of the installation directories:
838  --bindir=DIR           user executables [EPREFIX/bin]
839  --sbindir=DIR          system admin executables [EPREFIX/sbin]
840  --libexecdir=DIR       program executables [EPREFIX/libexec]
841  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
842  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
843  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
844  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
845  --libdir=DIR           object code libraries [EPREFIX/lib]
846  --includedir=DIR       C header files [PREFIX/include]
847  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
848  --infodir=DIR          info documentation [PREFIX/info]
849  --mandir=DIR           man documentation [PREFIX/man]
850_ACEOF
851
852  cat <<\_ACEOF
853
854Program names:
855  --program-prefix=PREFIX            prepend PREFIX to installed program names
856  --program-suffix=SUFFIX            append SUFFIX to installed program names
857  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
858
859X features:
860  --x-includes=DIR    X include files are in DIR
861  --x-libraries=DIR   X library files are in DIR
862_ACEOF
863fi
864
865if test -n "$ac_init_help"; then
866
867  cat <<\_ACEOF
868
869Optional Features:
870  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
871  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
872  --enable-shape          enable support of the XShape extension default=yes
873  --enable-libsn        include code for LIBSN default=no
874  --enable-xft            Xft (antialias) support (default=yes)
875
876Optional Packages:
877  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
878  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
879  --with-x                use the X Window System
880  --with-imlib2-prefix=PFX       Prefix where imlib2 is installed (optional)
881  --with-imlib2-exec-prefix=PFX Exec prefix where imlib2 is installed (optional)
882  --with-xft-prefix=path  Prefix where Xft is installed (optional)
883  --with-pkg-exec-prefix=path Exec prefix where pkg-config is installed (optional)
884
885Some influential environment variables:
886  CC          C compiler command
887  CFLAGS      C compiler flags
888  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
889              nonstandard directory <lib dir>
890  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
891              headers in a nonstandard directory <include dir>
892  CXX         C++ compiler command
893  CXXFLAGS    C++ compiler flags
894  CXXCPP      C++ preprocessor
895  PKG_CONFIG  path to pkg-config utility
896  LIBSN_CFLAGS
897              C compiler flags for LIBSN, overriding pkg-config
898  LIBSN_LIBS  linker flags for LIBSN, overriding pkg-config
899
900Use these variables to override the choices made by `configure' or to help
901it to find libraries and programs with nonstandard names/locations.
902
903_ACEOF
904fi
905
906if test "$ac_init_help" = "recursive"; then
907  # If there are subdirs, report their specific --help.
908  ac_popdir=`pwd`
909  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910    test -d $ac_dir || continue
911    ac_builddir=.
912
913if test "$ac_dir" != .; then
914  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915  # A "../" for each directory in $ac_dir_suffix.
916  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917else
918  ac_dir_suffix= ac_top_builddir=
919fi
920
921case $srcdir in
922  .)  # No --srcdir option.  We are building in place.
923    ac_srcdir=.
924    if test -z "$ac_top_builddir"; then
925       ac_top_srcdir=.
926    else
927       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928    fi ;;
929  [\\/]* | ?:[\\/]* )  # Absolute path.
930    ac_srcdir=$srcdir$ac_dir_suffix;
931    ac_top_srcdir=$srcdir ;;
932  *) # Relative path.
933    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934    ac_top_srcdir=$ac_top_builddir$srcdir ;;
935esac
936
937# Do not use `cd foo && pwd` to compute absolute paths, because
938# the directories may not exist.
939case `pwd` in
940.) ac_abs_builddir="$ac_dir";;
941*)
942  case "$ac_dir" in
943  .) ac_abs_builddir=`pwd`;;
944  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945  *) ac_abs_builddir=`pwd`/"$ac_dir";;
946  esac;;
947esac
948case $ac_abs_builddir in
949.) ac_abs_top_builddir=${ac_top_builddir}.;;
950*)
951  case ${ac_top_builddir}. in
952  .) ac_abs_top_builddir=$ac_abs_builddir;;
953  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955  esac;;
956esac
957case $ac_abs_builddir in
958.) ac_abs_srcdir=$ac_srcdir;;
959*)
960  case $ac_srcdir in
961  .) ac_abs_srcdir=$ac_abs_builddir;;
962  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964  esac;;
965esac
966case $ac_abs_builddir in
967.) ac_abs_top_srcdir=$ac_top_srcdir;;
968*)
969  case $ac_top_srcdir in
970  .) ac_abs_top_srcdir=$ac_abs_builddir;;
971  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973  esac;;
974esac
975
976    cd $ac_dir
977    # Check for guested configure; otherwise get Cygnus style configure.
978    if test -f $ac_srcdir/configure.gnu; then
979      echo
980      $SHELL $ac_srcdir/configure.gnu  --help=recursive
981    elif test -f $ac_srcdir/configure; then
982      echo
983      $SHELL $ac_srcdir/configure  --help=recursive
984    elif test -f $ac_srcdir/configure.ac ||
985	   test -f $ac_srcdir/configure.in; then
986      echo
987      $ac_configure --help
988    else
989      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
990    fi
991    cd "$ac_popdir"
992  done
993fi
994
995test -n "$ac_init_help" && exit 0
996if $ac_init_version; then
997  cat <<\_ACEOF
998
999Copyright (C) 2003 Free Software Foundation, Inc.
1000This configure script is free software; the Free Software Foundation
1001gives unlimited permission to copy, distribute and modify it.
1002_ACEOF
1003  exit 0
1004fi
1005exec 5>config.log
1006cat >&5 <<_ACEOF
1007This file contains any messages produced by compilers while
1008running configure, to aid debugging if configure makes a mistake.
1009
1010It was created by $as_me, which was
1011generated by GNU Autoconf 2.59.  Invocation command line was
1012
1013  $ $0 $@
1014
1015_ACEOF
1016{
1017cat <<_ASUNAME
1018@%:@@%:@ --------- @%:@@%:@
1019@%:@@%:@ Platform. @%:@@%:@
1020@%:@@%:@ --------- @%:@@%:@
1021
1022hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026uname -v = `(uname -v) 2>/dev/null || echo unknown`
1027
1028/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1030
1031/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1032/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1033/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1035/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1036/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1037/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1038
1039_ASUNAME
1040
1041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042for as_dir in $PATH
1043do
1044  IFS=$as_save_IFS
1045  test -z "$as_dir" && as_dir=.
1046  echo "PATH: $as_dir"
1047done
1048
1049} >&5
1050
1051cat >&5 <<_ACEOF
1052
1053
1054@%:@@%:@ ----------- @%:@@%:@
1055@%:@@%:@ Core tests. @%:@@%:@
1056@%:@@%:@ ----------- @%:@@%:@
1057
1058_ACEOF
1059
1060
1061# Keep a trace of the command line.
1062# Strip out --no-create and --no-recursion so they do not pile up.
1063# Strip out --silent because we don't want to record it for future runs.
1064# Also quote any args containing shell meta-characters.
1065# Make two passes to allow for proper duplicate-argument suppression.
1066ac_configure_args=
1067ac_configure_args0=
1068ac_configure_args1=
1069ac_sep=
1070ac_must_keep_next=false
1071for ac_pass in 1 2
1072do
1073  for ac_arg
1074  do
1075    case $ac_arg in
1076    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078    | -silent | --silent | --silen | --sile | --sil)
1079      continue ;;
1080    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082    esac
1083    case $ac_pass in
1084    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1085    2)
1086      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087      if test $ac_must_keep_next = true; then
1088	ac_must_keep_next=false # Got value, back to normal.
1089      else
1090	case $ac_arg in
1091	  *=* | --config-cache | -C | -disable-* | --disable-* \
1092	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094	  | -with-* | --with-* | -without-* | --without-* | --x)
1095	    case "$ac_configure_args0 " in
1096	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097	    esac
1098	    ;;
1099	  -* ) ac_must_keep_next=true ;;
1100	esac
1101      fi
1102      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103      # Get rid of the leading space.
1104      ac_sep=" "
1105      ;;
1106    esac
1107  done
1108done
1109$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1111
1112# When interrupted or exit'd, cleanup temporary files, and complete
1113# config.log.  We remove comments because anyway the quotes in there
1114# would cause problems or look ugly.
1115# WARNING: Be sure not to use single quotes in there, as some shells,
1116# such as our DU 5.0 friend, will then `close' the trap.
1117trap 'exit_status=$?
1118  # Save into config.log some information that might help in debugging.
1119  {
1120    echo
1121
1122    cat <<\_ASBOX
1123@%:@@%:@ ---------------- @%:@@%:@
1124@%:@@%:@ Cache variables. @%:@@%:@
1125@%:@@%:@ ---------------- @%:@@%:@
1126_ASBOX
1127    echo
1128    # The following way of writing the cache mishandles newlines in values,
1129{
1130  (set) 2>&1 |
1131    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132    *ac_space=\ *)
1133      sed -n \
1134	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136      ;;
1137    *)
1138      sed -n \
1139	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140      ;;
1141    esac;
1142}
1143    echo
1144
1145    cat <<\_ASBOX
1146@%:@@%:@ ----------------- @%:@@%:@
1147@%:@@%:@ Output variables. @%:@@%:@
1148@%:@@%:@ ----------------- @%:@@%:@
1149_ASBOX
1150    echo
1151    for ac_var in $ac_subst_vars
1152    do
1153      eval ac_val=$`echo $ac_var`
1154      echo "$ac_var='"'"'$ac_val'"'"'"
1155    done | sort
1156    echo
1157
1158    if test -n "$ac_subst_files"; then
1159      cat <<\_ASBOX
1160@%:@@%:@ ------------- @%:@@%:@
1161@%:@@%:@ Output files. @%:@@%:@
1162@%:@@%:@ ------------- @%:@@%:@
1163_ASBOX
1164      echo
1165      for ac_var in $ac_subst_files
1166      do
1167	eval ac_val=$`echo $ac_var`
1168	echo "$ac_var='"'"'$ac_val'"'"'"
1169      done | sort
1170      echo
1171    fi
1172
1173    if test -s confdefs.h; then
1174      cat <<\_ASBOX
1175@%:@@%:@ ----------- @%:@@%:@
1176@%:@@%:@ confdefs.h. @%:@@%:@
1177@%:@@%:@ ----------- @%:@@%:@
1178_ASBOX
1179      echo
1180      sed "/^$/d" confdefs.h | sort
1181      echo
1182    fi
1183    test "$ac_signal" != 0 &&
1184      echo "$as_me: caught signal $ac_signal"
1185    echo "$as_me: exit $exit_status"
1186  } >&5
1187  rm -f core *.core &&
1188  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189    exit $exit_status
1190     ' 0
1191for ac_signal in 1 2 13 15; do
1192  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193done
1194ac_signal=0
1195
1196# confdefs.h avoids OS command line length limits that DEFS can exceed.
1197rm -rf conftest* confdefs.h
1198# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199echo >confdefs.h
1200
1201# Predefined preprocessor variables.
1202
1203cat >>confdefs.h <<_ACEOF
1204@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210_ACEOF
1211
1212
1213cat >>confdefs.h <<_ACEOF
1214@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1215_ACEOF
1216
1217
1218cat >>confdefs.h <<_ACEOF
1219@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1220_ACEOF
1221
1222
1223cat >>confdefs.h <<_ACEOF
1224@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225_ACEOF
1226
1227
1228# Let the site file select an alternate cache file if it wants to.
1229# Prefer explicitly selected file to automatically selected ones.
1230if test -z "$CONFIG_SITE"; then
1231  if test "x$prefix" != xNONE; then
1232    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233  else
1234    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235  fi
1236fi
1237for ac_site_file in $CONFIG_SITE; do
1238  if test -r "$ac_site_file"; then
1239    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240echo "$as_me: loading site script $ac_site_file" >&6;}
1241    sed 's/^/| /' "$ac_site_file" >&5
1242    . "$ac_site_file"
1243  fi
1244done
1245
1246if test -r "$cache_file"; then
1247  # Some versions of bash will fail to source /dev/null (special
1248  # files actually), so we avoid doing that.
1249  if test -f "$cache_file"; then
1250    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251echo "$as_me: loading cache $cache_file" >&6;}
1252    case $cache_file in
1253      [\\/]* | ?:[\\/]* ) . $cache_file;;
1254      *)                      . ./$cache_file;;
1255    esac
1256  fi
1257else
1258  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259echo "$as_me: creating cache $cache_file" >&6;}
1260  >$cache_file
1261fi
1262
1263# Check that the precious variables saved in the cache have kept the same
1264# value.
1265ac_cache_corrupted=false
1266for ac_var in `(set) 2>&1 |
1267	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269  eval ac_new_set=\$ac_env_${ac_var}_set
1270  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271  eval ac_new_val="\$ac_env_${ac_var}_value"
1272  case $ac_old_set,$ac_new_set in
1273    set,)
1274      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276      ac_cache_corrupted=: ;;
1277    ,set)
1278      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280      ac_cache_corrupted=: ;;
1281    ,);;
1282    *)
1283      if test "x$ac_old_val" != "x$ac_new_val"; then
1284	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1287echo "$as_me:   former value:  $ac_old_val" >&2;}
1288	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1289echo "$as_me:   current value: $ac_new_val" >&2;}
1290	ac_cache_corrupted=:
1291      fi;;
1292  esac
1293  # Pass precious variables to config.status.
1294  if test "$ac_new_set" = set; then
1295    case $ac_new_val in
1296    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298    *) ac_arg=$ac_var=$ac_new_val ;;
1299    esac
1300    case " $ac_configure_args " in
1301      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1302      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303    esac
1304  fi
1305done
1306if $ac_cache_corrupted; then
1307  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311   { (exit 1); exit 1; }; }
1312fi
1313
1314ac_ext=c
1315ac_cpp='$CPP $CPPFLAGS'
1316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338VERSION=0.7.5
1339PACKAGE=idesk
1340
1341          ac_config_headers="$ac_config_headers config.h"
1342
1343          ac_config_commands="$ac_config_commands default-1"
1344
1345
1346am__api_version="1.4"
1347ac_aux_dir=
1348for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1349  if test -f $ac_dir/install-sh; then
1350    ac_aux_dir=$ac_dir
1351    ac_install_sh="$ac_aux_dir/install-sh -c"
1352    break
1353  elif test -f $ac_dir/install.sh; then
1354    ac_aux_dir=$ac_dir
1355    ac_install_sh="$ac_aux_dir/install.sh -c"
1356    break
1357  elif test -f $ac_dir/shtool; then
1358    ac_aux_dir=$ac_dir
1359    ac_install_sh="$ac_aux_dir/shtool install -c"
1360    break
1361  fi
1362done
1363if test -z "$ac_aux_dir"; then
1364  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1365echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1366   { (exit 1); exit 1; }; }
1367fi
1368ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1369ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1370ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1371
1372# Find a good install program.  We prefer a C program (faster),
1373# so one script is as good as another.  But avoid the broken or
1374# incompatible versions:
1375# SysV /etc/install, /usr/sbin/install
1376# SunOS /usr/etc/install
1377# IRIX /sbin/install
1378# AIX /bin/install
1379# AmigaOS /C/install, which installs bootblocks on floppy discs
1380# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1381# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1382# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1383# OS/2's system install, which has a completely different semantic
1384# ./install, which can be erroneously created by make from ./install.sh.
1385echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1386echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1387if test -z "$INSTALL"; then
1388if test "${ac_cv_path_install+set}" = set; then
1389  echo $ECHO_N "(cached) $ECHO_C" >&6
1390else
1391  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1392for as_dir in $PATH
1393do
1394  IFS=$as_save_IFS
1395  test -z "$as_dir" && as_dir=.
1396  # Account for people who put trailing slashes in PATH elements.
1397case $as_dir/ in
1398  ./ | .// | /cC/* | \
1399  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1400  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1401  /usr/ucb/* ) ;;
1402  *)
1403    # OSF1 and SCO ODT 3.0 have their own names for install.
1404    # Don't use installbsd from OSF since it installs stuff as root
1405    # by default.
1406    for ac_prog in ginstall scoinst install; do
1407      for ac_exec_ext in '' $ac_executable_extensions; do
1408	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1409	  if test $ac_prog = install &&
1410	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1411	    # AIX install.  It has an incompatible calling convention.
1412	    :
1413	  elif test $ac_prog = install &&
1414	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1415	    # program-specific install script used by HP pwplus--don't use.
1416	    :
1417	  else
1418	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1419	    break 3
1420	  fi
1421	fi
1422      done
1423    done
1424    ;;
1425esac
1426done
1427
1428
1429fi
1430  if test "${ac_cv_path_install+set}" = set; then
1431    INSTALL=$ac_cv_path_install
1432  else
1433    # As a last resort, use the slow shell script.  We don't cache a
1434    # path for INSTALL within a source directory, because that will
1435    # break other packages using the cache if that directory is
1436    # removed, or if the path is relative.
1437    INSTALL=$ac_install_sh
1438  fi
1439fi
1440echo "$as_me:$LINENO: result: $INSTALL" >&5
1441echo "${ECHO_T}$INSTALL" >&6
1442
1443# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1444# It thinks the first close brace ends the variable substitution.
1445test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1446
1447test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1448
1449test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1450
1451echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1452echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1453# Just in case
1454sleep 1
1455echo timestamp > conftestfile
1456# Do `set' in a subshell so we don't clobber the current shell's
1457# arguments.  Must try -L first in case configure is actually a
1458# symlink; some systems play weird games with the mod time of symlinks
1459# (eg FreeBSD returns the mod time of the symlink's containing
1460# directory).
1461if (
1462   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1463   if test "$*" = "X"; then
1464      # -L didn't work.
1465      set X `ls -t $srcdir/configure conftestfile`
1466   fi
1467   if test "$*" != "X $srcdir/configure conftestfile" \
1468      && test "$*" != "X conftestfile $srcdir/configure"; then
1469
1470      # If neither matched, then we have a broken ls.  This can happen
1471      # if, for instance, CONFIG_SHELL is bash and it inherits a
1472      # broken ls alias from the environment.  This has actually
1473      # happened.  Such a system could not be considered "sane".
1474      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1475alias in your environment" >&5
1476echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1477alias in your environment" >&2;}
1478   { (exit 1); exit 1; }; }
1479   fi
1480
1481   test "$2" = conftestfile
1482   )
1483then
1484   # Ok.
1485   :
1486else
1487   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1488Check your system clock" >&5
1489echo "$as_me: error: newly created file is older than distributed files!
1490Check your system clock" >&2;}
1491   { (exit 1); exit 1; }; }
1492fi
1493rm -f conftest*
1494echo "$as_me:$LINENO: result: yes" >&5
1495echo "${ECHO_T}yes" >&6
1496test "$program_prefix" != NONE &&
1497  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1498# Use a double $ so make ignores it.
1499test "$program_suffix" != NONE &&
1500  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1501# Double any \ or $.  echo might interpret backslashes.
1502# By default was `s,x,x', remove it if useless.
1503cat <<\_ACEOF >conftest.sed
1504s/[\\$]/&&/g;s/;s,x,x,$//
1505_ACEOF
1506program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1507rm conftest.sed
1508
1509echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1510echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1511set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1512if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1513  echo $ECHO_N "(cached) $ECHO_C" >&6
1514else
1515  cat >conftest.make <<\_ACEOF
1516all:
1517	@echo 'ac_maketemp="$(MAKE)"'
1518_ACEOF
1519# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1520eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1521if test -n "$ac_maketemp"; then
1522  eval ac_cv_prog_make_${ac_make}_set=yes
1523else
1524  eval ac_cv_prog_make_${ac_make}_set=no
1525fi
1526rm -f conftest.make
1527fi
1528if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1529  echo "$as_me:$LINENO: result: yes" >&5
1530echo "${ECHO_T}yes" >&6
1531  SET_MAKE=
1532else
1533  echo "$as_me:$LINENO: result: no" >&5
1534echo "${ECHO_T}no" >&6
1535  SET_MAKE="MAKE=${MAKE-make}"
1536fi
1537
1538
1539PACKAGE=$PACKAGE
1540
1541VERSION="$VERSION"
1542
1543if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1544  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1545echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1546   { (exit 1); exit 1; }; }
1547fi
1548
1549cat >>confdefs.h <<_ACEOF
1550@%:@define PACKAGE "$PACKAGE"
1551_ACEOF
1552
1553
1554cat >>confdefs.h <<_ACEOF
1555@%:@define VERSION "$VERSION"
1556_ACEOF
1557
1558
1559
1560missing_dir=`cd $ac_aux_dir && pwd`
1561echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1562echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1563# Run test in a subshell; some versions of sh will print an error if
1564# an executable is not found, even if stderr is redirected.
1565# Redirect stdin to placate older versions of autoconf.  Sigh.
1566if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1567   ACLOCAL=aclocal-${am__api_version}
1568   echo "$as_me:$LINENO: result: found" >&5
1569echo "${ECHO_T}found" >&6
1570else
1571   ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1572   echo "$as_me:$LINENO: result: missing" >&5
1573echo "${ECHO_T}missing" >&6
1574fi
1575
1576echo "$as_me:$LINENO: checking for working autoconf" >&5
1577echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1578# Run test in a subshell; some versions of sh will print an error if
1579# an executable is not found, even if stderr is redirected.
1580# Redirect stdin to placate older versions of autoconf.  Sigh.
1581if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1582   AUTOCONF=autoconf
1583   echo "$as_me:$LINENO: result: found" >&5
1584echo "${ECHO_T}found" >&6
1585else
1586   AUTOCONF="$missing_dir/missing autoconf"
1587   echo "$as_me:$LINENO: result: missing" >&5
1588echo "${ECHO_T}missing" >&6
1589fi
1590
1591echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1592echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1593# Run test in a subshell; some versions of sh will print an error if
1594# an executable is not found, even if stderr is redirected.
1595# Redirect stdin to placate older versions of autoconf.  Sigh.
1596if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1597   AUTOMAKE=automake-${am__api_version}
1598   echo "$as_me:$LINENO: result: found" >&5
1599echo "${ECHO_T}found" >&6
1600else
1601   AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1602   echo "$as_me:$LINENO: result: missing" >&5
1603echo "${ECHO_T}missing" >&6
1604fi
1605
1606echo "$as_me:$LINENO: checking for working autoheader" >&5
1607echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1608# Run test in a subshell; some versions of sh will print an error if
1609# an executable is not found, even if stderr is redirected.
1610# Redirect stdin to placate older versions of autoconf.  Sigh.
1611if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1612   AUTOHEADER=autoheader
1613   echo "$as_me:$LINENO: result: found" >&5
1614echo "${ECHO_T}found" >&6
1615else
1616   AUTOHEADER="$missing_dir/missing autoheader"
1617   echo "$as_me:$LINENO: result: missing" >&5
1618echo "${ECHO_T}missing" >&6
1619fi
1620
1621echo "$as_me:$LINENO: checking for working makeinfo" >&5
1622echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1623# Run test in a subshell; some versions of sh will print an error if
1624# an executable is not found, even if stderr is redirected.
1625# Redirect stdin to placate older versions of autoconf.  Sigh.
1626if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1627   MAKEINFO=makeinfo
1628   echo "$as_me:$LINENO: result: found" >&5
1629echo "${ECHO_T}found" >&6
1630else
1631   MAKEINFO="$missing_dir/missing makeinfo"
1632   echo "$as_me:$LINENO: result: missing" >&5
1633echo "${ECHO_T}missing" >&6
1634fi
1635
1636
1637
1638if test "x$prefix" = "xNONE"; then
1639  prefix="/usr/local"
1640fi
1641if test "x$exec_prefix" = "xNONE"; then
1642 exec_prefix=$prefix
1643fi
1644
1645ac_ext=c
1646ac_cpp='$CPP $CPPFLAGS'
1647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1649ac_compiler_gnu=$ac_cv_c_compiler_gnu
1650if test -n "$ac_tool_prefix"; then
1651  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1652set dummy ${ac_tool_prefix}gcc; ac_word=$2
1653echo "$as_me:$LINENO: checking for $ac_word" >&5
1654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655if test "${ac_cv_prog_CC+set}" = set; then
1656  echo $ECHO_N "(cached) $ECHO_C" >&6
1657else
1658  if test -n "$CC"; then
1659  ac_cv_prog_CC="$CC" # Let the user override the test.
1660else
1661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662for as_dir in $PATH
1663do
1664  IFS=$as_save_IFS
1665  test -z "$as_dir" && as_dir=.
1666  for ac_exec_ext in '' $ac_executable_extensions; do
1667  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1669    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670    break 2
1671  fi
1672done
1673done
1674
1675fi
1676fi
1677CC=$ac_cv_prog_CC
1678if test -n "$CC"; then
1679  echo "$as_me:$LINENO: result: $CC" >&5
1680echo "${ECHO_T}$CC" >&6
1681else
1682  echo "$as_me:$LINENO: result: no" >&5
1683echo "${ECHO_T}no" >&6
1684fi
1685
1686fi
1687if test -z "$ac_cv_prog_CC"; then
1688  ac_ct_CC=$CC
1689  # Extract the first word of "gcc", so it can be a program name with args.
1690set dummy gcc; ac_word=$2
1691echo "$as_me:$LINENO: checking for $ac_word" >&5
1692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1694  echo $ECHO_N "(cached) $ECHO_C" >&6
1695else
1696  if test -n "$ac_ct_CC"; then
1697  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1698else
1699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700for as_dir in $PATH
1701do
1702  IFS=$as_save_IFS
1703  test -z "$as_dir" && as_dir=.
1704  for ac_exec_ext in '' $ac_executable_extensions; do
1705  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706    ac_cv_prog_ac_ct_CC="gcc"
1707    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708    break 2
1709  fi
1710done
1711done
1712
1713fi
1714fi
1715ac_ct_CC=$ac_cv_prog_ac_ct_CC
1716if test -n "$ac_ct_CC"; then
1717  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1718echo "${ECHO_T}$ac_ct_CC" >&6
1719else
1720  echo "$as_me:$LINENO: result: no" >&5
1721echo "${ECHO_T}no" >&6
1722fi
1723
1724  CC=$ac_ct_CC
1725else
1726  CC="$ac_cv_prog_CC"
1727fi
1728
1729if test -z "$CC"; then
1730  if test -n "$ac_tool_prefix"; then
1731  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1732set dummy ${ac_tool_prefix}cc; ac_word=$2
1733echo "$as_me:$LINENO: checking for $ac_word" >&5
1734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1735if test "${ac_cv_prog_CC+set}" = set; then
1736  echo $ECHO_N "(cached) $ECHO_C" >&6
1737else
1738  if test -n "$CC"; then
1739  ac_cv_prog_CC="$CC" # Let the user override the test.
1740else
1741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742for as_dir in $PATH
1743do
1744  IFS=$as_save_IFS
1745  test -z "$as_dir" && as_dir=.
1746  for ac_exec_ext in '' $ac_executable_extensions; do
1747  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1748    ac_cv_prog_CC="${ac_tool_prefix}cc"
1749    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750    break 2
1751  fi
1752done
1753done
1754
1755fi
1756fi
1757CC=$ac_cv_prog_CC
1758if test -n "$CC"; then
1759  echo "$as_me:$LINENO: result: $CC" >&5
1760echo "${ECHO_T}$CC" >&6
1761else
1762  echo "$as_me:$LINENO: result: no" >&5
1763echo "${ECHO_T}no" >&6
1764fi
1765
1766fi
1767if test -z "$ac_cv_prog_CC"; then
1768  ac_ct_CC=$CC
1769  # Extract the first word of "cc", so it can be a program name with args.
1770set dummy cc; ac_word=$2
1771echo "$as_me:$LINENO: checking for $ac_word" >&5
1772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1774  echo $ECHO_N "(cached) $ECHO_C" >&6
1775else
1776  if test -n "$ac_ct_CC"; then
1777  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1778else
1779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780for as_dir in $PATH
1781do
1782  IFS=$as_save_IFS
1783  test -z "$as_dir" && as_dir=.
1784  for ac_exec_ext in '' $ac_executable_extensions; do
1785  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786    ac_cv_prog_ac_ct_CC="cc"
1787    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788    break 2
1789  fi
1790done
1791done
1792
1793fi
1794fi
1795ac_ct_CC=$ac_cv_prog_ac_ct_CC
1796if test -n "$ac_ct_CC"; then
1797  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1798echo "${ECHO_T}$ac_ct_CC" >&6
1799else
1800  echo "$as_me:$LINENO: result: no" >&5
1801echo "${ECHO_T}no" >&6
1802fi
1803
1804  CC=$ac_ct_CC
1805else
1806  CC="$ac_cv_prog_CC"
1807fi
1808
1809fi
1810if test -z "$CC"; then
1811  # Extract the first word of "cc", so it can be a program name with args.
1812set dummy cc; ac_word=$2
1813echo "$as_me:$LINENO: checking for $ac_word" >&5
1814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1815if test "${ac_cv_prog_CC+set}" = set; then
1816  echo $ECHO_N "(cached) $ECHO_C" >&6
1817else
1818  if test -n "$CC"; then
1819  ac_cv_prog_CC="$CC" # Let the user override the test.
1820else
1821  ac_prog_rejected=no
1822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823for as_dir in $PATH
1824do
1825  IFS=$as_save_IFS
1826  test -z "$as_dir" && as_dir=.
1827  for ac_exec_ext in '' $ac_executable_extensions; do
1828  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1830       ac_prog_rejected=yes
1831       continue
1832     fi
1833    ac_cv_prog_CC="cc"
1834    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835    break 2
1836  fi
1837done
1838done
1839
1840if test $ac_prog_rejected = yes; then
1841  # We found a bogon in the path, so make sure we never use it.
1842  set dummy $ac_cv_prog_CC
1843  shift
1844  if test $@%:@ != 0; then
1845    # We chose a different compiler from the bogus one.
1846    # However, it has the same basename, so the bogon will be chosen
1847    # first if we set CC to just the basename; use the full file name.
1848    shift
1849    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1850  fi
1851fi
1852fi
1853fi
1854CC=$ac_cv_prog_CC
1855if test -n "$CC"; then
1856  echo "$as_me:$LINENO: result: $CC" >&5
1857echo "${ECHO_T}$CC" >&6
1858else
1859  echo "$as_me:$LINENO: result: no" >&5
1860echo "${ECHO_T}no" >&6
1861fi
1862
1863fi
1864if test -z "$CC"; then
1865  if test -n "$ac_tool_prefix"; then
1866  for ac_prog in cl
1867  do
1868    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1869set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1870echo "$as_me:$LINENO: checking for $ac_word" >&5
1871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872if test "${ac_cv_prog_CC+set}" = set; then
1873  echo $ECHO_N "(cached) $ECHO_C" >&6
1874else
1875  if test -n "$CC"; then
1876  ac_cv_prog_CC="$CC" # Let the user override the test.
1877else
1878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879for as_dir in $PATH
1880do
1881  IFS=$as_save_IFS
1882  test -z "$as_dir" && as_dir=.
1883  for ac_exec_ext in '' $ac_executable_extensions; do
1884  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1886    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887    break 2
1888  fi
1889done
1890done
1891
1892fi
1893fi
1894CC=$ac_cv_prog_CC
1895if test -n "$CC"; then
1896  echo "$as_me:$LINENO: result: $CC" >&5
1897echo "${ECHO_T}$CC" >&6
1898else
1899  echo "$as_me:$LINENO: result: no" >&5
1900echo "${ECHO_T}no" >&6
1901fi
1902
1903    test -n "$CC" && break
1904  done
1905fi
1906if test -z "$CC"; then
1907  ac_ct_CC=$CC
1908  for ac_prog in cl
1909do
1910  # Extract the first word of "$ac_prog", so it can be a program name with args.
1911set dummy $ac_prog; ac_word=$2
1912echo "$as_me:$LINENO: checking for $ac_word" >&5
1913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1915  echo $ECHO_N "(cached) $ECHO_C" >&6
1916else
1917  if test -n "$ac_ct_CC"; then
1918  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1919else
1920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921for as_dir in $PATH
1922do
1923  IFS=$as_save_IFS
1924  test -z "$as_dir" && as_dir=.
1925  for ac_exec_ext in '' $ac_executable_extensions; do
1926  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927    ac_cv_prog_ac_ct_CC="$ac_prog"
1928    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929    break 2
1930  fi
1931done
1932done
1933
1934fi
1935fi
1936ac_ct_CC=$ac_cv_prog_ac_ct_CC
1937if test -n "$ac_ct_CC"; then
1938  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1939echo "${ECHO_T}$ac_ct_CC" >&6
1940else
1941  echo "$as_me:$LINENO: result: no" >&5
1942echo "${ECHO_T}no" >&6
1943fi
1944
1945  test -n "$ac_ct_CC" && break
1946done
1947
1948  CC=$ac_ct_CC
1949fi
1950
1951fi
1952
1953
1954test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1955See \`config.log' for more details." >&5
1956echo "$as_me: error: no acceptable C compiler found in \$PATH
1957See \`config.log' for more details." >&2;}
1958   { (exit 1); exit 1; }; }
1959
1960# Provide some information about the compiler.
1961echo "$as_me:$LINENO:" \
1962     "checking for C compiler version" >&5
1963ac_compiler=`set X $ac_compile; echo $2`
1964{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1965  (eval $ac_compiler --version </dev/null >&5) 2>&5
1966  ac_status=$?
1967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968  (exit $ac_status); }
1969{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1970  (eval $ac_compiler -v </dev/null >&5) 2>&5
1971  ac_status=$?
1972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973  (exit $ac_status); }
1974{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1975  (eval $ac_compiler -V </dev/null >&5) 2>&5
1976  ac_status=$?
1977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978  (exit $ac_status); }
1979
1980cat >conftest.$ac_ext <<_ACEOF
1981/* confdefs.h.  */
1982_ACEOF
1983cat confdefs.h >>conftest.$ac_ext
1984cat >>conftest.$ac_ext <<_ACEOF
1985/* end confdefs.h.  */
1986
1987int
1988main ()
1989{
1990
1991  ;
1992  return 0;
1993}
1994_ACEOF
1995ac_clean_files_save=$ac_clean_files
1996ac_clean_files="$ac_clean_files a.out a.exe b.out"
1997# Try to create an executable without -o first, disregard a.out.
1998# It will help us diagnose broken compilers, and finding out an intuition
1999# of exeext.
2000echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2001echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2002ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2003if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2004  (eval $ac_link_default) 2>&5
2005  ac_status=$?
2006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007  (exit $ac_status); }; then
2008  # Find the output, starting from the most likely.  This scheme is
2009# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2010# resort.
2011
2012# Be careful to initialize this variable, since it used to be cached.
2013# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2014ac_cv_exeext=
2015# b.out is created by i960 compilers.
2016for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2017do
2018  test -f "$ac_file" || continue
2019  case $ac_file in
2020    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2021	;;
2022    conftest.$ac_ext )
2023	# This is the source file.
2024	;;
2025    [ab].out )
2026	# We found the default executable, but exeext='' is most
2027	# certainly right.
2028	break;;
2029    *.* )
2030	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2031	# FIXME: I believe we export ac_cv_exeext for Libtool,
2032	# but it would be cool to find out if it's true.  Does anybody
2033	# maintain Libtool? --akim.
2034	export ac_cv_exeext
2035	break;;
2036    * )
2037	break;;
2038  esac
2039done
2040else
2041  echo "$as_me: failed program was:" >&5
2042sed 's/^/| /' conftest.$ac_ext >&5
2043
2044{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2045See \`config.log' for more details." >&5
2046echo "$as_me: error: C compiler cannot create executables
2047See \`config.log' for more details." >&2;}
2048   { (exit 77); exit 77; }; }
2049fi
2050
2051ac_exeext=$ac_cv_exeext
2052echo "$as_me:$LINENO: result: $ac_file" >&5
2053echo "${ECHO_T}$ac_file" >&6
2054
2055# Check the compiler produces executables we can run.  If not, either
2056# the compiler is broken, or we cross compile.
2057echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2058echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2059# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2060# If not cross compiling, check that we can run a simple program.
2061if test "$cross_compiling" != yes; then
2062  if { ac_try='./$ac_file'
2063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064  (eval $ac_try) 2>&5
2065  ac_status=$?
2066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067  (exit $ac_status); }; }; then
2068    cross_compiling=no
2069  else
2070    if test "$cross_compiling" = maybe; then
2071	cross_compiling=yes
2072    else
2073	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2074If you meant to cross compile, use \`--host'.
2075See \`config.log' for more details." >&5
2076echo "$as_me: error: cannot run C compiled programs.
2077If you meant to cross compile, use \`--host'.
2078See \`config.log' for more details." >&2;}
2079   { (exit 1); exit 1; }; }
2080    fi
2081  fi
2082fi
2083echo "$as_me:$LINENO: result: yes" >&5
2084echo "${ECHO_T}yes" >&6
2085
2086rm -f a.out a.exe conftest$ac_cv_exeext b.out
2087ac_clean_files=$ac_clean_files_save
2088# Check the compiler produces executables we can run.  If not, either
2089# the compiler is broken, or we cross compile.
2090echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2091echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2092echo "$as_me:$LINENO: result: $cross_compiling" >&5
2093echo "${ECHO_T}$cross_compiling" >&6
2094
2095echo "$as_me:$LINENO: checking for suffix of executables" >&5
2096echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2098  (eval $ac_link) 2>&5
2099  ac_status=$?
2100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101  (exit $ac_status); }; then
2102  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2103# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2104# work properly (i.e., refer to `conftest.exe'), while it won't with
2105# `rm'.
2106for ac_file in conftest.exe conftest conftest.*; do
2107  test -f "$ac_file" || continue
2108  case $ac_file in
2109    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2110    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2111	  export ac_cv_exeext
2112	  break;;
2113    * ) break;;
2114  esac
2115done
2116else
2117  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2118See \`config.log' for more details." >&5
2119echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2120See \`config.log' for more details." >&2;}
2121   { (exit 1); exit 1; }; }
2122fi
2123
2124rm -f conftest$ac_cv_exeext
2125echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2126echo "${ECHO_T}$ac_cv_exeext" >&6
2127
2128rm -f conftest.$ac_ext
2129EXEEXT=$ac_cv_exeext
2130ac_exeext=$EXEEXT
2131echo "$as_me:$LINENO: checking for suffix of object files" >&5
2132echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2133if test "${ac_cv_objext+set}" = set; then
2134  echo $ECHO_N "(cached) $ECHO_C" >&6
2135else
2136  cat >conftest.$ac_ext <<_ACEOF
2137/* confdefs.h.  */
2138_ACEOF
2139cat confdefs.h >>conftest.$ac_ext
2140cat >>conftest.$ac_ext <<_ACEOF
2141/* end confdefs.h.  */
2142
2143int
2144main ()
2145{
2146
2147  ;
2148  return 0;
2149}
2150_ACEOF
2151rm -f conftest.o conftest.obj
2152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153  (eval $ac_compile) 2>&5
2154  ac_status=$?
2155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156  (exit $ac_status); }; then
2157  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2158  case $ac_file in
2159    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2160    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2161       break;;
2162  esac
2163done
2164else
2165  echo "$as_me: failed program was:" >&5
2166sed 's/^/| /' conftest.$ac_ext >&5
2167
2168{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2169See \`config.log' for more details." >&5
2170echo "$as_me: error: cannot compute suffix of object files: cannot compile
2171See \`config.log' for more details." >&2;}
2172   { (exit 1); exit 1; }; }
2173fi
2174
2175rm -f conftest.$ac_cv_objext conftest.$ac_ext
2176fi
2177echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2178echo "${ECHO_T}$ac_cv_objext" >&6
2179OBJEXT=$ac_cv_objext
2180ac_objext=$OBJEXT
2181echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2182echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2183if test "${ac_cv_c_compiler_gnu+set}" = set; then
2184  echo $ECHO_N "(cached) $ECHO_C" >&6
2185else
2186  cat >conftest.$ac_ext <<_ACEOF
2187/* confdefs.h.  */
2188_ACEOF
2189cat confdefs.h >>conftest.$ac_ext
2190cat >>conftest.$ac_ext <<_ACEOF
2191/* end confdefs.h.  */
2192
2193int
2194main ()
2195{
2196#ifndef __GNUC__
2197       choke me
2198#endif
2199
2200  ;
2201  return 0;
2202}
2203_ACEOF
2204rm -f conftest.$ac_objext
2205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206  (eval $ac_compile) 2>conftest.er1
2207  ac_status=$?
2208  grep -v '^ *+' conftest.er1 >conftest.err
2209  rm -f conftest.er1
2210  cat conftest.err >&5
2211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212  (exit $ac_status); } &&
2213	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215  (eval $ac_try) 2>&5
2216  ac_status=$?
2217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218  (exit $ac_status); }; } &&
2219	 { ac_try='test -s conftest.$ac_objext'
2220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221  (eval $ac_try) 2>&5
2222  ac_status=$?
2223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224  (exit $ac_status); }; }; then
2225  ac_compiler_gnu=yes
2226else
2227  echo "$as_me: failed program was:" >&5
2228sed 's/^/| /' conftest.$ac_ext >&5
2229
2230ac_compiler_gnu=no
2231fi
2232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2233ac_cv_c_compiler_gnu=$ac_compiler_gnu
2234
2235fi
2236echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2237echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2238GCC=`test $ac_compiler_gnu = yes && echo yes`
2239ac_test_CFLAGS=${CFLAGS+set}
2240ac_save_CFLAGS=$CFLAGS
2241CFLAGS="-g"
2242echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2243echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2244if test "${ac_cv_prog_cc_g+set}" = set; then
2245  echo $ECHO_N "(cached) $ECHO_C" >&6
2246else
2247  cat >conftest.$ac_ext <<_ACEOF
2248/* confdefs.h.  */
2249_ACEOF
2250cat confdefs.h >>conftest.$ac_ext
2251cat >>conftest.$ac_ext <<_ACEOF
2252/* end confdefs.h.  */
2253
2254int
2255main ()
2256{
2257
2258  ;
2259  return 0;
2260}
2261_ACEOF
2262rm -f conftest.$ac_objext
2263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264  (eval $ac_compile) 2>conftest.er1
2265  ac_status=$?
2266  grep -v '^ *+' conftest.er1 >conftest.err
2267  rm -f conftest.er1
2268  cat conftest.err >&5
2269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270  (exit $ac_status); } &&
2271	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273  (eval $ac_try) 2>&5
2274  ac_status=$?
2275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276  (exit $ac_status); }; } &&
2277	 { ac_try='test -s conftest.$ac_objext'
2278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279  (eval $ac_try) 2>&5
2280  ac_status=$?
2281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282  (exit $ac_status); }; }; then
2283  ac_cv_prog_cc_g=yes
2284else
2285  echo "$as_me: failed program was:" >&5
2286sed 's/^/| /' conftest.$ac_ext >&5
2287
2288ac_cv_prog_cc_g=no
2289fi
2290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2291fi
2292echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2293echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2294if test "$ac_test_CFLAGS" = set; then
2295  CFLAGS=$ac_save_CFLAGS
2296elif test $ac_cv_prog_cc_g = yes; then
2297  if test "$GCC" = yes; then
2298    CFLAGS="-g -O2"
2299  else
2300    CFLAGS="-g"
2301  fi
2302else
2303  if test "$GCC" = yes; then
2304    CFLAGS="-O2"
2305  else
2306    CFLAGS=
2307  fi
2308fi
2309echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2310echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2311if test "${ac_cv_prog_cc_stdc+set}" = set; then
2312  echo $ECHO_N "(cached) $ECHO_C" >&6
2313else
2314  ac_cv_prog_cc_stdc=no
2315ac_save_CC=$CC
2316cat >conftest.$ac_ext <<_ACEOF
2317/* confdefs.h.  */
2318_ACEOF
2319cat confdefs.h >>conftest.$ac_ext
2320cat >>conftest.$ac_ext <<_ACEOF
2321/* end confdefs.h.  */
2322#include <stdarg.h>
2323#include <stdio.h>
2324#include <sys/types.h>
2325#include <sys/stat.h>
2326/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2327struct buf { int x; };
2328FILE * (*rcsopen) (struct buf *, struct stat *, int);
2329static char *e (p, i)
2330     char **p;
2331     int i;
2332{
2333  return p[i];
2334}
2335static char *f (char * (*g) (char **, int), char **p, ...)
2336{
2337  char *s;
2338  va_list v;
2339  va_start (v,p);
2340  s = g (p, va_arg (v,int));
2341  va_end (v);
2342  return s;
2343}
2344
2345/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2346   function prototypes and stuff, but not '\xHH' hex character constants.
2347   These don't provoke an error unfortunately, instead are silently treated
2348   as 'x'.  The following induces an error, until -std1 is added to get
2349   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2350   array size at least.  It's necessary to write '\x00'==0 to get something
2351   that's true only with -std1.  */
2352int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2353
2354int test (int i, double x);
2355struct s1 {int (*f) (int a);};
2356struct s2 {int (*f) (double a);};
2357int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2358int argc;
2359char **argv;
2360int
2361main ()
2362{
2363return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2364  ;
2365  return 0;
2366}
2367_ACEOF
2368# Don't try gcc -ansi; that turns off useful extensions and
2369# breaks some systems' header files.
2370# AIX			-qlanglvl=ansi
2371# Ultrix and OSF/1	-std1
2372# HP-UX 10.20 and later	-Ae
2373# HP-UX older versions	-Aa -D_HPUX_SOURCE
2374# SVR4			-Xc -D__EXTENSIONS__
2375for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2376do
2377  CC="$ac_save_CC $ac_arg"
2378  rm -f conftest.$ac_objext
2379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380  (eval $ac_compile) 2>conftest.er1
2381  ac_status=$?
2382  grep -v '^ *+' conftest.er1 >conftest.err
2383  rm -f conftest.er1
2384  cat conftest.err >&5
2385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386  (exit $ac_status); } &&
2387	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389  (eval $ac_try) 2>&5
2390  ac_status=$?
2391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392  (exit $ac_status); }; } &&
2393	 { ac_try='test -s conftest.$ac_objext'
2394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395  (eval $ac_try) 2>&5
2396  ac_status=$?
2397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398  (exit $ac_status); }; }; then
2399  ac_cv_prog_cc_stdc=$ac_arg
2400break
2401else
2402  echo "$as_me: failed program was:" >&5
2403sed 's/^/| /' conftest.$ac_ext >&5
2404
2405fi
2406rm -f conftest.err conftest.$ac_objext
2407done
2408rm -f conftest.$ac_ext conftest.$ac_objext
2409CC=$ac_save_CC
2410
2411fi
2412
2413case "x$ac_cv_prog_cc_stdc" in
2414  x|xno)
2415    echo "$as_me:$LINENO: result: none needed" >&5
2416echo "${ECHO_T}none needed" >&6 ;;
2417  *)
2418    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2419echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2420    CC="$CC $ac_cv_prog_cc_stdc" ;;
2421esac
2422
2423# Some people use a C++ compiler to compile C.  Since we use `exit',
2424# in C++ we need to declare it.  In case someone uses the same compiler
2425# for both compiling C and C++ we need to have the C++ compiler decide
2426# the declaration of exit, since it's the most demanding environment.
2427cat >conftest.$ac_ext <<_ACEOF
2428@%:@ifndef __cplusplus
2429  choke me
2430@%:@endif
2431_ACEOF
2432rm -f conftest.$ac_objext
2433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434  (eval $ac_compile) 2>conftest.er1
2435  ac_status=$?
2436  grep -v '^ *+' conftest.er1 >conftest.err
2437  rm -f conftest.er1
2438  cat conftest.err >&5
2439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440  (exit $ac_status); } &&
2441	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443  (eval $ac_try) 2>&5
2444  ac_status=$?
2445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446  (exit $ac_status); }; } &&
2447	 { ac_try='test -s conftest.$ac_objext'
2448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449  (eval $ac_try) 2>&5
2450  ac_status=$?
2451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452  (exit $ac_status); }; }; then
2453  for ac_declaration in \
2454   '' \
2455   'extern "C" void std::exit (int) throw (); using std::exit;' \
2456   'extern "C" void std::exit (int); using std::exit;' \
2457   'extern "C" void exit (int) throw ();' \
2458   'extern "C" void exit (int);' \
2459   'void exit (int);'
2460do
2461  cat >conftest.$ac_ext <<_ACEOF
2462/* confdefs.h.  */
2463_ACEOF
2464cat confdefs.h >>conftest.$ac_ext
2465cat >>conftest.$ac_ext <<_ACEOF
2466/* end confdefs.h.  */
2467$ac_declaration
2468@%:@include <stdlib.h>
2469int
2470main ()
2471{
2472exit (42);
2473  ;
2474  return 0;
2475}
2476_ACEOF
2477rm -f conftest.$ac_objext
2478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2479  (eval $ac_compile) 2>conftest.er1
2480  ac_status=$?
2481  grep -v '^ *+' conftest.er1 >conftest.err
2482  rm -f conftest.er1
2483  cat conftest.err >&5
2484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485  (exit $ac_status); } &&
2486	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488  (eval $ac_try) 2>&5
2489  ac_status=$?
2490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491  (exit $ac_status); }; } &&
2492	 { ac_try='test -s conftest.$ac_objext'
2493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494  (eval $ac_try) 2>&5
2495  ac_status=$?
2496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497  (exit $ac_status); }; }; then
2498  :
2499else
2500  echo "$as_me: failed program was:" >&5
2501sed 's/^/| /' conftest.$ac_ext >&5
2502
2503continue
2504fi
2505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2506  cat >conftest.$ac_ext <<_ACEOF
2507/* confdefs.h.  */
2508_ACEOF
2509cat confdefs.h >>conftest.$ac_ext
2510cat >>conftest.$ac_ext <<_ACEOF
2511/* end confdefs.h.  */
2512$ac_declaration
2513int
2514main ()
2515{
2516exit (42);
2517  ;
2518  return 0;
2519}
2520_ACEOF
2521rm -f conftest.$ac_objext
2522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523  (eval $ac_compile) 2>conftest.er1
2524  ac_status=$?
2525  grep -v '^ *+' conftest.er1 >conftest.err
2526  rm -f conftest.er1
2527  cat conftest.err >&5
2528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529  (exit $ac_status); } &&
2530	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532  (eval $ac_try) 2>&5
2533  ac_status=$?
2534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535  (exit $ac_status); }; } &&
2536	 { ac_try='test -s conftest.$ac_objext'
2537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538  (eval $ac_try) 2>&5
2539  ac_status=$?
2540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541  (exit $ac_status); }; }; then
2542  break
2543else
2544  echo "$as_me: failed program was:" >&5
2545sed 's/^/| /' conftest.$ac_ext >&5
2546
2547fi
2548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549done
2550rm -f conftest*
2551if test -n "$ac_declaration"; then
2552  echo '#ifdef __cplusplus' >>confdefs.h
2553  echo $ac_declaration      >>confdefs.h
2554  echo '#endif'             >>confdefs.h
2555fi
2556
2557else
2558  echo "$as_me: failed program was:" >&5
2559sed 's/^/| /' conftest.$ac_ext >&5
2560
2561fi
2562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2563ac_ext=c
2564ac_cpp='$CPP $CPPFLAGS'
2565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568
2569
2570
2571        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2572echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2573if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2574  echo $ECHO_N "(cached) $ECHO_C" >&6
2575else
2576  ac_check_lib_save_LIBS=$LIBS
2577LIBS="-lcposix  $LIBS"
2578cat >conftest.$ac_ext <<_ACEOF
2579/* confdefs.h.  */
2580_ACEOF
2581cat confdefs.h >>conftest.$ac_ext
2582cat >>conftest.$ac_ext <<_ACEOF
2583/* end confdefs.h.  */
2584
2585/* Override any gcc2 internal prototype to avoid an error.  */
2586#ifdef __cplusplus
2587extern "C"
2588#endif
2589/* We use char because int might match the return type of a gcc2
2590   builtin and then its argument prototype would still apply.  */
2591char strerror ();
2592int
2593main ()
2594{
2595strerror ();
2596  ;
2597  return 0;
2598}
2599_ACEOF
2600rm -f conftest.$ac_objext conftest$ac_exeext
2601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2602  (eval $ac_link) 2>conftest.er1
2603  ac_status=$?
2604  grep -v '^ *+' conftest.er1 >conftest.err
2605  rm -f conftest.er1
2606  cat conftest.err >&5
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); } &&
2609	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611  (eval $ac_try) 2>&5
2612  ac_status=$?
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); }; } &&
2615	 { ac_try='test -s conftest$ac_exeext'
2616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617  (eval $ac_try) 2>&5
2618  ac_status=$?
2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620  (exit $ac_status); }; }; then
2621  ac_cv_lib_cposix_strerror=yes
2622else
2623  echo "$as_me: failed program was:" >&5
2624sed 's/^/| /' conftest.$ac_ext >&5
2625
2626ac_cv_lib_cposix_strerror=no
2627fi
2628rm -f conftest.err conftest.$ac_objext \
2629      conftest$ac_exeext conftest.$ac_ext
2630LIBS=$ac_check_lib_save_LIBS
2631fi
2632echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2633echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2634if test $ac_cv_lib_cposix_strerror = yes; then
2635  LIBS="$LIBS -lcposix"
2636fi
2637
2638
2639
2640ac_ext=cc
2641ac_cpp='$CXXCPP $CPPFLAGS'
2642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2645
2646
2647ac_ext=c
2648ac_cpp='$CPP $CPPFLAGS'
2649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652if test -n "$ac_tool_prefix"; then
2653  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2654set dummy ${ac_tool_prefix}gcc; ac_word=$2
2655echo "$as_me:$LINENO: checking for $ac_word" >&5
2656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2657if test "${ac_cv_prog_CC+set}" = set; then
2658  echo $ECHO_N "(cached) $ECHO_C" >&6
2659else
2660  if test -n "$CC"; then
2661  ac_cv_prog_CC="$CC" # Let the user override the test.
2662else
2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664for as_dir in $PATH
2665do
2666  IFS=$as_save_IFS
2667  test -z "$as_dir" && as_dir=.
2668  for ac_exec_ext in '' $ac_executable_extensions; do
2669  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2670    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2671    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672    break 2
2673  fi
2674done
2675done
2676
2677fi
2678fi
2679CC=$ac_cv_prog_CC
2680if test -n "$CC"; then
2681  echo "$as_me:$LINENO: result: $CC" >&5
2682echo "${ECHO_T}$CC" >&6
2683else
2684  echo "$as_me:$LINENO: result: no" >&5
2685echo "${ECHO_T}no" >&6
2686fi
2687
2688fi
2689if test -z "$ac_cv_prog_CC"; then
2690  ac_ct_CC=$CC
2691  # Extract the first word of "gcc", so it can be a program name with args.
2692set dummy gcc; ac_word=$2
2693echo "$as_me:$LINENO: checking for $ac_word" >&5
2694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2696  echo $ECHO_N "(cached) $ECHO_C" >&6
2697else
2698  if test -n "$ac_ct_CC"; then
2699  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2700else
2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702for as_dir in $PATH
2703do
2704  IFS=$as_save_IFS
2705  test -z "$as_dir" && as_dir=.
2706  for ac_exec_ext in '' $ac_executable_extensions; do
2707  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708    ac_cv_prog_ac_ct_CC="gcc"
2709    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710    break 2
2711  fi
2712done
2713done
2714
2715fi
2716fi
2717ac_ct_CC=$ac_cv_prog_ac_ct_CC
2718if test -n "$ac_ct_CC"; then
2719  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2720echo "${ECHO_T}$ac_ct_CC" >&6
2721else
2722  echo "$as_me:$LINENO: result: no" >&5
2723echo "${ECHO_T}no" >&6
2724fi
2725
2726  CC=$ac_ct_CC
2727else
2728  CC="$ac_cv_prog_CC"
2729fi
2730
2731if test -z "$CC"; then
2732  if test -n "$ac_tool_prefix"; then
2733  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2734set dummy ${ac_tool_prefix}cc; ac_word=$2
2735echo "$as_me:$LINENO: checking for $ac_word" >&5
2736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2737if test "${ac_cv_prog_CC+set}" = set; then
2738  echo $ECHO_N "(cached) $ECHO_C" >&6
2739else
2740  if test -n "$CC"; then
2741  ac_cv_prog_CC="$CC" # Let the user override the test.
2742else
2743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744for as_dir in $PATH
2745do
2746  IFS=$as_save_IFS
2747  test -z "$as_dir" && as_dir=.
2748  for ac_exec_ext in '' $ac_executable_extensions; do
2749  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2750    ac_cv_prog_CC="${ac_tool_prefix}cc"
2751    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752    break 2
2753  fi
2754done
2755done
2756
2757fi
2758fi
2759CC=$ac_cv_prog_CC
2760if test -n "$CC"; then
2761  echo "$as_me:$LINENO: result: $CC" >&5
2762echo "${ECHO_T}$CC" >&6
2763else
2764  echo "$as_me:$LINENO: result: no" >&5
2765echo "${ECHO_T}no" >&6
2766fi
2767
2768fi
2769if test -z "$ac_cv_prog_CC"; then
2770  ac_ct_CC=$CC
2771  # Extract the first word of "cc", so it can be a program name with args.
2772set dummy cc; ac_word=$2
2773echo "$as_me:$LINENO: checking for $ac_word" >&5
2774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2776  echo $ECHO_N "(cached) $ECHO_C" >&6
2777else
2778  if test -n "$ac_ct_CC"; then
2779  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2780else
2781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782for as_dir in $PATH
2783do
2784  IFS=$as_save_IFS
2785  test -z "$as_dir" && as_dir=.
2786  for ac_exec_ext in '' $ac_executable_extensions; do
2787  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788    ac_cv_prog_ac_ct_CC="cc"
2789    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790    break 2
2791  fi
2792done
2793done
2794
2795fi
2796fi
2797ac_ct_CC=$ac_cv_prog_ac_ct_CC
2798if test -n "$ac_ct_CC"; then
2799  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2800echo "${ECHO_T}$ac_ct_CC" >&6
2801else
2802  echo "$as_me:$LINENO: result: no" >&5
2803echo "${ECHO_T}no" >&6
2804fi
2805
2806  CC=$ac_ct_CC
2807else
2808  CC="$ac_cv_prog_CC"
2809fi
2810
2811fi
2812if test -z "$CC"; then
2813  # Extract the first word of "cc", so it can be a program name with args.
2814set dummy cc; ac_word=$2
2815echo "$as_me:$LINENO: checking for $ac_word" >&5
2816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817if test "${ac_cv_prog_CC+set}" = set; then
2818  echo $ECHO_N "(cached) $ECHO_C" >&6
2819else
2820  if test -n "$CC"; then
2821  ac_cv_prog_CC="$CC" # Let the user override the test.
2822else
2823  ac_prog_rejected=no
2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825for as_dir in $PATH
2826do
2827  IFS=$as_save_IFS
2828  test -z "$as_dir" && as_dir=.
2829  for ac_exec_ext in '' $ac_executable_extensions; do
2830  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2832       ac_prog_rejected=yes
2833       continue
2834     fi
2835    ac_cv_prog_CC="cc"
2836    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837    break 2
2838  fi
2839done
2840done
2841
2842if test $ac_prog_rejected = yes; then
2843  # We found a bogon in the path, so make sure we never use it.
2844  set dummy $ac_cv_prog_CC
2845  shift
2846  if test $@%:@ != 0; then
2847    # We chose a different compiler from the bogus one.
2848    # However, it has the same basename, so the bogon will be chosen
2849    # first if we set CC to just the basename; use the full file name.
2850    shift
2851    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2852  fi
2853fi
2854fi
2855fi
2856CC=$ac_cv_prog_CC
2857if test -n "$CC"; then
2858  echo "$as_me:$LINENO: result: $CC" >&5
2859echo "${ECHO_T}$CC" >&6
2860else
2861  echo "$as_me:$LINENO: result: no" >&5
2862echo "${ECHO_T}no" >&6
2863fi
2864
2865fi
2866if test -z "$CC"; then
2867  if test -n "$ac_tool_prefix"; then
2868  for ac_prog in cl
2869  do
2870    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2871set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2872echo "$as_me:$LINENO: checking for $ac_word" >&5
2873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2874if test "${ac_cv_prog_CC+set}" = set; then
2875  echo $ECHO_N "(cached) $ECHO_C" >&6
2876else
2877  if test -n "$CC"; then
2878  ac_cv_prog_CC="$CC" # Let the user override the test.
2879else
2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881for as_dir in $PATH
2882do
2883  IFS=$as_save_IFS
2884  test -z "$as_dir" && as_dir=.
2885  for ac_exec_ext in '' $ac_executable_extensions; do
2886  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2888    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889    break 2
2890  fi
2891done
2892done
2893
2894fi
2895fi
2896CC=$ac_cv_prog_CC
2897if test -n "$CC"; then
2898  echo "$as_me:$LINENO: result: $CC" >&5
2899echo "${ECHO_T}$CC" >&6
2900else
2901  echo "$as_me:$LINENO: result: no" >&5
2902echo "${ECHO_T}no" >&6
2903fi
2904
2905    test -n "$CC" && break
2906  done
2907fi
2908if test -z "$CC"; then
2909  ac_ct_CC=$CC
2910  for ac_prog in cl
2911do
2912  # Extract the first word of "$ac_prog", so it can be a program name with args.
2913set dummy $ac_prog; ac_word=$2
2914echo "$as_me:$LINENO: checking for $ac_word" >&5
2915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2917  echo $ECHO_N "(cached) $ECHO_C" >&6
2918else
2919  if test -n "$ac_ct_CC"; then
2920  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2921else
2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH
2924do
2925  IFS=$as_save_IFS
2926  test -z "$as_dir" && as_dir=.
2927  for ac_exec_ext in '' $ac_executable_extensions; do
2928  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929    ac_cv_prog_ac_ct_CC="$ac_prog"
2930    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931    break 2
2932  fi
2933done
2934done
2935
2936fi
2937fi
2938ac_ct_CC=$ac_cv_prog_ac_ct_CC
2939if test -n "$ac_ct_CC"; then
2940  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2941echo "${ECHO_T}$ac_ct_CC" >&6
2942else
2943  echo "$as_me:$LINENO: result: no" >&5
2944echo "${ECHO_T}no" >&6
2945fi
2946
2947  test -n "$ac_ct_CC" && break
2948done
2949
2950  CC=$ac_ct_CC
2951fi
2952
2953fi
2954
2955
2956test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2957See \`config.log' for more details." >&5
2958echo "$as_me: error: no acceptable C compiler found in \$PATH
2959See \`config.log' for more details." >&2;}
2960   { (exit 1); exit 1; }; }
2961
2962# Provide some information about the compiler.
2963echo "$as_me:$LINENO:" \
2964     "checking for C compiler version" >&5
2965ac_compiler=`set X $ac_compile; echo $2`
2966{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2967  (eval $ac_compiler --version </dev/null >&5) 2>&5
2968  ac_status=$?
2969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970  (exit $ac_status); }
2971{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2972  (eval $ac_compiler -v </dev/null >&5) 2>&5
2973  ac_status=$?
2974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975  (exit $ac_status); }
2976{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2977  (eval $ac_compiler -V </dev/null >&5) 2>&5
2978  ac_status=$?
2979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980  (exit $ac_status); }
2981
2982echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2983echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2984if test "${ac_cv_c_compiler_gnu+set}" = set; then
2985  echo $ECHO_N "(cached) $ECHO_C" >&6
2986else
2987  cat >conftest.$ac_ext <<_ACEOF
2988/* confdefs.h.  */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h.  */
2993
2994int
2995main ()
2996{
2997#ifndef __GNUC__
2998       choke me
2999#endif
3000
3001  ;
3002  return 0;
3003}
3004_ACEOF
3005rm -f conftest.$ac_objext
3006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3007  (eval $ac_compile) 2>conftest.er1
3008  ac_status=$?
3009  grep -v '^ *+' conftest.er1 >conftest.err
3010  rm -f conftest.er1
3011  cat conftest.err >&5
3012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013  (exit $ac_status); } &&
3014	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016  (eval $ac_try) 2>&5
3017  ac_status=$?
3018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019  (exit $ac_status); }; } &&
3020	 { ac_try='test -s conftest.$ac_objext'
3021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022  (eval $ac_try) 2>&5
3023  ac_status=$?
3024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025  (exit $ac_status); }; }; then
3026  ac_compiler_gnu=yes
3027else
3028  echo "$as_me: failed program was:" >&5
3029sed 's/^/| /' conftest.$ac_ext >&5
3030
3031ac_compiler_gnu=no
3032fi
3033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3034ac_cv_c_compiler_gnu=$ac_compiler_gnu
3035
3036fi
3037echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3038echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3039GCC=`test $ac_compiler_gnu = yes && echo yes`
3040ac_test_CFLAGS=${CFLAGS+set}
3041ac_save_CFLAGS=$CFLAGS
3042CFLAGS="-g"
3043echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3044echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3045if test "${ac_cv_prog_cc_g+set}" = set; then
3046  echo $ECHO_N "(cached) $ECHO_C" >&6
3047else
3048  cat >conftest.$ac_ext <<_ACEOF
3049/* confdefs.h.  */
3050_ACEOF
3051cat confdefs.h >>conftest.$ac_ext
3052cat >>conftest.$ac_ext <<_ACEOF
3053/* end confdefs.h.  */
3054
3055int
3056main ()
3057{
3058
3059  ;
3060  return 0;
3061}
3062_ACEOF
3063rm -f conftest.$ac_objext
3064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3065  (eval $ac_compile) 2>conftest.er1
3066  ac_status=$?
3067  grep -v '^ *+' conftest.er1 >conftest.err
3068  rm -f conftest.er1
3069  cat conftest.err >&5
3070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071  (exit $ac_status); } &&
3072	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074  (eval $ac_try) 2>&5
3075  ac_status=$?
3076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077  (exit $ac_status); }; } &&
3078	 { ac_try='test -s conftest.$ac_objext'
3079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080  (eval $ac_try) 2>&5
3081  ac_status=$?
3082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083  (exit $ac_status); }; }; then
3084  ac_cv_prog_cc_g=yes
3085else
3086  echo "$as_me: failed program was:" >&5
3087sed 's/^/| /' conftest.$ac_ext >&5
3088
3089ac_cv_prog_cc_g=no
3090fi
3091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3092fi
3093echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3094echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3095if test "$ac_test_CFLAGS" = set; then
3096  CFLAGS=$ac_save_CFLAGS
3097elif test $ac_cv_prog_cc_g = yes; then
3098  if test "$GCC" = yes; then
3099    CFLAGS="-g -O2"
3100  else
3101    CFLAGS="-g"
3102  fi
3103else
3104  if test "$GCC" = yes; then
3105    CFLAGS="-O2"
3106  else
3107    CFLAGS=
3108  fi
3109fi
3110echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3111echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3112if test "${ac_cv_prog_cc_stdc+set}" = set; then
3113  echo $ECHO_N "(cached) $ECHO_C" >&6
3114else
3115  ac_cv_prog_cc_stdc=no
3116ac_save_CC=$CC
3117cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h.  */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h.  */
3123#include <stdarg.h>
3124#include <stdio.h>
3125#include <sys/types.h>
3126#include <sys/stat.h>
3127/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3128struct buf { int x; };
3129FILE * (*rcsopen) (struct buf *, struct stat *, int);
3130static char *e (p, i)
3131     char **p;
3132     int i;
3133{
3134  return p[i];
3135}
3136static char *f (char * (*g) (char **, int), char **p, ...)
3137{
3138  char *s;
3139  va_list v;
3140  va_start (v,p);
3141  s = g (p, va_arg (v,int));
3142  va_end (v);
3143  return s;
3144}
3145
3146/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3147   function prototypes and stuff, but not '\xHH' hex character constants.
3148   These don't provoke an error unfortunately, instead are silently treated
3149   as 'x'.  The following induces an error, until -std1 is added to get
3150   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3151   array size at least.  It's necessary to write '\x00'==0 to get something
3152   that's true only with -std1.  */
3153int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3154
3155int test (int i, double x);
3156struct s1 {int (*f) (int a);};
3157struct s2 {int (*f) (double a);};
3158int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3159int argc;
3160char **argv;
3161int
3162main ()
3163{
3164return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3165  ;
3166  return 0;
3167}
3168_ACEOF
3169# Don't try gcc -ansi; that turns off useful extensions and
3170# breaks some systems' header files.
3171# AIX			-qlanglvl=ansi
3172# Ultrix and OSF/1	-std1
3173# HP-UX 10.20 and later	-Ae
3174# HP-UX older versions	-Aa -D_HPUX_SOURCE
3175# SVR4			-Xc -D__EXTENSIONS__
3176for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3177do
3178  CC="$ac_save_CC $ac_arg"
3179  rm -f conftest.$ac_objext
3180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3181  (eval $ac_compile) 2>conftest.er1
3182  ac_status=$?
3183  grep -v '^ *+' conftest.er1 >conftest.err
3184  rm -f conftest.er1
3185  cat conftest.err >&5
3186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187  (exit $ac_status); } &&
3188	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190  (eval $ac_try) 2>&5
3191  ac_status=$?
3192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193  (exit $ac_status); }; } &&
3194	 { ac_try='test -s conftest.$ac_objext'
3195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196  (eval $ac_try) 2>&5
3197  ac_status=$?
3198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199  (exit $ac_status); }; }; then
3200  ac_cv_prog_cc_stdc=$ac_arg
3201break
3202else
3203  echo "$as_me: failed program was:" >&5
3204sed 's/^/| /' conftest.$ac_ext >&5
3205
3206fi
3207rm -f conftest.err conftest.$ac_objext
3208done
3209rm -f conftest.$ac_ext conftest.$ac_objext
3210CC=$ac_save_CC
3211
3212fi
3213
3214case "x$ac_cv_prog_cc_stdc" in
3215  x|xno)
3216    echo "$as_me:$LINENO: result: none needed" >&5
3217echo "${ECHO_T}none needed" >&6 ;;
3218  *)
3219    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3220echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3221    CC="$CC $ac_cv_prog_cc_stdc" ;;
3222esac
3223
3224# Some people use a C++ compiler to compile C.  Since we use `exit',
3225# in C++ we need to declare it.  In case someone uses the same compiler
3226# for both compiling C and C++ we need to have the C++ compiler decide
3227# the declaration of exit, since it's the most demanding environment.
3228cat >conftest.$ac_ext <<_ACEOF
3229@%:@ifndef __cplusplus
3230  choke me
3231@%:@endif
3232_ACEOF
3233rm -f conftest.$ac_objext
3234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235  (eval $ac_compile) 2>conftest.er1
3236  ac_status=$?
3237  grep -v '^ *+' conftest.er1 >conftest.err
3238  rm -f conftest.er1
3239  cat conftest.err >&5
3240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241  (exit $ac_status); } &&
3242	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244  (eval $ac_try) 2>&5
3245  ac_status=$?
3246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247  (exit $ac_status); }; } &&
3248	 { ac_try='test -s conftest.$ac_objext'
3249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250  (eval $ac_try) 2>&5
3251  ac_status=$?
3252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253  (exit $ac_status); }; }; then
3254  for ac_declaration in \
3255   '' \
3256   'extern "C" void std::exit (int) throw (); using std::exit;' \
3257   'extern "C" void std::exit (int); using std::exit;' \
3258   'extern "C" void exit (int) throw ();' \
3259   'extern "C" void exit (int);' \
3260   'void exit (int);'
3261do
3262  cat >conftest.$ac_ext <<_ACEOF
3263/* confdefs.h.  */
3264_ACEOF
3265cat confdefs.h >>conftest.$ac_ext
3266cat >>conftest.$ac_ext <<_ACEOF
3267/* end confdefs.h.  */
3268$ac_declaration
3269@%:@include <stdlib.h>
3270int
3271main ()
3272{
3273exit (42);
3274  ;
3275  return 0;
3276}
3277_ACEOF
3278rm -f conftest.$ac_objext
3279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3280  (eval $ac_compile) 2>conftest.er1
3281  ac_status=$?
3282  grep -v '^ *+' conftest.er1 >conftest.err
3283  rm -f conftest.er1
3284  cat conftest.err >&5
3285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286  (exit $ac_status); } &&
3287	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289  (eval $ac_try) 2>&5
3290  ac_status=$?
3291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292  (exit $ac_status); }; } &&
3293	 { ac_try='test -s conftest.$ac_objext'
3294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295  (eval $ac_try) 2>&5
3296  ac_status=$?
3297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298  (exit $ac_status); }; }; then
3299  :
3300else
3301  echo "$as_me: failed program was:" >&5
3302sed 's/^/| /' conftest.$ac_ext >&5
3303
3304continue
3305fi
3306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3307  cat >conftest.$ac_ext <<_ACEOF
3308/* confdefs.h.  */
3309_ACEOF
3310cat confdefs.h >>conftest.$ac_ext
3311cat >>conftest.$ac_ext <<_ACEOF
3312/* end confdefs.h.  */
3313$ac_declaration
3314int
3315main ()
3316{
3317exit (42);
3318  ;
3319  return 0;
3320}
3321_ACEOF
3322rm -f conftest.$ac_objext
3323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3324  (eval $ac_compile) 2>conftest.er1
3325  ac_status=$?
3326  grep -v '^ *+' conftest.er1 >conftest.err
3327  rm -f conftest.er1
3328  cat conftest.err >&5
3329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330  (exit $ac_status); } &&
3331	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333  (eval $ac_try) 2>&5
3334  ac_status=$?
3335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336  (exit $ac_status); }; } &&
3337	 { ac_try='test -s conftest.$ac_objext'
3338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339  (eval $ac_try) 2>&5
3340  ac_status=$?
3341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342  (exit $ac_status); }; }; then
3343  break
3344else
3345  echo "$as_me: failed program was:" >&5
3346sed 's/^/| /' conftest.$ac_ext >&5
3347
3348fi
3349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3350done
3351rm -f conftest*
3352if test -n "$ac_declaration"; then
3353  echo '#ifdef __cplusplus' >>confdefs.h
3354  echo $ac_declaration      >>confdefs.h
3355  echo '#endif'             >>confdefs.h
3356fi
3357
3358else
3359  echo "$as_me: failed program was:" >&5
3360sed 's/^/| /' conftest.$ac_ext >&5
3361
3362fi
3363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3364ac_ext=cc
3365ac_cpp='$CXXCPP $CPPFLAGS'
3366ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3369
3370ac_ext=cc
3371ac_cpp='$CXXCPP $CPPFLAGS'
3372ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3375if test -n "$ac_tool_prefix"; then
3376  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3377  do
3378    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3379set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3380echo "$as_me:$LINENO: checking for $ac_word" >&5
3381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382if test "${ac_cv_prog_CXX+set}" = set; then
3383  echo $ECHO_N "(cached) $ECHO_C" >&6
3384else
3385  if test -n "$CXX"; then
3386  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3387else
3388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389for as_dir in $PATH
3390do
3391  IFS=$as_save_IFS
3392  test -z "$as_dir" && as_dir=.
3393  for ac_exec_ext in '' $ac_executable_extensions; do
3394  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3395    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3396    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397    break 2
3398  fi
3399done
3400done
3401
3402fi
3403fi
3404CXX=$ac_cv_prog_CXX
3405if test -n "$CXX"; then
3406  echo "$as_me:$LINENO: result: $CXX" >&5
3407echo "${ECHO_T}$CXX" >&6
3408else
3409  echo "$as_me:$LINENO: result: no" >&5
3410echo "${ECHO_T}no" >&6
3411fi
3412
3413    test -n "$CXX" && break
3414  done
3415fi
3416if test -z "$CXX"; then
3417  ac_ct_CXX=$CXX
3418  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3419do
3420  # Extract the first word of "$ac_prog", so it can be a program name with args.
3421set dummy $ac_prog; ac_word=$2
3422echo "$as_me:$LINENO: checking for $ac_word" >&5
3423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3424if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3425  echo $ECHO_N "(cached) $ECHO_C" >&6
3426else
3427  if test -n "$ac_ct_CXX"; then
3428  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3429else
3430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431for as_dir in $PATH
3432do
3433  IFS=$as_save_IFS
3434  test -z "$as_dir" && as_dir=.
3435  for ac_exec_ext in '' $ac_executable_extensions; do
3436  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437    ac_cv_prog_ac_ct_CXX="$ac_prog"
3438    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439    break 2
3440  fi
3441done
3442done
3443
3444fi
3445fi
3446ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3447if test -n "$ac_ct_CXX"; then
3448  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3449echo "${ECHO_T}$ac_ct_CXX" >&6
3450else
3451  echo "$as_me:$LINENO: result: no" >&5
3452echo "${ECHO_T}no" >&6
3453fi
3454
3455  test -n "$ac_ct_CXX" && break
3456done
3457test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3458
3459  CXX=$ac_ct_CXX
3460fi
3461
3462
3463# Provide some information about the compiler.
3464echo "$as_me:$LINENO:" \
3465     "checking for C++ compiler version" >&5
3466ac_compiler=`set X $ac_compile; echo $2`
3467{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3468  (eval $ac_compiler --version </dev/null >&5) 2>&5
3469  ac_status=$?
3470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471  (exit $ac_status); }
3472{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3473  (eval $ac_compiler -v </dev/null >&5) 2>&5
3474  ac_status=$?
3475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476  (exit $ac_status); }
3477{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3478  (eval $ac_compiler -V </dev/null >&5) 2>&5
3479  ac_status=$?
3480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481  (exit $ac_status); }
3482
3483echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3484echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3485if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3486  echo $ECHO_N "(cached) $ECHO_C" >&6
3487else
3488  cat >conftest.$ac_ext <<_ACEOF
3489/* confdefs.h.  */
3490_ACEOF
3491cat confdefs.h >>conftest.$ac_ext
3492cat >>conftest.$ac_ext <<_ACEOF
3493/* end confdefs.h.  */
3494
3495int
3496main ()
3497{
3498#ifndef __GNUC__
3499       choke me
3500#endif
3501
3502  ;
3503  return 0;
3504}
3505_ACEOF
3506rm -f conftest.$ac_objext
3507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508  (eval $ac_compile) 2>conftest.er1
3509  ac_status=$?
3510  grep -v '^ *+' conftest.er1 >conftest.err
3511  rm -f conftest.er1
3512  cat conftest.err >&5
3513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514  (exit $ac_status); } &&
3515	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
3516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517  (eval $ac_try) 2>&5
3518  ac_status=$?
3519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520  (exit $ac_status); }; } &&
3521	 { ac_try='test -s conftest.$ac_objext'
3522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523  (eval $ac_try) 2>&5
3524  ac_status=$?
3525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526  (exit $ac_status); }; }; then
3527  ac_compiler_gnu=yes
3528else
3529  echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
3532ac_compiler_gnu=no
3533fi
3534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3535ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3536
3537fi
3538echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3539echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3540GXX=`test $ac_compiler_gnu = yes && echo yes`
3541ac_test_CXXFLAGS=${CXXFLAGS+set}
3542ac_save_CXXFLAGS=$CXXFLAGS
3543CXXFLAGS="-g"
3544echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3545echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3546if test "${ac_cv_prog_cxx_g+set}" = set; then
3547  echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549  cat >conftest.$ac_ext <<_ACEOF
3550/* confdefs.h.  */
3551_ACEOF
3552cat confdefs.h >>conftest.$ac_ext
3553cat >>conftest.$ac_ext <<_ACEOF
3554/* end confdefs.h.  */
3555
3556int
3557main ()
3558{
3559
3560  ;
3561  return 0;
3562}
3563_ACEOF
3564rm -f conftest.$ac_objext
3565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566  (eval $ac_compile) 2>conftest.er1
3567  ac_status=$?
3568  grep -v '^ *+' conftest.er1 >conftest.err
3569  rm -f conftest.er1
3570  cat conftest.err >&5
3571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572  (exit $ac_status); } &&
3573	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
3574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575  (eval $ac_try) 2>&5
3576  ac_status=$?
3577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578  (exit $ac_status); }; } &&
3579	 { ac_try='test -s conftest.$ac_objext'
3580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581  (eval $ac_try) 2>&5
3582  ac_status=$?
3583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584  (exit $ac_status); }; }; then
3585  ac_cv_prog_cxx_g=yes
3586else
3587  echo "$as_me: failed program was:" >&5
3588sed 's/^/| /' conftest.$ac_ext >&5
3589
3590ac_cv_prog_cxx_g=no
3591fi
3592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3593fi
3594echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3595echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3596if test "$ac_test_CXXFLAGS" = set; then
3597  CXXFLAGS=$ac_save_CXXFLAGS
3598elif test $ac_cv_prog_cxx_g = yes; then
3599  if test "$GXX" = yes; then
3600    CXXFLAGS="-g -O2"
3601  else
3602    CXXFLAGS="-g"
3603  fi
3604else
3605  if test "$GXX" = yes; then
3606    CXXFLAGS="-O2"
3607  else
3608    CXXFLAGS=
3609  fi
3610fi
3611for ac_declaration in \
3612   '' \
3613   'extern "C" void std::exit (int) throw (); using std::exit;' \
3614   'extern "C" void std::exit (int); using std::exit;' \
3615   'extern "C" void exit (int) throw ();' \
3616   'extern "C" void exit (int);' \
3617   'void exit (int);'
3618do
3619  cat >conftest.$ac_ext <<_ACEOF
3620/* confdefs.h.  */
3621_ACEOF
3622cat confdefs.h >>conftest.$ac_ext
3623cat >>conftest.$ac_ext <<_ACEOF
3624/* end confdefs.h.  */
3625$ac_declaration
3626@%:@include <stdlib.h>
3627int
3628main ()
3629{
3630exit (42);
3631  ;
3632  return 0;
3633}
3634_ACEOF
3635rm -f conftest.$ac_objext
3636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3637  (eval $ac_compile) 2>conftest.er1
3638  ac_status=$?
3639  grep -v '^ *+' conftest.er1 >conftest.err
3640  rm -f conftest.er1
3641  cat conftest.err >&5
3642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643  (exit $ac_status); } &&
3644	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
3645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646  (eval $ac_try) 2>&5
3647  ac_status=$?
3648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649  (exit $ac_status); }; } &&
3650	 { ac_try='test -s conftest.$ac_objext'
3651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652  (eval $ac_try) 2>&5
3653  ac_status=$?
3654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655  (exit $ac_status); }; }; then
3656  :
3657else
3658  echo "$as_me: failed program was:" >&5
3659sed 's/^/| /' conftest.$ac_ext >&5
3660
3661continue
3662fi
3663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3664  cat >conftest.$ac_ext <<_ACEOF
3665/* confdefs.h.  */
3666_ACEOF
3667cat confdefs.h >>conftest.$ac_ext
3668cat >>conftest.$ac_ext <<_ACEOF
3669/* end confdefs.h.  */
3670$ac_declaration
3671int
3672main ()
3673{
3674exit (42);
3675  ;
3676  return 0;
3677}
3678_ACEOF
3679rm -f conftest.$ac_objext
3680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681  (eval $ac_compile) 2>conftest.er1
3682  ac_status=$?
3683  grep -v '^ *+' conftest.er1 >conftest.err
3684  rm -f conftest.er1
3685  cat conftest.err >&5
3686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687  (exit $ac_status); } &&
3688	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
3689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690  (eval $ac_try) 2>&5
3691  ac_status=$?
3692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693  (exit $ac_status); }; } &&
3694	 { ac_try='test -s conftest.$ac_objext'
3695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696  (eval $ac_try) 2>&5
3697  ac_status=$?
3698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699  (exit $ac_status); }; }; then
3700  break
3701else
3702  echo "$as_me: failed program was:" >&5
3703sed 's/^/| /' conftest.$ac_ext >&5
3704
3705fi
3706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3707done
3708rm -f conftest*
3709if test -n "$ac_declaration"; then
3710  echo '#ifdef __cplusplus' >>confdefs.h
3711  echo $ac_declaration      >>confdefs.h
3712  echo '#endif'             >>confdefs.h
3713fi
3714
3715ac_ext=cc
3716ac_cpp='$CXXCPP $CPPFLAGS'
3717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3720
3721# Find a good install program.  We prefer a C program (faster),
3722# so one script is as good as another.  But avoid the broken or
3723# incompatible versions:
3724# SysV /etc/install, /usr/sbin/install
3725# SunOS /usr/etc/install
3726# IRIX /sbin/install
3727# AIX /bin/install
3728# AmigaOS /C/install, which installs bootblocks on floppy discs
3729# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3730# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3731# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3732# OS/2's system install, which has a completely different semantic
3733# ./install, which can be erroneously created by make from ./install.sh.
3734echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3735echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3736if test -z "$INSTALL"; then
3737if test "${ac_cv_path_install+set}" = set; then
3738  echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741for as_dir in $PATH
3742do
3743  IFS=$as_save_IFS
3744  test -z "$as_dir" && as_dir=.
3745  # Account for people who put trailing slashes in PATH elements.
3746case $as_dir/ in
3747  ./ | .// | /cC/* | \
3748  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3749  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3750  /usr/ucb/* ) ;;
3751  *)
3752    # OSF1 and SCO ODT 3.0 have their own names for install.
3753    # Don't use installbsd from OSF since it installs stuff as root
3754    # by default.
3755    for ac_prog in ginstall scoinst install; do
3756      for ac_exec_ext in '' $ac_executable_extensions; do
3757	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3758	  if test $ac_prog = install &&
3759	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3760	    # AIX install.  It has an incompatible calling convention.
3761	    :
3762	  elif test $ac_prog = install &&
3763	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3764	    # program-specific install script used by HP pwplus--don't use.
3765	    :
3766	  else
3767	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3768	    break 3
3769	  fi
3770	fi
3771      done
3772    done
3773    ;;
3774esac
3775done
3776
3777
3778fi
3779  if test "${ac_cv_path_install+set}" = set; then
3780    INSTALL=$ac_cv_path_install
3781  else
3782    # As a last resort, use the slow shell script.  We don't cache a
3783    # path for INSTALL within a source directory, because that will
3784    # break other packages using the cache if that directory is
3785    # removed, or if the path is relative.
3786    INSTALL=$ac_install_sh
3787  fi
3788fi
3789echo "$as_me:$LINENO: result: $INSTALL" >&5
3790echo "${ECHO_T}$INSTALL" >&6
3791
3792# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3793# It thinks the first close brace ends the variable substitution.
3794test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3795
3796test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3797
3798test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3799
3800
3801
3802
3803
3804echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3805echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3806if test "${am_cv_prog_cc_stdc+set}" = set; then
3807  echo $ECHO_N "(cached) $ECHO_C" >&6
3808else
3809  am_cv_prog_cc_stdc=no
3810ac_save_CC="$CC"
3811# Don't try gcc -ansi; that turns off useful extensions and
3812# breaks some systems' header files.
3813# AIX			-qlanglvl=ansi
3814# Ultrix and OSF/1	-std1
3815# HP-UX			-Aa -D_HPUX_SOURCE
3816# SVR4			-Xc -D__EXTENSIONS__
3817for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3818do
3819  CC="$ac_save_CC $ac_arg"
3820  cat >conftest.$ac_ext <<_ACEOF
3821/* confdefs.h.  */
3822_ACEOF
3823cat confdefs.h >>conftest.$ac_ext
3824cat >>conftest.$ac_ext <<_ACEOF
3825/* end confdefs.h.  */
3826#include <stdarg.h>
3827#include <stdio.h>
3828#include <sys/types.h>
3829#include <sys/stat.h>
3830/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3831struct buf { int x; };
3832FILE * (*rcsopen) (struct buf *, struct stat *, int);
3833static char *e (p, i)
3834     char **p;
3835     int i;
3836{
3837  return p[i];
3838}
3839static char *f (char * (*g) (char **, int), char **p, ...)
3840{
3841  char *s;
3842  va_list v;
3843  va_start (v,p);
3844  s = g (p, va_arg (v,int));
3845  va_end (v);
3846  return s;
3847}
3848int test (int i, double x);
3849struct s1 {int (*f) (int a);};
3850struct s2 {int (*f) (double a);};
3851int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3852int argc;
3853char **argv;
3854
3855int
3856main ()
3857{
3858
3859return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3860
3861  ;
3862  return 0;
3863}
3864_ACEOF
3865rm -f conftest.$ac_objext
3866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3867  (eval $ac_compile) 2>conftest.er1
3868  ac_status=$?
3869  grep -v '^ *+' conftest.er1 >conftest.err
3870  rm -f conftest.er1
3871  cat conftest.err >&5
3872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873  (exit $ac_status); } &&
3874	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
3875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876  (eval $ac_try) 2>&5
3877  ac_status=$?
3878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879  (exit $ac_status); }; } &&
3880	 { ac_try='test -s conftest.$ac_objext'
3881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882  (eval $ac_try) 2>&5
3883  ac_status=$?
3884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885  (exit $ac_status); }; }; then
3886  am_cv_prog_cc_stdc="$ac_arg"; break
3887else
3888  echo "$as_me: failed program was:" >&5
3889sed 's/^/| /' conftest.$ac_ext >&5
3890
3891fi
3892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3893done
3894CC="$ac_save_CC"
3895
3896fi
3897
3898if test -z "$am_cv_prog_cc_stdc"; then
3899  echo "$as_me:$LINENO: result: none needed" >&5
3900echo "${ECHO_T}none needed" >&6
3901else
3902  echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3903echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3904fi
3905case "x$am_cv_prog_cc_stdc" in
3906  x|xno) ;;
3907  *) CC="$CC $am_cv_prog_cc_stdc" ;;
3908esac
3909
3910echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3911echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3912set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3913if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3914  echo $ECHO_N "(cached) $ECHO_C" >&6
3915else
3916  cat >conftest.make <<\_ACEOF
3917all:
3918	@echo 'ac_maketemp="$(MAKE)"'
3919_ACEOF
3920# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3921eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3922if test -n "$ac_maketemp"; then
3923  eval ac_cv_prog_make_${ac_make}_set=yes
3924else
3925  eval ac_cv_prog_make_${ac_make}_set=no
3926fi
3927rm -f conftest.make
3928fi
3929if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3930  echo "$as_me:$LINENO: result: yes" >&5
3931echo "${ECHO_T}yes" >&6
3932  SET_MAKE=
3933else
3934  echo "$as_me:$LINENO: result: no" >&5
3935echo "${ECHO_T}no" >&6
3936  SET_MAKE="MAKE=${MAKE-make}"
3937fi
3938
3939
3940ac_ext=cc
3941ac_cpp='$CXXCPP $CPPFLAGS'
3942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3945echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3946echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3947if test -z "$CXXCPP"; then
3948  if test "${ac_cv_prog_CXXCPP+set}" = set; then
3949  echo $ECHO_N "(cached) $ECHO_C" >&6
3950else
3951      # Double quotes because CXXCPP needs to be expanded
3952    for CXXCPP in "$CXX -E" "/lib/cpp"
3953    do
3954      ac_preproc_ok=false
3955for ac_cxx_preproc_warn_flag in '' yes
3956do
3957  # Use a header file that comes with gcc, so configuring glibc
3958  # with a fresh cross-compiler works.
3959  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3960  # <limits.h> exists even on freestanding compilers.
3961  # On the NeXT, cc -E runs the code through the compiler's parser,
3962  # not just through cpp. "Syntax error" is here to catch this case.
3963  cat >conftest.$ac_ext <<_ACEOF
3964/* confdefs.h.  */
3965_ACEOF
3966cat confdefs.h >>conftest.$ac_ext
3967cat >>conftest.$ac_ext <<_ACEOF
3968/* end confdefs.h.  */
3969@%:@ifdef __STDC__
3970@%:@ include <limits.h>
3971@%:@else
3972@%:@ include <assert.h>
3973@%:@endif
3974		     Syntax error
3975_ACEOF
3976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3977  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3978  ac_status=$?
3979  grep -v '^ *+' conftest.er1 >conftest.err
3980  rm -f conftest.er1
3981  cat conftest.err >&5
3982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983  (exit $ac_status); } >/dev/null; then
3984  if test -s conftest.err; then
3985    ac_cpp_err=$ac_cxx_preproc_warn_flag
3986    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3987  else
3988    ac_cpp_err=
3989  fi
3990else
3991  ac_cpp_err=yes
3992fi
3993if test -z "$ac_cpp_err"; then
3994  :
3995else
3996  echo "$as_me: failed program was:" >&5
3997sed 's/^/| /' conftest.$ac_ext >&5
3998
3999  # Broken: fails on valid input.
4000continue
4001fi
4002rm -f conftest.err conftest.$ac_ext
4003
4004  # OK, works on sane cases.  Now check whether non-existent headers
4005  # can be detected and how.
4006  cat >conftest.$ac_ext <<_ACEOF
4007/* confdefs.h.  */
4008_ACEOF
4009cat confdefs.h >>conftest.$ac_ext
4010cat >>conftest.$ac_ext <<_ACEOF
4011/* end confdefs.h.  */
4012@%:@include <ac_nonexistent.h>
4013_ACEOF
4014if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4015  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4016  ac_status=$?
4017  grep -v '^ *+' conftest.er1 >conftest.err
4018  rm -f conftest.er1
4019  cat conftest.err >&5
4020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021  (exit $ac_status); } >/dev/null; then
4022  if test -s conftest.err; then
4023    ac_cpp_err=$ac_cxx_preproc_warn_flag
4024    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4025  else
4026    ac_cpp_err=
4027  fi
4028else
4029  ac_cpp_err=yes
4030fi
4031if test -z "$ac_cpp_err"; then
4032  # Broken: success on invalid input.
4033continue
4034else
4035  echo "$as_me: failed program was:" >&5
4036sed 's/^/| /' conftest.$ac_ext >&5
4037
4038  # Passes both tests.
4039ac_preproc_ok=:
4040break
4041fi
4042rm -f conftest.err conftest.$ac_ext
4043
4044done
4045# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4046rm -f conftest.err conftest.$ac_ext
4047if $ac_preproc_ok; then
4048  break
4049fi
4050
4051    done
4052    ac_cv_prog_CXXCPP=$CXXCPP
4053
4054fi
4055  CXXCPP=$ac_cv_prog_CXXCPP
4056else
4057  ac_cv_prog_CXXCPP=$CXXCPP
4058fi
4059echo "$as_me:$LINENO: result: $CXXCPP" >&5
4060echo "${ECHO_T}$CXXCPP" >&6
4061ac_preproc_ok=false
4062for ac_cxx_preproc_warn_flag in '' yes
4063do
4064  # Use a header file that comes with gcc, so configuring glibc
4065  # with a fresh cross-compiler works.
4066  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4067  # <limits.h> exists even on freestanding compilers.
4068  # On the NeXT, cc -E runs the code through the compiler's parser,
4069  # not just through cpp. "Syntax error" is here to catch this case.
4070  cat >conftest.$ac_ext <<_ACEOF
4071/* confdefs.h.  */
4072_ACEOF
4073cat confdefs.h >>conftest.$ac_ext
4074cat >>conftest.$ac_ext <<_ACEOF
4075/* end confdefs.h.  */
4076@%:@ifdef __STDC__
4077@%:@ include <limits.h>
4078@%:@else
4079@%:@ include <assert.h>
4080@%:@endif
4081		     Syntax error
4082_ACEOF
4083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4084  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4085  ac_status=$?
4086  grep -v '^ *+' conftest.er1 >conftest.err
4087  rm -f conftest.er1
4088  cat conftest.err >&5
4089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090  (exit $ac_status); } >/dev/null; then
4091  if test -s conftest.err; then
4092    ac_cpp_err=$ac_cxx_preproc_warn_flag
4093    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4094  else
4095    ac_cpp_err=
4096  fi
4097else
4098  ac_cpp_err=yes
4099fi
4100if test -z "$ac_cpp_err"; then
4101  :
4102else
4103  echo "$as_me: failed program was:" >&5
4104sed 's/^/| /' conftest.$ac_ext >&5
4105
4106  # Broken: fails on valid input.
4107continue
4108fi
4109rm -f conftest.err conftest.$ac_ext
4110
4111  # OK, works on sane cases.  Now check whether non-existent headers
4112  # can be detected and how.
4113  cat >conftest.$ac_ext <<_ACEOF
4114/* confdefs.h.  */
4115_ACEOF
4116cat confdefs.h >>conftest.$ac_ext
4117cat >>conftest.$ac_ext <<_ACEOF
4118/* end confdefs.h.  */
4119@%:@include <ac_nonexistent.h>
4120_ACEOF
4121if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4122  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4123  ac_status=$?
4124  grep -v '^ *+' conftest.er1 >conftest.err
4125  rm -f conftest.er1
4126  cat conftest.err >&5
4127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128  (exit $ac_status); } >/dev/null; then
4129  if test -s conftest.err; then
4130    ac_cpp_err=$ac_cxx_preproc_warn_flag
4131    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4132  else
4133    ac_cpp_err=
4134  fi
4135else
4136  ac_cpp_err=yes
4137fi
4138if test -z "$ac_cpp_err"; then
4139  # Broken: success on invalid input.
4140continue
4141else
4142  echo "$as_me: failed program was:" >&5
4143sed 's/^/| /' conftest.$ac_ext >&5
4144
4145  # Passes both tests.
4146ac_preproc_ok=:
4147break
4148fi
4149rm -f conftest.err conftest.$ac_ext
4150
4151done
4152# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4153rm -f conftest.err conftest.$ac_ext
4154if $ac_preproc_ok; then
4155  :
4156else
4157  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4158See \`config.log' for more details." >&5
4159echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4160See \`config.log' for more details." >&2;}
4161   { (exit 1); exit 1; }; }
4162fi
4163
4164ac_ext=cc
4165ac_cpp='$CXXCPP $CPPFLAGS'
4166ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4169
4170
4171echo "$as_me:$LINENO: checking for egrep" >&5
4172echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4173if test "${ac_cv_prog_egrep+set}" = set; then
4174  echo $ECHO_N "(cached) $ECHO_C" >&6
4175else
4176  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4177    then ac_cv_prog_egrep='grep -E'
4178    else ac_cv_prog_egrep='egrep'
4179    fi
4180fi
4181echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4182echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4183 EGREP=$ac_cv_prog_egrep
4184
4185
4186echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4187echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4188if test "${ac_cv_header_stdc+set}" = set; then
4189  echo $ECHO_N "(cached) $ECHO_C" >&6
4190else
4191  cat >conftest.$ac_ext <<_ACEOF
4192/* confdefs.h.  */
4193_ACEOF
4194cat confdefs.h >>conftest.$ac_ext
4195cat >>conftest.$ac_ext <<_ACEOF
4196/* end confdefs.h.  */
4197#include <stdlib.h>
4198#include <stdarg.h>
4199#include <string.h>
4200#include <float.h>
4201
4202int
4203main ()
4204{
4205
4206  ;
4207  return 0;
4208}
4209_ACEOF
4210rm -f conftest.$ac_objext
4211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4212  (eval $ac_compile) 2>conftest.er1
4213  ac_status=$?
4214  grep -v '^ *+' conftest.er1 >conftest.err
4215  rm -f conftest.er1
4216  cat conftest.err >&5
4217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218  (exit $ac_status); } &&
4219	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221  (eval $ac_try) 2>&5
4222  ac_status=$?
4223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224  (exit $ac_status); }; } &&
4225	 { ac_try='test -s conftest.$ac_objext'
4226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227  (eval $ac_try) 2>&5
4228  ac_status=$?
4229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230  (exit $ac_status); }; }; then
4231  ac_cv_header_stdc=yes
4232else
4233  echo "$as_me: failed program was:" >&5
4234sed 's/^/| /' conftest.$ac_ext >&5
4235
4236ac_cv_header_stdc=no
4237fi
4238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4239
4240if test $ac_cv_header_stdc = yes; then
4241  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4242  cat >conftest.$ac_ext <<_ACEOF
4243/* confdefs.h.  */
4244_ACEOF
4245cat confdefs.h >>conftest.$ac_ext
4246cat >>conftest.$ac_ext <<_ACEOF
4247/* end confdefs.h.  */
4248#include <string.h>
4249
4250_ACEOF
4251if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4252  $EGREP "memchr" >/dev/null 2>&1; then
4253  :
4254else
4255  ac_cv_header_stdc=no
4256fi
4257rm -f conftest*
4258
4259fi
4260
4261if test $ac_cv_header_stdc = yes; then
4262  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4263  cat >conftest.$ac_ext <<_ACEOF
4264/* confdefs.h.  */
4265_ACEOF
4266cat confdefs.h >>conftest.$ac_ext
4267cat >>conftest.$ac_ext <<_ACEOF
4268/* end confdefs.h.  */
4269#include <stdlib.h>
4270
4271_ACEOF
4272if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4273  $EGREP "free" >/dev/null 2>&1; then
4274  :
4275else
4276  ac_cv_header_stdc=no
4277fi
4278rm -f conftest*
4279
4280fi
4281
4282if test $ac_cv_header_stdc = yes; then
4283  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4284  if test "$cross_compiling" = yes; then
4285  :
4286else
4287  cat >conftest.$ac_ext <<_ACEOF
4288/* confdefs.h.  */
4289_ACEOF
4290cat confdefs.h >>conftest.$ac_ext
4291cat >>conftest.$ac_ext <<_ACEOF
4292/* end confdefs.h.  */
4293#include <ctype.h>
4294#if ((' ' & 0x0FF) == 0x020)
4295# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4296# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4297#else
4298# define ISLOWER(c) \
4299		   (('a' <= (c) && (c) <= 'i') \
4300		     || ('j' <= (c) && (c) <= 'r') \
4301		     || ('s' <= (c) && (c) <= 'z'))
4302# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4303#endif
4304
4305#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4306int
4307main ()
4308{
4309  int i;
4310  for (i = 0; i < 256; i++)
4311    if (XOR (islower (i), ISLOWER (i))
4312	|| toupper (i) != TOUPPER (i))
4313      exit(2);
4314  exit (0);
4315}
4316_ACEOF
4317rm -f conftest$ac_exeext
4318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4319  (eval $ac_link) 2>&5
4320  ac_status=$?
4321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324  (eval $ac_try) 2>&5
4325  ac_status=$?
4326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327  (exit $ac_status); }; }; then
4328  :
4329else
4330  echo "$as_me: program exited with status $ac_status" >&5
4331echo "$as_me: failed program was:" >&5
4332sed 's/^/| /' conftest.$ac_ext >&5
4333
4334( exit $ac_status )
4335ac_cv_header_stdc=no
4336fi
4337rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4338fi
4339fi
4340fi
4341echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4342echo "${ECHO_T}$ac_cv_header_stdc" >&6
4343if test $ac_cv_header_stdc = yes; then
4344
4345cat >>confdefs.h <<\_ACEOF
4346@%:@define STDC_HEADERS 1
4347_ACEOF
4348
4349fi
4350
4351# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4362		  inttypes.h stdint.h unistd.h
4363do
4364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4365echo "$as_me:$LINENO: checking for $ac_header" >&5
4366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4367if eval "test \"\${$as_ac_Header+set}\" = set"; then
4368  echo $ECHO_N "(cached) $ECHO_C" >&6
4369else
4370  cat >conftest.$ac_ext <<_ACEOF
4371/* confdefs.h.  */
4372_ACEOF
4373cat confdefs.h >>conftest.$ac_ext
4374cat >>conftest.$ac_ext <<_ACEOF
4375/* end confdefs.h.  */
4376$ac_includes_default
4377
4378@%:@include <$ac_header>
4379_ACEOF
4380rm -f conftest.$ac_objext
4381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4382  (eval $ac_compile) 2>conftest.er1
4383  ac_status=$?
4384  grep -v '^ *+' conftest.er1 >conftest.err
4385  rm -f conftest.er1
4386  cat conftest.err >&5
4387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388  (exit $ac_status); } &&
4389	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391  (eval $ac_try) 2>&5
4392  ac_status=$?
4393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394  (exit $ac_status); }; } &&
4395	 { ac_try='test -s conftest.$ac_objext'
4396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397  (eval $ac_try) 2>&5
4398  ac_status=$?
4399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400  (exit $ac_status); }; }; then
4401  eval "$as_ac_Header=yes"
4402else
4403  echo "$as_me: failed program was:" >&5
4404sed 's/^/| /' conftest.$ac_ext >&5
4405
4406eval "$as_ac_Header=no"
4407fi
4408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4409fi
4410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4411echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4412if test `eval echo '${'$as_ac_Header'}'` = yes; then
4413  cat >>confdefs.h <<_ACEOF
4414@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4415_ACEOF
4416
4417fi
4418
4419done
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429for ac_header in string.h unistd.h dirent.h stdlib.h sys/time.h time.h sys/wait.h
4430do
4431as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4432if eval "test \"\${$as_ac_Header+set}\" = set"; then
4433  echo "$as_me:$LINENO: checking for $ac_header" >&5
4434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4435if eval "test \"\${$as_ac_Header+set}\" = set"; then
4436  echo $ECHO_N "(cached) $ECHO_C" >&6
4437fi
4438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4439echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4440else
4441  # Is the header compilable?
4442echo "$as_me:$LINENO: checking $ac_header usability" >&5
4443echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4444cat >conftest.$ac_ext <<_ACEOF
4445/* confdefs.h.  */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h.  */
4450$ac_includes_default
4451@%:@include <$ac_header>
4452_ACEOF
4453rm -f conftest.$ac_objext
4454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455  (eval $ac_compile) 2>conftest.er1
4456  ac_status=$?
4457  grep -v '^ *+' conftest.er1 >conftest.err
4458  rm -f conftest.er1
4459  cat conftest.err >&5
4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461  (exit $ac_status); } &&
4462	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464  (eval $ac_try) 2>&5
4465  ac_status=$?
4466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467  (exit $ac_status); }; } &&
4468	 { ac_try='test -s conftest.$ac_objext'
4469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470  (eval $ac_try) 2>&5
4471  ac_status=$?
4472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473  (exit $ac_status); }; }; then
4474  ac_header_compiler=yes
4475else
4476  echo "$as_me: failed program was:" >&5
4477sed 's/^/| /' conftest.$ac_ext >&5
4478
4479ac_header_compiler=no
4480fi
4481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4482echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4483echo "${ECHO_T}$ac_header_compiler" >&6
4484
4485# Is the header present?
4486echo "$as_me:$LINENO: checking $ac_header presence" >&5
4487echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4488cat >conftest.$ac_ext <<_ACEOF
4489/* confdefs.h.  */
4490_ACEOF
4491cat confdefs.h >>conftest.$ac_ext
4492cat >>conftest.$ac_ext <<_ACEOF
4493/* end confdefs.h.  */
4494@%:@include <$ac_header>
4495_ACEOF
4496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4497  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4498  ac_status=$?
4499  grep -v '^ *+' conftest.er1 >conftest.err
4500  rm -f conftest.er1
4501  cat conftest.err >&5
4502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503  (exit $ac_status); } >/dev/null; then
4504  if test -s conftest.err; then
4505    ac_cpp_err=$ac_cxx_preproc_warn_flag
4506    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4507  else
4508    ac_cpp_err=
4509  fi
4510else
4511  ac_cpp_err=yes
4512fi
4513if test -z "$ac_cpp_err"; then
4514  ac_header_preproc=yes
4515else
4516  echo "$as_me: failed program was:" >&5
4517sed 's/^/| /' conftest.$ac_ext >&5
4518
4519  ac_header_preproc=no
4520fi
4521rm -f conftest.err conftest.$ac_ext
4522echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4523echo "${ECHO_T}$ac_header_preproc" >&6
4524
4525# So?  What about this header?
4526case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4527  yes:no: )
4528    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4529echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4530    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4531echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4532    ac_header_preproc=yes
4533    ;;
4534  no:yes:* )
4535    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4536echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4537    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4538echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4539    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4540echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4541    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4542echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4543    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4544echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4545    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4546echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4547    (
4548      cat <<\_ASBOX
4549@%:@@%:@ ------------------------------------------ @%:@@%:@
4550@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
4551@%:@@%:@ ------------------------------------------ @%:@@%:@
4552_ASBOX
4553    ) |
4554      sed "s/^/$as_me: WARNING:     /" >&2
4555    ;;
4556esac
4557echo "$as_me:$LINENO: checking for $ac_header" >&5
4558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4559if eval "test \"\${$as_ac_Header+set}\" = set"; then
4560  echo $ECHO_N "(cached) $ECHO_C" >&6
4561else
4562  eval "$as_ac_Header=\$ac_header_preproc"
4563fi
4564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4565echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4566
4567fi
4568if test `eval echo '${'$as_ac_Header'}'` = yes; then
4569  cat >>confdefs.h <<_ACEOF
4570@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4571_ACEOF
4572
4573fi
4574
4575done
4576
4577
4578
4579for ac_header in sstream
4580do
4581as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4582if eval "test \"\${$as_ac_Header+set}\" = set"; then
4583  echo "$as_me:$LINENO: checking for $ac_header" >&5
4584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4585if eval "test \"\${$as_ac_Header+set}\" = set"; then
4586  echo $ECHO_N "(cached) $ECHO_C" >&6
4587fi
4588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4589echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4590else
4591  # Is the header compilable?
4592echo "$as_me:$LINENO: checking $ac_header usability" >&5
4593echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4594cat >conftest.$ac_ext <<_ACEOF
4595/* confdefs.h.  */
4596_ACEOF
4597cat confdefs.h >>conftest.$ac_ext
4598cat >>conftest.$ac_ext <<_ACEOF
4599/* end confdefs.h.  */
4600$ac_includes_default
4601@%:@include <$ac_header>
4602_ACEOF
4603rm -f conftest.$ac_objext
4604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605  (eval $ac_compile) 2>conftest.er1
4606  ac_status=$?
4607  grep -v '^ *+' conftest.er1 >conftest.err
4608  rm -f conftest.er1
4609  cat conftest.err >&5
4610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611  (exit $ac_status); } &&
4612	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614  (eval $ac_try) 2>&5
4615  ac_status=$?
4616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617  (exit $ac_status); }; } &&
4618	 { ac_try='test -s conftest.$ac_objext'
4619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620  (eval $ac_try) 2>&5
4621  ac_status=$?
4622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623  (exit $ac_status); }; }; then
4624  ac_header_compiler=yes
4625else
4626  echo "$as_me: failed program was:" >&5
4627sed 's/^/| /' conftest.$ac_ext >&5
4628
4629ac_header_compiler=no
4630fi
4631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4632echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4633echo "${ECHO_T}$ac_header_compiler" >&6
4634
4635# Is the header present?
4636echo "$as_me:$LINENO: checking $ac_header presence" >&5
4637echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4638cat >conftest.$ac_ext <<_ACEOF
4639/* confdefs.h.  */
4640_ACEOF
4641cat confdefs.h >>conftest.$ac_ext
4642cat >>conftest.$ac_ext <<_ACEOF
4643/* end confdefs.h.  */
4644@%:@include <$ac_header>
4645_ACEOF
4646if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4647  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4648  ac_status=$?
4649  grep -v '^ *+' conftest.er1 >conftest.err
4650  rm -f conftest.er1
4651  cat conftest.err >&5
4652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653  (exit $ac_status); } >/dev/null; then
4654  if test -s conftest.err; then
4655    ac_cpp_err=$ac_cxx_preproc_warn_flag
4656    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4657  else
4658    ac_cpp_err=
4659  fi
4660else
4661  ac_cpp_err=yes
4662fi
4663if test -z "$ac_cpp_err"; then
4664  ac_header_preproc=yes
4665else
4666  echo "$as_me: failed program was:" >&5
4667sed 's/^/| /' conftest.$ac_ext >&5
4668
4669  ac_header_preproc=no
4670fi
4671rm -f conftest.err conftest.$ac_ext
4672echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4673echo "${ECHO_T}$ac_header_preproc" >&6
4674
4675# So?  What about this header?
4676case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4677  yes:no: )
4678    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4679echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4680    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4681echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4682    ac_header_preproc=yes
4683    ;;
4684  no:yes:* )
4685    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4686echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4687    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4688echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4689    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4690echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4691    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4692echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4693    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4694echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4695    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4696echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4697    (
4698      cat <<\_ASBOX
4699@%:@@%:@ ------------------------------------------ @%:@@%:@
4700@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
4701@%:@@%:@ ------------------------------------------ @%:@@%:@
4702_ASBOX
4703    ) |
4704      sed "s/^/$as_me: WARNING:     /" >&2
4705    ;;
4706esac
4707echo "$as_me:$LINENO: checking for $ac_header" >&5
4708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4709if eval "test \"\${$as_ac_Header+set}\" = set"; then
4710  echo $ECHO_N "(cached) $ECHO_C" >&6
4711else
4712  eval "$as_ac_Header=\$ac_header_preproc"
4713fi
4714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4715echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4716
4717fi
4718if test `eval echo '${'$as_ac_Header'}'` = yes; then
4719  cat >>confdefs.h <<_ACEOF
4720@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4721_ACEOF
4722
4723else
4724
4725for ac_header in strstream
4726do
4727as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4728if eval "test \"\${$as_ac_Header+set}\" = set"; then
4729  echo "$as_me:$LINENO: checking for $ac_header" >&5
4730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4731if eval "test \"\${$as_ac_Header+set}\" = set"; then
4732  echo $ECHO_N "(cached) $ECHO_C" >&6
4733fi
4734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4735echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4736else
4737  # Is the header compilable?
4738echo "$as_me:$LINENO: checking $ac_header usability" >&5
4739echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4740cat >conftest.$ac_ext <<_ACEOF
4741/* confdefs.h.  */
4742_ACEOF
4743cat confdefs.h >>conftest.$ac_ext
4744cat >>conftest.$ac_ext <<_ACEOF
4745/* end confdefs.h.  */
4746$ac_includes_default
4747@%:@include <$ac_header>
4748_ACEOF
4749rm -f conftest.$ac_objext
4750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4751  (eval $ac_compile) 2>conftest.er1
4752  ac_status=$?
4753  grep -v '^ *+' conftest.er1 >conftest.err
4754  rm -f conftest.er1
4755  cat conftest.err >&5
4756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757  (exit $ac_status); } &&
4758	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760  (eval $ac_try) 2>&5
4761  ac_status=$?
4762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763  (exit $ac_status); }; } &&
4764	 { ac_try='test -s conftest.$ac_objext'
4765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766  (eval $ac_try) 2>&5
4767  ac_status=$?
4768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769  (exit $ac_status); }; }; then
4770  ac_header_compiler=yes
4771else
4772  echo "$as_me: failed program was:" >&5
4773sed 's/^/| /' conftest.$ac_ext >&5
4774
4775ac_header_compiler=no
4776fi
4777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4778echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4779echo "${ECHO_T}$ac_header_compiler" >&6
4780
4781# Is the header present?
4782echo "$as_me:$LINENO: checking $ac_header presence" >&5
4783echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4784cat >conftest.$ac_ext <<_ACEOF
4785/* confdefs.h.  */
4786_ACEOF
4787cat confdefs.h >>conftest.$ac_ext
4788cat >>conftest.$ac_ext <<_ACEOF
4789/* end confdefs.h.  */
4790@%:@include <$ac_header>
4791_ACEOF
4792if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4793  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4794  ac_status=$?
4795  grep -v '^ *+' conftest.er1 >conftest.err
4796  rm -f conftest.er1
4797  cat conftest.err >&5
4798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799  (exit $ac_status); } >/dev/null; then
4800  if test -s conftest.err; then
4801    ac_cpp_err=$ac_cxx_preproc_warn_flag
4802    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4803  else
4804    ac_cpp_err=
4805  fi
4806else
4807  ac_cpp_err=yes
4808fi
4809if test -z "$ac_cpp_err"; then
4810  ac_header_preproc=yes
4811else
4812  echo "$as_me: failed program was:" >&5
4813sed 's/^/| /' conftest.$ac_ext >&5
4814
4815  ac_header_preproc=no
4816fi
4817rm -f conftest.err conftest.$ac_ext
4818echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4819echo "${ECHO_T}$ac_header_preproc" >&6
4820
4821# So?  What about this header?
4822case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4823  yes:no: )
4824    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4825echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4826    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4827echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4828    ac_header_preproc=yes
4829    ;;
4830  no:yes:* )
4831    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4832echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4833    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4834echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4835    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4836echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4837    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4838echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4839    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4840echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4841    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4842echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4843    (
4844      cat <<\_ASBOX
4845@%:@@%:@ ------------------------------------------ @%:@@%:@
4846@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
4847@%:@@%:@ ------------------------------------------ @%:@@%:@
4848_ASBOX
4849    ) |
4850      sed "s/^/$as_me: WARNING:     /" >&2
4851    ;;
4852esac
4853echo "$as_me:$LINENO: checking for $ac_header" >&5
4854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4855if eval "test \"\${$as_ac_Header+set}\" = set"; then
4856  echo $ECHO_N "(cached) $ECHO_C" >&6
4857else
4858  eval "$as_ac_Header=\$ac_header_preproc"
4859fi
4860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4861echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4862
4863fi
4864if test `eval echo '${'$as_ac_Header'}'` = yes; then
4865  cat >>confdefs.h <<_ACEOF
4866@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4867_ACEOF
4868
4869else
4870  { { echo "$as_me:$LINENO: error: Your libstdc++ doesn't have the sstream, fstream or strstream classes" >&5
4871echo "$as_me: error: Your libstdc++ doesn't have the sstream, fstream or strstream classes" >&2;}
4872   { (exit 1); exit 1; }; }
4873
4874fi
4875
4876done
4877
4878
4879fi
4880
4881done
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894for ac_header in cassert cctype cerrno cmath cstdarg cstdio cstdlib cstring ctime
4895do
4896as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4897if eval "test \"\${$as_ac_Header+set}\" = set"; then
4898  echo "$as_me:$LINENO: checking for $ac_header" >&5
4899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4900if eval "test \"\${$as_ac_Header+set}\" = set"; then
4901  echo $ECHO_N "(cached) $ECHO_C" >&6
4902fi
4903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4904echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4905else
4906  # Is the header compilable?
4907echo "$as_me:$LINENO: checking $ac_header usability" >&5
4908echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4909cat >conftest.$ac_ext <<_ACEOF
4910/* confdefs.h.  */
4911_ACEOF
4912cat confdefs.h >>conftest.$ac_ext
4913cat >>conftest.$ac_ext <<_ACEOF
4914/* end confdefs.h.  */
4915$ac_includes_default
4916@%:@include <$ac_header>
4917_ACEOF
4918rm -f conftest.$ac_objext
4919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920  (eval $ac_compile) 2>conftest.er1
4921  ac_status=$?
4922  grep -v '^ *+' conftest.er1 >conftest.err
4923  rm -f conftest.er1
4924  cat conftest.err >&5
4925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926  (exit $ac_status); } &&
4927	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929  (eval $ac_try) 2>&5
4930  ac_status=$?
4931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932  (exit $ac_status); }; } &&
4933	 { ac_try='test -s conftest.$ac_objext'
4934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935  (eval $ac_try) 2>&5
4936  ac_status=$?
4937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938  (exit $ac_status); }; }; then
4939  ac_header_compiler=yes
4940else
4941  echo "$as_me: failed program was:" >&5
4942sed 's/^/| /' conftest.$ac_ext >&5
4943
4944ac_header_compiler=no
4945fi
4946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4947echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4948echo "${ECHO_T}$ac_header_compiler" >&6
4949
4950# Is the header present?
4951echo "$as_me:$LINENO: checking $ac_header presence" >&5
4952echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4953cat >conftest.$ac_ext <<_ACEOF
4954/* confdefs.h.  */
4955_ACEOF
4956cat confdefs.h >>conftest.$ac_ext
4957cat >>conftest.$ac_ext <<_ACEOF
4958/* end confdefs.h.  */
4959@%:@include <$ac_header>
4960_ACEOF
4961if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4962  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4963  ac_status=$?
4964  grep -v '^ *+' conftest.er1 >conftest.err
4965  rm -f conftest.er1
4966  cat conftest.err >&5
4967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968  (exit $ac_status); } >/dev/null; then
4969  if test -s conftest.err; then
4970    ac_cpp_err=$ac_cxx_preproc_warn_flag
4971    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4972  else
4973    ac_cpp_err=
4974  fi
4975else
4976  ac_cpp_err=yes
4977fi
4978if test -z "$ac_cpp_err"; then
4979  ac_header_preproc=yes
4980else
4981  echo "$as_me: failed program was:" >&5
4982sed 's/^/| /' conftest.$ac_ext >&5
4983
4984  ac_header_preproc=no
4985fi
4986rm -f conftest.err conftest.$ac_ext
4987echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4988echo "${ECHO_T}$ac_header_preproc" >&6
4989
4990# So?  What about this header?
4991case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4992  yes:no: )
4993    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4994echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4995    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4996echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4997    ac_header_preproc=yes
4998    ;;
4999  no:yes:* )
5000    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5001echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5002    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5003echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5004    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5005echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5006    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5007echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5008    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5009echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5010    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5011echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5012    (
5013      cat <<\_ASBOX
5014@%:@@%:@ ------------------------------------------ @%:@@%:@
5015@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
5016@%:@@%:@ ------------------------------------------ @%:@@%:@
5017_ASBOX
5018    ) |
5019      sed "s/^/$as_me: WARNING:     /" >&2
5020    ;;
5021esac
5022echo "$as_me:$LINENO: checking for $ac_header" >&5
5023echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5024if eval "test \"\${$as_ac_Header+set}\" = set"; then
5025  echo $ECHO_N "(cached) $ECHO_C" >&6
5026else
5027  eval "$as_ac_Header=\$ac_header_preproc"
5028fi
5029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5030echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5031
5032fi
5033if test `eval echo '${'$as_ac_Header'}'` = yes; then
5034  cat >>confdefs.h <<_ACEOF
5035@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5036_ACEOF
5037
5038fi
5039
5040done
5041
5042
5043echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5044echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5045if test "${ac_cv_header_time+set}" = set; then
5046  echo $ECHO_N "(cached) $ECHO_C" >&6
5047else
5048  cat >conftest.$ac_ext <<_ACEOF
5049/* confdefs.h.  */
5050_ACEOF
5051cat confdefs.h >>conftest.$ac_ext
5052cat >>conftest.$ac_ext <<_ACEOF
5053/* end confdefs.h.  */
5054#include <sys/types.h>
5055#include <sys/time.h>
5056#include <time.h>
5057
5058int
5059main ()
5060{
5061if ((struct tm *) 0)
5062return 0;
5063  ;
5064  return 0;
5065}
5066_ACEOF
5067rm -f conftest.$ac_objext
5068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5069  (eval $ac_compile) 2>conftest.er1
5070  ac_status=$?
5071  grep -v '^ *+' conftest.er1 >conftest.err
5072  rm -f conftest.er1
5073  cat conftest.err >&5
5074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075  (exit $ac_status); } &&
5076	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078  (eval $ac_try) 2>&5
5079  ac_status=$?
5080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081  (exit $ac_status); }; } &&
5082	 { ac_try='test -s conftest.$ac_objext'
5083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084  (eval $ac_try) 2>&5
5085  ac_status=$?
5086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087  (exit $ac_status); }; }; then
5088  ac_cv_header_time=yes
5089else
5090  echo "$as_me: failed program was:" >&5
5091sed 's/^/| /' conftest.$ac_ext >&5
5092
5093ac_cv_header_time=no
5094fi
5095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5096fi
5097echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5098echo "${ECHO_T}$ac_cv_header_time" >&6
5099if test $ac_cv_header_time = yes; then
5100
5101cat >>confdefs.h <<\_ACEOF
5102@%:@define TIME_WITH_SYS_TIME 1
5103_ACEOF
5104
5105fi
5106
5107
5108echo "$as_me:$LINENO: checking for X" >&5
5109echo $ECHO_N "checking for X... $ECHO_C" >&6
5110
5111ac_path_x_has_been_run=yes
5112
5113# Check whether --with-x or --without-x was given.
5114if test "${with_x+set}" = set; then
5115  withval="$with_x"
5116
5117fi;
5118# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5119if test "x$with_x" = xno; then
5120  # The user explicitly disabled X.
5121  have_x=disabled
5122else
5123  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5124    # Both variables are already set.
5125    have_x=yes
5126  else
5127    if test "${ac_cv_have_x+set}" = set; then
5128  echo $ECHO_N "(cached) $ECHO_C" >&6
5129else
5130  # One or both of the vars are not set, and there is no cached value.
5131ac_x_includes=no ac_x_libraries=no
5132rm -fr conftest.dir
5133if mkdir conftest.dir; then
5134  cd conftest.dir
5135  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5136  cat >Imakefile <<'_ACEOF'
5137acfindx:
5138	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5139_ACEOF
5140  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5141    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5142    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5143    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5144    for ac_extension in a so sl; do
5145      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5146	 test -f $ac_im_libdir/libX11.$ac_extension; then
5147	ac_im_usrlibdir=$ac_im_libdir; break
5148      fi
5149    done
5150    # Screen out bogus values from the imake configuration.  They are
5151    # bogus both because they are the default anyway, and because
5152    # using them would break gcc on systems where it needs fixed includes.
5153    case $ac_im_incroot in
5154	/usr/include) ;;
5155	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5156    esac
5157    case $ac_im_usrlibdir in
5158	/usr/lib | /lib) ;;
5159	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5160    esac
5161  fi
5162  cd ..
5163  rm -fr conftest.dir
5164fi
5165
5166# Standard set of common directories for X headers.
5167# Check X11 before X11Rn because it is often a symlink to the current release.
5168ac_x_header_dirs='
5169/usr/X11/include
5170/usr/X11R6/include
5171/usr/X11R5/include
5172/usr/X11R4/include
5173
5174/usr/include/X11
5175/usr/include/X11R6
5176/usr/include/X11R5
5177/usr/include/X11R4
5178
5179/usr/local/X11/include
5180/usr/local/X11R6/include
5181/usr/local/X11R5/include
5182/usr/local/X11R4/include
5183
5184/usr/local/include/X11
5185/usr/local/include/X11R6
5186/usr/local/include/X11R5
5187/usr/local/include/X11R4
5188
5189/usr/X386/include
5190/usr/x386/include
5191/usr/XFree86/include/X11
5192
5193/usr/include
5194/usr/local/include
5195/usr/unsupported/include
5196/usr/athena/include
5197/usr/local/x11r5/include
5198/usr/lpp/Xamples/include
5199
5200/usr/openwin/include
5201/usr/openwin/share/include'
5202
5203if test "$ac_x_includes" = no; then
5204  # Guess where to find include files, by looking for a specified header file.
5205  # First, try using that file with no special directory specified.
5206  cat >conftest.$ac_ext <<_ACEOF
5207/* confdefs.h.  */
5208_ACEOF
5209cat confdefs.h >>conftest.$ac_ext
5210cat >>conftest.$ac_ext <<_ACEOF
5211/* end confdefs.h.  */
5212@%:@include <X11/Xlib.h>
5213_ACEOF
5214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5215  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5216  ac_status=$?
5217  grep -v '^ *+' conftest.er1 >conftest.err
5218  rm -f conftest.er1
5219  cat conftest.err >&5
5220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221  (exit $ac_status); } >/dev/null; then
5222  if test -s conftest.err; then
5223    ac_cpp_err=$ac_cxx_preproc_warn_flag
5224    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5225  else
5226    ac_cpp_err=
5227  fi
5228else
5229  ac_cpp_err=yes
5230fi
5231if test -z "$ac_cpp_err"; then
5232  # We can compile using X headers with no special include directory.
5233ac_x_includes=
5234else
5235  echo "$as_me: failed program was:" >&5
5236sed 's/^/| /' conftest.$ac_ext >&5
5237
5238  for ac_dir in $ac_x_header_dirs; do
5239  if test -r "$ac_dir/X11/Xlib.h"; then
5240    ac_x_includes=$ac_dir
5241    break
5242  fi
5243done
5244fi
5245rm -f conftest.err conftest.$ac_ext
5246fi # $ac_x_includes = no
5247
5248if test "$ac_x_libraries" = no; then
5249  # Check for the libraries.
5250  # See if we find them without any special options.
5251  # Don't add to $LIBS permanently.
5252  ac_save_LIBS=$LIBS
5253  LIBS="-lX11 $LIBS"
5254  cat >conftest.$ac_ext <<_ACEOF
5255/* confdefs.h.  */
5256_ACEOF
5257cat confdefs.h >>conftest.$ac_ext
5258cat >>conftest.$ac_ext <<_ACEOF
5259/* end confdefs.h.  */
5260@%:@include <X11/Xlib.h>
5261int
5262main ()
5263{
5264XOpenDisplay(NULL)
5265  ;
5266  return 0;
5267}
5268_ACEOF
5269rm -f conftest.$ac_objext conftest$ac_exeext
5270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5271  (eval $ac_link) 2>conftest.er1
5272  ac_status=$?
5273  grep -v '^ *+' conftest.er1 >conftest.err
5274  rm -f conftest.er1
5275  cat conftest.err >&5
5276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277  (exit $ac_status); } &&
5278	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280  (eval $ac_try) 2>&5
5281  ac_status=$?
5282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283  (exit $ac_status); }; } &&
5284	 { ac_try='test -s conftest$ac_exeext'
5285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286  (eval $ac_try) 2>&5
5287  ac_status=$?
5288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289  (exit $ac_status); }; }; then
5290  LIBS=$ac_save_LIBS
5291# We can link X programs with no special library path.
5292ac_x_libraries=
5293else
5294  echo "$as_me: failed program was:" >&5
5295sed 's/^/| /' conftest.$ac_ext >&5
5296
5297LIBS=$ac_save_LIBS
5298for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5299do
5300  # Don't even attempt the hair of trying to link an X program!
5301  for ac_extension in a so sl; do
5302    if test -r $ac_dir/libX11.$ac_extension; then
5303      ac_x_libraries=$ac_dir
5304      break 2
5305    fi
5306  done
5307done
5308fi
5309rm -f conftest.err conftest.$ac_objext \
5310      conftest$ac_exeext conftest.$ac_ext
5311fi # $ac_x_libraries = no
5312
5313if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5314  # Didn't find X anywhere.  Cache the known absence of X.
5315  ac_cv_have_x="have_x=no"
5316else
5317  # Record where we found X for the cache.
5318  ac_cv_have_x="have_x=yes \
5319		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5320fi
5321fi
5322
5323  fi
5324  eval "$ac_cv_have_x"
5325fi # $with_x != no
5326
5327if test "$have_x" != yes; then
5328  echo "$as_me:$LINENO: result: $have_x" >&5
5329echo "${ECHO_T}$have_x" >&6
5330  no_x=yes
5331else
5332  # If each of the values was on the command line, it overrides each guess.
5333  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5334  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5335  # Update the cache value to reflect the command line values.
5336  ac_cv_have_x="have_x=yes \
5337		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5338  # It might be that x_includes is empty (headers are found in the
5339  # standard search path. Then output the corresponding message
5340  ac_out_x_includes=$x_includes
5341  test "x$x_includes" = x && ac_out_x_includes="in standard search path"
5342  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
5343echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
5344fi
5345
5346
5347if test "x$ac_path_x_has_been_run" != xyes; then
5348  echo "$as_me:$LINENO: checking for X" >&5
5349echo $ECHO_N "checking for X... $ECHO_C" >&6
5350
5351ac_path_x_has_been_run=yes
5352
5353# Check whether --with-x or --without-x was given.
5354if test "${with_x+set}" = set; then
5355  withval="$with_x"
5356
5357fi;
5358# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5359if test "x$with_x" = xno; then
5360  # The user explicitly disabled X.
5361  have_x=disabled
5362else
5363  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5364    # Both variables are already set.
5365    have_x=yes
5366  else
5367    if test "${ac_cv_have_x+set}" = set; then
5368  echo $ECHO_N "(cached) $ECHO_C" >&6
5369else
5370  # One or both of the vars are not set, and there is no cached value.
5371ac_x_includes=no ac_x_libraries=no
5372rm -fr conftest.dir
5373if mkdir conftest.dir; then
5374  cd conftest.dir
5375  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5376  cat >Imakefile <<'_ACEOF'
5377acfindx:
5378	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5379_ACEOF
5380  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5381    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5382    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5383    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5384    for ac_extension in a so sl; do
5385      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5386	 test -f $ac_im_libdir/libX11.$ac_extension; then
5387	ac_im_usrlibdir=$ac_im_libdir; break
5388      fi
5389    done
5390    # Screen out bogus values from the imake configuration.  They are
5391    # bogus both because they are the default anyway, and because
5392    # using them would break gcc on systems where it needs fixed includes.
5393    case $ac_im_incroot in
5394	/usr/include) ;;
5395	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5396    esac
5397    case $ac_im_usrlibdir in
5398	/usr/lib | /lib) ;;
5399	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5400    esac
5401  fi
5402  cd ..
5403  rm -fr conftest.dir
5404fi
5405
5406# Standard set of common directories for X headers.
5407# Check X11 before X11Rn because it is often a symlink to the current release.
5408ac_x_header_dirs='
5409/usr/X11/include
5410/usr/X11R6/include
5411/usr/X11R5/include
5412/usr/X11R4/include
5413
5414/usr/include/X11
5415/usr/include/X11R6
5416/usr/include/X11R5
5417/usr/include/X11R4
5418
5419/usr/local/X11/include
5420/usr/local/X11R6/include
5421/usr/local/X11R5/include
5422/usr/local/X11R4/include
5423
5424/usr/local/include/X11
5425/usr/local/include/X11R6
5426/usr/local/include/X11R5
5427/usr/local/include/X11R4
5428
5429/usr/X386/include
5430/usr/x386/include
5431/usr/XFree86/include/X11
5432
5433/usr/include
5434/usr/local/include
5435/usr/unsupported/include
5436/usr/athena/include
5437/usr/local/x11r5/include
5438/usr/lpp/Xamples/include
5439
5440/usr/openwin/include
5441/usr/openwin/share/include'
5442
5443if test "$ac_x_includes" = no; then
5444  # Guess where to find include files, by looking for a specified header file.
5445  # First, try using that file with no special directory specified.
5446  cat >conftest.$ac_ext <<_ACEOF
5447/* confdefs.h.  */
5448_ACEOF
5449cat confdefs.h >>conftest.$ac_ext
5450cat >>conftest.$ac_ext <<_ACEOF
5451/* end confdefs.h.  */
5452@%:@include <X11/Xlib.h>
5453_ACEOF
5454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5455  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5456  ac_status=$?
5457  grep -v '^ *+' conftest.er1 >conftest.err
5458  rm -f conftest.er1
5459  cat conftest.err >&5
5460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461  (exit $ac_status); } >/dev/null; then
5462  if test -s conftest.err; then
5463    ac_cpp_err=$ac_cxx_preproc_warn_flag
5464    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5465  else
5466    ac_cpp_err=
5467  fi
5468else
5469  ac_cpp_err=yes
5470fi
5471if test -z "$ac_cpp_err"; then
5472  # We can compile using X headers with no special include directory.
5473ac_x_includes=
5474else
5475  echo "$as_me: failed program was:" >&5
5476sed 's/^/| /' conftest.$ac_ext >&5
5477
5478  for ac_dir in $ac_x_header_dirs; do
5479  if test -r "$ac_dir/X11/Xlib.h"; then
5480    ac_x_includes=$ac_dir
5481    break
5482  fi
5483done
5484fi
5485rm -f conftest.err conftest.$ac_ext
5486fi # $ac_x_includes = no
5487
5488if test "$ac_x_libraries" = no; then
5489  # Check for the libraries.
5490  # See if we find them without any special options.
5491  # Don't add to $LIBS permanently.
5492  ac_save_LIBS=$LIBS
5493  LIBS="-lX11 $LIBS"
5494  cat >conftest.$ac_ext <<_ACEOF
5495/* confdefs.h.  */
5496_ACEOF
5497cat confdefs.h >>conftest.$ac_ext
5498cat >>conftest.$ac_ext <<_ACEOF
5499/* end confdefs.h.  */
5500@%:@include <X11/Xlib.h>
5501int
5502main ()
5503{
5504XrmInitialize ()
5505  ;
5506  return 0;
5507}
5508_ACEOF
5509rm -f conftest.$ac_objext conftest$ac_exeext
5510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5511  (eval $ac_link) 2>conftest.er1
5512  ac_status=$?
5513  grep -v '^ *+' conftest.er1 >conftest.err
5514  rm -f conftest.er1
5515  cat conftest.err >&5
5516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517  (exit $ac_status); } &&
5518	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520  (eval $ac_try) 2>&5
5521  ac_status=$?
5522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523  (exit $ac_status); }; } &&
5524	 { ac_try='test -s conftest$ac_exeext'
5525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526  (eval $ac_try) 2>&5
5527  ac_status=$?
5528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529  (exit $ac_status); }; }; then
5530  LIBS=$ac_save_LIBS
5531# We can link X programs with no special library path.
5532ac_x_libraries=
5533else
5534  echo "$as_me: failed program was:" >&5
5535sed 's/^/| /' conftest.$ac_ext >&5
5536
5537LIBS=$ac_save_LIBS
5538for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5539do
5540  # Don't even attempt the hair of trying to link an X program!
5541  for ac_extension in a so sl; do
5542    if test -r $ac_dir/libX11.$ac_extension; then
5543      ac_x_libraries=$ac_dir
5544      break 2
5545    fi
5546  done
5547done
5548fi
5549rm -f conftest.err conftest.$ac_objext \
5550      conftest$ac_exeext conftest.$ac_ext
5551fi # $ac_x_libraries = no
5552
5553if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5554  # Didn't find X anywhere.  Cache the known absence of X.
5555  ac_cv_have_x="have_x=no"
5556else
5557  # Record where we found X for the cache.
5558  ac_cv_have_x="have_x=yes \
5559		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5560fi
5561fi
5562
5563  fi
5564  eval "$ac_cv_have_x"
5565fi # $with_x != no
5566
5567if test "$have_x" != yes; then
5568  echo "$as_me:$LINENO: result: $have_x" >&5
5569echo "${ECHO_T}$have_x" >&6
5570  no_x=yes
5571else
5572  # If each of the values was on the command line, it overrides each guess.
5573  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5574  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5575  # Update the cache value to reflect the command line values.
5576  ac_cv_have_x="have_x=yes \
5577		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5578  # It might be that x_includes is empty (headers are found in the
5579  # standard search path. Then output the corresponding message
5580  ac_out_x_includes=$x_includes
5581  test "x$x_includes" = x && ac_out_x_includes="in standard search path"
5582  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
5583echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
5584fi
5585
5586fi
5587if test "$no_x" = yes; then
5588  # Not all programs may use this symbol, but it does not hurt to define it.
5589
5590cat >>confdefs.h <<\_ACEOF
5591@%:@define X_DISPLAY_MISSING 1
5592_ACEOF
5593
5594  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5595else
5596  if test -n "$x_includes"; then
5597    X_CFLAGS="$X_CFLAGS -I$x_includes"
5598  fi
5599
5600  # It would also be nice to do this for all -L options, not just this one.
5601  if test -n "$x_libraries"; then
5602    X_LIBS="$X_LIBS -L$x_libraries"
5603    # For Solaris; some versions of Sun CC require a space after -R and
5604    # others require no space.  Words are not sufficient . . . .
5605    case `(uname -sr) 2>/dev/null` in
5606    "SunOS 5"*)
5607      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5608echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5609      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5610      cat >conftest.$ac_ext <<_ACEOF
5611/* confdefs.h.  */
5612_ACEOF
5613cat confdefs.h >>conftest.$ac_ext
5614cat >>conftest.$ac_ext <<_ACEOF
5615/* end confdefs.h.  */
5616
5617int
5618main ()
5619{
5620
5621  ;
5622  return 0;
5623}
5624_ACEOF
5625rm -f conftest.$ac_objext conftest$ac_exeext
5626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5627  (eval $ac_link) 2>conftest.er1
5628  ac_status=$?
5629  grep -v '^ *+' conftest.er1 >conftest.err
5630  rm -f conftest.er1
5631  cat conftest.err >&5
5632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633  (exit $ac_status); } &&
5634	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636  (eval $ac_try) 2>&5
5637  ac_status=$?
5638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639  (exit $ac_status); }; } &&
5640	 { ac_try='test -s conftest$ac_exeext'
5641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642  (eval $ac_try) 2>&5
5643  ac_status=$?
5644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645  (exit $ac_status); }; }; then
5646  ac_R_nospace=yes
5647else
5648  echo "$as_me: failed program was:" >&5
5649sed 's/^/| /' conftest.$ac_ext >&5
5650
5651ac_R_nospace=no
5652fi
5653rm -f conftest.err conftest.$ac_objext \
5654      conftest$ac_exeext conftest.$ac_ext
5655      if test $ac_R_nospace = yes; then
5656	echo "$as_me:$LINENO: result: no" >&5
5657echo "${ECHO_T}no" >&6
5658	X_LIBS="$X_LIBS -R$x_libraries"
5659      else
5660	LIBS="$ac_xsave_LIBS -R $x_libraries"
5661	cat >conftest.$ac_ext <<_ACEOF
5662/* confdefs.h.  */
5663_ACEOF
5664cat confdefs.h >>conftest.$ac_ext
5665cat >>conftest.$ac_ext <<_ACEOF
5666/* end confdefs.h.  */
5667
5668int
5669main ()
5670{
5671
5672  ;
5673  return 0;
5674}
5675_ACEOF
5676rm -f conftest.$ac_objext conftest$ac_exeext
5677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5678  (eval $ac_link) 2>conftest.er1
5679  ac_status=$?
5680  grep -v '^ *+' conftest.er1 >conftest.err
5681  rm -f conftest.er1
5682  cat conftest.err >&5
5683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684  (exit $ac_status); } &&
5685	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687  (eval $ac_try) 2>&5
5688  ac_status=$?
5689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690  (exit $ac_status); }; } &&
5691	 { ac_try='test -s conftest$ac_exeext'
5692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693  (eval $ac_try) 2>&5
5694  ac_status=$?
5695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696  (exit $ac_status); }; }; then
5697  ac_R_space=yes
5698else
5699  echo "$as_me: failed program was:" >&5
5700sed 's/^/| /' conftest.$ac_ext >&5
5701
5702ac_R_space=no
5703fi
5704rm -f conftest.err conftest.$ac_objext \
5705      conftest$ac_exeext conftest.$ac_ext
5706	if test $ac_R_space = yes; then
5707	  echo "$as_me:$LINENO: result: yes" >&5
5708echo "${ECHO_T}yes" >&6
5709	  X_LIBS="$X_LIBS -R $x_libraries"
5710	else
5711	  echo "$as_me:$LINENO: result: neither works" >&5
5712echo "${ECHO_T}neither works" >&6
5713	fi
5714      fi
5715      LIBS=$ac_xsave_LIBS
5716    esac
5717  fi
5718
5719  # Check for system-dependent libraries X programs must link with.
5720  # Do this before checking for the system-independent R6 libraries
5721  # (-lICE), since we may need -lsocket or whatever for X linking.
5722
5723  if test "$ISC" = yes; then
5724    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5725  else
5726    # Martyn Johnson says this is needed for Ultrix, if the X
5727    # libraries were built with DECnet support.  And Karl Berry says
5728    # the Alpha needs dnet_stub (dnet does not exist).
5729    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5730    cat >conftest.$ac_ext <<_ACEOF
5731/* confdefs.h.  */
5732_ACEOF
5733cat confdefs.h >>conftest.$ac_ext
5734cat >>conftest.$ac_ext <<_ACEOF
5735/* end confdefs.h.  */
5736
5737/* Override any gcc2 internal prototype to avoid an error.  */
5738#ifdef __cplusplus
5739extern "C"
5740#endif
5741/* We use char because int might match the return type of a gcc2
5742   builtin and then its argument prototype would still apply.  */
5743char XOpenDisplay ();
5744int
5745main ()
5746{
5747XOpenDisplay ();
5748  ;
5749  return 0;
5750}
5751_ACEOF
5752rm -f conftest.$ac_objext conftest$ac_exeext
5753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5754  (eval $ac_link) 2>conftest.er1
5755  ac_status=$?
5756  grep -v '^ *+' conftest.er1 >conftest.err
5757  rm -f conftest.er1
5758  cat conftest.err >&5
5759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760  (exit $ac_status); } &&
5761	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763  (eval $ac_try) 2>&5
5764  ac_status=$?
5765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766  (exit $ac_status); }; } &&
5767	 { ac_try='test -s conftest$ac_exeext'
5768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769  (eval $ac_try) 2>&5
5770  ac_status=$?
5771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772  (exit $ac_status); }; }; then
5773  :
5774else
5775  echo "$as_me: failed program was:" >&5
5776sed 's/^/| /' conftest.$ac_ext >&5
5777
5778echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5779echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5780if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5781  echo $ECHO_N "(cached) $ECHO_C" >&6
5782else
5783  ac_check_lib_save_LIBS=$LIBS
5784LIBS="-ldnet  $LIBS"
5785cat >conftest.$ac_ext <<_ACEOF
5786/* confdefs.h.  */
5787_ACEOF
5788cat confdefs.h >>conftest.$ac_ext
5789cat >>conftest.$ac_ext <<_ACEOF
5790/* end confdefs.h.  */
5791
5792/* Override any gcc2 internal prototype to avoid an error.  */
5793#ifdef __cplusplus
5794extern "C"
5795#endif
5796/* We use char because int might match the return type of a gcc2
5797   builtin and then its argument prototype would still apply.  */
5798char dnet_ntoa ();
5799int
5800main ()
5801{
5802dnet_ntoa ();
5803  ;
5804  return 0;
5805}
5806_ACEOF
5807rm -f conftest.$ac_objext conftest$ac_exeext
5808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5809  (eval $ac_link) 2>conftest.er1
5810  ac_status=$?
5811  grep -v '^ *+' conftest.er1 >conftest.err
5812  rm -f conftest.er1
5813  cat conftest.err >&5
5814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815  (exit $ac_status); } &&
5816	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818  (eval $ac_try) 2>&5
5819  ac_status=$?
5820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821  (exit $ac_status); }; } &&
5822	 { ac_try='test -s conftest$ac_exeext'
5823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824  (eval $ac_try) 2>&5
5825  ac_status=$?
5826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827  (exit $ac_status); }; }; then
5828  ac_cv_lib_dnet_dnet_ntoa=yes
5829else
5830  echo "$as_me: failed program was:" >&5
5831sed 's/^/| /' conftest.$ac_ext >&5
5832
5833ac_cv_lib_dnet_dnet_ntoa=no
5834fi
5835rm -f conftest.err conftest.$ac_objext \
5836      conftest$ac_exeext conftest.$ac_ext
5837LIBS=$ac_check_lib_save_LIBS
5838fi
5839echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5840echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5841if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5842  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5843fi
5844
5845    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5846      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5847echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5848if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5849  echo $ECHO_N "(cached) $ECHO_C" >&6
5850else
5851  ac_check_lib_save_LIBS=$LIBS
5852LIBS="-ldnet_stub  $LIBS"
5853cat >conftest.$ac_ext <<_ACEOF
5854/* confdefs.h.  */
5855_ACEOF
5856cat confdefs.h >>conftest.$ac_ext
5857cat >>conftest.$ac_ext <<_ACEOF
5858/* end confdefs.h.  */
5859
5860/* Override any gcc2 internal prototype to avoid an error.  */
5861#ifdef __cplusplus
5862extern "C"
5863#endif
5864/* We use char because int might match the return type of a gcc2
5865   builtin and then its argument prototype would still apply.  */
5866char dnet_ntoa ();
5867int
5868main ()
5869{
5870dnet_ntoa ();
5871  ;
5872  return 0;
5873}
5874_ACEOF
5875rm -f conftest.$ac_objext conftest$ac_exeext
5876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5877  (eval $ac_link) 2>conftest.er1
5878  ac_status=$?
5879  grep -v '^ *+' conftest.er1 >conftest.err
5880  rm -f conftest.er1
5881  cat conftest.err >&5
5882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883  (exit $ac_status); } &&
5884	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886  (eval $ac_try) 2>&5
5887  ac_status=$?
5888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889  (exit $ac_status); }; } &&
5890	 { ac_try='test -s conftest$ac_exeext'
5891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892  (eval $ac_try) 2>&5
5893  ac_status=$?
5894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895  (exit $ac_status); }; }; then
5896  ac_cv_lib_dnet_stub_dnet_ntoa=yes
5897else
5898  echo "$as_me: failed program was:" >&5
5899sed 's/^/| /' conftest.$ac_ext >&5
5900
5901ac_cv_lib_dnet_stub_dnet_ntoa=no
5902fi
5903rm -f conftest.err conftest.$ac_objext \
5904      conftest$ac_exeext conftest.$ac_ext
5905LIBS=$ac_check_lib_save_LIBS
5906fi
5907echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5908echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5909if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5910  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5911fi
5912
5913    fi
5914fi
5915rm -f conftest.err conftest.$ac_objext \
5916      conftest$ac_exeext conftest.$ac_ext
5917    LIBS="$ac_xsave_LIBS"
5918
5919    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5920    # to get the SysV transport functions.
5921    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5922    # needs -lnsl.
5923    # The nsl library prevents programs from opening the X display
5924    # on Irix 5.2, according to T.E. Dickey.
5925    # The functions gethostbyname, getservbyname, and inet_addr are
5926    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5927    echo "$as_me:$LINENO: checking for gethostbyname" >&5
5928echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5929if test "${ac_cv_func_gethostbyname+set}" = set; then
5930  echo $ECHO_N "(cached) $ECHO_C" >&6
5931else
5932  cat >conftest.$ac_ext <<_ACEOF
5933/* confdefs.h.  */
5934_ACEOF
5935cat confdefs.h >>conftest.$ac_ext
5936cat >>conftest.$ac_ext <<_ACEOF
5937/* end confdefs.h.  */
5938/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5939   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5940#define gethostbyname innocuous_gethostbyname
5941
5942/* System header to define __stub macros and hopefully few prototypes,
5943    which can conflict with char gethostbyname (); below.
5944    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5945    <limits.h> exists even on freestanding compilers.  */
5946
5947#ifdef __STDC__
5948# include <limits.h>
5949#else
5950# include <assert.h>
5951#endif
5952
5953#undef gethostbyname
5954
5955/* Override any gcc2 internal prototype to avoid an error.  */
5956#ifdef __cplusplus
5957extern "C"
5958{
5959#endif
5960/* We use char because int might match the return type of a gcc2
5961   builtin and then its argument prototype would still apply.  */
5962char gethostbyname ();
5963/* The GNU C library defines this for functions which it implements
5964    to always fail with ENOSYS.  Some functions are actually named
5965    something starting with __ and the normal name is an alias.  */
5966#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5967choke me
5968#else
5969char (*f) () = gethostbyname;
5970#endif
5971#ifdef __cplusplus
5972}
5973#endif
5974
5975int
5976main ()
5977{
5978return f != gethostbyname;
5979  ;
5980  return 0;
5981}
5982_ACEOF
5983rm -f conftest.$ac_objext conftest$ac_exeext
5984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5985  (eval $ac_link) 2>conftest.er1
5986  ac_status=$?
5987  grep -v '^ *+' conftest.er1 >conftest.err
5988  rm -f conftest.er1
5989  cat conftest.err >&5
5990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991  (exit $ac_status); } &&
5992	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994  (eval $ac_try) 2>&5
5995  ac_status=$?
5996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997  (exit $ac_status); }; } &&
5998	 { ac_try='test -s conftest$ac_exeext'
5999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000  (eval $ac_try) 2>&5
6001  ac_status=$?
6002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003  (exit $ac_status); }; }; then
6004  ac_cv_func_gethostbyname=yes
6005else
6006  echo "$as_me: failed program was:" >&5
6007sed 's/^/| /' conftest.$ac_ext >&5
6008
6009ac_cv_func_gethostbyname=no
6010fi
6011rm -f conftest.err conftest.$ac_objext \
6012      conftest$ac_exeext conftest.$ac_ext
6013fi
6014echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6015echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6016
6017    if test $ac_cv_func_gethostbyname = no; then
6018      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6019echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6020if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6021  echo $ECHO_N "(cached) $ECHO_C" >&6
6022else
6023  ac_check_lib_save_LIBS=$LIBS
6024LIBS="-lnsl  $LIBS"
6025cat >conftest.$ac_ext <<_ACEOF
6026/* confdefs.h.  */
6027_ACEOF
6028cat confdefs.h >>conftest.$ac_ext
6029cat >>conftest.$ac_ext <<_ACEOF
6030/* end confdefs.h.  */
6031
6032/* Override any gcc2 internal prototype to avoid an error.  */
6033#ifdef __cplusplus
6034extern "C"
6035#endif
6036/* We use char because int might match the return type of a gcc2
6037   builtin and then its argument prototype would still apply.  */
6038char gethostbyname ();
6039int
6040main ()
6041{
6042gethostbyname ();
6043  ;
6044  return 0;
6045}
6046_ACEOF
6047rm -f conftest.$ac_objext conftest$ac_exeext
6048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6049  (eval $ac_link) 2>conftest.er1
6050  ac_status=$?
6051  grep -v '^ *+' conftest.er1 >conftest.err
6052  rm -f conftest.er1
6053  cat conftest.err >&5
6054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055  (exit $ac_status); } &&
6056	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058  (eval $ac_try) 2>&5
6059  ac_status=$?
6060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061  (exit $ac_status); }; } &&
6062	 { ac_try='test -s conftest$ac_exeext'
6063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064  (eval $ac_try) 2>&5
6065  ac_status=$?
6066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067  (exit $ac_status); }; }; then
6068  ac_cv_lib_nsl_gethostbyname=yes
6069else
6070  echo "$as_me: failed program was:" >&5
6071sed 's/^/| /' conftest.$ac_ext >&5
6072
6073ac_cv_lib_nsl_gethostbyname=no
6074fi
6075rm -f conftest.err conftest.$ac_objext \
6076      conftest$ac_exeext conftest.$ac_ext
6077LIBS=$ac_check_lib_save_LIBS
6078fi
6079echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6080echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6081if test $ac_cv_lib_nsl_gethostbyname = yes; then
6082  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6083fi
6084
6085      if test $ac_cv_lib_nsl_gethostbyname = no; then
6086	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6087echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6088if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6089  echo $ECHO_N "(cached) $ECHO_C" >&6
6090else
6091  ac_check_lib_save_LIBS=$LIBS
6092LIBS="-lbsd  $LIBS"
6093cat >conftest.$ac_ext <<_ACEOF
6094/* confdefs.h.  */
6095_ACEOF
6096cat confdefs.h >>conftest.$ac_ext
6097cat >>conftest.$ac_ext <<_ACEOF
6098/* end confdefs.h.  */
6099
6100/* Override any gcc2 internal prototype to avoid an error.  */
6101#ifdef __cplusplus
6102extern "C"
6103#endif
6104/* We use char because int might match the return type of a gcc2
6105   builtin and then its argument prototype would still apply.  */
6106char gethostbyname ();
6107int
6108main ()
6109{
6110gethostbyname ();
6111  ;
6112  return 0;
6113}
6114_ACEOF
6115rm -f conftest.$ac_objext conftest$ac_exeext
6116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6117  (eval $ac_link) 2>conftest.er1
6118  ac_status=$?
6119  grep -v '^ *+' conftest.er1 >conftest.err
6120  rm -f conftest.er1
6121  cat conftest.err >&5
6122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123  (exit $ac_status); } &&
6124	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126  (eval $ac_try) 2>&5
6127  ac_status=$?
6128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129  (exit $ac_status); }; } &&
6130	 { ac_try='test -s conftest$ac_exeext'
6131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132  (eval $ac_try) 2>&5
6133  ac_status=$?
6134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135  (exit $ac_status); }; }; then
6136  ac_cv_lib_bsd_gethostbyname=yes
6137else
6138  echo "$as_me: failed program was:" >&5
6139sed 's/^/| /' conftest.$ac_ext >&5
6140
6141ac_cv_lib_bsd_gethostbyname=no
6142fi
6143rm -f conftest.err conftest.$ac_objext \
6144      conftest$ac_exeext conftest.$ac_ext
6145LIBS=$ac_check_lib_save_LIBS
6146fi
6147echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6148echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6149if test $ac_cv_lib_bsd_gethostbyname = yes; then
6150  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6151fi
6152
6153      fi
6154    fi
6155
6156    # lieder@skyler.mavd.honeywell.com says without -lsocket,
6157    # socket/setsockopt and other routines are undefined under SCO ODT
6158    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
6159    # on later versions), says Simon Leinen: it contains gethostby*
6160    # variants that don't use the name server (or something).  -lsocket
6161    # must be given before -lnsl if both are needed.  We assume that
6162    # if connect needs -lnsl, so does gethostbyname.
6163    echo "$as_me:$LINENO: checking for connect" >&5
6164echo $ECHO_N "checking for connect... $ECHO_C" >&6
6165if test "${ac_cv_func_connect+set}" = set; then
6166  echo $ECHO_N "(cached) $ECHO_C" >&6
6167else
6168  cat >conftest.$ac_ext <<_ACEOF
6169/* confdefs.h.  */
6170_ACEOF
6171cat confdefs.h >>conftest.$ac_ext
6172cat >>conftest.$ac_ext <<_ACEOF
6173/* end confdefs.h.  */
6174/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6175   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6176#define connect innocuous_connect
6177
6178/* System header to define __stub macros and hopefully few prototypes,
6179    which can conflict with char connect (); below.
6180    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6181    <limits.h> exists even on freestanding compilers.  */
6182
6183#ifdef __STDC__
6184# include <limits.h>
6185#else
6186# include <assert.h>
6187#endif
6188
6189#undef connect
6190
6191/* Override any gcc2 internal prototype to avoid an error.  */
6192#ifdef __cplusplus
6193extern "C"
6194{
6195#endif
6196/* We use char because int might match the return type of a gcc2
6197   builtin and then its argument prototype would still apply.  */
6198char connect ();
6199/* The GNU C library defines this for functions which it implements
6200    to always fail with ENOSYS.  Some functions are actually named
6201    something starting with __ and the normal name is an alias.  */
6202#if defined (__stub_connect) || defined (__stub___connect)
6203choke me
6204#else
6205char (*f) () = connect;
6206#endif
6207#ifdef __cplusplus
6208}
6209#endif
6210
6211int
6212main ()
6213{
6214return f != connect;
6215  ;
6216  return 0;
6217}
6218_ACEOF
6219rm -f conftest.$ac_objext conftest$ac_exeext
6220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6221  (eval $ac_link) 2>conftest.er1
6222  ac_status=$?
6223  grep -v '^ *+' conftest.er1 >conftest.err
6224  rm -f conftest.er1
6225  cat conftest.err >&5
6226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227  (exit $ac_status); } &&
6228	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230  (eval $ac_try) 2>&5
6231  ac_status=$?
6232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233  (exit $ac_status); }; } &&
6234	 { ac_try='test -s conftest$ac_exeext'
6235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236  (eval $ac_try) 2>&5
6237  ac_status=$?
6238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239  (exit $ac_status); }; }; then
6240  ac_cv_func_connect=yes
6241else
6242  echo "$as_me: failed program was:" >&5
6243sed 's/^/| /' conftest.$ac_ext >&5
6244
6245ac_cv_func_connect=no
6246fi
6247rm -f conftest.err conftest.$ac_objext \
6248      conftest$ac_exeext conftest.$ac_ext
6249fi
6250echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6251echo "${ECHO_T}$ac_cv_func_connect" >&6
6252
6253    if test $ac_cv_func_connect = no; then
6254      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6255echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6256if test "${ac_cv_lib_socket_connect+set}" = set; then
6257  echo $ECHO_N "(cached) $ECHO_C" >&6
6258else
6259  ac_check_lib_save_LIBS=$LIBS
6260LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6261cat >conftest.$ac_ext <<_ACEOF
6262/* confdefs.h.  */
6263_ACEOF
6264cat confdefs.h >>conftest.$ac_ext
6265cat >>conftest.$ac_ext <<_ACEOF
6266/* end confdefs.h.  */
6267
6268/* Override any gcc2 internal prototype to avoid an error.  */
6269#ifdef __cplusplus
6270extern "C"
6271#endif
6272/* We use char because int might match the return type of a gcc2
6273   builtin and then its argument prototype would still apply.  */
6274char connect ();
6275int
6276main ()
6277{
6278connect ();
6279  ;
6280  return 0;
6281}
6282_ACEOF
6283rm -f conftest.$ac_objext conftest$ac_exeext
6284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285  (eval $ac_link) 2>conftest.er1
6286  ac_status=$?
6287  grep -v '^ *+' conftest.er1 >conftest.err
6288  rm -f conftest.er1
6289  cat conftest.err >&5
6290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291  (exit $ac_status); } &&
6292	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294  (eval $ac_try) 2>&5
6295  ac_status=$?
6296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297  (exit $ac_status); }; } &&
6298	 { ac_try='test -s conftest$ac_exeext'
6299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300  (eval $ac_try) 2>&5
6301  ac_status=$?
6302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303  (exit $ac_status); }; }; then
6304  ac_cv_lib_socket_connect=yes
6305else
6306  echo "$as_me: failed program was:" >&5
6307sed 's/^/| /' conftest.$ac_ext >&5
6308
6309ac_cv_lib_socket_connect=no
6310fi
6311rm -f conftest.err conftest.$ac_objext \
6312      conftest$ac_exeext conftest.$ac_ext
6313LIBS=$ac_check_lib_save_LIBS
6314fi
6315echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6316echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6317if test $ac_cv_lib_socket_connect = yes; then
6318  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6319fi
6320
6321    fi
6322
6323    # Guillermo Gomez says -lposix is necessary on A/UX.
6324    echo "$as_me:$LINENO: checking for remove" >&5
6325echo $ECHO_N "checking for remove... $ECHO_C" >&6
6326if test "${ac_cv_func_remove+set}" = set; then
6327  echo $ECHO_N "(cached) $ECHO_C" >&6
6328else
6329  cat >conftest.$ac_ext <<_ACEOF
6330/* confdefs.h.  */
6331_ACEOF
6332cat confdefs.h >>conftest.$ac_ext
6333cat >>conftest.$ac_ext <<_ACEOF
6334/* end confdefs.h.  */
6335/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6336   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6337#define remove innocuous_remove
6338
6339/* System header to define __stub macros and hopefully few prototypes,
6340    which can conflict with char remove (); below.
6341    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6342    <limits.h> exists even on freestanding compilers.  */
6343
6344#ifdef __STDC__
6345# include <limits.h>
6346#else
6347# include <assert.h>
6348#endif
6349
6350#undef remove
6351
6352/* Override any gcc2 internal prototype to avoid an error.  */
6353#ifdef __cplusplus
6354extern "C"
6355{
6356#endif
6357/* We use char because int might match the return type of a gcc2
6358   builtin and then its argument prototype would still apply.  */
6359char remove ();
6360/* The GNU C library defines this for functions which it implements
6361    to always fail with ENOSYS.  Some functions are actually named
6362    something starting with __ and the normal name is an alias.  */
6363#if defined (__stub_remove) || defined (__stub___remove)
6364choke me
6365#else
6366char (*f) () = remove;
6367#endif
6368#ifdef __cplusplus
6369}
6370#endif
6371
6372int
6373main ()
6374{
6375return f != remove;
6376  ;
6377  return 0;
6378}
6379_ACEOF
6380rm -f conftest.$ac_objext conftest$ac_exeext
6381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6382  (eval $ac_link) 2>conftest.er1
6383  ac_status=$?
6384  grep -v '^ *+' conftest.er1 >conftest.err
6385  rm -f conftest.er1
6386  cat conftest.err >&5
6387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388  (exit $ac_status); } &&
6389	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391  (eval $ac_try) 2>&5
6392  ac_status=$?
6393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394  (exit $ac_status); }; } &&
6395	 { ac_try='test -s conftest$ac_exeext'
6396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397  (eval $ac_try) 2>&5
6398  ac_status=$?
6399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400  (exit $ac_status); }; }; then
6401  ac_cv_func_remove=yes
6402else
6403  echo "$as_me: failed program was:" >&5
6404sed 's/^/| /' conftest.$ac_ext >&5
6405
6406ac_cv_func_remove=no
6407fi
6408rm -f conftest.err conftest.$ac_objext \
6409      conftest$ac_exeext conftest.$ac_ext
6410fi
6411echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6412echo "${ECHO_T}$ac_cv_func_remove" >&6
6413
6414    if test $ac_cv_func_remove = no; then
6415      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6416echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6417if test "${ac_cv_lib_posix_remove+set}" = set; then
6418  echo $ECHO_N "(cached) $ECHO_C" >&6
6419else
6420  ac_check_lib_save_LIBS=$LIBS
6421LIBS="-lposix  $LIBS"
6422cat >conftest.$ac_ext <<_ACEOF
6423/* confdefs.h.  */
6424_ACEOF
6425cat confdefs.h >>conftest.$ac_ext
6426cat >>conftest.$ac_ext <<_ACEOF
6427/* end confdefs.h.  */
6428
6429/* Override any gcc2 internal prototype to avoid an error.  */
6430#ifdef __cplusplus
6431extern "C"
6432#endif
6433/* We use char because int might match the return type of a gcc2
6434   builtin and then its argument prototype would still apply.  */
6435char remove ();
6436int
6437main ()
6438{
6439remove ();
6440  ;
6441  return 0;
6442}
6443_ACEOF
6444rm -f conftest.$ac_objext conftest$ac_exeext
6445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6446  (eval $ac_link) 2>conftest.er1
6447  ac_status=$?
6448  grep -v '^ *+' conftest.er1 >conftest.err
6449  rm -f conftest.er1
6450  cat conftest.err >&5
6451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452  (exit $ac_status); } &&
6453	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455  (eval $ac_try) 2>&5
6456  ac_status=$?
6457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458  (exit $ac_status); }; } &&
6459	 { ac_try='test -s conftest$ac_exeext'
6460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461  (eval $ac_try) 2>&5
6462  ac_status=$?
6463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464  (exit $ac_status); }; }; then
6465  ac_cv_lib_posix_remove=yes
6466else
6467  echo "$as_me: failed program was:" >&5
6468sed 's/^/| /' conftest.$ac_ext >&5
6469
6470ac_cv_lib_posix_remove=no
6471fi
6472rm -f conftest.err conftest.$ac_objext \
6473      conftest$ac_exeext conftest.$ac_ext
6474LIBS=$ac_check_lib_save_LIBS
6475fi
6476echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6477echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6478if test $ac_cv_lib_posix_remove = yes; then
6479  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6480fi
6481
6482    fi
6483
6484    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6485    echo "$as_me:$LINENO: checking for shmat" >&5
6486echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6487if test "${ac_cv_func_shmat+set}" = set; then
6488  echo $ECHO_N "(cached) $ECHO_C" >&6
6489else
6490  cat >conftest.$ac_ext <<_ACEOF
6491/* confdefs.h.  */
6492_ACEOF
6493cat confdefs.h >>conftest.$ac_ext
6494cat >>conftest.$ac_ext <<_ACEOF
6495/* end confdefs.h.  */
6496/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6497   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6498#define shmat innocuous_shmat
6499
6500/* System header to define __stub macros and hopefully few prototypes,
6501    which can conflict with char shmat (); below.
6502    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6503    <limits.h> exists even on freestanding compilers.  */
6504
6505#ifdef __STDC__
6506# include <limits.h>
6507#else
6508# include <assert.h>
6509#endif
6510
6511#undef shmat
6512
6513/* Override any gcc2 internal prototype to avoid an error.  */
6514#ifdef __cplusplus
6515extern "C"
6516{
6517#endif
6518/* We use char because int might match the return type of a gcc2
6519   builtin and then its argument prototype would still apply.  */
6520char shmat ();
6521/* The GNU C library defines this for functions which it implements
6522    to always fail with ENOSYS.  Some functions are actually named
6523    something starting with __ and the normal name is an alias.  */
6524#if defined (__stub_shmat) || defined (__stub___shmat)
6525choke me
6526#else
6527char (*f) () = shmat;
6528#endif
6529#ifdef __cplusplus
6530}
6531#endif
6532
6533int
6534main ()
6535{
6536return f != shmat;
6537  ;
6538  return 0;
6539}
6540_ACEOF
6541rm -f conftest.$ac_objext conftest$ac_exeext
6542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6543  (eval $ac_link) 2>conftest.er1
6544  ac_status=$?
6545  grep -v '^ *+' conftest.er1 >conftest.err
6546  rm -f conftest.er1
6547  cat conftest.err >&5
6548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549  (exit $ac_status); } &&
6550	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552  (eval $ac_try) 2>&5
6553  ac_status=$?
6554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555  (exit $ac_status); }; } &&
6556	 { ac_try='test -s conftest$ac_exeext'
6557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558  (eval $ac_try) 2>&5
6559  ac_status=$?
6560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561  (exit $ac_status); }; }; then
6562  ac_cv_func_shmat=yes
6563else
6564  echo "$as_me: failed program was:" >&5
6565sed 's/^/| /' conftest.$ac_ext >&5
6566
6567ac_cv_func_shmat=no
6568fi
6569rm -f conftest.err conftest.$ac_objext \
6570      conftest$ac_exeext conftest.$ac_ext
6571fi
6572echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6573echo "${ECHO_T}$ac_cv_func_shmat" >&6
6574
6575    if test $ac_cv_func_shmat = no; then
6576      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6577echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6578if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6579  echo $ECHO_N "(cached) $ECHO_C" >&6
6580else
6581  ac_check_lib_save_LIBS=$LIBS
6582LIBS="-lipc  $LIBS"
6583cat >conftest.$ac_ext <<_ACEOF
6584/* confdefs.h.  */
6585_ACEOF
6586cat confdefs.h >>conftest.$ac_ext
6587cat >>conftest.$ac_ext <<_ACEOF
6588/* end confdefs.h.  */
6589
6590/* Override any gcc2 internal prototype to avoid an error.  */
6591#ifdef __cplusplus
6592extern "C"
6593#endif
6594/* We use char because int might match the return type of a gcc2
6595   builtin and then its argument prototype would still apply.  */
6596char shmat ();
6597int
6598main ()
6599{
6600shmat ();
6601  ;
6602  return 0;
6603}
6604_ACEOF
6605rm -f conftest.$ac_objext conftest$ac_exeext
6606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6607  (eval $ac_link) 2>conftest.er1
6608  ac_status=$?
6609  grep -v '^ *+' conftest.er1 >conftest.err
6610  rm -f conftest.er1
6611  cat conftest.err >&5
6612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613  (exit $ac_status); } &&
6614	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616  (eval $ac_try) 2>&5
6617  ac_status=$?
6618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619  (exit $ac_status); }; } &&
6620	 { ac_try='test -s conftest$ac_exeext'
6621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622  (eval $ac_try) 2>&5
6623  ac_status=$?
6624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625  (exit $ac_status); }; }; then
6626  ac_cv_lib_ipc_shmat=yes
6627else
6628  echo "$as_me: failed program was:" >&5
6629sed 's/^/| /' conftest.$ac_ext >&5
6630
6631ac_cv_lib_ipc_shmat=no
6632fi
6633rm -f conftest.err conftest.$ac_objext \
6634      conftest$ac_exeext conftest.$ac_ext
6635LIBS=$ac_check_lib_save_LIBS
6636fi
6637echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6638echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6639if test $ac_cv_lib_ipc_shmat = yes; then
6640  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6641fi
6642
6643    fi
6644  fi
6645
6646  # Check for libraries that X11R6 Xt/Xaw programs need.
6647  ac_save_LDFLAGS=$LDFLAGS
6648  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6649  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6650  # check for ICE first), but we must link in the order -lSM -lICE or
6651  # we get undefined symbols.  So assume we have SM if we have ICE.
6652  # These have to be linked with before -lX11, unlike the other
6653  # libraries we check for below, so use a different variable.
6654  # John Interrante, Karl Berry
6655  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6656echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6657if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6658  echo $ECHO_N "(cached) $ECHO_C" >&6
6659else
6660  ac_check_lib_save_LIBS=$LIBS
6661LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6662cat >conftest.$ac_ext <<_ACEOF
6663/* confdefs.h.  */
6664_ACEOF
6665cat confdefs.h >>conftest.$ac_ext
6666cat >>conftest.$ac_ext <<_ACEOF
6667/* end confdefs.h.  */
6668
6669/* Override any gcc2 internal prototype to avoid an error.  */
6670#ifdef __cplusplus
6671extern "C"
6672#endif
6673/* We use char because int might match the return type of a gcc2
6674   builtin and then its argument prototype would still apply.  */
6675char IceConnectionNumber ();
6676int
6677main ()
6678{
6679IceConnectionNumber ();
6680  ;
6681  return 0;
6682}
6683_ACEOF
6684rm -f conftest.$ac_objext conftest$ac_exeext
6685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6686  (eval $ac_link) 2>conftest.er1
6687  ac_status=$?
6688  grep -v '^ *+' conftest.er1 >conftest.err
6689  rm -f conftest.er1
6690  cat conftest.err >&5
6691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692  (exit $ac_status); } &&
6693	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695  (eval $ac_try) 2>&5
6696  ac_status=$?
6697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698  (exit $ac_status); }; } &&
6699	 { ac_try='test -s conftest$ac_exeext'
6700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701  (eval $ac_try) 2>&5
6702  ac_status=$?
6703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704  (exit $ac_status); }; }; then
6705  ac_cv_lib_ICE_IceConnectionNumber=yes
6706else
6707  echo "$as_me: failed program was:" >&5
6708sed 's/^/| /' conftest.$ac_ext >&5
6709
6710ac_cv_lib_ICE_IceConnectionNumber=no
6711fi
6712rm -f conftest.err conftest.$ac_objext \
6713      conftest$ac_exeext conftest.$ac_ext
6714LIBS=$ac_check_lib_save_LIBS
6715fi
6716echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6717echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6718if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6719  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6720fi
6721
6722  LDFLAGS=$ac_save_LDFLAGS
6723
6724fi
6725
6726
6727test x$no_x = "xyes" && { { echo "$as_me:$LINENO: error: Idesk requires the X Window System libraries and headers." >&5
6728echo "$as_me: error: Idesk requires the X Window System libraries and headers." >&2;}
6729   { (exit 1); exit 1; }; }
6730
6731test x$x_includes = "x" && x_includes="/usr/include"
6732test x$x_libraries = "x" && x_libraries="/usr/lib"
6733
6734CFLAGS="$CFLAGS $X_CFLAGS"
6735CXXFLAGS="$CXXFLAGS $X_CFLAGS"
6736LIBS="$LIBS $X_LIBS"
6737LDFLAGS="$LDFLAGS $LIBS $X_PRE_LIBS"
6738
6739echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
6740echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
6741if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
6742  echo $ECHO_N "(cached) $ECHO_C" >&6
6743else
6744  ac_check_lib_save_LIBS=$LIBS
6745LIBS="-lX11  $LIBS"
6746cat >conftest.$ac_ext <<_ACEOF
6747/* confdefs.h.  */
6748_ACEOF
6749cat confdefs.h >>conftest.$ac_ext
6750cat >>conftest.$ac_ext <<_ACEOF
6751/* end confdefs.h.  */
6752
6753/* Override any gcc2 internal prototype to avoid an error.  */
6754#ifdef __cplusplus
6755extern "C"
6756#endif
6757/* We use char because int might match the return type of a gcc2
6758   builtin and then its argument prototype would still apply.  */
6759char XOpenDisplay ();
6760int
6761main ()
6762{
6763XOpenDisplay ();
6764  ;
6765  return 0;
6766}
6767_ACEOF
6768rm -f conftest.$ac_objext conftest$ac_exeext
6769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6770  (eval $ac_link) 2>conftest.er1
6771  ac_status=$?
6772  grep -v '^ *+' conftest.er1 >conftest.err
6773  rm -f conftest.er1
6774  cat conftest.err >&5
6775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776  (exit $ac_status); } &&
6777	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779  (eval $ac_try) 2>&5
6780  ac_status=$?
6781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782  (exit $ac_status); }; } &&
6783	 { ac_try='test -s conftest$ac_exeext'
6784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785  (eval $ac_try) 2>&5
6786  ac_status=$?
6787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788  (exit $ac_status); }; }; then
6789  ac_cv_lib_X11_XOpenDisplay=yes
6790else
6791  echo "$as_me: failed program was:" >&5
6792sed 's/^/| /' conftest.$ac_ext >&5
6793
6794ac_cv_lib_X11_XOpenDisplay=no
6795fi
6796rm -f conftest.err conftest.$ac_objext \
6797      conftest$ac_exeext conftest.$ac_ext
6798LIBS=$ac_check_lib_save_LIBS
6799fi
6800echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
6801echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
6802if test $ac_cv_lib_X11_XOpenDisplay = yes; then
6803  LIBS="$LIBS -lX11"
6804else
6805
6806  echo "ERROR:  You need libX11 to build Idesk.  Verify that you have libX11.a or";
6807  echo "        libX11.so installed and that it is located in the X libraries";
6808  { { echo "$as_me:$LINENO: error: Fatal:  libX11 not found." >&5
6809echo "$as_me: error: Fatal:  libX11 not found." >&2;}
6810   { (exit 1); exit 1; }; }
6811fi
6812
6813
6814LIBS="$LIBS $X_EXTRA_LIBS"
6815
6816SHAPE=""
6817echo "$as_me:$LINENO: checking whether to build support for the XShape extension" >&5
6818echo $ECHO_N "checking whether to build support for the XShape extension... $ECHO_C" >&6
6819# Check whether --enable-shape or --disable-shape was given.
6820if test "${enable_shape+set}" = set; then
6821  enableval="$enable_shape"
6822
6823fi;
6824
6825: ${enableval="yes"}
6826if test x$enableval = "xyes"; then
6827  echo "$as_me:$LINENO: result: yes" >&5
6828echo "${ECHO_T}yes" >&6
6829  echo "$as_me:$LINENO: checking for XShapeCombineShape in -lXext" >&5
6830echo $ECHO_N "checking for XShapeCombineShape in -lXext... $ECHO_C" >&6
6831if test "${ac_cv_lib_Xext_XShapeCombineShape+set}" = set; then
6832  echo $ECHO_N "(cached) $ECHO_C" >&6
6833else
6834  ac_check_lib_save_LIBS=$LIBS
6835LIBS="-lXext  $LIBS"
6836cat >conftest.$ac_ext <<_ACEOF
6837/* confdefs.h.  */
6838_ACEOF
6839cat confdefs.h >>conftest.$ac_ext
6840cat >>conftest.$ac_ext <<_ACEOF
6841/* end confdefs.h.  */
6842
6843/* Override any gcc2 internal prototype to avoid an error.  */
6844#ifdef __cplusplus
6845extern "C"
6846#endif
6847/* We use char because int might match the return type of a gcc2
6848   builtin and then its argument prototype would still apply.  */
6849char XShapeCombineShape ();
6850int
6851main ()
6852{
6853XShapeCombineShape ();
6854  ;
6855  return 0;
6856}
6857_ACEOF
6858rm -f conftest.$ac_objext conftest$ac_exeext
6859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6860  (eval $ac_link) 2>conftest.er1
6861  ac_status=$?
6862  grep -v '^ *+' conftest.er1 >conftest.err
6863  rm -f conftest.er1
6864  cat conftest.err >&5
6865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866  (exit $ac_status); } &&
6867	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869  (eval $ac_try) 2>&5
6870  ac_status=$?
6871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872  (exit $ac_status); }; } &&
6873	 { ac_try='test -s conftest$ac_exeext'
6874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875  (eval $ac_try) 2>&5
6876  ac_status=$?
6877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878  (exit $ac_status); }; }; then
6879  ac_cv_lib_Xext_XShapeCombineShape=yes
6880else
6881  echo "$as_me: failed program was:" >&5
6882sed 's/^/| /' conftest.$ac_ext >&5
6883
6884ac_cv_lib_Xext_XShapeCombineShape=no
6885fi
6886rm -f conftest.err conftest.$ac_objext \
6887      conftest$ac_exeext conftest.$ac_ext
6888LIBS=$ac_check_lib_save_LIBS
6889fi
6890echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineShape" >&5
6891echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineShape" >&6
6892if test $ac_cv_lib_Xext_XShapeCombineShape = yes; then
6893  echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
6894echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
6895    cat >conftest.$ac_ext <<_ACEOF
6896/* confdefs.h.  */
6897_ACEOF
6898cat confdefs.h >>conftest.$ac_ext
6899cat >>conftest.$ac_ext <<_ACEOF
6900/* end confdefs.h.  */
6901#include <X11/Xlib.h>
6902#include <X11/Xutil.h>
6903#include <X11/extensions/shape.h>
6904
6905int
6906main ()
6907{
6908long foo = ShapeSet
6909  ;
6910  return 0;
6911}
6912_ACEOF
6913rm -f conftest.$ac_objext conftest$ac_exeext
6914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6915  (eval $ac_link) 2>conftest.er1
6916  ac_status=$?
6917  grep -v '^ *+' conftest.er1 >conftest.err
6918  rm -f conftest.er1
6919  cat conftest.err >&5
6920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921  (exit $ac_status); } &&
6922	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924  (eval $ac_try) 2>&5
6925  ac_status=$?
6926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927  (exit $ac_status); }; } &&
6928	 { ac_try='test -s conftest$ac_exeext'
6929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930  (eval $ac_try) 2>&5
6931  ac_status=$?
6932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933  (exit $ac_status); }; }; then
6934  echo "$as_me:$LINENO: result: yes" >&5
6935echo "${ECHO_T}yes" >&6
6936      SHAPE="-DSHAPE"; Xext_lib="-lXext"
6937else
6938  echo "$as_me: failed program was:" >&5
6939sed 's/^/| /' conftest.$ac_ext >&5
6940
6941echo "$as_me:$LINENO: result: no" >&5
6942echo "${ECHO_T}no" >&6
6943
6944fi
6945rm -f conftest.err conftest.$ac_objext \
6946      conftest$ac_exeext conftest.$ac_ext
6947
6948fi
6949
6950else
6951  echo "$as_me:$LINENO: result: no" >&5
6952echo "${ECHO_T}no" >&6
6953fi
6954
6955CXXFLAGS="$CXXFLAGS $SHAPE"
6956LIBS="$LIBS $Xext_lib"
6957
6958
6959
6960
6961# Check whether --with-imlib2-prefix or --without-imlib2-prefix was given.
6962if test "${with_imlib2_prefix+set}" = set; then
6963  withval="$with_imlib2_prefix"
6964  imlib2_config_prefix="$withval"
6965else
6966  imlib2_config_prefix=""
6967fi;
6968
6969# Check whether --with-imlib2-exec-prefix or --without-imlib2-exec-prefix was given.
6970if test "${with_imlib2_exec_prefix+set}" = set; then
6971  withval="$with_imlib2_exec_prefix"
6972  imlib2_config_exec_prefix="$withval"
6973else
6974  imlib2_config_exec_prefix=""
6975fi;
6976
6977  if test x$imlib2_config_exec_prefix != x ; then
6978     imlib2_config_args="$imlib2_config_args --exec-prefix=$imlib2_config_exec_prefix"
6979     if test x${IMLIB2_CONFIG+set} != xset ; then
6980       IMLIB2_CONFIG=$imlib2_config_exec_prefix/bin/imlib2-config
6981     fi
6982  fi
6983  if test x$imlib2_config_prefix != x ; then
6984     imlib2_config_args="$imlib2_config_args --prefix=$imlib2_config_prefix"
6985     if test x${IMLIB2_CONFIG+set} != xset ; then
6986       IMLIB2_CONFIG=$imlib2_config_prefix/bin/imlib2-config
6987     fi
6988  fi
6989
6990  # Extract the first word of "imlib2-config", so it can be a program name with args.
6991set dummy imlib2-config; ac_word=$2
6992echo "$as_me:$LINENO: checking for $ac_word" >&5
6993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6994if test "${ac_cv_path_IMLIB2_CONFIG+set}" = set; then
6995  echo $ECHO_N "(cached) $ECHO_C" >&6
6996else
6997  case $IMLIB2_CONFIG in
6998  [\\/]* | ?:[\\/]*)
6999  ac_cv_path_IMLIB2_CONFIG="$IMLIB2_CONFIG" # Let the user override the test with a path.
7000  ;;
7001  *)
7002  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005  IFS=$as_save_IFS
7006  test -z "$as_dir" && as_dir=.
7007  for ac_exec_ext in '' $ac_executable_extensions; do
7008  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009    ac_cv_path_IMLIB2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7010    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011    break 2
7012  fi
7013done
7014done
7015
7016  test -z "$ac_cv_path_IMLIB2_CONFIG" && ac_cv_path_IMLIB2_CONFIG="no"
7017  ;;
7018esac
7019fi
7020IMLIB2_CONFIG=$ac_cv_path_IMLIB2_CONFIG
7021
7022if test -n "$IMLIB2_CONFIG"; then
7023  echo "$as_me:$LINENO: result: $IMLIB2_CONFIG" >&5
7024echo "${ECHO_T}$IMLIB2_CONFIG" >&6
7025else
7026  echo "$as_me:$LINENO: result: no" >&5
7027echo "${ECHO_T}no" >&6
7028fi
7029
7030  echo "$as_me:$LINENO: checking for imlib2" >&5
7031echo $ECHO_N "checking for imlib2... $ECHO_C" >&6
7032  no_imlib2=""
7033  if test "$IMLIB2_CONFIG" = "no" ; then
7034     no_imlib2=yes
7035  else
7036     IMLIB2_CFLAGS="`$IMLIB2_CONFIG $imlib2_config_args --cflags`"
7037     IMLIB2_LIBS="`$IMLIB2_CONFIG $imlib2_config_args --libs`"
7038
7039  fi
7040  if test "x$no_imlib2" = x ; then
7041     echo "$as_me:$LINENO: result: yes" >&5
7042echo "${ECHO_T}yes" >&6
7043
7044
7045
7046  else
7047     echo "$as_me:$LINENO: result: no" >&5
7048echo "${ECHO_T}no" >&6
7049     if test "$IMLIB2_CONFIG" = "no" ; then
7050       echo "*** The imlib2-config script installed by imlib2 could not be found"
7051       echo "*** If imlib2 was installed in PREFIX, make sure PREFIX/bin is in"
7052       echo "*** your path, or set the IMLIB2_CONFIG environment variable to the"
7053       echo "*** full path to imlib2-config."
7054     fi
7055     IMLIB2_CFLAGS=""
7056     IMLIB2_LIBS=""
7057     { { echo "$as_me:$LINENO: error: Cannot find imlib2: Is imlib2-config in the path?
7058               You need Imlib2 to build Idesk.  Verify that you have Imlib2-dev" >&5
7059echo "$as_me: error: Cannot find imlib2: Is imlib2-config in the path?
7060               You need Imlib2 to build Idesk.  Verify that you have Imlib2-dev" >&2;}
7061   { (exit 1); exit 1; }; }
7062  fi
7063
7064
7065
7066
7067
7068
7069
7070IMLIB_LIBS=`imlib2-config --libs`
7071IMLIB_CFLAGS=`imlib2-config --cflags`
7072
7073
7074
7075CXXFLAGS="$CXXFLAGS $IMLIB_CXXFLAGS"
7076LIBS="$LIBS $IMLIB_LIBS"
7077
7078
7079STARTUP=""
7080echo "$as_me:$LINENO: checking whether to include Startup Notification " >&5
7081echo $ECHO_N "checking whether to include Startup Notification ... $ECHO_C" >&6
7082# Check whether --enable-libsn or --disable-libsn was given.
7083if test "${enable_libsn+set}" = set; then
7084  enableval="$enable_libsn"
7085
7086fi;
7087
7088if test -n "$enable_libsn"; then
7089
7090
7091if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7092	if test -n "$ac_tool_prefix"; then
7093  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7094set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7095echo "$as_me:$LINENO: checking for $ac_word" >&5
7096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7097if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7098  echo $ECHO_N "(cached) $ECHO_C" >&6
7099else
7100  case $PKG_CONFIG in
7101  [\\/]* | ?:[\\/]*)
7102  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7103  ;;
7104  *)
7105  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108  IFS=$as_save_IFS
7109  test -z "$as_dir" && as_dir=.
7110  for ac_exec_ext in '' $ac_executable_extensions; do
7111  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7112    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7113    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114    break 2
7115  fi
7116done
7117done
7118
7119  ;;
7120esac
7121fi
7122PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7123
7124if test -n "$PKG_CONFIG"; then
7125  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7126echo "${ECHO_T}$PKG_CONFIG" >&6
7127else
7128  echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6
7130fi
7131
7132fi
7133if test -z "$ac_cv_path_PKG_CONFIG"; then
7134  ac_pt_PKG_CONFIG=$PKG_CONFIG
7135  # Extract the first word of "pkg-config", so it can be a program name with args.
7136set dummy pkg-config; ac_word=$2
7137echo "$as_me:$LINENO: checking for $ac_word" >&5
7138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7139if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
7140  echo $ECHO_N "(cached) $ECHO_C" >&6
7141else
7142  case $ac_pt_PKG_CONFIG in
7143  [\\/]* | ?:[\\/]*)
7144  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7145  ;;
7146  *)
7147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148for as_dir in $PATH
7149do
7150  IFS=$as_save_IFS
7151  test -z "$as_dir" && as_dir=.
7152  for ac_exec_ext in '' $ac_executable_extensions; do
7153  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7155    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7156    break 2
7157  fi
7158done
7159done
7160
7161  ;;
7162esac
7163fi
7164ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7165
7166if test -n "$ac_pt_PKG_CONFIG"; then
7167  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7168echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
7169else
7170  echo "$as_me:$LINENO: result: no" >&5
7171echo "${ECHO_T}no" >&6
7172fi
7173
7174  PKG_CONFIG=$ac_pt_PKG_CONFIG
7175else
7176  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7177fi
7178
7179fi
7180if test -n "$PKG_CONFIG"; then
7181	_pkg_min_version=0.9.0
7182	echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
7183echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
7184	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7185		echo "$as_me:$LINENO: result: yes" >&5
7186echo "${ECHO_T}yes" >&6
7187	else
7188		echo "$as_me:$LINENO: result: no" >&5
7189echo "${ECHO_T}no" >&6
7190		PKG_CONFIG=""
7191	fi
7192
7193fi
7194
7195pkg_failed=no
7196echo "$as_me:$LINENO: checking for LIBSN" >&5
7197echo $ECHO_N "checking for LIBSN... $ECHO_C" >&6
7198
7199if test -n "$PKG_CONFIG"; then
7200        if test -n "$PKG_CONFIG" && \
7201    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libstartup-notification-1.0 >= 0.5\"") >&5
7202  ($PKG_CONFIG --exists --print-errors "libstartup-notification-1.0 >= 0.5") 2>&5
7203  ac_status=$?
7204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205  (exit $ac_status); }; then
7206  pkg_cv_LIBSN_CFLAGS=`$PKG_CONFIG --cflags "libstartup-notification-1.0 >= 0.5" 2>/dev/null`
7207else
7208  pkg_failed=yes
7209fi
7210else
7211	pkg_failed=untried
7212fi
7213if test -n "$PKG_CONFIG"; then
7214        if test -n "$PKG_CONFIG" && \
7215    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libstartup-notification-1.0 >= 0.5\"") >&5
7216  ($PKG_CONFIG --exists --print-errors "libstartup-notification-1.0 >= 0.5") 2>&5
7217  ac_status=$?
7218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219  (exit $ac_status); }; then
7220  pkg_cv_LIBSN_LIBS=`$PKG_CONFIG --libs "libstartup-notification-1.0 >= 0.5" 2>/dev/null`
7221else
7222  pkg_failed=yes
7223fi
7224else
7225	pkg_failed=untried
7226fi
7227
7228if test $pkg_failed = yes; then
7229	LIBSN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libstartup-notification-1.0 >= 0.5"`
7230	# Put the nasty error message in config.log where it belongs
7231	echo "$LIBSN_PKG_ERRORS" 1>&5
7232
7233	{ { echo "$as_me:$LINENO: error: Package requirements (libstartup-notification-1.0 >= 0.5) were not met.
7234Consider adjusting the PKG_CONFIG_PATH environment variable if you
7235installed software in a non-standard prefix.
7236
7237Alternatively you may set the LIBSN_CFLAGS and LIBSN_LIBS environment variables
7238to avoid the need to call pkg-config.  See the pkg-config man page for
7239more details." >&5
7240echo "$as_me: error: Package requirements (libstartup-notification-1.0 >= 0.5) were not met.
7241Consider adjusting the PKG_CONFIG_PATH environment variable if you
7242installed software in a non-standard prefix.
7243
7244Alternatively you may set the LIBSN_CFLAGS and LIBSN_LIBS environment variables
7245to avoid the need to call pkg-config.  See the pkg-config man page for
7246more details." >&2;}
7247   { (exit 1); exit 1; }; }
7248elif test $pkg_failed = untried; then
7249	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
7250is in your PATH or set the PKG_CONFIG environment variable to the full
7251path to pkg-config.
7252
7253Alternatively you may set the LIBSN_CFLAGS and LIBSN_LIBS environment variables
7254to avoid the need to call pkg-config.  See the pkg-config man page for
7255more details.
7256
7257To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
7258See \`config.log' for more details." >&5
7259echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
7260is in your PATH or set the PKG_CONFIG environment variable to the full
7261path to pkg-config.
7262
7263Alternatively you may set the LIBSN_CFLAGS and LIBSN_LIBS environment variables
7264to avoid the need to call pkg-config.  See the pkg-config man page for
7265more details.
7266
7267To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
7268See \`config.log' for more details." >&2;}
7269   { (exit 1); exit 1; }; }
7270else
7271	LIBSN_CFLAGS=$pkg_cv_LIBSN_CFLAGS
7272	LIBSN_LIBS=$pkg_cv_LIBSN_LIBS
7273        echo "$as_me:$LINENO: result: yes" >&5
7274echo "${ECHO_T}yes" >&6
7275	:
7276fi
7277      		    echo "$as_me:$LINENO: result: yes" >&5
7278echo "${ECHO_T}yes" >&6
7279                    STARTUP="-DHAVE_STARTUP_NOTIFICATION -DSN_API_NOT_YET_FROZEN=1",
7280else
7281  echo "$as_me:$LINENO: result: no" >&5
7282echo "${ECHO_T}no" >&6
7283fi
7284
7285
7286
7287if test x$LIBSN = xtrue; then
7288  HAVE_STARTUP_NOTIFICATION_TRUE=
7289  HAVE_STARTUP_NOTIFICATION_FALSE='#'
7290else
7291  HAVE_STARTUP_NOTIFICATION_TRUE='#'
7292  HAVE_STARTUP_NOTIFICATION_FALSE=
7293fi
7294
7295
7296
7297CXXFLAGS="$CXXFLAGS $LIBSN_CFLAGS $STARTUP"
7298LIBS="$LIBS $LIBSN_LIBS"
7299
7300
7301echo "$as_me:$LINENO: checking whether to have Xft support" >&5
7302echo $ECHO_N "checking whether to have Xft support... $ECHO_C" >&6
7303
7304
7305# Check whether --with-xft-prefix or --without-xft-prefix was given.
7306if test "${with_xft_prefix+set}" = set; then
7307  withval="$with_xft_prefix"
7308  xft_prefix="$withval"
7309else
7310  xft_prefix=""
7311fi;
7312
7313# Check whether --with-pkg-exec-prefix or --without-pkg-exec-prefix was given.
7314if test "${with_pkg_exec_prefix+set}" = set; then
7315  withval="$with_pkg_exec_prefix"
7316  pkg_exec_prefix="$withval"
7317else
7318  pkg_exec_prefix=""
7319fi;
7320 # Check whether --enable-xft or --disable-xft was given.
7321if test "${enable_xft+set}" = set; then
7322  enableval="$enable_xft"
7323  if test "x$enableval" = "xyes"; then
7324		TRY_XFT=yes
7325	else
7326		TRY_XFT=no
7327	fi
7328
7329else
7330  TRY_XFT=yes
7331
7332fi;
7333
7334if test "x$TRY_XFT" = "xyes"; then
7335	echo "$as_me:$LINENO: result: yes" >&5
7336echo "${ECHO_T}yes" >&6
7337
7338	if test x$pkg_exec_prefix != x ; then
7339	   xft_args="$xft_args --exec-prefix=$pkg_exec_prefix"
7340	   if test x${PKG_CONFIG+set} != xset ; then
7341	       PKG_CONFIG=$pkg_exec_prefix/bin/pkg-config
7342    fi
7343fi
7344
7345if test x$xft_prefix != x ; then
7346   xft_args="$xft_args --prefix=$xft_prefix"
7347   if test x${PKG_CONFIG+set} != xset ; then
7348      PKG_CONFIG=$xft_prefix/bin/pkg-config
7349   fi
7350fi
7351
7352# Extract the first word of "pkg-config", so it can be a program name with args.
7353set dummy pkg-config; ac_word=$2
7354echo "$as_me:$LINENO: checking for $ac_word" >&5
7355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7356if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7357  echo $ECHO_N "(cached) $ECHO_C" >&6
7358else
7359  case $PKG_CONFIG in
7360  [\\/]* | ?:[\\/]*)
7361  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7362  ;;
7363  *)
7364  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365for as_dir in $PATH
7366do
7367  IFS=$as_save_IFS
7368  test -z "$as_dir" && as_dir=.
7369  for ac_exec_ext in '' $ac_executable_extensions; do
7370  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7371    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7372    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373    break 2
7374  fi
7375done
7376done
7377
7378  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7379  ;;
7380esac
7381fi
7382PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7383
7384if test -n "$PKG_CONFIG"; then
7385  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7386echo "${ECHO_T}$PKG_CONFIG" >&6
7387else
7388  echo "$as_me:$LINENO: result: no" >&5
7389echo "${ECHO_T}no" >&6
7390fi
7391
7392if test "x$PKG_CONFIG" = "xno" ; then
7393	# xft2 failed: try xft1
7394
7395	echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
7396echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6
7397if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
7398  echo $ECHO_N "(cached) $ECHO_C" >&6
7399else
7400  ac_check_lib_save_LIBS=$LIBS
7401LIBS="-lXft  $LIBS"
7402cat >conftest.$ac_ext <<_ACEOF
7403/* confdefs.h.  */
7404_ACEOF
7405cat confdefs.h >>conftest.$ac_ext
7406cat >>conftest.$ac_ext <<_ACEOF
7407/* end confdefs.h.  */
7408
7409/* Override any gcc2 internal prototype to avoid an error.  */
7410#ifdef __cplusplus
7411extern "C"
7412#endif
7413/* We use char because int might match the return type of a gcc2
7414   builtin and then its argument prototype would still apply.  */
7415char XftFontOpen ();
7416int
7417main ()
7418{
7419XftFontOpen ();
7420  ;
7421  return 0;
7422}
7423_ACEOF
7424rm -f conftest.$ac_objext conftest$ac_exeext
7425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7426  (eval $ac_link) 2>conftest.er1
7427  ac_status=$?
7428  grep -v '^ *+' conftest.er1 >conftest.err
7429  rm -f conftest.er1
7430  cat conftest.err >&5
7431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432  (exit $ac_status); } &&
7433	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
7434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435  (eval $ac_try) 2>&5
7436  ac_status=$?
7437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438  (exit $ac_status); }; } &&
7439	 { ac_try='test -s conftest$ac_exeext'
7440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441  (eval $ac_try) 2>&5
7442  ac_status=$?
7443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444  (exit $ac_status); }; }; then
7445  ac_cv_lib_Xft_XftFontOpen=yes
7446else
7447  echo "$as_me: failed program was:" >&5
7448sed 's/^/| /' conftest.$ac_ext >&5
7449
7450ac_cv_lib_Xft_XftFontOpen=no
7451fi
7452rm -f conftest.err conftest.$ac_objext \
7453      conftest$ac_exeext conftest.$ac_ext
7454LIBS=$ac_check_lib_save_LIBS
7455fi
7456echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
7457echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6
7458if test $ac_cv_lib_Xft_XftFontOpen = yes; then
7459  XFT_LIBS="-lXft"
7460		XFT=true
7461else
7462  XFT=false
7463
7464		echo "$as_me:$LINENO: result: Cant find Xft libraries! Disabling Xft" >&5
7465echo "${ECHO_T}Cant find Xft libraries! Disabling Xft" >&6
7466
7467fi
7468
7469
7470
7471else
7472	XFT_CFLAGS=`$PKG_CONFIG $xftconf_args --cflags xft`
7473	XFT_LIBS=`$PKG_CONFIG $xftconf_args --libs xft`
7474	XFT=true
7475fi
7476
7477
7478else
7479	echo "$as_me:$LINENO: result: no" >&5
7480echo "${ECHO_T}no" >&6
7481	XFT=false
7482
7483fi
7484
7485CFLAGS="$CFLAGS $XFT_CFLAGS"
7486CXXFLAGS="$CXXFLAGS $XFT_CFLAGS"
7487LIBS="$LIBS $XFT_LIBS"
7488
7489
7490
7491if test "x$XFT" = "xtrue" ; then
7492	cat >conftest.$ac_ext <<_ACEOF
7493/* confdefs.h.  */
7494_ACEOF
7495cat confdefs.h >>conftest.$ac_ext
7496cat >>conftest.$ac_ext <<_ACEOF
7497/* end confdefs.h.  */
7498
7499			#include <X11/Xft/Xft.h>
7500
7501int
7502main ()
7503{
7504 XftFontClose(0, 0); return 1;
7505  ;
7506  return 0;
7507}
7508_ACEOF
7509rm -f conftest.$ac_objext conftest$ac_exeext
7510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7511  (eval $ac_link) 2>conftest.er1
7512  ac_status=$?
7513  grep -v '^ *+' conftest.er1 >conftest.err
7514  rm -f conftest.er1
7515  cat conftest.err >&5
7516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517  (exit $ac_status); } &&
7518	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
7519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520  (eval $ac_try) 2>&5
7521  ac_status=$?
7522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523  (exit $ac_status); }; } &&
7524	 { ac_try='test -s conftest$ac_exeext'
7525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526  (eval $ac_try) 2>&5
7527  ac_status=$?
7528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529  (exit $ac_status); }; }; then
7530
7531
7532
7533cat >>confdefs.h <<\_ACEOF
7534@%:@define USE_XFT 1
7535_ACEOF
7536
7537	    echo "$as_me:$LINENO: checking Xft UTF-8 support" >&5
7538echo $ECHO_N "checking Xft UTF-8 support... $ECHO_C" >&6
7539   	     cat >conftest.$ac_ext <<_ACEOF
7540/* confdefs.h.  */
7541_ACEOF
7542cat confdefs.h >>conftest.$ac_ext
7543cat >>conftest.$ac_ext <<_ACEOF
7544/* end confdefs.h.  */
7545
7546			#include <X11/Xft/Xft.h>
7547
7548int
7549main ()
7550{
7551 XftDrawStringUtf8(0, 0, 0, 0, 0, 0, 0); return 0;
7552  ;
7553  return 0;
7554}
7555_ACEOF
7556rm -f conftest.$ac_objext conftest$ac_exeext
7557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7558  (eval $ac_link) 2>conftest.er1
7559  ac_status=$?
7560  grep -v '^ *+' conftest.er1 >conftest.err
7561  rm -f conftest.er1
7562  cat conftest.err >&5
7563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564  (exit $ac_status); } &&
7565	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
7566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567  (eval $ac_try) 2>&5
7568  ac_status=$?
7569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570  (exit $ac_status); }; } &&
7571	 { ac_try='test -s conftest$ac_exeext'
7572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573  (eval $ac_try) 2>&5
7574  ac_status=$?
7575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576  (exit $ac_status); }; }; then
7577
7578cat >>confdefs.h <<\_ACEOF
7579@%:@define HAVE_XFT_UTF8_STRING 1
7580_ACEOF
7581
7582		echo "$as_me:$LINENO: result: yes" >&5
7583echo "${ECHO_T}yes" >&6
7584else
7585  echo "$as_me: failed program was:" >&5
7586sed 's/^/| /' conftest.$ac_ext >&5
7587
7588echo "$as_me:$LINENO: result: no" >&5
7589echo "${ECHO_T}no" >&6
7590
7591fi
7592rm -f conftest.err conftest.$ac_objext \
7593      conftest$ac_exeext conftest.$ac_ext
7594
7595else
7596  echo "$as_me: failed program was:" >&5
7597sed 's/^/| /' conftest.$ac_ext >&5
7598
7599	echo "$as_me:$LINENO: result: Could not link with Xft. Install Xft if you want support for it." >&5
7600echo "${ECHO_T}Could not link with Xft. Install Xft if you want support for it." >&6
7601		XFT=false
7602
7603fi
7604rm -f conftest.err conftest.$ac_objext \
7605      conftest$ac_exeext conftest.$ac_ext
7606fi
7607
7608
7609
7610if test x$XFT = xtrue; then
7611  XFT_TRUE=
7612  XFT_FALSE='#'
7613else
7614  XFT_TRUE='#'
7615  XFT_FALSE=
7616fi
7617
7618echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7619echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7620if test "${ac_cv_type_signal+set}" = set; then
7621  echo $ECHO_N "(cached) $ECHO_C" >&6
7622else
7623  cat >conftest.$ac_ext <<_ACEOF
7624/* confdefs.h.  */
7625_ACEOF
7626cat confdefs.h >>conftest.$ac_ext
7627cat >>conftest.$ac_ext <<_ACEOF
7628/* end confdefs.h.  */
7629#include <sys/types.h>
7630#include <signal.h>
7631#ifdef signal
7632# undef signal
7633#endif
7634#ifdef __cplusplus
7635extern "C" void (*signal (int, void (*)(int)))(int);
7636#else
7637void (*signal ()) ();
7638#endif
7639
7640int
7641main ()
7642{
7643int i;
7644  ;
7645  return 0;
7646}
7647_ACEOF
7648rm -f conftest.$ac_objext
7649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650  (eval $ac_compile) 2>conftest.er1
7651  ac_status=$?
7652  grep -v '^ *+' conftest.er1 >conftest.err
7653  rm -f conftest.er1
7654  cat conftest.err >&5
7655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656  (exit $ac_status); } &&
7657	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
7658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659  (eval $ac_try) 2>&5
7660  ac_status=$?
7661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662  (exit $ac_status); }; } &&
7663	 { ac_try='test -s conftest.$ac_objext'
7664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665  (eval $ac_try) 2>&5
7666  ac_status=$?
7667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668  (exit $ac_status); }; }; then
7669  ac_cv_type_signal=void
7670else
7671  echo "$as_me: failed program was:" >&5
7672sed 's/^/| /' conftest.$ac_ext >&5
7673
7674ac_cv_type_signal=int
7675fi
7676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7677fi
7678echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7679echo "${ECHO_T}$ac_cv_type_signal" >&6
7680
7681cat >>confdefs.h <<_ACEOF
7682@%:@define RETSIGTYPE $ac_cv_type_signal
7683_ACEOF
7684
7685
7686
7687
7688DEFAULT_PREFIX="$prefix"
7689
7690
7691echo "$as_me:$LINENO: result: " >&5
7692echo "${ECHO_T}" >&6
7693echo "$as_me:$LINENO: result: 	$PACKAGE version $VERSION configured successfully." >&5
7694echo "${ECHO_T}	$PACKAGE version $VERSION configured successfully." >&6
7695echo "$as_me:$LINENO: result: " >&5
7696echo "${ECHO_T}" >&6
7697echo "$as_me:$LINENO: result: Using '$prefix' for installation." >&5
7698echo "${ECHO_T}Using '$prefix' for installation." >&6
7699echo "$as_me:$LINENO: result: Using '$CXX' for C++ compiler." >&5
7700echo "${ECHO_T}Using '$CXX' for C++ compiler." >&6
7701echo "$as_me:$LINENO: result: Building with '$CXXFLAGS' for C++ compiler flags." >&5
7702echo "${ECHO_T}Building with '$CXXFLAGS' for C++ compiler flags." >&6
7703echo "$as_me:$LINENO: result: Building with '$LIBS' for linker flags." >&5
7704echo "${ECHO_T}Building with '$LIBS' for linker flags." >&6
7705echo "$as_me:$LINENO: result: " >&5
7706echo "${ECHO_T}" >&6
7707
7708
7709                    ac_config_files="$ac_config_files Makefile src/Makefile"
7710cat >confcache <<\_ACEOF
7711# This file is a shell script that caches the results of configure
7712# tests run on this system so they can be shared between configure
7713# scripts and configure runs, see configure's option --config-cache.
7714# It is not useful on other systems.  If it contains results you don't
7715# want to keep, you may remove or edit it.
7716#
7717# config.status only pays attention to the cache file if you give it
7718# the --recheck option to rerun configure.
7719#
7720# `ac_cv_env_foo' variables (set or unset) will be overridden when
7721# loading this file, other *unset* `ac_cv_foo' will be assigned the
7722# following values.
7723
7724_ACEOF
7725
7726# The following way of writing the cache mishandles newlines in values,
7727# but we know of no workaround that is simple, portable, and efficient.
7728# So, don't put newlines in cache variables' values.
7729# Ultrix sh set writes to stderr and can't be redirected directly,
7730# and sets the high bit in the cache file unless we assign to the vars.
7731{
7732  (set) 2>&1 |
7733    case `(ac_space=' '; set | grep ac_space) 2>&1` in
7734    *ac_space=\ *)
7735      # `set' does not quote correctly, so add quotes (double-quote
7736      # substitution turns \\\\ into \\, and sed turns \\ into \).
7737      sed -n \
7738	"s/'/'\\\\''/g;
7739	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7740      ;;
7741    *)
7742      # `set' quotes correctly as required by POSIX, so do not add quotes.
7743      sed -n \
7744	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7745      ;;
7746    esac;
7747} |
7748  sed '
7749     t clear
7750     : clear
7751     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7752     t end
7753     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7754     : end' >>confcache
7755if diff $cache_file confcache >/dev/null 2>&1; then :; else
7756  if test -w $cache_file; then
7757    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7758    cat confcache >$cache_file
7759  else
7760    echo "not updating unwritable cache $cache_file"
7761  fi
7762fi
7763rm -f confcache
7764
7765test "x$prefix" = xNONE && prefix=$ac_default_prefix
7766# Let make expand exec_prefix.
7767test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7768
7769# VPATH may cause trouble with some makes, so we remove $(srcdir),
7770# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7771# trailing colons and then remove the whole line if VPATH becomes empty
7772# (actually we leave an empty line to preserve line numbers).
7773if test "x$srcdir" = x.; then
7774  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
7775s/:*\$(srcdir):*/:/;
7776s/:*\${srcdir}:*/:/;
7777s/:*@srcdir@:*/:/;
7778s/^\([^=]*=[	 ]*\):*/\1/;
7779s/:*$//;
7780s/^[^=]*=[	 ]*$//;
7781}'
7782fi
7783
7784DEFS=-DHAVE_CONFIG_H
7785
7786ac_libobjs=
7787ac_ltlibobjs=
7788for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
7789  # 1. Remove the extension, and $U if already installed.
7790  ac_i=`echo "$ac_i" |
7791	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7792  # 2. Add them.
7793  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7794  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7795done
7796LIB@&t@OBJS=$ac_libobjs
7797
7798LTLIBOBJS=$ac_ltlibobjs
7799
7800
7801
7802: ${CONFIG_STATUS=./config.status}
7803ac_clean_files_save=$ac_clean_files
7804ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7805{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7806echo "$as_me: creating $CONFIG_STATUS" >&6;}
7807cat >$CONFIG_STATUS <<_ACEOF
7808#! $SHELL
7809# Generated by $as_me.
7810# Run this file to recreate the current configuration.
7811# Compiler output produced by configure, useful for debugging
7812# configure, is in config.log if it exists.
7813
7814debug=false
7815ac_cs_recheck=false
7816ac_cs_silent=false
7817SHELL=\${CONFIG_SHELL-$SHELL}
7818_ACEOF
7819
7820cat >>$CONFIG_STATUS <<\_ACEOF
7821## --------------------- ##
7822## M4sh Initialization.  ##
7823## --------------------- ##
7824
7825# Be Bourne compatible
7826if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7827  emulate sh
7828  NULLCMD=:
7829  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7830  # is contrary to our usage.  Disable this feature.
7831  alias -g '${1+"$@"}'='"$@"'
7832elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7833  set -o posix
7834fi
7835DUALCASE=1; export DUALCASE # for MKS sh
7836
7837# Support unset when possible.
7838if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7839  as_unset=unset
7840else
7841  as_unset=false
7842fi
7843
7844
7845# Work around bugs in pre-3.0 UWIN ksh.
7846$as_unset ENV MAIL MAILPATH
7847PS1='$ '
7848PS2='> '
7849PS4='+ '
7850
7851# NLS nuisances.
7852for as_var in \
7853  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7854  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7855  LC_TELEPHONE LC_TIME
7856do
7857  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7858    eval $as_var=C; export $as_var
7859  else
7860    $as_unset $as_var
7861  fi
7862done
7863
7864# Required to use basename.
7865if expr a : '\(a\)' >/dev/null 2>&1; then
7866  as_expr=expr
7867else
7868  as_expr=false
7869fi
7870
7871if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7872  as_basename=basename
7873else
7874  as_basename=false
7875fi
7876
7877
7878# Name of the executable.
7879as_me=`$as_basename "$0" ||
7880$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7881	 X"$0" : 'X\(//\)$' \| \
7882	 X"$0" : 'X\(/\)$' \| \
7883	 .     : '\(.\)' 2>/dev/null ||
7884echo X/"$0" |
7885    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7886  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
7887  	  /^X\/\(\/\).*/{ s//\1/; q; }
7888  	  s/.*/./; q'`
7889
7890
7891# PATH needs CR, and LINENO needs CR and PATH.
7892# Avoid depending upon Character Ranges.
7893as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7894as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7895as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7896as_cr_digits='0123456789'
7897as_cr_alnum=$as_cr_Letters$as_cr_digits
7898
7899# The user is always right.
7900if test "${PATH_SEPARATOR+set}" != set; then
7901  echo "#! /bin/sh" >conf$$.sh
7902  echo  "exit 0"   >>conf$$.sh
7903  chmod +x conf$$.sh
7904  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7905    PATH_SEPARATOR=';'
7906  else
7907    PATH_SEPARATOR=:
7908  fi
7909  rm -f conf$$.sh
7910fi
7911
7912
7913  as_lineno_1=$LINENO
7914  as_lineno_2=$LINENO
7915  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7916  test "x$as_lineno_1" != "x$as_lineno_2" &&
7917  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7918  # Find who we are.  Look in the path if we contain no path at all
7919  # relative or not.
7920  case $0 in
7921    *[\\/]* ) as_myself=$0 ;;
7922    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925  IFS=$as_save_IFS
7926  test -z "$as_dir" && as_dir=.
7927  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7928done
7929
7930       ;;
7931  esac
7932  # We did not find ourselves, most probably we were run as `sh COMMAND'
7933  # in which case we are not to be found in the path.
7934  if test "x$as_myself" = x; then
7935    as_myself=$0
7936  fi
7937  if test ! -f "$as_myself"; then
7938    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7939echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7940   { (exit 1); exit 1; }; }
7941  fi
7942  case $CONFIG_SHELL in
7943  '')
7944    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7946do
7947  IFS=$as_save_IFS
7948  test -z "$as_dir" && as_dir=.
7949  for as_base in sh bash ksh sh5; do
7950	 case $as_dir in
7951	 /*)
7952	   if ("$as_dir/$as_base" -c '
7953  as_lineno_1=$LINENO
7954  as_lineno_2=$LINENO
7955  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7956  test "x$as_lineno_1" != "x$as_lineno_2" &&
7957  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7958	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7959	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7960	     CONFIG_SHELL=$as_dir/$as_base
7961	     export CONFIG_SHELL
7962	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7963	   fi;;
7964	 esac
7965       done
7966done
7967;;
7968  esac
7969
7970  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7971  # uniformly replaced by the line number.  The first 'sed' inserts a
7972  # line-number line before each line; the second 'sed' does the real
7973  # work.  The second script uses 'N' to pair each line-number line
7974  # with the numbered line, and appends trailing '-' during
7975  # substitution so that $LINENO is not a special case at line end.
7976  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7977  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7978  sed '=' <$as_myself |
7979    sed '
7980      N
7981      s,$,-,
7982      : loop
7983      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7984      t loop
7985      s,-$,,
7986      s,^['$as_cr_digits']*\n,,
7987    ' >$as_me.lineno &&
7988  chmod +x $as_me.lineno ||
7989    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7990echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7991   { (exit 1); exit 1; }; }
7992
7993  # Don't try to exec as it changes $[0], causing all sort of problems
7994  # (the dirname of $[0] is not the place where we might find the
7995  # original and so on.  Autoconf is especially sensible to this).
7996  . ./$as_me.lineno
7997  # Exit status is that of the last command.
7998  exit
7999}
8000
8001
8002case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8003  *c*,-n*) ECHO_N= ECHO_C='
8004' ECHO_T='	' ;;
8005  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8006  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8007esac
8008
8009if expr a : '\(a\)' >/dev/null 2>&1; then
8010  as_expr=expr
8011else
8012  as_expr=false
8013fi
8014
8015rm -f conf$$ conf$$.exe conf$$.file
8016echo >conf$$.file
8017if ln -s conf$$.file conf$$ 2>/dev/null; then
8018  # We could just check for DJGPP; but this test a) works b) is more generic
8019  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8020  if test -f conf$$.exe; then
8021    # Don't use ln at all; we don't have any links
8022    as_ln_s='cp -p'
8023  else
8024    as_ln_s='ln -s'
8025  fi
8026elif ln conf$$.file conf$$ 2>/dev/null; then
8027  as_ln_s=ln
8028else
8029  as_ln_s='cp -p'
8030fi
8031rm -f conf$$ conf$$.exe conf$$.file
8032
8033if mkdir -p . 2>/dev/null; then
8034  as_mkdir_p=:
8035else
8036  test -d ./-p && rmdir ./-p
8037  as_mkdir_p=false
8038fi
8039
8040as_executable_p="test -f"
8041
8042# Sed expression to map a string onto a valid CPP name.
8043as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8044
8045# Sed expression to map a string onto a valid variable name.
8046as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8047
8048
8049# IFS
8050# We need space, tab and new line, in precisely that order.
8051as_nl='
8052'
8053IFS=" 	$as_nl"
8054
8055# CDPATH.
8056$as_unset CDPATH
8057
8058exec 6>&1
8059
8060# Open the log real soon, to keep \$[0] and so on meaningful, and to
8061# report actual input values of CONFIG_FILES etc. instead of their
8062# values after options handling.  Logging --version etc. is OK.
8063exec 5>>config.log
8064{
8065  echo
8066  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
8067@%:@@%:@ Running $as_me. @%:@@%:@
8068_ASBOX
8069} >&5
8070cat >&5 <<_CSEOF
8071
8072This file was extended by $as_me, which was
8073generated by GNU Autoconf 2.59.  Invocation command line was
8074
8075  CONFIG_FILES    = $CONFIG_FILES
8076  CONFIG_HEADERS  = $CONFIG_HEADERS
8077  CONFIG_LINKS    = $CONFIG_LINKS
8078  CONFIG_COMMANDS = $CONFIG_COMMANDS
8079  $ $0 $@
8080
8081_CSEOF
8082echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8083echo >&5
8084_ACEOF
8085
8086# Files that config.status was made for.
8087if test -n "$ac_config_files"; then
8088  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8089fi
8090
8091if test -n "$ac_config_headers"; then
8092  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8093fi
8094
8095if test -n "$ac_config_links"; then
8096  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8097fi
8098
8099if test -n "$ac_config_commands"; then
8100  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8101fi
8102
8103cat >>$CONFIG_STATUS <<\_ACEOF
8104
8105ac_cs_usage="\
8106\`$as_me' instantiates files from templates according to the
8107current configuration.
8108
8109Usage: $0 [OPTIONS] [FILE]...
8110
8111  -h, --help       print this help, then exit
8112  -V, --version    print version number, then exit
8113  -q, --quiet      do not print progress messages
8114  -d, --debug      don't remove temporary files
8115      --recheck    update $as_me by reconfiguring in the same conditions
8116  --file=FILE[:TEMPLATE]
8117		   instantiate the configuration file FILE
8118  --header=FILE[:TEMPLATE]
8119		   instantiate the configuration header FILE
8120
8121Configuration files:
8122$config_files
8123
8124Configuration headers:
8125$config_headers
8126
8127Configuration commands:
8128$config_commands
8129
8130Report bugs to <bug-autoconf@gnu.org>."
8131_ACEOF
8132
8133cat >>$CONFIG_STATUS <<_ACEOF
8134ac_cs_version="\\
8135config.status
8136configured by $0, generated by GNU Autoconf 2.59,
8137  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8138
8139Copyright (C) 2003 Free Software Foundation, Inc.
8140This config.status script is free software; the Free Software Foundation
8141gives unlimited permission to copy, distribute and modify it."
8142srcdir=$srcdir
8143INSTALL="$INSTALL"
8144_ACEOF
8145
8146cat >>$CONFIG_STATUS <<\_ACEOF
8147# If no file are specified by the user, then we need to provide default
8148# value.  By we need to know if files were specified by the user.
8149ac_need_defaults=:
8150while test $# != 0
8151do
8152  case $1 in
8153  --*=*)
8154    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8155    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8156    ac_shift=:
8157    ;;
8158  -*)
8159    ac_option=$1
8160    ac_optarg=$2
8161    ac_shift=shift
8162    ;;
8163  *) # This is not an option, so the user has probably given explicit
8164     # arguments.
8165     ac_option=$1
8166     ac_need_defaults=false;;
8167  esac
8168
8169  case $ac_option in
8170  # Handling of the options.
8171_ACEOF
8172cat >>$CONFIG_STATUS <<\_ACEOF
8173  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8174    ac_cs_recheck=: ;;
8175  --version | --vers* | -V )
8176    echo "$ac_cs_version"; exit 0 ;;
8177  --he | --h)
8178    # Conflict between --help and --header
8179    { { echo "$as_me:$LINENO: error: ambiguous option: $1
8180Try \`$0 --help' for more information." >&5
8181echo "$as_me: error: ambiguous option: $1
8182Try \`$0 --help' for more information." >&2;}
8183   { (exit 1); exit 1; }; };;
8184  --help | --hel | -h )
8185    echo "$ac_cs_usage"; exit 0 ;;
8186  --debug | --d* | -d )
8187    debug=: ;;
8188  --file | --fil | --fi | --f )
8189    $ac_shift
8190    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8191    ac_need_defaults=false;;
8192  --header | --heade | --head | --hea )
8193    $ac_shift
8194    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8195    ac_need_defaults=false;;
8196  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8197  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8198    ac_cs_silent=: ;;
8199
8200  # This is an error.
8201  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8202Try \`$0 --help' for more information." >&5
8203echo "$as_me: error: unrecognized option: $1
8204Try \`$0 --help' for more information." >&2;}
8205   { (exit 1); exit 1; }; } ;;
8206
8207  *) ac_config_targets="$ac_config_targets $1" ;;
8208
8209  esac
8210  shift
8211done
8212
8213ac_configure_extra_args=
8214
8215if $ac_cs_silent; then
8216  exec 6>/dev/null
8217  ac_configure_extra_args="$ac_configure_extra_args --silent"
8218fi
8219
8220_ACEOF
8221cat >>$CONFIG_STATUS <<_ACEOF
8222if \$ac_cs_recheck; then
8223  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8224  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8225fi
8226
8227_ACEOF
8228
8229cat >>$CONFIG_STATUS <<_ACEOF
8230#
8231# INIT-COMMANDS section.
8232#
8233
8234
8235
8236_ACEOF
8237
8238
8239
8240cat >>$CONFIG_STATUS <<\_ACEOF
8241for ac_config_target in $ac_config_targets
8242do
8243  case "$ac_config_target" in
8244  # Handling of arguments.
8245  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8246  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8247  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8248  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8249  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8250echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8251   { (exit 1); exit 1; }; };;
8252  esac
8253done
8254
8255# If the user did not use the arguments to specify the items to instantiate,
8256# then the envvar interface is used.  Set only those that are not.
8257# We use the long form for the default assignment because of an extremely
8258# bizarre bug on SunOS 4.1.3.
8259if $ac_need_defaults; then
8260  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8261  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8262  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8263fi
8264
8265# Have a temporary directory for convenience.  Make it in the build tree
8266# simply because there is no reason to put it here, and in addition,
8267# creating and moving files from /tmp can sometimes cause problems.
8268# Create a temporary directory, and hook for its removal unless debugging.
8269$debug ||
8270{
8271  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8272  trap '{ (exit 1); exit 1; }' 1 2 13 15
8273}
8274
8275# Create a (secure) tmp directory for tmp files.
8276
8277{
8278  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8279  test -n "$tmp" && test -d "$tmp"
8280}  ||
8281{
8282  tmp=./confstat$$-$RANDOM
8283  (umask 077 && mkdir $tmp)
8284} ||
8285{
8286   echo "$me: cannot create a temporary directory in ." >&2
8287   { (exit 1); exit 1; }
8288}
8289
8290_ACEOF
8291
8292cat >>$CONFIG_STATUS <<_ACEOF
8293
8294#
8295# CONFIG_FILES section.
8296#
8297
8298# No need to generate the scripts if there are no CONFIG_FILES.
8299# This happens for instance when ./config.status config.h
8300if test -n "\$CONFIG_FILES"; then
8301  # Protect against being on the right side of a sed subst in config.status.
8302  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8303   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8304s,@SHELL@,$SHELL,;t t
8305s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8306s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8307s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8308s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8309s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8310s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8311s,@exec_prefix@,$exec_prefix,;t t
8312s,@prefix@,$prefix,;t t
8313s,@program_transform_name@,$program_transform_name,;t t
8314s,@bindir@,$bindir,;t t
8315s,@sbindir@,$sbindir,;t t
8316s,@libexecdir@,$libexecdir,;t t
8317s,@datadir@,$datadir,;t t
8318s,@sysconfdir@,$sysconfdir,;t t
8319s,@sharedstatedir@,$sharedstatedir,;t t
8320s,@localstatedir@,$localstatedir,;t t
8321s,@libdir@,$libdir,;t t
8322s,@includedir@,$includedir,;t t
8323s,@oldincludedir@,$oldincludedir,;t t
8324s,@infodir@,$infodir,;t t
8325s,@mandir@,$mandir,;t t
8326s,@build_alias@,$build_alias,;t t
8327s,@host_alias@,$host_alias,;t t
8328s,@target_alias@,$target_alias,;t t
8329s,@DEFS@,$DEFS,;t t
8330s,@ECHO_C@,$ECHO_C,;t t
8331s,@ECHO_N@,$ECHO_N,;t t
8332s,@ECHO_T@,$ECHO_T,;t t
8333s,@LIBS@,$LIBS,;t t
8334s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8335s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8336s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8337s,@PACKAGE@,$PACKAGE,;t t
8338s,@VERSION@,$VERSION,;t t
8339s,@ACLOCAL@,$ACLOCAL,;t t
8340s,@AUTOCONF@,$AUTOCONF,;t t
8341s,@AUTOMAKE@,$AUTOMAKE,;t t
8342s,@AUTOHEADER@,$AUTOHEADER,;t t
8343s,@MAKEINFO@,$MAKEINFO,;t t
8344s,@SET_MAKE@,$SET_MAKE,;t t
8345s,@CC@,$CC,;t t
8346s,@CFLAGS@,$CFLAGS,;t t
8347s,@LDFLAGS@,$LDFLAGS,;t t
8348s,@CPPFLAGS@,$CPPFLAGS,;t t
8349s,@ac_ct_CC@,$ac_ct_CC,;t t
8350s,@EXEEXT@,$EXEEXT,;t t
8351s,@OBJEXT@,$OBJEXT,;t t
8352s,@CXX@,$CXX,;t t
8353s,@CXXFLAGS@,$CXXFLAGS,;t t
8354s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8355s,@CXXCPP@,$CXXCPP,;t t
8356s,@EGREP@,$EGREP,;t t
8357s,@X_CFLAGS@,$X_CFLAGS,;t t
8358s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
8359s,@X_LIBS@,$X_LIBS,;t t
8360s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
8361s,@SHAPE@,$SHAPE,;t t
8362s,@IMLIB2_CONFIG@,$IMLIB2_CONFIG,;t t
8363s,@IMLIB_LIBS@,$IMLIB_LIBS,;t t
8364s,@IMLIB_CXXFLAGS@,$IMLIB_CXXFLAGS,;t t
8365s,@IMLIB2_CFLAGS@,$IMLIB2_CFLAGS,;t t
8366s,@IMLIB2_LIBS@,$IMLIB2_LIBS,;t t
8367s,@PKG_CONFIG@,$PKG_CONFIG,;t t
8368s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
8369s,@LIBSN_CFLAGS@,$LIBSN_CFLAGS,;t t
8370s,@LIBSN_LIBS@,$LIBSN_LIBS,;t t
8371s,@HAVE_STARTUP_NOTIFICATION_TRUE@,$HAVE_STARTUP_NOTIFICATION_TRUE,;t t
8372s,@HAVE_STARTUP_NOTIFICATION_FALSE@,$HAVE_STARTUP_NOTIFICATION_FALSE,;t t
8373s,@STARTUP@,$STARTUP,;t t
8374s,@XFT_TRUE@,$XFT_TRUE,;t t
8375s,@XFT_FALSE@,$XFT_FALSE,;t t
8376s,@DEFAULT_PREFIX@,$DEFAULT_PREFIX,;t t
8377s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
8378s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8379CEOF
8380
8381_ACEOF
8382
8383  cat >>$CONFIG_STATUS <<\_ACEOF
8384  # Split the substitutions into bite-sized pieces for seds with
8385  # small command number limits, like on Digital OSF/1 and HP-UX.
8386  ac_max_sed_lines=48
8387  ac_sed_frag=1 # Number of current file.
8388  ac_beg=1 # First line for current file.
8389  ac_end=$ac_max_sed_lines # Line after last line for current file.
8390  ac_more_lines=:
8391  ac_sed_cmds=
8392  while $ac_more_lines; do
8393    if test $ac_beg -gt 1; then
8394      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8395    else
8396      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8397    fi
8398    if test ! -s $tmp/subs.frag; then
8399      ac_more_lines=false
8400    else
8401      # The purpose of the label and of the branching condition is to
8402      # speed up the sed processing (if there are no `@' at all, there
8403      # is no need to browse any of the substitutions).
8404      # These are the two extra sed commands mentioned above.
8405      (echo ':t
8406  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8407      if test -z "$ac_sed_cmds"; then
8408	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8409      else
8410	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8411      fi
8412      ac_sed_frag=`expr $ac_sed_frag + 1`
8413      ac_beg=$ac_end
8414      ac_end=`expr $ac_end + $ac_max_sed_lines`
8415    fi
8416  done
8417  if test -z "$ac_sed_cmds"; then
8418    ac_sed_cmds=cat
8419  fi
8420fi # test -n "$CONFIG_FILES"
8421
8422_ACEOF
8423cat >>$CONFIG_STATUS <<\_ACEOF
8424for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8425  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8426  case $ac_file in
8427  - | *:- | *:-:* ) # input from stdin
8428	cat >$tmp/stdin
8429	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8430	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8431  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8432	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8433  * )   ac_file_in=$ac_file.in ;;
8434  esac
8435
8436  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8437  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8438$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8439	 X"$ac_file" : 'X\(//\)[^/]' \| \
8440	 X"$ac_file" : 'X\(//\)$' \| \
8441	 X"$ac_file" : 'X\(/\)' \| \
8442	 .     : '\(.\)' 2>/dev/null ||
8443echo X"$ac_file" |
8444    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8445  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8446  	  /^X\(\/\/\)$/{ s//\1/; q; }
8447  	  /^X\(\/\).*/{ s//\1/; q; }
8448  	  s/.*/./; q'`
8449  { if $as_mkdir_p; then
8450    mkdir -p "$ac_dir"
8451  else
8452    as_dir="$ac_dir"
8453    as_dirs=
8454    while test ! -d "$as_dir"; do
8455      as_dirs="$as_dir $as_dirs"
8456      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8457$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8458	 X"$as_dir" : 'X\(//\)[^/]' \| \
8459	 X"$as_dir" : 'X\(//\)$' \| \
8460	 X"$as_dir" : 'X\(/\)' \| \
8461	 .     : '\(.\)' 2>/dev/null ||
8462echo X"$as_dir" |
8463    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8464  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8465  	  /^X\(\/\/\)$/{ s//\1/; q; }
8466  	  /^X\(\/\).*/{ s//\1/; q; }
8467  	  s/.*/./; q'`
8468    done
8469    test ! -n "$as_dirs" || mkdir $as_dirs
8470  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8471echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8472   { (exit 1); exit 1; }; }; }
8473
8474  ac_builddir=.
8475
8476if test "$ac_dir" != .; then
8477  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8478  # A "../" for each directory in $ac_dir_suffix.
8479  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8480else
8481  ac_dir_suffix= ac_top_builddir=
8482fi
8483
8484case $srcdir in
8485  .)  # No --srcdir option.  We are building in place.
8486    ac_srcdir=.
8487    if test -z "$ac_top_builddir"; then
8488       ac_top_srcdir=.
8489    else
8490       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8491    fi ;;
8492  [\\/]* | ?:[\\/]* )  # Absolute path.
8493    ac_srcdir=$srcdir$ac_dir_suffix;
8494    ac_top_srcdir=$srcdir ;;
8495  *) # Relative path.
8496    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8497    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8498esac
8499
8500# Do not use `cd foo && pwd` to compute absolute paths, because
8501# the directories may not exist.
8502case `pwd` in
8503.) ac_abs_builddir="$ac_dir";;
8504*)
8505  case "$ac_dir" in
8506  .) ac_abs_builddir=`pwd`;;
8507  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8508  *) ac_abs_builddir=`pwd`/"$ac_dir";;
8509  esac;;
8510esac
8511case $ac_abs_builddir in
8512.) ac_abs_top_builddir=${ac_top_builddir}.;;
8513*)
8514  case ${ac_top_builddir}. in
8515  .) ac_abs_top_builddir=$ac_abs_builddir;;
8516  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8517  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8518  esac;;
8519esac
8520case $ac_abs_builddir in
8521.) ac_abs_srcdir=$ac_srcdir;;
8522*)
8523  case $ac_srcdir in
8524  .) ac_abs_srcdir=$ac_abs_builddir;;
8525  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8526  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8527  esac;;
8528esac
8529case $ac_abs_builddir in
8530.) ac_abs_top_srcdir=$ac_top_srcdir;;
8531*)
8532  case $ac_top_srcdir in
8533  .) ac_abs_top_srcdir=$ac_abs_builddir;;
8534  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8535  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8536  esac;;
8537esac
8538
8539
8540  case $INSTALL in
8541  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8542  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8543  esac
8544
8545  # Let's still pretend it is `configure' which instantiates (i.e., don't
8546  # use $as_me), people would be surprised to read:
8547  #    /* config.h.  Generated by config.status.  */
8548  if test x"$ac_file" = x-; then
8549    configure_input=
8550  else
8551    configure_input="$ac_file.  "
8552  fi
8553  configure_input=$configure_input"Generated from `echo $ac_file_in |
8554				     sed 's,.*/,,'` by configure."
8555
8556  # First look for the input files in the build tree, otherwise in the
8557  # src tree.
8558  ac_file_inputs=`IFS=:
8559    for f in $ac_file_in; do
8560      case $f in
8561      -) echo $tmp/stdin ;;
8562      [\\/$]*)
8563	 # Absolute (can't be DOS-style, as IFS=:)
8564	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8565echo "$as_me: error: cannot find input file: $f" >&2;}
8566   { (exit 1); exit 1; }; }
8567	 echo "$f";;
8568      *) # Relative
8569	 if test -f "$f"; then
8570	   # Build tree
8571	   echo "$f"
8572	 elif test -f "$srcdir/$f"; then
8573	   # Source tree
8574	   echo "$srcdir/$f"
8575	 else
8576	   # /dev/null tree
8577	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8578echo "$as_me: error: cannot find input file: $f" >&2;}
8579   { (exit 1); exit 1; }; }
8580	 fi;;
8581      esac
8582    done` || { (exit 1); exit 1; }
8583
8584  if test x"$ac_file" != x-; then
8585    { echo "$as_me:$LINENO: creating $ac_file" >&5
8586echo "$as_me: creating $ac_file" >&6;}
8587    rm -f "$ac_file"
8588  fi
8589_ACEOF
8590cat >>$CONFIG_STATUS <<_ACEOF
8591  sed "$ac_vpsub
8592$extrasub
8593_ACEOF
8594cat >>$CONFIG_STATUS <<\_ACEOF
8595:t
8596/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8597s,@configure_input@,$configure_input,;t t
8598s,@srcdir@,$ac_srcdir,;t t
8599s,@abs_srcdir@,$ac_abs_srcdir,;t t
8600s,@top_srcdir@,$ac_top_srcdir,;t t
8601s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8602s,@builddir@,$ac_builddir,;t t
8603s,@abs_builddir@,$ac_abs_builddir,;t t
8604s,@top_builddir@,$ac_top_builddir,;t t
8605s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8606s,@INSTALL@,$ac_INSTALL,;t t
8607" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8608  rm -f $tmp/stdin
8609  if test x"$ac_file" != x-; then
8610    mv $tmp/out $ac_file
8611  else
8612    cat $tmp/out
8613    rm -f $tmp/out
8614  fi
8615
8616done
8617_ACEOF
8618cat >>$CONFIG_STATUS <<\_ACEOF
8619
8620#
8621# CONFIG_HEADER section.
8622#
8623
8624# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8625# NAME is the cpp macro being defined and VALUE is the value it is being given.
8626#
8627# ac_d sets the value in "#define NAME VALUE" lines.
8628ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
8629ac_dB='[	 ].*$,\1#\2'
8630ac_dC=' '
8631ac_dD=',;t'
8632# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8633ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
8634ac_uB='$,\1#\2define\3'
8635ac_uC=' '
8636ac_uD=',;t'
8637
8638for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8639  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8640  case $ac_file in
8641  - | *:- | *:-:* ) # input from stdin
8642	cat >$tmp/stdin
8643	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8644	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8645  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8646	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8647  * )   ac_file_in=$ac_file.in ;;
8648  esac
8649
8650  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8651echo "$as_me: creating $ac_file" >&6;}
8652
8653  # First look for the input files in the build tree, otherwise in the
8654  # src tree.
8655  ac_file_inputs=`IFS=:
8656    for f in $ac_file_in; do
8657      case $f in
8658      -) echo $tmp/stdin ;;
8659      [\\/$]*)
8660	 # Absolute (can't be DOS-style, as IFS=:)
8661	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8662echo "$as_me: error: cannot find input file: $f" >&2;}
8663   { (exit 1); exit 1; }; }
8664	 # Do quote $f, to prevent DOS paths from being IFS'd.
8665	 echo "$f";;
8666      *) # Relative
8667	 if test -f "$f"; then
8668	   # Build tree
8669	   echo "$f"
8670	 elif test -f "$srcdir/$f"; then
8671	   # Source tree
8672	   echo "$srcdir/$f"
8673	 else
8674	   # /dev/null tree
8675	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8676echo "$as_me: error: cannot find input file: $f" >&2;}
8677   { (exit 1); exit 1; }; }
8678	 fi;;
8679      esac
8680    done` || { (exit 1); exit 1; }
8681  # Remove the trailing spaces.
8682  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
8683
8684_ACEOF
8685
8686# Transform confdefs.h into two sed scripts, `conftest.defines' and
8687# `conftest.undefs', that substitutes the proper values into
8688# config.h.in to produce config.h.  The first handles `#define'
8689# templates, and the second `#undef' templates.
8690# And first: Protect against being on the right side of a sed subst in
8691# config.status.  Protect against being in an unquoted here document
8692# in config.status.
8693rm -f conftest.defines conftest.undefs
8694# Using a here document instead of a string reduces the quoting nightmare.
8695# Putting comments in sed scripts is not portable.
8696#
8697# `end' is used to avoid that the second main sed command (meant for
8698# 0-ary CPP macros) applies to n-ary macro definitions.
8699# See the Autoconf documentation for `clear'.
8700cat >confdef2sed.sed <<\_ACEOF
8701s/[\\&,]/\\&/g
8702s,[\\$`],\\&,g
8703t clear
8704: clear
8705s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8706t end
8707s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8708: end
8709_ACEOF
8710# If some macros were called several times there might be several times
8711# the same #defines, which is useless.  Nevertheless, we may not want to
8712# sort them, since we want the *last* AC-DEFINE to be honored.
8713uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8714sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8715rm -f confdef2sed.sed
8716
8717# This sed command replaces #undef with comments.  This is necessary, for
8718# example, in the case of _POSIX_SOURCE, which is predefined and required
8719# on some systems where configure will not decide to define it.
8720cat >>conftest.undefs <<\_ACEOF
8721s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8722_ACEOF
8723
8724# Break up conftest.defines because some shells have a limit on the size
8725# of here documents, and old seds have small limits too (100 cmds).
8726echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8727echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8728echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8729echo '  :' >>$CONFIG_STATUS
8730rm -f conftest.tail
8731while grep . conftest.defines >/dev/null
8732do
8733  # Write a limited-size here document to $tmp/defines.sed.
8734  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8735  # Speed up: don't consider the non `#define' lines.
8736  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
8737  # Work around the forget-to-reset-the-flag bug.
8738  echo 't clr' >>$CONFIG_STATUS
8739  echo ': clr' >>$CONFIG_STATUS
8740  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8741  echo 'CEOF
8742  sed -f $tmp/defines.sed $tmp/in >$tmp/out
8743  rm -f $tmp/in
8744  mv $tmp/out $tmp/in
8745' >>$CONFIG_STATUS
8746  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8747  rm -f conftest.defines
8748  mv conftest.tail conftest.defines
8749done
8750rm -f conftest.defines
8751echo '  fi # grep' >>$CONFIG_STATUS
8752echo >>$CONFIG_STATUS
8753
8754# Break up conftest.undefs because some shells have a limit on the size
8755# of here documents, and old seds have small limits too (100 cmds).
8756echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8757rm -f conftest.tail
8758while grep . conftest.undefs >/dev/null
8759do
8760  # Write a limited-size here document to $tmp/undefs.sed.
8761  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8762  # Speed up: don't consider the non `#undef'
8763  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
8764  # Work around the forget-to-reset-the-flag bug.
8765  echo 't clr' >>$CONFIG_STATUS
8766  echo ': clr' >>$CONFIG_STATUS
8767  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8768  echo 'CEOF
8769  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8770  rm -f $tmp/in
8771  mv $tmp/out $tmp/in
8772' >>$CONFIG_STATUS
8773  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8774  rm -f conftest.undefs
8775  mv conftest.tail conftest.undefs
8776done
8777rm -f conftest.undefs
8778
8779cat >>$CONFIG_STATUS <<\_ACEOF
8780  # Let's still pretend it is `configure' which instantiates (i.e., don't
8781  # use $as_me), people would be surprised to read:
8782  #    /* config.h.  Generated by config.status.  */
8783  if test x"$ac_file" = x-; then
8784    echo "/* Generated by configure.  */" >$tmp/config.h
8785  else
8786    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8787  fi
8788  cat $tmp/in >>$tmp/config.h
8789  rm -f $tmp/in
8790  if test x"$ac_file" != x-; then
8791    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8792      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8793echo "$as_me: $ac_file is unchanged" >&6;}
8794    else
8795      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8796$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8797	 X"$ac_file" : 'X\(//\)[^/]' \| \
8798	 X"$ac_file" : 'X\(//\)$' \| \
8799	 X"$ac_file" : 'X\(/\)' \| \
8800	 .     : '\(.\)' 2>/dev/null ||
8801echo X"$ac_file" |
8802    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8803  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8804  	  /^X\(\/\/\)$/{ s//\1/; q; }
8805  	  /^X\(\/\).*/{ s//\1/; q; }
8806  	  s/.*/./; q'`
8807      { if $as_mkdir_p; then
8808    mkdir -p "$ac_dir"
8809  else
8810    as_dir="$ac_dir"
8811    as_dirs=
8812    while test ! -d "$as_dir"; do
8813      as_dirs="$as_dir $as_dirs"
8814      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8815$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8816	 X"$as_dir" : 'X\(//\)[^/]' \| \
8817	 X"$as_dir" : 'X\(//\)$' \| \
8818	 X"$as_dir" : 'X\(/\)' \| \
8819	 .     : '\(.\)' 2>/dev/null ||
8820echo X"$as_dir" |
8821    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8822  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8823  	  /^X\(\/\/\)$/{ s//\1/; q; }
8824  	  /^X\(\/\).*/{ s//\1/; q; }
8825  	  s/.*/./; q'`
8826    done
8827    test ! -n "$as_dirs" || mkdir $as_dirs
8828  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8829echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8830   { (exit 1); exit 1; }; }; }
8831
8832      rm -f $ac_file
8833      mv $tmp/config.h $ac_file
8834    fi
8835  else
8836    cat $tmp/config.h
8837    rm -f $tmp/config.h
8838  fi
8839done
8840_ACEOF
8841cat >>$CONFIG_STATUS <<\_ACEOF
8842
8843#
8844# CONFIG_COMMANDS section.
8845#
8846for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8847  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8848  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8849  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8850$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8851	 X"$ac_dest" : 'X\(//\)[^/]' \| \
8852	 X"$ac_dest" : 'X\(//\)$' \| \
8853	 X"$ac_dest" : 'X\(/\)' \| \
8854	 .     : '\(.\)' 2>/dev/null ||
8855echo X"$ac_dest" |
8856    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8857  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8858  	  /^X\(\/\/\)$/{ s//\1/; q; }
8859  	  /^X\(\/\).*/{ s//\1/; q; }
8860  	  s/.*/./; q'`
8861  { if $as_mkdir_p; then
8862    mkdir -p "$ac_dir"
8863  else
8864    as_dir="$ac_dir"
8865    as_dirs=
8866    while test ! -d "$as_dir"; do
8867      as_dirs="$as_dir $as_dirs"
8868      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8869$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8870	 X"$as_dir" : 'X\(//\)[^/]' \| \
8871	 X"$as_dir" : 'X\(//\)$' \| \
8872	 X"$as_dir" : 'X\(/\)' \| \
8873	 .     : '\(.\)' 2>/dev/null ||
8874echo X"$as_dir" |
8875    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8876  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8877  	  /^X\(\/\/\)$/{ s//\1/; q; }
8878  	  /^X\(\/\).*/{ s//\1/; q; }
8879  	  s/.*/./; q'`
8880    done
8881    test ! -n "$as_dirs" || mkdir $as_dirs
8882  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8883echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8884   { (exit 1); exit 1; }; }; }
8885
8886  ac_builddir=.
8887
8888if test "$ac_dir" != .; then
8889  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8890  # A "../" for each directory in $ac_dir_suffix.
8891  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8892else
8893  ac_dir_suffix= ac_top_builddir=
8894fi
8895
8896case $srcdir in
8897  .)  # No --srcdir option.  We are building in place.
8898    ac_srcdir=.
8899    if test -z "$ac_top_builddir"; then
8900       ac_top_srcdir=.
8901    else
8902       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8903    fi ;;
8904  [\\/]* | ?:[\\/]* )  # Absolute path.
8905    ac_srcdir=$srcdir$ac_dir_suffix;
8906    ac_top_srcdir=$srcdir ;;
8907  *) # Relative path.
8908    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8909    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8910esac
8911
8912# Do not use `cd foo && pwd` to compute absolute paths, because
8913# the directories may not exist.
8914case `pwd` in
8915.) ac_abs_builddir="$ac_dir";;
8916*)
8917  case "$ac_dir" in
8918  .) ac_abs_builddir=`pwd`;;
8919  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8920  *) ac_abs_builddir=`pwd`/"$ac_dir";;
8921  esac;;
8922esac
8923case $ac_abs_builddir in
8924.) ac_abs_top_builddir=${ac_top_builddir}.;;
8925*)
8926  case ${ac_top_builddir}. in
8927  .) ac_abs_top_builddir=$ac_abs_builddir;;
8928  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8929  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8930  esac;;
8931esac
8932case $ac_abs_builddir in
8933.) ac_abs_srcdir=$ac_srcdir;;
8934*)
8935  case $ac_srcdir in
8936  .) ac_abs_srcdir=$ac_abs_builddir;;
8937  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8938  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8939  esac;;
8940esac
8941case $ac_abs_builddir in
8942.) ac_abs_top_srcdir=$ac_top_srcdir;;
8943*)
8944  case $ac_top_srcdir in
8945  .) ac_abs_top_srcdir=$ac_abs_builddir;;
8946  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8947  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8948  esac;;
8949esac
8950
8951
8952  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8953echo "$as_me: executing $ac_dest commands" >&6;}
8954  case $ac_dest in
8955    default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
8956  esac
8957done
8958_ACEOF
8959
8960cat >>$CONFIG_STATUS <<\_ACEOF
8961
8962{ (exit 0); exit 0; }
8963_ACEOF
8964chmod +x $CONFIG_STATUS
8965ac_clean_files=$ac_clean_files_save
8966
8967
8968# configure is writing to config.log, and then calls config.status.
8969# config.status does its own redirection, appending to config.log.
8970# Unfortunately, on DOS this fails, as config.log is still kept open
8971# by configure, so config.status won't be able to write to it; its
8972# output is simply discarded.  So we exec the FD to /dev/null,
8973# effectively closing config.log, so it can be properly (re)opened and
8974# appended to by config.status.  When coming back to configure, we
8975# need to make the FD available again.
8976if test "$no_create" != yes; then
8977  ac_cs_success=:
8978  ac_config_status_args=
8979  test "$silent" = yes &&
8980    ac_config_status_args="$ac_config_status_args --quiet"
8981  exec 5>/dev/null
8982  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8983  exec 5>>config.log
8984  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8985  # would make configure fail if this is the last instruction.
8986  $ac_cs_success || { (exit 1); exit 1; }
8987fi
8988
8989