1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for starplot 0.95.5.
4#
5# Report bugs to <starplot@starplot.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554exec 7<&0 </dev/null 6>&1
555
556# Name of the host.
557# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558# so uname gets run too.
559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561#
562# Initializations.
563#
564ac_default_prefix=/usr/local
565ac_clean_files=
566ac_config_libobj_dir=.
567LIBOBJS=
568cross_compiling=no
569subdirs=
570MFLAGS=
571MAKEFLAGS=
572SHELL=${CONFIG_SHELL-/bin/sh}
573
574# Identity of this package.
575PACKAGE_NAME='starplot'
576PACKAGE_TARNAME='starplot'
577PACKAGE_VERSION='0.95.5'
578PACKAGE_STRING='starplot 0.95.5'
579PACKAGE_BUGREPORT='starplot@starplot.org'
580
581# Factoring default headers for most tests.
582ac_includes_default="\
583#include <stdio.h>
584#ifdef HAVE_SYS_TYPES_H
585# include <sys/types.h>
586#endif
587#ifdef HAVE_SYS_STAT_H
588# include <sys/stat.h>
589#endif
590#ifdef STDC_HEADERS
591# include <stdlib.h>
592# include <stddef.h>
593#else
594# ifdef HAVE_STDLIB_H
595#  include <stdlib.h>
596# endif
597#endif
598#ifdef HAVE_STRING_H
599# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600#  include <memory.h>
601# endif
602# include <string.h>
603#endif
604#ifdef HAVE_STRINGS_H
605# include <strings.h>
606#endif
607#ifdef HAVE_INTTYPES_H
608# include <inttypes.h>
609#endif
610#ifdef HAVE_STDINT_H
611# include <stdint.h>
612#endif
613#ifdef HAVE_UNISTD_H
614# include <unistd.h>
615#endif"
616
617gt_needs=
618ac_unique_file="src/gui/starplot.h"
619ac_config_libobj_dir=lib
620ac_subst_vars='SHELL
621PATH_SEPARATOR
622PACKAGE_NAME
623PACKAGE_TARNAME
624PACKAGE_VERSION
625PACKAGE_STRING
626PACKAGE_BUGREPORT
627exec_prefix
628prefix
629program_transform_name
630bindir
631sbindir
632libexecdir
633datarootdir
634datadir
635sysconfdir
636sharedstatedir
637localstatedir
638includedir
639oldincludedir
640docdir
641infodir
642htmldir
643dvidir
644pdfdir
645psdir
646libdir
647localedir
648mandir
649DEFS
650ECHO_C
651ECHO_N
652ECHO_T
653LIBS
654build_alias
655host_alias
656target_alias
657INSTALL_PROGRAM
658INSTALL_SCRIPT
659INSTALL_DATA
660am__isrc
661CYGPATH_W
662PACKAGE
663VERSION
664ACLOCAL
665AUTOCONF
666AUTOMAKE
667AUTOHEADER
668MAKEINFO
669install_sh
670STRIP
671INSTALL_STRIP_PROGRAM
672mkdir_p
673AWK
674SET_MAKE
675am__leading_dot
676AMTAR
677am__tar
678am__untar
679CC
680CFLAGS
681LDFLAGS
682CPPFLAGS
683ac_ct_CC
684EXEEXT
685OBJEXT
686DEPDIR
687am__include
688am__quote
689AMDEP_TRUE
690AMDEP_FALSE
691AMDEPBACKSLASH
692CCDEPMODE
693am__fastdepCC_TRUE
694am__fastdepCC_FALSE
695CPP
696GREP
697EGREP
698USE_NLS
699MSGFMT
700GMSGFMT
701MSGFMT_015
702GMSGFMT_015
703XGETTEXT
704XGETTEXT_015
705MSGMERGE
706build
707build_cpu
708build_vendor
709build_os
710host
711host_cpu
712host_vendor
713host_os
714GLIBC2
715RANLIB
716CFLAG_VISIBILITY
717HAVE_VISIBILITY
718ALLOCA
719PRI_MACROS_BROKEN
720LIBPTH
721LTLIBPTH
722LIBTHREAD
723LTLIBTHREAD
724LIBMULTITHREAD
725LTLIBMULTITHREAD
726LIBICONV
727LTLIBICONV
728INTLBISON
729GLIBC21
730INTL_MACOSX_LIBS
731HAVE_POSIX_PRINTF
732HAVE_ASPRINTF
733HAVE_SNPRINTF
734HAVE_WPRINTF
735WOE32DLL
736BUILD_INCLUDED_LIBINTL
737USE_INCLUDED_LIBINTL
738CATOBJEXT
739DATADIRNAME
740INSTOBJEXT
741GENCAT
742INTLOBJS
743INTL_LIBTOOL_SUFFIX_PREFIX
744INTLLIBS
745LIBINTL
746LTLIBINTL
747POSUB
748MAINTAINER_MODE_TRUE
749MAINTAINER_MODE_FALSE
750MAINT
751ISODATE
752exampledir
753HTML_IMAGES
754HTML_PARFILES
755CXX
756CXXFLAGS
757ac_ct_CXX
758CXXDEPMODE
759am__fastdepCXX_TRUE
760am__fastdepCXX_FALSE
761has_pkg_config
762browserpath
763PKG_CONFIG
764GTK_CFLAGS
765GTK_LIBS
766CXXCPP
767POW_LIB
768LIBOBJS
769LTLIBOBJS'
770ac_subst_files=''
771      ac_precious_vars='build_alias
772host_alias
773target_alias
774CC
775CFLAGS
776LDFLAGS
777LIBS
778CPPFLAGS
779CPP
780CXX
781CXXFLAGS
782CCC
783CXXCPP'
784
785
786# Initialize some variables set by options.
787ac_init_help=
788ac_init_version=false
789# The variables have the same names as the options, with
790# dashes changed to underlines.
791cache_file=/dev/null
792exec_prefix=NONE
793no_create=
794no_recursion=
795prefix=NONE
796program_prefix=NONE
797program_suffix=NONE
798program_transform_name=s,x,x,
799silent=
800site=
801srcdir=
802verbose=
803x_includes=NONE
804x_libraries=NONE
805
806# Installation directory options.
807# These are left unexpanded so users can "make install exec_prefix=/foo"
808# and all the variables that are supposed to be based on exec_prefix
809# by default will actually change.
810# Use braces instead of parens because sh, perl, etc. also accept them.
811# (The list follows the same order as the GNU Coding Standards.)
812bindir='${exec_prefix}/bin'
813sbindir='${exec_prefix}/sbin'
814libexecdir='${exec_prefix}/libexec'
815datarootdir='${prefix}/share'
816datadir='${datarootdir}'
817sysconfdir='${prefix}/etc'
818sharedstatedir='${prefix}/com'
819localstatedir='${prefix}/var'
820includedir='${prefix}/include'
821oldincludedir='/usr/include'
822docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
823infodir='${datarootdir}/info'
824htmldir='${docdir}'
825dvidir='${docdir}'
826pdfdir='${docdir}'
827psdir='${docdir}'
828libdir='${exec_prefix}/lib'
829localedir='${datarootdir}/locale'
830mandir='${datarootdir}/man'
831
832ac_prev=
833ac_dashdash=
834for ac_option
835do
836  # If the previous option needs an argument, assign it.
837  if test -n "$ac_prev"; then
838    eval $ac_prev=\$ac_option
839    ac_prev=
840    continue
841  fi
842
843  case $ac_option in
844  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845  *)	ac_optarg=yes ;;
846  esac
847
848  # Accept the important Cygnus configure options, so we can diagnose typos.
849
850  case $ac_dashdash$ac_option in
851  --)
852    ac_dashdash=yes ;;
853
854  -bindir | --bindir | --bindi | --bind | --bin | --bi)
855    ac_prev=bindir ;;
856  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857    bindir=$ac_optarg ;;
858
859  -build | --build | --buil | --bui | --bu)
860    ac_prev=build_alias ;;
861  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862    build_alias=$ac_optarg ;;
863
864  -cache-file | --cache-file | --cache-fil | --cache-fi \
865  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866    ac_prev=cache_file ;;
867  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869    cache_file=$ac_optarg ;;
870
871  --config-cache | -C)
872    cache_file=config.cache ;;
873
874  -datadir | --datadir | --datadi | --datad)
875    ac_prev=datadir ;;
876  -datadir=* | --datadir=* | --datadi=* | --datad=*)
877    datadir=$ac_optarg ;;
878
879  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880  | --dataroo | --dataro | --datar)
881    ac_prev=datarootdir ;;
882  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884    datarootdir=$ac_optarg ;;
885
886  -disable-* | --disable-*)
887    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888    # Reject names that are not valid shell variable names.
889    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
890      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
891   { (exit 1); exit 1; }; }
892    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
893    eval enable_$ac_feature=no ;;
894
895  -docdir | --docdir | --docdi | --doc | --do)
896    ac_prev=docdir ;;
897  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898    docdir=$ac_optarg ;;
899
900  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901    ac_prev=dvidir ;;
902  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903    dvidir=$ac_optarg ;;
904
905  -enable-* | --enable-*)
906    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907    # Reject names that are not valid shell variable names.
908    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
909      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
910   { (exit 1); exit 1; }; }
911    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
912    eval enable_$ac_feature=\$ac_optarg ;;
913
914  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
915  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
916  | --exec | --exe | --ex)
917    ac_prev=exec_prefix ;;
918  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
919  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
920  | --exec=* | --exe=* | --ex=*)
921    exec_prefix=$ac_optarg ;;
922
923  -gas | --gas | --ga | --g)
924    # Obsolete; use --with-gas.
925    with_gas=yes ;;
926
927  -help | --help | --hel | --he | -h)
928    ac_init_help=long ;;
929  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
930    ac_init_help=recursive ;;
931  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
932    ac_init_help=short ;;
933
934  -host | --host | --hos | --ho)
935    ac_prev=host_alias ;;
936  -host=* | --host=* | --hos=* | --ho=*)
937    host_alias=$ac_optarg ;;
938
939  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
940    ac_prev=htmldir ;;
941  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
942  | --ht=*)
943    htmldir=$ac_optarg ;;
944
945  -includedir | --includedir | --includedi | --included | --include \
946  | --includ | --inclu | --incl | --inc)
947    ac_prev=includedir ;;
948  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
949  | --includ=* | --inclu=* | --incl=* | --inc=*)
950    includedir=$ac_optarg ;;
951
952  -infodir | --infodir | --infodi | --infod | --info | --inf)
953    ac_prev=infodir ;;
954  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
955    infodir=$ac_optarg ;;
956
957  -libdir | --libdir | --libdi | --libd)
958    ac_prev=libdir ;;
959  -libdir=* | --libdir=* | --libdi=* | --libd=*)
960    libdir=$ac_optarg ;;
961
962  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
963  | --libexe | --libex | --libe)
964    ac_prev=libexecdir ;;
965  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
966  | --libexe=* | --libex=* | --libe=*)
967    libexecdir=$ac_optarg ;;
968
969  -localedir | --localedir | --localedi | --localed | --locale)
970    ac_prev=localedir ;;
971  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
972    localedir=$ac_optarg ;;
973
974  -localstatedir | --localstatedir | --localstatedi | --localstated \
975  | --localstate | --localstat | --localsta | --localst | --locals)
976    ac_prev=localstatedir ;;
977  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
978  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979    localstatedir=$ac_optarg ;;
980
981  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
982    ac_prev=mandir ;;
983  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984    mandir=$ac_optarg ;;
985
986  -nfp | --nfp | --nf)
987    # Obsolete; use --without-fp.
988    with_fp=no ;;
989
990  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991  | --no-cr | --no-c | -n)
992    no_create=yes ;;
993
994  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996    no_recursion=yes ;;
997
998  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
999  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1000  | --oldin | --oldi | --old | --ol | --o)
1001    ac_prev=oldincludedir ;;
1002  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005    oldincludedir=$ac_optarg ;;
1006
1007  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1008    ac_prev=prefix ;;
1009  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1010    prefix=$ac_optarg ;;
1011
1012  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1013  | --program-pre | --program-pr | --program-p)
1014    ac_prev=program_prefix ;;
1015  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1016  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1017    program_prefix=$ac_optarg ;;
1018
1019  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1020  | --program-suf | --program-su | --program-s)
1021    ac_prev=program_suffix ;;
1022  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1023  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1024    program_suffix=$ac_optarg ;;
1025
1026  -program-transform-name | --program-transform-name \
1027  | --program-transform-nam | --program-transform-na \
1028  | --program-transform-n | --program-transform- \
1029  | --program-transform | --program-transfor \
1030  | --program-transfo | --program-transf \
1031  | --program-trans | --program-tran \
1032  | --progr-tra | --program-tr | --program-t)
1033    ac_prev=program_transform_name ;;
1034  -program-transform-name=* | --program-transform-name=* \
1035  | --program-transform-nam=* | --program-transform-na=* \
1036  | --program-transform-n=* | --program-transform-=* \
1037  | --program-transform=* | --program-transfor=* \
1038  | --program-transfo=* | --program-transf=* \
1039  | --program-trans=* | --program-tran=* \
1040  | --progr-tra=* | --program-tr=* | --program-t=*)
1041    program_transform_name=$ac_optarg ;;
1042
1043  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1044    ac_prev=pdfdir ;;
1045  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1046    pdfdir=$ac_optarg ;;
1047
1048  -psdir | --psdir | --psdi | --psd | --ps)
1049    ac_prev=psdir ;;
1050  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1051    psdir=$ac_optarg ;;
1052
1053  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054  | -silent | --silent | --silen | --sile | --sil)
1055    silent=yes ;;
1056
1057  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1058    ac_prev=sbindir ;;
1059  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1060  | --sbi=* | --sb=*)
1061    sbindir=$ac_optarg ;;
1062
1063  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1064  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1065  | --sharedst | --shareds | --shared | --share | --shar \
1066  | --sha | --sh)
1067    ac_prev=sharedstatedir ;;
1068  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1069  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1070  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1071  | --sha=* | --sh=*)
1072    sharedstatedir=$ac_optarg ;;
1073
1074  -site | --site | --sit)
1075    ac_prev=site ;;
1076  -site=* | --site=* | --sit=*)
1077    site=$ac_optarg ;;
1078
1079  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1080    ac_prev=srcdir ;;
1081  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1082    srcdir=$ac_optarg ;;
1083
1084  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1085  | --syscon | --sysco | --sysc | --sys | --sy)
1086    ac_prev=sysconfdir ;;
1087  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1088  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1089    sysconfdir=$ac_optarg ;;
1090
1091  -target | --target | --targe | --targ | --tar | --ta | --t)
1092    ac_prev=target_alias ;;
1093  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1094    target_alias=$ac_optarg ;;
1095
1096  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1097    verbose=yes ;;
1098
1099  -version | --version | --versio | --versi | --vers | -V)
1100    ac_init_version=: ;;
1101
1102  -with-* | --with-*)
1103    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1104    # Reject names that are not valid shell variable names.
1105    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1106      { echo "$as_me: error: invalid package name: $ac_package" >&2
1107   { (exit 1); exit 1; }; }
1108    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1109    eval with_$ac_package=\$ac_optarg ;;
1110
1111  -without-* | --without-*)
1112    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113    # Reject names that are not valid shell variable names.
1114    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115      { echo "$as_me: error: invalid package name: $ac_package" >&2
1116   { (exit 1); exit 1; }; }
1117    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1118    eval with_$ac_package=no ;;
1119
1120  --x)
1121    # Obsolete; use --with-x.
1122    with_x=yes ;;
1123
1124  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1125  | --x-incl | --x-inc | --x-in | --x-i)
1126    ac_prev=x_includes ;;
1127  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1128  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1129    x_includes=$ac_optarg ;;
1130
1131  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1132  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1133    ac_prev=x_libraries ;;
1134  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1135  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1136    x_libraries=$ac_optarg ;;
1137
1138  -*) { echo "$as_me: error: unrecognized option: $ac_option
1139Try \`$0 --help' for more information." >&2
1140   { (exit 1); exit 1; }; }
1141    ;;
1142
1143  *=*)
1144    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1145    # Reject names that are not valid shell variable names.
1146    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1147      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1148   { (exit 1); exit 1; }; }
1149    eval $ac_envvar=\$ac_optarg
1150    export $ac_envvar ;;
1151
1152  *)
1153    # FIXME: should be removed in autoconf 3.0.
1154    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1156      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1157    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1158    ;;
1159
1160  esac
1161done
1162
1163if test -n "$ac_prev"; then
1164  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1165  { echo "$as_me: error: missing argument to $ac_option" >&2
1166   { (exit 1); exit 1; }; }
1167fi
1168
1169# Be sure to have absolute directory names.
1170for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1171		datadir sysconfdir sharedstatedir localstatedir includedir \
1172		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1173		libdir localedir mandir
1174do
1175  eval ac_val=\$$ac_var
1176  case $ac_val in
1177    [\\/$]* | ?:[\\/]* )  continue;;
1178    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1179  esac
1180  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1181   { (exit 1); exit 1; }; }
1182done
1183
1184# There might be people who depend on the old broken behavior: `$host'
1185# used to hold the argument of --host etc.
1186# FIXME: To remove some day.
1187build=$build_alias
1188host=$host_alias
1189target=$target_alias
1190
1191# FIXME: To remove some day.
1192if test "x$host_alias" != x; then
1193  if test "x$build_alias" = x; then
1194    cross_compiling=maybe
1195    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1196    If a cross compiler is detected then cross compile mode will be used." >&2
1197  elif test "x$build_alias" != "x$host_alias"; then
1198    cross_compiling=yes
1199  fi
1200fi
1201
1202ac_tool_prefix=
1203test -n "$host_alias" && ac_tool_prefix=$host_alias-
1204
1205test "$silent" = yes && exec 6>/dev/null
1206
1207
1208ac_pwd=`pwd` && test -n "$ac_pwd" &&
1209ac_ls_di=`ls -di .` &&
1210ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1211  { echo "$as_me: error: Working directory cannot be determined" >&2
1212   { (exit 1); exit 1; }; }
1213test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1214  { echo "$as_me: error: pwd does not report name of working directory" >&2
1215   { (exit 1); exit 1; }; }
1216
1217
1218# Find the source files, if location was not specified.
1219if test -z "$srcdir"; then
1220  ac_srcdir_defaulted=yes
1221  # Try the directory containing this script, then the parent directory.
1222  ac_confdir=`$as_dirname -- "$0" ||
1223$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1224	 X"$0" : 'X\(//\)[^/]' \| \
1225	 X"$0" : 'X\(//\)$' \| \
1226	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1227echo X"$0" |
1228    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1229	    s//\1/
1230	    q
1231	  }
1232	  /^X\(\/\/\)[^/].*/{
1233	    s//\1/
1234	    q
1235	  }
1236	  /^X\(\/\/\)$/{
1237	    s//\1/
1238	    q
1239	  }
1240	  /^X\(\/\).*/{
1241	    s//\1/
1242	    q
1243	  }
1244	  s/.*/./; q'`
1245  srcdir=$ac_confdir
1246  if test ! -r "$srcdir/$ac_unique_file"; then
1247    srcdir=..
1248  fi
1249else
1250  ac_srcdir_defaulted=no
1251fi
1252if test ! -r "$srcdir/$ac_unique_file"; then
1253  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1254  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1255   { (exit 1); exit 1; }; }
1256fi
1257ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258ac_abs_confdir=`(
1259	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1260   { (exit 1); exit 1; }; }
1261	pwd)`
1262# When building in place, set srcdir=.
1263if test "$ac_abs_confdir" = "$ac_pwd"; then
1264  srcdir=.
1265fi
1266# Remove unnecessary trailing slashes from srcdir.
1267# Double slashes in file names in object file debugging info
1268# mess up M-x gdb in Emacs.
1269case $srcdir in
1270*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1271esac
1272for ac_var in $ac_precious_vars; do
1273  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1274  eval ac_env_${ac_var}_value=\$${ac_var}
1275  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1276  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1277done
1278
1279#
1280# Report the --help message.
1281#
1282if test "$ac_init_help" = "long"; then
1283  # Omit some internal or obsolete options to make the list less imposing.
1284  # This message is too long to be a string in the A/UX 3.1 sh.
1285  cat <<_ACEOF
1286\`configure' configures starplot 0.95.5 to adapt to many kinds of systems.
1287
1288Usage: $0 [OPTION]... [VAR=VALUE]...
1289
1290To assign environment variables (e.g., CC, CFLAGS...), specify them as
1291VAR=VALUE.  See below for descriptions of some of the useful variables.
1292
1293Defaults for the options are specified in brackets.
1294
1295Configuration:
1296  -h, --help              display this help and exit
1297      --help=short        display options specific to this package
1298      --help=recursive    display the short help of all the included packages
1299  -V, --version           display version information and exit
1300  -q, --quiet, --silent   do not print \`checking...' messages
1301      --cache-file=FILE   cache test results in FILE [disabled]
1302  -C, --config-cache      alias for \`--cache-file=config.cache'
1303  -n, --no-create         do not create output files
1304      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1305
1306Installation directories:
1307  --prefix=PREFIX         install architecture-independent files in PREFIX
1308			  [$ac_default_prefix]
1309  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1310			  [PREFIX]
1311
1312By default, \`make install' will install all the files in
1313\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1314an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1315for instance \`--prefix=\$HOME'.
1316
1317For better control, use the options below.
1318
1319Fine tuning of the installation directories:
1320  --bindir=DIR           user executables [EPREFIX/bin]
1321  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1322  --libexecdir=DIR       program executables [EPREFIX/libexec]
1323  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1324  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1325  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1326  --libdir=DIR           object code libraries [EPREFIX/lib]
1327  --includedir=DIR       C header files [PREFIX/include]
1328  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1329  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1330  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1331  --infodir=DIR          info documentation [DATAROOTDIR/info]
1332  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1333  --mandir=DIR           man documentation [DATAROOTDIR/man]
1334  --docdir=DIR           documentation root [DATAROOTDIR/doc/starplot]
1335  --htmldir=DIR          html documentation [DOCDIR]
1336  --dvidir=DIR           dvi documentation [DOCDIR]
1337  --pdfdir=DIR           pdf documentation [DOCDIR]
1338  --psdir=DIR            ps documentation [DOCDIR]
1339_ACEOF
1340
1341  cat <<\_ACEOF
1342
1343Program names:
1344  --program-prefix=PREFIX            prepend PREFIX to installed program names
1345  --program-suffix=SUFFIX            append SUFFIX to installed program names
1346  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1347
1348System types:
1349  --build=BUILD     configure for building on BUILD [guessed]
1350  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1351_ACEOF
1352fi
1353
1354if test -n "$ac_init_help"; then
1355  case $ac_init_help in
1356     short | recursive ) echo "Configuration of starplot 0.95.5:";;
1357   esac
1358  cat <<\_ACEOF
1359
1360Optional Features:
1361  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1362  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1363  --disable-dependency-tracking  speeds up one-time build
1364  --enable-dependency-tracking   do not reject slow dependency extractors
1365  --disable-nls           do not use Native Language Support
1366  --enable-threads={posix|solaris|pth|win32}
1367                          specify multithreading API
1368  --disable-threads       build without multithread safety
1369  --disable-rpath         do not hardcode runtime library paths
1370  --enable-maintainer-mode  enable make rules and dependencies not useful
1371			  (and sometimes confusing) to the casual installer
1372  --disable-gtktest       do not try to compile and run a test GTK+ program
1373
1374Optional Packages:
1375  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1376  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1377  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1378  --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1379  --without-libpth-prefix     don't search for libpth in includedir and libdir
1380  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1381  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1382  --with-included-gettext use the GNU gettext library included here
1383  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1384  --without-libintl-prefix     don't search for libintl in includedir and libdir
1385  --with-webbrowser=PROGRAM    Web browser to use for viewing help docs
1386
1387Some influential environment variables:
1388  CC          C compiler command
1389  CFLAGS      C compiler flags
1390  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1391              nonstandard directory <lib dir>
1392  LIBS        libraries to pass to the linker, e.g. -l<library>
1393  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1394              you have headers in a nonstandard directory <include dir>
1395  CPP         C preprocessor
1396  CXX         C++ compiler command
1397  CXXFLAGS    C++ compiler flags
1398  CXXCPP      C++ preprocessor
1399
1400Use these variables to override the choices made by `configure' or to help
1401it to find libraries and programs with nonstandard names/locations.
1402
1403Report bugs to <starplot@starplot.org>.
1404_ACEOF
1405ac_status=$?
1406fi
1407
1408if test "$ac_init_help" = "recursive"; then
1409  # If there are subdirs, report their specific --help.
1410  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1411    test -d "$ac_dir" || continue
1412    ac_builddir=.
1413
1414case "$ac_dir" in
1415.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416*)
1417  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1418  # A ".." for each directory in $ac_dir_suffix.
1419  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1420  case $ac_top_builddir_sub in
1421  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1423  esac ;;
1424esac
1425ac_abs_top_builddir=$ac_pwd
1426ac_abs_builddir=$ac_pwd$ac_dir_suffix
1427# for backward compatibility:
1428ac_top_builddir=$ac_top_build_prefix
1429
1430case $srcdir in
1431  .)  # We are building in place.
1432    ac_srcdir=.
1433    ac_top_srcdir=$ac_top_builddir_sub
1434    ac_abs_top_srcdir=$ac_pwd ;;
1435  [\\/]* | ?:[\\/]* )  # Absolute name.
1436    ac_srcdir=$srcdir$ac_dir_suffix;
1437    ac_top_srcdir=$srcdir
1438    ac_abs_top_srcdir=$srcdir ;;
1439  *) # Relative name.
1440    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1441    ac_top_srcdir=$ac_top_build_prefix$srcdir
1442    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1443esac
1444ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1445
1446    cd "$ac_dir" || { ac_status=$?; continue; }
1447    # Check for guested configure.
1448    if test -f "$ac_srcdir/configure.gnu"; then
1449      echo &&
1450      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1451    elif test -f "$ac_srcdir/configure"; then
1452      echo &&
1453      $SHELL "$ac_srcdir/configure" --help=recursive
1454    else
1455      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1456    fi || ac_status=$?
1457    cd "$ac_pwd" || { ac_status=$?; break; }
1458  done
1459fi
1460
1461test -n "$ac_init_help" && exit $ac_status
1462if $ac_init_version; then
1463  cat <<\_ACEOF
1464starplot configure 0.95.5
1465generated by GNU Autoconf 2.61
1466
1467Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14682002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1469This configure script is free software; the Free Software Foundation
1470gives unlimited permission to copy, distribute and modify it.
1471_ACEOF
1472  exit
1473fi
1474cat >config.log <<_ACEOF
1475This file contains any messages produced by compilers while
1476running configure, to aid debugging if configure makes a mistake.
1477
1478It was created by starplot $as_me 0.95.5, which was
1479generated by GNU Autoconf 2.61.  Invocation command line was
1480
1481  $ $0 $@
1482
1483_ACEOF
1484exec 5>>config.log
1485{
1486cat <<_ASUNAME
1487## --------- ##
1488## Platform. ##
1489## --------- ##
1490
1491hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1492uname -m = `(uname -m) 2>/dev/null || echo unknown`
1493uname -r = `(uname -r) 2>/dev/null || echo unknown`
1494uname -s = `(uname -s) 2>/dev/null || echo unknown`
1495uname -v = `(uname -v) 2>/dev/null || echo unknown`
1496
1497/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1498/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1499
1500/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1501/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1502/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1503/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1504/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1505/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1506/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1507
1508_ASUNAME
1509
1510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511for as_dir in $PATH
1512do
1513  IFS=$as_save_IFS
1514  test -z "$as_dir" && as_dir=.
1515  echo "PATH: $as_dir"
1516done
1517IFS=$as_save_IFS
1518
1519} >&5
1520
1521cat >&5 <<_ACEOF
1522
1523
1524## ----------- ##
1525## Core tests. ##
1526## ----------- ##
1527
1528_ACEOF
1529
1530
1531# Keep a trace of the command line.
1532# Strip out --no-create and --no-recursion so they do not pile up.
1533# Strip out --silent because we don't want to record it for future runs.
1534# Also quote any args containing shell meta-characters.
1535# Make two passes to allow for proper duplicate-argument suppression.
1536ac_configure_args=
1537ac_configure_args0=
1538ac_configure_args1=
1539ac_must_keep_next=false
1540for ac_pass in 1 2
1541do
1542  for ac_arg
1543  do
1544    case $ac_arg in
1545    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1546    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1547    | -silent | --silent | --silen | --sile | --sil)
1548      continue ;;
1549    *\'*)
1550      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1551    esac
1552    case $ac_pass in
1553    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1554    2)
1555      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1556      if test $ac_must_keep_next = true; then
1557	ac_must_keep_next=false # Got value, back to normal.
1558      else
1559	case $ac_arg in
1560	  *=* | --config-cache | -C | -disable-* | --disable-* \
1561	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1562	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1563	  | -with-* | --with-* | -without-* | --without-* | --x)
1564	    case "$ac_configure_args0 " in
1565	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1566	    esac
1567	    ;;
1568	  -* ) ac_must_keep_next=true ;;
1569	esac
1570      fi
1571      ac_configure_args="$ac_configure_args '$ac_arg'"
1572      ;;
1573    esac
1574  done
1575done
1576$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1577$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1578
1579# When interrupted or exit'd, cleanup temporary files, and complete
1580# config.log.  We remove comments because anyway the quotes in there
1581# would cause problems or look ugly.
1582# WARNING: Use '\'' to represent an apostrophe within the trap.
1583# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1584trap 'exit_status=$?
1585  # Save into config.log some information that might help in debugging.
1586  {
1587    echo
1588
1589    cat <<\_ASBOX
1590## ---------------- ##
1591## Cache variables. ##
1592## ---------------- ##
1593_ASBOX
1594    echo
1595    # The following way of writing the cache mishandles newlines in values,
1596(
1597  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1598    eval ac_val=\$$ac_var
1599    case $ac_val in #(
1600    *${as_nl}*)
1601      case $ac_var in #(
1602      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1603echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1604      esac
1605      case $ac_var in #(
1606      _ | IFS | as_nl) ;; #(
1607      *) $as_unset $ac_var ;;
1608      esac ;;
1609    esac
1610  done
1611  (set) 2>&1 |
1612    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1613    *${as_nl}ac_space=\ *)
1614      sed -n \
1615	"s/'\''/'\''\\\\'\'''\''/g;
1616	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1617      ;; #(
1618    *)
1619      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1620      ;;
1621    esac |
1622    sort
1623)
1624    echo
1625
1626    cat <<\_ASBOX
1627## ----------------- ##
1628## Output variables. ##
1629## ----------------- ##
1630_ASBOX
1631    echo
1632    for ac_var in $ac_subst_vars
1633    do
1634      eval ac_val=\$$ac_var
1635      case $ac_val in
1636      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1637      esac
1638      echo "$ac_var='\''$ac_val'\''"
1639    done | sort
1640    echo
1641
1642    if test -n "$ac_subst_files"; then
1643      cat <<\_ASBOX
1644## ------------------- ##
1645## File substitutions. ##
1646## ------------------- ##
1647_ASBOX
1648      echo
1649      for ac_var in $ac_subst_files
1650      do
1651	eval ac_val=\$$ac_var
1652	case $ac_val in
1653	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1654	esac
1655	echo "$ac_var='\''$ac_val'\''"
1656      done | sort
1657      echo
1658    fi
1659
1660    if test -s confdefs.h; then
1661      cat <<\_ASBOX
1662## ----------- ##
1663## confdefs.h. ##
1664## ----------- ##
1665_ASBOX
1666      echo
1667      cat confdefs.h
1668      echo
1669    fi
1670    test "$ac_signal" != 0 &&
1671      echo "$as_me: caught signal $ac_signal"
1672    echo "$as_me: exit $exit_status"
1673  } >&5
1674  rm -f core *.core core.conftest.* &&
1675    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1676    exit $exit_status
1677' 0
1678for ac_signal in 1 2 13 15; do
1679  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1680done
1681ac_signal=0
1682
1683# confdefs.h avoids OS command line length limits that DEFS can exceed.
1684rm -f -r conftest* confdefs.h
1685
1686# Predefined preprocessor variables.
1687
1688cat >>confdefs.h <<_ACEOF
1689#define PACKAGE_NAME "$PACKAGE_NAME"
1690_ACEOF
1691
1692
1693cat >>confdefs.h <<_ACEOF
1694#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1695_ACEOF
1696
1697
1698cat >>confdefs.h <<_ACEOF
1699#define PACKAGE_VERSION "$PACKAGE_VERSION"
1700_ACEOF
1701
1702
1703cat >>confdefs.h <<_ACEOF
1704#define PACKAGE_STRING "$PACKAGE_STRING"
1705_ACEOF
1706
1707
1708cat >>confdefs.h <<_ACEOF
1709#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1710_ACEOF
1711
1712
1713# Let the site file select an alternate cache file if it wants to.
1714# Prefer explicitly selected file to automatically selected ones.
1715if test -n "$CONFIG_SITE"; then
1716  set x "$CONFIG_SITE"
1717elif test "x$prefix" != xNONE; then
1718  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1719else
1720  set x "$ac_default_prefix/share/config.site" \
1721	"$ac_default_prefix/etc/config.site"
1722fi
1723shift
1724for ac_site_file
1725do
1726  if test -r "$ac_site_file"; then
1727    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1728echo "$as_me: loading site script $ac_site_file" >&6;}
1729    sed 's/^/| /' "$ac_site_file" >&5
1730    . "$ac_site_file"
1731  fi
1732done
1733
1734if test -r "$cache_file"; then
1735  # Some versions of bash will fail to source /dev/null (special
1736  # files actually), so we avoid doing that.
1737  if test -f "$cache_file"; then
1738    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1739echo "$as_me: loading cache $cache_file" >&6;}
1740    case $cache_file in
1741      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1742      *)                      . "./$cache_file";;
1743    esac
1744  fi
1745else
1746  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1747echo "$as_me: creating cache $cache_file" >&6;}
1748  >$cache_file
1749fi
1750
1751gt_needs="$gt_needs "
1752# Check that the precious variables saved in the cache have kept the same
1753# value.
1754ac_cache_corrupted=false
1755for ac_var in $ac_precious_vars; do
1756  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1757  eval ac_new_set=\$ac_env_${ac_var}_set
1758  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1759  eval ac_new_val=\$ac_env_${ac_var}_value
1760  case $ac_old_set,$ac_new_set in
1761    set,)
1762      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1763echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1764      ac_cache_corrupted=: ;;
1765    ,set)
1766      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1767echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1768      ac_cache_corrupted=: ;;
1769    ,);;
1770    *)
1771      if test "x$ac_old_val" != "x$ac_new_val"; then
1772	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1773echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1774	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1775echo "$as_me:   former value:  $ac_old_val" >&2;}
1776	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1777echo "$as_me:   current value: $ac_new_val" >&2;}
1778	ac_cache_corrupted=:
1779      fi;;
1780  esac
1781  # Pass precious variables to config.status.
1782  if test "$ac_new_set" = set; then
1783    case $ac_new_val in
1784    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1785    *) ac_arg=$ac_var=$ac_new_val ;;
1786    esac
1787    case " $ac_configure_args " in
1788      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1789      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1790    esac
1791  fi
1792done
1793if $ac_cache_corrupted; then
1794  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1795echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1796  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1797echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1798   { (exit 1); exit 1; }; }
1799fi
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825ac_ext=c
1826ac_cpp='$CPP $CPPFLAGS'
1827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1829ac_compiler_gnu=$ac_cv_c_compiler_gnu
1830
1831
1832         am__api_version='1.10'
1833
1834ac_aux_dir=
1835for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1836  if test -f "$ac_dir/install-sh"; then
1837    ac_aux_dir=$ac_dir
1838    ac_install_sh="$ac_aux_dir/install-sh -c"
1839    break
1840  elif test -f "$ac_dir/install.sh"; then
1841    ac_aux_dir=$ac_dir
1842    ac_install_sh="$ac_aux_dir/install.sh -c"
1843    break
1844  elif test -f "$ac_dir/shtool"; then
1845    ac_aux_dir=$ac_dir
1846    ac_install_sh="$ac_aux_dir/shtool install -c"
1847    break
1848  fi
1849done
1850if test -z "$ac_aux_dir"; then
1851  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1852echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1853   { (exit 1); exit 1; }; }
1854fi
1855
1856# These three variables are undocumented and unsupported,
1857# and are intended to be withdrawn in a future Autoconf release.
1858# They can cause serious problems if a builder's source tree is in a directory
1859# whose full name contains unusual characters.
1860ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1861ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1862ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1863
1864
1865# Find a good install program.  We prefer a C program (faster),
1866# so one script is as good as another.  But avoid the broken or
1867# incompatible versions:
1868# SysV /etc/install, /usr/sbin/install
1869# SunOS /usr/etc/install
1870# IRIX /sbin/install
1871# AIX /bin/install
1872# AmigaOS /C/install, which installs bootblocks on floppy discs
1873# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1874# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1875# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1876# OS/2's system install, which has a completely different semantic
1877# ./install, which can be erroneously created by make from ./install.sh.
1878{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1879echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1880if test -z "$INSTALL"; then
1881if test "${ac_cv_path_install+set}" = set; then
1882  echo $ECHO_N "(cached) $ECHO_C" >&6
1883else
1884  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885for as_dir in $PATH
1886do
1887  IFS=$as_save_IFS
1888  test -z "$as_dir" && as_dir=.
1889  # Account for people who put trailing slashes in PATH elements.
1890case $as_dir/ in
1891  ./ | .// | /cC/* | \
1892  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1893  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1894  /usr/ucb/* ) ;;
1895  *)
1896    # OSF1 and SCO ODT 3.0 have their own names for install.
1897    # Don't use installbsd from OSF since it installs stuff as root
1898    # by default.
1899    for ac_prog in ginstall scoinst install; do
1900      for ac_exec_ext in '' $ac_executable_extensions; do
1901	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1902	  if test $ac_prog = install &&
1903	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1904	    # AIX install.  It has an incompatible calling convention.
1905	    :
1906	  elif test $ac_prog = install &&
1907	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1908	    # program-specific install script used by HP pwplus--don't use.
1909	    :
1910	  else
1911	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1912	    break 3
1913	  fi
1914	fi
1915      done
1916    done
1917    ;;
1918esac
1919done
1920IFS=$as_save_IFS
1921
1922
1923fi
1924  if test "${ac_cv_path_install+set}" = set; then
1925    INSTALL=$ac_cv_path_install
1926  else
1927    # As a last resort, use the slow shell script.  Don't cache a
1928    # value for INSTALL within a source directory, because that will
1929    # break other packages using the cache if that directory is
1930    # removed, or if the value is a relative name.
1931    INSTALL=$ac_install_sh
1932  fi
1933fi
1934{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1935echo "${ECHO_T}$INSTALL" >&6; }
1936
1937# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1938# It thinks the first close brace ends the variable substitution.
1939test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1940
1941test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1942
1943test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1944
1945{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1946echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1947# Just in case
1948sleep 1
1949echo timestamp > conftest.file
1950# Do `set' in a subshell so we don't clobber the current shell's
1951# arguments.  Must try -L first in case configure is actually a
1952# symlink; some systems play weird games with the mod time of symlinks
1953# (eg FreeBSD returns the mod time of the symlink's containing
1954# directory).
1955if (
1956   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1957   if test "$*" = "X"; then
1958      # -L didn't work.
1959      set X `ls -t $srcdir/configure conftest.file`
1960   fi
1961   rm -f conftest.file
1962   if test "$*" != "X $srcdir/configure conftest.file" \
1963      && test "$*" != "X conftest.file $srcdir/configure"; then
1964
1965      # If neither matched, then we have a broken ls.  This can happen
1966      # if, for instance, CONFIG_SHELL is bash and it inherits a
1967      # broken ls alias from the environment.  This has actually
1968      # happened.  Such a system could not be considered "sane".
1969      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1970alias in your environment" >&5
1971echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1972alias in your environment" >&2;}
1973   { (exit 1); exit 1; }; }
1974   fi
1975
1976   test "$2" = conftest.file
1977   )
1978then
1979   # Ok.
1980   :
1981else
1982   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1983Check your system clock" >&5
1984echo "$as_me: error: newly created file is older than distributed files!
1985Check your system clock" >&2;}
1986   { (exit 1); exit 1; }; }
1987fi
1988{ echo "$as_me:$LINENO: result: yes" >&5
1989echo "${ECHO_T}yes" >&6; }
1990test "$program_prefix" != NONE &&
1991  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1992# Use a double $ so make ignores it.
1993test "$program_suffix" != NONE &&
1994  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1995# Double any \ or $.  echo might interpret backslashes.
1996# By default was `s,x,x', remove it if useless.
1997cat <<\_ACEOF >conftest.sed
1998s/[\\$]/&&/g;s/;s,x,x,$//
1999_ACEOF
2000program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2001rm -f conftest.sed
2002
2003# expand $ac_aux_dir to an absolute path
2004am_aux_dir=`cd $ac_aux_dir && pwd`
2005
2006test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2007# Use eval to expand $SHELL
2008if eval "$MISSING --run true"; then
2009  am_missing_run="$MISSING --run "
2010else
2011  am_missing_run=
2012  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2013echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2014fi
2015
2016{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2017echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2018if test -z "$MKDIR_P"; then
2019  if test "${ac_cv_path_mkdir+set}" = set; then
2020  echo $ECHO_N "(cached) $ECHO_C" >&6
2021else
2022  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2024do
2025  IFS=$as_save_IFS
2026  test -z "$as_dir" && as_dir=.
2027  for ac_prog in mkdir gmkdir; do
2028	 for ac_exec_ext in '' $ac_executable_extensions; do
2029	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2030	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2031	     'mkdir (GNU coreutils) '* | \
2032	     'mkdir (coreutils) '* | \
2033	     'mkdir (fileutils) '4.1*)
2034	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2035	       break 3;;
2036	   esac
2037	 done
2038       done
2039done
2040IFS=$as_save_IFS
2041
2042fi
2043
2044  if test "${ac_cv_path_mkdir+set}" = set; then
2045    MKDIR_P="$ac_cv_path_mkdir -p"
2046  else
2047    # As a last resort, use the slow shell script.  Don't cache a
2048    # value for MKDIR_P within a source directory, because that will
2049    # break other packages using the cache if that directory is
2050    # removed, or if the value is a relative name.
2051    test -d ./--version && rmdir ./--version
2052    MKDIR_P="$ac_install_sh -d"
2053  fi
2054fi
2055{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2056echo "${ECHO_T}$MKDIR_P" >&6; }
2057
2058mkdir_p="$MKDIR_P"
2059case $mkdir_p in
2060  [\\/$]* | ?:[\\/]*) ;;
2061  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2062esac
2063
2064for ac_prog in gawk mawk nawk awk
2065do
2066  # Extract the first word of "$ac_prog", so it can be a program name with args.
2067set dummy $ac_prog; ac_word=$2
2068{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2070if test "${ac_cv_prog_AWK+set}" = set; then
2071  echo $ECHO_N "(cached) $ECHO_C" >&6
2072else
2073  if test -n "$AWK"; then
2074  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2075else
2076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077for as_dir in $PATH
2078do
2079  IFS=$as_save_IFS
2080  test -z "$as_dir" && as_dir=.
2081  for ac_exec_ext in '' $ac_executable_extensions; do
2082  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2083    ac_cv_prog_AWK="$ac_prog"
2084    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085    break 2
2086  fi
2087done
2088done
2089IFS=$as_save_IFS
2090
2091fi
2092fi
2093AWK=$ac_cv_prog_AWK
2094if test -n "$AWK"; then
2095  { echo "$as_me:$LINENO: result: $AWK" >&5
2096echo "${ECHO_T}$AWK" >&6; }
2097else
2098  { echo "$as_me:$LINENO: result: no" >&5
2099echo "${ECHO_T}no" >&6; }
2100fi
2101
2102
2103  test -n "$AWK" && break
2104done
2105
2106{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2107echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2108set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2109if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2110  echo $ECHO_N "(cached) $ECHO_C" >&6
2111else
2112  cat >conftest.make <<\_ACEOF
2113SHELL = /bin/sh
2114all:
2115	@echo '@@@%%%=$(MAKE)=@@@%%%'
2116_ACEOF
2117# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2118case `${MAKE-make} -f conftest.make 2>/dev/null` in
2119  *@@@%%%=?*=@@@%%%*)
2120    eval ac_cv_prog_make_${ac_make}_set=yes;;
2121  *)
2122    eval ac_cv_prog_make_${ac_make}_set=no;;
2123esac
2124rm -f conftest.make
2125fi
2126if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2127  { echo "$as_me:$LINENO: result: yes" >&5
2128echo "${ECHO_T}yes" >&6; }
2129  SET_MAKE=
2130else
2131  { echo "$as_me:$LINENO: result: no" >&5
2132echo "${ECHO_T}no" >&6; }
2133  SET_MAKE="MAKE=${MAKE-make}"
2134fi
2135
2136rm -rf .tst 2>/dev/null
2137mkdir .tst 2>/dev/null
2138if test -d .tst; then
2139  am__leading_dot=.
2140else
2141  am__leading_dot=_
2142fi
2143rmdir .tst 2>/dev/null
2144
2145if test "`cd $srcdir && pwd`" != "`pwd`"; then
2146  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2147  # is not polluted with repeated "-I."
2148  am__isrc=' -I$(srcdir)'
2149  # test to see if srcdir already configured
2150  if test -f $srcdir/config.status; then
2151    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2152echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2153   { (exit 1); exit 1; }; }
2154  fi
2155fi
2156
2157# test whether we have cygpath
2158if test -z "$CYGPATH_W"; then
2159  if (cygpath --version) >/dev/null 2>/dev/null; then
2160    CYGPATH_W='cygpath -w'
2161  else
2162    CYGPATH_W=echo
2163  fi
2164fi
2165
2166
2167# Define the identity of the package.
2168 PACKAGE='starplot'
2169 VERSION='0.95.5'
2170
2171
2172cat >>confdefs.h <<_ACEOF
2173#define PACKAGE "$PACKAGE"
2174_ACEOF
2175
2176
2177cat >>confdefs.h <<_ACEOF
2178#define VERSION "$VERSION"
2179_ACEOF
2180
2181# Some tools Automake needs.
2182
2183ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2184
2185
2186AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2187
2188
2189AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2190
2191
2192AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2193
2194
2195MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2196
2197install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2198
2199# Installed binaries are usually stripped using `strip' when the user
2200# run `make install-strip'.  However `strip' might not be the right
2201# tool to use in cross-compilation environments, therefore Automake
2202# will honor the `STRIP' environment variable to overrule this program.
2203if test "$cross_compiling" != no; then
2204  if test -n "$ac_tool_prefix"; then
2205  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2206set dummy ${ac_tool_prefix}strip; ac_word=$2
2207{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209if test "${ac_cv_prog_STRIP+set}" = set; then
2210  echo $ECHO_N "(cached) $ECHO_C" >&6
2211else
2212  if test -n "$STRIP"; then
2213  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2214else
2215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216for as_dir in $PATH
2217do
2218  IFS=$as_save_IFS
2219  test -z "$as_dir" && as_dir=.
2220  for ac_exec_ext in '' $ac_executable_extensions; do
2221  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2223    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224    break 2
2225  fi
2226done
2227done
2228IFS=$as_save_IFS
2229
2230fi
2231fi
2232STRIP=$ac_cv_prog_STRIP
2233if test -n "$STRIP"; then
2234  { echo "$as_me:$LINENO: result: $STRIP" >&5
2235echo "${ECHO_T}$STRIP" >&6; }
2236else
2237  { echo "$as_me:$LINENO: result: no" >&5
2238echo "${ECHO_T}no" >&6; }
2239fi
2240
2241
2242fi
2243if test -z "$ac_cv_prog_STRIP"; then
2244  ac_ct_STRIP=$STRIP
2245  # Extract the first word of "strip", so it can be a program name with args.
2246set dummy strip; ac_word=$2
2247{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2249if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2250  echo $ECHO_N "(cached) $ECHO_C" >&6
2251else
2252  if test -n "$ac_ct_STRIP"; then
2253  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2254else
2255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256for as_dir in $PATH
2257do
2258  IFS=$as_save_IFS
2259  test -z "$as_dir" && as_dir=.
2260  for ac_exec_ext in '' $ac_executable_extensions; do
2261  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2262    ac_cv_prog_ac_ct_STRIP="strip"
2263    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264    break 2
2265  fi
2266done
2267done
2268IFS=$as_save_IFS
2269
2270fi
2271fi
2272ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2273if test -n "$ac_ct_STRIP"; then
2274  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2275echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2276else
2277  { echo "$as_me:$LINENO: result: no" >&5
2278echo "${ECHO_T}no" >&6; }
2279fi
2280
2281  if test "x$ac_ct_STRIP" = x; then
2282    STRIP=":"
2283  else
2284    case $cross_compiling:$ac_tool_warned in
2285yes:)
2286{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2287whose name does not start with the host triplet.  If you think this
2288configuration is useful to you, please write to autoconf@gnu.org." >&5
2289echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2290whose name does not start with the host triplet.  If you think this
2291configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2292ac_tool_warned=yes ;;
2293esac
2294    STRIP=$ac_ct_STRIP
2295  fi
2296else
2297  STRIP="$ac_cv_prog_STRIP"
2298fi
2299
2300fi
2301INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2302
2303# We need awk for the "check" target.  The system "awk" is bad on
2304# some platforms.
2305# Always define AMTAR for backward compatibility.
2306
2307AMTAR=${AMTAR-"${am_missing_run}tar"}
2308
2309am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2310
2311
2312
2313
2314
2315
2316cat >>confdefs.h <<\_ACEOF
2317#define _GNU_SOURCE 1
2318_ACEOF
2319
2320
2321DEPDIR="${am__leading_dot}deps"
2322
2323ac_config_commands="$ac_config_commands depfiles"
2324
2325
2326am_make=${MAKE-make}
2327cat > confinc << 'END'
2328am__doit:
2329	@echo done
2330.PHONY: am__doit
2331END
2332# If we don't find an include directive, just comment out the code.
2333{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2334echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2335am__include="#"
2336am__quote=
2337_am_result=none
2338# First try GNU make style include.
2339echo "include confinc" > confmf
2340# We grep out `Entering directory' and `Leaving directory'
2341# messages which can occur if `w' ends up in MAKEFLAGS.
2342# In particular we don't look at `^make:' because GNU make might
2343# be invoked under some other name (usually "gmake"), in which
2344# case it prints its new name instead of `make'.
2345if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2346   am__include=include
2347   am__quote=
2348   _am_result=GNU
2349fi
2350# Now try BSD make style include.
2351if test "$am__include" = "#"; then
2352   echo '.include "confinc"' > confmf
2353   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2354      am__include=.include
2355      am__quote="\""
2356      _am_result=BSD
2357   fi
2358fi
2359
2360
2361{ echo "$as_me:$LINENO: result: $_am_result" >&5
2362echo "${ECHO_T}$_am_result" >&6; }
2363rm -f confinc confmf
2364
2365# Check whether --enable-dependency-tracking was given.
2366if test "${enable_dependency_tracking+set}" = set; then
2367  enableval=$enable_dependency_tracking;
2368fi
2369
2370if test "x$enable_dependency_tracking" != xno; then
2371  am_depcomp="$ac_aux_dir/depcomp"
2372  AMDEPBACKSLASH='\'
2373fi
2374 if test "x$enable_dependency_tracking" != xno; then
2375  AMDEP_TRUE=
2376  AMDEP_FALSE='#'
2377else
2378  AMDEP_TRUE='#'
2379  AMDEP_FALSE=
2380fi
2381
2382
2383ac_ext=c
2384ac_cpp='$CPP $CPPFLAGS'
2385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2387ac_compiler_gnu=$ac_cv_c_compiler_gnu
2388if test -n "$ac_tool_prefix"; then
2389  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2390set dummy ${ac_tool_prefix}gcc; ac_word=$2
2391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2393if test "${ac_cv_prog_CC+set}" = set; then
2394  echo $ECHO_N "(cached) $ECHO_C" >&6
2395else
2396  if test -n "$CC"; then
2397  ac_cv_prog_CC="$CC" # Let the user override the test.
2398else
2399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400for as_dir in $PATH
2401do
2402  IFS=$as_save_IFS
2403  test -z "$as_dir" && as_dir=.
2404  for ac_exec_ext in '' $ac_executable_extensions; do
2405  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2406    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2407    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408    break 2
2409  fi
2410done
2411done
2412IFS=$as_save_IFS
2413
2414fi
2415fi
2416CC=$ac_cv_prog_CC
2417if test -n "$CC"; then
2418  { echo "$as_me:$LINENO: result: $CC" >&5
2419echo "${ECHO_T}$CC" >&6; }
2420else
2421  { echo "$as_me:$LINENO: result: no" >&5
2422echo "${ECHO_T}no" >&6; }
2423fi
2424
2425
2426fi
2427if test -z "$ac_cv_prog_CC"; then
2428  ac_ct_CC=$CC
2429  # Extract the first word of "gcc", so it can be a program name with args.
2430set dummy gcc; ac_word=$2
2431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2433if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2434  echo $ECHO_N "(cached) $ECHO_C" >&6
2435else
2436  if test -n "$ac_ct_CC"; then
2437  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2438else
2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440for as_dir in $PATH
2441do
2442  IFS=$as_save_IFS
2443  test -z "$as_dir" && as_dir=.
2444  for ac_exec_ext in '' $ac_executable_extensions; do
2445  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2446    ac_cv_prog_ac_ct_CC="gcc"
2447    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448    break 2
2449  fi
2450done
2451done
2452IFS=$as_save_IFS
2453
2454fi
2455fi
2456ac_ct_CC=$ac_cv_prog_ac_ct_CC
2457if test -n "$ac_ct_CC"; then
2458  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2459echo "${ECHO_T}$ac_ct_CC" >&6; }
2460else
2461  { echo "$as_me:$LINENO: result: no" >&5
2462echo "${ECHO_T}no" >&6; }
2463fi
2464
2465  if test "x$ac_ct_CC" = x; then
2466    CC=""
2467  else
2468    case $cross_compiling:$ac_tool_warned in
2469yes:)
2470{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2471whose name does not start with the host triplet.  If you think this
2472configuration is useful to you, please write to autoconf@gnu.org." >&5
2473echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2474whose name does not start with the host triplet.  If you think this
2475configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2476ac_tool_warned=yes ;;
2477esac
2478    CC=$ac_ct_CC
2479  fi
2480else
2481  CC="$ac_cv_prog_CC"
2482fi
2483
2484if test -z "$CC"; then
2485          if test -n "$ac_tool_prefix"; then
2486    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2487set dummy ${ac_tool_prefix}cc; ac_word=$2
2488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2490if test "${ac_cv_prog_CC+set}" = set; then
2491  echo $ECHO_N "(cached) $ECHO_C" >&6
2492else
2493  if test -n "$CC"; then
2494  ac_cv_prog_CC="$CC" # Let the user override the test.
2495else
2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497for as_dir in $PATH
2498do
2499  IFS=$as_save_IFS
2500  test -z "$as_dir" && as_dir=.
2501  for ac_exec_ext in '' $ac_executable_extensions; do
2502  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503    ac_cv_prog_CC="${ac_tool_prefix}cc"
2504    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505    break 2
2506  fi
2507done
2508done
2509IFS=$as_save_IFS
2510
2511fi
2512fi
2513CC=$ac_cv_prog_CC
2514if test -n "$CC"; then
2515  { echo "$as_me:$LINENO: result: $CC" >&5
2516echo "${ECHO_T}$CC" >&6; }
2517else
2518  { echo "$as_me:$LINENO: result: no" >&5
2519echo "${ECHO_T}no" >&6; }
2520fi
2521
2522
2523  fi
2524fi
2525if test -z "$CC"; then
2526  # Extract the first word of "cc", so it can be a program name with args.
2527set dummy cc; ac_word=$2
2528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530if test "${ac_cv_prog_CC+set}" = set; then
2531  echo $ECHO_N "(cached) $ECHO_C" >&6
2532else
2533  if test -n "$CC"; then
2534  ac_cv_prog_CC="$CC" # Let the user override the test.
2535else
2536  ac_prog_rejected=no
2537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538for as_dir in $PATH
2539do
2540  IFS=$as_save_IFS
2541  test -z "$as_dir" && as_dir=.
2542  for ac_exec_ext in '' $ac_executable_extensions; do
2543  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2545       ac_prog_rejected=yes
2546       continue
2547     fi
2548    ac_cv_prog_CC="cc"
2549    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550    break 2
2551  fi
2552done
2553done
2554IFS=$as_save_IFS
2555
2556if test $ac_prog_rejected = yes; then
2557  # We found a bogon in the path, so make sure we never use it.
2558  set dummy $ac_cv_prog_CC
2559  shift
2560  if test $# != 0; then
2561    # We chose a different compiler from the bogus one.
2562    # However, it has the same basename, so the bogon will be chosen
2563    # first if we set CC to just the basename; use the full file name.
2564    shift
2565    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2566  fi
2567fi
2568fi
2569fi
2570CC=$ac_cv_prog_CC
2571if test -n "$CC"; then
2572  { echo "$as_me:$LINENO: result: $CC" >&5
2573echo "${ECHO_T}$CC" >&6; }
2574else
2575  { echo "$as_me:$LINENO: result: no" >&5
2576echo "${ECHO_T}no" >&6; }
2577fi
2578
2579
2580fi
2581if test -z "$CC"; then
2582  if test -n "$ac_tool_prefix"; then
2583  for ac_prog in cl.exe
2584  do
2585    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2586set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2589if test "${ac_cv_prog_CC+set}" = set; then
2590  echo $ECHO_N "(cached) $ECHO_C" >&6
2591else
2592  if test -n "$CC"; then
2593  ac_cv_prog_CC="$CC" # Let the user override the test.
2594else
2595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596for as_dir in $PATH
2597do
2598  IFS=$as_save_IFS
2599  test -z "$as_dir" && as_dir=.
2600  for ac_exec_ext in '' $ac_executable_extensions; do
2601  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2603    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604    break 2
2605  fi
2606done
2607done
2608IFS=$as_save_IFS
2609
2610fi
2611fi
2612CC=$ac_cv_prog_CC
2613if test -n "$CC"; then
2614  { echo "$as_me:$LINENO: result: $CC" >&5
2615echo "${ECHO_T}$CC" >&6; }
2616else
2617  { echo "$as_me:$LINENO: result: no" >&5
2618echo "${ECHO_T}no" >&6; }
2619fi
2620
2621
2622    test -n "$CC" && break
2623  done
2624fi
2625if test -z "$CC"; then
2626  ac_ct_CC=$CC
2627  for ac_prog in cl.exe
2628do
2629  # Extract the first word of "$ac_prog", so it can be a program name with args.
2630set dummy $ac_prog; ac_word=$2
2631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2633if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2634  echo $ECHO_N "(cached) $ECHO_C" >&6
2635else
2636  if test -n "$ac_ct_CC"; then
2637  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2638else
2639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642  IFS=$as_save_IFS
2643  test -z "$as_dir" && as_dir=.
2644  for ac_exec_ext in '' $ac_executable_extensions; do
2645  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2646    ac_cv_prog_ac_ct_CC="$ac_prog"
2647    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648    break 2
2649  fi
2650done
2651done
2652IFS=$as_save_IFS
2653
2654fi
2655fi
2656ac_ct_CC=$ac_cv_prog_ac_ct_CC
2657if test -n "$ac_ct_CC"; then
2658  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2659echo "${ECHO_T}$ac_ct_CC" >&6; }
2660else
2661  { echo "$as_me:$LINENO: result: no" >&5
2662echo "${ECHO_T}no" >&6; }
2663fi
2664
2665
2666  test -n "$ac_ct_CC" && break
2667done
2668
2669  if test "x$ac_ct_CC" = x; then
2670    CC=""
2671  else
2672    case $cross_compiling:$ac_tool_warned in
2673yes:)
2674{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2675whose name does not start with the host triplet.  If you think this
2676configuration is useful to you, please write to autoconf@gnu.org." >&5
2677echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2678whose name does not start with the host triplet.  If you think this
2679configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2680ac_tool_warned=yes ;;
2681esac
2682    CC=$ac_ct_CC
2683  fi
2684fi
2685
2686fi
2687
2688
2689test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2690See \`config.log' for more details." >&5
2691echo "$as_me: error: no acceptable C compiler found in \$PATH
2692See \`config.log' for more details." >&2;}
2693   { (exit 1); exit 1; }; }
2694
2695# Provide some information about the compiler.
2696echo "$as_me:$LINENO: checking for C compiler version" >&5
2697ac_compiler=`set X $ac_compile; echo $2`
2698{ (ac_try="$ac_compiler --version >&5"
2699case "(($ac_try" in
2700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701  *) ac_try_echo=$ac_try;;
2702esac
2703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704  (eval "$ac_compiler --version >&5") 2>&5
2705  ac_status=$?
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); }
2708{ (ac_try="$ac_compiler -v >&5"
2709case "(($ac_try" in
2710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711  *) ac_try_echo=$ac_try;;
2712esac
2713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714  (eval "$ac_compiler -v >&5") 2>&5
2715  ac_status=$?
2716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717  (exit $ac_status); }
2718{ (ac_try="$ac_compiler -V >&5"
2719case "(($ac_try" in
2720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721  *) ac_try_echo=$ac_try;;
2722esac
2723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724  (eval "$ac_compiler -V >&5") 2>&5
2725  ac_status=$?
2726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727  (exit $ac_status); }
2728
2729cat >conftest.$ac_ext <<_ACEOF
2730/* confdefs.h.  */
2731_ACEOF
2732cat confdefs.h >>conftest.$ac_ext
2733cat >>conftest.$ac_ext <<_ACEOF
2734/* end confdefs.h.  */
2735
2736int
2737main ()
2738{
2739
2740  ;
2741  return 0;
2742}
2743_ACEOF
2744ac_clean_files_save=$ac_clean_files
2745ac_clean_files="$ac_clean_files a.out a.exe b.out"
2746# Try to create an executable without -o first, disregard a.out.
2747# It will help us diagnose broken compilers, and finding out an intuition
2748# of exeext.
2749{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2750echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2751ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2752#
2753# List of possible output files, starting from the most likely.
2754# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2755# only as a last resort.  b.out is created by i960 compilers.
2756ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2757#
2758# The IRIX 6 linker writes into existing files which may not be
2759# executable, retaining their permissions.  Remove them first so a
2760# subsequent execution test works.
2761ac_rmfiles=
2762for ac_file in $ac_files
2763do
2764  case $ac_file in
2765    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2766    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2767  esac
2768done
2769rm -f $ac_rmfiles
2770
2771if { (ac_try="$ac_link_default"
2772case "(($ac_try" in
2773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774  *) ac_try_echo=$ac_try;;
2775esac
2776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777  (eval "$ac_link_default") 2>&5
2778  ac_status=$?
2779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780  (exit $ac_status); }; then
2781  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2782# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2783# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2784# so that the user can short-circuit this test for compilers unknown to
2785# Autoconf.
2786for ac_file in $ac_files ''
2787do
2788  test -f "$ac_file" || continue
2789  case $ac_file in
2790    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2791	;;
2792    [ab].out )
2793	# We found the default executable, but exeext='' is most
2794	# certainly right.
2795	break;;
2796    *.* )
2797        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2798	then :; else
2799	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2800	fi
2801	# We set ac_cv_exeext here because the later test for it is not
2802	# safe: cross compilers may not add the suffix if given an `-o'
2803	# argument, so we may need to know it at that point already.
2804	# Even if this section looks crufty: it has the advantage of
2805	# actually working.
2806	break;;
2807    * )
2808	break;;
2809  esac
2810done
2811test "$ac_cv_exeext" = no && ac_cv_exeext=
2812
2813else
2814  ac_file=''
2815fi
2816
2817{ echo "$as_me:$LINENO: result: $ac_file" >&5
2818echo "${ECHO_T}$ac_file" >&6; }
2819if test -z "$ac_file"; then
2820  echo "$as_me: failed program was:" >&5
2821sed 's/^/| /' conftest.$ac_ext >&5
2822
2823{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2824See \`config.log' for more details." >&5
2825echo "$as_me: error: C compiler cannot create executables
2826See \`config.log' for more details." >&2;}
2827   { (exit 77); exit 77; }; }
2828fi
2829
2830ac_exeext=$ac_cv_exeext
2831
2832# Check that the compiler produces executables we can run.  If not, either
2833# the compiler is broken, or we cross compile.
2834{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2835echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2836# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2837# If not cross compiling, check that we can run a simple program.
2838if test "$cross_compiling" != yes; then
2839  if { ac_try='./$ac_file'
2840  { (case "(($ac_try" in
2841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842  *) ac_try_echo=$ac_try;;
2843esac
2844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845  (eval "$ac_try") 2>&5
2846  ac_status=$?
2847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848  (exit $ac_status); }; }; then
2849    cross_compiling=no
2850  else
2851    if test "$cross_compiling" = maybe; then
2852	cross_compiling=yes
2853    else
2854	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2855If you meant to cross compile, use \`--host'.
2856See \`config.log' for more details." >&5
2857echo "$as_me: error: cannot run C compiled programs.
2858If you meant to cross compile, use \`--host'.
2859See \`config.log' for more details." >&2;}
2860   { (exit 1); exit 1; }; }
2861    fi
2862  fi
2863fi
2864{ echo "$as_me:$LINENO: result: yes" >&5
2865echo "${ECHO_T}yes" >&6; }
2866
2867rm -f a.out a.exe conftest$ac_cv_exeext b.out
2868ac_clean_files=$ac_clean_files_save
2869# Check that the compiler produces executables we can run.  If not, either
2870# the compiler is broken, or we cross compile.
2871{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2872echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2873{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2874echo "${ECHO_T}$cross_compiling" >&6; }
2875
2876{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2877echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2878if { (ac_try="$ac_link"
2879case "(($ac_try" in
2880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881  *) ac_try_echo=$ac_try;;
2882esac
2883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884  (eval "$ac_link") 2>&5
2885  ac_status=$?
2886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887  (exit $ac_status); }; then
2888  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2889# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2890# work properly (i.e., refer to `conftest.exe'), while it won't with
2891# `rm'.
2892for ac_file in conftest.exe conftest conftest.*; do
2893  test -f "$ac_file" || continue
2894  case $ac_file in
2895    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2896    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2897	  break;;
2898    * ) break;;
2899  esac
2900done
2901else
2902  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2903See \`config.log' for more details." >&5
2904echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2905See \`config.log' for more details." >&2;}
2906   { (exit 1); exit 1; }; }
2907fi
2908
2909rm -f conftest$ac_cv_exeext
2910{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2911echo "${ECHO_T}$ac_cv_exeext" >&6; }
2912
2913rm -f conftest.$ac_ext
2914EXEEXT=$ac_cv_exeext
2915ac_exeext=$EXEEXT
2916{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2917echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2918if test "${ac_cv_objext+set}" = set; then
2919  echo $ECHO_N "(cached) $ECHO_C" >&6
2920else
2921  cat >conftest.$ac_ext <<_ACEOF
2922/* confdefs.h.  */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
2926/* end confdefs.h.  */
2927
2928int
2929main ()
2930{
2931
2932  ;
2933  return 0;
2934}
2935_ACEOF
2936rm -f conftest.o conftest.obj
2937if { (ac_try="$ac_compile"
2938case "(($ac_try" in
2939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940  *) ac_try_echo=$ac_try;;
2941esac
2942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943  (eval "$ac_compile") 2>&5
2944  ac_status=$?
2945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946  (exit $ac_status); }; then
2947  for ac_file in conftest.o conftest.obj conftest.*; do
2948  test -f "$ac_file" || continue;
2949  case $ac_file in
2950    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2951    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2952       break;;
2953  esac
2954done
2955else
2956  echo "$as_me: failed program was:" >&5
2957sed 's/^/| /' conftest.$ac_ext >&5
2958
2959{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2960See \`config.log' for more details." >&5
2961echo "$as_me: error: cannot compute suffix of object files: cannot compile
2962See \`config.log' for more details." >&2;}
2963   { (exit 1); exit 1; }; }
2964fi
2965
2966rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967fi
2968{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2969echo "${ECHO_T}$ac_cv_objext" >&6; }
2970OBJEXT=$ac_cv_objext
2971ac_objext=$OBJEXT
2972{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2973echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2974if test "${ac_cv_c_compiler_gnu+set}" = set; then
2975  echo $ECHO_N "(cached) $ECHO_C" >&6
2976else
2977  cat >conftest.$ac_ext <<_ACEOF
2978/* confdefs.h.  */
2979_ACEOF
2980cat confdefs.h >>conftest.$ac_ext
2981cat >>conftest.$ac_ext <<_ACEOF
2982/* end confdefs.h.  */
2983
2984int
2985main ()
2986{
2987#ifndef __GNUC__
2988       choke me
2989#endif
2990
2991  ;
2992  return 0;
2993}
2994_ACEOF
2995rm -f conftest.$ac_objext
2996if { (ac_try="$ac_compile"
2997case "(($ac_try" in
2998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999  *) ac_try_echo=$ac_try;;
3000esac
3001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002  (eval "$ac_compile") 2>conftest.er1
3003  ac_status=$?
3004  grep -v '^ *+' conftest.er1 >conftest.err
3005  rm -f conftest.er1
3006  cat conftest.err >&5
3007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008  (exit $ac_status); } && {
3009	 test -z "$ac_c_werror_flag" ||
3010	 test ! -s conftest.err
3011       } && test -s conftest.$ac_objext; then
3012  ac_compiler_gnu=yes
3013else
3014  echo "$as_me: failed program was:" >&5
3015sed 's/^/| /' conftest.$ac_ext >&5
3016
3017	ac_compiler_gnu=no
3018fi
3019
3020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3021ac_cv_c_compiler_gnu=$ac_compiler_gnu
3022
3023fi
3024{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3025echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3026GCC=`test $ac_compiler_gnu = yes && echo yes`
3027ac_test_CFLAGS=${CFLAGS+set}
3028ac_save_CFLAGS=$CFLAGS
3029{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3030echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3031if test "${ac_cv_prog_cc_g+set}" = set; then
3032  echo $ECHO_N "(cached) $ECHO_C" >&6
3033else
3034  ac_save_c_werror_flag=$ac_c_werror_flag
3035   ac_c_werror_flag=yes
3036   ac_cv_prog_cc_g=no
3037   CFLAGS="-g"
3038   cat >conftest.$ac_ext <<_ACEOF
3039/* confdefs.h.  */
3040_ACEOF
3041cat confdefs.h >>conftest.$ac_ext
3042cat >>conftest.$ac_ext <<_ACEOF
3043/* end confdefs.h.  */
3044
3045int
3046main ()
3047{
3048
3049  ;
3050  return 0;
3051}
3052_ACEOF
3053rm -f conftest.$ac_objext
3054if { (ac_try="$ac_compile"
3055case "(($ac_try" in
3056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057  *) ac_try_echo=$ac_try;;
3058esac
3059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060  (eval "$ac_compile") 2>conftest.er1
3061  ac_status=$?
3062  grep -v '^ *+' conftest.er1 >conftest.err
3063  rm -f conftest.er1
3064  cat conftest.err >&5
3065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066  (exit $ac_status); } && {
3067	 test -z "$ac_c_werror_flag" ||
3068	 test ! -s conftest.err
3069       } && test -s conftest.$ac_objext; then
3070  ac_cv_prog_cc_g=yes
3071else
3072  echo "$as_me: failed program was:" >&5
3073sed 's/^/| /' conftest.$ac_ext >&5
3074
3075	CFLAGS=""
3076      cat >conftest.$ac_ext <<_ACEOF
3077/* confdefs.h.  */
3078_ACEOF
3079cat confdefs.h >>conftest.$ac_ext
3080cat >>conftest.$ac_ext <<_ACEOF
3081/* end confdefs.h.  */
3082
3083int
3084main ()
3085{
3086
3087  ;
3088  return 0;
3089}
3090_ACEOF
3091rm -f conftest.$ac_objext
3092if { (ac_try="$ac_compile"
3093case "(($ac_try" in
3094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095  *) ac_try_echo=$ac_try;;
3096esac
3097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098  (eval "$ac_compile") 2>conftest.er1
3099  ac_status=$?
3100  grep -v '^ *+' conftest.er1 >conftest.err
3101  rm -f conftest.er1
3102  cat conftest.err >&5
3103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104  (exit $ac_status); } && {
3105	 test -z "$ac_c_werror_flag" ||
3106	 test ! -s conftest.err
3107       } && test -s conftest.$ac_objext; then
3108  :
3109else
3110  echo "$as_me: failed program was:" >&5
3111sed 's/^/| /' conftest.$ac_ext >&5
3112
3113	ac_c_werror_flag=$ac_save_c_werror_flag
3114	 CFLAGS="-g"
3115	 cat >conftest.$ac_ext <<_ACEOF
3116/* confdefs.h.  */
3117_ACEOF
3118cat confdefs.h >>conftest.$ac_ext
3119cat >>conftest.$ac_ext <<_ACEOF
3120/* end confdefs.h.  */
3121
3122int
3123main ()
3124{
3125
3126  ;
3127  return 0;
3128}
3129_ACEOF
3130rm -f conftest.$ac_objext
3131if { (ac_try="$ac_compile"
3132case "(($ac_try" in
3133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134  *) ac_try_echo=$ac_try;;
3135esac
3136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137  (eval "$ac_compile") 2>conftest.er1
3138  ac_status=$?
3139  grep -v '^ *+' conftest.er1 >conftest.err
3140  rm -f conftest.er1
3141  cat conftest.err >&5
3142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143  (exit $ac_status); } && {
3144	 test -z "$ac_c_werror_flag" ||
3145	 test ! -s conftest.err
3146       } && test -s conftest.$ac_objext; then
3147  ac_cv_prog_cc_g=yes
3148else
3149  echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152
3153fi
3154
3155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156fi
3157
3158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159fi
3160
3161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162   ac_c_werror_flag=$ac_save_c_werror_flag
3163fi
3164{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3165echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3166if test "$ac_test_CFLAGS" = set; then
3167  CFLAGS=$ac_save_CFLAGS
3168elif test $ac_cv_prog_cc_g = yes; then
3169  if test "$GCC" = yes; then
3170    CFLAGS="-g -O2"
3171  else
3172    CFLAGS="-g"
3173  fi
3174else
3175  if test "$GCC" = yes; then
3176    CFLAGS="-O2"
3177  else
3178    CFLAGS=
3179  fi
3180fi
3181{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3182echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3183if test "${ac_cv_prog_cc_c89+set}" = set; then
3184  echo $ECHO_N "(cached) $ECHO_C" >&6
3185else
3186  ac_cv_prog_cc_c89=no
3187ac_save_CC=$CC
3188cat >conftest.$ac_ext <<_ACEOF
3189/* confdefs.h.  */
3190_ACEOF
3191cat confdefs.h >>conftest.$ac_ext
3192cat >>conftest.$ac_ext <<_ACEOF
3193/* end confdefs.h.  */
3194#include <stdarg.h>
3195#include <stdio.h>
3196#include <sys/types.h>
3197#include <sys/stat.h>
3198/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3199struct buf { int x; };
3200FILE * (*rcsopen) (struct buf *, struct stat *, int);
3201static char *e (p, i)
3202     char **p;
3203     int i;
3204{
3205  return p[i];
3206}
3207static char *f (char * (*g) (char **, int), char **p, ...)
3208{
3209  char *s;
3210  va_list v;
3211  va_start (v,p);
3212  s = g (p, va_arg (v,int));
3213  va_end (v);
3214  return s;
3215}
3216
3217/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3218   function prototypes and stuff, but not '\xHH' hex character constants.
3219   These don't provoke an error unfortunately, instead are silently treated
3220   as 'x'.  The following induces an error, until -std is added to get
3221   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3222   array size at least.  It's necessary to write '\x00'==0 to get something
3223   that's true only with -std.  */
3224int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3225
3226/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3227   inside strings and character constants.  */
3228#define FOO(x) 'x'
3229int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3230
3231int test (int i, double x);
3232struct s1 {int (*f) (int a);};
3233struct s2 {int (*f) (double a);};
3234int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3235int argc;
3236char **argv;
3237int
3238main ()
3239{
3240return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3241  ;
3242  return 0;
3243}
3244_ACEOF
3245for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3246	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3247do
3248  CC="$ac_save_CC $ac_arg"
3249  rm -f conftest.$ac_objext
3250if { (ac_try="$ac_compile"
3251case "(($ac_try" in
3252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253  *) ac_try_echo=$ac_try;;
3254esac
3255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256  (eval "$ac_compile") 2>conftest.er1
3257  ac_status=$?
3258  grep -v '^ *+' conftest.er1 >conftest.err
3259  rm -f conftest.er1
3260  cat conftest.err >&5
3261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262  (exit $ac_status); } && {
3263	 test -z "$ac_c_werror_flag" ||
3264	 test ! -s conftest.err
3265       } && test -s conftest.$ac_objext; then
3266  ac_cv_prog_cc_c89=$ac_arg
3267else
3268  echo "$as_me: failed program was:" >&5
3269sed 's/^/| /' conftest.$ac_ext >&5
3270
3271
3272fi
3273
3274rm -f core conftest.err conftest.$ac_objext
3275  test "x$ac_cv_prog_cc_c89" != "xno" && break
3276done
3277rm -f conftest.$ac_ext
3278CC=$ac_save_CC
3279
3280fi
3281# AC_CACHE_VAL
3282case "x$ac_cv_prog_cc_c89" in
3283  x)
3284    { echo "$as_me:$LINENO: result: none needed" >&5
3285echo "${ECHO_T}none needed" >&6; } ;;
3286  xno)
3287    { echo "$as_me:$LINENO: result: unsupported" >&5
3288echo "${ECHO_T}unsupported" >&6; } ;;
3289  *)
3290    CC="$CC $ac_cv_prog_cc_c89"
3291    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3292echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3293esac
3294
3295
3296ac_ext=c
3297ac_cpp='$CPP $CPPFLAGS'
3298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300ac_compiler_gnu=$ac_cv_c_compiler_gnu
3301
3302depcc="$CC"   am_compiler_list=
3303
3304{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3305echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3306if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3307  echo $ECHO_N "(cached) $ECHO_C" >&6
3308else
3309  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3310  # We make a subdir and do the tests there.  Otherwise we can end up
3311  # making bogus files that we don't know about and never remove.  For
3312  # instance it was reported that on HP-UX the gcc test will end up
3313  # making a dummy file named `D' -- because `-MD' means `put the output
3314  # in D'.
3315  mkdir conftest.dir
3316  # Copy depcomp to subdir because otherwise we won't find it if we're
3317  # using a relative directory.
3318  cp "$am_depcomp" conftest.dir
3319  cd conftest.dir
3320  # We will build objects and dependencies in a subdirectory because
3321  # it helps to detect inapplicable dependency modes.  For instance
3322  # both Tru64's cc and ICC support -MD to output dependencies as a
3323  # side effect of compilation, but ICC will put the dependencies in
3324  # the current directory while Tru64 will put them in the object
3325  # directory.
3326  mkdir sub
3327
3328  am_cv_CC_dependencies_compiler_type=none
3329  if test "$am_compiler_list" = ""; then
3330     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3331  fi
3332  for depmode in $am_compiler_list; do
3333    # Setup a source with many dependencies, because some compilers
3334    # like to wrap large dependency lists on column 80 (with \), and
3335    # we should not choose a depcomp mode which is confused by this.
3336    #
3337    # We need to recreate these files for each test, as the compiler may
3338    # overwrite some of them when testing with obscure command lines.
3339    # This happens at least with the AIX C compiler.
3340    : > sub/conftest.c
3341    for i in 1 2 3 4 5 6; do
3342      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3343      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3344      # Solaris 8's {/usr,}/bin/sh.
3345      touch sub/conftst$i.h
3346    done
3347    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3348
3349    case $depmode in
3350    nosideeffect)
3351      # after this tag, mechanisms are not by side-effect, so they'll
3352      # only be used when explicitly requested
3353      if test "x$enable_dependency_tracking" = xyes; then
3354	continue
3355      else
3356	break
3357      fi
3358      ;;
3359    none) break ;;
3360    esac
3361    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3362    # mode.  It turns out that the SunPro C++ compiler does not properly
3363    # handle `-M -o', and we need to detect this.
3364    if depmode=$depmode \
3365       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3366       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3367       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3368         >/dev/null 2>conftest.err &&
3369       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3370       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3371       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3372       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3373      # icc doesn't choke on unknown options, it will just issue warnings
3374      # or remarks (even with -Werror).  So we grep stderr for any message
3375      # that says an option was ignored or not supported.
3376      # When given -MP, icc 7.0 and 7.1 complain thusly:
3377      #   icc: Command line warning: ignoring option '-M'; no argument required
3378      # The diagnosis changed in icc 8.0:
3379      #   icc: Command line remark: option '-MP' not supported
3380      if (grep 'ignoring option' conftest.err ||
3381          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3382        am_cv_CC_dependencies_compiler_type=$depmode
3383        break
3384      fi
3385    fi
3386  done
3387
3388  cd ..
3389  rm -rf conftest.dir
3390else
3391  am_cv_CC_dependencies_compiler_type=none
3392fi
3393
3394fi
3395{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3396echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3397CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3398
3399 if
3400  test "x$enable_dependency_tracking" != xno \
3401  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3402  am__fastdepCC_TRUE=
3403  am__fastdepCC_FALSE='#'
3404else
3405  am__fastdepCC_TRUE='#'
3406  am__fastdepCC_FALSE=
3407fi
3408
3409
3410
3411ac_ext=c
3412ac_cpp='$CPP $CPPFLAGS'
3413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3415ac_compiler_gnu=$ac_cv_c_compiler_gnu
3416{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3417echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3418# On Suns, sometimes $CPP names a directory.
3419if test -n "$CPP" && test -d "$CPP"; then
3420  CPP=
3421fi
3422if test -z "$CPP"; then
3423  if test "${ac_cv_prog_CPP+set}" = set; then
3424  echo $ECHO_N "(cached) $ECHO_C" >&6
3425else
3426      # Double quotes because CPP needs to be expanded
3427    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3428    do
3429      ac_preproc_ok=false
3430for ac_c_preproc_warn_flag in '' yes
3431do
3432  # Use a header file that comes with gcc, so configuring glibc
3433  # with a fresh cross-compiler works.
3434  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3435  # <limits.h> exists even on freestanding compilers.
3436  # On the NeXT, cc -E runs the code through the compiler's parser,
3437  # not just through cpp. "Syntax error" is here to catch this case.
3438  cat >conftest.$ac_ext <<_ACEOF
3439/* confdefs.h.  */
3440_ACEOF
3441cat confdefs.h >>conftest.$ac_ext
3442cat >>conftest.$ac_ext <<_ACEOF
3443/* end confdefs.h.  */
3444#ifdef __STDC__
3445# include <limits.h>
3446#else
3447# include <assert.h>
3448#endif
3449		     Syntax error
3450_ACEOF
3451if { (ac_try="$ac_cpp conftest.$ac_ext"
3452case "(($ac_try" in
3453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454  *) ac_try_echo=$ac_try;;
3455esac
3456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3458  ac_status=$?
3459  grep -v '^ *+' conftest.er1 >conftest.err
3460  rm -f conftest.er1
3461  cat conftest.err >&5
3462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463  (exit $ac_status); } >/dev/null && {
3464	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3465	 test ! -s conftest.err
3466       }; then
3467  :
3468else
3469  echo "$as_me: failed program was:" >&5
3470sed 's/^/| /' conftest.$ac_ext >&5
3471
3472  # Broken: fails on valid input.
3473continue
3474fi
3475
3476rm -f conftest.err conftest.$ac_ext
3477
3478  # OK, works on sane cases.  Now check whether nonexistent headers
3479  # can be detected and how.
3480  cat >conftest.$ac_ext <<_ACEOF
3481/* confdefs.h.  */
3482_ACEOF
3483cat confdefs.h >>conftest.$ac_ext
3484cat >>conftest.$ac_ext <<_ACEOF
3485/* end confdefs.h.  */
3486#include <ac_nonexistent.h>
3487_ACEOF
3488if { (ac_try="$ac_cpp conftest.$ac_ext"
3489case "(($ac_try" in
3490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491  *) ac_try_echo=$ac_try;;
3492esac
3493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3495  ac_status=$?
3496  grep -v '^ *+' conftest.er1 >conftest.err
3497  rm -f conftest.er1
3498  cat conftest.err >&5
3499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500  (exit $ac_status); } >/dev/null && {
3501	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3502	 test ! -s conftest.err
3503       }; then
3504  # Broken: success on invalid input.
3505continue
3506else
3507  echo "$as_me: failed program was:" >&5
3508sed 's/^/| /' conftest.$ac_ext >&5
3509
3510  # Passes both tests.
3511ac_preproc_ok=:
3512break
3513fi
3514
3515rm -f conftest.err conftest.$ac_ext
3516
3517done
3518# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3519rm -f conftest.err conftest.$ac_ext
3520if $ac_preproc_ok; then
3521  break
3522fi
3523
3524    done
3525    ac_cv_prog_CPP=$CPP
3526
3527fi
3528  CPP=$ac_cv_prog_CPP
3529else
3530  ac_cv_prog_CPP=$CPP
3531fi
3532{ echo "$as_me:$LINENO: result: $CPP" >&5
3533echo "${ECHO_T}$CPP" >&6; }
3534ac_preproc_ok=false
3535for ac_c_preproc_warn_flag in '' yes
3536do
3537  # Use a header file that comes with gcc, so configuring glibc
3538  # with a fresh cross-compiler works.
3539  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3540  # <limits.h> exists even on freestanding compilers.
3541  # On the NeXT, cc -E runs the code through the compiler's parser,
3542  # not just through cpp. "Syntax error" is here to catch this case.
3543  cat >conftest.$ac_ext <<_ACEOF
3544/* confdefs.h.  */
3545_ACEOF
3546cat confdefs.h >>conftest.$ac_ext
3547cat >>conftest.$ac_ext <<_ACEOF
3548/* end confdefs.h.  */
3549#ifdef __STDC__
3550# include <limits.h>
3551#else
3552# include <assert.h>
3553#endif
3554		     Syntax error
3555_ACEOF
3556if { (ac_try="$ac_cpp conftest.$ac_ext"
3557case "(($ac_try" in
3558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559  *) ac_try_echo=$ac_try;;
3560esac
3561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3563  ac_status=$?
3564  grep -v '^ *+' conftest.er1 >conftest.err
3565  rm -f conftest.er1
3566  cat conftest.err >&5
3567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568  (exit $ac_status); } >/dev/null && {
3569	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3570	 test ! -s conftest.err
3571       }; then
3572  :
3573else
3574  echo "$as_me: failed program was:" >&5
3575sed 's/^/| /' conftest.$ac_ext >&5
3576
3577  # Broken: fails on valid input.
3578continue
3579fi
3580
3581rm -f conftest.err conftest.$ac_ext
3582
3583  # OK, works on sane cases.  Now check whether nonexistent headers
3584  # can be detected and how.
3585  cat >conftest.$ac_ext <<_ACEOF
3586/* confdefs.h.  */
3587_ACEOF
3588cat confdefs.h >>conftest.$ac_ext
3589cat >>conftest.$ac_ext <<_ACEOF
3590/* end confdefs.h.  */
3591#include <ac_nonexistent.h>
3592_ACEOF
3593if { (ac_try="$ac_cpp conftest.$ac_ext"
3594case "(($ac_try" in
3595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596  *) ac_try_echo=$ac_try;;
3597esac
3598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3600  ac_status=$?
3601  grep -v '^ *+' conftest.er1 >conftest.err
3602  rm -f conftest.er1
3603  cat conftest.err >&5
3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605  (exit $ac_status); } >/dev/null && {
3606	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3607	 test ! -s conftest.err
3608       }; then
3609  # Broken: success on invalid input.
3610continue
3611else
3612  echo "$as_me: failed program was:" >&5
3613sed 's/^/| /' conftest.$ac_ext >&5
3614
3615  # Passes both tests.
3616ac_preproc_ok=:
3617break
3618fi
3619
3620rm -f conftest.err conftest.$ac_ext
3621
3622done
3623# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3624rm -f conftest.err conftest.$ac_ext
3625if $ac_preproc_ok; then
3626  :
3627else
3628  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3629See \`config.log' for more details." >&5
3630echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3631See \`config.log' for more details." >&2;}
3632   { (exit 1); exit 1; }; }
3633fi
3634
3635ac_ext=c
3636ac_cpp='$CPP $CPPFLAGS'
3637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640
3641
3642{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3643echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3644if test "${ac_cv_path_GREP+set}" = set; then
3645  echo $ECHO_N "(cached) $ECHO_C" >&6
3646else
3647  # Extract the first word of "grep ggrep" to use in msg output
3648if test -z "$GREP"; then
3649set dummy grep ggrep; ac_prog_name=$2
3650if test "${ac_cv_path_GREP+set}" = set; then
3651  echo $ECHO_N "(cached) $ECHO_C" >&6
3652else
3653  ac_path_GREP_found=false
3654# Loop through the user's path and test for each of PROGNAME-LIST
3655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3657do
3658  IFS=$as_save_IFS
3659  test -z "$as_dir" && as_dir=.
3660  for ac_prog in grep ggrep; do
3661  for ac_exec_ext in '' $ac_executable_extensions; do
3662    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3663    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3664    # Check for GNU ac_path_GREP and select it if it is found.
3665  # Check for GNU $ac_path_GREP
3666case `"$ac_path_GREP" --version 2>&1` in
3667*GNU*)
3668  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3669*)
3670  ac_count=0
3671  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3672  while :
3673  do
3674    cat "conftest.in" "conftest.in" >"conftest.tmp"
3675    mv "conftest.tmp" "conftest.in"
3676    cp "conftest.in" "conftest.nl"
3677    echo 'GREP' >> "conftest.nl"
3678    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3679    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3680    ac_count=`expr $ac_count + 1`
3681    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3682      # Best one so far, save it but keep looking for a better one
3683      ac_cv_path_GREP="$ac_path_GREP"
3684      ac_path_GREP_max=$ac_count
3685    fi
3686    # 10*(2^10) chars as input seems more than enough
3687    test $ac_count -gt 10 && break
3688  done
3689  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3690esac
3691
3692
3693    $ac_path_GREP_found && break 3
3694  done
3695done
3696
3697done
3698IFS=$as_save_IFS
3699
3700
3701fi
3702
3703GREP="$ac_cv_path_GREP"
3704if test -z "$GREP"; then
3705  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3706echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3707   { (exit 1); exit 1; }; }
3708fi
3709
3710else
3711  ac_cv_path_GREP=$GREP
3712fi
3713
3714
3715fi
3716{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3717echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3718 GREP="$ac_cv_path_GREP"
3719
3720
3721{ echo "$as_me:$LINENO: checking for egrep" >&5
3722echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3723if test "${ac_cv_path_EGREP+set}" = set; then
3724  echo $ECHO_N "(cached) $ECHO_C" >&6
3725else
3726  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3727   then ac_cv_path_EGREP="$GREP -E"
3728   else
3729     # Extract the first word of "egrep" to use in msg output
3730if test -z "$EGREP"; then
3731set dummy egrep; ac_prog_name=$2
3732if test "${ac_cv_path_EGREP+set}" = set; then
3733  echo $ECHO_N "(cached) $ECHO_C" >&6
3734else
3735  ac_path_EGREP_found=false
3736# Loop through the user's path and test for each of PROGNAME-LIST
3737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3739do
3740  IFS=$as_save_IFS
3741  test -z "$as_dir" && as_dir=.
3742  for ac_prog in egrep; do
3743  for ac_exec_ext in '' $ac_executable_extensions; do
3744    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3745    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3746    # Check for GNU ac_path_EGREP and select it if it is found.
3747  # Check for GNU $ac_path_EGREP
3748case `"$ac_path_EGREP" --version 2>&1` in
3749*GNU*)
3750  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3751*)
3752  ac_count=0
3753  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3754  while :
3755  do
3756    cat "conftest.in" "conftest.in" >"conftest.tmp"
3757    mv "conftest.tmp" "conftest.in"
3758    cp "conftest.in" "conftest.nl"
3759    echo 'EGREP' >> "conftest.nl"
3760    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3761    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3762    ac_count=`expr $ac_count + 1`
3763    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3764      # Best one so far, save it but keep looking for a better one
3765      ac_cv_path_EGREP="$ac_path_EGREP"
3766      ac_path_EGREP_max=$ac_count
3767    fi
3768    # 10*(2^10) chars as input seems more than enough
3769    test $ac_count -gt 10 && break
3770  done
3771  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3772esac
3773
3774
3775    $ac_path_EGREP_found && break 3
3776  done
3777done
3778
3779done
3780IFS=$as_save_IFS
3781
3782
3783fi
3784
3785EGREP="$ac_cv_path_EGREP"
3786if test -z "$EGREP"; then
3787  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3788echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3789   { (exit 1); exit 1; }; }
3790fi
3791
3792else
3793  ac_cv_path_EGREP=$EGREP
3794fi
3795
3796
3797   fi
3798fi
3799{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3800echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3801 EGREP="$ac_cv_path_EGREP"
3802
3803
3804
3805{ echo "$as_me:$LINENO: checking for AIX" >&5
3806echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3807cat >conftest.$ac_ext <<_ACEOF
3808/* confdefs.h.  */
3809_ACEOF
3810cat confdefs.h >>conftest.$ac_ext
3811cat >>conftest.$ac_ext <<_ACEOF
3812/* end confdefs.h.  */
3813#ifdef _AIX
3814  yes
3815#endif
3816
3817_ACEOF
3818if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3819  $EGREP "yes" >/dev/null 2>&1; then
3820  { echo "$as_me:$LINENO: result: yes" >&5
3821echo "${ECHO_T}yes" >&6; }
3822cat >>confdefs.h <<\_ACEOF
3823#define _ALL_SOURCE 1
3824_ACEOF
3825
3826else
3827  { echo "$as_me:$LINENO: result: no" >&5
3828echo "${ECHO_T}no" >&6; }
3829fi
3830rm -f conftest*
3831
3832
3833{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3834echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3835if test "${ac_cv_header_stdc+set}" = set; then
3836  echo $ECHO_N "(cached) $ECHO_C" >&6
3837else
3838  cat >conftest.$ac_ext <<_ACEOF
3839/* confdefs.h.  */
3840_ACEOF
3841cat confdefs.h >>conftest.$ac_ext
3842cat >>conftest.$ac_ext <<_ACEOF
3843/* end confdefs.h.  */
3844#include <stdlib.h>
3845#include <stdarg.h>
3846#include <string.h>
3847#include <float.h>
3848
3849int
3850main ()
3851{
3852
3853  ;
3854  return 0;
3855}
3856_ACEOF
3857rm -f conftest.$ac_objext
3858if { (ac_try="$ac_compile"
3859case "(($ac_try" in
3860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861  *) ac_try_echo=$ac_try;;
3862esac
3863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864  (eval "$ac_compile") 2>conftest.er1
3865  ac_status=$?
3866  grep -v '^ *+' conftest.er1 >conftest.err
3867  rm -f conftest.er1
3868  cat conftest.err >&5
3869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870  (exit $ac_status); } && {
3871	 test -z "$ac_c_werror_flag" ||
3872	 test ! -s conftest.err
3873       } && test -s conftest.$ac_objext; then
3874  ac_cv_header_stdc=yes
3875else
3876  echo "$as_me: failed program was:" >&5
3877sed 's/^/| /' conftest.$ac_ext >&5
3878
3879	ac_cv_header_stdc=no
3880fi
3881
3882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883
3884if test $ac_cv_header_stdc = yes; then
3885  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3886  cat >conftest.$ac_ext <<_ACEOF
3887/* confdefs.h.  */
3888_ACEOF
3889cat confdefs.h >>conftest.$ac_ext
3890cat >>conftest.$ac_ext <<_ACEOF
3891/* end confdefs.h.  */
3892#include <string.h>
3893
3894_ACEOF
3895if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3896  $EGREP "memchr" >/dev/null 2>&1; then
3897  :
3898else
3899  ac_cv_header_stdc=no
3900fi
3901rm -f conftest*
3902
3903fi
3904
3905if test $ac_cv_header_stdc = yes; then
3906  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3907  cat >conftest.$ac_ext <<_ACEOF
3908/* confdefs.h.  */
3909_ACEOF
3910cat confdefs.h >>conftest.$ac_ext
3911cat >>conftest.$ac_ext <<_ACEOF
3912/* end confdefs.h.  */
3913#include <stdlib.h>
3914
3915_ACEOF
3916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3917  $EGREP "free" >/dev/null 2>&1; then
3918  :
3919else
3920  ac_cv_header_stdc=no
3921fi
3922rm -f conftest*
3923
3924fi
3925
3926if test $ac_cv_header_stdc = yes; then
3927  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3928  if test "$cross_compiling" = yes; then
3929  :
3930else
3931  cat >conftest.$ac_ext <<_ACEOF
3932/* confdefs.h.  */
3933_ACEOF
3934cat confdefs.h >>conftest.$ac_ext
3935cat >>conftest.$ac_ext <<_ACEOF
3936/* end confdefs.h.  */
3937#include <ctype.h>
3938#include <stdlib.h>
3939#if ((' ' & 0x0FF) == 0x020)
3940# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3941# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3942#else
3943# define ISLOWER(c) \
3944		   (('a' <= (c) && (c) <= 'i') \
3945		     || ('j' <= (c) && (c) <= 'r') \
3946		     || ('s' <= (c) && (c) <= 'z'))
3947# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3948#endif
3949
3950#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3951int
3952main ()
3953{
3954  int i;
3955  for (i = 0; i < 256; i++)
3956    if (XOR (islower (i), ISLOWER (i))
3957	|| toupper (i) != TOUPPER (i))
3958      return 2;
3959  return 0;
3960}
3961_ACEOF
3962rm -f conftest$ac_exeext
3963if { (ac_try="$ac_link"
3964case "(($ac_try" in
3965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966  *) ac_try_echo=$ac_try;;
3967esac
3968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969  (eval "$ac_link") 2>&5
3970  ac_status=$?
3971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3973  { (case "(($ac_try" in
3974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975  *) ac_try_echo=$ac_try;;
3976esac
3977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978  (eval "$ac_try") 2>&5
3979  ac_status=$?
3980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981  (exit $ac_status); }; }; then
3982  :
3983else
3984  echo "$as_me: program exited with status $ac_status" >&5
3985echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
3988( exit $ac_status )
3989ac_cv_header_stdc=no
3990fi
3991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3992fi
3993
3994
3995fi
3996fi
3997{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3998echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3999if test $ac_cv_header_stdc = yes; then
4000
4001cat >>confdefs.h <<\_ACEOF
4002#define STDC_HEADERS 1
4003_ACEOF
4004
4005fi
4006
4007# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4018		  inttypes.h stdint.h unistd.h
4019do
4020as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4021{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4024  echo $ECHO_N "(cached) $ECHO_C" >&6
4025else
4026  cat >conftest.$ac_ext <<_ACEOF
4027/* confdefs.h.  */
4028_ACEOF
4029cat confdefs.h >>conftest.$ac_ext
4030cat >>conftest.$ac_ext <<_ACEOF
4031/* end confdefs.h.  */
4032$ac_includes_default
4033
4034#include <$ac_header>
4035_ACEOF
4036rm -f conftest.$ac_objext
4037if { (ac_try="$ac_compile"
4038case "(($ac_try" in
4039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040  *) ac_try_echo=$ac_try;;
4041esac
4042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4043  (eval "$ac_compile") 2>conftest.er1
4044  ac_status=$?
4045  grep -v '^ *+' conftest.er1 >conftest.err
4046  rm -f conftest.er1
4047  cat conftest.err >&5
4048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049  (exit $ac_status); } && {
4050	 test -z "$ac_c_werror_flag" ||
4051	 test ! -s conftest.err
4052       } && test -s conftest.$ac_objext; then
4053  eval "$as_ac_Header=yes"
4054else
4055  echo "$as_me: failed program was:" >&5
4056sed 's/^/| /' conftest.$ac_ext >&5
4057
4058	eval "$as_ac_Header=no"
4059fi
4060
4061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062fi
4063ac_res=`eval echo '${'$as_ac_Header'}'`
4064	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4065echo "${ECHO_T}$ac_res" >&6; }
4066if test `eval echo '${'$as_ac_Header'}'` = yes; then
4067  cat >>confdefs.h <<_ACEOF
4068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4069_ACEOF
4070
4071fi
4072
4073done
4074
4075
4076if test "${ac_cv_header_minix_config_h+set}" = set; then
4077  { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4078echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4079if test "${ac_cv_header_minix_config_h+set}" = set; then
4080  echo $ECHO_N "(cached) $ECHO_C" >&6
4081fi
4082{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4083echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4084else
4085  # Is the header compilable?
4086{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4087echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4088cat >conftest.$ac_ext <<_ACEOF
4089/* confdefs.h.  */
4090_ACEOF
4091cat confdefs.h >>conftest.$ac_ext
4092cat >>conftest.$ac_ext <<_ACEOF
4093/* end confdefs.h.  */
4094$ac_includes_default
4095#include <minix/config.h>
4096_ACEOF
4097rm -f conftest.$ac_objext
4098if { (ac_try="$ac_compile"
4099case "(($ac_try" in
4100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101  *) ac_try_echo=$ac_try;;
4102esac
4103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4104  (eval "$ac_compile") 2>conftest.er1
4105  ac_status=$?
4106  grep -v '^ *+' conftest.er1 >conftest.err
4107  rm -f conftest.er1
4108  cat conftest.err >&5
4109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110  (exit $ac_status); } && {
4111	 test -z "$ac_c_werror_flag" ||
4112	 test ! -s conftest.err
4113       } && test -s conftest.$ac_objext; then
4114  ac_header_compiler=yes
4115else
4116  echo "$as_me: failed program was:" >&5
4117sed 's/^/| /' conftest.$ac_ext >&5
4118
4119	ac_header_compiler=no
4120fi
4121
4122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4124echo "${ECHO_T}$ac_header_compiler" >&6; }
4125
4126# Is the header present?
4127{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4128echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4129cat >conftest.$ac_ext <<_ACEOF
4130/* confdefs.h.  */
4131_ACEOF
4132cat confdefs.h >>conftest.$ac_ext
4133cat >>conftest.$ac_ext <<_ACEOF
4134/* end confdefs.h.  */
4135#include <minix/config.h>
4136_ACEOF
4137if { (ac_try="$ac_cpp conftest.$ac_ext"
4138case "(($ac_try" in
4139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140  *) ac_try_echo=$ac_try;;
4141esac
4142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4144  ac_status=$?
4145  grep -v '^ *+' conftest.er1 >conftest.err
4146  rm -f conftest.er1
4147  cat conftest.err >&5
4148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149  (exit $ac_status); } >/dev/null && {
4150	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4151	 test ! -s conftest.err
4152       }; then
4153  ac_header_preproc=yes
4154else
4155  echo "$as_me: failed program was:" >&5
4156sed 's/^/| /' conftest.$ac_ext >&5
4157
4158  ac_header_preproc=no
4159fi
4160
4161rm -f conftest.err conftest.$ac_ext
4162{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4163echo "${ECHO_T}$ac_header_preproc" >&6; }
4164
4165# So?  What about this header?
4166case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4167  yes:no: )
4168    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4169echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4170    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4171echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4172    ac_header_preproc=yes
4173    ;;
4174  no:yes:* )
4175    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4176echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4177    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4178echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4179    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4180echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4181    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4182echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4183    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4184echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4185    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4186echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4187    ( cat <<\_ASBOX
4188## ------------------------------------ ##
4189## Report this to starplot@starplot.org ##
4190## ------------------------------------ ##
4191_ASBOX
4192     ) | sed "s/^/$as_me: WARNING:     /" >&2
4193    ;;
4194esac
4195{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
4196echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4197if test "${ac_cv_header_minix_config_h+set}" = set; then
4198  echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200  ac_cv_header_minix_config_h=$ac_header_preproc
4201fi
4202{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4203echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4204
4205fi
4206if test $ac_cv_header_minix_config_h = yes; then
4207  MINIX=yes
4208else
4209  MINIX=
4210fi
4211
4212
4213if test "$MINIX" = yes; then
4214
4215cat >>confdefs.h <<\_ACEOF
4216#define _POSIX_SOURCE 1
4217_ACEOF
4218
4219
4220cat >>confdefs.h <<\_ACEOF
4221#define _POSIX_1_SOURCE 2
4222_ACEOF
4223
4224
4225cat >>confdefs.h <<\_ACEOF
4226#define _MINIX 1
4227_ACEOF
4228
4229fi
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241  { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4242echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4243if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4244  echo $ECHO_N "(cached) $ECHO_C" >&6
4245else
4246  cat >conftest.$ac_ext <<_ACEOF
4247/* confdefs.h.  */
4248_ACEOF
4249cat confdefs.h >>conftest.$ac_ext
4250cat >>conftest.$ac_ext <<_ACEOF
4251/* end confdefs.h.  */
4252
4253#	  define __EXTENSIONS__ 1
4254	  $ac_includes_default
4255int
4256main ()
4257{
4258
4259  ;
4260  return 0;
4261}
4262_ACEOF
4263rm -f conftest.$ac_objext
4264if { (ac_try="$ac_compile"
4265case "(($ac_try" in
4266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267  *) ac_try_echo=$ac_try;;
4268esac
4269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270  (eval "$ac_compile") 2>conftest.er1
4271  ac_status=$?
4272  grep -v '^ *+' conftest.er1 >conftest.err
4273  rm -f conftest.er1
4274  cat conftest.err >&5
4275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276  (exit $ac_status); } && {
4277	 test -z "$ac_c_werror_flag" ||
4278	 test ! -s conftest.err
4279       } && test -s conftest.$ac_objext; then
4280  ac_cv_safe_to_define___extensions__=yes
4281else
4282  echo "$as_me: failed program was:" >&5
4283sed 's/^/| /' conftest.$ac_ext >&5
4284
4285	ac_cv_safe_to_define___extensions__=no
4286fi
4287
4288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289fi
4290{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4291echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4292  test $ac_cv_safe_to_define___extensions__ = yes &&
4293    cat >>confdefs.h <<\_ACEOF
4294#define __EXTENSIONS__ 1
4295_ACEOF
4296
4297  cat >>confdefs.h <<\_ACEOF
4298#define _POSIX_PTHREAD_SEMANTICS 1
4299_ACEOF
4300
4301  cat >>confdefs.h <<\_ACEOF
4302#define _TANDEM_SOURCE 1
4303_ACEOF
4304
4305
4306  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4307echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4308    # Check whether --enable-nls was given.
4309if test "${enable_nls+set}" = set; then
4310  enableval=$enable_nls; USE_NLS=$enableval
4311else
4312  USE_NLS=yes
4313fi
4314
4315  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4316echo "${ECHO_T}$USE_NLS" >&6; }
4317
4318
4319
4320
4321
4322
4323# Prepare PATH_SEPARATOR.
4324# The user is always right.
4325if test "${PATH_SEPARATOR+set}" != set; then
4326  echo "#! /bin/sh" >conf$$.sh
4327  echo  "exit 0"   >>conf$$.sh
4328  chmod +x conf$$.sh
4329  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4330    PATH_SEPARATOR=';'
4331  else
4332    PATH_SEPARATOR=:
4333  fi
4334  rm -f conf$$.sh
4335fi
4336
4337# Find out how to test for executable files. Don't use a zero-byte file,
4338# as systems may use methods other than mode bits to determine executability.
4339cat >conf$$.file <<_ASEOF
4340#! /bin/sh
4341exit 0
4342_ASEOF
4343chmod +x conf$$.file
4344if test -x conf$$.file >/dev/null 2>&1; then
4345  ac_executable_p="test -x"
4346else
4347  ac_executable_p="test -f"
4348fi
4349rm -f conf$$.file
4350
4351# Extract the first word of "msgfmt", so it can be a program name with args.
4352set dummy msgfmt; ac_word=$2
4353{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4355if test "${ac_cv_path_MSGFMT+set}" = set; then
4356  echo $ECHO_N "(cached) $ECHO_C" >&6
4357else
4358  case "$MSGFMT" in
4359  [\\/]* | ?:[\\/]*)
4360    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4361    ;;
4362  *)
4363    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4364    for ac_dir in $PATH; do
4365      IFS="$ac_save_IFS"
4366      test -z "$ac_dir" && ac_dir=.
4367      for ac_exec_ext in '' $ac_executable_extensions; do
4368        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4369          echo "$as_me: trying $ac_dir/$ac_word..." >&5
4370          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4371     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4372            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4373            break 2
4374          fi
4375        fi
4376      done
4377    done
4378    IFS="$ac_save_IFS"
4379  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4380    ;;
4381esac
4382fi
4383MSGFMT="$ac_cv_path_MSGFMT"
4384if test "$MSGFMT" != ":"; then
4385  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4386echo "${ECHO_T}$MSGFMT" >&6; }
4387else
4388  { echo "$as_me:$LINENO: result: no" >&5
4389echo "${ECHO_T}no" >&6; }
4390fi
4391
4392  # Extract the first word of "gmsgfmt", so it can be a program name with args.
4393set dummy gmsgfmt; ac_word=$2
4394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4396if test "${ac_cv_path_GMSGFMT+set}" = set; then
4397  echo $ECHO_N "(cached) $ECHO_C" >&6
4398else
4399  case $GMSGFMT in
4400  [\\/]* | ?:[\\/]*)
4401  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4402  ;;
4403  *)
4404  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405for as_dir in $PATH
4406do
4407  IFS=$as_save_IFS
4408  test -z "$as_dir" && as_dir=.
4409  for ac_exec_ext in '' $ac_executable_extensions; do
4410  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4412    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413    break 2
4414  fi
4415done
4416done
4417IFS=$as_save_IFS
4418
4419  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4420  ;;
4421esac
4422fi
4423GMSGFMT=$ac_cv_path_GMSGFMT
4424if test -n "$GMSGFMT"; then
4425  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4426echo "${ECHO_T}$GMSGFMT" >&6; }
4427else
4428  { echo "$as_me:$LINENO: result: no" >&5
4429echo "${ECHO_T}no" >&6; }
4430fi
4431
4432
4433
4434    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4435    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4436    *) MSGFMT_015=$MSGFMT ;;
4437  esac
4438
4439  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4440    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4441    *) GMSGFMT_015=$GMSGFMT ;;
4442  esac
4443
4444
4445
4446# Prepare PATH_SEPARATOR.
4447# The user is always right.
4448if test "${PATH_SEPARATOR+set}" != set; then
4449  echo "#! /bin/sh" >conf$$.sh
4450  echo  "exit 0"   >>conf$$.sh
4451  chmod +x conf$$.sh
4452  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4453    PATH_SEPARATOR=';'
4454  else
4455    PATH_SEPARATOR=:
4456  fi
4457  rm -f conf$$.sh
4458fi
4459
4460# Find out how to test for executable files. Don't use a zero-byte file,
4461# as systems may use methods other than mode bits to determine executability.
4462cat >conf$$.file <<_ASEOF
4463#! /bin/sh
4464exit 0
4465_ASEOF
4466chmod +x conf$$.file
4467if test -x conf$$.file >/dev/null 2>&1; then
4468  ac_executable_p="test -x"
4469else
4470  ac_executable_p="test -f"
4471fi
4472rm -f conf$$.file
4473
4474# Extract the first word of "xgettext", so it can be a program name with args.
4475set dummy xgettext; ac_word=$2
4476{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4478if test "${ac_cv_path_XGETTEXT+set}" = set; then
4479  echo $ECHO_N "(cached) $ECHO_C" >&6
4480else
4481  case "$XGETTEXT" in
4482  [\\/]* | ?:[\\/]*)
4483    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4484    ;;
4485  *)
4486    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4487    for ac_dir in $PATH; do
4488      IFS="$ac_save_IFS"
4489      test -z "$ac_dir" && ac_dir=.
4490      for ac_exec_ext in '' $ac_executable_extensions; do
4491        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4492          echo "$as_me: trying $ac_dir/$ac_word..." >&5
4493          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4494     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4495            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4496            break 2
4497          fi
4498        fi
4499      done
4500    done
4501    IFS="$ac_save_IFS"
4502  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4503    ;;
4504esac
4505fi
4506XGETTEXT="$ac_cv_path_XGETTEXT"
4507if test "$XGETTEXT" != ":"; then
4508  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4509echo "${ECHO_T}$XGETTEXT" >&6; }
4510else
4511  { echo "$as_me:$LINENO: result: no" >&5
4512echo "${ECHO_T}no" >&6; }
4513fi
4514
4515    rm -f messages.po
4516
4517    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4518    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4519    *) XGETTEXT_015=$XGETTEXT ;;
4520  esac
4521
4522
4523
4524# Prepare PATH_SEPARATOR.
4525# The user is always right.
4526if test "${PATH_SEPARATOR+set}" != set; then
4527  echo "#! /bin/sh" >conf$$.sh
4528  echo  "exit 0"   >>conf$$.sh
4529  chmod +x conf$$.sh
4530  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4531    PATH_SEPARATOR=';'
4532  else
4533    PATH_SEPARATOR=:
4534  fi
4535  rm -f conf$$.sh
4536fi
4537
4538# Find out how to test for executable files. Don't use a zero-byte file,
4539# as systems may use methods other than mode bits to determine executability.
4540cat >conf$$.file <<_ASEOF
4541#! /bin/sh
4542exit 0
4543_ASEOF
4544chmod +x conf$$.file
4545if test -x conf$$.file >/dev/null 2>&1; then
4546  ac_executable_p="test -x"
4547else
4548  ac_executable_p="test -f"
4549fi
4550rm -f conf$$.file
4551
4552# Extract the first word of "msgmerge", so it can be a program name with args.
4553set dummy msgmerge; ac_word=$2
4554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4556if test "${ac_cv_path_MSGMERGE+set}" = set; then
4557  echo $ECHO_N "(cached) $ECHO_C" >&6
4558else
4559  case "$MSGMERGE" in
4560  [\\/]* | ?:[\\/]*)
4561    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4562    ;;
4563  *)
4564    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4565    for ac_dir in $PATH; do
4566      IFS="$ac_save_IFS"
4567      test -z "$ac_dir" && ac_dir=.
4568      for ac_exec_ext in '' $ac_executable_extensions; do
4569        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4570          echo "$as_me: trying $ac_dir/$ac_word..." >&5
4571          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4572            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4573            break 2
4574          fi
4575        fi
4576      done
4577    done
4578    IFS="$ac_save_IFS"
4579  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4580    ;;
4581esac
4582fi
4583MSGMERGE="$ac_cv_path_MSGMERGE"
4584if test "$MSGMERGE" != ":"; then
4585  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4586echo "${ECHO_T}$MSGMERGE" >&6; }
4587else
4588  { echo "$as_me:$LINENO: result: no" >&5
4589echo "${ECHO_T}no" >&6; }
4590fi
4591
4592
4593        test -n "$localedir" || localedir='${datadir}/locale'
4594
4595
4596  ac_config_commands="$ac_config_commands po-directories"
4597
4598
4599# Make sure we can run config.sub.
4600$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4601  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4602echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4603   { (exit 1); exit 1; }; }
4604
4605{ echo "$as_me:$LINENO: checking build system type" >&5
4606echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4607if test "${ac_cv_build+set}" = set; then
4608  echo $ECHO_N "(cached) $ECHO_C" >&6
4609else
4610  ac_build_alias=$build_alias
4611test "x$ac_build_alias" = x &&
4612  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4613test "x$ac_build_alias" = x &&
4614  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4615echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4616   { (exit 1); exit 1; }; }
4617ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4618  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4619echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4620   { (exit 1); exit 1; }; }
4621
4622fi
4623{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4624echo "${ECHO_T}$ac_cv_build" >&6; }
4625case $ac_cv_build in
4626*-*-*) ;;
4627*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4628echo "$as_me: error: invalid value of canonical build" >&2;}
4629   { (exit 1); exit 1; }; };;
4630esac
4631build=$ac_cv_build
4632ac_save_IFS=$IFS; IFS='-'
4633set x $ac_cv_build
4634shift
4635build_cpu=$1
4636build_vendor=$2
4637shift; shift
4638# Remember, the first character of IFS is used to create $*,
4639# except with old shells:
4640build_os=$*
4641IFS=$ac_save_IFS
4642case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4643
4644
4645{ echo "$as_me:$LINENO: checking host system type" >&5
4646echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4647if test "${ac_cv_host+set}" = set; then
4648  echo $ECHO_N "(cached) $ECHO_C" >&6
4649else
4650  if test "x$host_alias" = x; then
4651  ac_cv_host=$ac_cv_build
4652else
4653  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4654    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4655echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4656   { (exit 1); exit 1; }; }
4657fi
4658
4659fi
4660{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4661echo "${ECHO_T}$ac_cv_host" >&6; }
4662case $ac_cv_host in
4663*-*-*) ;;
4664*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4665echo "$as_me: error: invalid value of canonical host" >&2;}
4666   { (exit 1); exit 1; }; };;
4667esac
4668host=$ac_cv_host
4669ac_save_IFS=$IFS; IFS='-'
4670set x $ac_cv_host
4671shift
4672host_cpu=$1
4673host_vendor=$2
4674shift; shift
4675# Remember, the first character of IFS is used to create $*,
4676# except with old shells:
4677host_os=$*
4678IFS=$ac_save_IFS
4679case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4680
4681
4682
4683    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
4684echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
4685if test "${ac_cv_gnu_library_2+set}" = set; then
4686  echo $ECHO_N "(cached) $ECHO_C" >&6
4687else
4688  cat >conftest.$ac_ext <<_ACEOF
4689/* confdefs.h.  */
4690_ACEOF
4691cat confdefs.h >>conftest.$ac_ext
4692cat >>conftest.$ac_ext <<_ACEOF
4693/* end confdefs.h.  */
4694
4695#include <features.h>
4696#ifdef __GNU_LIBRARY__
4697 #if (__GLIBC__ >= 2)
4698  Lucky GNU user
4699 #endif
4700#endif
4701
4702_ACEOF
4703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4704  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
4705  ac_cv_gnu_library_2=yes
4706else
4707  ac_cv_gnu_library_2=no
4708fi
4709rm -f conftest*
4710
4711
4712
4713fi
4714{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
4715echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
4716
4717    GLIBC2="$ac_cv_gnu_library_2"
4718
4719
4720if test -n "$ac_tool_prefix"; then
4721  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4722set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4723{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4725if test "${ac_cv_prog_RANLIB+set}" = set; then
4726  echo $ECHO_N "(cached) $ECHO_C" >&6
4727else
4728  if test -n "$RANLIB"; then
4729  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4730else
4731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732for as_dir in $PATH
4733do
4734  IFS=$as_save_IFS
4735  test -z "$as_dir" && as_dir=.
4736  for ac_exec_ext in '' $ac_executable_extensions; do
4737  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4739    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4740    break 2
4741  fi
4742done
4743done
4744IFS=$as_save_IFS
4745
4746fi
4747fi
4748RANLIB=$ac_cv_prog_RANLIB
4749if test -n "$RANLIB"; then
4750  { echo "$as_me:$LINENO: result: $RANLIB" >&5
4751echo "${ECHO_T}$RANLIB" >&6; }
4752else
4753  { echo "$as_me:$LINENO: result: no" >&5
4754echo "${ECHO_T}no" >&6; }
4755fi
4756
4757
4758fi
4759if test -z "$ac_cv_prog_RANLIB"; then
4760  ac_ct_RANLIB=$RANLIB
4761  # Extract the first word of "ranlib", so it can be a program name with args.
4762set dummy ranlib; ac_word=$2
4763{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4765if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4766  echo $ECHO_N "(cached) $ECHO_C" >&6
4767else
4768  if test -n "$ac_ct_RANLIB"; then
4769  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4770else
4771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772for as_dir in $PATH
4773do
4774  IFS=$as_save_IFS
4775  test -z "$as_dir" && as_dir=.
4776  for ac_exec_ext in '' $ac_executable_extensions; do
4777  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4778    ac_cv_prog_ac_ct_RANLIB="ranlib"
4779    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4780    break 2
4781  fi
4782done
4783done
4784IFS=$as_save_IFS
4785
4786fi
4787fi
4788ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4789if test -n "$ac_ct_RANLIB"; then
4790  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4791echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4792else
4793  { echo "$as_me:$LINENO: result: no" >&5
4794echo "${ECHO_T}no" >&6; }
4795fi
4796
4797  if test "x$ac_ct_RANLIB" = x; then
4798    RANLIB=":"
4799  else
4800    case $cross_compiling:$ac_tool_warned in
4801yes:)
4802{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4803whose name does not start with the host triplet.  If you think this
4804configuration is useful to you, please write to autoconf@gnu.org." >&5
4805echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4806whose name does not start with the host triplet.  If you think this
4807configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4808ac_tool_warned=yes ;;
4809esac
4810    RANLIB=$ac_ct_RANLIB
4811  fi
4812else
4813  RANLIB="$ac_cv_prog_RANLIB"
4814fi
4815
4816
4817
4818  CFLAG_VISIBILITY=
4819  HAVE_VISIBILITY=0
4820  if test -n "$GCC"; then
4821    { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
4822echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
4823    if test "${gl_cv_cc_visibility+set}" = set; then
4824  echo $ECHO_N "(cached) $ECHO_C" >&6
4825else
4826
4827      gl_save_CFLAGS="$CFLAGS"
4828      CFLAGS="$CFLAGS -fvisibility=hidden"
4829      cat >conftest.$ac_ext <<_ACEOF
4830/* confdefs.h.  */
4831_ACEOF
4832cat confdefs.h >>conftest.$ac_ext
4833cat >>conftest.$ac_ext <<_ACEOF
4834/* end confdefs.h.  */
4835extern __attribute__((__visibility__("hidden"))) int hiddenvar;
4836         extern __attribute__((__visibility__("default"))) int exportedvar;
4837         extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
4838         extern __attribute__((__visibility__("default"))) int exportedfunc (void);
4839int
4840main ()
4841{
4842
4843  ;
4844  return 0;
4845}
4846_ACEOF
4847rm -f conftest.$ac_objext
4848if { (ac_try="$ac_compile"
4849case "(($ac_try" in
4850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851  *) ac_try_echo=$ac_try;;
4852esac
4853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4854  (eval "$ac_compile") 2>conftest.er1
4855  ac_status=$?
4856  grep -v '^ *+' conftest.er1 >conftest.err
4857  rm -f conftest.er1
4858  cat conftest.err >&5
4859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860  (exit $ac_status); } && {
4861	 test -z "$ac_c_werror_flag" ||
4862	 test ! -s conftest.err
4863       } && test -s conftest.$ac_objext; then
4864  gl_cv_cc_visibility=yes
4865else
4866  echo "$as_me: failed program was:" >&5
4867sed 's/^/| /' conftest.$ac_ext >&5
4868
4869	gl_cv_cc_visibility=no
4870fi
4871
4872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873      CFLAGS="$gl_save_CFLAGS"
4874fi
4875
4876    { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
4877echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
4878    if test $gl_cv_cc_visibility = yes; then
4879      CFLAG_VISIBILITY="-fvisibility=hidden"
4880      HAVE_VISIBILITY=1
4881    fi
4882  fi
4883
4884
4885
4886cat >>confdefs.h <<_ACEOF
4887#define HAVE_VISIBILITY $HAVE_VISIBILITY
4888_ACEOF
4889
4890
4891{ echo "$as_me:$LINENO: checking for inline" >&5
4892echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4893if test "${ac_cv_c_inline+set}" = set; then
4894  echo $ECHO_N "(cached) $ECHO_C" >&6
4895else
4896  ac_cv_c_inline=no
4897for ac_kw in inline __inline__ __inline; do
4898  cat >conftest.$ac_ext <<_ACEOF
4899/* confdefs.h.  */
4900_ACEOF
4901cat confdefs.h >>conftest.$ac_ext
4902cat >>conftest.$ac_ext <<_ACEOF
4903/* end confdefs.h.  */
4904#ifndef __cplusplus
4905typedef int foo_t;
4906static $ac_kw foo_t static_foo () {return 0; }
4907$ac_kw foo_t foo () {return 0; }
4908#endif
4909
4910_ACEOF
4911rm -f conftest.$ac_objext
4912if { (ac_try="$ac_compile"
4913case "(($ac_try" in
4914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915  *) ac_try_echo=$ac_try;;
4916esac
4917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918  (eval "$ac_compile") 2>conftest.er1
4919  ac_status=$?
4920  grep -v '^ *+' conftest.er1 >conftest.err
4921  rm -f conftest.er1
4922  cat conftest.err >&5
4923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924  (exit $ac_status); } && {
4925	 test -z "$ac_c_werror_flag" ||
4926	 test ! -s conftest.err
4927       } && test -s conftest.$ac_objext; then
4928  ac_cv_c_inline=$ac_kw
4929else
4930  echo "$as_me: failed program was:" >&5
4931sed 's/^/| /' conftest.$ac_ext >&5
4932
4933
4934fi
4935
4936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937  test "$ac_cv_c_inline" != no && break
4938done
4939
4940fi
4941{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4942echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4943
4944
4945case $ac_cv_c_inline in
4946  inline | yes) ;;
4947  *)
4948    case $ac_cv_c_inline in
4949      no) ac_val=;;
4950      *) ac_val=$ac_cv_c_inline;;
4951    esac
4952    cat >>confdefs.h <<_ACEOF
4953#ifndef __cplusplus
4954#define inline $ac_val
4955#endif
4956_ACEOF
4957    ;;
4958esac
4959
4960{ echo "$as_me:$LINENO: checking for size_t" >&5
4961echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4962if test "${ac_cv_type_size_t+set}" = set; then
4963  echo $ECHO_N "(cached) $ECHO_C" >&6
4964else
4965  cat >conftest.$ac_ext <<_ACEOF
4966/* confdefs.h.  */
4967_ACEOF
4968cat confdefs.h >>conftest.$ac_ext
4969cat >>conftest.$ac_ext <<_ACEOF
4970/* end confdefs.h.  */
4971$ac_includes_default
4972typedef size_t ac__type_new_;
4973int
4974main ()
4975{
4976if ((ac__type_new_ *) 0)
4977  return 0;
4978if (sizeof (ac__type_new_))
4979  return 0;
4980  ;
4981  return 0;
4982}
4983_ACEOF
4984rm -f conftest.$ac_objext
4985if { (ac_try="$ac_compile"
4986case "(($ac_try" in
4987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988  *) ac_try_echo=$ac_try;;
4989esac
4990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4991  (eval "$ac_compile") 2>conftest.er1
4992  ac_status=$?
4993  grep -v '^ *+' conftest.er1 >conftest.err
4994  rm -f conftest.er1
4995  cat conftest.err >&5
4996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997  (exit $ac_status); } && {
4998	 test -z "$ac_c_werror_flag" ||
4999	 test ! -s conftest.err
5000       } && test -s conftest.$ac_objext; then
5001  ac_cv_type_size_t=yes
5002else
5003  echo "$as_me: failed program was:" >&5
5004sed 's/^/| /' conftest.$ac_ext >&5
5005
5006	ac_cv_type_size_t=no
5007fi
5008
5009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010fi
5011{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5012echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5013if test $ac_cv_type_size_t = yes; then
5014  :
5015else
5016
5017cat >>confdefs.h <<_ACEOF
5018#define size_t unsigned int
5019_ACEOF
5020
5021fi
5022
5023
5024  { echo "$as_me:$LINENO: checking for stdint.h" >&5
5025echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5026if test "${gl_cv_header_stdint_h+set}" = set; then
5027  echo $ECHO_N "(cached) $ECHO_C" >&6
5028else
5029  cat >conftest.$ac_ext <<_ACEOF
5030/* confdefs.h.  */
5031_ACEOF
5032cat confdefs.h >>conftest.$ac_ext
5033cat >>conftest.$ac_ext <<_ACEOF
5034/* end confdefs.h.  */
5035#include <sys/types.h>
5036#include <stdint.h>
5037int
5038main ()
5039{
5040uintmax_t i = (uintmax_t) -1; return !i;
5041  ;
5042  return 0;
5043}
5044_ACEOF
5045rm -f conftest.$ac_objext
5046if { (ac_try="$ac_compile"
5047case "(($ac_try" in
5048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049  *) ac_try_echo=$ac_try;;
5050esac
5051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052  (eval "$ac_compile") 2>conftest.er1
5053  ac_status=$?
5054  grep -v '^ *+' conftest.er1 >conftest.err
5055  rm -f conftest.er1
5056  cat conftest.err >&5
5057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058  (exit $ac_status); } && {
5059	 test -z "$ac_c_werror_flag" ||
5060	 test ! -s conftest.err
5061       } && test -s conftest.$ac_objext; then
5062  gl_cv_header_stdint_h=yes
5063else
5064  echo "$as_me: failed program was:" >&5
5065sed 's/^/| /' conftest.$ac_ext >&5
5066
5067	gl_cv_header_stdint_h=no
5068fi
5069
5070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071fi
5072{ echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
5073echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
5074  if test $gl_cv_header_stdint_h = yes; then
5075
5076cat >>confdefs.h <<_ACEOF
5077#define HAVE_STDINT_H_WITH_UINTMAX 1
5078_ACEOF
5079
5080  fi
5081
5082# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5083# for constant arguments.  Useless!
5084{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5085echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5086if test "${ac_cv_working_alloca_h+set}" = set; then
5087  echo $ECHO_N "(cached) $ECHO_C" >&6
5088else
5089  cat >conftest.$ac_ext <<_ACEOF
5090/* confdefs.h.  */
5091_ACEOF
5092cat confdefs.h >>conftest.$ac_ext
5093cat >>conftest.$ac_ext <<_ACEOF
5094/* end confdefs.h.  */
5095#include <alloca.h>
5096int
5097main ()
5098{
5099char *p = (char *) alloca (2 * sizeof (int));
5100			  if (p) return 0;
5101  ;
5102  return 0;
5103}
5104_ACEOF
5105rm -f conftest.$ac_objext conftest$ac_exeext
5106if { (ac_try="$ac_link"
5107case "(($ac_try" in
5108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109  *) ac_try_echo=$ac_try;;
5110esac
5111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5112  (eval "$ac_link") 2>conftest.er1
5113  ac_status=$?
5114  grep -v '^ *+' conftest.er1 >conftest.err
5115  rm -f conftest.er1
5116  cat conftest.err >&5
5117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118  (exit $ac_status); } && {
5119	 test -z "$ac_c_werror_flag" ||
5120	 test ! -s conftest.err
5121       } && test -s conftest$ac_exeext &&
5122       $as_test_x conftest$ac_exeext; then
5123  ac_cv_working_alloca_h=yes
5124else
5125  echo "$as_me: failed program was:" >&5
5126sed 's/^/| /' conftest.$ac_ext >&5
5127
5128	ac_cv_working_alloca_h=no
5129fi
5130
5131rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5132      conftest$ac_exeext conftest.$ac_ext
5133fi
5134{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5135echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5136if test $ac_cv_working_alloca_h = yes; then
5137
5138cat >>confdefs.h <<\_ACEOF
5139#define HAVE_ALLOCA_H 1
5140_ACEOF
5141
5142fi
5143
5144{ echo "$as_me:$LINENO: checking for alloca" >&5
5145echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5146if test "${ac_cv_func_alloca_works+set}" = set; then
5147  echo $ECHO_N "(cached) $ECHO_C" >&6
5148else
5149  cat >conftest.$ac_ext <<_ACEOF
5150/* confdefs.h.  */
5151_ACEOF
5152cat confdefs.h >>conftest.$ac_ext
5153cat >>conftest.$ac_ext <<_ACEOF
5154/* end confdefs.h.  */
5155#ifdef __GNUC__
5156# define alloca __builtin_alloca
5157#else
5158# ifdef _MSC_VER
5159#  include <malloc.h>
5160#  define alloca _alloca
5161# else
5162#  ifdef HAVE_ALLOCA_H
5163#   include <alloca.h>
5164#  else
5165#   ifdef _AIX
5166 #pragma alloca
5167#   else
5168#    ifndef alloca /* predefined by HP cc +Olibcalls */
5169char *alloca ();
5170#    endif
5171#   endif
5172#  endif
5173# endif
5174#endif
5175
5176int
5177main ()
5178{
5179char *p = (char *) alloca (1);
5180				    if (p) return 0;
5181  ;
5182  return 0;
5183}
5184_ACEOF
5185rm -f conftest.$ac_objext conftest$ac_exeext
5186if { (ac_try="$ac_link"
5187case "(($ac_try" in
5188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189  *) ac_try_echo=$ac_try;;
5190esac
5191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192  (eval "$ac_link") 2>conftest.er1
5193  ac_status=$?
5194  grep -v '^ *+' conftest.er1 >conftest.err
5195  rm -f conftest.er1
5196  cat conftest.err >&5
5197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198  (exit $ac_status); } && {
5199	 test -z "$ac_c_werror_flag" ||
5200	 test ! -s conftest.err
5201       } && test -s conftest$ac_exeext &&
5202       $as_test_x conftest$ac_exeext; then
5203  ac_cv_func_alloca_works=yes
5204else
5205  echo "$as_me: failed program was:" >&5
5206sed 's/^/| /' conftest.$ac_ext >&5
5207
5208	ac_cv_func_alloca_works=no
5209fi
5210
5211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5212      conftest$ac_exeext conftest.$ac_ext
5213fi
5214{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5215echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5216
5217if test $ac_cv_func_alloca_works = yes; then
5218
5219cat >>confdefs.h <<\_ACEOF
5220#define HAVE_ALLOCA 1
5221_ACEOF
5222
5223else
5224  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5225# that cause trouble.  Some versions do not even contain alloca or
5226# contain a buggy version.  If you still want to use their alloca,
5227# use ar to extract alloca.o from them instead of compiling alloca.c.
5228
5229ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5230
5231cat >>confdefs.h <<\_ACEOF
5232#define C_ALLOCA 1
5233_ACEOF
5234
5235
5236{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5237echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5238if test "${ac_cv_os_cray+set}" = set; then
5239  echo $ECHO_N "(cached) $ECHO_C" >&6
5240else
5241  cat >conftest.$ac_ext <<_ACEOF
5242/* confdefs.h.  */
5243_ACEOF
5244cat confdefs.h >>conftest.$ac_ext
5245cat >>conftest.$ac_ext <<_ACEOF
5246/* end confdefs.h.  */
5247#if defined CRAY && ! defined CRAY2
5248webecray
5249#else
5250wenotbecray
5251#endif
5252
5253_ACEOF
5254if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5255  $EGREP "webecray" >/dev/null 2>&1; then
5256  ac_cv_os_cray=yes
5257else
5258  ac_cv_os_cray=no
5259fi
5260rm -f conftest*
5261
5262fi
5263{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5264echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5265if test $ac_cv_os_cray = yes; then
5266  for ac_func in _getb67 GETB67 getb67; do
5267    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5268{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5269echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5270if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5271  echo $ECHO_N "(cached) $ECHO_C" >&6
5272else
5273  cat >conftest.$ac_ext <<_ACEOF
5274/* confdefs.h.  */
5275_ACEOF
5276cat confdefs.h >>conftest.$ac_ext
5277cat >>conftest.$ac_ext <<_ACEOF
5278/* end confdefs.h.  */
5279/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5280   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5281#define $ac_func innocuous_$ac_func
5282
5283/* System header to define __stub macros and hopefully few prototypes,
5284    which can conflict with char $ac_func (); below.
5285    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5286    <limits.h> exists even on freestanding compilers.  */
5287
5288#ifdef __STDC__
5289# include <limits.h>
5290#else
5291# include <assert.h>
5292#endif
5293
5294#undef $ac_func
5295
5296/* Override any GCC internal prototype to avoid an error.
5297   Use char because int might match the return type of a GCC
5298   builtin and then its argument prototype would still apply.  */
5299#ifdef __cplusplus
5300extern "C"
5301#endif
5302char $ac_func ();
5303/* The GNU C library defines this for functions which it implements
5304    to always fail with ENOSYS.  Some functions are actually named
5305    something starting with __ and the normal name is an alias.  */
5306#if defined __stub_$ac_func || defined __stub___$ac_func
5307choke me
5308#endif
5309
5310int
5311main ()
5312{
5313return $ac_func ();
5314  ;
5315  return 0;
5316}
5317_ACEOF
5318rm -f conftest.$ac_objext conftest$ac_exeext
5319if { (ac_try="$ac_link"
5320case "(($ac_try" in
5321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322  *) ac_try_echo=$ac_try;;
5323esac
5324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325  (eval "$ac_link") 2>conftest.er1
5326  ac_status=$?
5327  grep -v '^ *+' conftest.er1 >conftest.err
5328  rm -f conftest.er1
5329  cat conftest.err >&5
5330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331  (exit $ac_status); } && {
5332	 test -z "$ac_c_werror_flag" ||
5333	 test ! -s conftest.err
5334       } && test -s conftest$ac_exeext &&
5335       $as_test_x conftest$ac_exeext; then
5336  eval "$as_ac_var=yes"
5337else
5338  echo "$as_me: failed program was:" >&5
5339sed 's/^/| /' conftest.$ac_ext >&5
5340
5341	eval "$as_ac_var=no"
5342fi
5343
5344rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5345      conftest$ac_exeext conftest.$ac_ext
5346fi
5347ac_res=`eval echo '${'$as_ac_var'}'`
5348	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5349echo "${ECHO_T}$ac_res" >&6; }
5350if test `eval echo '${'$as_ac_var'}'` = yes; then
5351
5352cat >>confdefs.h <<_ACEOF
5353#define CRAY_STACKSEG_END $ac_func
5354_ACEOF
5355
5356    break
5357fi
5358
5359  done
5360fi
5361
5362{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5363echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
5364if test "${ac_cv_c_stack_direction+set}" = set; then
5365  echo $ECHO_N "(cached) $ECHO_C" >&6
5366else
5367  if test "$cross_compiling" = yes; then
5368  ac_cv_c_stack_direction=0
5369else
5370  cat >conftest.$ac_ext <<_ACEOF
5371/* confdefs.h.  */
5372_ACEOF
5373cat confdefs.h >>conftest.$ac_ext
5374cat >>conftest.$ac_ext <<_ACEOF
5375/* end confdefs.h.  */
5376$ac_includes_default
5377int
5378find_stack_direction ()
5379{
5380  static char *addr = 0;
5381  auto char dummy;
5382  if (addr == 0)
5383    {
5384      addr = &dummy;
5385      return find_stack_direction ();
5386    }
5387  else
5388    return (&dummy > addr) ? 1 : -1;
5389}
5390
5391int
5392main ()
5393{
5394  return find_stack_direction () < 0;
5395}
5396_ACEOF
5397rm -f conftest$ac_exeext
5398if { (ac_try="$ac_link"
5399case "(($ac_try" in
5400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401  *) ac_try_echo=$ac_try;;
5402esac
5403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404  (eval "$ac_link") 2>&5
5405  ac_status=$?
5406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5408  { (case "(($ac_try" in
5409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410  *) ac_try_echo=$ac_try;;
5411esac
5412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5413  (eval "$ac_try") 2>&5
5414  ac_status=$?
5415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416  (exit $ac_status); }; }; then
5417  ac_cv_c_stack_direction=1
5418else
5419  echo "$as_me: program exited with status $ac_status" >&5
5420echo "$as_me: failed program was:" >&5
5421sed 's/^/| /' conftest.$ac_ext >&5
5422
5423( exit $ac_status )
5424ac_cv_c_stack_direction=-1
5425fi
5426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5427fi
5428
5429
5430fi
5431{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5432echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
5433
5434cat >>confdefs.h <<_ACEOF
5435#define STACK_DIRECTION $ac_cv_c_stack_direction
5436_ACEOF
5437
5438
5439fi
5440
5441
5442
5443for ac_header in stdlib.h unistd.h
5444do
5445as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5447  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5449if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5450  echo $ECHO_N "(cached) $ECHO_C" >&6
5451fi
5452ac_res=`eval echo '${'$as_ac_Header'}'`
5453	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5454echo "${ECHO_T}$ac_res" >&6; }
5455else
5456  # Is the header compilable?
5457{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5458echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5459cat >conftest.$ac_ext <<_ACEOF
5460/* confdefs.h.  */
5461_ACEOF
5462cat confdefs.h >>conftest.$ac_ext
5463cat >>conftest.$ac_ext <<_ACEOF
5464/* end confdefs.h.  */
5465$ac_includes_default
5466#include <$ac_header>
5467_ACEOF
5468rm -f conftest.$ac_objext
5469if { (ac_try="$ac_compile"
5470case "(($ac_try" in
5471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472  *) ac_try_echo=$ac_try;;
5473esac
5474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475  (eval "$ac_compile") 2>conftest.er1
5476  ac_status=$?
5477  grep -v '^ *+' conftest.er1 >conftest.err
5478  rm -f conftest.er1
5479  cat conftest.err >&5
5480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481  (exit $ac_status); } && {
5482	 test -z "$ac_c_werror_flag" ||
5483	 test ! -s conftest.err
5484       } && test -s conftest.$ac_objext; then
5485  ac_header_compiler=yes
5486else
5487  echo "$as_me: failed program was:" >&5
5488sed 's/^/| /' conftest.$ac_ext >&5
5489
5490	ac_header_compiler=no
5491fi
5492
5493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5495echo "${ECHO_T}$ac_header_compiler" >&6; }
5496
5497# Is the header present?
5498{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5499echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5500cat >conftest.$ac_ext <<_ACEOF
5501/* confdefs.h.  */
5502_ACEOF
5503cat confdefs.h >>conftest.$ac_ext
5504cat >>conftest.$ac_ext <<_ACEOF
5505/* end confdefs.h.  */
5506#include <$ac_header>
5507_ACEOF
5508if { (ac_try="$ac_cpp conftest.$ac_ext"
5509case "(($ac_try" in
5510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511  *) ac_try_echo=$ac_try;;
5512esac
5513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5514  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5515  ac_status=$?
5516  grep -v '^ *+' conftest.er1 >conftest.err
5517  rm -f conftest.er1
5518  cat conftest.err >&5
5519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520  (exit $ac_status); } >/dev/null && {
5521	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5522	 test ! -s conftest.err
5523       }; then
5524  ac_header_preproc=yes
5525else
5526  echo "$as_me: failed program was:" >&5
5527sed 's/^/| /' conftest.$ac_ext >&5
5528
5529  ac_header_preproc=no
5530fi
5531
5532rm -f conftest.err conftest.$ac_ext
5533{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5534echo "${ECHO_T}$ac_header_preproc" >&6; }
5535
5536# So?  What about this header?
5537case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5538  yes:no: )
5539    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5540echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5541    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5542echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5543    ac_header_preproc=yes
5544    ;;
5545  no:yes:* )
5546    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5547echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5548    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5549echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5550    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5551echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5552    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5553echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5554    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5555echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5556    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5557echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5558    ( cat <<\_ASBOX
5559## ------------------------------------ ##
5560## Report this to starplot@starplot.org ##
5561## ------------------------------------ ##
5562_ASBOX
5563     ) | sed "s/^/$as_me: WARNING:     /" >&2
5564    ;;
5565esac
5566{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5569  echo $ECHO_N "(cached) $ECHO_C" >&6
5570else
5571  eval "$as_ac_Header=\$ac_header_preproc"
5572fi
5573ac_res=`eval echo '${'$as_ac_Header'}'`
5574	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5575echo "${ECHO_T}$ac_res" >&6; }
5576
5577fi
5578if test `eval echo '${'$as_ac_Header'}'` = yes; then
5579  cat >>confdefs.h <<_ACEOF
5580#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5581_ACEOF
5582
5583fi
5584
5585done
5586
5587
5588for ac_func in getpagesize
5589do
5590as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5591{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5592echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5593if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5594  echo $ECHO_N "(cached) $ECHO_C" >&6
5595else
5596  cat >conftest.$ac_ext <<_ACEOF
5597/* confdefs.h.  */
5598_ACEOF
5599cat confdefs.h >>conftest.$ac_ext
5600cat >>conftest.$ac_ext <<_ACEOF
5601/* end confdefs.h.  */
5602/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5603   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5604#define $ac_func innocuous_$ac_func
5605
5606/* System header to define __stub macros and hopefully few prototypes,
5607    which can conflict with char $ac_func (); below.
5608    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5609    <limits.h> exists even on freestanding compilers.  */
5610
5611#ifdef __STDC__
5612# include <limits.h>
5613#else
5614# include <assert.h>
5615#endif
5616
5617#undef $ac_func
5618
5619/* Override any GCC internal prototype to avoid an error.
5620   Use char because int might match the return type of a GCC
5621   builtin and then its argument prototype would still apply.  */
5622#ifdef __cplusplus
5623extern "C"
5624#endif
5625char $ac_func ();
5626/* The GNU C library defines this for functions which it implements
5627    to always fail with ENOSYS.  Some functions are actually named
5628    something starting with __ and the normal name is an alias.  */
5629#if defined __stub_$ac_func || defined __stub___$ac_func
5630choke me
5631#endif
5632
5633int
5634main ()
5635{
5636return $ac_func ();
5637  ;
5638  return 0;
5639}
5640_ACEOF
5641rm -f conftest.$ac_objext conftest$ac_exeext
5642if { (ac_try="$ac_link"
5643case "(($ac_try" in
5644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645  *) ac_try_echo=$ac_try;;
5646esac
5647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5648  (eval "$ac_link") 2>conftest.er1
5649  ac_status=$?
5650  grep -v '^ *+' conftest.er1 >conftest.err
5651  rm -f conftest.er1
5652  cat conftest.err >&5
5653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654  (exit $ac_status); } && {
5655	 test -z "$ac_c_werror_flag" ||
5656	 test ! -s conftest.err
5657       } && test -s conftest$ac_exeext &&
5658       $as_test_x conftest$ac_exeext; then
5659  eval "$as_ac_var=yes"
5660else
5661  echo "$as_me: failed program was:" >&5
5662sed 's/^/| /' conftest.$ac_ext >&5
5663
5664	eval "$as_ac_var=no"
5665fi
5666
5667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5668      conftest$ac_exeext conftest.$ac_ext
5669fi
5670ac_res=`eval echo '${'$as_ac_var'}'`
5671	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5672echo "${ECHO_T}$ac_res" >&6; }
5673if test `eval echo '${'$as_ac_var'}'` = yes; then
5674  cat >>confdefs.h <<_ACEOF
5675#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5676_ACEOF
5677
5678fi
5679done
5680
5681{ echo "$as_me:$LINENO: checking for working mmap" >&5
5682echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
5683if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5684  echo $ECHO_N "(cached) $ECHO_C" >&6
5685else
5686  if test "$cross_compiling" = yes; then
5687  ac_cv_func_mmap_fixed_mapped=no
5688else
5689  cat >conftest.$ac_ext <<_ACEOF
5690/* confdefs.h.  */
5691_ACEOF
5692cat confdefs.h >>conftest.$ac_ext
5693cat >>conftest.$ac_ext <<_ACEOF
5694/* end confdefs.h.  */
5695$ac_includes_default
5696/* malloc might have been renamed as rpl_malloc. */
5697#undef malloc
5698
5699/* Thanks to Mike Haertel and Jim Avera for this test.
5700   Here is a matrix of mmap possibilities:
5701	mmap private not fixed
5702	mmap private fixed at somewhere currently unmapped
5703	mmap private fixed at somewhere already mapped
5704	mmap shared not fixed
5705	mmap shared fixed at somewhere currently unmapped
5706	mmap shared fixed at somewhere already mapped
5707   For private mappings, we should verify that changes cannot be read()
5708   back from the file, nor mmap's back from the file at a different
5709   address.  (There have been systems where private was not correctly
5710   implemented like the infamous i386 svr4.0, and systems where the
5711   VM page cache was not coherent with the file system buffer cache
5712   like early versions of FreeBSD and possibly contemporary NetBSD.)
5713   For shared mappings, we should conversely verify that changes get
5714   propagated back to all the places they're supposed to be.
5715
5716   Grep wants private fixed already mapped.
5717   The main things grep needs to know about mmap are:
5718   * does it exist and is it safe to write into the mmap'd area
5719   * how to use it (BSD variants)  */
5720
5721#include <fcntl.h>
5722#include <sys/mman.h>
5723
5724#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5725char *malloc ();
5726#endif
5727
5728/* This mess was copied from the GNU getpagesize.h.  */
5729#ifndef HAVE_GETPAGESIZE
5730/* Assume that all systems that can run configure have sys/param.h.  */
5731# ifndef HAVE_SYS_PARAM_H
5732#  define HAVE_SYS_PARAM_H 1
5733# endif
5734
5735# ifdef _SC_PAGESIZE
5736#  define getpagesize() sysconf(_SC_PAGESIZE)
5737# else /* no _SC_PAGESIZE */
5738#  ifdef HAVE_SYS_PARAM_H
5739#   include <sys/param.h>
5740#   ifdef EXEC_PAGESIZE
5741#    define getpagesize() EXEC_PAGESIZE
5742#   else /* no EXEC_PAGESIZE */
5743#    ifdef NBPG
5744#     define getpagesize() NBPG * CLSIZE
5745#     ifndef CLSIZE
5746#      define CLSIZE 1
5747#     endif /* no CLSIZE */
5748#    else /* no NBPG */
5749#     ifdef NBPC
5750#      define getpagesize() NBPC
5751#     else /* no NBPC */
5752#      ifdef PAGESIZE
5753#       define getpagesize() PAGESIZE
5754#      endif /* PAGESIZE */
5755#     endif /* no NBPC */
5756#    endif /* no NBPG */
5757#   endif /* no EXEC_PAGESIZE */
5758#  else /* no HAVE_SYS_PARAM_H */
5759#   define getpagesize() 8192	/* punt totally */
5760#  endif /* no HAVE_SYS_PARAM_H */
5761# endif /* no _SC_PAGESIZE */
5762
5763#endif /* no HAVE_GETPAGESIZE */
5764
5765int
5766main ()
5767{
5768  char *data, *data2, *data3;
5769  int i, pagesize;
5770  int fd;
5771
5772  pagesize = getpagesize ();
5773
5774  /* First, make a file with some known garbage in it. */
5775  data = (char *) malloc (pagesize);
5776  if (!data)
5777    return 1;
5778  for (i = 0; i < pagesize; ++i)
5779    *(data + i) = rand ();
5780  umask (0);
5781  fd = creat ("conftest.mmap", 0600);
5782  if (fd < 0)
5783    return 1;
5784  if (write (fd, data, pagesize) != pagesize)
5785    return 1;
5786  close (fd);
5787
5788  /* Next, try to mmap the file at a fixed address which already has
5789     something else allocated at it.  If we can, also make sure that
5790     we see the same garbage.  */
5791  fd = open ("conftest.mmap", O_RDWR);
5792  if (fd < 0)
5793    return 1;
5794  data2 = (char *) malloc (2 * pagesize);
5795  if (!data2)
5796    return 1;
5797  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
5798  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5799		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
5800    return 1;
5801  for (i = 0; i < pagesize; ++i)
5802    if (*(data + i) != *(data2 + i))
5803      return 1;
5804
5805  /* Finally, make sure that changes to the mapped area do not
5806     percolate back to the file as seen by read().  (This is a bug on
5807     some variants of i386 svr4.0.)  */
5808  for (i = 0; i < pagesize; ++i)
5809    *(data2 + i) = *(data2 + i) + 1;
5810  data3 = (char *) malloc (pagesize);
5811  if (!data3)
5812    return 1;
5813  if (read (fd, data3, pagesize) != pagesize)
5814    return 1;
5815  for (i = 0; i < pagesize; ++i)
5816    if (*(data + i) != *(data3 + i))
5817      return 1;
5818  close (fd);
5819  return 0;
5820}
5821_ACEOF
5822rm -f conftest$ac_exeext
5823if { (ac_try="$ac_link"
5824case "(($ac_try" in
5825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826  *) ac_try_echo=$ac_try;;
5827esac
5828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829  (eval "$ac_link") 2>&5
5830  ac_status=$?
5831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5833  { (case "(($ac_try" in
5834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835  *) ac_try_echo=$ac_try;;
5836esac
5837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838  (eval "$ac_try") 2>&5
5839  ac_status=$?
5840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841  (exit $ac_status); }; }; then
5842  ac_cv_func_mmap_fixed_mapped=yes
5843else
5844  echo "$as_me: program exited with status $ac_status" >&5
5845echo "$as_me: failed program was:" >&5
5846sed 's/^/| /' conftest.$ac_ext >&5
5847
5848( exit $ac_status )
5849ac_cv_func_mmap_fixed_mapped=no
5850fi
5851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5852fi
5853
5854
5855fi
5856{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5857echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
5858if test $ac_cv_func_mmap_fixed_mapped = yes; then
5859
5860cat >>confdefs.h <<\_ACEOF
5861#define HAVE_MMAP 1
5862_ACEOF
5863
5864fi
5865rm -f conftest.mmap
5866
5867
5868
5869  { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5870echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
5871if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5872  echo $ECHO_N "(cached) $ECHO_C" >&6
5873else
5874
5875      if test "$cross_compiling" = yes; then
5876
5877          # Guess based on the CPU.
5878          case "$host_cpu" in
5879            alpha* | i3456786 | m68k | s390*)
5880              gt_cv_int_divbyzero_sigfpe="guessing yes";;
5881            *)
5882              gt_cv_int_divbyzero_sigfpe="guessing no";;
5883          esac
5884
5885else
5886  cat >conftest.$ac_ext <<_ACEOF
5887/* confdefs.h.  */
5888_ACEOF
5889cat confdefs.h >>conftest.$ac_ext
5890cat >>conftest.$ac_ext <<_ACEOF
5891/* end confdefs.h.  */
5892
5893#include <stdlib.h>
5894#include <signal.h>
5895
5896static void
5897#ifdef __cplusplus
5898sigfpe_handler (int sig)
5899#else
5900sigfpe_handler (sig) int sig;
5901#endif
5902{
5903  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
5904  exit (sig != SIGFPE);
5905}
5906
5907int x = 1;
5908int y = 0;
5909int z;
5910int nan;
5911
5912int main ()
5913{
5914  signal (SIGFPE, sigfpe_handler);
5915/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
5916#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5917  signal (SIGTRAP, sigfpe_handler);
5918#endif
5919/* Linux/SPARC yields signal SIGILL.  */
5920#if defined (__sparc__) && defined (__linux__)
5921  signal (SIGILL, sigfpe_handler);
5922#endif
5923
5924  z = x / y;
5925  nan = y / y;
5926  exit (1);
5927}
5928
5929_ACEOF
5930rm -f conftest$ac_exeext
5931if { (ac_try="$ac_link"
5932case "(($ac_try" in
5933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934  *) ac_try_echo=$ac_try;;
5935esac
5936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937  (eval "$ac_link") 2>&5
5938  ac_status=$?
5939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5941  { (case "(($ac_try" in
5942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943  *) ac_try_echo=$ac_try;;
5944esac
5945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946  (eval "$ac_try") 2>&5
5947  ac_status=$?
5948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949  (exit $ac_status); }; }; then
5950  gt_cv_int_divbyzero_sigfpe=yes
5951else
5952  echo "$as_me: program exited with status $ac_status" >&5
5953echo "$as_me: failed program was:" >&5
5954sed 's/^/| /' conftest.$ac_ext >&5
5955
5956( exit $ac_status )
5957gt_cv_int_divbyzero_sigfpe=no
5958fi
5959rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5960fi
5961
5962
5963
5964fi
5965{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5966echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
5967  case "$gt_cv_int_divbyzero_sigfpe" in
5968    *yes) value=1;;
5969    *) value=0;;
5970  esac
5971
5972cat >>confdefs.h <<_ACEOF
5973#define INTDIV0_RAISES_SIGFPE $value
5974_ACEOF
5975
5976
5977
5978  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5979echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5980if test "${gl_cv_header_inttypes_h+set}" = set; then
5981  echo $ECHO_N "(cached) $ECHO_C" >&6
5982else
5983  cat >conftest.$ac_ext <<_ACEOF
5984/* confdefs.h.  */
5985_ACEOF
5986cat confdefs.h >>conftest.$ac_ext
5987cat >>conftest.$ac_ext <<_ACEOF
5988/* end confdefs.h.  */
5989#include <sys/types.h>
5990#include <inttypes.h>
5991int
5992main ()
5993{
5994uintmax_t i = (uintmax_t) -1; return !i;
5995  ;
5996  return 0;
5997}
5998_ACEOF
5999rm -f conftest.$ac_objext
6000if { (ac_try="$ac_compile"
6001case "(($ac_try" in
6002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003  *) ac_try_echo=$ac_try;;
6004esac
6005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006  (eval "$ac_compile") 2>conftest.er1
6007  ac_status=$?
6008  grep -v '^ *+' conftest.er1 >conftest.err
6009  rm -f conftest.er1
6010  cat conftest.err >&5
6011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012  (exit $ac_status); } && {
6013	 test -z "$ac_c_werror_flag" ||
6014	 test ! -s conftest.err
6015       } && test -s conftest.$ac_objext; then
6016  gl_cv_header_inttypes_h=yes
6017else
6018  echo "$as_me: failed program was:" >&5
6019sed 's/^/| /' conftest.$ac_ext >&5
6020
6021	gl_cv_header_inttypes_h=no
6022fi
6023
6024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025fi
6026{ echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
6027echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
6028  if test $gl_cv_header_inttypes_h = yes; then
6029
6030cat >>confdefs.h <<_ACEOF
6031#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6032_ACEOF
6033
6034  fi
6035
6036
6037  { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
6038echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
6039if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
6040  echo $ECHO_N "(cached) $ECHO_C" >&6
6041else
6042  cat >conftest.$ac_ext <<_ACEOF
6043/* confdefs.h.  */
6044_ACEOF
6045cat confdefs.h >>conftest.$ac_ext
6046cat >>conftest.$ac_ext <<_ACEOF
6047/* end confdefs.h.  */
6048unsigned long long int ull = 18446744073709551615ULL;
6049	    typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
6050			   ? 1 : -1)];
6051	   int i = 63;
6052int
6053main ()
6054{
6055unsigned long long int ullmax = 18446744073709551615ull;
6056	    return (ull << 63 | ull >> 63 | ull << i | ull >> i
6057		    | ullmax / ull | ullmax % ull);
6058  ;
6059  return 0;
6060}
6061_ACEOF
6062rm -f conftest.$ac_objext conftest$ac_exeext
6063if { (ac_try="$ac_link"
6064case "(($ac_try" in
6065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066  *) ac_try_echo=$ac_try;;
6067esac
6068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069  (eval "$ac_link") 2>conftest.er1
6070  ac_status=$?
6071  grep -v '^ *+' conftest.er1 >conftest.err
6072  rm -f conftest.er1
6073  cat conftest.err >&5
6074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075  (exit $ac_status); } && {
6076	 test -z "$ac_c_werror_flag" ||
6077	 test ! -s conftest.err
6078       } && test -s conftest$ac_exeext &&
6079       $as_test_x conftest$ac_exeext; then
6080  ac_cv_type_unsigned_long_long_int=yes
6081else
6082  echo "$as_me: failed program was:" >&5
6083sed 's/^/| /' conftest.$ac_ext >&5
6084
6085	ac_cv_type_unsigned_long_long_int=no
6086fi
6087
6088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6089      conftest$ac_exeext conftest.$ac_ext
6090fi
6091{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
6092echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
6093  if test $ac_cv_type_unsigned_long_long_int = yes; then
6094
6095cat >>confdefs.h <<\_ACEOF
6096#define HAVE_UNSIGNED_LONG_LONG_INT 1
6097_ACEOF
6098
6099  fi
6100
6101
6102
6103  ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
6104  if test $ac_cv_type_unsigned_long_long = yes; then
6105
6106cat >>confdefs.h <<\_ACEOF
6107#define HAVE_UNSIGNED_LONG_LONG 1
6108_ACEOF
6109
6110  fi
6111
6112
6113
6114
6115  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
6116
6117    test $ac_cv_type_unsigned_long_long = yes \
6118      && ac_type='unsigned long long' \
6119      || ac_type='unsigned long'
6120
6121cat >>confdefs.h <<_ACEOF
6122#define uintmax_t $ac_type
6123_ACEOF
6124
6125  else
6126
6127cat >>confdefs.h <<\_ACEOF
6128#define HAVE_UINTMAX_T 1
6129_ACEOF
6130
6131  fi
6132
6133
6134
6135for ac_header in inttypes.h
6136do
6137as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6139  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6141if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6142  echo $ECHO_N "(cached) $ECHO_C" >&6
6143fi
6144ac_res=`eval echo '${'$as_ac_Header'}'`
6145	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6146echo "${ECHO_T}$ac_res" >&6; }
6147else
6148  # Is the header compilable?
6149{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6150echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6151cat >conftest.$ac_ext <<_ACEOF
6152/* confdefs.h.  */
6153_ACEOF
6154cat confdefs.h >>conftest.$ac_ext
6155cat >>conftest.$ac_ext <<_ACEOF
6156/* end confdefs.h.  */
6157$ac_includes_default
6158#include <$ac_header>
6159_ACEOF
6160rm -f conftest.$ac_objext
6161if { (ac_try="$ac_compile"
6162case "(($ac_try" in
6163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164  *) ac_try_echo=$ac_try;;
6165esac
6166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167  (eval "$ac_compile") 2>conftest.er1
6168  ac_status=$?
6169  grep -v '^ *+' conftest.er1 >conftest.err
6170  rm -f conftest.er1
6171  cat conftest.err >&5
6172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173  (exit $ac_status); } && {
6174	 test -z "$ac_c_werror_flag" ||
6175	 test ! -s conftest.err
6176       } && test -s conftest.$ac_objext; then
6177  ac_header_compiler=yes
6178else
6179  echo "$as_me: failed program was:" >&5
6180sed 's/^/| /' conftest.$ac_ext >&5
6181
6182	ac_header_compiler=no
6183fi
6184
6185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6186{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6187echo "${ECHO_T}$ac_header_compiler" >&6; }
6188
6189# Is the header present?
6190{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6191echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6192cat >conftest.$ac_ext <<_ACEOF
6193/* confdefs.h.  */
6194_ACEOF
6195cat confdefs.h >>conftest.$ac_ext
6196cat >>conftest.$ac_ext <<_ACEOF
6197/* end confdefs.h.  */
6198#include <$ac_header>
6199_ACEOF
6200if { (ac_try="$ac_cpp conftest.$ac_ext"
6201case "(($ac_try" in
6202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203  *) ac_try_echo=$ac_try;;
6204esac
6205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6207  ac_status=$?
6208  grep -v '^ *+' conftest.er1 >conftest.err
6209  rm -f conftest.er1
6210  cat conftest.err >&5
6211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212  (exit $ac_status); } >/dev/null && {
6213	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6214	 test ! -s conftest.err
6215       }; then
6216  ac_header_preproc=yes
6217else
6218  echo "$as_me: failed program was:" >&5
6219sed 's/^/| /' conftest.$ac_ext >&5
6220
6221  ac_header_preproc=no
6222fi
6223
6224rm -f conftest.err conftest.$ac_ext
6225{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6226echo "${ECHO_T}$ac_header_preproc" >&6; }
6227
6228# So?  What about this header?
6229case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6230  yes:no: )
6231    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6232echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6233    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6234echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6235    ac_header_preproc=yes
6236    ;;
6237  no:yes:* )
6238    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6239echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6240    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6241echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6242    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6243echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6244    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6245echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6246    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6247echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6248    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6249echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6250    ( cat <<\_ASBOX
6251## ------------------------------------ ##
6252## Report this to starplot@starplot.org ##
6253## ------------------------------------ ##
6254_ASBOX
6255     ) | sed "s/^/$as_me: WARNING:     /" >&2
6256    ;;
6257esac
6258{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6261  echo $ECHO_N "(cached) $ECHO_C" >&6
6262else
6263  eval "$as_ac_Header=\$ac_header_preproc"
6264fi
6265ac_res=`eval echo '${'$as_ac_Header'}'`
6266	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6267echo "${ECHO_T}$ac_res" >&6; }
6268
6269fi
6270if test `eval echo '${'$as_ac_Header'}'` = yes; then
6271  cat >>confdefs.h <<_ACEOF
6272#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6273_ACEOF
6274
6275fi
6276
6277done
6278
6279  if test $ac_cv_header_inttypes_h = yes; then
6280    { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6281echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
6282if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6283  echo $ECHO_N "(cached) $ECHO_C" >&6
6284else
6285
6286        cat >conftest.$ac_ext <<_ACEOF
6287/* confdefs.h.  */
6288_ACEOF
6289cat confdefs.h >>conftest.$ac_ext
6290cat >>conftest.$ac_ext <<_ACEOF
6291/* end confdefs.h.  */
6292#include <inttypes.h>
6293#ifdef PRId32
6294char *p = PRId32;
6295#endif
6296
6297int
6298main ()
6299{
6300
6301  ;
6302  return 0;
6303}
6304_ACEOF
6305rm -f conftest.$ac_objext
6306if { (ac_try="$ac_compile"
6307case "(($ac_try" in
6308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309  *) ac_try_echo=$ac_try;;
6310esac
6311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312  (eval "$ac_compile") 2>conftest.er1
6313  ac_status=$?
6314  grep -v '^ *+' conftest.er1 >conftest.err
6315  rm -f conftest.er1
6316  cat conftest.err >&5
6317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318  (exit $ac_status); } && {
6319	 test -z "$ac_c_werror_flag" ||
6320	 test ! -s conftest.err
6321       } && test -s conftest.$ac_objext; then
6322  gt_cv_inttypes_pri_broken=no
6323else
6324  echo "$as_me: failed program was:" >&5
6325sed 's/^/| /' conftest.$ac_ext >&5
6326
6327	gt_cv_inttypes_pri_broken=yes
6328fi
6329
6330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331
6332fi
6333{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6334echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
6335  fi
6336  if test "$gt_cv_inttypes_pri_broken" = yes; then
6337
6338cat >>confdefs.h <<_ACEOF
6339#define PRI_MACROS_BROKEN 1
6340_ACEOF
6341
6342    PRI_MACROS_BROKEN=1
6343  else
6344    PRI_MACROS_BROKEN=0
6345  fi
6346
6347
6348
6349
6350
6351       # Check whether --enable-threads was given.
6352if test "${enable_threads+set}" = set; then
6353  enableval=$enable_threads; gl_use_threads=$enableval
6354else
6355  case "$host_os" in
6356                            osf*) gl_use_threads=no ;;
6357       *)    gl_use_threads=yes ;;
6358     esac
6359
6360fi
6361
6362  if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6363    # For using <pthread.h>:
6364    case "$host_os" in
6365      osf*)
6366        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6367        # groks <pthread.h>. cc also understands the flag -pthread, but
6368        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6369        # 2. putting a flag into CPPFLAGS that has an effect on the linker
6370        # causes the AC_TRY_LINK test below to succeed unexpectedly,
6371        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6372        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6373        ;;
6374    esac
6375    # Some systems optimize for single-threaded programs by default, and
6376    # need special flags to disable these optimizations. For example, the
6377    # definition of 'errno' in <errno.h>.
6378    case "$host_os" in
6379      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6380      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6381    esac
6382  fi
6383
6384
6385
6386
6387
6388      if test "X$prefix" = "XNONE"; then
6389    acl_final_prefix="$ac_default_prefix"
6390  else
6391    acl_final_prefix="$prefix"
6392  fi
6393  if test "X$exec_prefix" = "XNONE"; then
6394    acl_final_exec_prefix='${prefix}'
6395  else
6396    acl_final_exec_prefix="$exec_prefix"
6397  fi
6398  acl_save_prefix="$prefix"
6399  prefix="$acl_final_prefix"
6400  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6401  prefix="$acl_save_prefix"
6402
6403
6404# Check whether --with-gnu-ld was given.
6405if test "${with_gnu_ld+set}" = set; then
6406  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6407else
6408  with_gnu_ld=no
6409fi
6410
6411# Prepare PATH_SEPARATOR.
6412# The user is always right.
6413if test "${PATH_SEPARATOR+set}" != set; then
6414  echo "#! /bin/sh" >conf$$.sh
6415  echo  "exit 0"   >>conf$$.sh
6416  chmod +x conf$$.sh
6417  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6418    PATH_SEPARATOR=';'
6419  else
6420    PATH_SEPARATOR=:
6421  fi
6422  rm -f conf$$.sh
6423fi
6424ac_prog=ld
6425if test "$GCC" = yes; then
6426  # Check if gcc -print-prog-name=ld gives a path.
6427  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6428echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6429  case $host in
6430  *-*-mingw*)
6431    # gcc leaves a trailing carriage return which upsets mingw
6432    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6433  *)
6434    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6435  esac
6436  case $ac_prog in
6437    # Accept absolute paths.
6438    [\\/]* | [A-Za-z]:[\\/]*)
6439      re_direlt='/[^/][^/]*/\.\./'
6440      # Canonicalize the path of ld
6441      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6442      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6443	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6444      done
6445      test -z "$LD" && LD="$ac_prog"
6446      ;;
6447  "")
6448    # If it fails, then pretend we aren't using GCC.
6449    ac_prog=ld
6450    ;;
6451  *)
6452    # If it is relative, then search for the first ld in PATH.
6453    with_gnu_ld=unknown
6454    ;;
6455  esac
6456elif test "$with_gnu_ld" = yes; then
6457  { echo "$as_me:$LINENO: checking for GNU ld" >&5
6458echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6459else
6460  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6461echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6462fi
6463if test "${acl_cv_path_LD+set}" = set; then
6464  echo $ECHO_N "(cached) $ECHO_C" >&6
6465else
6466  if test -z "$LD"; then
6467  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6468  for ac_dir in $PATH; do
6469    test -z "$ac_dir" && ac_dir=.
6470    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6471      acl_cv_path_LD="$ac_dir/$ac_prog"
6472      # Check to see if the program is GNU ld.  I'd rather use --version,
6473      # but apparently some GNU ld's only accept -v.
6474      # Break only if it was the GNU/non-GNU ld that we prefer.
6475      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6476      *GNU* | *'with BFD'*)
6477	test "$with_gnu_ld" != no && break ;;
6478      *)
6479	test "$with_gnu_ld" != yes && break ;;
6480      esac
6481    fi
6482  done
6483  IFS="$ac_save_ifs"
6484else
6485  acl_cv_path_LD="$LD" # Let the user override the test with a path.
6486fi
6487fi
6488
6489LD="$acl_cv_path_LD"
6490if test -n "$LD"; then
6491  { echo "$as_me:$LINENO: result: $LD" >&5
6492echo "${ECHO_T}$LD" >&6; }
6493else
6494  { echo "$as_me:$LINENO: result: no" >&5
6495echo "${ECHO_T}no" >&6; }
6496fi
6497test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6498echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6499   { (exit 1); exit 1; }; }
6500{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6501echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6502if test "${acl_cv_prog_gnu_ld+set}" = set; then
6503  echo $ECHO_N "(cached) $ECHO_C" >&6
6504else
6505  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6506case `$LD -v 2>&1 </dev/null` in
6507*GNU* | *'with BFD'*)
6508  acl_cv_prog_gnu_ld=yes ;;
6509*)
6510  acl_cv_prog_gnu_ld=no ;;
6511esac
6512fi
6513{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6514echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6515with_gnu_ld=$acl_cv_prog_gnu_ld
6516
6517
6518
6519
6520                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6521echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6522if test "${acl_cv_rpath+set}" = set; then
6523  echo $ECHO_N "(cached) $ECHO_C" >&6
6524else
6525
6526    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6527    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6528    . ./conftest.sh
6529    rm -f ./conftest.sh
6530    acl_cv_rpath=done
6531
6532fi
6533{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6534echo "${ECHO_T}$acl_cv_rpath" >&6; }
6535  wl="$acl_cv_wl"
6536  libext="$acl_cv_libext"
6537  shlibext="$acl_cv_shlibext"
6538  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6539  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6540  hardcode_direct="$acl_cv_hardcode_direct"
6541  hardcode_minus_L="$acl_cv_hardcode_minus_L"
6542    # Check whether --enable-rpath was given.
6543if test "${enable_rpath+set}" = set; then
6544  enableval=$enable_rpath; :
6545else
6546  enable_rpath=yes
6547fi
6548
6549
6550
6551                  acl_libdirstem=lib
6552  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6553  if test -n "$searchpath"; then
6554    acl_save_IFS="${IFS= 	}"; IFS=":"
6555    for searchdir in $searchpath; do
6556      if test -d "$searchdir"; then
6557        case "$searchdir" in
6558          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6559          *) searchdir=`cd "$searchdir" && pwd`
6560             case "$searchdir" in
6561               */lib64 ) acl_libdirstem=lib64 ;;
6562             esac ;;
6563        esac
6564      fi
6565    done
6566    IFS="$acl_save_IFS"
6567  fi
6568
6569
6570
6571  gl_threads_api=none
6572  LIBTHREAD=
6573  LTLIBTHREAD=
6574  LIBMULTITHREAD=
6575  LTLIBMULTITHREAD=
6576  if test "$gl_use_threads" != no; then
6577        { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
6578echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
6579    gl_have_weak=no
6580    cat >conftest.$ac_ext <<_ACEOF
6581/* confdefs.h.  */
6582_ACEOF
6583cat confdefs.h >>conftest.$ac_ext
6584cat >>conftest.$ac_ext <<_ACEOF
6585/* end confdefs.h.  */
6586extern void xyzzy ();
6587#pragma weak xyzzy
6588int
6589main ()
6590{
6591xyzzy();
6592  ;
6593  return 0;
6594}
6595_ACEOF
6596rm -f conftest.$ac_objext conftest$ac_exeext
6597if { (ac_try="$ac_link"
6598case "(($ac_try" in
6599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600  *) ac_try_echo=$ac_try;;
6601esac
6602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603  (eval "$ac_link") 2>conftest.er1
6604  ac_status=$?
6605  grep -v '^ *+' conftest.er1 >conftest.err
6606  rm -f conftest.er1
6607  cat conftest.err >&5
6608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609  (exit $ac_status); } && {
6610	 test -z "$ac_c_werror_flag" ||
6611	 test ! -s conftest.err
6612       } && test -s conftest$ac_exeext &&
6613       $as_test_x conftest$ac_exeext; then
6614  gl_have_weak=yes
6615else
6616  echo "$as_me: failed program was:" >&5
6617sed 's/^/| /' conftest.$ac_ext >&5
6618
6619
6620fi
6621
6622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6623      conftest$ac_exeext conftest.$ac_ext
6624    { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
6625echo "${ECHO_T}$gl_have_weak" >&6; }
6626    if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6627      # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
6628      # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
6629      if test "${ac_cv_header_pthread_h+set}" = set; then
6630  { echo "$as_me:$LINENO: checking for pthread.h" >&5
6631echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
6632if test "${ac_cv_header_pthread_h+set}" = set; then
6633  echo $ECHO_N "(cached) $ECHO_C" >&6
6634fi
6635{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6636echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
6637else
6638  # Is the header compilable?
6639{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
6640echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
6641cat >conftest.$ac_ext <<_ACEOF
6642/* confdefs.h.  */
6643_ACEOF
6644cat confdefs.h >>conftest.$ac_ext
6645cat >>conftest.$ac_ext <<_ACEOF
6646/* end confdefs.h.  */
6647$ac_includes_default
6648#include <pthread.h>
6649_ACEOF
6650rm -f conftest.$ac_objext
6651if { (ac_try="$ac_compile"
6652case "(($ac_try" in
6653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6654  *) ac_try_echo=$ac_try;;
6655esac
6656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6657  (eval "$ac_compile") 2>conftest.er1
6658  ac_status=$?
6659  grep -v '^ *+' conftest.er1 >conftest.err
6660  rm -f conftest.er1
6661  cat conftest.err >&5
6662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663  (exit $ac_status); } && {
6664	 test -z "$ac_c_werror_flag" ||
6665	 test ! -s conftest.err
6666       } && test -s conftest.$ac_objext; then
6667  ac_header_compiler=yes
6668else
6669  echo "$as_me: failed program was:" >&5
6670sed 's/^/| /' conftest.$ac_ext >&5
6671
6672	ac_header_compiler=no
6673fi
6674
6675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6677echo "${ECHO_T}$ac_header_compiler" >&6; }
6678
6679# Is the header present?
6680{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
6681echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
6682cat >conftest.$ac_ext <<_ACEOF
6683/* confdefs.h.  */
6684_ACEOF
6685cat confdefs.h >>conftest.$ac_ext
6686cat >>conftest.$ac_ext <<_ACEOF
6687/* end confdefs.h.  */
6688#include <pthread.h>
6689_ACEOF
6690if { (ac_try="$ac_cpp conftest.$ac_ext"
6691case "(($ac_try" in
6692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6693  *) ac_try_echo=$ac_try;;
6694esac
6695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6696  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6697  ac_status=$?
6698  grep -v '^ *+' conftest.er1 >conftest.err
6699  rm -f conftest.er1
6700  cat conftest.err >&5
6701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702  (exit $ac_status); } >/dev/null && {
6703	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6704	 test ! -s conftest.err
6705       }; then
6706  ac_header_preproc=yes
6707else
6708  echo "$as_me: failed program was:" >&5
6709sed 's/^/| /' conftest.$ac_ext >&5
6710
6711  ac_header_preproc=no
6712fi
6713
6714rm -f conftest.err conftest.$ac_ext
6715{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6716echo "${ECHO_T}$ac_header_preproc" >&6; }
6717
6718# So?  What about this header?
6719case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6720  yes:no: )
6721    { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
6722echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6723    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
6724echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
6725    ac_header_preproc=yes
6726    ;;
6727  no:yes:* )
6728    { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
6729echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
6730    { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
6731echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
6732    { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
6733echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
6734    { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
6735echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6736    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
6737echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
6738    { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
6739echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
6740    ( cat <<\_ASBOX
6741## ------------------------------------ ##
6742## Report this to starplot@starplot.org ##
6743## ------------------------------------ ##
6744_ASBOX
6745     ) | sed "s/^/$as_me: WARNING:     /" >&2
6746    ;;
6747esac
6748{ echo "$as_me:$LINENO: checking for pthread.h" >&5
6749echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
6750if test "${ac_cv_header_pthread_h+set}" = set; then
6751  echo $ECHO_N "(cached) $ECHO_C" >&6
6752else
6753  ac_cv_header_pthread_h=$ac_header_preproc
6754fi
6755{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6756echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
6757
6758fi
6759if test $ac_cv_header_pthread_h = yes; then
6760  gl_have_pthread_h=yes
6761else
6762  gl_have_pthread_h=no
6763fi
6764
6765
6766      if test "$gl_have_pthread_h" = yes; then
6767        # Other possible tests:
6768        #   -lpthreads (FSU threads, PCthreads)
6769        #   -lgthreads
6770        gl_have_pthread=
6771        # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
6772        # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
6773        # the second one only in libpthread, and lock.c needs it.
6774        cat >conftest.$ac_ext <<_ACEOF
6775/* confdefs.h.  */
6776_ACEOF
6777cat confdefs.h >>conftest.$ac_ext
6778cat >>conftest.$ac_ext <<_ACEOF
6779/* end confdefs.h.  */
6780#include <pthread.h>
6781int
6782main ()
6783{
6784pthread_mutex_lock((pthread_mutex_t*)0);
6785           pthread_mutexattr_init((pthread_mutexattr_t*)0);
6786  ;
6787  return 0;
6788}
6789_ACEOF
6790rm -f conftest.$ac_objext conftest$ac_exeext
6791if { (ac_try="$ac_link"
6792case "(($ac_try" in
6793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6794  *) ac_try_echo=$ac_try;;
6795esac
6796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6797  (eval "$ac_link") 2>conftest.er1
6798  ac_status=$?
6799  grep -v '^ *+' conftest.er1 >conftest.err
6800  rm -f conftest.er1
6801  cat conftest.err >&5
6802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803  (exit $ac_status); } && {
6804	 test -z "$ac_c_werror_flag" ||
6805	 test ! -s conftest.err
6806       } && test -s conftest$ac_exeext &&
6807       $as_test_x conftest$ac_exeext; then
6808  gl_have_pthread=yes
6809else
6810  echo "$as_me: failed program was:" >&5
6811sed 's/^/| /' conftest.$ac_ext >&5
6812
6813
6814fi
6815
6816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6817      conftest$ac_exeext conftest.$ac_ext
6818        # Test for libpthread by looking for pthread_kill. (Not pthread_self,
6819        # since it is defined as a macro on OSF/1.)
6820        if test -n "$gl_have_pthread"; then
6821          # The program links fine without libpthread. But it may actually
6822          # need to link with libpthread in order to create multiple threads.
6823          { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
6824echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
6825if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
6826  echo $ECHO_N "(cached) $ECHO_C" >&6
6827else
6828  ac_check_lib_save_LIBS=$LIBS
6829LIBS="-lpthread  $LIBS"
6830cat >conftest.$ac_ext <<_ACEOF
6831/* confdefs.h.  */
6832_ACEOF
6833cat confdefs.h >>conftest.$ac_ext
6834cat >>conftest.$ac_ext <<_ACEOF
6835/* end confdefs.h.  */
6836
6837/* Override any GCC internal prototype to avoid an error.
6838   Use char because int might match the return type of a GCC
6839   builtin and then its argument prototype would still apply.  */
6840#ifdef __cplusplus
6841extern "C"
6842#endif
6843char pthread_kill ();
6844int
6845main ()
6846{
6847return pthread_kill ();
6848  ;
6849  return 0;
6850}
6851_ACEOF
6852rm -f conftest.$ac_objext conftest$ac_exeext
6853if { (ac_try="$ac_link"
6854case "(($ac_try" in
6855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6856  *) ac_try_echo=$ac_try;;
6857esac
6858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6859  (eval "$ac_link") 2>conftest.er1
6860  ac_status=$?
6861  grep -v '^ *+' conftest.er1 >conftest.err
6862  rm -f conftest.er1
6863  cat conftest.err >&5
6864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865  (exit $ac_status); } && {
6866	 test -z "$ac_c_werror_flag" ||
6867	 test ! -s conftest.err
6868       } && test -s conftest$ac_exeext &&
6869       $as_test_x conftest$ac_exeext; then
6870  ac_cv_lib_pthread_pthread_kill=yes
6871else
6872  echo "$as_me: failed program was:" >&5
6873sed 's/^/| /' conftest.$ac_ext >&5
6874
6875	ac_cv_lib_pthread_pthread_kill=no
6876fi
6877
6878rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6879      conftest$ac_exeext conftest.$ac_ext
6880LIBS=$ac_check_lib_save_LIBS
6881fi
6882{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
6883echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
6884if test $ac_cv_lib_pthread_pthread_kill = yes; then
6885  LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6886             # On Solaris and HP-UX, most pthread functions exist also in libc.
6887             # Therefore pthread_in_use() needs to actually try to create a
6888             # thread: pthread_create from libc will fail, whereas
6889             # pthread_create will actually create a thread.
6890             case "$host_os" in
6891               solaris* | hpux*)
6892
6893cat >>confdefs.h <<\_ACEOF
6894#define PTHREAD_IN_USE_DETECTION_HARD 1
6895_ACEOF
6896
6897             esac
6898
6899fi
6900
6901        else
6902          # Some library is needed. Try libpthread and libc_r.
6903          { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
6904echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
6905if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
6906  echo $ECHO_N "(cached) $ECHO_C" >&6
6907else
6908  ac_check_lib_save_LIBS=$LIBS
6909LIBS="-lpthread  $LIBS"
6910cat >conftest.$ac_ext <<_ACEOF
6911/* confdefs.h.  */
6912_ACEOF
6913cat confdefs.h >>conftest.$ac_ext
6914cat >>conftest.$ac_ext <<_ACEOF
6915/* end confdefs.h.  */
6916
6917/* Override any GCC internal prototype to avoid an error.
6918   Use char because int might match the return type of a GCC
6919   builtin and then its argument prototype would still apply.  */
6920#ifdef __cplusplus
6921extern "C"
6922#endif
6923char pthread_kill ();
6924int
6925main ()
6926{
6927return pthread_kill ();
6928  ;
6929  return 0;
6930}
6931_ACEOF
6932rm -f conftest.$ac_objext conftest$ac_exeext
6933if { (ac_try="$ac_link"
6934case "(($ac_try" in
6935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6936  *) ac_try_echo=$ac_try;;
6937esac
6938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6939  (eval "$ac_link") 2>conftest.er1
6940  ac_status=$?
6941  grep -v '^ *+' conftest.er1 >conftest.err
6942  rm -f conftest.er1
6943  cat conftest.err >&5
6944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945  (exit $ac_status); } && {
6946	 test -z "$ac_c_werror_flag" ||
6947	 test ! -s conftest.err
6948       } && test -s conftest$ac_exeext &&
6949       $as_test_x conftest$ac_exeext; then
6950  ac_cv_lib_pthread_pthread_kill=yes
6951else
6952  echo "$as_me: failed program was:" >&5
6953sed 's/^/| /' conftest.$ac_ext >&5
6954
6955	ac_cv_lib_pthread_pthread_kill=no
6956fi
6957
6958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6959      conftest$ac_exeext conftest.$ac_ext
6960LIBS=$ac_check_lib_save_LIBS
6961fi
6962{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
6963echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
6964if test $ac_cv_lib_pthread_pthread_kill = yes; then
6965  gl_have_pthread=yes
6966             LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
6967             LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6968fi
6969
6970          if test -z "$gl_have_pthread"; then
6971            # For FreeBSD 4.
6972            { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
6973echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
6974if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
6975  echo $ECHO_N "(cached) $ECHO_C" >&6
6976else
6977  ac_check_lib_save_LIBS=$LIBS
6978LIBS="-lc_r  $LIBS"
6979cat >conftest.$ac_ext <<_ACEOF
6980/* confdefs.h.  */
6981_ACEOF
6982cat confdefs.h >>conftest.$ac_ext
6983cat >>conftest.$ac_ext <<_ACEOF
6984/* end confdefs.h.  */
6985
6986/* Override any GCC internal prototype to avoid an error.
6987   Use char because int might match the return type of a GCC
6988   builtin and then its argument prototype would still apply.  */
6989#ifdef __cplusplus
6990extern "C"
6991#endif
6992char pthread_kill ();
6993int
6994main ()
6995{
6996return pthread_kill ();
6997  ;
6998  return 0;
6999}
7000_ACEOF
7001rm -f conftest.$ac_objext conftest$ac_exeext
7002if { (ac_try="$ac_link"
7003case "(($ac_try" in
7004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005  *) ac_try_echo=$ac_try;;
7006esac
7007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008  (eval "$ac_link") 2>conftest.er1
7009  ac_status=$?
7010  grep -v '^ *+' conftest.er1 >conftest.err
7011  rm -f conftest.er1
7012  cat conftest.err >&5
7013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014  (exit $ac_status); } && {
7015	 test -z "$ac_c_werror_flag" ||
7016	 test ! -s conftest.err
7017       } && test -s conftest$ac_exeext &&
7018       $as_test_x conftest$ac_exeext; then
7019  ac_cv_lib_c_r_pthread_kill=yes
7020else
7021  echo "$as_me: failed program was:" >&5
7022sed 's/^/| /' conftest.$ac_ext >&5
7023
7024	ac_cv_lib_c_r_pthread_kill=no
7025fi
7026
7027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7028      conftest$ac_exeext conftest.$ac_ext
7029LIBS=$ac_check_lib_save_LIBS
7030fi
7031{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
7032echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
7033if test $ac_cv_lib_c_r_pthread_kill = yes; then
7034  gl_have_pthread=yes
7035               LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
7036               LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
7037fi
7038
7039          fi
7040        fi
7041        if test -n "$gl_have_pthread"; then
7042          gl_threads_api=posix
7043
7044cat >>confdefs.h <<\_ACEOF
7045#define USE_POSIX_THREADS 1
7046_ACEOF
7047
7048          if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
7049            if test $gl_have_weak = yes; then
7050
7051cat >>confdefs.h <<\_ACEOF
7052#define USE_POSIX_THREADS_WEAK 1
7053_ACEOF
7054
7055              LIBTHREAD=
7056              LTLIBTHREAD=
7057            fi
7058          fi
7059          # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
7060          # pthread_rwlock_* functions.
7061          { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
7062echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
7063if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
7064  echo $ECHO_N "(cached) $ECHO_C" >&6
7065else
7066  cat >conftest.$ac_ext <<_ACEOF
7067/* confdefs.h.  */
7068_ACEOF
7069cat confdefs.h >>conftest.$ac_ext
7070cat >>conftest.$ac_ext <<_ACEOF
7071/* end confdefs.h.  */
7072#include <pthread.h>
7073
7074typedef pthread_rwlock_t ac__type_new_;
7075int
7076main ()
7077{
7078if ((ac__type_new_ *) 0)
7079  return 0;
7080if (sizeof (ac__type_new_))
7081  return 0;
7082  ;
7083  return 0;
7084}
7085_ACEOF
7086rm -f conftest.$ac_objext
7087if { (ac_try="$ac_compile"
7088case "(($ac_try" in
7089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090  *) ac_try_echo=$ac_try;;
7091esac
7092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093  (eval "$ac_compile") 2>conftest.er1
7094  ac_status=$?
7095  grep -v '^ *+' conftest.er1 >conftest.err
7096  rm -f conftest.er1
7097  cat conftest.err >&5
7098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099  (exit $ac_status); } && {
7100	 test -z "$ac_c_werror_flag" ||
7101	 test ! -s conftest.err
7102       } && test -s conftest.$ac_objext; then
7103  ac_cv_type_pthread_rwlock_t=yes
7104else
7105  echo "$as_me: failed program was:" >&5
7106sed 's/^/| /' conftest.$ac_ext >&5
7107
7108	ac_cv_type_pthread_rwlock_t=no
7109fi
7110
7111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7112fi
7113{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
7114echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
7115if test $ac_cv_type_pthread_rwlock_t = yes; then
7116
7117cat >>confdefs.h <<\_ACEOF
7118#define HAVE_PTHREAD_RWLOCK 1
7119_ACEOF
7120
7121fi
7122
7123          # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
7124          cat >conftest.$ac_ext <<_ACEOF
7125/* confdefs.h.  */
7126_ACEOF
7127cat confdefs.h >>conftest.$ac_ext
7128cat >>conftest.$ac_ext <<_ACEOF
7129/* end confdefs.h.  */
7130#include <pthread.h>
7131int
7132main ()
7133{
7134#if __FreeBSD__ == 4
7135error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
7136#else
7137int x = (int)PTHREAD_MUTEX_RECURSIVE;
7138return !x;
7139#endif
7140  ;
7141  return 0;
7142}
7143_ACEOF
7144rm -f conftest.$ac_objext
7145if { (ac_try="$ac_compile"
7146case "(($ac_try" in
7147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148  *) ac_try_echo=$ac_try;;
7149esac
7150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7151  (eval "$ac_compile") 2>conftest.er1
7152  ac_status=$?
7153  grep -v '^ *+' conftest.er1 >conftest.err
7154  rm -f conftest.er1
7155  cat conftest.err >&5
7156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157  (exit $ac_status); } && {
7158	 test -z "$ac_c_werror_flag" ||
7159	 test ! -s conftest.err
7160       } && test -s conftest.$ac_objext; then
7161
7162cat >>confdefs.h <<\_ACEOF
7163#define HAVE_PTHREAD_MUTEX_RECURSIVE 1
7164_ACEOF
7165
7166else
7167  echo "$as_me: failed program was:" >&5
7168sed 's/^/| /' conftest.$ac_ext >&5
7169
7170
7171fi
7172
7173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7174        fi
7175      fi
7176    fi
7177    if test -z "$gl_have_pthread"; then
7178      if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
7179        gl_have_solaristhread=
7180        gl_save_LIBS="$LIBS"
7181        LIBS="$LIBS -lthread"
7182        cat >conftest.$ac_ext <<_ACEOF
7183/* confdefs.h.  */
7184_ACEOF
7185cat confdefs.h >>conftest.$ac_ext
7186cat >>conftest.$ac_ext <<_ACEOF
7187/* end confdefs.h.  */
7188#include <thread.h>
7189#include <synch.h>
7190int
7191main ()
7192{
7193thr_self();
7194  ;
7195  return 0;
7196}
7197_ACEOF
7198rm -f conftest.$ac_objext conftest$ac_exeext
7199if { (ac_try="$ac_link"
7200case "(($ac_try" in
7201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202  *) ac_try_echo=$ac_try;;
7203esac
7204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7205  (eval "$ac_link") 2>conftest.er1
7206  ac_status=$?
7207  grep -v '^ *+' conftest.er1 >conftest.err
7208  rm -f conftest.er1
7209  cat conftest.err >&5
7210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211  (exit $ac_status); } && {
7212	 test -z "$ac_c_werror_flag" ||
7213	 test ! -s conftest.err
7214       } && test -s conftest$ac_exeext &&
7215       $as_test_x conftest$ac_exeext; then
7216  gl_have_solaristhread=yes
7217else
7218  echo "$as_me: failed program was:" >&5
7219sed 's/^/| /' conftest.$ac_ext >&5
7220
7221
7222fi
7223
7224rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7225      conftest$ac_exeext conftest.$ac_ext
7226        LIBS="$gl_save_LIBS"
7227        if test -n "$gl_have_solaristhread"; then
7228          gl_threads_api=solaris
7229          LIBTHREAD=-lthread
7230          LTLIBTHREAD=-lthread
7231          LIBMULTITHREAD="$LIBTHREAD"
7232          LTLIBMULTITHREAD="$LTLIBTHREAD"
7233
7234cat >>confdefs.h <<\_ACEOF
7235#define USE_SOLARIS_THREADS 1
7236_ACEOF
7237
7238          if test $gl_have_weak = yes; then
7239
7240cat >>confdefs.h <<\_ACEOF
7241#define USE_SOLARIS_THREADS_WEAK 1
7242_ACEOF
7243
7244            LIBTHREAD=
7245            LTLIBTHREAD=
7246          fi
7247        fi
7248      fi
7249    fi
7250    if test "$gl_use_threads" = pth; then
7251      gl_save_CPPFLAGS="$CPPFLAGS"
7252
7253
7254
7255
7256
7257  { echo "$as_me:$LINENO: checking how to link with libpth" >&5
7258echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
7259if test "${ac_cv_libpth_libs+set}" = set; then
7260  echo $ECHO_N "(cached) $ECHO_C" >&6
7261else
7262
7263
7264
7265
7266    use_additional=yes
7267
7268  acl_save_prefix="$prefix"
7269  prefix="$acl_final_prefix"
7270  acl_save_exec_prefix="$exec_prefix"
7271  exec_prefix="$acl_final_exec_prefix"
7272
7273    eval additional_includedir=\"$includedir\"
7274    eval additional_libdir=\"$libdir\"
7275
7276  exec_prefix="$acl_save_exec_prefix"
7277  prefix="$acl_save_prefix"
7278
7279
7280# Check whether --with-libpth-prefix was given.
7281if test "${with_libpth_prefix+set}" = set; then
7282  withval=$with_libpth_prefix;
7283    if test "X$withval" = "Xno"; then
7284      use_additional=no
7285    else
7286      if test "X$withval" = "X"; then
7287
7288  acl_save_prefix="$prefix"
7289  prefix="$acl_final_prefix"
7290  acl_save_exec_prefix="$exec_prefix"
7291  exec_prefix="$acl_final_exec_prefix"
7292
7293          eval additional_includedir=\"$includedir\"
7294          eval additional_libdir=\"$libdir\"
7295
7296  exec_prefix="$acl_save_exec_prefix"
7297  prefix="$acl_save_prefix"
7298
7299      else
7300        additional_includedir="$withval/include"
7301        additional_libdir="$withval/$acl_libdirstem"
7302      fi
7303    fi
7304
7305fi
7306
7307      LIBPTH=
7308  LTLIBPTH=
7309  INCPTH=
7310  rpathdirs=
7311  ltrpathdirs=
7312  names_already_handled=
7313  names_next_round='pth '
7314  while test -n "$names_next_round"; do
7315    names_this_round="$names_next_round"
7316    names_next_round=
7317    for name in $names_this_round; do
7318      already_handled=
7319      for n in $names_already_handled; do
7320        if test "$n" = "$name"; then
7321          already_handled=yes
7322          break
7323        fi
7324      done
7325      if test -z "$already_handled"; then
7326        names_already_handled="$names_already_handled $name"
7327                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7328        eval value=\"\$HAVE_LIB$uppername\"
7329        if test -n "$value"; then
7330          if test "$value" = yes; then
7331            eval value=\"\$LIB$uppername\"
7332            test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
7333            eval value=\"\$LTLIB$uppername\"
7334            test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
7335          else
7336                                    :
7337          fi
7338        else
7339                              found_dir=
7340          found_la=
7341          found_so=
7342          found_a=
7343          if test $use_additional = yes; then
7344            if test -n "$shlibext" \
7345               && { test -f "$additional_libdir/lib$name.$shlibext" \
7346                    || { test "$shlibext" = dll \
7347                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
7348              found_dir="$additional_libdir"
7349              if test -f "$additional_libdir/lib$name.$shlibext"; then
7350                found_so="$additional_libdir/lib$name.$shlibext"
7351              else
7352                found_so="$additional_libdir/lib$name.dll.a"
7353              fi
7354              if test -f "$additional_libdir/lib$name.la"; then
7355                found_la="$additional_libdir/lib$name.la"
7356              fi
7357            else
7358              if test -f "$additional_libdir/lib$name.$libext"; then
7359                found_dir="$additional_libdir"
7360                found_a="$additional_libdir/lib$name.$libext"
7361                if test -f "$additional_libdir/lib$name.la"; then
7362                  found_la="$additional_libdir/lib$name.la"
7363                fi
7364              fi
7365            fi
7366          fi
7367          if test "X$found_dir" = "X"; then
7368            for x in $LDFLAGS $LTLIBPTH; do
7369
7370  acl_save_prefix="$prefix"
7371  prefix="$acl_final_prefix"
7372  acl_save_exec_prefix="$exec_prefix"
7373  exec_prefix="$acl_final_exec_prefix"
7374  eval x=\"$x\"
7375  exec_prefix="$acl_save_exec_prefix"
7376  prefix="$acl_save_prefix"
7377
7378              case "$x" in
7379                -L*)
7380                  dir=`echo "X$x" | sed -e 's/^X-L//'`
7381                  if test -n "$shlibext" \
7382                     && { test -f "$dir/lib$name.$shlibext" \
7383                          || { test "$shlibext" = dll \
7384                               && test -f "$dir/lib$name.dll.a"; }; }; then
7385                    found_dir="$dir"
7386                    if test -f "$dir/lib$name.$shlibext"; then
7387                      found_so="$dir/lib$name.$shlibext"
7388                    else
7389                      found_so="$dir/lib$name.dll.a"
7390                    fi
7391                    if test -f "$dir/lib$name.la"; then
7392                      found_la="$dir/lib$name.la"
7393                    fi
7394                  else
7395                    if test -f "$dir/lib$name.$libext"; then
7396                      found_dir="$dir"
7397                      found_a="$dir/lib$name.$libext"
7398                      if test -f "$dir/lib$name.la"; then
7399                        found_la="$dir/lib$name.la"
7400                      fi
7401                    fi
7402                  fi
7403                  ;;
7404              esac
7405              if test "X$found_dir" != "X"; then
7406                break
7407              fi
7408            done
7409          fi
7410          if test "X$found_dir" != "X"; then
7411                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
7412            if test "X$found_so" != "X"; then
7413                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
7414                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7415              else
7416                                                                                haveit=
7417                for x in $ltrpathdirs; do
7418                  if test "X$x" = "X$found_dir"; then
7419                    haveit=yes
7420                    break
7421                  fi
7422                done
7423                if test -z "$haveit"; then
7424                  ltrpathdirs="$ltrpathdirs $found_dir"
7425                fi
7426                                if test "$hardcode_direct" = yes; then
7427                                                      LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7428                else
7429                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7430                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7431                                                            haveit=
7432                    for x in $rpathdirs; do
7433                      if test "X$x" = "X$found_dir"; then
7434                        haveit=yes
7435                        break
7436                      fi
7437                    done
7438                    if test -z "$haveit"; then
7439                      rpathdirs="$rpathdirs $found_dir"
7440                    fi
7441                  else
7442                                                                                haveit=
7443                    for x in $LDFLAGS $LIBPTH; do
7444
7445  acl_save_prefix="$prefix"
7446  prefix="$acl_final_prefix"
7447  acl_save_exec_prefix="$exec_prefix"
7448  exec_prefix="$acl_final_exec_prefix"
7449  eval x=\"$x\"
7450  exec_prefix="$acl_save_exec_prefix"
7451  prefix="$acl_save_prefix"
7452
7453                      if test "X$x" = "X-L$found_dir"; then
7454                        haveit=yes
7455                        break
7456                      fi
7457                    done
7458                    if test -z "$haveit"; then
7459                      LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
7460                    fi
7461                    if test "$hardcode_minus_L" != no; then
7462                                                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7463                    else
7464                                                                                                                                                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
7465                    fi
7466                  fi
7467                fi
7468              fi
7469            else
7470              if test "X$found_a" != "X"; then
7471                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
7472              else
7473                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
7474              fi
7475            fi
7476                        additional_includedir=
7477            case "$found_dir" in
7478              */$acl_libdirstem | */$acl_libdirstem/)
7479                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7480                additional_includedir="$basedir/include"
7481                ;;
7482            esac
7483            if test "X$additional_includedir" != "X"; then
7484                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7485                haveit=
7486                if test "X$additional_includedir" = "X/usr/local/include"; then
7487                  if test -n "$GCC"; then
7488                    case $host_os in
7489                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7490                    esac
7491                  fi
7492                fi
7493                if test -z "$haveit"; then
7494                  for x in $CPPFLAGS $INCPTH; do
7495
7496  acl_save_prefix="$prefix"
7497  prefix="$acl_final_prefix"
7498  acl_save_exec_prefix="$exec_prefix"
7499  exec_prefix="$acl_final_exec_prefix"
7500  eval x=\"$x\"
7501  exec_prefix="$acl_save_exec_prefix"
7502  prefix="$acl_save_prefix"
7503
7504                    if test "X$x" = "X-I$additional_includedir"; then
7505                      haveit=yes
7506                      break
7507                    fi
7508                  done
7509                  if test -z "$haveit"; then
7510                    if test -d "$additional_includedir"; then
7511                                            INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
7512                    fi
7513                  fi
7514                fi
7515              fi
7516            fi
7517                        if test -n "$found_la"; then
7518                                                        save_libdir="$libdir"
7519              case "$found_la" in
7520                */* | *\\*) . "$found_la" ;;
7521                *) . "./$found_la" ;;
7522              esac
7523              libdir="$save_libdir"
7524                            for dep in $dependency_libs; do
7525                case "$dep" in
7526                  -L*)
7527                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7528                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
7529                      haveit=
7530                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
7531                        if test -n "$GCC"; then
7532                          case $host_os in
7533                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7534                          esac
7535                        fi
7536                      fi
7537                      if test -z "$haveit"; then
7538                        haveit=
7539                        for x in $LDFLAGS $LIBPTH; do
7540
7541  acl_save_prefix="$prefix"
7542  prefix="$acl_final_prefix"
7543  acl_save_exec_prefix="$exec_prefix"
7544  exec_prefix="$acl_final_exec_prefix"
7545  eval x=\"$x\"
7546  exec_prefix="$acl_save_exec_prefix"
7547  prefix="$acl_save_prefix"
7548
7549                          if test "X$x" = "X-L$additional_libdir"; then
7550                            haveit=yes
7551                            break
7552                          fi
7553                        done
7554                        if test -z "$haveit"; then
7555                          if test -d "$additional_libdir"; then
7556                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
7557                          fi
7558                        fi
7559                        haveit=
7560                        for x in $LDFLAGS $LTLIBPTH; do
7561
7562  acl_save_prefix="$prefix"
7563  prefix="$acl_final_prefix"
7564  acl_save_exec_prefix="$exec_prefix"
7565  exec_prefix="$acl_final_exec_prefix"
7566  eval x=\"$x\"
7567  exec_prefix="$acl_save_exec_prefix"
7568  prefix="$acl_save_prefix"
7569
7570                          if test "X$x" = "X-L$additional_libdir"; then
7571                            haveit=yes
7572                            break
7573                          fi
7574                        done
7575                        if test -z "$haveit"; then
7576                          if test -d "$additional_libdir"; then
7577                                                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
7578                          fi
7579                        fi
7580                      fi
7581                    fi
7582                    ;;
7583                  -R*)
7584                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7585                    if test "$enable_rpath" != no; then
7586                                                                  haveit=
7587                      for x in $rpathdirs; do
7588                        if test "X$x" = "X$dir"; then
7589                          haveit=yes
7590                          break
7591                        fi
7592                      done
7593                      if test -z "$haveit"; then
7594                        rpathdirs="$rpathdirs $dir"
7595                      fi
7596                                                                  haveit=
7597                      for x in $ltrpathdirs; do
7598                        if test "X$x" = "X$dir"; then
7599                          haveit=yes
7600                          break
7601                        fi
7602                      done
7603                      if test -z "$haveit"; then
7604                        ltrpathdirs="$ltrpathdirs $dir"
7605                      fi
7606                    fi
7607                    ;;
7608                  -l*)
7609                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7610                    ;;
7611                  *.la)
7612                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7613                    ;;
7614                  *)
7615                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
7616                    LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
7617                    ;;
7618                esac
7619              done
7620            fi
7621          else
7622                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
7623            LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
7624          fi
7625        fi
7626      fi
7627    done
7628  done
7629  if test "X$rpathdirs" != "X"; then
7630    if test -n "$hardcode_libdir_separator"; then
7631                        alldirs=
7632      for found_dir in $rpathdirs; do
7633        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7634      done
7635            acl_save_libdir="$libdir"
7636      libdir="$alldirs"
7637      eval flag=\"$hardcode_libdir_flag_spec\"
7638      libdir="$acl_save_libdir"
7639      LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
7640    else
7641            for found_dir in $rpathdirs; do
7642        acl_save_libdir="$libdir"
7643        libdir="$found_dir"
7644        eval flag=\"$hardcode_libdir_flag_spec\"
7645        libdir="$acl_save_libdir"
7646        LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
7647      done
7648    fi
7649  fi
7650  if test "X$ltrpathdirs" != "X"; then
7651            for found_dir in $ltrpathdirs; do
7652      LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
7653    done
7654  fi
7655
7656    ac_cv_libpth_libs="$LIBPTH"
7657    ac_cv_libpth_ltlibs="$LTLIBPTH"
7658    ac_cv_libpth_cppflags="$INCPTH"
7659
7660fi
7661{ echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
7662echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
7663  LIBPTH="$ac_cv_libpth_libs"
7664  LTLIBPTH="$ac_cv_libpth_ltlibs"
7665  INCPTH="$ac_cv_libpth_cppflags"
7666
7667  for element in $INCPTH; do
7668    haveit=
7669    for x in $CPPFLAGS; do
7670
7671  acl_save_prefix="$prefix"
7672  prefix="$acl_final_prefix"
7673  acl_save_exec_prefix="$exec_prefix"
7674  exec_prefix="$acl_final_exec_prefix"
7675  eval x=\"$x\"
7676  exec_prefix="$acl_save_exec_prefix"
7677  prefix="$acl_save_prefix"
7678
7679      if test "X$x" = "X$element"; then
7680        haveit=yes
7681        break
7682      fi
7683    done
7684    if test -z "$haveit"; then
7685      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7686    fi
7687  done
7688
7689
7690
7691      HAVE_LIBPTH=yes
7692
7693
7694
7695      gl_have_pth=
7696      gl_save_LIBS="$LIBS"
7697      LIBS="$LIBS -lpth"
7698      cat >conftest.$ac_ext <<_ACEOF
7699/* confdefs.h.  */
7700_ACEOF
7701cat confdefs.h >>conftest.$ac_ext
7702cat >>conftest.$ac_ext <<_ACEOF
7703/* end confdefs.h.  */
7704#include <pth.h>
7705int
7706main ()
7707{
7708pth_self();
7709  ;
7710  return 0;
7711}
7712_ACEOF
7713rm -f conftest.$ac_objext conftest$ac_exeext
7714if { (ac_try="$ac_link"
7715case "(($ac_try" in
7716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717  *) ac_try_echo=$ac_try;;
7718esac
7719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7720  (eval "$ac_link") 2>conftest.er1
7721  ac_status=$?
7722  grep -v '^ *+' conftest.er1 >conftest.err
7723  rm -f conftest.er1
7724  cat conftest.err >&5
7725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726  (exit $ac_status); } && {
7727	 test -z "$ac_c_werror_flag" ||
7728	 test ! -s conftest.err
7729       } && test -s conftest$ac_exeext &&
7730       $as_test_x conftest$ac_exeext; then
7731  gl_have_pth=yes
7732else
7733  echo "$as_me: failed program was:" >&5
7734sed 's/^/| /' conftest.$ac_ext >&5
7735
7736
7737fi
7738
7739rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7740      conftest$ac_exeext conftest.$ac_ext
7741      LIBS="$gl_save_LIBS"
7742      if test -n "$gl_have_pth"; then
7743        gl_threads_api=pth
7744        LIBTHREAD="$LIBPTH"
7745        LTLIBTHREAD="$LTLIBPTH"
7746        LIBMULTITHREAD="$LIBTHREAD"
7747        LTLIBMULTITHREAD="$LTLIBTHREAD"
7748
7749cat >>confdefs.h <<\_ACEOF
7750#define USE_PTH_THREADS 1
7751_ACEOF
7752
7753        if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
7754          if test $gl_have_weak = yes; then
7755
7756cat >>confdefs.h <<\_ACEOF
7757#define USE_PTH_THREADS_WEAK 1
7758_ACEOF
7759
7760            LIBTHREAD=
7761            LTLIBTHREAD=
7762          fi
7763        fi
7764      else
7765        CPPFLAGS="$gl_save_CPPFLAGS"
7766      fi
7767    fi
7768    if test -z "$gl_have_pthread"; then
7769      if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
7770        if { case "$host_os" in
7771               mingw*) true;;
7772               *) false;;
7773             esac
7774           }; then
7775          gl_threads_api=win32
7776
7777cat >>confdefs.h <<\_ACEOF
7778#define USE_WIN32_THREADS 1
7779_ACEOF
7780
7781        fi
7782      fi
7783    fi
7784  fi
7785  { echo "$as_me:$LINENO: checking for multithread API to use" >&5
7786echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
7787  { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
7788echo "${ECHO_T}$gl_threads_api" >&6; }
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808    use_additional=yes
7809
7810  acl_save_prefix="$prefix"
7811  prefix="$acl_final_prefix"
7812  acl_save_exec_prefix="$exec_prefix"
7813  exec_prefix="$acl_final_exec_prefix"
7814
7815    eval additional_includedir=\"$includedir\"
7816    eval additional_libdir=\"$libdir\"
7817
7818  exec_prefix="$acl_save_exec_prefix"
7819  prefix="$acl_save_prefix"
7820
7821
7822# Check whether --with-libiconv-prefix was given.
7823if test "${with_libiconv_prefix+set}" = set; then
7824  withval=$with_libiconv_prefix;
7825    if test "X$withval" = "Xno"; then
7826      use_additional=no
7827    else
7828      if test "X$withval" = "X"; then
7829
7830  acl_save_prefix="$prefix"
7831  prefix="$acl_final_prefix"
7832  acl_save_exec_prefix="$exec_prefix"
7833  exec_prefix="$acl_final_exec_prefix"
7834
7835          eval additional_includedir=\"$includedir\"
7836          eval additional_libdir=\"$libdir\"
7837
7838  exec_prefix="$acl_save_exec_prefix"
7839  prefix="$acl_save_prefix"
7840
7841      else
7842        additional_includedir="$withval/include"
7843        additional_libdir="$withval/$acl_libdirstem"
7844      fi
7845    fi
7846
7847fi
7848
7849      LIBICONV=
7850  LTLIBICONV=
7851  INCICONV=
7852  rpathdirs=
7853  ltrpathdirs=
7854  names_already_handled=
7855  names_next_round='iconv '
7856  while test -n "$names_next_round"; do
7857    names_this_round="$names_next_round"
7858    names_next_round=
7859    for name in $names_this_round; do
7860      already_handled=
7861      for n in $names_already_handled; do
7862        if test "$n" = "$name"; then
7863          already_handled=yes
7864          break
7865        fi
7866      done
7867      if test -z "$already_handled"; then
7868        names_already_handled="$names_already_handled $name"
7869                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7870        eval value=\"\$HAVE_LIB$uppername\"
7871        if test -n "$value"; then
7872          if test "$value" = yes; then
7873            eval value=\"\$LIB$uppername\"
7874            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7875            eval value=\"\$LTLIB$uppername\"
7876            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7877          else
7878                                    :
7879          fi
7880        else
7881                              found_dir=
7882          found_la=
7883          found_so=
7884          found_a=
7885          if test $use_additional = yes; then
7886            if test -n "$shlibext" \
7887               && { test -f "$additional_libdir/lib$name.$shlibext" \
7888                    || { test "$shlibext" = dll \
7889                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
7890              found_dir="$additional_libdir"
7891              if test -f "$additional_libdir/lib$name.$shlibext"; then
7892                found_so="$additional_libdir/lib$name.$shlibext"
7893              else
7894                found_so="$additional_libdir/lib$name.dll.a"
7895              fi
7896              if test -f "$additional_libdir/lib$name.la"; then
7897                found_la="$additional_libdir/lib$name.la"
7898              fi
7899            else
7900              if test -f "$additional_libdir/lib$name.$libext"; then
7901                found_dir="$additional_libdir"
7902                found_a="$additional_libdir/lib$name.$libext"
7903                if test -f "$additional_libdir/lib$name.la"; then
7904                  found_la="$additional_libdir/lib$name.la"
7905                fi
7906              fi
7907            fi
7908          fi
7909          if test "X$found_dir" = "X"; then
7910            for x in $LDFLAGS $LTLIBICONV; do
7911
7912  acl_save_prefix="$prefix"
7913  prefix="$acl_final_prefix"
7914  acl_save_exec_prefix="$exec_prefix"
7915  exec_prefix="$acl_final_exec_prefix"
7916  eval x=\"$x\"
7917  exec_prefix="$acl_save_exec_prefix"
7918  prefix="$acl_save_prefix"
7919
7920              case "$x" in
7921                -L*)
7922                  dir=`echo "X$x" | sed -e 's/^X-L//'`
7923                  if test -n "$shlibext" \
7924                     && { test -f "$dir/lib$name.$shlibext" \
7925                          || { test "$shlibext" = dll \
7926                               && test -f "$dir/lib$name.dll.a"; }; }; then
7927                    found_dir="$dir"
7928                    if test -f "$dir/lib$name.$shlibext"; then
7929                      found_so="$dir/lib$name.$shlibext"
7930                    else
7931                      found_so="$dir/lib$name.dll.a"
7932                    fi
7933                    if test -f "$dir/lib$name.la"; then
7934                      found_la="$dir/lib$name.la"
7935                    fi
7936                  else
7937                    if test -f "$dir/lib$name.$libext"; then
7938                      found_dir="$dir"
7939                      found_a="$dir/lib$name.$libext"
7940                      if test -f "$dir/lib$name.la"; then
7941                        found_la="$dir/lib$name.la"
7942                      fi
7943                    fi
7944                  fi
7945                  ;;
7946              esac
7947              if test "X$found_dir" != "X"; then
7948                break
7949              fi
7950            done
7951          fi
7952          if test "X$found_dir" != "X"; then
7953                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7954            if test "X$found_so" != "X"; then
7955                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
7956                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7957              else
7958                                                                                haveit=
7959                for x in $ltrpathdirs; do
7960                  if test "X$x" = "X$found_dir"; then
7961                    haveit=yes
7962                    break
7963                  fi
7964                done
7965                if test -z "$haveit"; then
7966                  ltrpathdirs="$ltrpathdirs $found_dir"
7967                fi
7968                                if test "$hardcode_direct" = yes; then
7969                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7970                else
7971                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7972                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7973                                                            haveit=
7974                    for x in $rpathdirs; do
7975                      if test "X$x" = "X$found_dir"; then
7976                        haveit=yes
7977                        break
7978                      fi
7979                    done
7980                    if test -z "$haveit"; then
7981                      rpathdirs="$rpathdirs $found_dir"
7982                    fi
7983                  else
7984                                                                                haveit=
7985                    for x in $LDFLAGS $LIBICONV; do
7986
7987  acl_save_prefix="$prefix"
7988  prefix="$acl_final_prefix"
7989  acl_save_exec_prefix="$exec_prefix"
7990  exec_prefix="$acl_final_exec_prefix"
7991  eval x=\"$x\"
7992  exec_prefix="$acl_save_exec_prefix"
7993  prefix="$acl_save_prefix"
7994
7995                      if test "X$x" = "X-L$found_dir"; then
7996                        haveit=yes
7997                        break
7998                      fi
7999                    done
8000                    if test -z "$haveit"; then
8001                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8002                    fi
8003                    if test "$hardcode_minus_L" != no; then
8004                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8005                    else
8006                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8007                    fi
8008                  fi
8009                fi
8010              fi
8011            else
8012              if test "X$found_a" != "X"; then
8013                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8014              else
8015                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8016              fi
8017            fi
8018                        additional_includedir=
8019            case "$found_dir" in
8020              */$acl_libdirstem | */$acl_libdirstem/)
8021                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8022                additional_includedir="$basedir/include"
8023                ;;
8024            esac
8025            if test "X$additional_includedir" != "X"; then
8026                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
8027                haveit=
8028                if test "X$additional_includedir" = "X/usr/local/include"; then
8029                  if test -n "$GCC"; then
8030                    case $host_os in
8031                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8032                    esac
8033                  fi
8034                fi
8035                if test -z "$haveit"; then
8036                  for x in $CPPFLAGS $INCICONV; do
8037
8038  acl_save_prefix="$prefix"
8039  prefix="$acl_final_prefix"
8040  acl_save_exec_prefix="$exec_prefix"
8041  exec_prefix="$acl_final_exec_prefix"
8042  eval x=\"$x\"
8043  exec_prefix="$acl_save_exec_prefix"
8044  prefix="$acl_save_prefix"
8045
8046                    if test "X$x" = "X-I$additional_includedir"; then
8047                      haveit=yes
8048                      break
8049                    fi
8050                  done
8051                  if test -z "$haveit"; then
8052                    if test -d "$additional_includedir"; then
8053                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8054                    fi
8055                  fi
8056                fi
8057              fi
8058            fi
8059                        if test -n "$found_la"; then
8060                                                        save_libdir="$libdir"
8061              case "$found_la" in
8062                */* | *\\*) . "$found_la" ;;
8063                *) . "./$found_la" ;;
8064              esac
8065              libdir="$save_libdir"
8066                            for dep in $dependency_libs; do
8067                case "$dep" in
8068                  -L*)
8069                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8070                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
8071                      haveit=
8072                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
8073                        if test -n "$GCC"; then
8074                          case $host_os in
8075                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8076                          esac
8077                        fi
8078                      fi
8079                      if test -z "$haveit"; then
8080                        haveit=
8081                        for x in $LDFLAGS $LIBICONV; do
8082
8083  acl_save_prefix="$prefix"
8084  prefix="$acl_final_prefix"
8085  acl_save_exec_prefix="$exec_prefix"
8086  exec_prefix="$acl_final_exec_prefix"
8087  eval x=\"$x\"
8088  exec_prefix="$acl_save_exec_prefix"
8089  prefix="$acl_save_prefix"
8090
8091                          if test "X$x" = "X-L$additional_libdir"; then
8092                            haveit=yes
8093                            break
8094                          fi
8095                        done
8096                        if test -z "$haveit"; then
8097                          if test -d "$additional_libdir"; then
8098                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8099                          fi
8100                        fi
8101                        haveit=
8102                        for x in $LDFLAGS $LTLIBICONV; do
8103
8104  acl_save_prefix="$prefix"
8105  prefix="$acl_final_prefix"
8106  acl_save_exec_prefix="$exec_prefix"
8107  exec_prefix="$acl_final_exec_prefix"
8108  eval x=\"$x\"
8109  exec_prefix="$acl_save_exec_prefix"
8110  prefix="$acl_save_prefix"
8111
8112                          if test "X$x" = "X-L$additional_libdir"; then
8113                            haveit=yes
8114                            break
8115                          fi
8116                        done
8117                        if test -z "$haveit"; then
8118                          if test -d "$additional_libdir"; then
8119                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8120                          fi
8121                        fi
8122                      fi
8123                    fi
8124                    ;;
8125                  -R*)
8126                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
8127                    if test "$enable_rpath" != no; then
8128                                                                  haveit=
8129                      for x in $rpathdirs; do
8130                        if test "X$x" = "X$dir"; then
8131                          haveit=yes
8132                          break
8133                        fi
8134                      done
8135                      if test -z "$haveit"; then
8136                        rpathdirs="$rpathdirs $dir"
8137                      fi
8138                                                                  haveit=
8139                      for x in $ltrpathdirs; do
8140                        if test "X$x" = "X$dir"; then
8141                          haveit=yes
8142                          break
8143                        fi
8144                      done
8145                      if test -z "$haveit"; then
8146                        ltrpathdirs="$ltrpathdirs $dir"
8147                      fi
8148                    fi
8149                    ;;
8150                  -l*)
8151                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8152                    ;;
8153                  *.la)
8154                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8155                    ;;
8156                  *)
8157                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8158                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8159                    ;;
8160                esac
8161              done
8162            fi
8163          else
8164                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8165            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8166          fi
8167        fi
8168      fi
8169    done
8170  done
8171  if test "X$rpathdirs" != "X"; then
8172    if test -n "$hardcode_libdir_separator"; then
8173                        alldirs=
8174      for found_dir in $rpathdirs; do
8175        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8176      done
8177            acl_save_libdir="$libdir"
8178      libdir="$alldirs"
8179      eval flag=\"$hardcode_libdir_flag_spec\"
8180      libdir="$acl_save_libdir"
8181      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8182    else
8183            for found_dir in $rpathdirs; do
8184        acl_save_libdir="$libdir"
8185        libdir="$found_dir"
8186        eval flag=\"$hardcode_libdir_flag_spec\"
8187        libdir="$acl_save_libdir"
8188        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8189      done
8190    fi
8191  fi
8192  if test "X$ltrpathdirs" != "X"; then
8193            for found_dir in $ltrpathdirs; do
8194      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8195    done
8196  fi
8197
8198
8199
8200
8201
8202  cat >conftest.$ac_ext <<_ACEOF
8203/* confdefs.h.  */
8204_ACEOF
8205cat confdefs.h >>conftest.$ac_ext
8206cat >>conftest.$ac_ext <<_ACEOF
8207/* end confdefs.h.  */
8208int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
8209int
8210main ()
8211{
8212
8213  ;
8214  return 0;
8215}
8216_ACEOF
8217rm -f conftest.$ac_objext conftest$ac_exeext
8218if { (ac_try="$ac_link"
8219case "(($ac_try" in
8220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221  *) ac_try_echo=$ac_try;;
8222esac
8223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224  (eval "$ac_link") 2>conftest.er1
8225  ac_status=$?
8226  grep -v '^ *+' conftest.er1 >conftest.err
8227  rm -f conftest.er1
8228  cat conftest.err >&5
8229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230  (exit $ac_status); } && {
8231	 test -z "$ac_c_werror_flag" ||
8232	 test ! -s conftest.err
8233       } && test -s conftest$ac_exeext &&
8234       $as_test_x conftest$ac_exeext; then
8235
8236cat >>confdefs.h <<\_ACEOF
8237#define HAVE_BUILTIN_EXPECT 1
8238_ACEOF
8239
8240else
8241  echo "$as_me: failed program was:" >&5
8242sed 's/^/| /' conftest.$ac_ext >&5
8243
8244
8245fi
8246
8247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8248      conftest$ac_exeext conftest.$ac_ext
8249
8250
8251
8252
8253
8254
8255for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
8256do
8257as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8259  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8261if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8262  echo $ECHO_N "(cached) $ECHO_C" >&6
8263fi
8264ac_res=`eval echo '${'$as_ac_Header'}'`
8265	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8266echo "${ECHO_T}$ac_res" >&6; }
8267else
8268  # Is the header compilable?
8269{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8270echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8271cat >conftest.$ac_ext <<_ACEOF
8272/* confdefs.h.  */
8273_ACEOF
8274cat confdefs.h >>conftest.$ac_ext
8275cat >>conftest.$ac_ext <<_ACEOF
8276/* end confdefs.h.  */
8277$ac_includes_default
8278#include <$ac_header>
8279_ACEOF
8280rm -f conftest.$ac_objext
8281if { (ac_try="$ac_compile"
8282case "(($ac_try" in
8283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284  *) ac_try_echo=$ac_try;;
8285esac
8286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287  (eval "$ac_compile") 2>conftest.er1
8288  ac_status=$?
8289  grep -v '^ *+' conftest.er1 >conftest.err
8290  rm -f conftest.er1
8291  cat conftest.err >&5
8292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293  (exit $ac_status); } && {
8294	 test -z "$ac_c_werror_flag" ||
8295	 test ! -s conftest.err
8296       } && test -s conftest.$ac_objext; then
8297  ac_header_compiler=yes
8298else
8299  echo "$as_me: failed program was:" >&5
8300sed 's/^/| /' conftest.$ac_ext >&5
8301
8302	ac_header_compiler=no
8303fi
8304
8305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8307echo "${ECHO_T}$ac_header_compiler" >&6; }
8308
8309# Is the header present?
8310{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8311echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8312cat >conftest.$ac_ext <<_ACEOF
8313/* confdefs.h.  */
8314_ACEOF
8315cat confdefs.h >>conftest.$ac_ext
8316cat >>conftest.$ac_ext <<_ACEOF
8317/* end confdefs.h.  */
8318#include <$ac_header>
8319_ACEOF
8320if { (ac_try="$ac_cpp conftest.$ac_ext"
8321case "(($ac_try" in
8322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323  *) ac_try_echo=$ac_try;;
8324esac
8325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8327  ac_status=$?
8328  grep -v '^ *+' conftest.er1 >conftest.err
8329  rm -f conftest.er1
8330  cat conftest.err >&5
8331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332  (exit $ac_status); } >/dev/null && {
8333	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8334	 test ! -s conftest.err
8335       }; then
8336  ac_header_preproc=yes
8337else
8338  echo "$as_me: failed program was:" >&5
8339sed 's/^/| /' conftest.$ac_ext >&5
8340
8341  ac_header_preproc=no
8342fi
8343
8344rm -f conftest.err conftest.$ac_ext
8345{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8346echo "${ECHO_T}$ac_header_preproc" >&6; }
8347
8348# So?  What about this header?
8349case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8350  yes:no: )
8351    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8352echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8353    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8354echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8355    ac_header_preproc=yes
8356    ;;
8357  no:yes:* )
8358    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8359echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8360    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8361echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8362    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8363echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8364    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8365echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8366    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8367echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8368    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8369echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8370    ( cat <<\_ASBOX
8371## ------------------------------------ ##
8372## Report this to starplot@starplot.org ##
8373## ------------------------------------ ##
8374_ASBOX
8375     ) | sed "s/^/$as_me: WARNING:     /" >&2
8376    ;;
8377esac
8378{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8380if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8381  echo $ECHO_N "(cached) $ECHO_C" >&6
8382else
8383  eval "$as_ac_Header=\$ac_header_preproc"
8384fi
8385ac_res=`eval echo '${'$as_ac_Header'}'`
8386	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8387echo "${ECHO_T}$ac_res" >&6; }
8388
8389fi
8390if test `eval echo '${'$as_ac_Header'}'` = yes; then
8391  cat >>confdefs.h <<_ACEOF
8392#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8393_ACEOF
8394
8395fi
8396
8397done
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
8416    stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
8417    argz_next __fsetlocking
8418do
8419as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8420{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8421echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8422if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8423  echo $ECHO_N "(cached) $ECHO_C" >&6
8424else
8425  cat >conftest.$ac_ext <<_ACEOF
8426/* confdefs.h.  */
8427_ACEOF
8428cat confdefs.h >>conftest.$ac_ext
8429cat >>conftest.$ac_ext <<_ACEOF
8430/* end confdefs.h.  */
8431/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8432   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8433#define $ac_func innocuous_$ac_func
8434
8435/* System header to define __stub macros and hopefully few prototypes,
8436    which can conflict with char $ac_func (); below.
8437    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8438    <limits.h> exists even on freestanding compilers.  */
8439
8440#ifdef __STDC__
8441# include <limits.h>
8442#else
8443# include <assert.h>
8444#endif
8445
8446#undef $ac_func
8447
8448/* Override any GCC internal prototype to avoid an error.
8449   Use char because int might match the return type of a GCC
8450   builtin and then its argument prototype would still apply.  */
8451#ifdef __cplusplus
8452extern "C"
8453#endif
8454char $ac_func ();
8455/* The GNU C library defines this for functions which it implements
8456    to always fail with ENOSYS.  Some functions are actually named
8457    something starting with __ and the normal name is an alias.  */
8458#if defined __stub_$ac_func || defined __stub___$ac_func
8459choke me
8460#endif
8461
8462int
8463main ()
8464{
8465return $ac_func ();
8466  ;
8467  return 0;
8468}
8469_ACEOF
8470rm -f conftest.$ac_objext conftest$ac_exeext
8471if { (ac_try="$ac_link"
8472case "(($ac_try" in
8473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474  *) ac_try_echo=$ac_try;;
8475esac
8476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477  (eval "$ac_link") 2>conftest.er1
8478  ac_status=$?
8479  grep -v '^ *+' conftest.er1 >conftest.err
8480  rm -f conftest.er1
8481  cat conftest.err >&5
8482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483  (exit $ac_status); } && {
8484	 test -z "$ac_c_werror_flag" ||
8485	 test ! -s conftest.err
8486       } && test -s conftest$ac_exeext &&
8487       $as_test_x conftest$ac_exeext; then
8488  eval "$as_ac_var=yes"
8489else
8490  echo "$as_me: failed program was:" >&5
8491sed 's/^/| /' conftest.$ac_ext >&5
8492
8493	eval "$as_ac_var=no"
8494fi
8495
8496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8497      conftest$ac_exeext conftest.$ac_ext
8498fi
8499ac_res=`eval echo '${'$as_ac_var'}'`
8500	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8501echo "${ECHO_T}$ac_res" >&6; }
8502if test `eval echo '${'$as_ac_var'}'` = yes; then
8503  cat >>confdefs.h <<_ACEOF
8504#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8505_ACEOF
8506
8507fi
8508done
8509
8510
8511
8512  { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8513echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
8514if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8515  echo $ECHO_N "(cached) $ECHO_C" >&6
8516else
8517  cat >conftest.$ac_ext <<_ACEOF
8518/* confdefs.h.  */
8519_ACEOF
8520cat confdefs.h >>conftest.$ac_ext
8521cat >>conftest.$ac_ext <<_ACEOF
8522/* end confdefs.h.  */
8523#include <stdio.h>
8524int
8525main ()
8526{
8527
8528#ifndef feof_unlocked
8529  char *p = (char *) feof_unlocked;
8530#endif
8531
8532  ;
8533  return 0;
8534}
8535_ACEOF
8536rm -f conftest.$ac_objext
8537if { (ac_try="$ac_compile"
8538case "(($ac_try" in
8539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540  *) ac_try_echo=$ac_try;;
8541esac
8542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543  (eval "$ac_compile") 2>conftest.er1
8544  ac_status=$?
8545  grep -v '^ *+' conftest.er1 >conftest.err
8546  rm -f conftest.er1
8547  cat conftest.err >&5
8548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549  (exit $ac_status); } && {
8550	 test -z "$ac_c_werror_flag" ||
8551	 test ! -s conftest.err
8552       } && test -s conftest.$ac_objext; then
8553  ac_cv_have_decl_feof_unlocked=yes
8554else
8555  echo "$as_me: failed program was:" >&5
8556sed 's/^/| /' conftest.$ac_ext >&5
8557
8558	ac_cv_have_decl_feof_unlocked=no
8559fi
8560
8561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8562fi
8563{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8564echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
8565  if test $ac_cv_have_decl_feof_unlocked = yes; then
8566    gt_value=1
8567  else
8568    gt_value=0
8569  fi
8570
8571cat >>confdefs.h <<_ACEOF
8572#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8573_ACEOF
8574
8575
8576
8577  { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8578echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
8579if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8580  echo $ECHO_N "(cached) $ECHO_C" >&6
8581else
8582  cat >conftest.$ac_ext <<_ACEOF
8583/* confdefs.h.  */
8584_ACEOF
8585cat confdefs.h >>conftest.$ac_ext
8586cat >>conftest.$ac_ext <<_ACEOF
8587/* end confdefs.h.  */
8588#include <stdio.h>
8589int
8590main ()
8591{
8592
8593#ifndef fgets_unlocked
8594  char *p = (char *) fgets_unlocked;
8595#endif
8596
8597  ;
8598  return 0;
8599}
8600_ACEOF
8601rm -f conftest.$ac_objext
8602if { (ac_try="$ac_compile"
8603case "(($ac_try" in
8604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605  *) ac_try_echo=$ac_try;;
8606esac
8607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608  (eval "$ac_compile") 2>conftest.er1
8609  ac_status=$?
8610  grep -v '^ *+' conftest.er1 >conftest.err
8611  rm -f conftest.er1
8612  cat conftest.err >&5
8613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614  (exit $ac_status); } && {
8615	 test -z "$ac_c_werror_flag" ||
8616	 test ! -s conftest.err
8617       } && test -s conftest.$ac_objext; then
8618  ac_cv_have_decl_fgets_unlocked=yes
8619else
8620  echo "$as_me: failed program was:" >&5
8621sed 's/^/| /' conftest.$ac_ext >&5
8622
8623	ac_cv_have_decl_fgets_unlocked=no
8624fi
8625
8626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8627fi
8628{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8629echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
8630  if test $ac_cv_have_decl_fgets_unlocked = yes; then
8631    gt_value=1
8632  else
8633    gt_value=0
8634  fi
8635
8636cat >>confdefs.h <<_ACEOF
8637#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8638_ACEOF
8639
8640
8641
8642
8643
8644
8645
8646
8647          am_save_CPPFLAGS="$CPPFLAGS"
8648
8649  for element in $INCICONV; do
8650    haveit=
8651    for x in $CPPFLAGS; do
8652
8653  acl_save_prefix="$prefix"
8654  prefix="$acl_final_prefix"
8655  acl_save_exec_prefix="$exec_prefix"
8656  exec_prefix="$acl_final_exec_prefix"
8657  eval x=\"$x\"
8658  exec_prefix="$acl_save_exec_prefix"
8659  prefix="$acl_save_prefix"
8660
8661      if test "X$x" = "X$element"; then
8662        haveit=yes
8663        break
8664      fi
8665    done
8666    if test -z "$haveit"; then
8667      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8668    fi
8669  done
8670
8671
8672  { echo "$as_me:$LINENO: checking for iconv" >&5
8673echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
8674if test "${am_cv_func_iconv+set}" = set; then
8675  echo $ECHO_N "(cached) $ECHO_C" >&6
8676else
8677
8678    am_cv_func_iconv="no, consider installing GNU libiconv"
8679    am_cv_lib_iconv=no
8680    cat >conftest.$ac_ext <<_ACEOF
8681/* confdefs.h.  */
8682_ACEOF
8683cat confdefs.h >>conftest.$ac_ext
8684cat >>conftest.$ac_ext <<_ACEOF
8685/* end confdefs.h.  */
8686#include <stdlib.h>
8687#include <iconv.h>
8688int
8689main ()
8690{
8691iconv_t cd = iconv_open("","");
8692       iconv(cd,NULL,NULL,NULL,NULL);
8693       iconv_close(cd);
8694  ;
8695  return 0;
8696}
8697_ACEOF
8698rm -f conftest.$ac_objext conftest$ac_exeext
8699if { (ac_try="$ac_link"
8700case "(($ac_try" in
8701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8702  *) ac_try_echo=$ac_try;;
8703esac
8704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8705  (eval "$ac_link") 2>conftest.er1
8706  ac_status=$?
8707  grep -v '^ *+' conftest.er1 >conftest.err
8708  rm -f conftest.er1
8709  cat conftest.err >&5
8710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711  (exit $ac_status); } && {
8712	 test -z "$ac_c_werror_flag" ||
8713	 test ! -s conftest.err
8714       } && test -s conftest$ac_exeext &&
8715       $as_test_x conftest$ac_exeext; then
8716  am_cv_func_iconv=yes
8717else
8718  echo "$as_me: failed program was:" >&5
8719sed 's/^/| /' conftest.$ac_ext >&5
8720
8721
8722fi
8723
8724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8725      conftest$ac_exeext conftest.$ac_ext
8726    if test "$am_cv_func_iconv" != yes; then
8727      am_save_LIBS="$LIBS"
8728      LIBS="$LIBS $LIBICONV"
8729      cat >conftest.$ac_ext <<_ACEOF
8730/* confdefs.h.  */
8731_ACEOF
8732cat confdefs.h >>conftest.$ac_ext
8733cat >>conftest.$ac_ext <<_ACEOF
8734/* end confdefs.h.  */
8735#include <stdlib.h>
8736#include <iconv.h>
8737int
8738main ()
8739{
8740iconv_t cd = iconv_open("","");
8741         iconv(cd,NULL,NULL,NULL,NULL);
8742         iconv_close(cd);
8743  ;
8744  return 0;
8745}
8746_ACEOF
8747rm -f conftest.$ac_objext conftest$ac_exeext
8748if { (ac_try="$ac_link"
8749case "(($ac_try" in
8750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751  *) ac_try_echo=$ac_try;;
8752esac
8753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8754  (eval "$ac_link") 2>conftest.er1
8755  ac_status=$?
8756  grep -v '^ *+' conftest.er1 >conftest.err
8757  rm -f conftest.er1
8758  cat conftest.err >&5
8759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760  (exit $ac_status); } && {
8761	 test -z "$ac_c_werror_flag" ||
8762	 test ! -s conftest.err
8763       } && test -s conftest$ac_exeext &&
8764       $as_test_x conftest$ac_exeext; then
8765  am_cv_lib_iconv=yes
8766        am_cv_func_iconv=yes
8767else
8768  echo "$as_me: failed program was:" >&5
8769sed 's/^/| /' conftest.$ac_ext >&5
8770
8771
8772fi
8773
8774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8775      conftest$ac_exeext conftest.$ac_ext
8776      LIBS="$am_save_LIBS"
8777    fi
8778
8779fi
8780{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8781echo "${ECHO_T}$am_cv_func_iconv" >&6; }
8782  if test "$am_cv_func_iconv" = yes; then
8783
8784cat >>confdefs.h <<\_ACEOF
8785#define HAVE_ICONV 1
8786_ACEOF
8787
8788  fi
8789  if test "$am_cv_lib_iconv" = yes; then
8790    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8791echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
8792    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
8793echo "${ECHO_T}$LIBICONV" >&6; }
8794  else
8795            CPPFLAGS="$am_save_CPPFLAGS"
8796    LIBICONV=
8797    LTLIBICONV=
8798  fi
8799
8800
8801
8802  if test "$am_cv_func_iconv" = yes; then
8803    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
8804echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
8805    if test "${am_cv_proto_iconv+set}" = set; then
8806  echo $ECHO_N "(cached) $ECHO_C" >&6
8807else
8808
8809      cat >conftest.$ac_ext <<_ACEOF
8810/* confdefs.h.  */
8811_ACEOF
8812cat confdefs.h >>conftest.$ac_ext
8813cat >>conftest.$ac_ext <<_ACEOF
8814/* end confdefs.h.  */
8815
8816#include <stdlib.h>
8817#include <iconv.h>
8818extern
8819#ifdef __cplusplus
8820"C"
8821#endif
8822#if defined(__STDC__) || defined(__cplusplus)
8823size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8824#else
8825size_t iconv();
8826#endif
8827
8828int
8829main ()
8830{
8831
8832  ;
8833  return 0;
8834}
8835_ACEOF
8836rm -f conftest.$ac_objext
8837if { (ac_try="$ac_compile"
8838case "(($ac_try" in
8839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8840  *) ac_try_echo=$ac_try;;
8841esac
8842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8843  (eval "$ac_compile") 2>conftest.er1
8844  ac_status=$?
8845  grep -v '^ *+' conftest.er1 >conftest.err
8846  rm -f conftest.er1
8847  cat conftest.err >&5
8848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849  (exit $ac_status); } && {
8850	 test -z "$ac_c_werror_flag" ||
8851	 test ! -s conftest.err
8852       } && test -s conftest.$ac_objext; then
8853  am_cv_proto_iconv_arg1=""
8854else
8855  echo "$as_me: failed program was:" >&5
8856sed 's/^/| /' conftest.$ac_ext >&5
8857
8858	am_cv_proto_iconv_arg1="const"
8859fi
8860
8861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8862      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8863fi
8864
8865    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8866    { echo "$as_me:$LINENO: result: ${ac_t:-
8867         }$am_cv_proto_iconv" >&5
8868echo "${ECHO_T}${ac_t:-
8869         }$am_cv_proto_iconv" >&6; }
8870
8871cat >>confdefs.h <<_ACEOF
8872#define ICONV_CONST $am_cv_proto_iconv_arg1
8873_ACEOF
8874
8875  fi
8876
8877
8878      { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
8879echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
8880if test "${gt_cv_nl_locale_name+set}" = set; then
8881  echo $ECHO_N "(cached) $ECHO_C" >&6
8882else
8883  cat >conftest.$ac_ext <<_ACEOF
8884/* confdefs.h.  */
8885_ACEOF
8886cat confdefs.h >>conftest.$ac_ext
8887cat >>conftest.$ac_ext <<_ACEOF
8888/* end confdefs.h.  */
8889#include <langinfo.h>
8890#include <locale.h>
8891int
8892main ()
8893{
8894char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
8895  ;
8896  return 0;
8897}
8898_ACEOF
8899rm -f conftest.$ac_objext conftest$ac_exeext
8900if { (ac_try="$ac_link"
8901case "(($ac_try" in
8902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8903  *) ac_try_echo=$ac_try;;
8904esac
8905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8906  (eval "$ac_link") 2>conftest.er1
8907  ac_status=$?
8908  grep -v '^ *+' conftest.er1 >conftest.err
8909  rm -f conftest.er1
8910  cat conftest.err >&5
8911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912  (exit $ac_status); } && {
8913	 test -z "$ac_c_werror_flag" ||
8914	 test ! -s conftest.err
8915       } && test -s conftest$ac_exeext &&
8916       $as_test_x conftest$ac_exeext; then
8917  gt_cv_nl_locale_name=yes
8918else
8919  echo "$as_me: failed program was:" >&5
8920sed 's/^/| /' conftest.$ac_ext >&5
8921
8922	gt_cv_nl_locale_name=no
8923fi
8924
8925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8926      conftest$ac_exeext conftest.$ac_ext
8927
8928fi
8929{ echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
8930echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
8931  if test $gt_cv_nl_locale_name = yes; then
8932
8933cat >>confdefs.h <<\_ACEOF
8934#define HAVE_NL_LOCALE_NAME 1
8935_ACEOF
8936
8937  fi
8938
8939                      for ac_prog in bison
8940do
8941  # Extract the first word of "$ac_prog", so it can be a program name with args.
8942set dummy $ac_prog; ac_word=$2
8943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8945if test "${ac_cv_prog_INTLBISON+set}" = set; then
8946  echo $ECHO_N "(cached) $ECHO_C" >&6
8947else
8948  if test -n "$INTLBISON"; then
8949  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8950else
8951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8952for as_dir in $PATH
8953do
8954  IFS=$as_save_IFS
8955  test -z "$as_dir" && as_dir=.
8956  for ac_exec_ext in '' $ac_executable_extensions; do
8957  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8958    ac_cv_prog_INTLBISON="$ac_prog"
8959    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8960    break 2
8961  fi
8962done
8963done
8964IFS=$as_save_IFS
8965
8966fi
8967fi
8968INTLBISON=$ac_cv_prog_INTLBISON
8969if test -n "$INTLBISON"; then
8970  { echo "$as_me:$LINENO: result: $INTLBISON" >&5
8971echo "${ECHO_T}$INTLBISON" >&6; }
8972else
8973  { echo "$as_me:$LINENO: result: no" >&5
8974echo "${ECHO_T}no" >&6; }
8975fi
8976
8977
8978  test -n "$INTLBISON" && break
8979done
8980
8981  if test -z "$INTLBISON"; then
8982    ac_verc_fail=yes
8983  else
8984        { echo "$as_me:$LINENO: checking version of bison" >&5
8985echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
8986    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8987    case $ac_prog_version in
8988      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8989      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8990         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8991      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8992    esac
8993    { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8994echo "${ECHO_T}$ac_prog_version" >&6; }
8995  fi
8996  if test $ac_verc_fail = yes; then
8997    INTLBISON=:
8998  fi
8999
9000
9001  { echo "$as_me:$LINENO: checking for long long int" >&5
9002echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
9003if test "${ac_cv_type_long_long_int+set}" = set; then
9004  echo $ECHO_N "(cached) $ECHO_C" >&6
9005else
9006  cat >conftest.$ac_ext <<_ACEOF
9007/* confdefs.h.  */
9008_ACEOF
9009cat confdefs.h >>conftest.$ac_ext
9010cat >>conftest.$ac_ext <<_ACEOF
9011/* end confdefs.h.  */
9012long long int ll = 9223372036854775807ll;
9013	    long long int nll = -9223372036854775807LL;
9014	    typedef int a[((-9223372036854775807LL < 0
9015			    && 0 < 9223372036854775807ll)
9016			   ? 1 : -1)];
9017	    int i = 63;
9018int
9019main ()
9020{
9021long long int llmax = 9223372036854775807ll;
9022	    return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9023		    | (llmax / ll) | (llmax % ll));
9024  ;
9025  return 0;
9026}
9027_ACEOF
9028rm -f conftest.$ac_objext conftest$ac_exeext
9029if { (ac_try="$ac_link"
9030case "(($ac_try" in
9031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032  *) ac_try_echo=$ac_try;;
9033esac
9034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9035  (eval "$ac_link") 2>conftest.er1
9036  ac_status=$?
9037  grep -v '^ *+' conftest.er1 >conftest.err
9038  rm -f conftest.er1
9039  cat conftest.err >&5
9040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041  (exit $ac_status); } && {
9042	 test -z "$ac_c_werror_flag" ||
9043	 test ! -s conftest.err
9044       } && test -s conftest$ac_exeext &&
9045       $as_test_x conftest$ac_exeext; then
9046  ac_cv_type_long_long_int=yes
9047else
9048  echo "$as_me: failed program was:" >&5
9049sed 's/^/| /' conftest.$ac_ext >&5
9050
9051	ac_cv_type_long_long_int=no
9052fi
9053
9054rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9055      conftest$ac_exeext conftest.$ac_ext
9056fi
9057{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
9058echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
9059  if test $ac_cv_type_long_long_int = yes; then
9060
9061cat >>confdefs.h <<\_ACEOF
9062#define HAVE_LONG_LONG_INT 1
9063_ACEOF
9064
9065  fi
9066
9067
9068  { echo "$as_me:$LINENO: checking for long double" >&5
9069echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
9070if test "${gt_cv_c_long_double+set}" = set; then
9071  echo $ECHO_N "(cached) $ECHO_C" >&6
9072else
9073  if test "$GCC" = yes; then
9074       gt_cv_c_long_double=yes
9075     else
9076       cat >conftest.$ac_ext <<_ACEOF
9077/* confdefs.h.  */
9078_ACEOF
9079cat confdefs.h >>conftest.$ac_ext
9080cat >>conftest.$ac_ext <<_ACEOF
9081/* end confdefs.h.  */
9082
9083         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
9084         long double foo = 0.0;
9085         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
9086         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
9087
9088int
9089main ()
9090{
9091
9092  ;
9093  return 0;
9094}
9095_ACEOF
9096rm -f conftest.$ac_objext
9097if { (ac_try="$ac_compile"
9098case "(($ac_try" in
9099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9100  *) ac_try_echo=$ac_try;;
9101esac
9102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9103  (eval "$ac_compile") 2>conftest.er1
9104  ac_status=$?
9105  grep -v '^ *+' conftest.er1 >conftest.err
9106  rm -f conftest.er1
9107  cat conftest.err >&5
9108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109  (exit $ac_status); } && {
9110	 test -z "$ac_c_werror_flag" ||
9111	 test ! -s conftest.err
9112       } && test -s conftest.$ac_objext; then
9113  gt_cv_c_long_double=yes
9114else
9115  echo "$as_me: failed program was:" >&5
9116sed 's/^/| /' conftest.$ac_ext >&5
9117
9118	gt_cv_c_long_double=no
9119fi
9120
9121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9122     fi
9123fi
9124{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
9125echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
9126  if test $gt_cv_c_long_double = yes; then
9127
9128cat >>confdefs.h <<\_ACEOF
9129#define HAVE_LONG_DOUBLE 1
9130_ACEOF
9131
9132  fi
9133
9134
9135  { echo "$as_me:$LINENO: checking for wchar_t" >&5
9136echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
9137if test "${gt_cv_c_wchar_t+set}" = set; then
9138  echo $ECHO_N "(cached) $ECHO_C" >&6
9139else
9140  cat >conftest.$ac_ext <<_ACEOF
9141/* confdefs.h.  */
9142_ACEOF
9143cat confdefs.h >>conftest.$ac_ext
9144cat >>conftest.$ac_ext <<_ACEOF
9145/* end confdefs.h.  */
9146#include <stddef.h>
9147       wchar_t foo = (wchar_t)'\0';
9148int
9149main ()
9150{
9151
9152  ;
9153  return 0;
9154}
9155_ACEOF
9156rm -f conftest.$ac_objext
9157if { (ac_try="$ac_compile"
9158case "(($ac_try" in
9159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9160  *) ac_try_echo=$ac_try;;
9161esac
9162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9163  (eval "$ac_compile") 2>conftest.er1
9164  ac_status=$?
9165  grep -v '^ *+' conftest.er1 >conftest.err
9166  rm -f conftest.er1
9167  cat conftest.err >&5
9168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169  (exit $ac_status); } && {
9170	 test -z "$ac_c_werror_flag" ||
9171	 test ! -s conftest.err
9172       } && test -s conftest.$ac_objext; then
9173  gt_cv_c_wchar_t=yes
9174else
9175  echo "$as_me: failed program was:" >&5
9176sed 's/^/| /' conftest.$ac_ext >&5
9177
9178	gt_cv_c_wchar_t=no
9179fi
9180
9181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182fi
9183{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
9184echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
9185  if test $gt_cv_c_wchar_t = yes; then
9186
9187cat >>confdefs.h <<\_ACEOF
9188#define HAVE_WCHAR_T 1
9189_ACEOF
9190
9191  fi
9192
9193
9194  { echo "$as_me:$LINENO: checking for wint_t" >&5
9195echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
9196if test "${gt_cv_c_wint_t+set}" = set; then
9197  echo $ECHO_N "(cached) $ECHO_C" >&6
9198else
9199  cat >conftest.$ac_ext <<_ACEOF
9200/* confdefs.h.  */
9201_ACEOF
9202cat confdefs.h >>conftest.$ac_ext
9203cat >>conftest.$ac_ext <<_ACEOF
9204/* end confdefs.h.  */
9205#include <wchar.h>
9206       wint_t foo = (wchar_t)'\0';
9207int
9208main ()
9209{
9210
9211  ;
9212  return 0;
9213}
9214_ACEOF
9215rm -f conftest.$ac_objext
9216if { (ac_try="$ac_compile"
9217case "(($ac_try" in
9218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9219  *) ac_try_echo=$ac_try;;
9220esac
9221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9222  (eval "$ac_compile") 2>conftest.er1
9223  ac_status=$?
9224  grep -v '^ *+' conftest.er1 >conftest.err
9225  rm -f conftest.er1
9226  cat conftest.err >&5
9227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228  (exit $ac_status); } && {
9229	 test -z "$ac_c_werror_flag" ||
9230	 test ! -s conftest.err
9231       } && test -s conftest.$ac_objext; then
9232  gt_cv_c_wint_t=yes
9233else
9234  echo "$as_me: failed program was:" >&5
9235sed 's/^/| /' conftest.$ac_ext >&5
9236
9237	gt_cv_c_wint_t=no
9238fi
9239
9240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9241fi
9242{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
9243echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
9244  if test $gt_cv_c_wint_t = yes; then
9245
9246cat >>confdefs.h <<\_ACEOF
9247#define HAVE_WINT_T 1
9248_ACEOF
9249
9250  fi
9251
9252
9253
9254
9255  { echo "$as_me:$LINENO: checking for intmax_t" >&5
9256echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9257if test "${gt_cv_c_intmax_t+set}" = set; then
9258  echo $ECHO_N "(cached) $ECHO_C" >&6
9259else
9260  cat >conftest.$ac_ext <<_ACEOF
9261/* confdefs.h.  */
9262_ACEOF
9263cat confdefs.h >>conftest.$ac_ext
9264cat >>conftest.$ac_ext <<_ACEOF
9265/* end confdefs.h.  */
9266
9267#include <stddef.h>
9268#include <stdlib.h>
9269#if HAVE_STDINT_H_WITH_UINTMAX
9270#include <stdint.h>
9271#endif
9272#if HAVE_INTTYPES_H_WITH_UINTMAX
9273#include <inttypes.h>
9274#endif
9275
9276int
9277main ()
9278{
9279intmax_t x = -1;
9280        return !x;
9281  ;
9282  return 0;
9283}
9284_ACEOF
9285rm -f conftest.$ac_objext
9286if { (ac_try="$ac_compile"
9287case "(($ac_try" in
9288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289  *) ac_try_echo=$ac_try;;
9290esac
9291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292  (eval "$ac_compile") 2>conftest.er1
9293  ac_status=$?
9294  grep -v '^ *+' conftest.er1 >conftest.err
9295  rm -f conftest.er1
9296  cat conftest.err >&5
9297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298  (exit $ac_status); } && {
9299	 test -z "$ac_c_werror_flag" ||
9300	 test ! -s conftest.err
9301       } && test -s conftest.$ac_objext; then
9302  gt_cv_c_intmax_t=yes
9303else
9304  echo "$as_me: failed program was:" >&5
9305sed 's/^/| /' conftest.$ac_ext >&5
9306
9307	gt_cv_c_intmax_t=no
9308fi
9309
9310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9311fi
9312{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9313echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
9314  if test $gt_cv_c_intmax_t = yes; then
9315
9316cat >>confdefs.h <<\_ACEOF
9317#define HAVE_INTMAX_T 1
9318_ACEOF
9319
9320  fi
9321
9322
9323
9324  { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9325echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
9326if test "${gt_cv_func_printf_posix+set}" = set; then
9327  echo $ECHO_N "(cached) $ECHO_C" >&6
9328else
9329
9330      if test "$cross_compiling" = yes; then
9331
9332        cat >conftest.$ac_ext <<_ACEOF
9333/* confdefs.h.  */
9334_ACEOF
9335cat confdefs.h >>conftest.$ac_ext
9336cat >>conftest.$ac_ext <<_ACEOF
9337/* end confdefs.h.  */
9338
9339#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9340  notposix
9341#endif
9342
9343_ACEOF
9344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9345  $EGREP "notposix" >/dev/null 2>&1; then
9346  gt_cv_func_printf_posix="guessing no"
9347else
9348  gt_cv_func_printf_posix="guessing yes"
9349fi
9350rm -f conftest*
9351
9352
9353else
9354  cat >conftest.$ac_ext <<_ACEOF
9355/* confdefs.h.  */
9356_ACEOF
9357cat confdefs.h >>conftest.$ac_ext
9358cat >>conftest.$ac_ext <<_ACEOF
9359/* end confdefs.h.  */
9360
9361#include <stdio.h>
9362#include <string.h>
9363/* The string "%2$d %1$d", with dollar characters protected from the shell's
9364   dollar expansion (possibly an autoconf bug).  */
9365static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9366static char buf[100];
9367int main ()
9368{
9369  sprintf (buf, format, 33, 55);
9370  return (strcmp (buf, "55 33") != 0);
9371}
9372_ACEOF
9373rm -f conftest$ac_exeext
9374if { (ac_try="$ac_link"
9375case "(($ac_try" in
9376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377  *) ac_try_echo=$ac_try;;
9378esac
9379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380  (eval "$ac_link") 2>&5
9381  ac_status=$?
9382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9384  { (case "(($ac_try" in
9385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9386  *) ac_try_echo=$ac_try;;
9387esac
9388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9389  (eval "$ac_try") 2>&5
9390  ac_status=$?
9391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392  (exit $ac_status); }; }; then
9393  gt_cv_func_printf_posix=yes
9394else
9395  echo "$as_me: program exited with status $ac_status" >&5
9396echo "$as_me: failed program was:" >&5
9397sed 's/^/| /' conftest.$ac_ext >&5
9398
9399( exit $ac_status )
9400gt_cv_func_printf_posix=no
9401fi
9402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9403fi
9404
9405
9406
9407fi
9408{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9409echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9410  case $gt_cv_func_printf_posix in
9411    *yes)
9412
9413cat >>confdefs.h <<\_ACEOF
9414#define HAVE_POSIX_PRINTF 1
9415_ACEOF
9416
9417      ;;
9418  esac
9419
9420
9421    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9422echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9423if test "${ac_cv_gnu_library_2_1+set}" = set; then
9424  echo $ECHO_N "(cached) $ECHO_C" >&6
9425else
9426  cat >conftest.$ac_ext <<_ACEOF
9427/* confdefs.h.  */
9428_ACEOF
9429cat confdefs.h >>conftest.$ac_ext
9430cat >>conftest.$ac_ext <<_ACEOF
9431/* end confdefs.h.  */
9432
9433#include <features.h>
9434#ifdef __GNU_LIBRARY__
9435 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9436  Lucky GNU user
9437 #endif
9438#endif
9439
9440_ACEOF
9441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9442  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9443  ac_cv_gnu_library_2_1=yes
9444else
9445  ac_cv_gnu_library_2_1=no
9446fi
9447rm -f conftest*
9448
9449
9450
9451fi
9452{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9453echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9454
9455    GLIBC21="$ac_cv_gnu_library_2_1"
9456
9457
9458
9459
9460for ac_header in stdint.h
9461do
9462as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9463if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9464  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9467  echo $ECHO_N "(cached) $ECHO_C" >&6
9468fi
9469ac_res=`eval echo '${'$as_ac_Header'}'`
9470	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9471echo "${ECHO_T}$ac_res" >&6; }
9472else
9473  # Is the header compilable?
9474{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9475echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9476cat >conftest.$ac_ext <<_ACEOF
9477/* confdefs.h.  */
9478_ACEOF
9479cat confdefs.h >>conftest.$ac_ext
9480cat >>conftest.$ac_ext <<_ACEOF
9481/* end confdefs.h.  */
9482$ac_includes_default
9483#include <$ac_header>
9484_ACEOF
9485rm -f conftest.$ac_objext
9486if { (ac_try="$ac_compile"
9487case "(($ac_try" in
9488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489  *) ac_try_echo=$ac_try;;
9490esac
9491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492  (eval "$ac_compile") 2>conftest.er1
9493  ac_status=$?
9494  grep -v '^ *+' conftest.er1 >conftest.err
9495  rm -f conftest.er1
9496  cat conftest.err >&5
9497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498  (exit $ac_status); } && {
9499	 test -z "$ac_c_werror_flag" ||
9500	 test ! -s conftest.err
9501       } && test -s conftest.$ac_objext; then
9502  ac_header_compiler=yes
9503else
9504  echo "$as_me: failed program was:" >&5
9505sed 's/^/| /' conftest.$ac_ext >&5
9506
9507	ac_header_compiler=no
9508fi
9509
9510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9511{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9512echo "${ECHO_T}$ac_header_compiler" >&6; }
9513
9514# Is the header present?
9515{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9516echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9517cat >conftest.$ac_ext <<_ACEOF
9518/* confdefs.h.  */
9519_ACEOF
9520cat confdefs.h >>conftest.$ac_ext
9521cat >>conftest.$ac_ext <<_ACEOF
9522/* end confdefs.h.  */
9523#include <$ac_header>
9524_ACEOF
9525if { (ac_try="$ac_cpp conftest.$ac_ext"
9526case "(($ac_try" in
9527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9528  *) ac_try_echo=$ac_try;;
9529esac
9530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9531  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9532  ac_status=$?
9533  grep -v '^ *+' conftest.er1 >conftest.err
9534  rm -f conftest.er1
9535  cat conftest.err >&5
9536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537  (exit $ac_status); } >/dev/null && {
9538	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9539	 test ! -s conftest.err
9540       }; then
9541  ac_header_preproc=yes
9542else
9543  echo "$as_me: failed program was:" >&5
9544sed 's/^/| /' conftest.$ac_ext >&5
9545
9546  ac_header_preproc=no
9547fi
9548
9549rm -f conftest.err conftest.$ac_ext
9550{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9551echo "${ECHO_T}$ac_header_preproc" >&6; }
9552
9553# So?  What about this header?
9554case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9555  yes:no: )
9556    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9557echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9558    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9559echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9560    ac_header_preproc=yes
9561    ;;
9562  no:yes:* )
9563    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9564echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9565    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9566echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9567    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9568echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9569    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9570echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9571    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9572echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9573    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9574echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9575    ( cat <<\_ASBOX
9576## ------------------------------------ ##
9577## Report this to starplot@starplot.org ##
9578## ------------------------------------ ##
9579_ASBOX
9580     ) | sed "s/^/$as_me: WARNING:     /" >&2
9581    ;;
9582esac
9583{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9586  echo $ECHO_N "(cached) $ECHO_C" >&6
9587else
9588  eval "$as_ac_Header=\$ac_header_preproc"
9589fi
9590ac_res=`eval echo '${'$as_ac_Header'}'`
9591	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9592echo "${ECHO_T}$ac_res" >&6; }
9593
9594fi
9595if test `eval echo '${'$as_ac_Header'}'` = yes; then
9596  cat >>confdefs.h <<_ACEOF
9597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9598_ACEOF
9599
9600fi
9601
9602done
9603
9604    { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9605echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
9606  if test "${gl_cv_size_max+set}" = set; then
9607  echo $ECHO_N "(cached) $ECHO_C" >&6
9608else
9609
9610    gl_cv_size_max=
9611    cat >conftest.$ac_ext <<_ACEOF
9612/* confdefs.h.  */
9613_ACEOF
9614cat confdefs.h >>conftest.$ac_ext
9615cat >>conftest.$ac_ext <<_ACEOF
9616/* end confdefs.h.  */
9617
9618#include <limits.h>
9619#if HAVE_STDINT_H
9620#include <stdint.h>
9621#endif
9622#ifdef SIZE_MAX
9623Found it
9624#endif
9625
9626_ACEOF
9627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9628  $EGREP "Found it" >/dev/null 2>&1; then
9629  gl_cv_size_max=yes
9630fi
9631rm -f conftest*
9632
9633    if test -z "$gl_cv_size_max"; then
9634                        if test "$cross_compiling" = yes; then
9635  # Depending upon the size, compute the lo and hi bounds.
9636cat >conftest.$ac_ext <<_ACEOF
9637/* confdefs.h.  */
9638_ACEOF
9639cat confdefs.h >>conftest.$ac_ext
9640cat >>conftest.$ac_ext <<_ACEOF
9641/* end confdefs.h.  */
9642#include <stddef.h>
9643#include <limits.h>
9644int
9645main ()
9646{
9647static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
9648test_array [0] = 0
9649
9650  ;
9651  return 0;
9652}
9653_ACEOF
9654rm -f conftest.$ac_objext
9655if { (ac_try="$ac_compile"
9656case "(($ac_try" in
9657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658  *) ac_try_echo=$ac_try;;
9659esac
9660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661  (eval "$ac_compile") 2>conftest.er1
9662  ac_status=$?
9663  grep -v '^ *+' conftest.er1 >conftest.err
9664  rm -f conftest.er1
9665  cat conftest.err >&5
9666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667  (exit $ac_status); } && {
9668	 test -z "$ac_c_werror_flag" ||
9669	 test ! -s conftest.err
9670       } && test -s conftest.$ac_objext; then
9671  ac_lo=0 ac_mid=0
9672  while :; do
9673    cat >conftest.$ac_ext <<_ACEOF
9674/* confdefs.h.  */
9675_ACEOF
9676cat confdefs.h >>conftest.$ac_ext
9677cat >>conftest.$ac_ext <<_ACEOF
9678/* end confdefs.h.  */
9679#include <stddef.h>
9680#include <limits.h>
9681int
9682main ()
9683{
9684static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
9685test_array [0] = 0
9686
9687  ;
9688  return 0;
9689}
9690_ACEOF
9691rm -f conftest.$ac_objext
9692if { (ac_try="$ac_compile"
9693case "(($ac_try" in
9694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9695  *) ac_try_echo=$ac_try;;
9696esac
9697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9698  (eval "$ac_compile") 2>conftest.er1
9699  ac_status=$?
9700  grep -v '^ *+' conftest.er1 >conftest.err
9701  rm -f conftest.er1
9702  cat conftest.err >&5
9703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704  (exit $ac_status); } && {
9705	 test -z "$ac_c_werror_flag" ||
9706	 test ! -s conftest.err
9707       } && test -s conftest.$ac_objext; then
9708  ac_hi=$ac_mid; break
9709else
9710  echo "$as_me: failed program was:" >&5
9711sed 's/^/| /' conftest.$ac_ext >&5
9712
9713	ac_lo=`expr $ac_mid + 1`
9714			if test $ac_lo -le $ac_mid; then
9715			  ac_lo= ac_hi=
9716			  break
9717			fi
9718			ac_mid=`expr 2 '*' $ac_mid + 1`
9719fi
9720
9721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9722  done
9723else
9724  echo "$as_me: failed program was:" >&5
9725sed 's/^/| /' conftest.$ac_ext >&5
9726
9727	cat >conftest.$ac_ext <<_ACEOF
9728/* confdefs.h.  */
9729_ACEOF
9730cat confdefs.h >>conftest.$ac_ext
9731cat >>conftest.$ac_ext <<_ACEOF
9732/* end confdefs.h.  */
9733#include <stddef.h>
9734#include <limits.h>
9735int
9736main ()
9737{
9738static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
9739test_array [0] = 0
9740
9741  ;
9742  return 0;
9743}
9744_ACEOF
9745rm -f conftest.$ac_objext
9746if { (ac_try="$ac_compile"
9747case "(($ac_try" in
9748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749  *) ac_try_echo=$ac_try;;
9750esac
9751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752  (eval "$ac_compile") 2>conftest.er1
9753  ac_status=$?
9754  grep -v '^ *+' conftest.er1 >conftest.err
9755  rm -f conftest.er1
9756  cat conftest.err >&5
9757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758  (exit $ac_status); } && {
9759	 test -z "$ac_c_werror_flag" ||
9760	 test ! -s conftest.err
9761       } && test -s conftest.$ac_objext; then
9762  ac_hi=-1 ac_mid=-1
9763  while :; do
9764    cat >conftest.$ac_ext <<_ACEOF
9765/* confdefs.h.  */
9766_ACEOF
9767cat confdefs.h >>conftest.$ac_ext
9768cat >>conftest.$ac_ext <<_ACEOF
9769/* end confdefs.h.  */
9770#include <stddef.h>
9771#include <limits.h>
9772int
9773main ()
9774{
9775static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
9776test_array [0] = 0
9777
9778  ;
9779  return 0;
9780}
9781_ACEOF
9782rm -f conftest.$ac_objext
9783if { (ac_try="$ac_compile"
9784case "(($ac_try" in
9785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786  *) ac_try_echo=$ac_try;;
9787esac
9788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789  (eval "$ac_compile") 2>conftest.er1
9790  ac_status=$?
9791  grep -v '^ *+' conftest.er1 >conftest.err
9792  rm -f conftest.er1
9793  cat conftest.err >&5
9794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795  (exit $ac_status); } && {
9796	 test -z "$ac_c_werror_flag" ||
9797	 test ! -s conftest.err
9798       } && test -s conftest.$ac_objext; then
9799  ac_lo=$ac_mid; break
9800else
9801  echo "$as_me: failed program was:" >&5
9802sed 's/^/| /' conftest.$ac_ext >&5
9803
9804	ac_hi=`expr '(' $ac_mid ')' - 1`
9805			if test $ac_mid -le $ac_hi; then
9806			  ac_lo= ac_hi=
9807			  break
9808			fi
9809			ac_mid=`expr 2 '*' $ac_mid`
9810fi
9811
9812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9813  done
9814else
9815  echo "$as_me: failed program was:" >&5
9816sed 's/^/| /' conftest.$ac_ext >&5
9817
9818	ac_lo= ac_hi=
9819fi
9820
9821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9822fi
9823
9824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9825# Binary search between lo and hi bounds.
9826while test "x$ac_lo" != "x$ac_hi"; do
9827  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9828  cat >conftest.$ac_ext <<_ACEOF
9829/* confdefs.h.  */
9830_ACEOF
9831cat confdefs.h >>conftest.$ac_ext
9832cat >>conftest.$ac_ext <<_ACEOF
9833/* end confdefs.h.  */
9834#include <stddef.h>
9835#include <limits.h>
9836int
9837main ()
9838{
9839static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
9840test_array [0] = 0
9841
9842  ;
9843  return 0;
9844}
9845_ACEOF
9846rm -f conftest.$ac_objext
9847if { (ac_try="$ac_compile"
9848case "(($ac_try" in
9849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850  *) ac_try_echo=$ac_try;;
9851esac
9852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853  (eval "$ac_compile") 2>conftest.er1
9854  ac_status=$?
9855  grep -v '^ *+' conftest.er1 >conftest.err
9856  rm -f conftest.er1
9857  cat conftest.err >&5
9858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859  (exit $ac_status); } && {
9860	 test -z "$ac_c_werror_flag" ||
9861	 test ! -s conftest.err
9862       } && test -s conftest.$ac_objext; then
9863  ac_hi=$ac_mid
9864else
9865  echo "$as_me: failed program was:" >&5
9866sed 's/^/| /' conftest.$ac_ext >&5
9867
9868	ac_lo=`expr '(' $ac_mid ')' + 1`
9869fi
9870
9871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9872done
9873case $ac_lo in
9874?*) size_t_bits_minus_1=$ac_lo;;
9875'') size_t_bits_minus_1= ;;
9876esac
9877else
9878  cat >conftest.$ac_ext <<_ACEOF
9879/* confdefs.h.  */
9880_ACEOF
9881cat confdefs.h >>conftest.$ac_ext
9882cat >>conftest.$ac_ext <<_ACEOF
9883/* end confdefs.h.  */
9884#include <stddef.h>
9885#include <limits.h>
9886static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
9887static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
9888#include <stdio.h>
9889#include <stdlib.h>
9890int
9891main ()
9892{
9893
9894  FILE *f = fopen ("conftest.val", "w");
9895  if (! f)
9896    return 1;
9897  if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
9898    {
9899      long int i = longval ();
9900      if (i != (sizeof (size_t) * CHAR_BIT - 1))
9901	return 1;
9902      fprintf (f, "%ld\n", i);
9903    }
9904  else
9905    {
9906      unsigned long int i = ulongval ();
9907      if (i != (sizeof (size_t) * CHAR_BIT - 1))
9908	return 1;
9909      fprintf (f, "%lu\n", i);
9910    }
9911  return ferror (f) || fclose (f) != 0;
9912
9913  ;
9914  return 0;
9915}
9916_ACEOF
9917rm -f conftest$ac_exeext
9918if { (ac_try="$ac_link"
9919case "(($ac_try" in
9920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921  *) ac_try_echo=$ac_try;;
9922esac
9923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924  (eval "$ac_link") 2>&5
9925  ac_status=$?
9926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9928  { (case "(($ac_try" in
9929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930  *) ac_try_echo=$ac_try;;
9931esac
9932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933  (eval "$ac_try") 2>&5
9934  ac_status=$?
9935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936  (exit $ac_status); }; }; then
9937  size_t_bits_minus_1=`cat conftest.val`
9938else
9939  echo "$as_me: program exited with status $ac_status" >&5
9940echo "$as_me: failed program was:" >&5
9941sed 's/^/| /' conftest.$ac_ext >&5
9942
9943( exit $ac_status )
9944size_t_bits_minus_1=
9945fi
9946rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9947fi
9948rm -f conftest.val
9949
9950      if test "$cross_compiling" = yes; then
9951  # Depending upon the size, compute the lo and hi bounds.
9952cat >conftest.$ac_ext <<_ACEOF
9953/* confdefs.h.  */
9954_ACEOF
9955cat confdefs.h >>conftest.$ac_ext
9956cat >>conftest.$ac_ext <<_ACEOF
9957/* end confdefs.h.  */
9958#include <stddef.h>
9959int
9960main ()
9961{
9962static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
9963test_array [0] = 0
9964
9965  ;
9966  return 0;
9967}
9968_ACEOF
9969rm -f conftest.$ac_objext
9970if { (ac_try="$ac_compile"
9971case "(($ac_try" in
9972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973  *) ac_try_echo=$ac_try;;
9974esac
9975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976  (eval "$ac_compile") 2>conftest.er1
9977  ac_status=$?
9978  grep -v '^ *+' conftest.er1 >conftest.err
9979  rm -f conftest.er1
9980  cat conftest.err >&5
9981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982  (exit $ac_status); } && {
9983	 test -z "$ac_c_werror_flag" ||
9984	 test ! -s conftest.err
9985       } && test -s conftest.$ac_objext; then
9986  ac_lo=0 ac_mid=0
9987  while :; do
9988    cat >conftest.$ac_ext <<_ACEOF
9989/* confdefs.h.  */
9990_ACEOF
9991cat confdefs.h >>conftest.$ac_ext
9992cat >>conftest.$ac_ext <<_ACEOF
9993/* end confdefs.h.  */
9994#include <stddef.h>
9995int
9996main ()
9997{
9998static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
9999test_array [0] = 0
10000
10001  ;
10002  return 0;
10003}
10004_ACEOF
10005rm -f conftest.$ac_objext
10006if { (ac_try="$ac_compile"
10007case "(($ac_try" in
10008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009  *) ac_try_echo=$ac_try;;
10010esac
10011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012  (eval "$ac_compile") 2>conftest.er1
10013  ac_status=$?
10014  grep -v '^ *+' conftest.er1 >conftest.err
10015  rm -f conftest.er1
10016  cat conftest.err >&5
10017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018  (exit $ac_status); } && {
10019	 test -z "$ac_c_werror_flag" ||
10020	 test ! -s conftest.err
10021       } && test -s conftest.$ac_objext; then
10022  ac_hi=$ac_mid; break
10023else
10024  echo "$as_me: failed program was:" >&5
10025sed 's/^/| /' conftest.$ac_ext >&5
10026
10027	ac_lo=`expr $ac_mid + 1`
10028			if test $ac_lo -le $ac_mid; then
10029			  ac_lo= ac_hi=
10030			  break
10031			fi
10032			ac_mid=`expr 2 '*' $ac_mid + 1`
10033fi
10034
10035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10036  done
10037else
10038  echo "$as_me: failed program was:" >&5
10039sed 's/^/| /' conftest.$ac_ext >&5
10040
10041	cat >conftest.$ac_ext <<_ACEOF
10042/* confdefs.h.  */
10043_ACEOF
10044cat confdefs.h >>conftest.$ac_ext
10045cat >>conftest.$ac_ext <<_ACEOF
10046/* end confdefs.h.  */
10047#include <stddef.h>
10048int
10049main ()
10050{
10051static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10052test_array [0] = 0
10053
10054  ;
10055  return 0;
10056}
10057_ACEOF
10058rm -f conftest.$ac_objext
10059if { (ac_try="$ac_compile"
10060case "(($ac_try" in
10061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062  *) ac_try_echo=$ac_try;;
10063esac
10064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10065  (eval "$ac_compile") 2>conftest.er1
10066  ac_status=$?
10067  grep -v '^ *+' conftest.er1 >conftest.err
10068  rm -f conftest.er1
10069  cat conftest.err >&5
10070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071  (exit $ac_status); } && {
10072	 test -z "$ac_c_werror_flag" ||
10073	 test ! -s conftest.err
10074       } && test -s conftest.$ac_objext; then
10075  ac_hi=-1 ac_mid=-1
10076  while :; do
10077    cat >conftest.$ac_ext <<_ACEOF
10078/* confdefs.h.  */
10079_ACEOF
10080cat confdefs.h >>conftest.$ac_ext
10081cat >>conftest.$ac_ext <<_ACEOF
10082/* end confdefs.h.  */
10083#include <stddef.h>
10084int
10085main ()
10086{
10087static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10088test_array [0] = 0
10089
10090  ;
10091  return 0;
10092}
10093_ACEOF
10094rm -f conftest.$ac_objext
10095if { (ac_try="$ac_compile"
10096case "(($ac_try" in
10097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098  *) ac_try_echo=$ac_try;;
10099esac
10100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101  (eval "$ac_compile") 2>conftest.er1
10102  ac_status=$?
10103  grep -v '^ *+' conftest.er1 >conftest.err
10104  rm -f conftest.er1
10105  cat conftest.err >&5
10106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107  (exit $ac_status); } && {
10108	 test -z "$ac_c_werror_flag" ||
10109	 test ! -s conftest.err
10110       } && test -s conftest.$ac_objext; then
10111  ac_lo=$ac_mid; break
10112else
10113  echo "$as_me: failed program was:" >&5
10114sed 's/^/| /' conftest.$ac_ext >&5
10115
10116	ac_hi=`expr '(' $ac_mid ')' - 1`
10117			if test $ac_mid -le $ac_hi; then
10118			  ac_lo= ac_hi=
10119			  break
10120			fi
10121			ac_mid=`expr 2 '*' $ac_mid`
10122fi
10123
10124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10125  done
10126else
10127  echo "$as_me: failed program was:" >&5
10128sed 's/^/| /' conftest.$ac_ext >&5
10129
10130	ac_lo= ac_hi=
10131fi
10132
10133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10134fi
10135
10136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10137# Binary search between lo and hi bounds.
10138while test "x$ac_lo" != "x$ac_hi"; do
10139  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10140  cat >conftest.$ac_ext <<_ACEOF
10141/* confdefs.h.  */
10142_ACEOF
10143cat confdefs.h >>conftest.$ac_ext
10144cat >>conftest.$ac_ext <<_ACEOF
10145/* end confdefs.h.  */
10146#include <stddef.h>
10147int
10148main ()
10149{
10150static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10151test_array [0] = 0
10152
10153  ;
10154  return 0;
10155}
10156_ACEOF
10157rm -f conftest.$ac_objext
10158if { (ac_try="$ac_compile"
10159case "(($ac_try" in
10160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161  *) ac_try_echo=$ac_try;;
10162esac
10163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10164  (eval "$ac_compile") 2>conftest.er1
10165  ac_status=$?
10166  grep -v '^ *+' conftest.er1 >conftest.err
10167  rm -f conftest.er1
10168  cat conftest.err >&5
10169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170  (exit $ac_status); } && {
10171	 test -z "$ac_c_werror_flag" ||
10172	 test ! -s conftest.err
10173       } && test -s conftest.$ac_objext; then
10174  ac_hi=$ac_mid
10175else
10176  echo "$as_me: failed program was:" >&5
10177sed 's/^/| /' conftest.$ac_ext >&5
10178
10179	ac_lo=`expr '(' $ac_mid ')' + 1`
10180fi
10181
10182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10183done
10184case $ac_lo in
10185?*) fits_in_uint=$ac_lo;;
10186'') fits_in_uint= ;;
10187esac
10188else
10189  cat >conftest.$ac_ext <<_ACEOF
10190/* confdefs.h.  */
10191_ACEOF
10192cat confdefs.h >>conftest.$ac_ext
10193cat >>conftest.$ac_ext <<_ACEOF
10194/* end confdefs.h.  */
10195#include <stddef.h>
10196static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10197static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10198#include <stdio.h>
10199#include <stdlib.h>
10200int
10201main ()
10202{
10203
10204  FILE *f = fopen ("conftest.val", "w");
10205  if (! f)
10206    return 1;
10207  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10208    {
10209      long int i = longval ();
10210      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10211	return 1;
10212      fprintf (f, "%ld\n", i);
10213    }
10214  else
10215    {
10216      unsigned long int i = ulongval ();
10217      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10218	return 1;
10219      fprintf (f, "%lu\n", i);
10220    }
10221  return ferror (f) || fclose (f) != 0;
10222
10223  ;
10224  return 0;
10225}
10226_ACEOF
10227rm -f conftest$ac_exeext
10228if { (ac_try="$ac_link"
10229case "(($ac_try" in
10230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231  *) ac_try_echo=$ac_try;;
10232esac
10233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234  (eval "$ac_link") 2>&5
10235  ac_status=$?
10236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10238  { (case "(($ac_try" in
10239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240  *) ac_try_echo=$ac_try;;
10241esac
10242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243  (eval "$ac_try") 2>&5
10244  ac_status=$?
10245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246  (exit $ac_status); }; }; then
10247  fits_in_uint=`cat conftest.val`
10248else
10249  echo "$as_me: program exited with status $ac_status" >&5
10250echo "$as_me: failed program was:" >&5
10251sed 's/^/| /' conftest.$ac_ext >&5
10252
10253( exit $ac_status )
10254fits_in_uint=
10255fi
10256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10257fi
10258rm -f conftest.val
10259
10260      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10261        if test $fits_in_uint = 1; then
10262                              cat >conftest.$ac_ext <<_ACEOF
10263/* confdefs.h.  */
10264_ACEOF
10265cat confdefs.h >>conftest.$ac_ext
10266cat >>conftest.$ac_ext <<_ACEOF
10267/* end confdefs.h.  */
10268#include <stddef.h>
10269            extern size_t foo;
10270            extern unsigned long foo;
10271
10272int
10273main ()
10274{
10275
10276  ;
10277  return 0;
10278}
10279_ACEOF
10280rm -f conftest.$ac_objext
10281if { (ac_try="$ac_compile"
10282case "(($ac_try" in
10283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284  *) ac_try_echo=$ac_try;;
10285esac
10286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287  (eval "$ac_compile") 2>conftest.er1
10288  ac_status=$?
10289  grep -v '^ *+' conftest.er1 >conftest.err
10290  rm -f conftest.er1
10291  cat conftest.err >&5
10292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293  (exit $ac_status); } && {
10294	 test -z "$ac_c_werror_flag" ||
10295	 test ! -s conftest.err
10296       } && test -s conftest.$ac_objext; then
10297  fits_in_uint=0
10298else
10299  echo "$as_me: failed program was:" >&5
10300sed 's/^/| /' conftest.$ac_ext >&5
10301
10302
10303fi
10304
10305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10306        fi
10307                                if test $fits_in_uint = 1; then
10308          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10309        else
10310          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10311        fi
10312      else
10313                gl_cv_size_max='((size_t)~(size_t)0)'
10314      fi
10315    fi
10316
10317fi
10318
10319  { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
10320echo "${ECHO_T}$gl_cv_size_max" >&6; }
10321  if test "$gl_cv_size_max" != yes; then
10322
10323cat >>confdefs.h <<_ACEOF
10324#define SIZE_MAX $gl_cv_size_max
10325_ACEOF
10326
10327  fi
10328
10329
10330
10331
10332
10333for ac_header in stdint.h
10334do
10335as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10337  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10339if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10340  echo $ECHO_N "(cached) $ECHO_C" >&6
10341fi
10342ac_res=`eval echo '${'$as_ac_Header'}'`
10343	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10344echo "${ECHO_T}$ac_res" >&6; }
10345else
10346  # Is the header compilable?
10347{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10348echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10349cat >conftest.$ac_ext <<_ACEOF
10350/* confdefs.h.  */
10351_ACEOF
10352cat confdefs.h >>conftest.$ac_ext
10353cat >>conftest.$ac_ext <<_ACEOF
10354/* end confdefs.h.  */
10355$ac_includes_default
10356#include <$ac_header>
10357_ACEOF
10358rm -f conftest.$ac_objext
10359if { (ac_try="$ac_compile"
10360case "(($ac_try" in
10361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362  *) ac_try_echo=$ac_try;;
10363esac
10364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365  (eval "$ac_compile") 2>conftest.er1
10366  ac_status=$?
10367  grep -v '^ *+' conftest.er1 >conftest.err
10368  rm -f conftest.er1
10369  cat conftest.err >&5
10370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371  (exit $ac_status); } && {
10372	 test -z "$ac_c_werror_flag" ||
10373	 test ! -s conftest.err
10374       } && test -s conftest.$ac_objext; then
10375  ac_header_compiler=yes
10376else
10377  echo "$as_me: failed program was:" >&5
10378sed 's/^/| /' conftest.$ac_ext >&5
10379
10380	ac_header_compiler=no
10381fi
10382
10383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10384{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10385echo "${ECHO_T}$ac_header_compiler" >&6; }
10386
10387# Is the header present?
10388{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10389echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10390cat >conftest.$ac_ext <<_ACEOF
10391/* confdefs.h.  */
10392_ACEOF
10393cat confdefs.h >>conftest.$ac_ext
10394cat >>conftest.$ac_ext <<_ACEOF
10395/* end confdefs.h.  */
10396#include <$ac_header>
10397_ACEOF
10398if { (ac_try="$ac_cpp conftest.$ac_ext"
10399case "(($ac_try" in
10400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401  *) ac_try_echo=$ac_try;;
10402esac
10403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10405  ac_status=$?
10406  grep -v '^ *+' conftest.er1 >conftest.err
10407  rm -f conftest.er1
10408  cat conftest.err >&5
10409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410  (exit $ac_status); } >/dev/null && {
10411	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10412	 test ! -s conftest.err
10413       }; then
10414  ac_header_preproc=yes
10415else
10416  echo "$as_me: failed program was:" >&5
10417sed 's/^/| /' conftest.$ac_ext >&5
10418
10419  ac_header_preproc=no
10420fi
10421
10422rm -f conftest.err conftest.$ac_ext
10423{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10424echo "${ECHO_T}$ac_header_preproc" >&6; }
10425
10426# So?  What about this header?
10427case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10428  yes:no: )
10429    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10430echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10431    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10432echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10433    ac_header_preproc=yes
10434    ;;
10435  no:yes:* )
10436    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10437echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10438    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10439echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10440    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10441echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10442    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10443echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10444    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10445echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10446    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10447echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10448    ( cat <<\_ASBOX
10449## ------------------------------------ ##
10450## Report this to starplot@starplot.org ##
10451## ------------------------------------ ##
10452_ASBOX
10453     ) | sed "s/^/$as_me: WARNING:     /" >&2
10454    ;;
10455esac
10456{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10458if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10459  echo $ECHO_N "(cached) $ECHO_C" >&6
10460else
10461  eval "$as_ac_Header=\$ac_header_preproc"
10462fi
10463ac_res=`eval echo '${'$as_ac_Header'}'`
10464	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10465echo "${ECHO_T}$ac_res" >&6; }
10466
10467fi
10468if test `eval echo '${'$as_ac_Header'}'` = yes; then
10469  cat >>confdefs.h <<_ACEOF
10470#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10471_ACEOF
10472
10473fi
10474
10475done
10476
10477
10478
10479    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
10480echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
10481if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
10482  echo $ECHO_N "(cached) $ECHO_C" >&6
10483else
10484  gt_save_LIBS="$LIBS"
10485     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10486     cat >conftest.$ac_ext <<_ACEOF
10487/* confdefs.h.  */
10488_ACEOF
10489cat confdefs.h >>conftest.$ac_ext
10490cat >>conftest.$ac_ext <<_ACEOF
10491/* end confdefs.h.  */
10492#include <CoreFoundation/CFPreferences.h>
10493int
10494main ()
10495{
10496CFPreferencesCopyAppValue(NULL, NULL)
10497  ;
10498  return 0;
10499}
10500_ACEOF
10501rm -f conftest.$ac_objext conftest$ac_exeext
10502if { (ac_try="$ac_link"
10503case "(($ac_try" in
10504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10505  *) ac_try_echo=$ac_try;;
10506esac
10507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10508  (eval "$ac_link") 2>conftest.er1
10509  ac_status=$?
10510  grep -v '^ *+' conftest.er1 >conftest.err
10511  rm -f conftest.er1
10512  cat conftest.err >&5
10513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514  (exit $ac_status); } && {
10515	 test -z "$ac_c_werror_flag" ||
10516	 test ! -s conftest.err
10517       } && test -s conftest$ac_exeext &&
10518       $as_test_x conftest$ac_exeext; then
10519  gt_cv_func_CFPreferencesCopyAppValue=yes
10520else
10521  echo "$as_me: failed program was:" >&5
10522sed 's/^/| /' conftest.$ac_ext >&5
10523
10524	gt_cv_func_CFPreferencesCopyAppValue=no
10525fi
10526
10527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10528      conftest$ac_exeext conftest.$ac_ext
10529     LIBS="$gt_save_LIBS"
10530fi
10531{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10532echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10533  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10534
10535cat >>confdefs.h <<\_ACEOF
10536#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
10537_ACEOF
10538
10539  fi
10540    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
10541echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
10542if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
10543  echo $ECHO_N "(cached) $ECHO_C" >&6
10544else
10545  gt_save_LIBS="$LIBS"
10546     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10547     cat >conftest.$ac_ext <<_ACEOF
10548/* confdefs.h.  */
10549_ACEOF
10550cat confdefs.h >>conftest.$ac_ext
10551cat >>conftest.$ac_ext <<_ACEOF
10552/* end confdefs.h.  */
10553#include <CoreFoundation/CFLocale.h>
10554int
10555main ()
10556{
10557CFLocaleCopyCurrent();
10558  ;
10559  return 0;
10560}
10561_ACEOF
10562rm -f conftest.$ac_objext conftest$ac_exeext
10563if { (ac_try="$ac_link"
10564case "(($ac_try" in
10565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566  *) ac_try_echo=$ac_try;;
10567esac
10568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10569  (eval "$ac_link") 2>conftest.er1
10570  ac_status=$?
10571  grep -v '^ *+' conftest.er1 >conftest.err
10572  rm -f conftest.er1
10573  cat conftest.err >&5
10574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575  (exit $ac_status); } && {
10576	 test -z "$ac_c_werror_flag" ||
10577	 test ! -s conftest.err
10578       } && test -s conftest$ac_exeext &&
10579       $as_test_x conftest$ac_exeext; then
10580  gt_cv_func_CFLocaleCopyCurrent=yes
10581else
10582  echo "$as_me: failed program was:" >&5
10583sed 's/^/| /' conftest.$ac_ext >&5
10584
10585	gt_cv_func_CFLocaleCopyCurrent=no
10586fi
10587
10588rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10589      conftest$ac_exeext conftest.$ac_ext
10590     LIBS="$gt_save_LIBS"
10591fi
10592{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10593echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10594  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10595
10596cat >>confdefs.h <<\_ACEOF
10597#define HAVE_CFLOCALECOPYCURRENT 1
10598_ACEOF
10599
10600  fi
10601  INTL_MACOSX_LIBS=
10602  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10603    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10604  fi
10605
10606
10607
10608
10609
10610
10611
10612  { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10613echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
10614if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10615  echo $ECHO_N "(cached) $ECHO_C" >&6
10616else
10617  cat >conftest.$ac_ext <<_ACEOF
10618/* confdefs.h.  */
10619_ACEOF
10620cat confdefs.h >>conftest.$ac_ext
10621cat >>conftest.$ac_ext <<_ACEOF
10622/* end confdefs.h.  */
10623$ac_includes_default
10624typedef ptrdiff_t ac__type_new_;
10625int
10626main ()
10627{
10628if ((ac__type_new_ *) 0)
10629  return 0;
10630if (sizeof (ac__type_new_))
10631  return 0;
10632  ;
10633  return 0;
10634}
10635_ACEOF
10636rm -f conftest.$ac_objext
10637if { (ac_try="$ac_compile"
10638case "(($ac_try" in
10639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10640  *) ac_try_echo=$ac_try;;
10641esac
10642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10643  (eval "$ac_compile") 2>conftest.er1
10644  ac_status=$?
10645  grep -v '^ *+' conftest.er1 >conftest.err
10646  rm -f conftest.er1
10647  cat conftest.err >&5
10648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649  (exit $ac_status); } && {
10650	 test -z "$ac_c_werror_flag" ||
10651	 test ! -s conftest.err
10652       } && test -s conftest.$ac_objext; then
10653  ac_cv_type_ptrdiff_t=yes
10654else
10655  echo "$as_me: failed program was:" >&5
10656sed 's/^/| /' conftest.$ac_ext >&5
10657
10658	ac_cv_type_ptrdiff_t=no
10659fi
10660
10661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10662fi
10663{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10664echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
10665if test $ac_cv_type_ptrdiff_t = yes; then
10666  :
10667else
10668
10669cat >>confdefs.h <<\_ACEOF
10670#define ptrdiff_t long
10671_ACEOF
10672
10673
10674fi
10675
10676
10677
10678
10679for ac_header in stddef.h stdlib.h string.h
10680do
10681as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10683  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10686  echo $ECHO_N "(cached) $ECHO_C" >&6
10687fi
10688ac_res=`eval echo '${'$as_ac_Header'}'`
10689	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10690echo "${ECHO_T}$ac_res" >&6; }
10691else
10692  # Is the header compilable?
10693{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10694echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10695cat >conftest.$ac_ext <<_ACEOF
10696/* confdefs.h.  */
10697_ACEOF
10698cat confdefs.h >>conftest.$ac_ext
10699cat >>conftest.$ac_ext <<_ACEOF
10700/* end confdefs.h.  */
10701$ac_includes_default
10702#include <$ac_header>
10703_ACEOF
10704rm -f conftest.$ac_objext
10705if { (ac_try="$ac_compile"
10706case "(($ac_try" in
10707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708  *) ac_try_echo=$ac_try;;
10709esac
10710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711  (eval "$ac_compile") 2>conftest.er1
10712  ac_status=$?
10713  grep -v '^ *+' conftest.er1 >conftest.err
10714  rm -f conftest.er1
10715  cat conftest.err >&5
10716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717  (exit $ac_status); } && {
10718	 test -z "$ac_c_werror_flag" ||
10719	 test ! -s conftest.err
10720       } && test -s conftest.$ac_objext; then
10721  ac_header_compiler=yes
10722else
10723  echo "$as_me: failed program was:" >&5
10724sed 's/^/| /' conftest.$ac_ext >&5
10725
10726	ac_header_compiler=no
10727fi
10728
10729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10730{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10731echo "${ECHO_T}$ac_header_compiler" >&6; }
10732
10733# Is the header present?
10734{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10735echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10736cat >conftest.$ac_ext <<_ACEOF
10737/* confdefs.h.  */
10738_ACEOF
10739cat confdefs.h >>conftest.$ac_ext
10740cat >>conftest.$ac_ext <<_ACEOF
10741/* end confdefs.h.  */
10742#include <$ac_header>
10743_ACEOF
10744if { (ac_try="$ac_cpp conftest.$ac_ext"
10745case "(($ac_try" in
10746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747  *) ac_try_echo=$ac_try;;
10748esac
10749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10751  ac_status=$?
10752  grep -v '^ *+' conftest.er1 >conftest.err
10753  rm -f conftest.er1
10754  cat conftest.err >&5
10755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756  (exit $ac_status); } >/dev/null && {
10757	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10758	 test ! -s conftest.err
10759       }; then
10760  ac_header_preproc=yes
10761else
10762  echo "$as_me: failed program was:" >&5
10763sed 's/^/| /' conftest.$ac_ext >&5
10764
10765  ac_header_preproc=no
10766fi
10767
10768rm -f conftest.err conftest.$ac_ext
10769{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10770echo "${ECHO_T}$ac_header_preproc" >&6; }
10771
10772# So?  What about this header?
10773case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10774  yes:no: )
10775    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10776echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10777    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10778echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10779    ac_header_preproc=yes
10780    ;;
10781  no:yes:* )
10782    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10783echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10784    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10785echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10786    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10787echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10788    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10789echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10790    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10791echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10792    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10793echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10794    ( cat <<\_ASBOX
10795## ------------------------------------ ##
10796## Report this to starplot@starplot.org ##
10797## ------------------------------------ ##
10798_ASBOX
10799     ) | sed "s/^/$as_me: WARNING:     /" >&2
10800    ;;
10801esac
10802{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10804if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10805  echo $ECHO_N "(cached) $ECHO_C" >&6
10806else
10807  eval "$as_ac_Header=\$ac_header_preproc"
10808fi
10809ac_res=`eval echo '${'$as_ac_Header'}'`
10810	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10811echo "${ECHO_T}$ac_res" >&6; }
10812
10813fi
10814if test `eval echo '${'$as_ac_Header'}'` = yes; then
10815  cat >>confdefs.h <<_ACEOF
10816#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10817_ACEOF
10818
10819fi
10820
10821done
10822
10823
10824
10825
10826
10827
10828
10829
10830for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
10831do
10832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10833{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10835if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10836  echo $ECHO_N "(cached) $ECHO_C" >&6
10837else
10838  cat >conftest.$ac_ext <<_ACEOF
10839/* confdefs.h.  */
10840_ACEOF
10841cat confdefs.h >>conftest.$ac_ext
10842cat >>conftest.$ac_ext <<_ACEOF
10843/* end confdefs.h.  */
10844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10845   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10846#define $ac_func innocuous_$ac_func
10847
10848/* System header to define __stub macros and hopefully few prototypes,
10849    which can conflict with char $ac_func (); below.
10850    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10851    <limits.h> exists even on freestanding compilers.  */
10852
10853#ifdef __STDC__
10854# include <limits.h>
10855#else
10856# include <assert.h>
10857#endif
10858
10859#undef $ac_func
10860
10861/* Override any GCC internal prototype to avoid an error.
10862   Use char because int might match the return type of a GCC
10863   builtin and then its argument prototype would still apply.  */
10864#ifdef __cplusplus
10865extern "C"
10866#endif
10867char $ac_func ();
10868/* The GNU C library defines this for functions which it implements
10869    to always fail with ENOSYS.  Some functions are actually named
10870    something starting with __ and the normal name is an alias.  */
10871#if defined __stub_$ac_func || defined __stub___$ac_func
10872choke me
10873#endif
10874
10875int
10876main ()
10877{
10878return $ac_func ();
10879  ;
10880  return 0;
10881}
10882_ACEOF
10883rm -f conftest.$ac_objext conftest$ac_exeext
10884if { (ac_try="$ac_link"
10885case "(($ac_try" in
10886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887  *) ac_try_echo=$ac_try;;
10888esac
10889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890  (eval "$ac_link") 2>conftest.er1
10891  ac_status=$?
10892  grep -v '^ *+' conftest.er1 >conftest.err
10893  rm -f conftest.er1
10894  cat conftest.err >&5
10895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896  (exit $ac_status); } && {
10897	 test -z "$ac_c_werror_flag" ||
10898	 test ! -s conftest.err
10899       } && test -s conftest$ac_exeext &&
10900       $as_test_x conftest$ac_exeext; then
10901  eval "$as_ac_var=yes"
10902else
10903  echo "$as_me: failed program was:" >&5
10904sed 's/^/| /' conftest.$ac_ext >&5
10905
10906	eval "$as_ac_var=no"
10907fi
10908
10909rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10910      conftest$ac_exeext conftest.$ac_ext
10911fi
10912ac_res=`eval echo '${'$as_ac_var'}'`
10913	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10914echo "${ECHO_T}$ac_res" >&6; }
10915if test `eval echo '${'$as_ac_var'}'` = yes; then
10916  cat >>confdefs.h <<_ACEOF
10917#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10918_ACEOF
10919
10920fi
10921done
10922
10923
10924
10925  { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10926echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
10927if test "${ac_cv_have_decl__snprintf+set}" = set; then
10928  echo $ECHO_N "(cached) $ECHO_C" >&6
10929else
10930  cat >conftest.$ac_ext <<_ACEOF
10931/* confdefs.h.  */
10932_ACEOF
10933cat confdefs.h >>conftest.$ac_ext
10934cat >>conftest.$ac_ext <<_ACEOF
10935/* end confdefs.h.  */
10936#include <stdio.h>
10937int
10938main ()
10939{
10940
10941#ifndef _snprintf
10942  char *p = (char *) _snprintf;
10943#endif
10944
10945  ;
10946  return 0;
10947}
10948_ACEOF
10949rm -f conftest.$ac_objext
10950if { (ac_try="$ac_compile"
10951case "(($ac_try" in
10952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953  *) ac_try_echo=$ac_try;;
10954esac
10955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956  (eval "$ac_compile") 2>conftest.er1
10957  ac_status=$?
10958  grep -v '^ *+' conftest.er1 >conftest.err
10959  rm -f conftest.er1
10960  cat conftest.err >&5
10961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962  (exit $ac_status); } && {
10963	 test -z "$ac_c_werror_flag" ||
10964	 test ! -s conftest.err
10965       } && test -s conftest.$ac_objext; then
10966  ac_cv_have_decl__snprintf=yes
10967else
10968  echo "$as_me: failed program was:" >&5
10969sed 's/^/| /' conftest.$ac_ext >&5
10970
10971	ac_cv_have_decl__snprintf=no
10972fi
10973
10974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10975fi
10976{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
10977echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
10978  if test $ac_cv_have_decl__snprintf = yes; then
10979    gt_value=1
10980  else
10981    gt_value=0
10982  fi
10983
10984cat >>confdefs.h <<_ACEOF
10985#define HAVE_DECL__SNPRINTF $gt_value
10986_ACEOF
10987
10988
10989
10990  { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
10991echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
10992if test "${ac_cv_have_decl__snwprintf+set}" = set; then
10993  echo $ECHO_N "(cached) $ECHO_C" >&6
10994else
10995  cat >conftest.$ac_ext <<_ACEOF
10996/* confdefs.h.  */
10997_ACEOF
10998cat confdefs.h >>conftest.$ac_ext
10999cat >>conftest.$ac_ext <<_ACEOF
11000/* end confdefs.h.  */
11001#include <stdio.h>
11002int
11003main ()
11004{
11005
11006#ifndef _snwprintf
11007  char *p = (char *) _snwprintf;
11008#endif
11009
11010  ;
11011  return 0;
11012}
11013_ACEOF
11014rm -f conftest.$ac_objext
11015if { (ac_try="$ac_compile"
11016case "(($ac_try" in
11017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018  *) ac_try_echo=$ac_try;;
11019esac
11020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021  (eval "$ac_compile") 2>conftest.er1
11022  ac_status=$?
11023  grep -v '^ *+' conftest.er1 >conftest.err
11024  rm -f conftest.er1
11025  cat conftest.err >&5
11026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027  (exit $ac_status); } && {
11028	 test -z "$ac_c_werror_flag" ||
11029	 test ! -s conftest.err
11030       } && test -s conftest.$ac_objext; then
11031  ac_cv_have_decl__snwprintf=yes
11032else
11033  echo "$as_me: failed program was:" >&5
11034sed 's/^/| /' conftest.$ac_ext >&5
11035
11036	ac_cv_have_decl__snwprintf=no
11037fi
11038
11039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11040fi
11041{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11042echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11043  if test $ac_cv_have_decl__snwprintf = yes; then
11044    gt_value=1
11045  else
11046    gt_value=0
11047  fi
11048
11049cat >>confdefs.h <<_ACEOF
11050#define HAVE_DECL__SNWPRINTF $gt_value
11051_ACEOF
11052
11053
11054
11055
11056  { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11057echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
11058if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11059  echo $ECHO_N "(cached) $ECHO_C" >&6
11060else
11061  cat >conftest.$ac_ext <<_ACEOF
11062/* confdefs.h.  */
11063_ACEOF
11064cat confdefs.h >>conftest.$ac_ext
11065cat >>conftest.$ac_ext <<_ACEOF
11066/* end confdefs.h.  */
11067#include <stdio.h>
11068int
11069main ()
11070{
11071
11072#ifndef getc_unlocked
11073  char *p = (char *) getc_unlocked;
11074#endif
11075
11076  ;
11077  return 0;
11078}
11079_ACEOF
11080rm -f conftest.$ac_objext
11081if { (ac_try="$ac_compile"
11082case "(($ac_try" in
11083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084  *) ac_try_echo=$ac_try;;
11085esac
11086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087  (eval "$ac_compile") 2>conftest.er1
11088  ac_status=$?
11089  grep -v '^ *+' conftest.er1 >conftest.err
11090  rm -f conftest.er1
11091  cat conftest.err >&5
11092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093  (exit $ac_status); } && {
11094	 test -z "$ac_c_werror_flag" ||
11095	 test ! -s conftest.err
11096       } && test -s conftest.$ac_objext; then
11097  ac_cv_have_decl_getc_unlocked=yes
11098else
11099  echo "$as_me: failed program was:" >&5
11100sed 's/^/| /' conftest.$ac_ext >&5
11101
11102	ac_cv_have_decl_getc_unlocked=no
11103fi
11104
11105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106fi
11107{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11108echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
11109  if test $ac_cv_have_decl_getc_unlocked = yes; then
11110    gt_value=1
11111  else
11112    gt_value=0
11113  fi
11114
11115cat >>confdefs.h <<_ACEOF
11116#define HAVE_DECL_GETC_UNLOCKED $gt_value
11117_ACEOF
11118
11119
11120
11121  case $gt_cv_func_printf_posix in
11122    *yes) HAVE_POSIX_PRINTF=1 ;;
11123    *) HAVE_POSIX_PRINTF=0 ;;
11124  esac
11125
11126  if test "$ac_cv_func_asprintf" = yes; then
11127    HAVE_ASPRINTF=1
11128  else
11129    HAVE_ASPRINTF=0
11130  fi
11131
11132  if test "$ac_cv_func_snprintf" = yes; then
11133    HAVE_SNPRINTF=1
11134  else
11135    HAVE_SNPRINTF=0
11136  fi
11137
11138  if test "$ac_cv_func_wprintf" = yes; then
11139    HAVE_WPRINTF=1
11140  else
11141    HAVE_WPRINTF=0
11142  fi
11143
11144
11145
11146  { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11147echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
11148if test "${am_cv_langinfo_codeset+set}" = set; then
11149  echo $ECHO_N "(cached) $ECHO_C" >&6
11150else
11151  cat >conftest.$ac_ext <<_ACEOF
11152/* confdefs.h.  */
11153_ACEOF
11154cat confdefs.h >>conftest.$ac_ext
11155cat >>conftest.$ac_ext <<_ACEOF
11156/* end confdefs.h.  */
11157#include <langinfo.h>
11158int
11159main ()
11160{
11161char* cs = nl_langinfo(CODESET); return !cs;
11162  ;
11163  return 0;
11164}
11165_ACEOF
11166rm -f conftest.$ac_objext conftest$ac_exeext
11167if { (ac_try="$ac_link"
11168case "(($ac_try" in
11169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170  *) ac_try_echo=$ac_try;;
11171esac
11172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173  (eval "$ac_link") 2>conftest.er1
11174  ac_status=$?
11175  grep -v '^ *+' conftest.er1 >conftest.err
11176  rm -f conftest.er1
11177  cat conftest.err >&5
11178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179  (exit $ac_status); } && {
11180	 test -z "$ac_c_werror_flag" ||
11181	 test ! -s conftest.err
11182       } && test -s conftest$ac_exeext &&
11183       $as_test_x conftest$ac_exeext; then
11184  am_cv_langinfo_codeset=yes
11185else
11186  echo "$as_me: failed program was:" >&5
11187sed 's/^/| /' conftest.$ac_ext >&5
11188
11189	am_cv_langinfo_codeset=no
11190fi
11191
11192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11193      conftest$ac_exeext conftest.$ac_ext
11194
11195fi
11196{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11197echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
11198  if test $am_cv_langinfo_codeset = yes; then
11199
11200cat >>confdefs.h <<\_ACEOF
11201#define HAVE_LANGINFO_CODESET 1
11202_ACEOF
11203
11204  fi
11205
11206
11207  { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11208echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
11209if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11210  echo $ECHO_N "(cached) $ECHO_C" >&6
11211else
11212  cat >conftest.$ac_ext <<_ACEOF
11213/* confdefs.h.  */
11214_ACEOF
11215cat confdefs.h >>conftest.$ac_ext
11216cat >>conftest.$ac_ext <<_ACEOF
11217/* end confdefs.h.  */
11218#include <locale.h>
11219int
11220main ()
11221{
11222return LC_MESSAGES
11223  ;
11224  return 0;
11225}
11226_ACEOF
11227rm -f conftest.$ac_objext conftest$ac_exeext
11228if { (ac_try="$ac_link"
11229case "(($ac_try" in
11230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231  *) ac_try_echo=$ac_try;;
11232esac
11233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11234  (eval "$ac_link") 2>conftest.er1
11235  ac_status=$?
11236  grep -v '^ *+' conftest.er1 >conftest.err
11237  rm -f conftest.er1
11238  cat conftest.err >&5
11239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240  (exit $ac_status); } && {
11241	 test -z "$ac_c_werror_flag" ||
11242	 test ! -s conftest.err
11243       } && test -s conftest$ac_exeext &&
11244       $as_test_x conftest$ac_exeext; then
11245  gt_cv_val_LC_MESSAGES=yes
11246else
11247  echo "$as_me: failed program was:" >&5
11248sed 's/^/| /' conftest.$ac_ext >&5
11249
11250	gt_cv_val_LC_MESSAGES=no
11251fi
11252
11253rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11254      conftest$ac_exeext conftest.$ac_ext
11255fi
11256{ echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11257echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
11258  if test $gt_cv_val_LC_MESSAGES = yes; then
11259
11260cat >>confdefs.h <<\_ACEOF
11261#define HAVE_LC_MESSAGES 1
11262_ACEOF
11263
11264  fi
11265
11266
11267                if test "$enable_shared" = yes; then
11268    case "$host_os" in
11269      cygwin*) is_woe32dll=yes ;;
11270      *) is_woe32dll=no ;;
11271    esac
11272  else
11273    is_woe32dll=no
11274  fi
11275  WOE32DLL=$is_woe32dll
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11304echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
11305if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11306  echo $ECHO_N "(cached) $ECHO_C" >&6
11307else
11308  gt_save_LIBS="$LIBS"
11309     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11310     cat >conftest.$ac_ext <<_ACEOF
11311/* confdefs.h.  */
11312_ACEOF
11313cat confdefs.h >>conftest.$ac_ext
11314cat >>conftest.$ac_ext <<_ACEOF
11315/* end confdefs.h.  */
11316#include <CoreFoundation/CFPreferences.h>
11317int
11318main ()
11319{
11320CFPreferencesCopyAppValue(NULL, NULL)
11321  ;
11322  return 0;
11323}
11324_ACEOF
11325rm -f conftest.$ac_objext conftest$ac_exeext
11326if { (ac_try="$ac_link"
11327case "(($ac_try" in
11328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329  *) ac_try_echo=$ac_try;;
11330esac
11331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332  (eval "$ac_link") 2>conftest.er1
11333  ac_status=$?
11334  grep -v '^ *+' conftest.er1 >conftest.err
11335  rm -f conftest.er1
11336  cat conftest.err >&5
11337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338  (exit $ac_status); } && {
11339	 test -z "$ac_c_werror_flag" ||
11340	 test ! -s conftest.err
11341       } && test -s conftest$ac_exeext &&
11342       $as_test_x conftest$ac_exeext; then
11343  gt_cv_func_CFPreferencesCopyAppValue=yes
11344else
11345  echo "$as_me: failed program was:" >&5
11346sed 's/^/| /' conftest.$ac_ext >&5
11347
11348	gt_cv_func_CFPreferencesCopyAppValue=no
11349fi
11350
11351rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11352      conftest$ac_exeext conftest.$ac_ext
11353     LIBS="$gt_save_LIBS"
11354fi
11355{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11356echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
11357  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11358
11359cat >>confdefs.h <<\_ACEOF
11360#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11361_ACEOF
11362
11363  fi
11364    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11365echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
11366if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11367  echo $ECHO_N "(cached) $ECHO_C" >&6
11368else
11369  gt_save_LIBS="$LIBS"
11370     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11371     cat >conftest.$ac_ext <<_ACEOF
11372/* confdefs.h.  */
11373_ACEOF
11374cat confdefs.h >>conftest.$ac_ext
11375cat >>conftest.$ac_ext <<_ACEOF
11376/* end confdefs.h.  */
11377#include <CoreFoundation/CFLocale.h>
11378int
11379main ()
11380{
11381CFLocaleCopyCurrent();
11382  ;
11383  return 0;
11384}
11385_ACEOF
11386rm -f conftest.$ac_objext conftest$ac_exeext
11387if { (ac_try="$ac_link"
11388case "(($ac_try" in
11389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390  *) ac_try_echo=$ac_try;;
11391esac
11392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11393  (eval "$ac_link") 2>conftest.er1
11394  ac_status=$?
11395  grep -v '^ *+' conftest.er1 >conftest.err
11396  rm -f conftest.er1
11397  cat conftest.err >&5
11398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399  (exit $ac_status); } && {
11400	 test -z "$ac_c_werror_flag" ||
11401	 test ! -s conftest.err
11402       } && test -s conftest$ac_exeext &&
11403       $as_test_x conftest$ac_exeext; then
11404  gt_cv_func_CFLocaleCopyCurrent=yes
11405else
11406  echo "$as_me: failed program was:" >&5
11407sed 's/^/| /' conftest.$ac_ext >&5
11408
11409	gt_cv_func_CFLocaleCopyCurrent=no
11410fi
11411
11412rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11413      conftest$ac_exeext conftest.$ac_ext
11414     LIBS="$gt_save_LIBS"
11415fi
11416{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11417echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11418  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11419
11420cat >>confdefs.h <<\_ACEOF
11421#define HAVE_CFLOCALECOPYCURRENT 1
11422_ACEOF
11423
11424  fi
11425  INTL_MACOSX_LIBS=
11426  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11427    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11428  fi
11429
11430
11431
11432
11433
11434
11435    BUILD_INCLUDED_LIBINTL=no
11436    USE_INCLUDED_LIBINTL=no
11437
11438  LIBINTL=
11439  LTLIBINTL=
11440  POSUB=
11441
11442    case " $gt_needs " in
11443    *" need-formatstring-macros "*) gt_api_version=3 ;;
11444    *" need-ngettext "*) gt_api_version=2 ;;
11445    *) gt_api_version=1 ;;
11446  esac
11447  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
11448  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
11449
11450    if test "$USE_NLS" = "yes"; then
11451    gt_use_preinstalled_gnugettext=no
11452
11453      { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11454echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
11455
11456# Check whether --with-included-gettext was given.
11457if test "${with_included_gettext+set}" = set; then
11458  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
11459else
11460  nls_cv_force_use_gnu_gettext=no
11461fi
11462
11463      { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11464echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
11465
11466      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11467      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11468
11469
11470        if test $gt_api_version -ge 3; then
11471          gt_revision_test_code='
11472#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
11473#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
11474#endif
11475typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
11476'
11477        else
11478          gt_revision_test_code=
11479        fi
11480        if test $gt_api_version -ge 2; then
11481          gt_expression_test_code=' + * ngettext ("", "", 0)'
11482        else
11483          gt_expression_test_code=
11484        fi
11485
11486        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11487echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
11488if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
11489  echo $ECHO_N "(cached) $ECHO_C" >&6
11490else
11491  cat >conftest.$ac_ext <<_ACEOF
11492/* confdefs.h.  */
11493_ACEOF
11494cat confdefs.h >>conftest.$ac_ext
11495cat >>conftest.$ac_ext <<_ACEOF
11496/* end confdefs.h.  */
11497#include <libintl.h>
11498$gt_revision_test_code
11499extern int _nl_msg_cat_cntr;
11500extern int *_nl_domain_bindings;
11501int
11502main ()
11503{
11504bindtextdomain ("", "");
11505return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
11506  ;
11507  return 0;
11508}
11509_ACEOF
11510rm -f conftest.$ac_objext conftest$ac_exeext
11511if { (ac_try="$ac_link"
11512case "(($ac_try" in
11513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514  *) ac_try_echo=$ac_try;;
11515esac
11516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517  (eval "$ac_link") 2>conftest.er1
11518  ac_status=$?
11519  grep -v '^ *+' conftest.er1 >conftest.err
11520  rm -f conftest.er1
11521  cat conftest.err >&5
11522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523  (exit $ac_status); } && {
11524	 test -z "$ac_c_werror_flag" ||
11525	 test ! -s conftest.err
11526       } && test -s conftest$ac_exeext &&
11527       $as_test_x conftest$ac_exeext; then
11528  eval "$gt_func_gnugettext_libc=yes"
11529else
11530  echo "$as_me: failed program was:" >&5
11531sed 's/^/| /' conftest.$ac_ext >&5
11532
11533	eval "$gt_func_gnugettext_libc=no"
11534fi
11535
11536rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11537      conftest$ac_exeext conftest.$ac_ext
11538fi
11539ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
11540	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11541echo "${ECHO_T}$ac_res" >&6; }
11542
11543        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
11544
11545
11546
11547
11548    use_additional=yes
11549
11550  acl_save_prefix="$prefix"
11551  prefix="$acl_final_prefix"
11552  acl_save_exec_prefix="$exec_prefix"
11553  exec_prefix="$acl_final_exec_prefix"
11554
11555    eval additional_includedir=\"$includedir\"
11556    eval additional_libdir=\"$libdir\"
11557
11558  exec_prefix="$acl_save_exec_prefix"
11559  prefix="$acl_save_prefix"
11560
11561
11562# Check whether --with-libintl-prefix was given.
11563if test "${with_libintl_prefix+set}" = set; then
11564  withval=$with_libintl_prefix;
11565    if test "X$withval" = "Xno"; then
11566      use_additional=no
11567    else
11568      if test "X$withval" = "X"; then
11569
11570  acl_save_prefix="$prefix"
11571  prefix="$acl_final_prefix"
11572  acl_save_exec_prefix="$exec_prefix"
11573  exec_prefix="$acl_final_exec_prefix"
11574
11575          eval additional_includedir=\"$includedir\"
11576          eval additional_libdir=\"$libdir\"
11577
11578  exec_prefix="$acl_save_exec_prefix"
11579  prefix="$acl_save_prefix"
11580
11581      else
11582        additional_includedir="$withval/include"
11583        additional_libdir="$withval/$acl_libdirstem"
11584      fi
11585    fi
11586
11587fi
11588
11589      LIBINTL=
11590  LTLIBINTL=
11591  INCINTL=
11592  rpathdirs=
11593  ltrpathdirs=
11594  names_already_handled=
11595  names_next_round='intl '
11596  while test -n "$names_next_round"; do
11597    names_this_round="$names_next_round"
11598    names_next_round=
11599    for name in $names_this_round; do
11600      already_handled=
11601      for n in $names_already_handled; do
11602        if test "$n" = "$name"; then
11603          already_handled=yes
11604          break
11605        fi
11606      done
11607      if test -z "$already_handled"; then
11608        names_already_handled="$names_already_handled $name"
11609                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11610        eval value=\"\$HAVE_LIB$uppername\"
11611        if test -n "$value"; then
11612          if test "$value" = yes; then
11613            eval value=\"\$LIB$uppername\"
11614            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11615            eval value=\"\$LTLIB$uppername\"
11616            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11617          else
11618                                    :
11619          fi
11620        else
11621                              found_dir=
11622          found_la=
11623          found_so=
11624          found_a=
11625          if test $use_additional = yes; then
11626            if test -n "$shlibext" \
11627               && { test -f "$additional_libdir/lib$name.$shlibext" \
11628                    || { test "$shlibext" = dll \
11629                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
11630              found_dir="$additional_libdir"
11631              if test -f "$additional_libdir/lib$name.$shlibext"; then
11632                found_so="$additional_libdir/lib$name.$shlibext"
11633              else
11634                found_so="$additional_libdir/lib$name.dll.a"
11635              fi
11636              if test -f "$additional_libdir/lib$name.la"; then
11637                found_la="$additional_libdir/lib$name.la"
11638              fi
11639            else
11640              if test -f "$additional_libdir/lib$name.$libext"; then
11641                found_dir="$additional_libdir"
11642                found_a="$additional_libdir/lib$name.$libext"
11643                if test -f "$additional_libdir/lib$name.la"; then
11644                  found_la="$additional_libdir/lib$name.la"
11645                fi
11646              fi
11647            fi
11648          fi
11649          if test "X$found_dir" = "X"; then
11650            for x in $LDFLAGS $LTLIBINTL; do
11651
11652  acl_save_prefix="$prefix"
11653  prefix="$acl_final_prefix"
11654  acl_save_exec_prefix="$exec_prefix"
11655  exec_prefix="$acl_final_exec_prefix"
11656  eval x=\"$x\"
11657  exec_prefix="$acl_save_exec_prefix"
11658  prefix="$acl_save_prefix"
11659
11660              case "$x" in
11661                -L*)
11662                  dir=`echo "X$x" | sed -e 's/^X-L//'`
11663                  if test -n "$shlibext" \
11664                     && { test -f "$dir/lib$name.$shlibext" \
11665                          || { test "$shlibext" = dll \
11666                               && test -f "$dir/lib$name.dll.a"; }; }; then
11667                    found_dir="$dir"
11668                    if test -f "$dir/lib$name.$shlibext"; then
11669                      found_so="$dir/lib$name.$shlibext"
11670                    else
11671                      found_so="$dir/lib$name.dll.a"
11672                    fi
11673                    if test -f "$dir/lib$name.la"; then
11674                      found_la="$dir/lib$name.la"
11675                    fi
11676                  else
11677                    if test -f "$dir/lib$name.$libext"; then
11678                      found_dir="$dir"
11679                      found_a="$dir/lib$name.$libext"
11680                      if test -f "$dir/lib$name.la"; then
11681                        found_la="$dir/lib$name.la"
11682                      fi
11683                    fi
11684                  fi
11685                  ;;
11686              esac
11687              if test "X$found_dir" != "X"; then
11688                break
11689              fi
11690            done
11691          fi
11692          if test "X$found_dir" != "X"; then
11693                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11694            if test "X$found_so" != "X"; then
11695                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11696                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11697              else
11698                                                                                haveit=
11699                for x in $ltrpathdirs; do
11700                  if test "X$x" = "X$found_dir"; then
11701                    haveit=yes
11702                    break
11703                  fi
11704                done
11705                if test -z "$haveit"; then
11706                  ltrpathdirs="$ltrpathdirs $found_dir"
11707                fi
11708                                if test "$hardcode_direct" = yes; then
11709                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11710                else
11711                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11712                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11713                                                            haveit=
11714                    for x in $rpathdirs; do
11715                      if test "X$x" = "X$found_dir"; then
11716                        haveit=yes
11717                        break
11718                      fi
11719                    done
11720                    if test -z "$haveit"; then
11721                      rpathdirs="$rpathdirs $found_dir"
11722                    fi
11723                  else
11724                                                                                haveit=
11725                    for x in $LDFLAGS $LIBINTL; do
11726
11727  acl_save_prefix="$prefix"
11728  prefix="$acl_final_prefix"
11729  acl_save_exec_prefix="$exec_prefix"
11730  exec_prefix="$acl_final_exec_prefix"
11731  eval x=\"$x\"
11732  exec_prefix="$acl_save_exec_prefix"
11733  prefix="$acl_save_prefix"
11734
11735                      if test "X$x" = "X-L$found_dir"; then
11736                        haveit=yes
11737                        break
11738                      fi
11739                    done
11740                    if test -z "$haveit"; then
11741                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11742                    fi
11743                    if test "$hardcode_minus_L" != no; then
11744                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11745                    else
11746                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11747                    fi
11748                  fi
11749                fi
11750              fi
11751            else
11752              if test "X$found_a" != "X"; then
11753                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11754              else
11755                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11756              fi
11757            fi
11758                        additional_includedir=
11759            case "$found_dir" in
11760              */$acl_libdirstem | */$acl_libdirstem/)
11761                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11762                additional_includedir="$basedir/include"
11763                ;;
11764            esac
11765            if test "X$additional_includedir" != "X"; then
11766                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
11767                haveit=
11768                if test "X$additional_includedir" = "X/usr/local/include"; then
11769                  if test -n "$GCC"; then
11770                    case $host_os in
11771                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11772                    esac
11773                  fi
11774                fi
11775                if test -z "$haveit"; then
11776                  for x in $CPPFLAGS $INCINTL; do
11777
11778  acl_save_prefix="$prefix"
11779  prefix="$acl_final_prefix"
11780  acl_save_exec_prefix="$exec_prefix"
11781  exec_prefix="$acl_final_exec_prefix"
11782  eval x=\"$x\"
11783  exec_prefix="$acl_save_exec_prefix"
11784  prefix="$acl_save_prefix"
11785
11786                    if test "X$x" = "X-I$additional_includedir"; then
11787                      haveit=yes
11788                      break
11789                    fi
11790                  done
11791                  if test -z "$haveit"; then
11792                    if test -d "$additional_includedir"; then
11793                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11794                    fi
11795                  fi
11796                fi
11797              fi
11798            fi
11799                        if test -n "$found_la"; then
11800                                                        save_libdir="$libdir"
11801              case "$found_la" in
11802                */* | *\\*) . "$found_la" ;;
11803                *) . "./$found_la" ;;
11804              esac
11805              libdir="$save_libdir"
11806                            for dep in $dependency_libs; do
11807                case "$dep" in
11808                  -L*)
11809                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11810                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11811                      haveit=
11812                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11813                        if test -n "$GCC"; then
11814                          case $host_os in
11815                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11816                          esac
11817                        fi
11818                      fi
11819                      if test -z "$haveit"; then
11820                        haveit=
11821                        for x in $LDFLAGS $LIBINTL; do
11822
11823  acl_save_prefix="$prefix"
11824  prefix="$acl_final_prefix"
11825  acl_save_exec_prefix="$exec_prefix"
11826  exec_prefix="$acl_final_exec_prefix"
11827  eval x=\"$x\"
11828  exec_prefix="$acl_save_exec_prefix"
11829  prefix="$acl_save_prefix"
11830
11831                          if test "X$x" = "X-L$additional_libdir"; then
11832                            haveit=yes
11833                            break
11834                          fi
11835                        done
11836                        if test -z "$haveit"; then
11837                          if test -d "$additional_libdir"; then
11838                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11839                          fi
11840                        fi
11841                        haveit=
11842                        for x in $LDFLAGS $LTLIBINTL; do
11843
11844  acl_save_prefix="$prefix"
11845  prefix="$acl_final_prefix"
11846  acl_save_exec_prefix="$exec_prefix"
11847  exec_prefix="$acl_final_exec_prefix"
11848  eval x=\"$x\"
11849  exec_prefix="$acl_save_exec_prefix"
11850  prefix="$acl_save_prefix"
11851
11852                          if test "X$x" = "X-L$additional_libdir"; then
11853                            haveit=yes
11854                            break
11855                          fi
11856                        done
11857                        if test -z "$haveit"; then
11858                          if test -d "$additional_libdir"; then
11859                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11860                          fi
11861                        fi
11862                      fi
11863                    fi
11864                    ;;
11865                  -R*)
11866                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11867                    if test "$enable_rpath" != no; then
11868                                                                  haveit=
11869                      for x in $rpathdirs; do
11870                        if test "X$x" = "X$dir"; then
11871                          haveit=yes
11872                          break
11873                        fi
11874                      done
11875                      if test -z "$haveit"; then
11876                        rpathdirs="$rpathdirs $dir"
11877                      fi
11878                                                                  haveit=
11879                      for x in $ltrpathdirs; do
11880                        if test "X$x" = "X$dir"; then
11881                          haveit=yes
11882                          break
11883                        fi
11884                      done
11885                      if test -z "$haveit"; then
11886                        ltrpathdirs="$ltrpathdirs $dir"
11887                      fi
11888                    fi
11889                    ;;
11890                  -l*)
11891                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11892                    ;;
11893                  *.la)
11894                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11895                    ;;
11896                  *)
11897                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11898                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11899                    ;;
11900                esac
11901              done
11902            fi
11903          else
11904                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11905            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11906          fi
11907        fi
11908      fi
11909    done
11910  done
11911  if test "X$rpathdirs" != "X"; then
11912    if test -n "$hardcode_libdir_separator"; then
11913                        alldirs=
11914      for found_dir in $rpathdirs; do
11915        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11916      done
11917            acl_save_libdir="$libdir"
11918      libdir="$alldirs"
11919      eval flag=\"$hardcode_libdir_flag_spec\"
11920      libdir="$acl_save_libdir"
11921      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11922    else
11923            for found_dir in $rpathdirs; do
11924        acl_save_libdir="$libdir"
11925        libdir="$found_dir"
11926        eval flag=\"$hardcode_libdir_flag_spec\"
11927        libdir="$acl_save_libdir"
11928        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11929      done
11930    fi
11931  fi
11932  if test "X$ltrpathdirs" != "X"; then
11933            for found_dir in $ltrpathdirs; do
11934      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11935    done
11936  fi
11937
11938          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11939echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
11940if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
11941  echo $ECHO_N "(cached) $ECHO_C" >&6
11942else
11943  gt_save_CPPFLAGS="$CPPFLAGS"
11944            CPPFLAGS="$CPPFLAGS $INCINTL"
11945            gt_save_LIBS="$LIBS"
11946            LIBS="$LIBS $LIBINTL"
11947                        cat >conftest.$ac_ext <<_ACEOF
11948/* confdefs.h.  */
11949_ACEOF
11950cat confdefs.h >>conftest.$ac_ext
11951cat >>conftest.$ac_ext <<_ACEOF
11952/* end confdefs.h.  */
11953#include <libintl.h>
11954$gt_revision_test_code
11955extern int _nl_msg_cat_cntr;
11956extern
11957#ifdef __cplusplus
11958"C"
11959#endif
11960const char *_nl_expand_alias (const char *);
11961int
11962main ()
11963{
11964bindtextdomain ("", "");
11965return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11966  ;
11967  return 0;
11968}
11969_ACEOF
11970rm -f conftest.$ac_objext conftest$ac_exeext
11971if { (ac_try="$ac_link"
11972case "(($ac_try" in
11973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974  *) ac_try_echo=$ac_try;;
11975esac
11976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977  (eval "$ac_link") 2>conftest.er1
11978  ac_status=$?
11979  grep -v '^ *+' conftest.er1 >conftest.err
11980  rm -f conftest.er1
11981  cat conftest.err >&5
11982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983  (exit $ac_status); } && {
11984	 test -z "$ac_c_werror_flag" ||
11985	 test ! -s conftest.err
11986       } && test -s conftest$ac_exeext &&
11987       $as_test_x conftest$ac_exeext; then
11988  eval "$gt_func_gnugettext_libintl=yes"
11989else
11990  echo "$as_me: failed program was:" >&5
11991sed 's/^/| /' conftest.$ac_ext >&5
11992
11993	eval "$gt_func_gnugettext_libintl=no"
11994fi
11995
11996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11997      conftest$ac_exeext conftest.$ac_ext
11998                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11999              LIBS="$LIBS $LIBICONV"
12000              cat >conftest.$ac_ext <<_ACEOF
12001/* confdefs.h.  */
12002_ACEOF
12003cat confdefs.h >>conftest.$ac_ext
12004cat >>conftest.$ac_ext <<_ACEOF
12005/* end confdefs.h.  */
12006#include <libintl.h>
12007$gt_revision_test_code
12008extern int _nl_msg_cat_cntr;
12009extern
12010#ifdef __cplusplus
12011"C"
12012#endif
12013const char *_nl_expand_alias (const char *);
12014int
12015main ()
12016{
12017bindtextdomain ("", "");
12018return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12019  ;
12020  return 0;
12021}
12022_ACEOF
12023rm -f conftest.$ac_objext conftest$ac_exeext
12024if { (ac_try="$ac_link"
12025case "(($ac_try" in
12026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027  *) ac_try_echo=$ac_try;;
12028esac
12029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030  (eval "$ac_link") 2>conftest.er1
12031  ac_status=$?
12032  grep -v '^ *+' conftest.er1 >conftest.err
12033  rm -f conftest.er1
12034  cat conftest.err >&5
12035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036  (exit $ac_status); } && {
12037	 test -z "$ac_c_werror_flag" ||
12038	 test ! -s conftest.err
12039       } && test -s conftest$ac_exeext &&
12040       $as_test_x conftest$ac_exeext; then
12041  LIBINTL="$LIBINTL $LIBICONV"
12042                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12043                eval "$gt_func_gnugettext_libintl=yes"
12044
12045else
12046  echo "$as_me: failed program was:" >&5
12047sed 's/^/| /' conftest.$ac_ext >&5
12048
12049
12050fi
12051
12052rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12053      conftest$ac_exeext conftest.$ac_ext
12054            fi
12055            CPPFLAGS="$gt_save_CPPFLAGS"
12056            LIBS="$gt_save_LIBS"
12057fi
12058ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
12059	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12060echo "${ECHO_T}$ac_res" >&6; }
12061        fi
12062
12063                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
12064           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
12065                && test "$PACKAGE" != gettext-runtime \
12066                && test "$PACKAGE" != gettext-tools; }; then
12067          gt_use_preinstalled_gnugettext=yes
12068        else
12069                    LIBINTL=
12070          LTLIBINTL=
12071          INCINTL=
12072        fi
12073
12074
12075        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12076                              nls_cv_use_gnu_gettext=yes
12077        fi
12078      fi
12079
12080      if test "$nls_cv_use_gnu_gettext" = "yes"; then
12081                BUILD_INCLUDED_LIBINTL=yes
12082        USE_INCLUDED_LIBINTL=yes
12083        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
12084        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
12085        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12086      fi
12087
12088      CATOBJEXT=
12089      if test "$gt_use_preinstalled_gnugettext" = "yes" \
12090         || test "$nls_cv_use_gnu_gettext" = "yes"; then
12091                CATOBJEXT=.gmo
12092      fi
12093
12094
12095    if test -n "$INTL_MACOSX_LIBS"; then
12096      if test "$gt_use_preinstalled_gnugettext" = "yes" \
12097         || test "$nls_cv_use_gnu_gettext" = "yes"; then
12098                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12099        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12100      fi
12101    fi
12102
12103    if test "$gt_use_preinstalled_gnugettext" = "yes" \
12104       || test "$nls_cv_use_gnu_gettext" = "yes"; then
12105
12106cat >>confdefs.h <<\_ACEOF
12107#define ENABLE_NLS 1
12108_ACEOF
12109
12110    else
12111      USE_NLS=no
12112    fi
12113  fi
12114
12115  { echo "$as_me:$LINENO: checking whether to use NLS" >&5
12116echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
12117  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12118echo "${ECHO_T}$USE_NLS" >&6; }
12119  if test "$USE_NLS" = "yes"; then
12120    { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12121echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
12122    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12123      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12124        gt_source="external libintl"
12125      else
12126        gt_source="libc"
12127      fi
12128    else
12129      gt_source="included intl directory"
12130    fi
12131    { echo "$as_me:$LINENO: result: $gt_source" >&5
12132echo "${ECHO_T}$gt_source" >&6; }
12133  fi
12134
12135  if test "$USE_NLS" = "yes"; then
12136
12137    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12138      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12139        { echo "$as_me:$LINENO: checking how to link with libintl" >&5
12140echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
12141        { echo "$as_me:$LINENO: result: $LIBINTL" >&5
12142echo "${ECHO_T}$LIBINTL" >&6; }
12143
12144  for element in $INCINTL; do
12145    haveit=
12146    for x in $CPPFLAGS; do
12147
12148  acl_save_prefix="$prefix"
12149  prefix="$acl_final_prefix"
12150  acl_save_exec_prefix="$exec_prefix"
12151  exec_prefix="$acl_final_exec_prefix"
12152  eval x=\"$x\"
12153  exec_prefix="$acl_save_exec_prefix"
12154  prefix="$acl_save_prefix"
12155
12156      if test "X$x" = "X$element"; then
12157        haveit=yes
12158        break
12159      fi
12160    done
12161    if test -z "$haveit"; then
12162      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12163    fi
12164  done
12165
12166      fi
12167
12168
12169cat >>confdefs.h <<\_ACEOF
12170#define HAVE_GETTEXT 1
12171_ACEOF
12172
12173
12174cat >>confdefs.h <<\_ACEOF
12175#define HAVE_DCGETTEXT 1
12176_ACEOF
12177
12178    fi
12179
12180        POSUB=po
12181  fi
12182
12183
12184            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12185      BUILD_INCLUDED_LIBINTL=yes
12186    fi
12187
12188
12189
12190
12191
12192        nls_cv_header_intl=
12193    nls_cv_header_libgt=
12194
12195        DATADIRNAME=share
12196
12197
12198        INSTOBJEXT=.mo
12199
12200
12201        GENCAT=gencat
12202
12203
12204        INTLOBJS=
12205    if test "$USE_INCLUDED_LIBINTL" = yes; then
12206      INTLOBJS="\$(GETTOBJS)"
12207    fi
12208
12209
12210        INTL_LIBTOOL_SUFFIX_PREFIX=
12211
12212
12213
12214    INTLLIBS="$LIBINTL"
12215
12216
12217
12218
12219
12220
12221
12222{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12223echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
12224    # Check whether --enable-maintainer-mode was given.
12225if test "${enable_maintainer_mode+set}" = set; then
12226  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12227else
12228  USE_MAINTAINER_MODE=no
12229fi
12230
12231  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12232echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
12233   if test $USE_MAINTAINER_MODE = yes; then
12234  MAINTAINER_MODE_TRUE=
12235  MAINTAINER_MODE_FALSE='#'
12236else
12237  MAINTAINER_MODE_TRUE='#'
12238  MAINTAINER_MODE_FALSE=
12239fi
12240
12241  MAINT=$MAINTAINER_MODE_TRUE
12242
12243
12244
12245
12246
12247
12248ac_config_headers="$ac_config_headers config.h"
12249
12250
12251
12252
12253ISODATE=`date +%Y-%m-%d`
12254
12255{ echo "$as_me:$LINENO: checking host system type" >&5
12256echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
12257if test "${ac_cv_host+set}" = set; then
12258  echo $ECHO_N "(cached) $ECHO_C" >&6
12259else
12260  if test "x$host_alias" = x; then
12261  ac_cv_host=$ac_cv_build
12262else
12263  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12264    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12265echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12266   { (exit 1); exit 1; }; }
12267fi
12268
12269fi
12270{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12271echo "${ECHO_T}$ac_cv_host" >&6; }
12272case $ac_cv_host in
12273*-*-*) ;;
12274*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12275echo "$as_me: error: invalid value of canonical host" >&2;}
12276   { (exit 1); exit 1; }; };;
12277esac
12278host=$ac_cv_host
12279ac_save_IFS=$IFS; IFS='-'
12280set x $ac_cv_host
12281shift
12282host_cpu=$1
12283host_vendor=$2
12284shift; shift
12285# Remember, the first character of IFS is used to create $*,
12286# except with old shells:
12287host_os=$*
12288IFS=$ac_save_IFS
12289case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12290
12291
12292
12293exampledir='/usr/local/share/examples/starplot'
12294
12295HTML_IMAGES=`cd "$srcdir"/doc && echo html/images/*`
12296
12297HTML_PARFILES=`cd "$srcdir"/doc && echo html/parfiles/*`
12298
12299
12300# Find a good install program.  We prefer a C program (faster),
12301# so one script is as good as another.  But avoid the broken or
12302# incompatible versions:
12303# SysV /etc/install, /usr/sbin/install
12304# SunOS /usr/etc/install
12305# IRIX /sbin/install
12306# AIX /bin/install
12307# AmigaOS /C/install, which installs bootblocks on floppy discs
12308# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12309# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12310# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12311# OS/2's system install, which has a completely different semantic
12312# ./install, which can be erroneously created by make from ./install.sh.
12313{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12314echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
12315if test -z "$INSTALL"; then
12316if test "${ac_cv_path_install+set}" = set; then
12317  echo $ECHO_N "(cached) $ECHO_C" >&6
12318else
12319  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12320for as_dir in $PATH
12321do
12322  IFS=$as_save_IFS
12323  test -z "$as_dir" && as_dir=.
12324  # Account for people who put trailing slashes in PATH elements.
12325case $as_dir/ in
12326  ./ | .// | /cC/* | \
12327  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12328  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12329  /usr/ucb/* ) ;;
12330  *)
12331    # OSF1 and SCO ODT 3.0 have their own names for install.
12332    # Don't use installbsd from OSF since it installs stuff as root
12333    # by default.
12334    for ac_prog in ginstall scoinst install; do
12335      for ac_exec_ext in '' $ac_executable_extensions; do
12336	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12337	  if test $ac_prog = install &&
12338	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12339	    # AIX install.  It has an incompatible calling convention.
12340	    :
12341	  elif test $ac_prog = install &&
12342	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12343	    # program-specific install script used by HP pwplus--don't use.
12344	    :
12345	  else
12346	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12347	    break 3
12348	  fi
12349	fi
12350      done
12351    done
12352    ;;
12353esac
12354done
12355IFS=$as_save_IFS
12356
12357
12358fi
12359  if test "${ac_cv_path_install+set}" = set; then
12360    INSTALL=$ac_cv_path_install
12361  else
12362    # As a last resort, use the slow shell script.  Don't cache a
12363    # value for INSTALL within a source directory, because that will
12364    # break other packages using the cache if that directory is
12365    # removed, or if the value is a relative name.
12366    INSTALL=$ac_install_sh
12367  fi
12368fi
12369{ echo "$as_me:$LINENO: result: $INSTALL" >&5
12370echo "${ECHO_T}$INSTALL" >&6; }
12371
12372# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12373# It thinks the first close brace ends the variable substitution.
12374test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12375
12376test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12377
12378test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12379
12380if test -n "$ac_tool_prefix"; then
12381  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12382set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12385if test "${ac_cv_prog_RANLIB+set}" = set; then
12386  echo $ECHO_N "(cached) $ECHO_C" >&6
12387else
12388  if test -n "$RANLIB"; then
12389  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12390else
12391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12392for as_dir in $PATH
12393do
12394  IFS=$as_save_IFS
12395  test -z "$as_dir" && as_dir=.
12396  for ac_exec_ext in '' $ac_executable_extensions; do
12397  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12398    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12399    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12400    break 2
12401  fi
12402done
12403done
12404IFS=$as_save_IFS
12405
12406fi
12407fi
12408RANLIB=$ac_cv_prog_RANLIB
12409if test -n "$RANLIB"; then
12410  { echo "$as_me:$LINENO: result: $RANLIB" >&5
12411echo "${ECHO_T}$RANLIB" >&6; }
12412else
12413  { echo "$as_me:$LINENO: result: no" >&5
12414echo "${ECHO_T}no" >&6; }
12415fi
12416
12417
12418fi
12419if test -z "$ac_cv_prog_RANLIB"; then
12420  ac_ct_RANLIB=$RANLIB
12421  # Extract the first word of "ranlib", so it can be a program name with args.
12422set dummy ranlib; ac_word=$2
12423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12425if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12426  echo $ECHO_N "(cached) $ECHO_C" >&6
12427else
12428  if test -n "$ac_ct_RANLIB"; then
12429  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12430else
12431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12432for as_dir in $PATH
12433do
12434  IFS=$as_save_IFS
12435  test -z "$as_dir" && as_dir=.
12436  for ac_exec_ext in '' $ac_executable_extensions; do
12437  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12438    ac_cv_prog_ac_ct_RANLIB="ranlib"
12439    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12440    break 2
12441  fi
12442done
12443done
12444IFS=$as_save_IFS
12445
12446fi
12447fi
12448ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12449if test -n "$ac_ct_RANLIB"; then
12450  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12451echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
12452else
12453  { echo "$as_me:$LINENO: result: no" >&5
12454echo "${ECHO_T}no" >&6; }
12455fi
12456
12457  if test "x$ac_ct_RANLIB" = x; then
12458    RANLIB=":"
12459  else
12460    case $cross_compiling:$ac_tool_warned in
12461yes:)
12462{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12463whose name does not start with the host triplet.  If you think this
12464configuration is useful to you, please write to autoconf@gnu.org." >&5
12465echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12466whose name does not start with the host triplet.  If you think this
12467configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12468ac_tool_warned=yes ;;
12469esac
12470    RANLIB=$ac_ct_RANLIB
12471  fi
12472else
12473  RANLIB="$ac_cv_prog_RANLIB"
12474fi
12475
12476ac_ext=c
12477ac_cpp='$CPP $CPPFLAGS'
12478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12480ac_compiler_gnu=$ac_cv_c_compiler_gnu
12481if test -n "$ac_tool_prefix"; then
12482  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12483set dummy ${ac_tool_prefix}gcc; ac_word=$2
12484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12486if test "${ac_cv_prog_CC+set}" = set; then
12487  echo $ECHO_N "(cached) $ECHO_C" >&6
12488else
12489  if test -n "$CC"; then
12490  ac_cv_prog_CC="$CC" # Let the user override the test.
12491else
12492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493for as_dir in $PATH
12494do
12495  IFS=$as_save_IFS
12496  test -z "$as_dir" && as_dir=.
12497  for ac_exec_ext in '' $ac_executable_extensions; do
12498  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12499    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12500    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12501    break 2
12502  fi
12503done
12504done
12505IFS=$as_save_IFS
12506
12507fi
12508fi
12509CC=$ac_cv_prog_CC
12510if test -n "$CC"; then
12511  { echo "$as_me:$LINENO: result: $CC" >&5
12512echo "${ECHO_T}$CC" >&6; }
12513else
12514  { echo "$as_me:$LINENO: result: no" >&5
12515echo "${ECHO_T}no" >&6; }
12516fi
12517
12518
12519fi
12520if test -z "$ac_cv_prog_CC"; then
12521  ac_ct_CC=$CC
12522  # Extract the first word of "gcc", so it can be a program name with args.
12523set dummy gcc; ac_word=$2
12524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12526if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12527  echo $ECHO_N "(cached) $ECHO_C" >&6
12528else
12529  if test -n "$ac_ct_CC"; then
12530  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12531else
12532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12533for as_dir in $PATH
12534do
12535  IFS=$as_save_IFS
12536  test -z "$as_dir" && as_dir=.
12537  for ac_exec_ext in '' $ac_executable_extensions; do
12538  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12539    ac_cv_prog_ac_ct_CC="gcc"
12540    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12541    break 2
12542  fi
12543done
12544done
12545IFS=$as_save_IFS
12546
12547fi
12548fi
12549ac_ct_CC=$ac_cv_prog_ac_ct_CC
12550if test -n "$ac_ct_CC"; then
12551  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12552echo "${ECHO_T}$ac_ct_CC" >&6; }
12553else
12554  { echo "$as_me:$LINENO: result: no" >&5
12555echo "${ECHO_T}no" >&6; }
12556fi
12557
12558  if test "x$ac_ct_CC" = x; then
12559    CC=""
12560  else
12561    case $cross_compiling:$ac_tool_warned in
12562yes:)
12563{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12564whose name does not start with the host triplet.  If you think this
12565configuration is useful to you, please write to autoconf@gnu.org." >&5
12566echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12567whose name does not start with the host triplet.  If you think this
12568configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12569ac_tool_warned=yes ;;
12570esac
12571    CC=$ac_ct_CC
12572  fi
12573else
12574  CC="$ac_cv_prog_CC"
12575fi
12576
12577if test -z "$CC"; then
12578          if test -n "$ac_tool_prefix"; then
12579    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12580set dummy ${ac_tool_prefix}cc; ac_word=$2
12581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12583if test "${ac_cv_prog_CC+set}" = set; then
12584  echo $ECHO_N "(cached) $ECHO_C" >&6
12585else
12586  if test -n "$CC"; then
12587  ac_cv_prog_CC="$CC" # Let the user override the test.
12588else
12589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590for as_dir in $PATH
12591do
12592  IFS=$as_save_IFS
12593  test -z "$as_dir" && as_dir=.
12594  for ac_exec_ext in '' $ac_executable_extensions; do
12595  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12596    ac_cv_prog_CC="${ac_tool_prefix}cc"
12597    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12598    break 2
12599  fi
12600done
12601done
12602IFS=$as_save_IFS
12603
12604fi
12605fi
12606CC=$ac_cv_prog_CC
12607if test -n "$CC"; then
12608  { echo "$as_me:$LINENO: result: $CC" >&5
12609echo "${ECHO_T}$CC" >&6; }
12610else
12611  { echo "$as_me:$LINENO: result: no" >&5
12612echo "${ECHO_T}no" >&6; }
12613fi
12614
12615
12616  fi
12617fi
12618if test -z "$CC"; then
12619  # Extract the first word of "cc", so it can be a program name with args.
12620set dummy cc; ac_word=$2
12621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12623if test "${ac_cv_prog_CC+set}" = set; then
12624  echo $ECHO_N "(cached) $ECHO_C" >&6
12625else
12626  if test -n "$CC"; then
12627  ac_cv_prog_CC="$CC" # Let the user override the test.
12628else
12629  ac_prog_rejected=no
12630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12631for as_dir in $PATH
12632do
12633  IFS=$as_save_IFS
12634  test -z "$as_dir" && as_dir=.
12635  for ac_exec_ext in '' $ac_executable_extensions; do
12636  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12637    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12638       ac_prog_rejected=yes
12639       continue
12640     fi
12641    ac_cv_prog_CC="cc"
12642    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12643    break 2
12644  fi
12645done
12646done
12647IFS=$as_save_IFS
12648
12649if test $ac_prog_rejected = yes; then
12650  # We found a bogon in the path, so make sure we never use it.
12651  set dummy $ac_cv_prog_CC
12652  shift
12653  if test $# != 0; then
12654    # We chose a different compiler from the bogus one.
12655    # However, it has the same basename, so the bogon will be chosen
12656    # first if we set CC to just the basename; use the full file name.
12657    shift
12658    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12659  fi
12660fi
12661fi
12662fi
12663CC=$ac_cv_prog_CC
12664if test -n "$CC"; then
12665  { echo "$as_me:$LINENO: result: $CC" >&5
12666echo "${ECHO_T}$CC" >&6; }
12667else
12668  { echo "$as_me:$LINENO: result: no" >&5
12669echo "${ECHO_T}no" >&6; }
12670fi
12671
12672
12673fi
12674if test -z "$CC"; then
12675  if test -n "$ac_tool_prefix"; then
12676  for ac_prog in cl.exe
12677  do
12678    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12679set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12680{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12682if test "${ac_cv_prog_CC+set}" = set; then
12683  echo $ECHO_N "(cached) $ECHO_C" >&6
12684else
12685  if test -n "$CC"; then
12686  ac_cv_prog_CC="$CC" # Let the user override the test.
12687else
12688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12689for as_dir in $PATH
12690do
12691  IFS=$as_save_IFS
12692  test -z "$as_dir" && as_dir=.
12693  for ac_exec_ext in '' $ac_executable_extensions; do
12694  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12695    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12696    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12697    break 2
12698  fi
12699done
12700done
12701IFS=$as_save_IFS
12702
12703fi
12704fi
12705CC=$ac_cv_prog_CC
12706if test -n "$CC"; then
12707  { echo "$as_me:$LINENO: result: $CC" >&5
12708echo "${ECHO_T}$CC" >&6; }
12709else
12710  { echo "$as_me:$LINENO: result: no" >&5
12711echo "${ECHO_T}no" >&6; }
12712fi
12713
12714
12715    test -n "$CC" && break
12716  done
12717fi
12718if test -z "$CC"; then
12719  ac_ct_CC=$CC
12720  for ac_prog in cl.exe
12721do
12722  # Extract the first word of "$ac_prog", so it can be a program name with args.
12723set dummy $ac_prog; ac_word=$2
12724{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12726if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12727  echo $ECHO_N "(cached) $ECHO_C" >&6
12728else
12729  if test -n "$ac_ct_CC"; then
12730  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12731else
12732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733for as_dir in $PATH
12734do
12735  IFS=$as_save_IFS
12736  test -z "$as_dir" && as_dir=.
12737  for ac_exec_ext in '' $ac_executable_extensions; do
12738  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12739    ac_cv_prog_ac_ct_CC="$ac_prog"
12740    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12741    break 2
12742  fi
12743done
12744done
12745IFS=$as_save_IFS
12746
12747fi
12748fi
12749ac_ct_CC=$ac_cv_prog_ac_ct_CC
12750if test -n "$ac_ct_CC"; then
12751  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12752echo "${ECHO_T}$ac_ct_CC" >&6; }
12753else
12754  { echo "$as_me:$LINENO: result: no" >&5
12755echo "${ECHO_T}no" >&6; }
12756fi
12757
12758
12759  test -n "$ac_ct_CC" && break
12760done
12761
12762  if test "x$ac_ct_CC" = x; then
12763    CC=""
12764  else
12765    case $cross_compiling:$ac_tool_warned in
12766yes:)
12767{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12768whose name does not start with the host triplet.  If you think this
12769configuration is useful to you, please write to autoconf@gnu.org." >&5
12770echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12771whose name does not start with the host triplet.  If you think this
12772configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12773ac_tool_warned=yes ;;
12774esac
12775    CC=$ac_ct_CC
12776  fi
12777fi
12778
12779fi
12780
12781
12782test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12783See \`config.log' for more details." >&5
12784echo "$as_me: error: no acceptable C compiler found in \$PATH
12785See \`config.log' for more details." >&2;}
12786   { (exit 1); exit 1; }; }
12787
12788# Provide some information about the compiler.
12789echo "$as_me:$LINENO: checking for C compiler version" >&5
12790ac_compiler=`set X $ac_compile; echo $2`
12791{ (ac_try="$ac_compiler --version >&5"
12792case "(($ac_try" in
12793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794  *) ac_try_echo=$ac_try;;
12795esac
12796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797  (eval "$ac_compiler --version >&5") 2>&5
12798  ac_status=$?
12799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800  (exit $ac_status); }
12801{ (ac_try="$ac_compiler -v >&5"
12802case "(($ac_try" in
12803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804  *) ac_try_echo=$ac_try;;
12805esac
12806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807  (eval "$ac_compiler -v >&5") 2>&5
12808  ac_status=$?
12809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810  (exit $ac_status); }
12811{ (ac_try="$ac_compiler -V >&5"
12812case "(($ac_try" in
12813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12814  *) ac_try_echo=$ac_try;;
12815esac
12816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12817  (eval "$ac_compiler -V >&5") 2>&5
12818  ac_status=$?
12819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820  (exit $ac_status); }
12821
12822{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12823echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
12824if test "${ac_cv_c_compiler_gnu+set}" = set; then
12825  echo $ECHO_N "(cached) $ECHO_C" >&6
12826else
12827  cat >conftest.$ac_ext <<_ACEOF
12828/* confdefs.h.  */
12829_ACEOF
12830cat confdefs.h >>conftest.$ac_ext
12831cat >>conftest.$ac_ext <<_ACEOF
12832/* end confdefs.h.  */
12833
12834int
12835main ()
12836{
12837#ifndef __GNUC__
12838       choke me
12839#endif
12840
12841  ;
12842  return 0;
12843}
12844_ACEOF
12845rm -f conftest.$ac_objext
12846if { (ac_try="$ac_compile"
12847case "(($ac_try" in
12848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849  *) ac_try_echo=$ac_try;;
12850esac
12851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852  (eval "$ac_compile") 2>conftest.er1
12853  ac_status=$?
12854  grep -v '^ *+' conftest.er1 >conftest.err
12855  rm -f conftest.er1
12856  cat conftest.err >&5
12857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858  (exit $ac_status); } && {
12859	 test -z "$ac_c_werror_flag" ||
12860	 test ! -s conftest.err
12861       } && test -s conftest.$ac_objext; then
12862  ac_compiler_gnu=yes
12863else
12864  echo "$as_me: failed program was:" >&5
12865sed 's/^/| /' conftest.$ac_ext >&5
12866
12867	ac_compiler_gnu=no
12868fi
12869
12870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871ac_cv_c_compiler_gnu=$ac_compiler_gnu
12872
12873fi
12874{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12875echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
12876GCC=`test $ac_compiler_gnu = yes && echo yes`
12877ac_test_CFLAGS=${CFLAGS+set}
12878ac_save_CFLAGS=$CFLAGS
12879{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12880echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
12881if test "${ac_cv_prog_cc_g+set}" = set; then
12882  echo $ECHO_N "(cached) $ECHO_C" >&6
12883else
12884  ac_save_c_werror_flag=$ac_c_werror_flag
12885   ac_c_werror_flag=yes
12886   ac_cv_prog_cc_g=no
12887   CFLAGS="-g"
12888   cat >conftest.$ac_ext <<_ACEOF
12889/* confdefs.h.  */
12890_ACEOF
12891cat confdefs.h >>conftest.$ac_ext
12892cat >>conftest.$ac_ext <<_ACEOF
12893/* end confdefs.h.  */
12894
12895int
12896main ()
12897{
12898
12899  ;
12900  return 0;
12901}
12902_ACEOF
12903rm -f conftest.$ac_objext
12904if { (ac_try="$ac_compile"
12905case "(($ac_try" in
12906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907  *) ac_try_echo=$ac_try;;
12908esac
12909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910  (eval "$ac_compile") 2>conftest.er1
12911  ac_status=$?
12912  grep -v '^ *+' conftest.er1 >conftest.err
12913  rm -f conftest.er1
12914  cat conftest.err >&5
12915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916  (exit $ac_status); } && {
12917	 test -z "$ac_c_werror_flag" ||
12918	 test ! -s conftest.err
12919       } && test -s conftest.$ac_objext; then
12920  ac_cv_prog_cc_g=yes
12921else
12922  echo "$as_me: failed program was:" >&5
12923sed 's/^/| /' conftest.$ac_ext >&5
12924
12925	CFLAGS=""
12926      cat >conftest.$ac_ext <<_ACEOF
12927/* confdefs.h.  */
12928_ACEOF
12929cat confdefs.h >>conftest.$ac_ext
12930cat >>conftest.$ac_ext <<_ACEOF
12931/* end confdefs.h.  */
12932
12933int
12934main ()
12935{
12936
12937  ;
12938  return 0;
12939}
12940_ACEOF
12941rm -f conftest.$ac_objext
12942if { (ac_try="$ac_compile"
12943case "(($ac_try" in
12944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945  *) ac_try_echo=$ac_try;;
12946esac
12947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12948  (eval "$ac_compile") 2>conftest.er1
12949  ac_status=$?
12950  grep -v '^ *+' conftest.er1 >conftest.err
12951  rm -f conftest.er1
12952  cat conftest.err >&5
12953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954  (exit $ac_status); } && {
12955	 test -z "$ac_c_werror_flag" ||
12956	 test ! -s conftest.err
12957       } && test -s conftest.$ac_objext; then
12958  :
12959else
12960  echo "$as_me: failed program was:" >&5
12961sed 's/^/| /' conftest.$ac_ext >&5
12962
12963	ac_c_werror_flag=$ac_save_c_werror_flag
12964	 CFLAGS="-g"
12965	 cat >conftest.$ac_ext <<_ACEOF
12966/* confdefs.h.  */
12967_ACEOF
12968cat confdefs.h >>conftest.$ac_ext
12969cat >>conftest.$ac_ext <<_ACEOF
12970/* end confdefs.h.  */
12971
12972int
12973main ()
12974{
12975
12976  ;
12977  return 0;
12978}
12979_ACEOF
12980rm -f conftest.$ac_objext
12981if { (ac_try="$ac_compile"
12982case "(($ac_try" in
12983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984  *) ac_try_echo=$ac_try;;
12985esac
12986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987  (eval "$ac_compile") 2>conftest.er1
12988  ac_status=$?
12989  grep -v '^ *+' conftest.er1 >conftest.err
12990  rm -f conftest.er1
12991  cat conftest.err >&5
12992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993  (exit $ac_status); } && {
12994	 test -z "$ac_c_werror_flag" ||
12995	 test ! -s conftest.err
12996       } && test -s conftest.$ac_objext; then
12997  ac_cv_prog_cc_g=yes
12998else
12999  echo "$as_me: failed program was:" >&5
13000sed 's/^/| /' conftest.$ac_ext >&5
13001
13002
13003fi
13004
13005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13006fi
13007
13008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13009fi
13010
13011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13012   ac_c_werror_flag=$ac_save_c_werror_flag
13013fi
13014{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13015echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13016if test "$ac_test_CFLAGS" = set; then
13017  CFLAGS=$ac_save_CFLAGS
13018elif test $ac_cv_prog_cc_g = yes; then
13019  if test "$GCC" = yes; then
13020    CFLAGS="-g -O2"
13021  else
13022    CFLAGS="-g"
13023  fi
13024else
13025  if test "$GCC" = yes; then
13026    CFLAGS="-O2"
13027  else
13028    CFLAGS=
13029  fi
13030fi
13031{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13032echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13033if test "${ac_cv_prog_cc_c89+set}" = set; then
13034  echo $ECHO_N "(cached) $ECHO_C" >&6
13035else
13036  ac_cv_prog_cc_c89=no
13037ac_save_CC=$CC
13038cat >conftest.$ac_ext <<_ACEOF
13039/* confdefs.h.  */
13040_ACEOF
13041cat confdefs.h >>conftest.$ac_ext
13042cat >>conftest.$ac_ext <<_ACEOF
13043/* end confdefs.h.  */
13044#include <stdarg.h>
13045#include <stdio.h>
13046#include <sys/types.h>
13047#include <sys/stat.h>
13048/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13049struct buf { int x; };
13050FILE * (*rcsopen) (struct buf *, struct stat *, int);
13051static char *e (p, i)
13052     char **p;
13053     int i;
13054{
13055  return p[i];
13056}
13057static char *f (char * (*g) (char **, int), char **p, ...)
13058{
13059  char *s;
13060  va_list v;
13061  va_start (v,p);
13062  s = g (p, va_arg (v,int));
13063  va_end (v);
13064  return s;
13065}
13066
13067/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13068   function prototypes and stuff, but not '\xHH' hex character constants.
13069   These don't provoke an error unfortunately, instead are silently treated
13070   as 'x'.  The following induces an error, until -std is added to get
13071   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13072   array size at least.  It's necessary to write '\x00'==0 to get something
13073   that's true only with -std.  */
13074int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13075
13076/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13077   inside strings and character constants.  */
13078#define FOO(x) 'x'
13079int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13080
13081int test (int i, double x);
13082struct s1 {int (*f) (int a);};
13083struct s2 {int (*f) (double a);};
13084int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13085int argc;
13086char **argv;
13087int
13088main ()
13089{
13090return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13091  ;
13092  return 0;
13093}
13094_ACEOF
13095for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13096	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13097do
13098  CC="$ac_save_CC $ac_arg"
13099  rm -f conftest.$ac_objext
13100if { (ac_try="$ac_compile"
13101case "(($ac_try" in
13102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103  *) ac_try_echo=$ac_try;;
13104esac
13105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106  (eval "$ac_compile") 2>conftest.er1
13107  ac_status=$?
13108  grep -v '^ *+' conftest.er1 >conftest.err
13109  rm -f conftest.er1
13110  cat conftest.err >&5
13111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112  (exit $ac_status); } && {
13113	 test -z "$ac_c_werror_flag" ||
13114	 test ! -s conftest.err
13115       } && test -s conftest.$ac_objext; then
13116  ac_cv_prog_cc_c89=$ac_arg
13117else
13118  echo "$as_me: failed program was:" >&5
13119sed 's/^/| /' conftest.$ac_ext >&5
13120
13121
13122fi
13123
13124rm -f core conftest.err conftest.$ac_objext
13125  test "x$ac_cv_prog_cc_c89" != "xno" && break
13126done
13127rm -f conftest.$ac_ext
13128CC=$ac_save_CC
13129
13130fi
13131# AC_CACHE_VAL
13132case "x$ac_cv_prog_cc_c89" in
13133  x)
13134    { echo "$as_me:$LINENO: result: none needed" >&5
13135echo "${ECHO_T}none needed" >&6; } ;;
13136  xno)
13137    { echo "$as_me:$LINENO: result: unsupported" >&5
13138echo "${ECHO_T}unsupported" >&6; } ;;
13139  *)
13140    CC="$CC $ac_cv_prog_cc_c89"
13141    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13142echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13143esac
13144
13145
13146ac_ext=c
13147ac_cpp='$CPP $CPPFLAGS'
13148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13150ac_compiler_gnu=$ac_cv_c_compiler_gnu
13151
13152depcc="$CC"   am_compiler_list=
13153
13154{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13155echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13156if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13157  echo $ECHO_N "(cached) $ECHO_C" >&6
13158else
13159  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13160  # We make a subdir and do the tests there.  Otherwise we can end up
13161  # making bogus files that we don't know about and never remove.  For
13162  # instance it was reported that on HP-UX the gcc test will end up
13163  # making a dummy file named `D' -- because `-MD' means `put the output
13164  # in D'.
13165  mkdir conftest.dir
13166  # Copy depcomp to subdir because otherwise we won't find it if we're
13167  # using a relative directory.
13168  cp "$am_depcomp" conftest.dir
13169  cd conftest.dir
13170  # We will build objects and dependencies in a subdirectory because
13171  # it helps to detect inapplicable dependency modes.  For instance
13172  # both Tru64's cc and ICC support -MD to output dependencies as a
13173  # side effect of compilation, but ICC will put the dependencies in
13174  # the current directory while Tru64 will put them in the object
13175  # directory.
13176  mkdir sub
13177
13178  am_cv_CC_dependencies_compiler_type=none
13179  if test "$am_compiler_list" = ""; then
13180     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13181  fi
13182  for depmode in $am_compiler_list; do
13183    # Setup a source with many dependencies, because some compilers
13184    # like to wrap large dependency lists on column 80 (with \), and
13185    # we should not choose a depcomp mode which is confused by this.
13186    #
13187    # We need to recreate these files for each test, as the compiler may
13188    # overwrite some of them when testing with obscure command lines.
13189    # This happens at least with the AIX C compiler.
13190    : > sub/conftest.c
13191    for i in 1 2 3 4 5 6; do
13192      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13193      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13194      # Solaris 8's {/usr,}/bin/sh.
13195      touch sub/conftst$i.h
13196    done
13197    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13198
13199    case $depmode in
13200    nosideeffect)
13201      # after this tag, mechanisms are not by side-effect, so they'll
13202      # only be used when explicitly requested
13203      if test "x$enable_dependency_tracking" = xyes; then
13204	continue
13205      else
13206	break
13207      fi
13208      ;;
13209    none) break ;;
13210    esac
13211    # We check with `-c' and `-o' for the sake of the "dashmstdout"
13212    # mode.  It turns out that the SunPro C++ compiler does not properly
13213    # handle `-M -o', and we need to detect this.
13214    if depmode=$depmode \
13215       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13216       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13217       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13218         >/dev/null 2>conftest.err &&
13219       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13220       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13221       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13222       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13223      # icc doesn't choke on unknown options, it will just issue warnings
13224      # or remarks (even with -Werror).  So we grep stderr for any message
13225      # that says an option was ignored or not supported.
13226      # When given -MP, icc 7.0 and 7.1 complain thusly:
13227      #   icc: Command line warning: ignoring option '-M'; no argument required
13228      # The diagnosis changed in icc 8.0:
13229      #   icc: Command line remark: option '-MP' not supported
13230      if (grep 'ignoring option' conftest.err ||
13231          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13232        am_cv_CC_dependencies_compiler_type=$depmode
13233        break
13234      fi
13235    fi
13236  done
13237
13238  cd ..
13239  rm -rf conftest.dir
13240else
13241  am_cv_CC_dependencies_compiler_type=none
13242fi
13243
13244fi
13245{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13246echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13247CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13248
13249 if
13250  test "x$enable_dependency_tracking" != xno \
13251  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13252  am__fastdepCC_TRUE=
13253  am__fastdepCC_FALSE='#'
13254else
13255  am__fastdepCC_TRUE='#'
13256  am__fastdepCC_FALSE=
13257fi
13258
13259
13260ac_ext=cpp
13261ac_cpp='$CXXCPP $CPPFLAGS'
13262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13265if test -z "$CXX"; then
13266  if test -n "$CCC"; then
13267    CXX=$CCC
13268  else
13269    if test -n "$ac_tool_prefix"; then
13270  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13271  do
13272    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13273set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13276if test "${ac_cv_prog_CXX+set}" = set; then
13277  echo $ECHO_N "(cached) $ECHO_C" >&6
13278else
13279  if test -n "$CXX"; then
13280  ac_cv_prog_CXX="$CXX" # Let the user override the test.
13281else
13282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13283for as_dir in $PATH
13284do
13285  IFS=$as_save_IFS
13286  test -z "$as_dir" && as_dir=.
13287  for ac_exec_ext in '' $ac_executable_extensions; do
13288  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13289    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13290    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13291    break 2
13292  fi
13293done
13294done
13295IFS=$as_save_IFS
13296
13297fi
13298fi
13299CXX=$ac_cv_prog_CXX
13300if test -n "$CXX"; then
13301  { echo "$as_me:$LINENO: result: $CXX" >&5
13302echo "${ECHO_T}$CXX" >&6; }
13303else
13304  { echo "$as_me:$LINENO: result: no" >&5
13305echo "${ECHO_T}no" >&6; }
13306fi
13307
13308
13309    test -n "$CXX" && break
13310  done
13311fi
13312if test -z "$CXX"; then
13313  ac_ct_CXX=$CXX
13314  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13315do
13316  # Extract the first word of "$ac_prog", so it can be a program name with args.
13317set dummy $ac_prog; ac_word=$2
13318{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13320if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13321  echo $ECHO_N "(cached) $ECHO_C" >&6
13322else
13323  if test -n "$ac_ct_CXX"; then
13324  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13325else
13326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327for as_dir in $PATH
13328do
13329  IFS=$as_save_IFS
13330  test -z "$as_dir" && as_dir=.
13331  for ac_exec_ext in '' $ac_executable_extensions; do
13332  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13333    ac_cv_prog_ac_ct_CXX="$ac_prog"
13334    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13335    break 2
13336  fi
13337done
13338done
13339IFS=$as_save_IFS
13340
13341fi
13342fi
13343ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13344if test -n "$ac_ct_CXX"; then
13345  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13346echo "${ECHO_T}$ac_ct_CXX" >&6; }
13347else
13348  { echo "$as_me:$LINENO: result: no" >&5
13349echo "${ECHO_T}no" >&6; }
13350fi
13351
13352
13353  test -n "$ac_ct_CXX" && break
13354done
13355
13356  if test "x$ac_ct_CXX" = x; then
13357    CXX="g++"
13358  else
13359    case $cross_compiling:$ac_tool_warned in
13360yes:)
13361{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13362whose name does not start with the host triplet.  If you think this
13363configuration is useful to you, please write to autoconf@gnu.org." >&5
13364echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13365whose name does not start with the host triplet.  If you think this
13366configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13367ac_tool_warned=yes ;;
13368esac
13369    CXX=$ac_ct_CXX
13370  fi
13371fi
13372
13373  fi
13374fi
13375# Provide some information about the compiler.
13376echo "$as_me:$LINENO: checking for C++ compiler version" >&5
13377ac_compiler=`set X $ac_compile; echo $2`
13378{ (ac_try="$ac_compiler --version >&5"
13379case "(($ac_try" in
13380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381  *) ac_try_echo=$ac_try;;
13382esac
13383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384  (eval "$ac_compiler --version >&5") 2>&5
13385  ac_status=$?
13386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387  (exit $ac_status); }
13388{ (ac_try="$ac_compiler -v >&5"
13389case "(($ac_try" in
13390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391  *) ac_try_echo=$ac_try;;
13392esac
13393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394  (eval "$ac_compiler -v >&5") 2>&5
13395  ac_status=$?
13396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397  (exit $ac_status); }
13398{ (ac_try="$ac_compiler -V >&5"
13399case "(($ac_try" in
13400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401  *) ac_try_echo=$ac_try;;
13402esac
13403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404  (eval "$ac_compiler -V >&5") 2>&5
13405  ac_status=$?
13406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407  (exit $ac_status); }
13408
13409{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13410echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
13411if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13412  echo $ECHO_N "(cached) $ECHO_C" >&6
13413else
13414  cat >conftest.$ac_ext <<_ACEOF
13415/* confdefs.h.  */
13416_ACEOF
13417cat confdefs.h >>conftest.$ac_ext
13418cat >>conftest.$ac_ext <<_ACEOF
13419/* end confdefs.h.  */
13420
13421int
13422main ()
13423{
13424#ifndef __GNUC__
13425       choke me
13426#endif
13427
13428  ;
13429  return 0;
13430}
13431_ACEOF
13432rm -f conftest.$ac_objext
13433if { (ac_try="$ac_compile"
13434case "(($ac_try" in
13435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13436  *) ac_try_echo=$ac_try;;
13437esac
13438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13439  (eval "$ac_compile") 2>conftest.er1
13440  ac_status=$?
13441  grep -v '^ *+' conftest.er1 >conftest.err
13442  rm -f conftest.er1
13443  cat conftest.err >&5
13444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445  (exit $ac_status); } && {
13446	 test -z "$ac_cxx_werror_flag" ||
13447	 test ! -s conftest.err
13448       } && test -s conftest.$ac_objext; then
13449  ac_compiler_gnu=yes
13450else
13451  echo "$as_me: failed program was:" >&5
13452sed 's/^/| /' conftest.$ac_ext >&5
13453
13454	ac_compiler_gnu=no
13455fi
13456
13457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13458ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13459
13460fi
13461{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13462echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
13463GXX=`test $ac_compiler_gnu = yes && echo yes`
13464ac_test_CXXFLAGS=${CXXFLAGS+set}
13465ac_save_CXXFLAGS=$CXXFLAGS
13466{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13467echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
13468if test "${ac_cv_prog_cxx_g+set}" = set; then
13469  echo $ECHO_N "(cached) $ECHO_C" >&6
13470else
13471  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13472   ac_cxx_werror_flag=yes
13473   ac_cv_prog_cxx_g=no
13474   CXXFLAGS="-g"
13475   cat >conftest.$ac_ext <<_ACEOF
13476/* confdefs.h.  */
13477_ACEOF
13478cat confdefs.h >>conftest.$ac_ext
13479cat >>conftest.$ac_ext <<_ACEOF
13480/* end confdefs.h.  */
13481
13482int
13483main ()
13484{
13485
13486  ;
13487  return 0;
13488}
13489_ACEOF
13490rm -f conftest.$ac_objext
13491if { (ac_try="$ac_compile"
13492case "(($ac_try" in
13493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494  *) ac_try_echo=$ac_try;;
13495esac
13496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497  (eval "$ac_compile") 2>conftest.er1
13498  ac_status=$?
13499  grep -v '^ *+' conftest.er1 >conftest.err
13500  rm -f conftest.er1
13501  cat conftest.err >&5
13502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503  (exit $ac_status); } && {
13504	 test -z "$ac_cxx_werror_flag" ||
13505	 test ! -s conftest.err
13506       } && test -s conftest.$ac_objext; then
13507  ac_cv_prog_cxx_g=yes
13508else
13509  echo "$as_me: failed program was:" >&5
13510sed 's/^/| /' conftest.$ac_ext >&5
13511
13512	CXXFLAGS=""
13513      cat >conftest.$ac_ext <<_ACEOF
13514/* confdefs.h.  */
13515_ACEOF
13516cat confdefs.h >>conftest.$ac_ext
13517cat >>conftest.$ac_ext <<_ACEOF
13518/* end confdefs.h.  */
13519
13520int
13521main ()
13522{
13523
13524  ;
13525  return 0;
13526}
13527_ACEOF
13528rm -f conftest.$ac_objext
13529if { (ac_try="$ac_compile"
13530case "(($ac_try" in
13531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532  *) ac_try_echo=$ac_try;;
13533esac
13534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535  (eval "$ac_compile") 2>conftest.er1
13536  ac_status=$?
13537  grep -v '^ *+' conftest.er1 >conftest.err
13538  rm -f conftest.er1
13539  cat conftest.err >&5
13540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541  (exit $ac_status); } && {
13542	 test -z "$ac_cxx_werror_flag" ||
13543	 test ! -s conftest.err
13544       } && test -s conftest.$ac_objext; then
13545  :
13546else
13547  echo "$as_me: failed program was:" >&5
13548sed 's/^/| /' conftest.$ac_ext >&5
13549
13550	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13551	 CXXFLAGS="-g"
13552	 cat >conftest.$ac_ext <<_ACEOF
13553/* confdefs.h.  */
13554_ACEOF
13555cat confdefs.h >>conftest.$ac_ext
13556cat >>conftest.$ac_ext <<_ACEOF
13557/* end confdefs.h.  */
13558
13559int
13560main ()
13561{
13562
13563  ;
13564  return 0;
13565}
13566_ACEOF
13567rm -f conftest.$ac_objext
13568if { (ac_try="$ac_compile"
13569case "(($ac_try" in
13570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13571  *) ac_try_echo=$ac_try;;
13572esac
13573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13574  (eval "$ac_compile") 2>conftest.er1
13575  ac_status=$?
13576  grep -v '^ *+' conftest.er1 >conftest.err
13577  rm -f conftest.er1
13578  cat conftest.err >&5
13579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580  (exit $ac_status); } && {
13581	 test -z "$ac_cxx_werror_flag" ||
13582	 test ! -s conftest.err
13583       } && test -s conftest.$ac_objext; then
13584  ac_cv_prog_cxx_g=yes
13585else
13586  echo "$as_me: failed program was:" >&5
13587sed 's/^/| /' conftest.$ac_ext >&5
13588
13589
13590fi
13591
13592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13593fi
13594
13595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13596fi
13597
13598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13599   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13600fi
13601{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13602echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
13603if test "$ac_test_CXXFLAGS" = set; then
13604  CXXFLAGS=$ac_save_CXXFLAGS
13605elif test $ac_cv_prog_cxx_g = yes; then
13606  if test "$GXX" = yes; then
13607    CXXFLAGS="-g -O2"
13608  else
13609    CXXFLAGS="-g"
13610  fi
13611else
13612  if test "$GXX" = yes; then
13613    CXXFLAGS="-O2"
13614  else
13615    CXXFLAGS=
13616  fi
13617fi
13618ac_ext=c
13619ac_cpp='$CPP $CPPFLAGS'
13620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13622ac_compiler_gnu=$ac_cv_c_compiler_gnu
13623
13624depcc="$CXX"  am_compiler_list=
13625
13626{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13627echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13628if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
13629  echo $ECHO_N "(cached) $ECHO_C" >&6
13630else
13631  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13632  # We make a subdir and do the tests there.  Otherwise we can end up
13633  # making bogus files that we don't know about and never remove.  For
13634  # instance it was reported that on HP-UX the gcc test will end up
13635  # making a dummy file named `D' -- because `-MD' means `put the output
13636  # in D'.
13637  mkdir conftest.dir
13638  # Copy depcomp to subdir because otherwise we won't find it if we're
13639  # using a relative directory.
13640  cp "$am_depcomp" conftest.dir
13641  cd conftest.dir
13642  # We will build objects and dependencies in a subdirectory because
13643  # it helps to detect inapplicable dependency modes.  For instance
13644  # both Tru64's cc and ICC support -MD to output dependencies as a
13645  # side effect of compilation, but ICC will put the dependencies in
13646  # the current directory while Tru64 will put them in the object
13647  # directory.
13648  mkdir sub
13649
13650  am_cv_CXX_dependencies_compiler_type=none
13651  if test "$am_compiler_list" = ""; then
13652     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13653  fi
13654  for depmode in $am_compiler_list; do
13655    # Setup a source with many dependencies, because some compilers
13656    # like to wrap large dependency lists on column 80 (with \), and
13657    # we should not choose a depcomp mode which is confused by this.
13658    #
13659    # We need to recreate these files for each test, as the compiler may
13660    # overwrite some of them when testing with obscure command lines.
13661    # This happens at least with the AIX C compiler.
13662    : > sub/conftest.c
13663    for i in 1 2 3 4 5 6; do
13664      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13665      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13666      # Solaris 8's {/usr,}/bin/sh.
13667      touch sub/conftst$i.h
13668    done
13669    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13670
13671    case $depmode in
13672    nosideeffect)
13673      # after this tag, mechanisms are not by side-effect, so they'll
13674      # only be used when explicitly requested
13675      if test "x$enable_dependency_tracking" = xyes; then
13676	continue
13677      else
13678	break
13679      fi
13680      ;;
13681    none) break ;;
13682    esac
13683    # We check with `-c' and `-o' for the sake of the "dashmstdout"
13684    # mode.  It turns out that the SunPro C++ compiler does not properly
13685    # handle `-M -o', and we need to detect this.
13686    if depmode=$depmode \
13687       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13688       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13689       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13690         >/dev/null 2>conftest.err &&
13691       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13692       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13693       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13694       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13695      # icc doesn't choke on unknown options, it will just issue warnings
13696      # or remarks (even with -Werror).  So we grep stderr for any message
13697      # that says an option was ignored or not supported.
13698      # When given -MP, icc 7.0 and 7.1 complain thusly:
13699      #   icc: Command line warning: ignoring option '-M'; no argument required
13700      # The diagnosis changed in icc 8.0:
13701      #   icc: Command line remark: option '-MP' not supported
13702      if (grep 'ignoring option' conftest.err ||
13703          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13704        am_cv_CXX_dependencies_compiler_type=$depmode
13705        break
13706      fi
13707    fi
13708  done
13709
13710  cd ..
13711  rm -rf conftest.dir
13712else
13713  am_cv_CXX_dependencies_compiler_type=none
13714fi
13715
13716fi
13717{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13718echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
13719CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13720
13721 if
13722  test "x$enable_dependency_tracking" != xno \
13723  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13724  am__fastdepCXX_TRUE=
13725  am__fastdepCXX_FALSE='#'
13726else
13727  am__fastdepCXX_TRUE='#'
13728  am__fastdepCXX_FALSE=
13729fi
13730
13731
13732# Extract the first word of "pkg-config", so it can be a program name with args.
13733set dummy pkg-config; ac_word=$2
13734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13736if test "${ac_cv_prog_has_pkg_config+set}" = set; then
13737  echo $ECHO_N "(cached) $ECHO_C" >&6
13738else
13739  if test -n "$has_pkg_config"; then
13740  ac_cv_prog_has_pkg_config="$has_pkg_config" # Let the user override the test.
13741else
13742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13743for as_dir in $PATH
13744do
13745  IFS=$as_save_IFS
13746  test -z "$as_dir" && as_dir=.
13747  for ac_exec_ext in '' $ac_executable_extensions; do
13748  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13749    ac_cv_prog_has_pkg_config="yes"
13750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13751    break 2
13752  fi
13753done
13754done
13755IFS=$as_save_IFS
13756
13757  test -z "$ac_cv_prog_has_pkg_config" && ac_cv_prog_has_pkg_config="no"
13758fi
13759fi
13760has_pkg_config=$ac_cv_prog_has_pkg_config
13761if test -n "$has_pkg_config"; then
13762  { echo "$as_me:$LINENO: result: $has_pkg_config" >&5
13763echo "${ECHO_T}$has_pkg_config" >&6; }
13764else
13765  { echo "$as_me:$LINENO: result: no" >&5
13766echo "${ECHO_T}no" >&6; }
13767fi
13768
13769
13770if test "x$has_pkg_config" = "xno" ; then
13771	{ { echo "$as_me:$LINENO: error: cannot find pkg-config program!
13772See \`config.log' for more details." >&5
13773echo "$as_me: error: cannot find pkg-config program!
13774See \`config.log' for more details." >&2;}
13775   { (exit 1); exit 1; }; }
13776fi
13777
13778
13779# Check whether --with-webbrowser was given.
13780if test "${with_webbrowser+set}" = set; then
13781  withval=$with_webbrowser;
13782fi
13783
13784if test "x$with_webbrowser" != "x" ; then
13785	# Extract the first word of ""$with_webbrowser"", so it can be a program name with args.
13786set dummy "$with_webbrowser"; ac_word=$2
13787{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13789if test "${ac_cv_path_browserpath+set}" = set; then
13790  echo $ECHO_N "(cached) $ECHO_C" >&6
13791else
13792  case $browserpath in
13793  [\\/]* | ?:[\\/]*)
13794  ac_cv_path_browserpath="$browserpath" # Let the user override the test with a path.
13795  ;;
13796  *)
13797  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798for as_dir in $PATH
13799do
13800  IFS=$as_save_IFS
13801  test -z "$as_dir" && as_dir=.
13802  for ac_exec_ext in '' $ac_executable_extensions; do
13803  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13804    ac_cv_path_browserpath="$as_dir/$ac_word$ac_exec_ext"
13805    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13806    break 2
13807  fi
13808done
13809done
13810IFS=$as_save_IFS
13811
13812  ;;
13813esac
13814fi
13815browserpath=$ac_cv_path_browserpath
13816if test -n "$browserpath"; then
13817  { echo "$as_me:$LINENO: result: $browserpath" >&5
13818echo "${ECHO_T}$browserpath" >&6; }
13819else
13820  { echo "$as_me:$LINENO: result: no" >&5
13821echo "${ECHO_T}no" >&6; }
13822fi
13823
13824
13825else
13826	# Use /usr/bin/open for default browser on Mac OS X
13827	if "$srcdir"/config.guess | grep -q apple-darwin ; then
13828		# Extract the first word of "open", so it can be a program name with args.
13829set dummy open; ac_word=$2
13830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13832if test "${ac_cv_path_browserpath+set}" = set; then
13833  echo $ECHO_N "(cached) $ECHO_C" >&6
13834else
13835  case $browserpath in
13836  [\\/]* | ?:[\\/]*)
13837  ac_cv_path_browserpath="$browserpath" # Let the user override the test with a path.
13838  ;;
13839  *)
13840  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13841for as_dir in $PATH
13842do
13843  IFS=$as_save_IFS
13844  test -z "$as_dir" && as_dir=.
13845  for ac_exec_ext in '' $ac_executable_extensions; do
13846  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13847    ac_cv_path_browserpath="$as_dir/$ac_word$ac_exec_ext"
13848    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13849    break 2
13850  fi
13851done
13852done
13853IFS=$as_save_IFS
13854
13855  ;;
13856esac
13857fi
13858browserpath=$ac_cv_path_browserpath
13859if test -n "$browserpath"; then
13860  { echo "$as_me:$LINENO: result: $browserpath" >&5
13861echo "${ECHO_T}$browserpath" >&6; }
13862else
13863  { echo "$as_me:$LINENO: result: no" >&5
13864echo "${ECHO_T}no" >&6; }
13865fi
13866
13867
13868	fi
13869fi
13870if test "x$browserpath" != "x" ; then
13871
13872cat >>confdefs.h <<_ACEOF
13873#define BROWSER "$browserpath"
13874_ACEOF
13875
13876fi
13877
13878LIBS="-lm"
13879save_libs="$LIBS"
13880# Check whether --enable-gtktest was given.
13881if test "${enable_gtktest+set}" = set; then
13882  enableval=$enable_gtktest;
13883else
13884  enable_gtktest=yes
13885fi
13886
13887
13888  pkg_config_args=gtk+-2.0
13889  for module in .
13890  do
13891      case "$module" in
13892         gthread)
13893             pkg_config_args="$pkg_config_args gthread-2.0"
13894         ;;
13895      esac
13896  done
13897
13898  no_gtk=""
13899
13900  # Extract the first word of "pkg-config", so it can be a program name with args.
13901set dummy pkg-config; ac_word=$2
13902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13904if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13905  echo $ECHO_N "(cached) $ECHO_C" >&6
13906else
13907  case $PKG_CONFIG in
13908  [\\/]* | ?:[\\/]*)
13909  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13910  ;;
13911  *)
13912  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13913for as_dir in $PATH
13914do
13915  IFS=$as_save_IFS
13916  test -z "$as_dir" && as_dir=.
13917  for ac_exec_ext in '' $ac_executable_extensions; do
13918  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13919    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13920    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13921    break 2
13922  fi
13923done
13924done
13925IFS=$as_save_IFS
13926
13927  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13928  ;;
13929esac
13930fi
13931PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13932if test -n "$PKG_CONFIG"; then
13933  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13934echo "${ECHO_T}$PKG_CONFIG" >&6; }
13935else
13936  { echo "$as_me:$LINENO: result: no" >&5
13937echo "${ECHO_T}no" >&6; }
13938fi
13939
13940
13941
13942  if test x$PKG_CONFIG != xno ; then
13943    if pkg-config --atleast-pkgconfig-version 0.7 ; then
13944      :
13945    else
13946      echo "*** pkg-config too old; version 0.7 or better required."
13947      no_gtk=yes
13948      PKG_CONFIG=no
13949    fi
13950  else
13951    no_gtk=yes
13952  fi
13953
13954  min_gtk_version=2.0.0
13955  { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
13956echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
13957
13958  if test x$PKG_CONFIG != xno ; then
13959    ## don't try to run the test against uninstalled libtool libs
13960    if $PKG_CONFIG --uninstalled $pkg_config_args; then
13961	  echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
13962	  enable_gtktest=no
13963    fi
13964
13965    if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
13966	  :
13967    else
13968	  no_gtk=yes
13969    fi
13970  fi
13971
13972  if test x"$no_gtk" = x ; then
13973    GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
13974    GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
13975    gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
13976           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13977    gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
13978           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13979    gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
13980           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13981    if test "x$enable_gtktest" = "xyes" ; then
13982      ac_save_CFLAGS="$CFLAGS"
13983      ac_save_LIBS="$LIBS"
13984      CFLAGS="$CFLAGS $GTK_CFLAGS"
13985      LIBS="$GTK_LIBS $LIBS"
13986      rm -f conf.gtktest
13987      if test "$cross_compiling" = yes; then
13988  echo $ac_n "cross compiling; assumed OK... $ac_c"
13989else
13990  cat >conftest.$ac_ext <<_ACEOF
13991/* confdefs.h.  */
13992_ACEOF
13993cat confdefs.h >>conftest.$ac_ext
13994cat >>conftest.$ac_ext <<_ACEOF
13995/* end confdefs.h.  */
13996
13997#include <gtk/gtk.h>
13998#include <stdio.h>
13999#include <stdlib.h>
14000
14001int
14002main ()
14003{
14004  int major, minor, micro;
14005  char *tmp_version;
14006
14007  system ("touch conf.gtktest");
14008
14009  /* HP/UX 9 (%@#!) writes to sscanf strings */
14010  tmp_version = g_strdup("$min_gtk_version");
14011  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14012     printf("%s, bad version string\n", "$min_gtk_version");
14013     exit(1);
14014   }
14015
14016  if ((gtk_major_version != $gtk_config_major_version) ||
14017      (gtk_minor_version != $gtk_config_minor_version) ||
14018      (gtk_micro_version != $gtk_config_micro_version))
14019    {
14020      printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
14021             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
14022             gtk_major_version, gtk_minor_version, gtk_micro_version);
14023      printf ("*** was found! If pkg-config was correct, then it is best\n");
14024      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
14025      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
14026      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
14027      printf("*** required on your system.\n");
14028      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
14029      printf("*** to point to the correct configuration files\n");
14030    }
14031  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
14032	   (gtk_minor_version != GTK_MINOR_VERSION) ||
14033           (gtk_micro_version != GTK_MICRO_VERSION))
14034    {
14035      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
14036	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
14037      printf("*** library (version %d.%d.%d)\n",
14038	     gtk_major_version, gtk_minor_version, gtk_micro_version);
14039    }
14040  else
14041    {
14042      if ((gtk_major_version > major) ||
14043        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
14044        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
14045      {
14046        return 0;
14047       }
14048     else
14049      {
14050        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
14051               gtk_major_version, gtk_minor_version, gtk_micro_version);
14052        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
14053	       major, minor, micro);
14054        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
14055        printf("***\n");
14056        printf("*** If you have already installed a sufficiently new version, this error\n");
14057        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
14058        printf("*** being found. The easiest way to fix this is to remove the old version\n");
14059        printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
14060        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
14061        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
14062        printf("*** so that the correct libraries are found at run-time))\n");
14063      }
14064    }
14065  return 1;
14066}
14067
14068_ACEOF
14069rm -f conftest$ac_exeext
14070if { (ac_try="$ac_link"
14071case "(($ac_try" in
14072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073  *) ac_try_echo=$ac_try;;
14074esac
14075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076  (eval "$ac_link") 2>&5
14077  ac_status=$?
14078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14080  { (case "(($ac_try" in
14081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082  *) ac_try_echo=$ac_try;;
14083esac
14084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085  (eval "$ac_try") 2>&5
14086  ac_status=$?
14087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088  (exit $ac_status); }; }; then
14089  :
14090else
14091  echo "$as_me: program exited with status $ac_status" >&5
14092echo "$as_me: failed program was:" >&5
14093sed 's/^/| /' conftest.$ac_ext >&5
14094
14095( exit $ac_status )
14096no_gtk=yes
14097fi
14098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14099fi
14100
14101
14102       CFLAGS="$ac_save_CFLAGS"
14103       LIBS="$ac_save_LIBS"
14104     fi
14105  fi
14106  if test "x$no_gtk" = x ; then
14107     { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
14108echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
14109     :
14110  else
14111     { echo "$as_me:$LINENO: result: no" >&5
14112echo "${ECHO_T}no" >&6; }
14113     if test "$PKG_CONFIG" = "no" ; then
14114       echo "*** A new enough version of pkg-config was not found."
14115       echo "*** See http://pkgconfig.sourceforge.net"
14116     else
14117       if test -f conf.gtktest ; then
14118        :
14119       else
14120          echo "*** Could not run GTK+ test program, checking why..."
14121	  ac_save_CFLAGS="$CFLAGS"
14122	  ac_save_LIBS="$LIBS"
14123          CFLAGS="$CFLAGS $GTK_CFLAGS"
14124          LIBS="$LIBS $GTK_LIBS"
14125          cat >conftest.$ac_ext <<_ACEOF
14126/* confdefs.h.  */
14127_ACEOF
14128cat confdefs.h >>conftest.$ac_ext
14129cat >>conftest.$ac_ext <<_ACEOF
14130/* end confdefs.h.  */
14131
14132#include <gtk/gtk.h>
14133#include <stdio.h>
14134
14135int
14136main ()
14137{
14138 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
14139  ;
14140  return 0;
14141}
14142_ACEOF
14143rm -f conftest.$ac_objext conftest$ac_exeext
14144if { (ac_try="$ac_link"
14145case "(($ac_try" in
14146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14147  *) ac_try_echo=$ac_try;;
14148esac
14149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14150  (eval "$ac_link") 2>conftest.er1
14151  ac_status=$?
14152  grep -v '^ *+' conftest.er1 >conftest.err
14153  rm -f conftest.er1
14154  cat conftest.err >&5
14155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156  (exit $ac_status); } && {
14157	 test -z "$ac_c_werror_flag" ||
14158	 test ! -s conftest.err
14159       } && test -s conftest$ac_exeext &&
14160       $as_test_x conftest$ac_exeext; then
14161   echo "*** The test program compiled, but did not run. This usually means"
14162          echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
14163          echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
14164          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14165          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14166          echo "*** is required on your system"
14167	  echo "***"
14168          echo "*** If you have an old version installed, it is best to remove it, although"
14169          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14170else
14171  echo "$as_me: failed program was:" >&5
14172sed 's/^/| /' conftest.$ac_ext >&5
14173
14174	 echo "*** The test program failed to compile or link. See the file config.log for the"
14175          echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
14176fi
14177
14178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14179      conftest$ac_exeext conftest.$ac_ext
14180          CFLAGS="$ac_save_CFLAGS"
14181          LIBS="$ac_save_LIBS"
14182       fi
14183     fi
14184     GTK_CFLAGS=""
14185     GTK_LIBS=""
14186     { { echo "$as_me:$LINENO: error: cannot find GTK+ 2.x library!
14187See \`config.log' for more details." >&5
14188echo "$as_me: error: cannot find GTK+ 2.x library!
14189See \`config.log' for more details." >&2;}
14190   { (exit 1); exit 1; }; }
14191  fi
14192
14193
14194  rm -f conf.gtktest
14195
14196LIBS="$GTK_LIBS $LIBS"
14197
14198ac_ext=c
14199ac_cpp='$CPP $CPPFLAGS'
14200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14202ac_compiler_gnu=$ac_cv_c_compiler_gnu
14203
14204{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14205echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14206if test "${ac_cv_header_stdc+set}" = set; then
14207  echo $ECHO_N "(cached) $ECHO_C" >&6
14208else
14209  cat >conftest.$ac_ext <<_ACEOF
14210/* confdefs.h.  */
14211_ACEOF
14212cat confdefs.h >>conftest.$ac_ext
14213cat >>conftest.$ac_ext <<_ACEOF
14214/* end confdefs.h.  */
14215#include <stdlib.h>
14216#include <stdarg.h>
14217#include <string.h>
14218#include <float.h>
14219
14220int
14221main ()
14222{
14223
14224  ;
14225  return 0;
14226}
14227_ACEOF
14228rm -f conftest.$ac_objext
14229if { (ac_try="$ac_compile"
14230case "(($ac_try" in
14231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232  *) ac_try_echo=$ac_try;;
14233esac
14234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235  (eval "$ac_compile") 2>conftest.er1
14236  ac_status=$?
14237  grep -v '^ *+' conftest.er1 >conftest.err
14238  rm -f conftest.er1
14239  cat conftest.err >&5
14240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241  (exit $ac_status); } && {
14242	 test -z "$ac_c_werror_flag" ||
14243	 test ! -s conftest.err
14244       } && test -s conftest.$ac_objext; then
14245  ac_cv_header_stdc=yes
14246else
14247  echo "$as_me: failed program was:" >&5
14248sed 's/^/| /' conftest.$ac_ext >&5
14249
14250	ac_cv_header_stdc=no
14251fi
14252
14253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14254
14255if test $ac_cv_header_stdc = yes; then
14256  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14257  cat >conftest.$ac_ext <<_ACEOF
14258/* confdefs.h.  */
14259_ACEOF
14260cat confdefs.h >>conftest.$ac_ext
14261cat >>conftest.$ac_ext <<_ACEOF
14262/* end confdefs.h.  */
14263#include <string.h>
14264
14265_ACEOF
14266if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14267  $EGREP "memchr" >/dev/null 2>&1; then
14268  :
14269else
14270  ac_cv_header_stdc=no
14271fi
14272rm -f conftest*
14273
14274fi
14275
14276if test $ac_cv_header_stdc = yes; then
14277  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14278  cat >conftest.$ac_ext <<_ACEOF
14279/* confdefs.h.  */
14280_ACEOF
14281cat confdefs.h >>conftest.$ac_ext
14282cat >>conftest.$ac_ext <<_ACEOF
14283/* end confdefs.h.  */
14284#include <stdlib.h>
14285
14286_ACEOF
14287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14288  $EGREP "free" >/dev/null 2>&1; then
14289  :
14290else
14291  ac_cv_header_stdc=no
14292fi
14293rm -f conftest*
14294
14295fi
14296
14297if test $ac_cv_header_stdc = yes; then
14298  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14299  if test "$cross_compiling" = yes; then
14300  :
14301else
14302  cat >conftest.$ac_ext <<_ACEOF
14303/* confdefs.h.  */
14304_ACEOF
14305cat confdefs.h >>conftest.$ac_ext
14306cat >>conftest.$ac_ext <<_ACEOF
14307/* end confdefs.h.  */
14308#include <ctype.h>
14309#include <stdlib.h>
14310#if ((' ' & 0x0FF) == 0x020)
14311# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14312# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14313#else
14314# define ISLOWER(c) \
14315		   (('a' <= (c) && (c) <= 'i') \
14316		     || ('j' <= (c) && (c) <= 'r') \
14317		     || ('s' <= (c) && (c) <= 'z'))
14318# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14319#endif
14320
14321#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14322int
14323main ()
14324{
14325  int i;
14326  for (i = 0; i < 256; i++)
14327    if (XOR (islower (i), ISLOWER (i))
14328	|| toupper (i) != TOUPPER (i))
14329      return 2;
14330  return 0;
14331}
14332_ACEOF
14333rm -f conftest$ac_exeext
14334if { (ac_try="$ac_link"
14335case "(($ac_try" in
14336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14337  *) ac_try_echo=$ac_try;;
14338esac
14339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14340  (eval "$ac_link") 2>&5
14341  ac_status=$?
14342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14344  { (case "(($ac_try" in
14345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346  *) ac_try_echo=$ac_try;;
14347esac
14348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349  (eval "$ac_try") 2>&5
14350  ac_status=$?
14351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352  (exit $ac_status); }; }; then
14353  :
14354else
14355  echo "$as_me: program exited with status $ac_status" >&5
14356echo "$as_me: failed program was:" >&5
14357sed 's/^/| /' conftest.$ac_ext >&5
14358
14359( exit $ac_status )
14360ac_cv_header_stdc=no
14361fi
14362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14363fi
14364
14365
14366fi
14367fi
14368{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14369echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
14370if test $ac_cv_header_stdc = yes; then
14371
14372cat >>confdefs.h <<\_ACEOF
14373#define STDC_HEADERS 1
14374_ACEOF
14375
14376fi
14377
14378{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14379echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14380if test "${ac_cv_header_sys_wait_h+set}" = set; then
14381  echo $ECHO_N "(cached) $ECHO_C" >&6
14382else
14383  cat >conftest.$ac_ext <<_ACEOF
14384/* confdefs.h.  */
14385_ACEOF
14386cat confdefs.h >>conftest.$ac_ext
14387cat >>conftest.$ac_ext <<_ACEOF
14388/* end confdefs.h.  */
14389#include <sys/types.h>
14390#include <sys/wait.h>
14391#ifndef WEXITSTATUS
14392# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14393#endif
14394#ifndef WIFEXITED
14395# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14396#endif
14397
14398int
14399main ()
14400{
14401  int s;
14402  wait (&s);
14403  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14404  ;
14405  return 0;
14406}
14407_ACEOF
14408rm -f conftest.$ac_objext
14409if { (ac_try="$ac_compile"
14410case "(($ac_try" in
14411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412  *) ac_try_echo=$ac_try;;
14413esac
14414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415  (eval "$ac_compile") 2>conftest.er1
14416  ac_status=$?
14417  grep -v '^ *+' conftest.er1 >conftest.err
14418  rm -f conftest.er1
14419  cat conftest.err >&5
14420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421  (exit $ac_status); } && {
14422	 test -z "$ac_c_werror_flag" ||
14423	 test ! -s conftest.err
14424       } && test -s conftest.$ac_objext; then
14425  ac_cv_header_sys_wait_h=yes
14426else
14427  echo "$as_me: failed program was:" >&5
14428sed 's/^/| /' conftest.$ac_ext >&5
14429
14430	ac_cv_header_sys_wait_h=no
14431fi
14432
14433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14434fi
14435{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14436echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14437if test $ac_cv_header_sys_wait_h = yes; then
14438
14439cat >>confdefs.h <<\_ACEOF
14440#define HAVE_SYS_WAIT_H 1
14441_ACEOF
14442
14443fi
14444
14445
14446
14447
14448
14449
14450
14451
14452for ac_header in stdarg.h stdio.h stdlib.h locale.h sys/types.h unistd.h \
14453		 string.h
14454do
14455as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14456if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14457  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14460  echo $ECHO_N "(cached) $ECHO_C" >&6
14461fi
14462ac_res=`eval echo '${'$as_ac_Header'}'`
14463	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14464echo "${ECHO_T}$ac_res" >&6; }
14465else
14466  # Is the header compilable?
14467{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14468echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14469cat >conftest.$ac_ext <<_ACEOF
14470/* confdefs.h.  */
14471_ACEOF
14472cat confdefs.h >>conftest.$ac_ext
14473cat >>conftest.$ac_ext <<_ACEOF
14474/* end confdefs.h.  */
14475$ac_includes_default
14476#include <$ac_header>
14477_ACEOF
14478rm -f conftest.$ac_objext
14479if { (ac_try="$ac_compile"
14480case "(($ac_try" in
14481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482  *) ac_try_echo=$ac_try;;
14483esac
14484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14485  (eval "$ac_compile") 2>conftest.er1
14486  ac_status=$?
14487  grep -v '^ *+' conftest.er1 >conftest.err
14488  rm -f conftest.er1
14489  cat conftest.err >&5
14490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491  (exit $ac_status); } && {
14492	 test -z "$ac_c_werror_flag" ||
14493	 test ! -s conftest.err
14494       } && test -s conftest.$ac_objext; then
14495  ac_header_compiler=yes
14496else
14497  echo "$as_me: failed program was:" >&5
14498sed 's/^/| /' conftest.$ac_ext >&5
14499
14500	ac_header_compiler=no
14501fi
14502
14503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14504{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14505echo "${ECHO_T}$ac_header_compiler" >&6; }
14506
14507# Is the header present?
14508{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14509echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14510cat >conftest.$ac_ext <<_ACEOF
14511/* confdefs.h.  */
14512_ACEOF
14513cat confdefs.h >>conftest.$ac_ext
14514cat >>conftest.$ac_ext <<_ACEOF
14515/* end confdefs.h.  */
14516#include <$ac_header>
14517_ACEOF
14518if { (ac_try="$ac_cpp conftest.$ac_ext"
14519case "(($ac_try" in
14520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521  *) ac_try_echo=$ac_try;;
14522esac
14523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14525  ac_status=$?
14526  grep -v '^ *+' conftest.er1 >conftest.err
14527  rm -f conftest.er1
14528  cat conftest.err >&5
14529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530  (exit $ac_status); } >/dev/null && {
14531	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14532	 test ! -s conftest.err
14533       }; then
14534  ac_header_preproc=yes
14535else
14536  echo "$as_me: failed program was:" >&5
14537sed 's/^/| /' conftest.$ac_ext >&5
14538
14539  ac_header_preproc=no
14540fi
14541
14542rm -f conftest.err conftest.$ac_ext
14543{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14544echo "${ECHO_T}$ac_header_preproc" >&6; }
14545
14546# So?  What about this header?
14547case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14548  yes:no: )
14549    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14550echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14551    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14552echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14553    ac_header_preproc=yes
14554    ;;
14555  no:yes:* )
14556    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14557echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14558    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14559echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14560    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14561echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14562    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14563echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14564    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14565echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14566    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14567echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14568    ( cat <<\_ASBOX
14569## ------------------------------------ ##
14570## Report this to starplot@starplot.org ##
14571## ------------------------------------ ##
14572_ASBOX
14573     ) | sed "s/^/$as_me: WARNING:     /" >&2
14574    ;;
14575esac
14576{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14579  echo $ECHO_N "(cached) $ECHO_C" >&6
14580else
14581  eval "$as_ac_Header=\$ac_header_preproc"
14582fi
14583ac_res=`eval echo '${'$as_ac_Header'}'`
14584	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14585echo "${ECHO_T}$ac_res" >&6; }
14586
14587fi
14588if test `eval echo '${'$as_ac_Header'}'` = yes; then
14589  cat >>confdefs.h <<_ACEOF
14590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14591_ACEOF
14592
14593else
14594  { { echo "$as_me:$LINENO: error: cannot find required system header!
14595See \`config.log' for more details." >&5
14596echo "$as_me: error: cannot find required system header!
14597See \`config.log' for more details." >&2;}
14598   { (exit 1); exit 1; }; }
14599fi
14600
14601done
14602
14603ac_ext=cpp
14604ac_cpp='$CXXCPP $CPPFLAGS'
14605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14608
14609
14610ac_ext=cpp
14611ac_cpp='$CXXCPP $CPPFLAGS'
14612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14615{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14616echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14617if test -z "$CXXCPP"; then
14618  if test "${ac_cv_prog_CXXCPP+set}" = set; then
14619  echo $ECHO_N "(cached) $ECHO_C" >&6
14620else
14621      # Double quotes because CXXCPP needs to be expanded
14622    for CXXCPP in "$CXX -E" "/lib/cpp"
14623    do
14624      ac_preproc_ok=false
14625for ac_cxx_preproc_warn_flag in '' yes
14626do
14627  # Use a header file that comes with gcc, so configuring glibc
14628  # with a fresh cross-compiler works.
14629  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14630  # <limits.h> exists even on freestanding compilers.
14631  # On the NeXT, cc -E runs the code through the compiler's parser,
14632  # not just through cpp. "Syntax error" is here to catch this case.
14633  cat >conftest.$ac_ext <<_ACEOF
14634/* confdefs.h.  */
14635_ACEOF
14636cat confdefs.h >>conftest.$ac_ext
14637cat >>conftest.$ac_ext <<_ACEOF
14638/* end confdefs.h.  */
14639#ifdef __STDC__
14640# include <limits.h>
14641#else
14642# include <assert.h>
14643#endif
14644		     Syntax error
14645_ACEOF
14646if { (ac_try="$ac_cpp conftest.$ac_ext"
14647case "(($ac_try" in
14648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649  *) ac_try_echo=$ac_try;;
14650esac
14651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14653  ac_status=$?
14654  grep -v '^ *+' conftest.er1 >conftest.err
14655  rm -f conftest.er1
14656  cat conftest.err >&5
14657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658  (exit $ac_status); } >/dev/null && {
14659	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14660	 test ! -s conftest.err
14661       }; then
14662  :
14663else
14664  echo "$as_me: failed program was:" >&5
14665sed 's/^/| /' conftest.$ac_ext >&5
14666
14667  # Broken: fails on valid input.
14668continue
14669fi
14670
14671rm -f conftest.err conftest.$ac_ext
14672
14673  # OK, works on sane cases.  Now check whether nonexistent headers
14674  # can be detected and how.
14675  cat >conftest.$ac_ext <<_ACEOF
14676/* confdefs.h.  */
14677_ACEOF
14678cat confdefs.h >>conftest.$ac_ext
14679cat >>conftest.$ac_ext <<_ACEOF
14680/* end confdefs.h.  */
14681#include <ac_nonexistent.h>
14682_ACEOF
14683if { (ac_try="$ac_cpp conftest.$ac_ext"
14684case "(($ac_try" in
14685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686  *) ac_try_echo=$ac_try;;
14687esac
14688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14690  ac_status=$?
14691  grep -v '^ *+' conftest.er1 >conftest.err
14692  rm -f conftest.er1
14693  cat conftest.err >&5
14694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695  (exit $ac_status); } >/dev/null && {
14696	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14697	 test ! -s conftest.err
14698       }; then
14699  # Broken: success on invalid input.
14700continue
14701else
14702  echo "$as_me: failed program was:" >&5
14703sed 's/^/| /' conftest.$ac_ext >&5
14704
14705  # Passes both tests.
14706ac_preproc_ok=:
14707break
14708fi
14709
14710rm -f conftest.err conftest.$ac_ext
14711
14712done
14713# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14714rm -f conftest.err conftest.$ac_ext
14715if $ac_preproc_ok; then
14716  break
14717fi
14718
14719    done
14720    ac_cv_prog_CXXCPP=$CXXCPP
14721
14722fi
14723  CXXCPP=$ac_cv_prog_CXXCPP
14724else
14725  ac_cv_prog_CXXCPP=$CXXCPP
14726fi
14727{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
14728echo "${ECHO_T}$CXXCPP" >&6; }
14729ac_preproc_ok=false
14730for ac_cxx_preproc_warn_flag in '' yes
14731do
14732  # Use a header file that comes with gcc, so configuring glibc
14733  # with a fresh cross-compiler works.
14734  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14735  # <limits.h> exists even on freestanding compilers.
14736  # On the NeXT, cc -E runs the code through the compiler's parser,
14737  # not just through cpp. "Syntax error" is here to catch this case.
14738  cat >conftest.$ac_ext <<_ACEOF
14739/* confdefs.h.  */
14740_ACEOF
14741cat confdefs.h >>conftest.$ac_ext
14742cat >>conftest.$ac_ext <<_ACEOF
14743/* end confdefs.h.  */
14744#ifdef __STDC__
14745# include <limits.h>
14746#else
14747# include <assert.h>
14748#endif
14749		     Syntax error
14750_ACEOF
14751if { (ac_try="$ac_cpp conftest.$ac_ext"
14752case "(($ac_try" in
14753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754  *) ac_try_echo=$ac_try;;
14755esac
14756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14758  ac_status=$?
14759  grep -v '^ *+' conftest.er1 >conftest.err
14760  rm -f conftest.er1
14761  cat conftest.err >&5
14762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763  (exit $ac_status); } >/dev/null && {
14764	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14765	 test ! -s conftest.err
14766       }; then
14767  :
14768else
14769  echo "$as_me: failed program was:" >&5
14770sed 's/^/| /' conftest.$ac_ext >&5
14771
14772  # Broken: fails on valid input.
14773continue
14774fi
14775
14776rm -f conftest.err conftest.$ac_ext
14777
14778  # OK, works on sane cases.  Now check whether nonexistent headers
14779  # can be detected and how.
14780  cat >conftest.$ac_ext <<_ACEOF
14781/* confdefs.h.  */
14782_ACEOF
14783cat confdefs.h >>conftest.$ac_ext
14784cat >>conftest.$ac_ext <<_ACEOF
14785/* end confdefs.h.  */
14786#include <ac_nonexistent.h>
14787_ACEOF
14788if { (ac_try="$ac_cpp conftest.$ac_ext"
14789case "(($ac_try" in
14790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791  *) ac_try_echo=$ac_try;;
14792esac
14793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14795  ac_status=$?
14796  grep -v '^ *+' conftest.er1 >conftest.err
14797  rm -f conftest.er1
14798  cat conftest.err >&5
14799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800  (exit $ac_status); } >/dev/null && {
14801	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14802	 test ! -s conftest.err
14803       }; then
14804  # Broken: success on invalid input.
14805continue
14806else
14807  echo "$as_me: failed program was:" >&5
14808sed 's/^/| /' conftest.$ac_ext >&5
14809
14810  # Passes both tests.
14811ac_preproc_ok=:
14812break
14813fi
14814
14815rm -f conftest.err conftest.$ac_ext
14816
14817done
14818# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14819rm -f conftest.err conftest.$ac_ext
14820if $ac_preproc_ok; then
14821  :
14822else
14823  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14824See \`config.log' for more details." >&5
14825echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14826See \`config.log' for more details." >&2;}
14827   { (exit 1); exit 1; }; }
14828fi
14829
14830ac_ext=cpp
14831ac_cpp='$CXXCPP $CPPFLAGS'
14832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14835
14836
14837
14838for ac_header in string
14839do
14840as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14842  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14845  echo $ECHO_N "(cached) $ECHO_C" >&6
14846fi
14847ac_res=`eval echo '${'$as_ac_Header'}'`
14848	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14849echo "${ECHO_T}$ac_res" >&6; }
14850else
14851  # Is the header compilable?
14852{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14854cat >conftest.$ac_ext <<_ACEOF
14855/* confdefs.h.  */
14856_ACEOF
14857cat confdefs.h >>conftest.$ac_ext
14858cat >>conftest.$ac_ext <<_ACEOF
14859/* end confdefs.h.  */
14860$ac_includes_default
14861#include <$ac_header>
14862_ACEOF
14863rm -f conftest.$ac_objext
14864if { (ac_try="$ac_compile"
14865case "(($ac_try" in
14866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867  *) ac_try_echo=$ac_try;;
14868esac
14869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14870  (eval "$ac_compile") 2>conftest.er1
14871  ac_status=$?
14872  grep -v '^ *+' conftest.er1 >conftest.err
14873  rm -f conftest.er1
14874  cat conftest.err >&5
14875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876  (exit $ac_status); } && {
14877	 test -z "$ac_cxx_werror_flag" ||
14878	 test ! -s conftest.err
14879       } && test -s conftest.$ac_objext; then
14880  ac_header_compiler=yes
14881else
14882  echo "$as_me: failed program was:" >&5
14883sed 's/^/| /' conftest.$ac_ext >&5
14884
14885	ac_header_compiler=no
14886fi
14887
14888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14889{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14890echo "${ECHO_T}$ac_header_compiler" >&6; }
14891
14892# Is the header present?
14893{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14894echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14895cat >conftest.$ac_ext <<_ACEOF
14896/* confdefs.h.  */
14897_ACEOF
14898cat confdefs.h >>conftest.$ac_ext
14899cat >>conftest.$ac_ext <<_ACEOF
14900/* end confdefs.h.  */
14901#include <$ac_header>
14902_ACEOF
14903if { (ac_try="$ac_cpp conftest.$ac_ext"
14904case "(($ac_try" in
14905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906  *) ac_try_echo=$ac_try;;
14907esac
14908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14910  ac_status=$?
14911  grep -v '^ *+' conftest.er1 >conftest.err
14912  rm -f conftest.er1
14913  cat conftest.err >&5
14914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915  (exit $ac_status); } >/dev/null && {
14916	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14917	 test ! -s conftest.err
14918       }; then
14919  ac_header_preproc=yes
14920else
14921  echo "$as_me: failed program was:" >&5
14922sed 's/^/| /' conftest.$ac_ext >&5
14923
14924  ac_header_preproc=no
14925fi
14926
14927rm -f conftest.err conftest.$ac_ext
14928{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14929echo "${ECHO_T}$ac_header_preproc" >&6; }
14930
14931# So?  What about this header?
14932case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14933  yes:no: )
14934    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14935echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14936    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14937echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14938    ac_header_preproc=yes
14939    ;;
14940  no:yes:* )
14941    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14942echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14943    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14944echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14945    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14946echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14947    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14948echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14949    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14950echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14951    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14952echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14953    ( cat <<\_ASBOX
14954## ------------------------------------ ##
14955## Report this to starplot@starplot.org ##
14956## ------------------------------------ ##
14957_ASBOX
14958     ) | sed "s/^/$as_me: WARNING:     /" >&2
14959    ;;
14960esac
14961{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14964  echo $ECHO_N "(cached) $ECHO_C" >&6
14965else
14966  eval "$as_ac_Header=\$ac_header_preproc"
14967fi
14968ac_res=`eval echo '${'$as_ac_Header'}'`
14969	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14970echo "${ECHO_T}$ac_res" >&6; }
14971
14972fi
14973if test `eval echo '${'$as_ac_Header'}'` = yes; then
14974  cat >>confdefs.h <<_ACEOF
14975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14976_ACEOF
14977
14978else
14979  { { echo "$as_me:$LINENO: error: cannot find C++ STL string header!
14980See \`config.log' for more details." >&5
14981echo "$as_me: error: cannot find C++ STL string header!
14982See \`config.log' for more details." >&2;}
14983   { (exit 1); exit 1; }; }
14984fi
14985
14986done
14987
14988
14989ac_ext=c
14990ac_cpp='$CPP $CPPFLAGS'
14991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14993ac_compiler_gnu=$ac_cv_c_compiler_gnu
14994
14995{ echo "$as_me:$LINENO: checking for working volatile" >&5
14996echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
14997if test "${ac_cv_c_volatile+set}" = set; then
14998  echo $ECHO_N "(cached) $ECHO_C" >&6
14999else
15000  cat >conftest.$ac_ext <<_ACEOF
15001/* confdefs.h.  */
15002_ACEOF
15003cat confdefs.h >>conftest.$ac_ext
15004cat >>conftest.$ac_ext <<_ACEOF
15005/* end confdefs.h.  */
15006
15007int
15008main ()
15009{
15010
15011volatile int x;
15012int * volatile y = (int *) 0;
15013return !x && !y;
15014  ;
15015  return 0;
15016}
15017_ACEOF
15018rm -f conftest.$ac_objext
15019if { (ac_try="$ac_compile"
15020case "(($ac_try" in
15021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022  *) ac_try_echo=$ac_try;;
15023esac
15024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15025  (eval "$ac_compile") 2>conftest.er1
15026  ac_status=$?
15027  grep -v '^ *+' conftest.er1 >conftest.err
15028  rm -f conftest.er1
15029  cat conftest.err >&5
15030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031  (exit $ac_status); } && {
15032	 test -z "$ac_c_werror_flag" ||
15033	 test ! -s conftest.err
15034       } && test -s conftest.$ac_objext; then
15035  ac_cv_c_volatile=yes
15036else
15037  echo "$as_me: failed program was:" >&5
15038sed 's/^/| /' conftest.$ac_ext >&5
15039
15040	ac_cv_c_volatile=no
15041fi
15042
15043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15044fi
15045{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15046echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
15047if test $ac_cv_c_volatile = no; then
15048
15049cat >>confdefs.h <<\_ACEOF
15050#define volatile
15051_ACEOF
15052
15053fi
15054
15055{ echo "$as_me:$LINENO: checking for pid_t" >&5
15056echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
15057if test "${ac_cv_type_pid_t+set}" = set; then
15058  echo $ECHO_N "(cached) $ECHO_C" >&6
15059else
15060  cat >conftest.$ac_ext <<_ACEOF
15061/* confdefs.h.  */
15062_ACEOF
15063cat confdefs.h >>conftest.$ac_ext
15064cat >>conftest.$ac_ext <<_ACEOF
15065/* end confdefs.h.  */
15066$ac_includes_default
15067typedef pid_t ac__type_new_;
15068int
15069main ()
15070{
15071if ((ac__type_new_ *) 0)
15072  return 0;
15073if (sizeof (ac__type_new_))
15074  return 0;
15075  ;
15076  return 0;
15077}
15078_ACEOF
15079rm -f conftest.$ac_objext
15080if { (ac_try="$ac_compile"
15081case "(($ac_try" in
15082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083  *) ac_try_echo=$ac_try;;
15084esac
15085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086  (eval "$ac_compile") 2>conftest.er1
15087  ac_status=$?
15088  grep -v '^ *+' conftest.er1 >conftest.err
15089  rm -f conftest.er1
15090  cat conftest.err >&5
15091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092  (exit $ac_status); } && {
15093	 test -z "$ac_c_werror_flag" ||
15094	 test ! -s conftest.err
15095       } && test -s conftest.$ac_objext; then
15096  ac_cv_type_pid_t=yes
15097else
15098  echo "$as_me: failed program was:" >&5
15099sed 's/^/| /' conftest.$ac_ext >&5
15100
15101	ac_cv_type_pid_t=no
15102fi
15103
15104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15105fi
15106{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15107echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
15108if test $ac_cv_type_pid_t = yes; then
15109  :
15110else
15111
15112cat >>confdefs.h <<_ACEOF
15113#define pid_t int
15114_ACEOF
15115
15116fi
15117
15118{ echo "$as_me:$LINENO: checking for size_t" >&5
15119echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
15120if test "${ac_cv_type_size_t+set}" = set; then
15121  echo $ECHO_N "(cached) $ECHO_C" >&6
15122else
15123  cat >conftest.$ac_ext <<_ACEOF
15124/* confdefs.h.  */
15125_ACEOF
15126cat confdefs.h >>conftest.$ac_ext
15127cat >>conftest.$ac_ext <<_ACEOF
15128/* end confdefs.h.  */
15129$ac_includes_default
15130typedef size_t ac__type_new_;
15131int
15132main ()
15133{
15134if ((ac__type_new_ *) 0)
15135  return 0;
15136if (sizeof (ac__type_new_))
15137  return 0;
15138  ;
15139  return 0;
15140}
15141_ACEOF
15142rm -f conftest.$ac_objext
15143if { (ac_try="$ac_compile"
15144case "(($ac_try" in
15145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146  *) ac_try_echo=$ac_try;;
15147esac
15148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149  (eval "$ac_compile") 2>conftest.er1
15150  ac_status=$?
15151  grep -v '^ *+' conftest.er1 >conftest.err
15152  rm -f conftest.er1
15153  cat conftest.err >&5
15154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155  (exit $ac_status); } && {
15156	 test -z "$ac_c_werror_flag" ||
15157	 test ! -s conftest.err
15158       } && test -s conftest.$ac_objext; then
15159  ac_cv_type_size_t=yes
15160else
15161  echo "$as_me: failed program was:" >&5
15162sed 's/^/| /' conftest.$ac_ext >&5
15163
15164	ac_cv_type_size_t=no
15165fi
15166
15167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15168fi
15169{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15170echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
15171if test $ac_cv_type_size_t = yes; then
15172  :
15173else
15174
15175cat >>confdefs.h <<_ACEOF
15176#define size_t unsigned int
15177_ACEOF
15178
15179fi
15180
15181
15182ac_ext=cpp
15183ac_cpp='$CXXCPP $CPPFLAGS'
15184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15187
15188{ echo "$as_me:$LINENO: checking for std::ostringstream" >&5
15189echo $ECHO_N "checking for std::ostringstream... $ECHO_C" >&6; }
15190if test "${ac_cv_type_std__ostringstream+set}" = set; then
15191  echo $ECHO_N "(cached) $ECHO_C" >&6
15192else
15193  cat >conftest.$ac_ext <<_ACEOF
15194/* confdefs.h.  */
15195_ACEOF
15196cat confdefs.h >>conftest.$ac_ext
15197cat >>conftest.$ac_ext <<_ACEOF
15198/* end confdefs.h.  */
15199#include <sstream>
15200
15201
15202typedef std::ostringstream ac__type_new_;
15203int
15204main ()
15205{
15206if ((ac__type_new_ *) 0)
15207  return 0;
15208if (sizeof (ac__type_new_))
15209  return 0;
15210  ;
15211  return 0;
15212}
15213_ACEOF
15214rm -f conftest.$ac_objext
15215if { (ac_try="$ac_compile"
15216case "(($ac_try" in
15217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218  *) ac_try_echo=$ac_try;;
15219esac
15220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221  (eval "$ac_compile") 2>conftest.er1
15222  ac_status=$?
15223  grep -v '^ *+' conftest.er1 >conftest.err
15224  rm -f conftest.er1
15225  cat conftest.err >&5
15226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227  (exit $ac_status); } && {
15228	 test -z "$ac_cxx_werror_flag" ||
15229	 test ! -s conftest.err
15230       } && test -s conftest.$ac_objext; then
15231  ac_cv_type_std__ostringstream=yes
15232else
15233  echo "$as_me: failed program was:" >&5
15234sed 's/^/| /' conftest.$ac_ext >&5
15235
15236	ac_cv_type_std__ostringstream=no
15237fi
15238
15239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15240fi
15241{ echo "$as_me:$LINENO: result: $ac_cv_type_std__ostringstream" >&5
15242echo "${ECHO_T}$ac_cv_type_std__ostringstream" >&6; }
15243if test $ac_cv_type_std__ostringstream = yes; then
15244
15245cat >>confdefs.h <<\_ACEOF
15246#define HAVE_STD__OSTRINGSTREAM 1
15247_ACEOF
15248
15249else
15250  { echo "$as_me:$LINENO: checking for std::ostrstream" >&5
15251echo $ECHO_N "checking for std::ostrstream... $ECHO_C" >&6; }
15252if test "${ac_cv_type_std__ostrstream+set}" = set; then
15253  echo $ECHO_N "(cached) $ECHO_C" >&6
15254else
15255  cat >conftest.$ac_ext <<_ACEOF
15256/* confdefs.h.  */
15257_ACEOF
15258cat confdefs.h >>conftest.$ac_ext
15259cat >>conftest.$ac_ext <<_ACEOF
15260/* end confdefs.h.  */
15261#include <strstream.h>
15262
15263typedef std::ostrstream ac__type_new_;
15264int
15265main ()
15266{
15267if ((ac__type_new_ *) 0)
15268  return 0;
15269if (sizeof (ac__type_new_))
15270  return 0;
15271  ;
15272  return 0;
15273}
15274_ACEOF
15275rm -f conftest.$ac_objext
15276if { (ac_try="$ac_compile"
15277case "(($ac_try" in
15278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15279  *) ac_try_echo=$ac_try;;
15280esac
15281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15282  (eval "$ac_compile") 2>conftest.er1
15283  ac_status=$?
15284  grep -v '^ *+' conftest.er1 >conftest.err
15285  rm -f conftest.er1
15286  cat conftest.err >&5
15287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288  (exit $ac_status); } && {
15289	 test -z "$ac_cxx_werror_flag" ||
15290	 test ! -s conftest.err
15291       } && test -s conftest.$ac_objext; then
15292  ac_cv_type_std__ostrstream=yes
15293else
15294  echo "$as_me: failed program was:" >&5
15295sed 's/^/| /' conftest.$ac_ext >&5
15296
15297	ac_cv_type_std__ostrstream=no
15298fi
15299
15300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15301fi
15302{ echo "$as_me:$LINENO: result: $ac_cv_type_std__ostrstream" >&5
15303echo "${ECHO_T}$ac_cv_type_std__ostrstream" >&6; }
15304if test $ac_cv_type_std__ostrstream = yes; then
15305
15306cat >>confdefs.h <<\_ACEOF
15307#define HAVE_STD__OSTRSTREAM 1
15308_ACEOF
15309 \
15310else
15311  { { echo "$as_me:$LINENO: error: cannot find ostringstream or ostrstream!
15312See \`config.log' for more details." >&5
15313echo "$as_me: error: cannot find ostringstream or ostrstream!
15314See \`config.log' for more details." >&2;}
15315   { (exit 1); exit 1; }; }
15316fi
15317
15318fi
15319
15320
15321ac_ext=c
15322ac_cpp='$CPP $CPPFLAGS'
15323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15325ac_compiler_gnu=$ac_cv_c_compiler_gnu
15326
15327
15328for ac_header in vfork.h
15329do
15330as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15332  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15335  echo $ECHO_N "(cached) $ECHO_C" >&6
15336fi
15337ac_res=`eval echo '${'$as_ac_Header'}'`
15338	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15339echo "${ECHO_T}$ac_res" >&6; }
15340else
15341  # Is the header compilable?
15342{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15343echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15344cat >conftest.$ac_ext <<_ACEOF
15345/* confdefs.h.  */
15346_ACEOF
15347cat confdefs.h >>conftest.$ac_ext
15348cat >>conftest.$ac_ext <<_ACEOF
15349/* end confdefs.h.  */
15350$ac_includes_default
15351#include <$ac_header>
15352_ACEOF
15353rm -f conftest.$ac_objext
15354if { (ac_try="$ac_compile"
15355case "(($ac_try" in
15356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357  *) ac_try_echo=$ac_try;;
15358esac
15359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360  (eval "$ac_compile") 2>conftest.er1
15361  ac_status=$?
15362  grep -v '^ *+' conftest.er1 >conftest.err
15363  rm -f conftest.er1
15364  cat conftest.err >&5
15365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366  (exit $ac_status); } && {
15367	 test -z "$ac_c_werror_flag" ||
15368	 test ! -s conftest.err
15369       } && test -s conftest.$ac_objext; then
15370  ac_header_compiler=yes
15371else
15372  echo "$as_me: failed program was:" >&5
15373sed 's/^/| /' conftest.$ac_ext >&5
15374
15375	ac_header_compiler=no
15376fi
15377
15378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15379{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15380echo "${ECHO_T}$ac_header_compiler" >&6; }
15381
15382# Is the header present?
15383{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15384echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15385cat >conftest.$ac_ext <<_ACEOF
15386/* confdefs.h.  */
15387_ACEOF
15388cat confdefs.h >>conftest.$ac_ext
15389cat >>conftest.$ac_ext <<_ACEOF
15390/* end confdefs.h.  */
15391#include <$ac_header>
15392_ACEOF
15393if { (ac_try="$ac_cpp conftest.$ac_ext"
15394case "(($ac_try" in
15395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396  *) ac_try_echo=$ac_try;;
15397esac
15398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15399  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15400  ac_status=$?
15401  grep -v '^ *+' conftest.er1 >conftest.err
15402  rm -f conftest.er1
15403  cat conftest.err >&5
15404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405  (exit $ac_status); } >/dev/null && {
15406	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15407	 test ! -s conftest.err
15408       }; then
15409  ac_header_preproc=yes
15410else
15411  echo "$as_me: failed program was:" >&5
15412sed 's/^/| /' conftest.$ac_ext >&5
15413
15414  ac_header_preproc=no
15415fi
15416
15417rm -f conftest.err conftest.$ac_ext
15418{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15419echo "${ECHO_T}$ac_header_preproc" >&6; }
15420
15421# So?  What about this header?
15422case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15423  yes:no: )
15424    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15425echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15426    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15427echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15428    ac_header_preproc=yes
15429    ;;
15430  no:yes:* )
15431    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15432echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15433    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15434echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15435    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15436echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15437    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15438echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15439    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15440echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15441    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15442echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15443    ( cat <<\_ASBOX
15444## ------------------------------------ ##
15445## Report this to starplot@starplot.org ##
15446## ------------------------------------ ##
15447_ASBOX
15448     ) | sed "s/^/$as_me: WARNING:     /" >&2
15449    ;;
15450esac
15451{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15454  echo $ECHO_N "(cached) $ECHO_C" >&6
15455else
15456  eval "$as_ac_Header=\$ac_header_preproc"
15457fi
15458ac_res=`eval echo '${'$as_ac_Header'}'`
15459	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15460echo "${ECHO_T}$ac_res" >&6; }
15461
15462fi
15463if test `eval echo '${'$as_ac_Header'}'` = yes; then
15464  cat >>confdefs.h <<_ACEOF
15465#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15466_ACEOF
15467
15468fi
15469
15470done
15471
15472
15473
15474for ac_func in fork vfork
15475do
15476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15477{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15479if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15480  echo $ECHO_N "(cached) $ECHO_C" >&6
15481else
15482  cat >conftest.$ac_ext <<_ACEOF
15483/* confdefs.h.  */
15484_ACEOF
15485cat confdefs.h >>conftest.$ac_ext
15486cat >>conftest.$ac_ext <<_ACEOF
15487/* end confdefs.h.  */
15488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15489   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15490#define $ac_func innocuous_$ac_func
15491
15492/* System header to define __stub macros and hopefully few prototypes,
15493    which can conflict with char $ac_func (); below.
15494    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15495    <limits.h> exists even on freestanding compilers.  */
15496
15497#ifdef __STDC__
15498# include <limits.h>
15499#else
15500# include <assert.h>
15501#endif
15502
15503#undef $ac_func
15504
15505/* Override any GCC internal prototype to avoid an error.
15506   Use char because int might match the return type of a GCC
15507   builtin and then its argument prototype would still apply.  */
15508#ifdef __cplusplus
15509extern "C"
15510#endif
15511char $ac_func ();
15512/* The GNU C library defines this for functions which it implements
15513    to always fail with ENOSYS.  Some functions are actually named
15514    something starting with __ and the normal name is an alias.  */
15515#if defined __stub_$ac_func || defined __stub___$ac_func
15516choke me
15517#endif
15518
15519int
15520main ()
15521{
15522return $ac_func ();
15523  ;
15524  return 0;
15525}
15526_ACEOF
15527rm -f conftest.$ac_objext conftest$ac_exeext
15528if { (ac_try="$ac_link"
15529case "(($ac_try" in
15530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531  *) ac_try_echo=$ac_try;;
15532esac
15533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534  (eval "$ac_link") 2>conftest.er1
15535  ac_status=$?
15536  grep -v '^ *+' conftest.er1 >conftest.err
15537  rm -f conftest.er1
15538  cat conftest.err >&5
15539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540  (exit $ac_status); } && {
15541	 test -z "$ac_c_werror_flag" ||
15542	 test ! -s conftest.err
15543       } && test -s conftest$ac_exeext &&
15544       $as_test_x conftest$ac_exeext; then
15545  eval "$as_ac_var=yes"
15546else
15547  echo "$as_me: failed program was:" >&5
15548sed 's/^/| /' conftest.$ac_ext >&5
15549
15550	eval "$as_ac_var=no"
15551fi
15552
15553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15554      conftest$ac_exeext conftest.$ac_ext
15555fi
15556ac_res=`eval echo '${'$as_ac_var'}'`
15557	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15558echo "${ECHO_T}$ac_res" >&6; }
15559if test `eval echo '${'$as_ac_var'}'` = yes; then
15560  cat >>confdefs.h <<_ACEOF
15561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15562_ACEOF
15563
15564fi
15565done
15566
15567if test "x$ac_cv_func_fork" = xyes; then
15568  { echo "$as_me:$LINENO: checking for working fork" >&5
15569echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
15570if test "${ac_cv_func_fork_works+set}" = set; then
15571  echo $ECHO_N "(cached) $ECHO_C" >&6
15572else
15573  if test "$cross_compiling" = yes; then
15574  ac_cv_func_fork_works=cross
15575else
15576  cat >conftest.$ac_ext <<_ACEOF
15577/* confdefs.h.  */
15578_ACEOF
15579cat confdefs.h >>conftest.$ac_ext
15580cat >>conftest.$ac_ext <<_ACEOF
15581/* end confdefs.h.  */
15582$ac_includes_default
15583int
15584main ()
15585{
15586
15587	  /* By Ruediger Kuhlmann. */
15588	  return fork () < 0;
15589
15590  ;
15591  return 0;
15592}
15593_ACEOF
15594rm -f conftest$ac_exeext
15595if { (ac_try="$ac_link"
15596case "(($ac_try" in
15597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598  *) ac_try_echo=$ac_try;;
15599esac
15600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601  (eval "$ac_link") 2>&5
15602  ac_status=$?
15603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15605  { (case "(($ac_try" in
15606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607  *) ac_try_echo=$ac_try;;
15608esac
15609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15610  (eval "$ac_try") 2>&5
15611  ac_status=$?
15612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613  (exit $ac_status); }; }; then
15614  ac_cv_func_fork_works=yes
15615else
15616  echo "$as_me: program exited with status $ac_status" >&5
15617echo "$as_me: failed program was:" >&5
15618sed 's/^/| /' conftest.$ac_ext >&5
15619
15620( exit $ac_status )
15621ac_cv_func_fork_works=no
15622fi
15623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15624fi
15625
15626
15627fi
15628{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15629echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
15630
15631else
15632  ac_cv_func_fork_works=$ac_cv_func_fork
15633fi
15634if test "x$ac_cv_func_fork_works" = xcross; then
15635  case $host in
15636    *-*-amigaos* | *-*-msdosdjgpp*)
15637      # Override, as these systems have only a dummy fork() stub
15638      ac_cv_func_fork_works=no
15639      ;;
15640    *)
15641      ac_cv_func_fork_works=yes
15642      ;;
15643  esac
15644  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15645echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15646fi
15647ac_cv_func_vfork_works=$ac_cv_func_vfork
15648if test "x$ac_cv_func_vfork" = xyes; then
15649  { echo "$as_me:$LINENO: checking for working vfork" >&5
15650echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
15651if test "${ac_cv_func_vfork_works+set}" = set; then
15652  echo $ECHO_N "(cached) $ECHO_C" >&6
15653else
15654  if test "$cross_compiling" = yes; then
15655  ac_cv_func_vfork_works=cross
15656else
15657  cat >conftest.$ac_ext <<_ACEOF
15658/* confdefs.h.  */
15659_ACEOF
15660cat confdefs.h >>conftest.$ac_ext
15661cat >>conftest.$ac_ext <<_ACEOF
15662/* end confdefs.h.  */
15663/* Thanks to Paul Eggert for this test.  */
15664$ac_includes_default
15665#include <sys/wait.h>
15666#ifdef HAVE_VFORK_H
15667# include <vfork.h>
15668#endif
15669/* On some sparc systems, changes by the child to local and incoming
15670   argument registers are propagated back to the parent.  The compiler
15671   is told about this with #include <vfork.h>, but some compilers
15672   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15673   static variable whose address is put into a register that is
15674   clobbered by the vfork.  */
15675static void
15676#ifdef __cplusplus
15677sparc_address_test (int arg)
15678# else
15679sparc_address_test (arg) int arg;
15680#endif
15681{
15682  static pid_t child;
15683  if (!child) {
15684    child = vfork ();
15685    if (child < 0) {
15686      perror ("vfork");
15687      _exit(2);
15688    }
15689    if (!child) {
15690      arg = getpid();
15691      write(-1, "", 0);
15692      _exit (arg);
15693    }
15694  }
15695}
15696
15697int
15698main ()
15699{
15700  pid_t parent = getpid ();
15701  pid_t child;
15702
15703  sparc_address_test (0);
15704
15705  child = vfork ();
15706
15707  if (child == 0) {
15708    /* Here is another test for sparc vfork register problems.  This
15709       test uses lots of local variables, at least as many local
15710       variables as main has allocated so far including compiler
15711       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15712       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15713       reuse the register of parent for one of the local variables,
15714       since it will think that parent can't possibly be used any more
15715       in this routine.  Assigning to the local variable will thus
15716       munge parent in the parent process.  */
15717    pid_t
15718      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15719      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15720    /* Convince the compiler that p..p7 are live; otherwise, it might
15721       use the same hardware register for all 8 local variables.  */
15722    if (p != p1 || p != p2 || p != p3 || p != p4
15723	|| p != p5 || p != p6 || p != p7)
15724      _exit(1);
15725
15726    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15727       from child file descriptors.  If the child closes a descriptor
15728       before it execs or exits, this munges the parent's descriptor
15729       as well.  Test for this by closing stdout in the child.  */
15730    _exit(close(fileno(stdout)) != 0);
15731  } else {
15732    int status;
15733    struct stat st;
15734
15735    while (wait(&status) != child)
15736      ;
15737    return (
15738	 /* Was there some problem with vforking?  */
15739	 child < 0
15740
15741	 /* Did the child fail?  (This shouldn't happen.)  */
15742	 || status
15743
15744	 /* Did the vfork/compiler bug occur?  */
15745	 || parent != getpid()
15746
15747	 /* Did the file descriptor bug occur?  */
15748	 || fstat(fileno(stdout), &st) != 0
15749	 );
15750  }
15751}
15752_ACEOF
15753rm -f conftest$ac_exeext
15754if { (ac_try="$ac_link"
15755case "(($ac_try" in
15756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15757  *) ac_try_echo=$ac_try;;
15758esac
15759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15760  (eval "$ac_link") 2>&5
15761  ac_status=$?
15762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15764  { (case "(($ac_try" in
15765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766  *) ac_try_echo=$ac_try;;
15767esac
15768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15769  (eval "$ac_try") 2>&5
15770  ac_status=$?
15771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772  (exit $ac_status); }; }; then
15773  ac_cv_func_vfork_works=yes
15774else
15775  echo "$as_me: program exited with status $ac_status" >&5
15776echo "$as_me: failed program was:" >&5
15777sed 's/^/| /' conftest.$ac_ext >&5
15778
15779( exit $ac_status )
15780ac_cv_func_vfork_works=no
15781fi
15782rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15783fi
15784
15785
15786fi
15787{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15788echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
15789
15790fi;
15791if test "x$ac_cv_func_fork_works" = xcross; then
15792  ac_cv_func_vfork_works=$ac_cv_func_vfork
15793  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15794echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15795fi
15796
15797if test "x$ac_cv_func_vfork_works" = xyes; then
15798
15799cat >>confdefs.h <<\_ACEOF
15800#define HAVE_WORKING_VFORK 1
15801_ACEOF
15802
15803else
15804
15805cat >>confdefs.h <<\_ACEOF
15806#define vfork fork
15807_ACEOF
15808
15809fi
15810if test "x$ac_cv_func_fork_works" = xyes; then
15811
15812cat >>confdefs.h <<\_ACEOF
15813#define HAVE_WORKING_FORK 1
15814_ACEOF
15815
15816fi
15817
15818if test "x$ac_cv_func_fork_works" = xno ; then
15819	{ { echo "$as_me:$LINENO: error: cannot find working fork function!
15820See \`config.log' for more details." >&5
15821echo "$as_me: error: cannot find working fork function!
15822See \`config.log' for more details." >&2;}
15823   { (exit 1); exit 1; }; }
15824fi
15825
15826for ac_func in vprintf
15827do
15828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15829{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15831if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15832  echo $ECHO_N "(cached) $ECHO_C" >&6
15833else
15834  cat >conftest.$ac_ext <<_ACEOF
15835/* confdefs.h.  */
15836_ACEOF
15837cat confdefs.h >>conftest.$ac_ext
15838cat >>conftest.$ac_ext <<_ACEOF
15839/* end confdefs.h.  */
15840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15841   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15842#define $ac_func innocuous_$ac_func
15843
15844/* System header to define __stub macros and hopefully few prototypes,
15845    which can conflict with char $ac_func (); below.
15846    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15847    <limits.h> exists even on freestanding compilers.  */
15848
15849#ifdef __STDC__
15850# include <limits.h>
15851#else
15852# include <assert.h>
15853#endif
15854
15855#undef $ac_func
15856
15857/* Override any GCC internal prototype to avoid an error.
15858   Use char because int might match the return type of a GCC
15859   builtin and then its argument prototype would still apply.  */
15860#ifdef __cplusplus
15861extern "C"
15862#endif
15863char $ac_func ();
15864/* The GNU C library defines this for functions which it implements
15865    to always fail with ENOSYS.  Some functions are actually named
15866    something starting with __ and the normal name is an alias.  */
15867#if defined __stub_$ac_func || defined __stub___$ac_func
15868choke me
15869#endif
15870
15871int
15872main ()
15873{
15874return $ac_func ();
15875  ;
15876  return 0;
15877}
15878_ACEOF
15879rm -f conftest.$ac_objext conftest$ac_exeext
15880if { (ac_try="$ac_link"
15881case "(($ac_try" in
15882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883  *) ac_try_echo=$ac_try;;
15884esac
15885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15886  (eval "$ac_link") 2>conftest.er1
15887  ac_status=$?
15888  grep -v '^ *+' conftest.er1 >conftest.err
15889  rm -f conftest.er1
15890  cat conftest.err >&5
15891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892  (exit $ac_status); } && {
15893	 test -z "$ac_c_werror_flag" ||
15894	 test ! -s conftest.err
15895       } && test -s conftest$ac_exeext &&
15896       $as_test_x conftest$ac_exeext; then
15897  eval "$as_ac_var=yes"
15898else
15899  echo "$as_me: failed program was:" >&5
15900sed 's/^/| /' conftest.$ac_ext >&5
15901
15902	eval "$as_ac_var=no"
15903fi
15904
15905rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15906      conftest$ac_exeext conftest.$ac_ext
15907fi
15908ac_res=`eval echo '${'$as_ac_var'}'`
15909	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15910echo "${ECHO_T}$ac_res" >&6; }
15911if test `eval echo '${'$as_ac_var'}'` = yes; then
15912  cat >>confdefs.h <<_ACEOF
15913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15914_ACEOF
15915
15916{ echo "$as_me:$LINENO: checking for _doprnt" >&5
15917echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
15918if test "${ac_cv_func__doprnt+set}" = set; then
15919  echo $ECHO_N "(cached) $ECHO_C" >&6
15920else
15921  cat >conftest.$ac_ext <<_ACEOF
15922/* confdefs.h.  */
15923_ACEOF
15924cat confdefs.h >>conftest.$ac_ext
15925cat >>conftest.$ac_ext <<_ACEOF
15926/* end confdefs.h.  */
15927/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
15928   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15929#define _doprnt innocuous__doprnt
15930
15931/* System header to define __stub macros and hopefully few prototypes,
15932    which can conflict with char _doprnt (); below.
15933    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15934    <limits.h> exists even on freestanding compilers.  */
15935
15936#ifdef __STDC__
15937# include <limits.h>
15938#else
15939# include <assert.h>
15940#endif
15941
15942#undef _doprnt
15943
15944/* Override any GCC internal prototype to avoid an error.
15945   Use char because int might match the return type of a GCC
15946   builtin and then its argument prototype would still apply.  */
15947#ifdef __cplusplus
15948extern "C"
15949#endif
15950char _doprnt ();
15951/* The GNU C library defines this for functions which it implements
15952    to always fail with ENOSYS.  Some functions are actually named
15953    something starting with __ and the normal name is an alias.  */
15954#if defined __stub__doprnt || defined __stub____doprnt
15955choke me
15956#endif
15957
15958int
15959main ()
15960{
15961return _doprnt ();
15962  ;
15963  return 0;
15964}
15965_ACEOF
15966rm -f conftest.$ac_objext conftest$ac_exeext
15967if { (ac_try="$ac_link"
15968case "(($ac_try" in
15969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15970  *) ac_try_echo=$ac_try;;
15971esac
15972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15973  (eval "$ac_link") 2>conftest.er1
15974  ac_status=$?
15975  grep -v '^ *+' conftest.er1 >conftest.err
15976  rm -f conftest.er1
15977  cat conftest.err >&5
15978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979  (exit $ac_status); } && {
15980	 test -z "$ac_c_werror_flag" ||
15981	 test ! -s conftest.err
15982       } && test -s conftest$ac_exeext &&
15983       $as_test_x conftest$ac_exeext; then
15984  ac_cv_func__doprnt=yes
15985else
15986  echo "$as_me: failed program was:" >&5
15987sed 's/^/| /' conftest.$ac_ext >&5
15988
15989	ac_cv_func__doprnt=no
15990fi
15991
15992rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15993      conftest$ac_exeext conftest.$ac_ext
15994fi
15995{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15996echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
15997if test $ac_cv_func__doprnt = yes; then
15998
15999cat >>confdefs.h <<\_ACEOF
16000#define HAVE_DOPRNT 1
16001_ACEOF
16002
16003fi
16004
16005fi
16006done
16007
16008
16009if test "x$ac_cv_func_vprintf" = xno ; then
16010	{ { echo "$as_me:$LINENO: error: cannot find working vprintf function!
16011See \`config.log' for more details." >&5
16012echo "$as_me: error: cannot find working vprintf function!
16013See \`config.log' for more details." >&2;}
16014   { (exit 1); exit 1; }; }
16015fi
16016
16017
16018
16019
16020
16021
16022for ac_func in vsprintf execvp strcmp log exp atan
16023do
16024as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16025{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16026echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16027if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16028  echo $ECHO_N "(cached) $ECHO_C" >&6
16029else
16030  cat >conftest.$ac_ext <<_ACEOF
16031/* confdefs.h.  */
16032_ACEOF
16033cat confdefs.h >>conftest.$ac_ext
16034cat >>conftest.$ac_ext <<_ACEOF
16035/* end confdefs.h.  */
16036/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16037   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16038#define $ac_func innocuous_$ac_func
16039
16040/* System header to define __stub macros and hopefully few prototypes,
16041    which can conflict with char $ac_func (); below.
16042    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16043    <limits.h> exists even on freestanding compilers.  */
16044
16045#ifdef __STDC__
16046# include <limits.h>
16047#else
16048# include <assert.h>
16049#endif
16050
16051#undef $ac_func
16052
16053/* Override any GCC internal prototype to avoid an error.
16054   Use char because int might match the return type of a GCC
16055   builtin and then its argument prototype would still apply.  */
16056#ifdef __cplusplus
16057extern "C"
16058#endif
16059char $ac_func ();
16060/* The GNU C library defines this for functions which it implements
16061    to always fail with ENOSYS.  Some functions are actually named
16062    something starting with __ and the normal name is an alias.  */
16063#if defined __stub_$ac_func || defined __stub___$ac_func
16064choke me
16065#endif
16066
16067int
16068main ()
16069{
16070return $ac_func ();
16071  ;
16072  return 0;
16073}
16074_ACEOF
16075rm -f conftest.$ac_objext conftest$ac_exeext
16076if { (ac_try="$ac_link"
16077case "(($ac_try" in
16078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079  *) ac_try_echo=$ac_try;;
16080esac
16081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16082  (eval "$ac_link") 2>conftest.er1
16083  ac_status=$?
16084  grep -v '^ *+' conftest.er1 >conftest.err
16085  rm -f conftest.er1
16086  cat conftest.err >&5
16087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088  (exit $ac_status); } && {
16089	 test -z "$ac_c_werror_flag" ||
16090	 test ! -s conftest.err
16091       } && test -s conftest$ac_exeext &&
16092       $as_test_x conftest$ac_exeext; then
16093  eval "$as_ac_var=yes"
16094else
16095  echo "$as_me: failed program was:" >&5
16096sed 's/^/| /' conftest.$ac_ext >&5
16097
16098	eval "$as_ac_var=no"
16099fi
16100
16101rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16102      conftest$ac_exeext conftest.$ac_ext
16103fi
16104ac_res=`eval echo '${'$as_ac_var'}'`
16105	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16106echo "${ECHO_T}$ac_res" >&6; }
16107if test `eval echo '${'$as_ac_var'}'` = yes; then
16108  cat >>confdefs.h <<_ACEOF
16109#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16110_ACEOF
16111
16112else
16113  { { echo "$as_me:$LINENO: error: cannot find $ac_func function!
16114See \`config.log' for more details." >&5
16115echo "$as_me: error: cannot find $ac_func function!
16116See \`config.log' for more details." >&2;}
16117   { (exit 1); exit 1; }; }
16118fi
16119done
16120
16121
16122for ac_func in bind_textdomain_codeset
16123do
16124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16125{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16127if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16128  echo $ECHO_N "(cached) $ECHO_C" >&6
16129else
16130  cat >conftest.$ac_ext <<_ACEOF
16131/* confdefs.h.  */
16132_ACEOF
16133cat confdefs.h >>conftest.$ac_ext
16134cat >>conftest.$ac_ext <<_ACEOF
16135/* end confdefs.h.  */
16136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16137   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16138#define $ac_func innocuous_$ac_func
16139
16140/* System header to define __stub macros and hopefully few prototypes,
16141    which can conflict with char $ac_func (); below.
16142    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16143    <limits.h> exists even on freestanding compilers.  */
16144
16145#ifdef __STDC__
16146# include <limits.h>
16147#else
16148# include <assert.h>
16149#endif
16150
16151#undef $ac_func
16152
16153/* Override any GCC internal prototype to avoid an error.
16154   Use char because int might match the return type of a GCC
16155   builtin and then its argument prototype would still apply.  */
16156#ifdef __cplusplus
16157extern "C"
16158#endif
16159char $ac_func ();
16160/* The GNU C library defines this for functions which it implements
16161    to always fail with ENOSYS.  Some functions are actually named
16162    something starting with __ and the normal name is an alias.  */
16163#if defined __stub_$ac_func || defined __stub___$ac_func
16164choke me
16165#endif
16166
16167int
16168main ()
16169{
16170return $ac_func ();
16171  ;
16172  return 0;
16173}
16174_ACEOF
16175rm -f conftest.$ac_objext conftest$ac_exeext
16176if { (ac_try="$ac_link"
16177case "(($ac_try" in
16178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179  *) ac_try_echo=$ac_try;;
16180esac
16181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182  (eval "$ac_link") 2>conftest.er1
16183  ac_status=$?
16184  grep -v '^ *+' conftest.er1 >conftest.err
16185  rm -f conftest.er1
16186  cat conftest.err >&5
16187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188  (exit $ac_status); } && {
16189	 test -z "$ac_c_werror_flag" ||
16190	 test ! -s conftest.err
16191       } && test -s conftest$ac_exeext &&
16192       $as_test_x conftest$ac_exeext; then
16193  eval "$as_ac_var=yes"
16194else
16195  echo "$as_me: failed program was:" >&5
16196sed 's/^/| /' conftest.$ac_ext >&5
16197
16198	eval "$as_ac_var=no"
16199fi
16200
16201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16202      conftest$ac_exeext conftest.$ac_ext
16203fi
16204ac_res=`eval echo '${'$as_ac_var'}'`
16205	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16206echo "${ECHO_T}$ac_res" >&6; }
16207if test `eval echo '${'$as_ac_var'}'` = yes; then
16208  cat >>confdefs.h <<_ACEOF
16209#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16210_ACEOF
16211
16212else
16213  { echo "$as_me:$LINENO: WARNING: cannot find $ac_func - you may need to use a UTF-8 locale." >&5
16214echo "$as_me: WARNING: cannot find $ac_func - you may need to use a UTF-8 locale." >&2;}
16215fi
16216done
16217
16218
16219for ac_func in gtk_expander_new
16220do
16221as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16222{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16223echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16224if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16225  echo $ECHO_N "(cached) $ECHO_C" >&6
16226else
16227  cat >conftest.$ac_ext <<_ACEOF
16228/* confdefs.h.  */
16229_ACEOF
16230cat confdefs.h >>conftest.$ac_ext
16231cat >>conftest.$ac_ext <<_ACEOF
16232/* end confdefs.h.  */
16233/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16234   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16235#define $ac_func innocuous_$ac_func
16236
16237/* System header to define __stub macros and hopefully few prototypes,
16238    which can conflict with char $ac_func (); below.
16239    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16240    <limits.h> exists even on freestanding compilers.  */
16241
16242#ifdef __STDC__
16243# include <limits.h>
16244#else
16245# include <assert.h>
16246#endif
16247
16248#undef $ac_func
16249
16250/* Override any GCC internal prototype to avoid an error.
16251   Use char because int might match the return type of a GCC
16252   builtin and then its argument prototype would still apply.  */
16253#ifdef __cplusplus
16254extern "C"
16255#endif
16256char $ac_func ();
16257/* The GNU C library defines this for functions which it implements
16258    to always fail with ENOSYS.  Some functions are actually named
16259    something starting with __ and the normal name is an alias.  */
16260#if defined __stub_$ac_func || defined __stub___$ac_func
16261choke me
16262#endif
16263
16264int
16265main ()
16266{
16267return $ac_func ();
16268  ;
16269  return 0;
16270}
16271_ACEOF
16272rm -f conftest.$ac_objext conftest$ac_exeext
16273if { (ac_try="$ac_link"
16274case "(($ac_try" in
16275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276  *) ac_try_echo=$ac_try;;
16277esac
16278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279  (eval "$ac_link") 2>conftest.er1
16280  ac_status=$?
16281  grep -v '^ *+' conftest.er1 >conftest.err
16282  rm -f conftest.er1
16283  cat conftest.err >&5
16284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285  (exit $ac_status); } && {
16286	 test -z "$ac_c_werror_flag" ||
16287	 test ! -s conftest.err
16288       } && test -s conftest$ac_exeext &&
16289       $as_test_x conftest$ac_exeext; then
16290  eval "$as_ac_var=yes"
16291else
16292  echo "$as_me: failed program was:" >&5
16293sed 's/^/| /' conftest.$ac_ext >&5
16294
16295	eval "$as_ac_var=no"
16296fi
16297
16298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16299      conftest$ac_exeext conftest.$ac_ext
16300fi
16301ac_res=`eval echo '${'$as_ac_var'}'`
16302	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16303echo "${ECHO_T}$ac_res" >&6; }
16304if test `eval echo '${'$as_ac_var'}'` = yes; then
16305  cat >>confdefs.h <<_ACEOF
16306#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16307_ACEOF
16308
16309fi
16310done
16311
16312{ echo "$as_me:$LINENO: checking for working strtod" >&5
16313echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
16314if test "${ac_cv_func_strtod+set}" = set; then
16315  echo $ECHO_N "(cached) $ECHO_C" >&6
16316else
16317  if test "$cross_compiling" = yes; then
16318  ac_cv_func_strtod=no
16319else
16320  cat >conftest.$ac_ext <<_ACEOF
16321/* confdefs.h.  */
16322_ACEOF
16323cat confdefs.h >>conftest.$ac_ext
16324cat >>conftest.$ac_ext <<_ACEOF
16325/* end confdefs.h.  */
16326
16327$ac_includes_default
16328#ifndef strtod
16329double strtod ();
16330#endif
16331int
16332main()
16333{
16334  {
16335    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
16336    char *string = " +69";
16337    char *term;
16338    double value;
16339    value = strtod (string, &term);
16340    if (value != 69 || term != (string + 4))
16341      return 1;
16342  }
16343
16344  {
16345    /* Under Solaris 2.4, strtod returns the wrong value for the
16346       terminating character under some conditions.  */
16347    char *string = "NaN";
16348    char *term;
16349    strtod (string, &term);
16350    if (term != string && *(term - 1) == 0)
16351      return 1;
16352  }
16353  return 0;
16354}
16355
16356_ACEOF
16357rm -f conftest$ac_exeext
16358if { (ac_try="$ac_link"
16359case "(($ac_try" in
16360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361  *) ac_try_echo=$ac_try;;
16362esac
16363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364  (eval "$ac_link") 2>&5
16365  ac_status=$?
16366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16368  { (case "(($ac_try" in
16369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16370  *) ac_try_echo=$ac_try;;
16371esac
16372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16373  (eval "$ac_try") 2>&5
16374  ac_status=$?
16375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376  (exit $ac_status); }; }; then
16377  ac_cv_func_strtod=yes
16378else
16379  echo "$as_me: program exited with status $ac_status" >&5
16380echo "$as_me: failed program was:" >&5
16381sed 's/^/| /' conftest.$ac_ext >&5
16382
16383( exit $ac_status )
16384ac_cv_func_strtod=no
16385fi
16386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16387fi
16388
16389
16390fi
16391{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
16392echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
16393if test $ac_cv_func_strtod = no; then
16394  case " $LIBOBJS " in
16395  *" strtod.$ac_objext "* ) ;;
16396  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
16397 ;;
16398esac
16399
16400{ echo "$as_me:$LINENO: checking for pow" >&5
16401echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
16402if test "${ac_cv_func_pow+set}" = set; then
16403  echo $ECHO_N "(cached) $ECHO_C" >&6
16404else
16405  cat >conftest.$ac_ext <<_ACEOF
16406/* confdefs.h.  */
16407_ACEOF
16408cat confdefs.h >>conftest.$ac_ext
16409cat >>conftest.$ac_ext <<_ACEOF
16410/* end confdefs.h.  */
16411/* Define pow to an innocuous variant, in case <limits.h> declares pow.
16412   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16413#define pow innocuous_pow
16414
16415/* System header to define __stub macros and hopefully few prototypes,
16416    which can conflict with char pow (); below.
16417    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16418    <limits.h> exists even on freestanding compilers.  */
16419
16420#ifdef __STDC__
16421# include <limits.h>
16422#else
16423# include <assert.h>
16424#endif
16425
16426#undef pow
16427
16428/* Override any GCC internal prototype to avoid an error.
16429   Use char because int might match the return type of a GCC
16430   builtin and then its argument prototype would still apply.  */
16431#ifdef __cplusplus
16432extern "C"
16433#endif
16434char pow ();
16435/* The GNU C library defines this for functions which it implements
16436    to always fail with ENOSYS.  Some functions are actually named
16437    something starting with __ and the normal name is an alias.  */
16438#if defined __stub_pow || defined __stub___pow
16439choke me
16440#endif
16441
16442int
16443main ()
16444{
16445return pow ();
16446  ;
16447  return 0;
16448}
16449_ACEOF
16450rm -f conftest.$ac_objext conftest$ac_exeext
16451if { (ac_try="$ac_link"
16452case "(($ac_try" in
16453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16454  *) ac_try_echo=$ac_try;;
16455esac
16456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16457  (eval "$ac_link") 2>conftest.er1
16458  ac_status=$?
16459  grep -v '^ *+' conftest.er1 >conftest.err
16460  rm -f conftest.er1
16461  cat conftest.err >&5
16462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463  (exit $ac_status); } && {
16464	 test -z "$ac_c_werror_flag" ||
16465	 test ! -s conftest.err
16466       } && test -s conftest$ac_exeext &&
16467       $as_test_x conftest$ac_exeext; then
16468  ac_cv_func_pow=yes
16469else
16470  echo "$as_me: failed program was:" >&5
16471sed 's/^/| /' conftest.$ac_ext >&5
16472
16473	ac_cv_func_pow=no
16474fi
16475
16476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16477      conftest$ac_exeext conftest.$ac_ext
16478fi
16479{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
16480echo "${ECHO_T}$ac_cv_func_pow" >&6; }
16481
16482if test $ac_cv_func_pow = no; then
16483  { echo "$as_me:$LINENO: checking for pow in -lm" >&5
16484echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
16485if test "${ac_cv_lib_m_pow+set}" = set; then
16486  echo $ECHO_N "(cached) $ECHO_C" >&6
16487else
16488  ac_check_lib_save_LIBS=$LIBS
16489LIBS="-lm  $LIBS"
16490cat >conftest.$ac_ext <<_ACEOF
16491/* confdefs.h.  */
16492_ACEOF
16493cat confdefs.h >>conftest.$ac_ext
16494cat >>conftest.$ac_ext <<_ACEOF
16495/* end confdefs.h.  */
16496
16497/* Override any GCC internal prototype to avoid an error.
16498   Use char because int might match the return type of a GCC
16499   builtin and then its argument prototype would still apply.  */
16500#ifdef __cplusplus
16501extern "C"
16502#endif
16503char pow ();
16504int
16505main ()
16506{
16507return pow ();
16508  ;
16509  return 0;
16510}
16511_ACEOF
16512rm -f conftest.$ac_objext conftest$ac_exeext
16513if { (ac_try="$ac_link"
16514case "(($ac_try" in
16515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516  *) ac_try_echo=$ac_try;;
16517esac
16518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519  (eval "$ac_link") 2>conftest.er1
16520  ac_status=$?
16521  grep -v '^ *+' conftest.er1 >conftest.err
16522  rm -f conftest.er1
16523  cat conftest.err >&5
16524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525  (exit $ac_status); } && {
16526	 test -z "$ac_c_werror_flag" ||
16527	 test ! -s conftest.err
16528       } && test -s conftest$ac_exeext &&
16529       $as_test_x conftest$ac_exeext; then
16530  ac_cv_lib_m_pow=yes
16531else
16532  echo "$as_me: failed program was:" >&5
16533sed 's/^/| /' conftest.$ac_ext >&5
16534
16535	ac_cv_lib_m_pow=no
16536fi
16537
16538rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16539      conftest$ac_exeext conftest.$ac_ext
16540LIBS=$ac_check_lib_save_LIBS
16541fi
16542{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
16543echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
16544if test $ac_cv_lib_m_pow = yes; then
16545  POW_LIB=-lm
16546else
16547  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
16548echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
16549fi
16550
16551fi
16552
16553fi
16554
16555if test "x$ac_cv_func_strtod" = xyes ; then
16556
16557cat >>confdefs.h <<\_ACEOF
16558#define HAVE_STRTOD 1
16559_ACEOF
16560
16561	case " $LIBOBJS " in
16562  *" strtod.$ac_objext "* ) ;;
16563  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
16564 ;;
16565esac
16566
16567fi
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578for ac_func in pow log10 floor sqrt atan2 strtol strlen snprintf vsnprintf
16579do
16580as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16581{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16583if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16584  echo $ECHO_N "(cached) $ECHO_C" >&6
16585else
16586  cat >conftest.$ac_ext <<_ACEOF
16587/* confdefs.h.  */
16588_ACEOF
16589cat confdefs.h >>conftest.$ac_ext
16590cat >>conftest.$ac_ext <<_ACEOF
16591/* end confdefs.h.  */
16592/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16593   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16594#define $ac_func innocuous_$ac_func
16595
16596/* System header to define __stub macros and hopefully few prototypes,
16597    which can conflict with char $ac_func (); below.
16598    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16599    <limits.h> exists even on freestanding compilers.  */
16600
16601#ifdef __STDC__
16602# include <limits.h>
16603#else
16604# include <assert.h>
16605#endif
16606
16607#undef $ac_func
16608
16609/* Override any GCC internal prototype to avoid an error.
16610   Use char because int might match the return type of a GCC
16611   builtin and then its argument prototype would still apply.  */
16612#ifdef __cplusplus
16613extern "C"
16614#endif
16615char $ac_func ();
16616/* The GNU C library defines this for functions which it implements
16617    to always fail with ENOSYS.  Some functions are actually named
16618    something starting with __ and the normal name is an alias.  */
16619#if defined __stub_$ac_func || defined __stub___$ac_func
16620choke me
16621#endif
16622
16623int
16624main ()
16625{
16626return $ac_func ();
16627  ;
16628  return 0;
16629}
16630_ACEOF
16631rm -f conftest.$ac_objext conftest$ac_exeext
16632if { (ac_try="$ac_link"
16633case "(($ac_try" in
16634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635  *) ac_try_echo=$ac_try;;
16636esac
16637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638  (eval "$ac_link") 2>conftest.er1
16639  ac_status=$?
16640  grep -v '^ *+' conftest.er1 >conftest.err
16641  rm -f conftest.er1
16642  cat conftest.err >&5
16643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644  (exit $ac_status); } && {
16645	 test -z "$ac_c_werror_flag" ||
16646	 test ! -s conftest.err
16647       } && test -s conftest$ac_exeext &&
16648       $as_test_x conftest$ac_exeext; then
16649  eval "$as_ac_var=yes"
16650else
16651  echo "$as_me: failed program was:" >&5
16652sed 's/^/| /' conftest.$ac_ext >&5
16653
16654	eval "$as_ac_var=no"
16655fi
16656
16657rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16658      conftest$ac_exeext conftest.$ac_ext
16659fi
16660ac_res=`eval echo '${'$as_ac_var'}'`
16661	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16662echo "${ECHO_T}$ac_res" >&6; }
16663if test `eval echo '${'$as_ac_var'}'` = yes; then
16664  cat >>confdefs.h <<_ACEOF
16665#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16666_ACEOF
16667
16668else
16669  case " $LIBOBJS " in
16670  *" $ac_func.$ac_objext "* ) ;;
16671  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16672 ;;
16673esac
16674
16675fi
16676done
16677
16678
16679
16680
16681LIBS="$save_libs"
16682ac_config_files="$ac_config_files Makefile intl/Makefile po/Makefile.in m4/Makefile doc/Makefile lib/Makefile src/Makefile"
16683
16684
16685ac_config_files="$ac_config_files src/convert/starpkg"
16686
16687cat >confcache <<\_ACEOF
16688# This file is a shell script that caches the results of configure
16689# tests run on this system so they can be shared between configure
16690# scripts and configure runs, see configure's option --config-cache.
16691# It is not useful on other systems.  If it contains results you don't
16692# want to keep, you may remove or edit it.
16693#
16694# config.status only pays attention to the cache file if you give it
16695# the --recheck option to rerun configure.
16696#
16697# `ac_cv_env_foo' variables (set or unset) will be overridden when
16698# loading this file, other *unset* `ac_cv_foo' will be assigned the
16699# following values.
16700
16701_ACEOF
16702
16703# The following way of writing the cache mishandles newlines in values,
16704# but we know of no workaround that is simple, portable, and efficient.
16705# So, we kill variables containing newlines.
16706# Ultrix sh set writes to stderr and can't be redirected directly,
16707# and sets the high bit in the cache file unless we assign to the vars.
16708(
16709  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16710    eval ac_val=\$$ac_var
16711    case $ac_val in #(
16712    *${as_nl}*)
16713      case $ac_var in #(
16714      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16715echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16716      esac
16717      case $ac_var in #(
16718      _ | IFS | as_nl) ;; #(
16719      *) $as_unset $ac_var ;;
16720      esac ;;
16721    esac
16722  done
16723
16724  (set) 2>&1 |
16725    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16726    *${as_nl}ac_space=\ *)
16727      # `set' does not quote correctly, so add quotes (double-quote
16728      # substitution turns \\\\ into \\, and sed turns \\ into \).
16729      sed -n \
16730	"s/'/'\\\\''/g;
16731	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16732      ;; #(
16733    *)
16734      # `set' quotes correctly as required by POSIX, so do not add quotes.
16735      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16736      ;;
16737    esac |
16738    sort
16739) |
16740  sed '
16741     /^ac_cv_env_/b end
16742     t clear
16743     :clear
16744     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16745     t end
16746     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16747     :end' >>confcache
16748if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16749  if test -w "$cache_file"; then
16750    test "x$cache_file" != "x/dev/null" &&
16751      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16752echo "$as_me: updating cache $cache_file" >&6;}
16753    cat confcache >$cache_file
16754  else
16755    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16756echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16757  fi
16758fi
16759rm -f confcache
16760
16761test "x$prefix" = xNONE && prefix=$ac_default_prefix
16762# Let make expand exec_prefix.
16763test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16764
16765DEFS=-DHAVE_CONFIG_H
16766
16767ac_libobjs=
16768ac_ltlibobjs=
16769for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16770  # 1. Remove the extension, and $U if already installed.
16771  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16772  ac_i=`echo "$ac_i" | sed "$ac_script"`
16773  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16774  #    will be set to the directory where LIBOBJS objects are built.
16775  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16776  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16777done
16778LIBOBJS=$ac_libobjs
16779
16780LTLIBOBJS=$ac_ltlibobjs
16781
16782
16783if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16784  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16785Usually this means the macro was only invoked conditionally." >&5
16786echo "$as_me: error: conditional \"AMDEP\" was never defined.
16787Usually this means the macro was only invoked conditionally." >&2;}
16788   { (exit 1); exit 1; }; }
16789fi
16790if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16791  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16792Usually this means the macro was only invoked conditionally." >&5
16793echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16794Usually this means the macro was only invoked conditionally." >&2;}
16795   { (exit 1); exit 1; }; }
16796fi
16797if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16798  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16799Usually this means the macro was only invoked conditionally." >&5
16800echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16801Usually this means the macro was only invoked conditionally." >&2;}
16802   { (exit 1); exit 1; }; }
16803fi
16804if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16805  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16806Usually this means the macro was only invoked conditionally." >&5
16807echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16808Usually this means the macro was only invoked conditionally." >&2;}
16809   { (exit 1); exit 1; }; }
16810fi
16811if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16812  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16813Usually this means the macro was only invoked conditionally." >&5
16814echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16815Usually this means the macro was only invoked conditionally." >&2;}
16816   { (exit 1); exit 1; }; }
16817fi
16818
16819: ${CONFIG_STATUS=./config.status}
16820ac_clean_files_save=$ac_clean_files
16821ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16822{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16823echo "$as_me: creating $CONFIG_STATUS" >&6;}
16824cat >$CONFIG_STATUS <<_ACEOF
16825#! $SHELL
16826# Generated by $as_me.
16827# Run this file to recreate the current configuration.
16828# Compiler output produced by configure, useful for debugging
16829# configure, is in config.log if it exists.
16830
16831debug=false
16832ac_cs_recheck=false
16833ac_cs_silent=false
16834SHELL=\${CONFIG_SHELL-$SHELL}
16835_ACEOF
16836
16837cat >>$CONFIG_STATUS <<\_ACEOF
16838## --------------------- ##
16839## M4sh Initialization.  ##
16840## --------------------- ##
16841
16842# Be more Bourne compatible
16843DUALCASE=1; export DUALCASE # for MKS sh
16844if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16845  emulate sh
16846  NULLCMD=:
16847  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16848  # is contrary to our usage.  Disable this feature.
16849  alias -g '${1+"$@"}'='"$@"'
16850  setopt NO_GLOB_SUBST
16851else
16852  case `(set -o) 2>/dev/null` in
16853  *posix*) set -o posix ;;
16854esac
16855
16856fi
16857
16858
16859
16860
16861# PATH needs CR
16862# Avoid depending upon Character Ranges.
16863as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16864as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16865as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16866as_cr_digits='0123456789'
16867as_cr_alnum=$as_cr_Letters$as_cr_digits
16868
16869# The user is always right.
16870if test "${PATH_SEPARATOR+set}" != set; then
16871  echo "#! /bin/sh" >conf$$.sh
16872  echo  "exit 0"   >>conf$$.sh
16873  chmod +x conf$$.sh
16874  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16875    PATH_SEPARATOR=';'
16876  else
16877    PATH_SEPARATOR=:
16878  fi
16879  rm -f conf$$.sh
16880fi
16881
16882# Support unset when possible.
16883if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16884  as_unset=unset
16885else
16886  as_unset=false
16887fi
16888
16889
16890# IFS
16891# We need space, tab and new line, in precisely that order.  Quoting is
16892# there to prevent editors from complaining about space-tab.
16893# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16894# splitting by setting IFS to empty value.)
16895as_nl='
16896'
16897IFS=" ""	$as_nl"
16898
16899# Find who we are.  Look in the path if we contain no directory separator.
16900case $0 in
16901  *[\\/]* ) as_myself=$0 ;;
16902  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16903for as_dir in $PATH
16904do
16905  IFS=$as_save_IFS
16906  test -z "$as_dir" && as_dir=.
16907  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16908done
16909IFS=$as_save_IFS
16910
16911     ;;
16912esac
16913# We did not find ourselves, most probably we were run as `sh COMMAND'
16914# in which case we are not to be found in the path.
16915if test "x$as_myself" = x; then
16916  as_myself=$0
16917fi
16918if test ! -f "$as_myself"; then
16919  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16920  { (exit 1); exit 1; }
16921fi
16922
16923# Work around bugs in pre-3.0 UWIN ksh.
16924for as_var in ENV MAIL MAILPATH
16925do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16926done
16927PS1='$ '
16928PS2='> '
16929PS4='+ '
16930
16931# NLS nuisances.
16932for as_var in \
16933  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16934  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16935  LC_TELEPHONE LC_TIME
16936do
16937  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16938    eval $as_var=C; export $as_var
16939  else
16940    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16941  fi
16942done
16943
16944# Required to use basename.
16945if expr a : '\(a\)' >/dev/null 2>&1 &&
16946   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16947  as_expr=expr
16948else
16949  as_expr=false
16950fi
16951
16952if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16953  as_basename=basename
16954else
16955  as_basename=false
16956fi
16957
16958
16959# Name of the executable.
16960as_me=`$as_basename -- "$0" ||
16961$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16962	 X"$0" : 'X\(//\)$' \| \
16963	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16964echo X/"$0" |
16965    sed '/^.*\/\([^/][^/]*\)\/*$/{
16966	    s//\1/
16967	    q
16968	  }
16969	  /^X\/\(\/\/\)$/{
16970	    s//\1/
16971	    q
16972	  }
16973	  /^X\/\(\/\).*/{
16974	    s//\1/
16975	    q
16976	  }
16977	  s/.*/./; q'`
16978
16979# CDPATH.
16980$as_unset CDPATH
16981
16982
16983
16984  as_lineno_1=$LINENO
16985  as_lineno_2=$LINENO
16986  test "x$as_lineno_1" != "x$as_lineno_2" &&
16987  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16988
16989  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16990  # uniformly replaced by the line number.  The first 'sed' inserts a
16991  # line-number line after each line using $LINENO; the second 'sed'
16992  # does the real work.  The second script uses 'N' to pair each
16993  # line-number line with the line containing $LINENO, and appends
16994  # trailing '-' during substitution so that $LINENO is not a special
16995  # case at line end.
16996  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16997  # scripts with optimization help from Paolo Bonzini.  Blame Lee
16998  # E. McMahon (1931-1989) for sed's syntax.  :-)
16999  sed -n '
17000    p
17001    /[$]LINENO/=
17002  ' <$as_myself |
17003    sed '
17004      s/[$]LINENO.*/&-/
17005      t lineno
17006      b
17007      :lineno
17008      N
17009      :loop
17010      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17011      t loop
17012      s/-\n.*//
17013    ' >$as_me.lineno &&
17014  chmod +x "$as_me.lineno" ||
17015    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17016   { (exit 1); exit 1; }; }
17017
17018  # Don't try to exec as it changes $[0], causing all sort of problems
17019  # (the dirname of $[0] is not the place where we might find the
17020  # original and so on.  Autoconf is especially sensitive to this).
17021  . "./$as_me.lineno"
17022  # Exit status is that of the last command.
17023  exit
17024}
17025
17026
17027if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17028  as_dirname=dirname
17029else
17030  as_dirname=false
17031fi
17032
17033ECHO_C= ECHO_N= ECHO_T=
17034case `echo -n x` in
17035-n*)
17036  case `echo 'x\c'` in
17037  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17038  *)   ECHO_C='\c';;
17039  esac;;
17040*)
17041  ECHO_N='-n';;
17042esac
17043
17044if expr a : '\(a\)' >/dev/null 2>&1 &&
17045   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17046  as_expr=expr
17047else
17048  as_expr=false
17049fi
17050
17051rm -f conf$$ conf$$.exe conf$$.file
17052if test -d conf$$.dir; then
17053  rm -f conf$$.dir/conf$$.file
17054else
17055  rm -f conf$$.dir
17056  mkdir conf$$.dir
17057fi
17058echo >conf$$.file
17059if ln -s conf$$.file conf$$ 2>/dev/null; then
17060  as_ln_s='ln -s'
17061  # ... but there are two gotchas:
17062  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17063  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17064  # In both cases, we have to default to `cp -p'.
17065  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17066    as_ln_s='cp -p'
17067elif ln conf$$.file conf$$ 2>/dev/null; then
17068  as_ln_s=ln
17069else
17070  as_ln_s='cp -p'
17071fi
17072rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17073rmdir conf$$.dir 2>/dev/null
17074
17075if mkdir -p . 2>/dev/null; then
17076  as_mkdir_p=:
17077else
17078  test -d ./-p && rmdir ./-p
17079  as_mkdir_p=false
17080fi
17081
17082if test -x / >/dev/null 2>&1; then
17083  as_test_x='test -x'
17084else
17085  if ls -dL / >/dev/null 2>&1; then
17086    as_ls_L_option=L
17087  else
17088    as_ls_L_option=
17089  fi
17090  as_test_x='
17091    eval sh -c '\''
17092      if test -d "$1"; then
17093        test -d "$1/.";
17094      else
17095	case $1 in
17096        -*)set "./$1";;
17097	esac;
17098	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17099	???[sx]*):;;*)false;;esac;fi
17100    '\'' sh
17101  '
17102fi
17103as_executable_p=$as_test_x
17104
17105# Sed expression to map a string onto a valid CPP name.
17106as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17107
17108# Sed expression to map a string onto a valid variable name.
17109as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17110
17111
17112exec 6>&1
17113
17114# Save the log message, to keep $[0] and so on meaningful, and to
17115# report actual input values of CONFIG_FILES etc. instead of their
17116# values after options handling.
17117ac_log="
17118This file was extended by starplot $as_me 0.95.5, which was
17119generated by GNU Autoconf 2.61.  Invocation command line was
17120
17121  CONFIG_FILES    = $CONFIG_FILES
17122  CONFIG_HEADERS  = $CONFIG_HEADERS
17123  CONFIG_LINKS    = $CONFIG_LINKS
17124  CONFIG_COMMANDS = $CONFIG_COMMANDS
17125  $ $0 $@
17126
17127on `(hostname || uname -n) 2>/dev/null | sed 1q`
17128"
17129
17130_ACEOF
17131
17132cat >>$CONFIG_STATUS <<_ACEOF
17133# Files that config.status was made for.
17134config_files="$ac_config_files"
17135config_headers="$ac_config_headers"
17136config_commands="$ac_config_commands"
17137
17138_ACEOF
17139
17140cat >>$CONFIG_STATUS <<\_ACEOF
17141ac_cs_usage="\
17142\`$as_me' instantiates files from templates according to the
17143current configuration.
17144
17145Usage: $0 [OPTIONS] [FILE]...
17146
17147  -h, --help       print this help, then exit
17148  -V, --version    print version number and configuration settings, then exit
17149  -q, --quiet      do not print progress messages
17150  -d, --debug      don't remove temporary files
17151      --recheck    update $as_me by reconfiguring in the same conditions
17152  --file=FILE[:TEMPLATE]
17153		   instantiate the configuration file FILE
17154  --header=FILE[:TEMPLATE]
17155		   instantiate the configuration header FILE
17156
17157Configuration files:
17158$config_files
17159
17160Configuration headers:
17161$config_headers
17162
17163Configuration commands:
17164$config_commands
17165
17166Report bugs to <bug-autoconf@gnu.org>."
17167
17168_ACEOF
17169cat >>$CONFIG_STATUS <<_ACEOF
17170ac_cs_version="\\
17171starplot config.status 0.95.5
17172configured by $0, generated by GNU Autoconf 2.61,
17173  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17174
17175Copyright (C) 2006 Free Software Foundation, Inc.
17176This config.status script is free software; the Free Software Foundation
17177gives unlimited permission to copy, distribute and modify it."
17178
17179ac_pwd='$ac_pwd'
17180srcdir='$srcdir'
17181INSTALL='$INSTALL'
17182MKDIR_P='$MKDIR_P'
17183_ACEOF
17184
17185cat >>$CONFIG_STATUS <<\_ACEOF
17186# If no file are specified by the user, then we need to provide default
17187# value.  By we need to know if files were specified by the user.
17188ac_need_defaults=:
17189while test $# != 0
17190do
17191  case $1 in
17192  --*=*)
17193    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17194    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17195    ac_shift=:
17196    ;;
17197  *)
17198    ac_option=$1
17199    ac_optarg=$2
17200    ac_shift=shift
17201    ;;
17202  esac
17203
17204  case $ac_option in
17205  # Handling of the options.
17206  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17207    ac_cs_recheck=: ;;
17208  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17209    echo "$ac_cs_version"; exit ;;
17210  --debug | --debu | --deb | --de | --d | -d )
17211    debug=: ;;
17212  --file | --fil | --fi | --f )
17213    $ac_shift
17214    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17215    ac_need_defaults=false;;
17216  --header | --heade | --head | --hea )
17217    $ac_shift
17218    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17219    ac_need_defaults=false;;
17220  --he | --h)
17221    # Conflict between --help and --header
17222    { echo "$as_me: error: ambiguous option: $1
17223Try \`$0 --help' for more information." >&2
17224   { (exit 1); exit 1; }; };;
17225  --help | --hel | -h )
17226    echo "$ac_cs_usage"; exit ;;
17227  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17228  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17229    ac_cs_silent=: ;;
17230
17231  # This is an error.
17232  -*) { echo "$as_me: error: unrecognized option: $1
17233Try \`$0 --help' for more information." >&2
17234   { (exit 1); exit 1; }; } ;;
17235
17236  *) ac_config_targets="$ac_config_targets $1"
17237     ac_need_defaults=false ;;
17238
17239  esac
17240  shift
17241done
17242
17243ac_configure_extra_args=
17244
17245if $ac_cs_silent; then
17246  exec 6>/dev/null
17247  ac_configure_extra_args="$ac_configure_extra_args --silent"
17248fi
17249
17250_ACEOF
17251cat >>$CONFIG_STATUS <<_ACEOF
17252if \$ac_cs_recheck; then
17253  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17254  CONFIG_SHELL=$SHELL
17255  export CONFIG_SHELL
17256  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17257fi
17258
17259_ACEOF
17260cat >>$CONFIG_STATUS <<\_ACEOF
17261exec 5>>config.log
17262{
17263  echo
17264  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17265## Running $as_me. ##
17266_ASBOX
17267  echo "$ac_log"
17268} >&5
17269
17270_ACEOF
17271cat >>$CONFIG_STATUS <<_ACEOF
17272#
17273# INIT-COMMANDS
17274#
17275AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17276# Capture the value of obsolete ALL_LINGUAS because we need it to compute
17277    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17278    # from automake < 1.5.
17279    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17280    # Capture the value of LINGUAS because we need it to compute CATALOGS.
17281    LINGUAS="${LINGUAS-%UNSET%}"
17282
17283
17284_ACEOF
17285
17286cat >>$CONFIG_STATUS <<\_ACEOF
17287
17288# Handling of arguments.
17289for ac_config_target in $ac_config_targets
17290do
17291  case $ac_config_target in
17292    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17293    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17294    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17295    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17296    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
17297    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17298    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17299    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17300    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
17301    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17302    "src/convert/starpkg") CONFIG_FILES="$CONFIG_FILES src/convert/starpkg" ;;
17303
17304  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17305echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17306   { (exit 1); exit 1; }; };;
17307  esac
17308done
17309
17310
17311# If the user did not use the arguments to specify the items to instantiate,
17312# then the envvar interface is used.  Set only those that are not.
17313# We use the long form for the default assignment because of an extremely
17314# bizarre bug on SunOS 4.1.3.
17315if $ac_need_defaults; then
17316  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17317  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17318  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17319fi
17320
17321# Have a temporary directory for convenience.  Make it in the build tree
17322# simply because there is no reason against having it here, and in addition,
17323# creating and moving files from /tmp can sometimes cause problems.
17324# Hook for its removal unless debugging.
17325# Note that there is a small window in which the directory will not be cleaned:
17326# after its creation but before its name has been assigned to `$tmp'.
17327$debug ||
17328{
17329  tmp=
17330  trap 'exit_status=$?
17331  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17332' 0
17333  trap '{ (exit 1); exit 1; }' 1 2 13 15
17334}
17335# Create a (secure) tmp directory for tmp files.
17336
17337{
17338  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17339  test -n "$tmp" && test -d "$tmp"
17340}  ||
17341{
17342  tmp=./conf$$-$RANDOM
17343  (umask 077 && mkdir "$tmp")
17344} ||
17345{
17346   echo "$me: cannot create a temporary directory in ." >&2
17347   { (exit 1); exit 1; }
17348}
17349
17350#
17351# Set up the sed scripts for CONFIG_FILES section.
17352#
17353
17354# No need to generate the scripts if there are no CONFIG_FILES.
17355# This happens for instance when ./config.status config.h
17356if test -n "$CONFIG_FILES"; then
17357
17358_ACEOF
17359
17360
17361
17362ac_delim='%!_!# '
17363for ac_last_try in false false false false false :; do
17364  cat >conf$$subs.sed <<_ACEOF
17365SHELL!$SHELL$ac_delim
17366PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17367PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17368PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17369PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17370PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17371PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17372exec_prefix!$exec_prefix$ac_delim
17373prefix!$prefix$ac_delim
17374program_transform_name!$program_transform_name$ac_delim
17375bindir!$bindir$ac_delim
17376sbindir!$sbindir$ac_delim
17377libexecdir!$libexecdir$ac_delim
17378datarootdir!$datarootdir$ac_delim
17379datadir!$datadir$ac_delim
17380sysconfdir!$sysconfdir$ac_delim
17381sharedstatedir!$sharedstatedir$ac_delim
17382localstatedir!$localstatedir$ac_delim
17383includedir!$includedir$ac_delim
17384oldincludedir!$oldincludedir$ac_delim
17385docdir!$docdir$ac_delim
17386infodir!$infodir$ac_delim
17387htmldir!$htmldir$ac_delim
17388dvidir!$dvidir$ac_delim
17389pdfdir!$pdfdir$ac_delim
17390psdir!$psdir$ac_delim
17391libdir!$libdir$ac_delim
17392localedir!$localedir$ac_delim
17393mandir!$mandir$ac_delim
17394DEFS!$DEFS$ac_delim
17395ECHO_C!$ECHO_C$ac_delim
17396ECHO_N!$ECHO_N$ac_delim
17397ECHO_T!$ECHO_T$ac_delim
17398LIBS!$LIBS$ac_delim
17399build_alias!$build_alias$ac_delim
17400host_alias!$host_alias$ac_delim
17401target_alias!$target_alias$ac_delim
17402INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
17403INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
17404INSTALL_DATA!$INSTALL_DATA$ac_delim
17405am__isrc!$am__isrc$ac_delim
17406CYGPATH_W!$CYGPATH_W$ac_delim
17407PACKAGE!$PACKAGE$ac_delim
17408VERSION!$VERSION$ac_delim
17409ACLOCAL!$ACLOCAL$ac_delim
17410AUTOCONF!$AUTOCONF$ac_delim
17411AUTOMAKE!$AUTOMAKE$ac_delim
17412AUTOHEADER!$AUTOHEADER$ac_delim
17413MAKEINFO!$MAKEINFO$ac_delim
17414install_sh!$install_sh$ac_delim
17415STRIP!$STRIP$ac_delim
17416INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
17417mkdir_p!$mkdir_p$ac_delim
17418AWK!$AWK$ac_delim
17419SET_MAKE!$SET_MAKE$ac_delim
17420am__leading_dot!$am__leading_dot$ac_delim
17421AMTAR!$AMTAR$ac_delim
17422am__tar!$am__tar$ac_delim
17423am__untar!$am__untar$ac_delim
17424CC!$CC$ac_delim
17425CFLAGS!$CFLAGS$ac_delim
17426LDFLAGS!$LDFLAGS$ac_delim
17427CPPFLAGS!$CPPFLAGS$ac_delim
17428ac_ct_CC!$ac_ct_CC$ac_delim
17429EXEEXT!$EXEEXT$ac_delim
17430OBJEXT!$OBJEXT$ac_delim
17431DEPDIR!$DEPDIR$ac_delim
17432am__include!$am__include$ac_delim
17433am__quote!$am__quote$ac_delim
17434AMDEP_TRUE!$AMDEP_TRUE$ac_delim
17435AMDEP_FALSE!$AMDEP_FALSE$ac_delim
17436AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
17437CCDEPMODE!$CCDEPMODE$ac_delim
17438am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
17439am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
17440CPP!$CPP$ac_delim
17441GREP!$GREP$ac_delim
17442EGREP!$EGREP$ac_delim
17443USE_NLS!$USE_NLS$ac_delim
17444MSGFMT!$MSGFMT$ac_delim
17445GMSGFMT!$GMSGFMT$ac_delim
17446MSGFMT_015!$MSGFMT_015$ac_delim
17447GMSGFMT_015!$GMSGFMT_015$ac_delim
17448XGETTEXT!$XGETTEXT$ac_delim
17449XGETTEXT_015!$XGETTEXT_015$ac_delim
17450MSGMERGE!$MSGMERGE$ac_delim
17451build!$build$ac_delim
17452build_cpu!$build_cpu$ac_delim
17453build_vendor!$build_vendor$ac_delim
17454build_os!$build_os$ac_delim
17455host!$host$ac_delim
17456host_cpu!$host_cpu$ac_delim
17457host_vendor!$host_vendor$ac_delim
17458host_os!$host_os$ac_delim
17459GLIBC2!$GLIBC2$ac_delim
17460RANLIB!$RANLIB$ac_delim
17461CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
17462_ACEOF
17463
17464  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17465    break
17466  elif $ac_last_try; then
17467    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17468echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17469   { (exit 1); exit 1; }; }
17470  else
17471    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17472  fi
17473done
17474
17475ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17476if test -n "$ac_eof"; then
17477  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17478  ac_eof=`expr $ac_eof + 1`
17479fi
17480
17481cat >>$CONFIG_STATUS <<_ACEOF
17482cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17483/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17484_ACEOF
17485sed '
17486s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17487s/^/s,@/; s/!/@,|#_!!_#|/
17488:n
17489t n
17490s/'"$ac_delim"'$/,g/; t
17491s/$/\\/; p
17492N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17493' >>$CONFIG_STATUS <conf$$subs.sed
17494rm -f conf$$subs.sed
17495cat >>$CONFIG_STATUS <<_ACEOF
17496CEOF$ac_eof
17497_ACEOF
17498
17499
17500ac_delim='%!_!# '
17501for ac_last_try in false false false false false :; do
17502  cat >conf$$subs.sed <<_ACEOF
17503HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
17504ALLOCA!$ALLOCA$ac_delim
17505PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
17506LIBPTH!$LIBPTH$ac_delim
17507LTLIBPTH!$LTLIBPTH$ac_delim
17508LIBTHREAD!$LIBTHREAD$ac_delim
17509LTLIBTHREAD!$LTLIBTHREAD$ac_delim
17510LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
17511LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
17512LIBICONV!$LIBICONV$ac_delim
17513LTLIBICONV!$LTLIBICONV$ac_delim
17514INTLBISON!$INTLBISON$ac_delim
17515GLIBC21!$GLIBC21$ac_delim
17516INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
17517HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
17518HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
17519HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
17520HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
17521WOE32DLL!$WOE32DLL$ac_delim
17522BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
17523USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
17524CATOBJEXT!$CATOBJEXT$ac_delim
17525DATADIRNAME!$DATADIRNAME$ac_delim
17526INSTOBJEXT!$INSTOBJEXT$ac_delim
17527GENCAT!$GENCAT$ac_delim
17528INTLOBJS!$INTLOBJS$ac_delim
17529INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
17530INTLLIBS!$INTLLIBS$ac_delim
17531LIBINTL!$LIBINTL$ac_delim
17532LTLIBINTL!$LTLIBINTL$ac_delim
17533POSUB!$POSUB$ac_delim
17534MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
17535MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
17536MAINT!$MAINT$ac_delim
17537ISODATE!$ISODATE$ac_delim
17538exampledir!$exampledir$ac_delim
17539HTML_IMAGES!$HTML_IMAGES$ac_delim
17540HTML_PARFILES!$HTML_PARFILES$ac_delim
17541CXX!$CXX$ac_delim
17542CXXFLAGS!$CXXFLAGS$ac_delim
17543ac_ct_CXX!$ac_ct_CXX$ac_delim
17544CXXDEPMODE!$CXXDEPMODE$ac_delim
17545am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
17546am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
17547has_pkg_config!$has_pkg_config$ac_delim
17548browserpath!$browserpath$ac_delim
17549PKG_CONFIG!$PKG_CONFIG$ac_delim
17550GTK_CFLAGS!$GTK_CFLAGS$ac_delim
17551GTK_LIBS!$GTK_LIBS$ac_delim
17552CXXCPP!$CXXCPP$ac_delim
17553POW_LIB!$POW_LIB$ac_delim
17554LIBOBJS!$LIBOBJS$ac_delim
17555LTLIBOBJS!$LTLIBOBJS$ac_delim
17556_ACEOF
17557
17558  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
17559    break
17560  elif $ac_last_try; then
17561    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17562echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17563   { (exit 1); exit 1; }; }
17564  else
17565    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17566  fi
17567done
17568
17569ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17570if test -n "$ac_eof"; then
17571  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17572  ac_eof=`expr $ac_eof + 1`
17573fi
17574
17575cat >>$CONFIG_STATUS <<_ACEOF
17576cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17577/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17578_ACEOF
17579sed '
17580s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17581s/^/s,@/; s/!/@,|#_!!_#|/
17582:n
17583t n
17584s/'"$ac_delim"'$/,g/; t
17585s/$/\\/; p
17586N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17587' >>$CONFIG_STATUS <conf$$subs.sed
17588rm -f conf$$subs.sed
17589cat >>$CONFIG_STATUS <<_ACEOF
17590:end
17591s/|#_!!_#|//g
17592CEOF$ac_eof
17593_ACEOF
17594
17595
17596# VPATH may cause trouble with some makes, so we remove $(srcdir),
17597# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17598# trailing colons and then remove the whole line if VPATH becomes empty
17599# (actually we leave an empty line to preserve line numbers).
17600if test "x$srcdir" = x.; then
17601  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
17602s/:*\$(srcdir):*/:/
17603s/:*\${srcdir}:*/:/
17604s/:*@srcdir@:*/:/
17605s/^\([^=]*=[	 ]*\):*/\1/
17606s/:*$//
17607s/^[^=]*=[	 ]*$//
17608}'
17609fi
17610
17611cat >>$CONFIG_STATUS <<\_ACEOF
17612fi # test -n "$CONFIG_FILES"
17613
17614
17615for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
17616do
17617  case $ac_tag in
17618  :[FHLC]) ac_mode=$ac_tag; continue;;
17619  esac
17620  case $ac_mode$ac_tag in
17621  :[FHL]*:*);;
17622  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17623echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17624   { (exit 1); exit 1; }; };;
17625  :[FH]-) ac_tag=-:-;;
17626  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17627  esac
17628  ac_save_IFS=$IFS
17629  IFS=:
17630  set x $ac_tag
17631  IFS=$ac_save_IFS
17632  shift
17633  ac_file=$1
17634  shift
17635
17636  case $ac_mode in
17637  :L) ac_source=$1;;
17638  :[FH])
17639    ac_file_inputs=
17640    for ac_f
17641    do
17642      case $ac_f in
17643      -) ac_f="$tmp/stdin";;
17644      *) # Look for the file first in the build tree, then in the source tree
17645	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17646	 # because $ac_f cannot contain `:'.
17647	 test -f "$ac_f" ||
17648	   case $ac_f in
17649	   [\\/$]*) false;;
17650	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17651	   esac ||
17652	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17653echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17654   { (exit 1); exit 1; }; };;
17655      esac
17656      ac_file_inputs="$ac_file_inputs $ac_f"
17657    done
17658
17659    # Let's still pretend it is `configure' which instantiates (i.e., don't
17660    # use $as_me), people would be surprised to read:
17661    #    /* config.h.  Generated by config.status.  */
17662    configure_input="Generated from "`IFS=:
17663	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17664    if test x"$ac_file" != x-; then
17665      configure_input="$ac_file.  $configure_input"
17666      { echo "$as_me:$LINENO: creating $ac_file" >&5
17667echo "$as_me: creating $ac_file" >&6;}
17668    fi
17669
17670    case $ac_tag in
17671    *:-:* | *:-) cat >"$tmp/stdin";;
17672    esac
17673    ;;
17674  esac
17675
17676  ac_dir=`$as_dirname -- "$ac_file" ||
17677$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17678	 X"$ac_file" : 'X\(//\)[^/]' \| \
17679	 X"$ac_file" : 'X\(//\)$' \| \
17680	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17681echo X"$ac_file" |
17682    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17683	    s//\1/
17684	    q
17685	  }
17686	  /^X\(\/\/\)[^/].*/{
17687	    s//\1/
17688	    q
17689	  }
17690	  /^X\(\/\/\)$/{
17691	    s//\1/
17692	    q
17693	  }
17694	  /^X\(\/\).*/{
17695	    s//\1/
17696	    q
17697	  }
17698	  s/.*/./; q'`
17699  { as_dir="$ac_dir"
17700  case $as_dir in #(
17701  -*) as_dir=./$as_dir;;
17702  esac
17703  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17704    as_dirs=
17705    while :; do
17706      case $as_dir in #(
17707      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17708      *) as_qdir=$as_dir;;
17709      esac
17710      as_dirs="'$as_qdir' $as_dirs"
17711      as_dir=`$as_dirname -- "$as_dir" ||
17712$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17713	 X"$as_dir" : 'X\(//\)[^/]' \| \
17714	 X"$as_dir" : 'X\(//\)$' \| \
17715	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17716echo X"$as_dir" |
17717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17718	    s//\1/
17719	    q
17720	  }
17721	  /^X\(\/\/\)[^/].*/{
17722	    s//\1/
17723	    q
17724	  }
17725	  /^X\(\/\/\)$/{
17726	    s//\1/
17727	    q
17728	  }
17729	  /^X\(\/\).*/{
17730	    s//\1/
17731	    q
17732	  }
17733	  s/.*/./; q'`
17734      test -d "$as_dir" && break
17735    done
17736    test -z "$as_dirs" || eval "mkdir $as_dirs"
17737  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17738echo "$as_me: error: cannot create directory $as_dir" >&2;}
17739   { (exit 1); exit 1; }; }; }
17740  ac_builddir=.
17741
17742case "$ac_dir" in
17743.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17744*)
17745  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17746  # A ".." for each directory in $ac_dir_suffix.
17747  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17748  case $ac_top_builddir_sub in
17749  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17750  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17751  esac ;;
17752esac
17753ac_abs_top_builddir=$ac_pwd
17754ac_abs_builddir=$ac_pwd$ac_dir_suffix
17755# for backward compatibility:
17756ac_top_builddir=$ac_top_build_prefix
17757
17758case $srcdir in
17759  .)  # We are building in place.
17760    ac_srcdir=.
17761    ac_top_srcdir=$ac_top_builddir_sub
17762    ac_abs_top_srcdir=$ac_pwd ;;
17763  [\\/]* | ?:[\\/]* )  # Absolute name.
17764    ac_srcdir=$srcdir$ac_dir_suffix;
17765    ac_top_srcdir=$srcdir
17766    ac_abs_top_srcdir=$srcdir ;;
17767  *) # Relative name.
17768    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17769    ac_top_srcdir=$ac_top_build_prefix$srcdir
17770    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17771esac
17772ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17773
17774
17775  case $ac_mode in
17776  :F)
17777  #
17778  # CONFIG_FILE
17779  #
17780
17781  case $INSTALL in
17782  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17783  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17784  esac
17785  ac_MKDIR_P=$MKDIR_P
17786  case $MKDIR_P in
17787  [\\/$]* | ?:[\\/]* ) ;;
17788  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17789  esac
17790_ACEOF
17791
17792cat >>$CONFIG_STATUS <<\_ACEOF
17793# If the template does not know about datarootdir, expand it.
17794# FIXME: This hack should be removed a few years after 2.60.
17795ac_datarootdir_hack=; ac_datarootdir_seen=
17796
17797case `sed -n '/datarootdir/ {
17798  p
17799  q
17800}
17801/@datadir@/p
17802/@docdir@/p
17803/@infodir@/p
17804/@localedir@/p
17805/@mandir@/p
17806' $ac_file_inputs` in
17807*datarootdir*) ac_datarootdir_seen=yes;;
17808*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17809  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17810echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17811_ACEOF
17812cat >>$CONFIG_STATUS <<_ACEOF
17813  ac_datarootdir_hack='
17814  s&@datadir@&$datadir&g
17815  s&@docdir@&$docdir&g
17816  s&@infodir@&$infodir&g
17817  s&@localedir@&$localedir&g
17818  s&@mandir@&$mandir&g
17819    s&\\\${datarootdir}&$datarootdir&g' ;;
17820esac
17821_ACEOF
17822
17823# Neutralize VPATH when `$srcdir' = `.'.
17824# Shell code in configure.ac might set extrasub.
17825# FIXME: do we really want to maintain this feature?
17826cat >>$CONFIG_STATUS <<_ACEOF
17827  sed "$ac_vpsub
17828$extrasub
17829_ACEOF
17830cat >>$CONFIG_STATUS <<\_ACEOF
17831:t
17832/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17833s&@configure_input@&$configure_input&;t t
17834s&@top_builddir@&$ac_top_builddir_sub&;t t
17835s&@srcdir@&$ac_srcdir&;t t
17836s&@abs_srcdir@&$ac_abs_srcdir&;t t
17837s&@top_srcdir@&$ac_top_srcdir&;t t
17838s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17839s&@builddir@&$ac_builddir&;t t
17840s&@abs_builddir@&$ac_abs_builddir&;t t
17841s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17842s&@INSTALL@&$ac_INSTALL&;t t
17843s&@MKDIR_P@&$ac_MKDIR_P&;t t
17844$ac_datarootdir_hack
17845" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
17846
17847test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17848  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17849  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17850  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17851which seems to be undefined.  Please make sure it is defined." >&5
17852echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17853which seems to be undefined.  Please make sure it is defined." >&2;}
17854
17855  rm -f "$tmp/stdin"
17856  case $ac_file in
17857  -) cat "$tmp/out"; rm -f "$tmp/out";;
17858  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17859  esac
17860 ;;
17861  :H)
17862  #
17863  # CONFIG_HEADER
17864  #
17865_ACEOF
17866
17867# Transform confdefs.h into a sed script `conftest.defines', that
17868# substitutes the proper values into config.h.in to produce config.h.
17869rm -f conftest.defines conftest.tail
17870# First, append a space to every undef/define line, to ease matching.
17871echo 's/$/ /' >conftest.defines
17872# Then, protect against being on the right side of a sed subst, or in
17873# an unquoted here document, in config.status.  If some macros were
17874# called several times there might be several #defines for the same
17875# symbol, which is useless.  But do not sort them, since the last
17876# AC_DEFINE must be honored.
17877ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17878# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17879# NAME is the cpp macro being defined, VALUE is the value it is being given.
17880# PARAMS is the parameter list in the macro definition--in most cases, it's
17881# just an empty string.
17882ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
17883ac_dB='\\)[	 (].*,\\1define\\2'
17884ac_dC=' '
17885ac_dD=' ,'
17886
17887uniq confdefs.h |
17888  sed -n '
17889	t rset
17890	:rset
17891	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
17892	t ok
17893	d
17894	:ok
17895	s/[\\&,]/\\&/g
17896	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17897	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17898  ' >>conftest.defines
17899
17900# Remove the space that was appended to ease matching.
17901# Then replace #undef with comments.  This is necessary, for
17902# example, in the case of _POSIX_SOURCE, which is predefined and required
17903# on some systems where configure will not decide to define it.
17904# (The regexp can be short, since the line contains either #define or #undef.)
17905echo 's/ $//
17906s,^[	 #]*u.*,/* & */,' >>conftest.defines
17907
17908# Break up conftest.defines:
17909ac_max_sed_lines=50
17910
17911# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17912# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17913# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17914# et cetera.
17915ac_in='$ac_file_inputs'
17916ac_out='"$tmp/out1"'
17917ac_nxt='"$tmp/out2"'
17918
17919while :
17920do
17921  # Write a here document:
17922    cat >>$CONFIG_STATUS <<_ACEOF
17923    # First, check the format of the line:
17924    cat >"\$tmp/defines.sed" <<\\CEOF
17925/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
17926/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
17927b
17928:def
17929_ACEOF
17930  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17931  echo 'CEOF
17932    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17933  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17934  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17935  grep . conftest.tail >/dev/null || break
17936  rm -f conftest.defines
17937  mv conftest.tail conftest.defines
17938done
17939rm -f conftest.defines conftest.tail
17940
17941echo "ac_result=$ac_in" >>$CONFIG_STATUS
17942cat >>$CONFIG_STATUS <<\_ACEOF
17943  if test x"$ac_file" != x-; then
17944    echo "/* $configure_input  */" >"$tmp/config.h"
17945    cat "$ac_result" >>"$tmp/config.h"
17946    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17947      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17948echo "$as_me: $ac_file is unchanged" >&6;}
17949    else
17950      rm -f $ac_file
17951      mv "$tmp/config.h" $ac_file
17952    fi
17953  else
17954    echo "/* $configure_input  */"
17955    cat "$ac_result"
17956  fi
17957  rm -f "$tmp/out12"
17958# Compute $ac_file's index in $config_headers.
17959_am_arg=$ac_file
17960_am_stamp_count=1
17961for _am_header in $config_headers :; do
17962  case $_am_header in
17963    $_am_arg | $_am_arg:* )
17964      break ;;
17965    * )
17966      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17967  esac
17968done
17969echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17970$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17971	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17972	 X"$_am_arg" : 'X\(//\)$' \| \
17973	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17974echo X"$_am_arg" |
17975    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17976	    s//\1/
17977	    q
17978	  }
17979	  /^X\(\/\/\)[^/].*/{
17980	    s//\1/
17981	    q
17982	  }
17983	  /^X\(\/\/\)$/{
17984	    s//\1/
17985	    q
17986	  }
17987	  /^X\(\/\).*/{
17988	    s//\1/
17989	    q
17990	  }
17991	  s/.*/./; q'`/stamp-h$_am_stamp_count
17992 ;;
17993
17994  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17995echo "$as_me: executing $ac_file commands" >&6;}
17996 ;;
17997  esac
17998
17999
18000  case $ac_file$ac_mode in
18001    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18002  # Strip MF so we end up with the name of the file.
18003  mf=`echo "$mf" | sed -e 's/:.*$//'`
18004  # Check whether this is an Automake generated Makefile or not.
18005  # We used to match only the files named `Makefile.in', but
18006  # some people rename them; so instead we look at the file content.
18007  # Grep'ing the first line is not enough: some people post-process
18008  # each Makefile.in and add a new line on top of each file to say so.
18009  # Grep'ing the whole file is not good either: AIX grep has a line
18010  # limit of 2048, but all sed's we know have understand at least 4000.
18011  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18012    dirpart=`$as_dirname -- "$mf" ||
18013$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18014	 X"$mf" : 'X\(//\)[^/]' \| \
18015	 X"$mf" : 'X\(//\)$' \| \
18016	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18017echo X"$mf" |
18018    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18019	    s//\1/
18020	    q
18021	  }
18022	  /^X\(\/\/\)[^/].*/{
18023	    s//\1/
18024	    q
18025	  }
18026	  /^X\(\/\/\)$/{
18027	    s//\1/
18028	    q
18029	  }
18030	  /^X\(\/\).*/{
18031	    s//\1/
18032	    q
18033	  }
18034	  s/.*/./; q'`
18035  else
18036    continue
18037  fi
18038  # Extract the definition of DEPDIR, am__include, and am__quote
18039  # from the Makefile without running `make'.
18040  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18041  test -z "$DEPDIR" && continue
18042  am__include=`sed -n 's/^am__include = //p' < "$mf"`
18043  test -z "am__include" && continue
18044  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18045  # When using ansi2knr, U may be empty or an underscore; expand it
18046  U=`sed -n 's/^U = //p' < "$mf"`
18047  # Find all dependency output files, they are included files with
18048  # $(DEPDIR) in their names.  We invoke sed twice because it is the
18049  # simplest approach to changing $(DEPDIR) to its actual value in the
18050  # expansion.
18051  for file in `sed -n "
18052    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18053       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18054    # Make sure the directory exists.
18055    test -f "$dirpart/$file" && continue
18056    fdir=`$as_dirname -- "$file" ||
18057$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18058	 X"$file" : 'X\(//\)[^/]' \| \
18059	 X"$file" : 'X\(//\)$' \| \
18060	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18061echo X"$file" |
18062    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18063	    s//\1/
18064	    q
18065	  }
18066	  /^X\(\/\/\)[^/].*/{
18067	    s//\1/
18068	    q
18069	  }
18070	  /^X\(\/\/\)$/{
18071	    s//\1/
18072	    q
18073	  }
18074	  /^X\(\/\).*/{
18075	    s//\1/
18076	    q
18077	  }
18078	  s/.*/./; q'`
18079    { as_dir=$dirpart/$fdir
18080  case $as_dir in #(
18081  -*) as_dir=./$as_dir;;
18082  esac
18083  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18084    as_dirs=
18085    while :; do
18086      case $as_dir in #(
18087      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18088      *) as_qdir=$as_dir;;
18089      esac
18090      as_dirs="'$as_qdir' $as_dirs"
18091      as_dir=`$as_dirname -- "$as_dir" ||
18092$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18093	 X"$as_dir" : 'X\(//\)[^/]' \| \
18094	 X"$as_dir" : 'X\(//\)$' \| \
18095	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18096echo X"$as_dir" |
18097    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18098	    s//\1/
18099	    q
18100	  }
18101	  /^X\(\/\/\)[^/].*/{
18102	    s//\1/
18103	    q
18104	  }
18105	  /^X\(\/\/\)$/{
18106	    s//\1/
18107	    q
18108	  }
18109	  /^X\(\/\).*/{
18110	    s//\1/
18111	    q
18112	  }
18113	  s/.*/./; q'`
18114      test -d "$as_dir" && break
18115    done
18116    test -z "$as_dirs" || eval "mkdir $as_dirs"
18117  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18118echo "$as_me: error: cannot create directory $as_dir" >&2;}
18119   { (exit 1); exit 1; }; }; }
18120    # echo "creating $dirpart/$file"
18121    echo '# dummy' > "$dirpart/$file"
18122  done
18123done
18124 ;;
18125    "po-directories":C)
18126    for ac_file in $CONFIG_FILES; do
18127      # Support "outfile[:infile[:infile...]]"
18128      case "$ac_file" in
18129        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18130      esac
18131      # PO directories have a Makefile.in generated from Makefile.in.in.
18132      case "$ac_file" in */Makefile.in)
18133        # Adjust a relative srcdir.
18134        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18135        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18136        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18137        # In autoconf-2.13 it is called $ac_given_srcdir.
18138        # In autoconf-2.50 it is called $srcdir.
18139        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18140        case "$ac_given_srcdir" in
18141          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18142          /*) top_srcdir="$ac_given_srcdir" ;;
18143          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18144        esac
18145        # Treat a directory as a PO directory if and only if it has a
18146        # POTFILES.in file. This allows packages to have multiple PO
18147        # directories under different names or in different locations.
18148        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18149          rm -f "$ac_dir/POTFILES"
18150          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18151          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18152          POMAKEFILEDEPS="POTFILES.in"
18153          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18154          # on $ac_dir but don't depend on user-specified configuration
18155          # parameters.
18156          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18157            # The LINGUAS file contains the set of available languages.
18158            if test -n "$OBSOLETE_ALL_LINGUAS"; then
18159              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18160            fi
18161            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18162            # Hide the ALL_LINGUAS assigment from automake < 1.5.
18163            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18164            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18165          else
18166            # The set of available languages was given in configure.in.
18167            # Hide the ALL_LINGUAS assigment from automake < 1.5.
18168            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18169          fi
18170          # Compute POFILES
18171          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18172          # Compute UPDATEPOFILES
18173          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18174          # Compute DUMMYPOFILES
18175          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18176          # Compute GMOFILES
18177          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18178          case "$ac_given_srcdir" in
18179            .) srcdirpre= ;;
18180            *) srcdirpre='$(srcdir)/' ;;
18181          esac
18182          POFILES=
18183          UPDATEPOFILES=
18184          DUMMYPOFILES=
18185          GMOFILES=
18186          for lang in $ALL_LINGUAS; do
18187            POFILES="$POFILES $srcdirpre$lang.po"
18188            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18189            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18190            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18191          done
18192          # CATALOGS depends on both $ac_dir and the user's LINGUAS
18193          # environment variable.
18194          INST_LINGUAS=
18195          if test -n "$ALL_LINGUAS"; then
18196            for presentlang in $ALL_LINGUAS; do
18197              useit=no
18198              if test "%UNSET%" != "$LINGUAS"; then
18199                desiredlanguages="$LINGUAS"
18200              else
18201                desiredlanguages="$ALL_LINGUAS"
18202              fi
18203              for desiredlang in $desiredlanguages; do
18204                # Use the presentlang catalog if desiredlang is
18205                #   a. equal to presentlang, or
18206                #   b. a variant of presentlang (because in this case,
18207                #      presentlang can be used as a fallback for messages
18208                #      which are not translated in the desiredlang catalog).
18209                case "$desiredlang" in
18210                  "$presentlang"*) useit=yes;;
18211                esac
18212              done
18213              if test $useit = yes; then
18214                INST_LINGUAS="$INST_LINGUAS $presentlang"
18215              fi
18216            done
18217          fi
18218          CATALOGS=
18219          if test -n "$INST_LINGUAS"; then
18220            for lang in $INST_LINGUAS; do
18221              CATALOGS="$CATALOGS $lang.gmo"
18222            done
18223          fi
18224          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18225          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18226          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18227            if test -f "$f"; then
18228              case "$f" in
18229                *.orig | *.bak | *~) ;;
18230                *) cat "$f" >> "$ac_dir/Makefile" ;;
18231              esac
18232            fi
18233          done
18234        fi
18235        ;;
18236      esac
18237    done ;;
18238
18239  esac
18240done # for ac_tag
18241
18242
18243{ (exit 0); exit 0; }
18244_ACEOF
18245chmod +x $CONFIG_STATUS
18246ac_clean_files=$ac_clean_files_save
18247
18248
18249# configure is writing to config.log, and then calls config.status.
18250# config.status does its own redirection, appending to config.log.
18251# Unfortunately, on DOS this fails, as config.log is still kept open
18252# by configure, so config.status won't be able to write to it; its
18253# output is simply discarded.  So we exec the FD to /dev/null,
18254# effectively closing config.log, so it can be properly (re)opened and
18255# appended to by config.status.  When coming back to configure, we
18256# need to make the FD available again.
18257if test "$no_create" != yes; then
18258  ac_cs_success=:
18259  ac_config_status_args=
18260  test "$silent" = yes &&
18261    ac_config_status_args="$ac_config_status_args --quiet"
18262  exec 5>/dev/null
18263  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18264  exec 5>>config.log
18265  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18266  # would make configure fail if this is the last instruction.
18267  $ac_cs_success || { (exit 1); exit 1; }
18268fi
18269
18270