1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for gnuplot 5.4.1.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
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  # Pre-4.2 versions of Zsh do 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*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME='gnuplot'
579PACKAGE_TARNAME='gnuplot'
580PACKAGE_VERSION='5.4.1'
581PACKAGE_STRING='gnuplot 5.4.1'
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585ac_unique_file="src/graphics.c"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_subst_vars='am__EXEEXT_FALSE
623am__EXEEXT_TRUE
624LTLIBOBJS
625LIBOBJS
626TERMXLIBS
627TERMLIBS
628TEXDIR
629GIHDIR
630PATCHLEVEL
631VERSION_MAJOR
632DIST_CONTACT
633HAVE_LRELEASE_FALSE
634HAVE_LRELEASE_TRUE
635BUILD_QT_FALSE
636BUILD_QT_TRUE
637LRELEASE
638UIC
639MOC
640RCC
641QT_LIBS
642QT_CFLAGS
643BUILD_GPCAIRO_FALSE
644BUILD_GPCAIRO_TRUE
645CAIROEPS_LIBS
646CAIROEPS_CFLAGS
647CAIROPDF_LIBS
648CAIROPDF_CFLAGS
649BUILD_BITMAP_FALSE
650BUILD_BITMAP_TRUE
651BUILD_WXWIDGETS_FALSE
652BUILD_WXWIDGETS_TRUE
653WX_LIBS
654GTK_LIBS
655GTK_CFLAGS
656CAIROPANGO_LIBS
657CAIROPANGO_CFLAGS
658WX_CONFIG
659CXXCPP
660am__fastdepCXX_FALSE
661am__fastdepCXX_TRUE
662CXXDEPMODE
663ac_ct_CXX
664CXXFLAGS
665CXX
666CACA_CONFIG
667caca_LIBS
668caca_CFLAGS
669BUILD_LUA_FALSE
670BUILD_LUA_TRUE
671LUA
672LUA_LIBS
673LUA_CFLAGS
674GDLIB_CONFIG
675libgd_LIBS
676libgd_CFLAGS
677BUILD_PLUGIN_FALSE
678BUILD_PLUGIN_TRUE
679BUILD_SRC_BEOS_SUBDIR_FALSE
680BUILD_SRC_BEOS_SUBDIR_TRUE
681BUILD_GNUPLOT_X11_FALSE
682BUILD_GNUPLOT_X11_TRUE
683X_EXTRA_LIBS
684X_LIBS
685X_PRE_LIBS
686X_CFLAGS
687XMKMF
688LIBRARIES_FOR_X
689TEXHASH
690KPSEXPAND
691LATEX2HTML
692TROFF
693DVIPS
694HAVE_LATEX_FALSE
695HAVE_LATEX_TRUE
696PDFLATEX
697LATEX
698PLAINTEX
699EMACS
700LIBCERF_LIBS
701LIBCERF_CFLAGS
702PKG_CONFIG
703CC_FOR_BUILD
704LN_S
705am__fastdepOBJC_FALSE
706am__fastdepOBJC_TRUE
707OBJCDEPMODE
708ac_ct_OBJC
709OBJCFLAGS
710OBJC
711EGREP
712GREP
713CPP
714am__fastdepCC_FALSE
715am__fastdepCC_TRUE
716CCDEPMODE
717am__nodep
718AMDEPBACKSLASH
719AMDEP_FALSE
720AMDEP_TRUE
721am__include
722DEPDIR
723OBJEXT
724EXEEXT
725ac_ct_CC
726CPPFLAGS
727LDFLAGS
728CFLAGS
729CC
730MAINT
731MAINTAINER_MODE_FALSE
732MAINTAINER_MODE_TRUE
733AM_BACKSLASH
734AM_DEFAULT_VERBOSITY
735AM_DEFAULT_V
736AM_V
737am__untar
738am__tar
739AMTAR
740am__leading_dot
741SET_MAKE
742AWK
743mkdir_p
744MKDIR_P
745INSTALL_STRIP_PROGRAM
746STRIP
747install_sh
748MAKEINFO
749AUTOHEADER
750AUTOMAKE
751AUTOCONF
752ACLOCAL
753VERSION
754PACKAGE
755CYGPATH_W
756am__isrc
757INSTALL_DATA
758INSTALL_SCRIPT
759INSTALL_PROGRAM
760DEVELOPMENT_VERSION_FALSE
761DEVELOPMENT_VERSION_TRUE
762target_alias
763host_alias
764build_alias
765LIBS
766ECHO_T
767ECHO_N
768ECHO_C
769DEFS
770mandir
771localedir
772libdir
773psdir
774pdfdir
775dvidir
776htmldir
777infodir
778docdir
779oldincludedir
780includedir
781runstatedir
782localstatedir
783sharedstatedir
784sysconfdir
785datadir
786datarootdir
787libexecdir
788sbindir
789bindir
790program_transform_name
791prefix
792exec_prefix
793PACKAGE_URL
794PACKAGE_BUGREPORT
795PACKAGE_STRING
796PACKAGE_VERSION
797PACKAGE_TARNAME
798PACKAGE_NAME
799PATH_SEPARATOR
800SHELL
801am__quote'
802ac_subst_files=''
803ac_user_opts='
804enable_option_checking
805enable_silent_rules
806enable_maintainer_mode
807enable_dependency_tracking
808enable_largefile
809with_libcerf
810with_latex
811with_texdir
812with_kpsexpand
813with_x
814with_x_dcop
815with_aquaterm
816enable_plugins
817with_gihdir
818with_ggi
819with_readline
820enable_history_file
821with_gd
822with_lua
823with_caca
824with_cwdrc
825with_row_help
826enable_x11_mbfonts
827enable_x11_external
828enable_raise_console
829enable_wxwidgets
830with_wx
831with_wx_multithreaded
832with_bitmap_terminals
833with_tektronix
834with_gpic
835with_tgif
836with_mif
837with_regis
838with_cairo
839enable_stats
840with_qt
841'
842      ac_precious_vars='build_alias
843host_alias
844target_alias
845CC
846CFLAGS
847LDFLAGS
848LIBS
849CPPFLAGS
850CPP
851OBJC
852OBJCFLAGS
853PKG_CONFIG
854LIBCERF_CFLAGS
855LIBCERF_LIBS
856XMKMF
857libgd_CFLAGS
858libgd_LIBS
859LUA_CFLAGS
860LUA_LIBS
861caca_CFLAGS
862caca_LIBS
863CXX
864CXXFLAGS
865CCC
866CXXCPP
867CAIROPANGO_CFLAGS
868CAIROPANGO_LIBS
869GTK_CFLAGS
870GTK_LIBS
871CAIROPDF_CFLAGS
872CAIROPDF_LIBS
873CAIROEPS_CFLAGS
874CAIROEPS_LIBS
875QT_CFLAGS
876QT_LIBS
877DIST_CONTACT'
878
879
880# Initialize some variables set by options.
881ac_init_help=
882ac_init_version=false
883ac_unrecognized_opts=
884ac_unrecognized_sep=
885# The variables have the same names as the options, with
886# dashes changed to underlines.
887cache_file=/dev/null
888exec_prefix=NONE
889no_create=
890no_recursion=
891prefix=NONE
892program_prefix=NONE
893program_suffix=NONE
894program_transform_name=s,x,x,
895silent=
896site=
897srcdir=
898verbose=
899x_includes=NONE
900x_libraries=NONE
901
902# Installation directory options.
903# These are left unexpanded so users can "make install exec_prefix=/foo"
904# and all the variables that are supposed to be based on exec_prefix
905# by default will actually change.
906# Use braces instead of parens because sh, perl, etc. also accept them.
907# (The list follows the same order as the GNU Coding Standards.)
908bindir='${exec_prefix}/bin'
909sbindir='${exec_prefix}/sbin'
910libexecdir='${exec_prefix}/libexec'
911datarootdir='${prefix}/share'
912datadir='${datarootdir}'
913sysconfdir='${prefix}/etc'
914sharedstatedir='${prefix}/com'
915localstatedir='${prefix}/var'
916runstatedir='${localstatedir}/run'
917includedir='${prefix}/include'
918oldincludedir='/usr/include'
919docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
920infodir='${datarootdir}/info'
921htmldir='${docdir}'
922dvidir='${docdir}'
923pdfdir='${docdir}'
924psdir='${docdir}'
925libdir='${exec_prefix}/lib'
926localedir='${datarootdir}/locale'
927mandir='${datarootdir}/man'
928
929ac_prev=
930ac_dashdash=
931for ac_option
932do
933  # If the previous option needs an argument, assign it.
934  if test -n "$ac_prev"; then
935    eval $ac_prev=\$ac_option
936    ac_prev=
937    continue
938  fi
939
940  case $ac_option in
941  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942  *=)   ac_optarg= ;;
943  *)    ac_optarg=yes ;;
944  esac
945
946  # Accept the important Cygnus configure options, so we can diagnose typos.
947
948  case $ac_dashdash$ac_option in
949  --)
950    ac_dashdash=yes ;;
951
952  -bindir | --bindir | --bindi | --bind | --bin | --bi)
953    ac_prev=bindir ;;
954  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
955    bindir=$ac_optarg ;;
956
957  -build | --build | --buil | --bui | --bu)
958    ac_prev=build_alias ;;
959  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
960    build_alias=$ac_optarg ;;
961
962  -cache-file | --cache-file | --cache-fil | --cache-fi \
963  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
964    ac_prev=cache_file ;;
965  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
966  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
967    cache_file=$ac_optarg ;;
968
969  --config-cache | -C)
970    cache_file=config.cache ;;
971
972  -datadir | --datadir | --datadi | --datad)
973    ac_prev=datadir ;;
974  -datadir=* | --datadir=* | --datadi=* | --datad=*)
975    datadir=$ac_optarg ;;
976
977  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
978  | --dataroo | --dataro | --datar)
979    ac_prev=datarootdir ;;
980  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
981  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
982    datarootdir=$ac_optarg ;;
983
984  -disable-* | --disable-*)
985    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
986    # Reject names that are not valid shell variable names.
987    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988      as_fn_error $? "invalid feature name: $ac_useropt"
989    ac_useropt_orig=$ac_useropt
990    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991    case $ac_user_opts in
992      *"
993"enable_$ac_useropt"
994"*) ;;
995      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
996	 ac_unrecognized_sep=', ';;
997    esac
998    eval enable_$ac_useropt=no ;;
999
1000  -docdir | --docdir | --docdi | --doc | --do)
1001    ac_prev=docdir ;;
1002  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003    docdir=$ac_optarg ;;
1004
1005  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006    ac_prev=dvidir ;;
1007  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008    dvidir=$ac_optarg ;;
1009
1010  -enable-* | --enable-*)
1011    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012    # Reject names that are not valid shell variable names.
1013    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014      as_fn_error $? "invalid feature name: $ac_useropt"
1015    ac_useropt_orig=$ac_useropt
1016    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017    case $ac_user_opts in
1018      *"
1019"enable_$ac_useropt"
1020"*) ;;
1021      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022	 ac_unrecognized_sep=', ';;
1023    esac
1024    eval enable_$ac_useropt=\$ac_optarg ;;
1025
1026  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028  | --exec | --exe | --ex)
1029    ac_prev=exec_prefix ;;
1030  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032  | --exec=* | --exe=* | --ex=*)
1033    exec_prefix=$ac_optarg ;;
1034
1035  -gas | --gas | --ga | --g)
1036    # Obsolete; use --with-gas.
1037    with_gas=yes ;;
1038
1039  -help | --help | --hel | --he | -h)
1040    ac_init_help=long ;;
1041  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042    ac_init_help=recursive ;;
1043  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044    ac_init_help=short ;;
1045
1046  -host | --host | --hos | --ho)
1047    ac_prev=host_alias ;;
1048  -host=* | --host=* | --hos=* | --ho=*)
1049    host_alias=$ac_optarg ;;
1050
1051  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052    ac_prev=htmldir ;;
1053  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054  | --ht=*)
1055    htmldir=$ac_optarg ;;
1056
1057  -includedir | --includedir | --includedi | --included | --include \
1058  | --includ | --inclu | --incl | --inc)
1059    ac_prev=includedir ;;
1060  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061  | --includ=* | --inclu=* | --incl=* | --inc=*)
1062    includedir=$ac_optarg ;;
1063
1064  -infodir | --infodir | --infodi | --infod | --info | --inf)
1065    ac_prev=infodir ;;
1066  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067    infodir=$ac_optarg ;;
1068
1069  -libdir | --libdir | --libdi | --libd)
1070    ac_prev=libdir ;;
1071  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072    libdir=$ac_optarg ;;
1073
1074  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075  | --libexe | --libex | --libe)
1076    ac_prev=libexecdir ;;
1077  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078  | --libexe=* | --libex=* | --libe=*)
1079    libexecdir=$ac_optarg ;;
1080
1081  -localedir | --localedir | --localedi | --localed | --locale)
1082    ac_prev=localedir ;;
1083  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084    localedir=$ac_optarg ;;
1085
1086  -localstatedir | --localstatedir | --localstatedi | --localstated \
1087  | --localstate | --localstat | --localsta | --localst | --locals)
1088    ac_prev=localstatedir ;;
1089  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091    localstatedir=$ac_optarg ;;
1092
1093  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094    ac_prev=mandir ;;
1095  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096    mandir=$ac_optarg ;;
1097
1098  -nfp | --nfp | --nf)
1099    # Obsolete; use --without-fp.
1100    with_fp=no ;;
1101
1102  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103  | --no-cr | --no-c | -n)
1104    no_create=yes ;;
1105
1106  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108    no_recursion=yes ;;
1109
1110  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112  | --oldin | --oldi | --old | --ol | --o)
1113    ac_prev=oldincludedir ;;
1114  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117    oldincludedir=$ac_optarg ;;
1118
1119  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120    ac_prev=prefix ;;
1121  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122    prefix=$ac_optarg ;;
1123
1124  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125  | --program-pre | --program-pr | --program-p)
1126    ac_prev=program_prefix ;;
1127  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129    program_prefix=$ac_optarg ;;
1130
1131  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132  | --program-suf | --program-su | --program-s)
1133    ac_prev=program_suffix ;;
1134  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136    program_suffix=$ac_optarg ;;
1137
1138  -program-transform-name | --program-transform-name \
1139  | --program-transform-nam | --program-transform-na \
1140  | --program-transform-n | --program-transform- \
1141  | --program-transform | --program-transfor \
1142  | --program-transfo | --program-transf \
1143  | --program-trans | --program-tran \
1144  | --progr-tra | --program-tr | --program-t)
1145    ac_prev=program_transform_name ;;
1146  -program-transform-name=* | --program-transform-name=* \
1147  | --program-transform-nam=* | --program-transform-na=* \
1148  | --program-transform-n=* | --program-transform-=* \
1149  | --program-transform=* | --program-transfor=* \
1150  | --program-transfo=* | --program-transf=* \
1151  | --program-trans=* | --program-tran=* \
1152  | --progr-tra=* | --program-tr=* | --program-t=*)
1153    program_transform_name=$ac_optarg ;;
1154
1155  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156    ac_prev=pdfdir ;;
1157  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158    pdfdir=$ac_optarg ;;
1159
1160  -psdir | --psdir | --psdi | --psd | --ps)
1161    ac_prev=psdir ;;
1162  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163    psdir=$ac_optarg ;;
1164
1165  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166  | -silent | --silent | --silen | --sile | --sil)
1167    silent=yes ;;
1168
1169  -runstatedir | --runstatedir | --runstatedi | --runstated \
1170  | --runstate | --runstat | --runsta | --runst | --runs \
1171  | --run | --ru | --r)
1172    ac_prev=runstatedir ;;
1173  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1174  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1175  | --run=* | --ru=* | --r=*)
1176    runstatedir=$ac_optarg ;;
1177
1178  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179    ac_prev=sbindir ;;
1180  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181  | --sbi=* | --sb=*)
1182    sbindir=$ac_optarg ;;
1183
1184  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186  | --sharedst | --shareds | --shared | --share | --shar \
1187  | --sha | --sh)
1188    ac_prev=sharedstatedir ;;
1189  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192  | --sha=* | --sh=*)
1193    sharedstatedir=$ac_optarg ;;
1194
1195  -site | --site | --sit)
1196    ac_prev=site ;;
1197  -site=* | --site=* | --sit=*)
1198    site=$ac_optarg ;;
1199
1200  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201    ac_prev=srcdir ;;
1202  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203    srcdir=$ac_optarg ;;
1204
1205  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206  | --syscon | --sysco | --sysc | --sys | --sy)
1207    ac_prev=sysconfdir ;;
1208  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210    sysconfdir=$ac_optarg ;;
1211
1212  -target | --target | --targe | --targ | --tar | --ta | --t)
1213    ac_prev=target_alias ;;
1214  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215    target_alias=$ac_optarg ;;
1216
1217  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218    verbose=yes ;;
1219
1220  -version | --version | --versio | --versi | --vers | -V)
1221    ac_init_version=: ;;
1222
1223  -with-* | --with-*)
1224    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225    # Reject names that are not valid shell variable names.
1226    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227      as_fn_error $? "invalid package name: $ac_useropt"
1228    ac_useropt_orig=$ac_useropt
1229    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230    case $ac_user_opts in
1231      *"
1232"with_$ac_useropt"
1233"*) ;;
1234      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235	 ac_unrecognized_sep=', ';;
1236    esac
1237    eval with_$ac_useropt=\$ac_optarg ;;
1238
1239  -without-* | --without-*)
1240    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241    # Reject names that are not valid shell variable names.
1242    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243      as_fn_error $? "invalid package name: $ac_useropt"
1244    ac_useropt_orig=$ac_useropt
1245    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246    case $ac_user_opts in
1247      *"
1248"with_$ac_useropt"
1249"*) ;;
1250      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1251	 ac_unrecognized_sep=', ';;
1252    esac
1253    eval with_$ac_useropt=no ;;
1254
1255  --x)
1256    # Obsolete; use --with-x.
1257    with_x=yes ;;
1258
1259  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260  | --x-incl | --x-inc | --x-in | --x-i)
1261    ac_prev=x_includes ;;
1262  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264    x_includes=$ac_optarg ;;
1265
1266  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268    ac_prev=x_libraries ;;
1269  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271    x_libraries=$ac_optarg ;;
1272
1273  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1274Try \`$0 --help' for more information"
1275    ;;
1276
1277  *=*)
1278    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279    # Reject names that are not valid shell variable names.
1280    case $ac_envvar in #(
1281      '' | [0-9]* | *[!_$as_cr_alnum]* )
1282      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1283    esac
1284    eval $ac_envvar=\$ac_optarg
1285    export $ac_envvar ;;
1286
1287  *)
1288    # FIXME: should be removed in autoconf 3.0.
1289    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1293    ;;
1294
1295  esac
1296done
1297
1298if test -n "$ac_prev"; then
1299  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300  as_fn_error $? "missing argument to $ac_option"
1301fi
1302
1303if test -n "$ac_unrecognized_opts"; then
1304  case $enable_option_checking in
1305    no) ;;
1306    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1307    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1308  esac
1309fi
1310
1311# Check all directory arguments for consistency.
1312for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313		datadir sysconfdir sharedstatedir localstatedir includedir \
1314		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315		libdir localedir mandir runstatedir
1316do
1317  eval ac_val=\$$ac_var
1318  # Remove trailing slashes.
1319  case $ac_val in
1320    */ )
1321      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1322      eval $ac_var=\$ac_val;;
1323  esac
1324  # Be sure to have absolute directory names.
1325  case $ac_val in
1326    [\\/$]* | ?:[\\/]* )  continue;;
1327    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1328  esac
1329  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1330done
1331
1332# There might be people who depend on the old broken behavior: `$host'
1333# used to hold the argument of --host etc.
1334# FIXME: To remove some day.
1335build=$build_alias
1336host=$host_alias
1337target=$target_alias
1338
1339# FIXME: To remove some day.
1340if test "x$host_alias" != x; then
1341  if test "x$build_alias" = x; then
1342    cross_compiling=maybe
1343  elif test "x$build_alias" != "x$host_alias"; then
1344    cross_compiling=yes
1345  fi
1346fi
1347
1348ac_tool_prefix=
1349test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350
1351test "$silent" = yes && exec 6>/dev/null
1352
1353
1354ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355ac_ls_di=`ls -di .` &&
1356ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357  as_fn_error $? "working directory cannot be determined"
1358test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359  as_fn_error $? "pwd does not report name of working directory"
1360
1361
1362# Find the source files, if location was not specified.
1363if test -z "$srcdir"; then
1364  ac_srcdir_defaulted=yes
1365  # Try the directory containing this script, then the parent directory.
1366  ac_confdir=`$as_dirname -- "$as_myself" ||
1367$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368	 X"$as_myself" : 'X\(//\)[^/]' \| \
1369	 X"$as_myself" : 'X\(//\)$' \| \
1370	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371$as_echo X"$as_myself" |
1372    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373	    s//\1/
1374	    q
1375	  }
1376	  /^X\(\/\/\)[^/].*/{
1377	    s//\1/
1378	    q
1379	  }
1380	  /^X\(\/\/\)$/{
1381	    s//\1/
1382	    q
1383	  }
1384	  /^X\(\/\).*/{
1385	    s//\1/
1386	    q
1387	  }
1388	  s/.*/./; q'`
1389  srcdir=$ac_confdir
1390  if test ! -r "$srcdir/$ac_unique_file"; then
1391    srcdir=..
1392  fi
1393else
1394  ac_srcdir_defaulted=no
1395fi
1396if test ! -r "$srcdir/$ac_unique_file"; then
1397  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1399fi
1400ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401ac_abs_confdir=`(
1402	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1403	pwd)`
1404# When building in place, set srcdir=.
1405if test "$ac_abs_confdir" = "$ac_pwd"; then
1406  srcdir=.
1407fi
1408# Remove unnecessary trailing slashes from srcdir.
1409# Double slashes in file names in object file debugging info
1410# mess up M-x gdb in Emacs.
1411case $srcdir in
1412*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413esac
1414for ac_var in $ac_precious_vars; do
1415  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416  eval ac_env_${ac_var}_value=\$${ac_var}
1417  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419done
1420
1421#
1422# Report the --help message.
1423#
1424if test "$ac_init_help" = "long"; then
1425  # Omit some internal or obsolete options to make the list less imposing.
1426  # This message is too long to be a string in the A/UX 3.1 sh.
1427  cat <<_ACEOF
1428\`configure' configures gnuplot 5.4.1 to adapt to many kinds of systems.
1429
1430Usage: $0 [OPTION]... [VAR=VALUE]...
1431
1432To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433VAR=VALUE.  See below for descriptions of some of the useful variables.
1434
1435Defaults for the options are specified in brackets.
1436
1437Configuration:
1438  -h, --help              display this help and exit
1439      --help=short        display options specific to this package
1440      --help=recursive    display the short help of all the included packages
1441  -V, --version           display version information and exit
1442  -q, --quiet, --silent   do not print \`checking ...' messages
1443      --cache-file=FILE   cache test results in FILE [disabled]
1444  -C, --config-cache      alias for \`--cache-file=config.cache'
1445  -n, --no-create         do not create output files
1446      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1447
1448Installation directories:
1449  --prefix=PREFIX         install architecture-independent files in PREFIX
1450                          [$ac_default_prefix]
1451  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1452                          [PREFIX]
1453
1454By default, \`make install' will install all the files in
1455\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1456an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457for instance \`--prefix=\$HOME'.
1458
1459For better control, use the options below.
1460
1461Fine tuning of the installation directories:
1462  --bindir=DIR            user executables [EPREFIX/bin]
1463  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1464  --libexecdir=DIR        program executables [EPREFIX/libexec]
1465  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1466  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1467  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1468  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1469  --libdir=DIR            object code libraries [EPREFIX/lib]
1470  --includedir=DIR        C header files [PREFIX/include]
1471  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1472  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1473  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1474  --infodir=DIR           info documentation [DATAROOTDIR/info]
1475  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1476  --mandir=DIR            man documentation [DATAROOTDIR/man]
1477  --docdir=DIR            documentation root [DATAROOTDIR/doc/gnuplot]
1478  --htmldir=DIR           html documentation [DOCDIR]
1479  --dvidir=DIR            dvi documentation [DOCDIR]
1480  --pdfdir=DIR            pdf documentation [DOCDIR]
1481  --psdir=DIR             ps documentation [DOCDIR]
1482_ACEOF
1483
1484  cat <<\_ACEOF
1485
1486Program names:
1487  --program-prefix=PREFIX            prepend PREFIX to installed program names
1488  --program-suffix=SUFFIX            append SUFFIX to installed program names
1489  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1490
1491X features:
1492  --x-includes=DIR    X include files are in DIR
1493  --x-libraries=DIR   X library files are in DIR
1494_ACEOF
1495fi
1496
1497if test -n "$ac_init_help"; then
1498  case $ac_init_help in
1499     short | recursive ) echo "Configuration of gnuplot 5.4.1:";;
1500   esac
1501  cat <<\_ACEOF
1502
1503Optional Features:
1504  --disable-option-checking  ignore unrecognized --enable/--with options
1505  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1506  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1507  --enable-silent-rules   less verbose build output (undo: "make V=1")
1508  --disable-silent-rules  verbose build output (undo: "make V=0")
1509  --enable-maintainer-mode
1510                          enable make rules and dependencies not useful (and
1511                          sometimes confusing) to the casual installer
1512  --enable-dependency-tracking
1513                          do not reject slow dependency extractors
1514  --disable-dependency-tracking
1515                          speeds up one-time build
1516  --disable-largefile     omit support for large files
1517  --disable-plugins       disable support for importing external functions
1518  --disable-history-file  do not use history file
1519  --disable-x11-mbfonts   disable multi-byte font support for x11
1520  --disable-x11-external  disable drawing to windows belonging to external apps
1521  --disable-raise-console spacebar in plot window does not raise console
1522  --disable-wxwidgets     wxWidgets terminal (default enabled)
1523  --disable-stats         Omit calculation of statistical summary of data
1524
1525Optional Packages:
1526  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1527  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1528  --without-libcerf       build without special functions from libcerf (default enabled)
1529  --without-latex         disable installation of latex support files
1530  --with-texdir=DIR       where to install latex style files (default: ask kpsexpand)
1531  --with-kpsexpand        search for kpsexpand at run-time (default disabled)
1532  --with-x                use the X Window System
1533  --with-x-dcop           gnuplot_x11 can use KDE3/DCOP for space-raises-console
1534  --with-aquaterm         include support for AquaTerm on OSX
1535  --with-gihdir=DIR       location of .gih help text file
1536                          (default PREFIX/share/PACKAGE/VERSION)
1537  --with-ggi=DIR          enable the ggi driver
1538  --with-readline=builtin  use the built-in readline
1539  --with-readline=gnu      use the GNU readline library (default if present)
1540  --with-readline=bsd      use the NetBSD editline library (NB: does not handle UTF-8!)
1541  --with-readline=DIR      specify the location of readline/editline
1542  --without-readline       same as --with-readline=builtin
1543  --with-gd=DIR           location of gd library (png jpeg gif terminals)
1544  --without-lua           disable lua/TikZ terminal (default enabled)
1545  --with-caca=DIR         where to find the caca library
1546  --with-cwdrc            check current directory for .gnuplot file,
1547                          normally disabled for security reasons
1548  --with-row-help         format help and subtopic tables by row (default)
1549  --without-row-help      format help and subtopic tables by column
1550  --with-wx=DIR           Where to find wx-config, the wxWidgets configuration program
1551    (default search in $PATH)
1552  --with-wx-multithreaded  use multithreaded wxgtk (known problems, not recommended)
1553  --with-bitmap-terminals  dot-matrix printers and pbm
1554  --without-tektronix      tektronix terminal emulators (default enabled)
1555  --with-gpic              gpic terminal
1556  --with-tgif              tgif terminal
1557  --with-mif               mif terminal (FrameMaker 3)
1558  --with-regis             ReGIS terminal
1559  --without-cairo          cairo-based terminals (default enabled)
1560  --with-qt =qt4 =qt5 =no  Qt terminal (default autodetect)
1561
1562Some influential environment variables:
1563  CC          C compiler command
1564  CFLAGS      C compiler flags
1565  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1566              nonstandard directory <lib dir>
1567  LIBS        libraries to pass to the linker, e.g. -l<library>
1568  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1569              you have headers in a nonstandard directory <include dir>
1570  CPP         C preprocessor
1571  OBJC        Objective C compiler command
1572  OBJCFLAGS   Objective C compiler flags
1573  PKG_CONFIG  path to pkg-config utility
1574  LIBCERF_CFLAGS
1575              C compiler flags for LIBCERF, overriding pkg-config
1576  LIBCERF_LIBS
1577              linker flags for LIBCERF, overriding pkg-config
1578  XMKMF       Path to xmkmf, Makefile generator for X Window System
1579  libgd_CFLAGS
1580              C compiler flags for libgd, overriding pkg-config
1581  libgd_LIBS  linker flags for libgd, overriding pkg-config
1582  LUA_CFLAGS  C compiler flags for LUA, overriding pkg-config
1583  LUA_LIBS    linker flags for LUA, overriding pkg-config
1584  caca_CFLAGS C compiler flags for caca, overriding pkg-config
1585  caca_LIBS   linker flags for caca, overriding pkg-config
1586  CXX         C++ compiler command
1587  CXXFLAGS    C++ compiler flags
1588  CXXCPP      C++ preprocessor
1589  CAIROPANGO_CFLAGS
1590              C compiler flags for CAIROPANGO, overriding pkg-config
1591  CAIROPANGO_LIBS
1592              linker flags for CAIROPANGO, overriding pkg-config
1593  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1594  GTK_LIBS    linker flags for GTK, overriding pkg-config
1595  CAIROPDF_CFLAGS
1596              C compiler flags for CAIROPDF, overriding pkg-config
1597  CAIROPDF_LIBS
1598              linker flags for CAIROPDF, overriding pkg-config
1599  CAIROEPS_CFLAGS
1600              C compiler flags for CAIROEPS, overriding pkg-config
1601  CAIROEPS_LIBS
1602              linker flags for CAIROEPS, overriding pkg-config
1603  QT_CFLAGS   C compiler flags for QT, overriding pkg-config
1604  QT_LIBS     linker flags for QT, overriding pkg-config
1605  DIST_CONTACT
1606              Contact address for modified and binary distributed gnuplot
1607              versions
1608
1609Use these variables to override the choices made by `configure' or to help
1610it to find libraries and programs with nonstandard names/locations.
1611
1612Report bugs to the package provider.
1613_ACEOF
1614ac_status=$?
1615fi
1616
1617if test "$ac_init_help" = "recursive"; then
1618  # If there are subdirs, report their specific --help.
1619  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1620    test -d "$ac_dir" ||
1621      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1622      continue
1623    ac_builddir=.
1624
1625case "$ac_dir" in
1626.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627*)
1628  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1629  # A ".." for each directory in $ac_dir_suffix.
1630  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1631  case $ac_top_builddir_sub in
1632  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1634  esac ;;
1635esac
1636ac_abs_top_builddir=$ac_pwd
1637ac_abs_builddir=$ac_pwd$ac_dir_suffix
1638# for backward compatibility:
1639ac_top_builddir=$ac_top_build_prefix
1640
1641case $srcdir in
1642  .)  # We are building in place.
1643    ac_srcdir=.
1644    ac_top_srcdir=$ac_top_builddir_sub
1645    ac_abs_top_srcdir=$ac_pwd ;;
1646  [\\/]* | ?:[\\/]* )  # Absolute name.
1647    ac_srcdir=$srcdir$ac_dir_suffix;
1648    ac_top_srcdir=$srcdir
1649    ac_abs_top_srcdir=$srcdir ;;
1650  *) # Relative name.
1651    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1652    ac_top_srcdir=$ac_top_build_prefix$srcdir
1653    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1654esac
1655ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1656
1657    cd "$ac_dir" || { ac_status=$?; continue; }
1658    # Check for guested configure.
1659    if test -f "$ac_srcdir/configure.gnu"; then
1660      echo &&
1661      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1662    elif test -f "$ac_srcdir/configure"; then
1663      echo &&
1664      $SHELL "$ac_srcdir/configure" --help=recursive
1665    else
1666      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1667    fi || ac_status=$?
1668    cd "$ac_pwd" || { ac_status=$?; break; }
1669  done
1670fi
1671
1672test -n "$ac_init_help" && exit $ac_status
1673if $ac_init_version; then
1674  cat <<\_ACEOF
1675gnuplot configure 5.4.1
1676generated by GNU Autoconf 2.69
1677
1678Copyright (C) 2012 Free Software Foundation, Inc.
1679This configure script is free software; the Free Software Foundation
1680gives unlimited permission to copy, distribute and modify it.
1681_ACEOF
1682  exit
1683fi
1684
1685## ------------------------ ##
1686## Autoconf initialization. ##
1687## ------------------------ ##
1688
1689# ac_fn_c_try_compile LINENO
1690# --------------------------
1691# Try to compile conftest.$ac_ext, and return whether this succeeded.
1692ac_fn_c_try_compile ()
1693{
1694  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695  rm -f conftest.$ac_objext
1696  if { { ac_try="$ac_compile"
1697case "(($ac_try" in
1698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699  *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703  (eval "$ac_compile") 2>conftest.err
1704  ac_status=$?
1705  if test -s conftest.err; then
1706    grep -v '^ *+' conftest.err >conftest.er1
1707    cat conftest.er1 >&5
1708    mv -f conftest.er1 conftest.err
1709  fi
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; } && {
1712	 test -z "$ac_c_werror_flag" ||
1713	 test ! -s conftest.err
1714       } && test -s conftest.$ac_objext; then :
1715  ac_retval=0
1716else
1717  $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720	ac_retval=1
1721fi
1722  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723  as_fn_set_status $ac_retval
1724
1725} # ac_fn_c_try_compile
1726
1727# ac_fn_c_try_cpp LINENO
1728# ----------------------
1729# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730ac_fn_c_try_cpp ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  if { { ac_try="$ac_cpp conftest.$ac_ext"
1734case "(($ac_try" in
1735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736  *) ac_try_echo=$ac_try;;
1737esac
1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739$as_echo "$ac_try_echo"; } >&5
1740  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1741  ac_status=$?
1742  if test -s conftest.err; then
1743    grep -v '^ *+' conftest.err >conftest.er1
1744    cat conftest.er1 >&5
1745    mv -f conftest.er1 conftest.err
1746  fi
1747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748  test $ac_status = 0; } > conftest.i && {
1749	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750	 test ! -s conftest.err
1751       }; then :
1752  ac_retval=0
1753else
1754  $as_echo "$as_me: failed program was:" >&5
1755sed 's/^/| /' conftest.$ac_ext >&5
1756
1757    ac_retval=1
1758fi
1759  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760  as_fn_set_status $ac_retval
1761
1762} # ac_fn_c_try_cpp
1763
1764# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1765# -------------------------------------------------------
1766# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1767# the include files in INCLUDES and setting the cache variable VAR
1768# accordingly.
1769ac_fn_c_check_header_mongrel ()
1770{
1771  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772  if eval \${$3+:} false; then :
1773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774$as_echo_n "checking for $2... " >&6; }
1775if eval \${$3+:} false; then :
1776  $as_echo_n "(cached) " >&6
1777fi
1778eval ac_res=\$$3
1779	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780$as_echo "$ac_res" >&6; }
1781else
1782  # Is the header compilable?
1783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1784$as_echo_n "checking $2 usability... " >&6; }
1785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h.  */
1787$4
1788#include <$2>
1789_ACEOF
1790if ac_fn_c_try_compile "$LINENO"; then :
1791  ac_header_compiler=yes
1792else
1793  ac_header_compiler=no
1794fi
1795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1797$as_echo "$ac_header_compiler" >&6; }
1798
1799# Is the header present?
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1801$as_echo_n "checking $2 presence... " >&6; }
1802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803/* end confdefs.h.  */
1804#include <$2>
1805_ACEOF
1806if ac_fn_c_try_cpp "$LINENO"; then :
1807  ac_header_preproc=yes
1808else
1809  ac_header_preproc=no
1810fi
1811rm -f conftest.err conftest.i conftest.$ac_ext
1812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1813$as_echo "$ac_header_preproc" >&6; }
1814
1815# So?  What about this header?
1816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1817  yes:no: )
1818    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1819$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1820    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822    ;;
1823  no:yes:* )
1824    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1825$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1826    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1827$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1828    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1829$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1830    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1831$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1832    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1834    ;;
1835esac
1836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837$as_echo_n "checking for $2... " >&6; }
1838if eval \${$3+:} false; then :
1839  $as_echo_n "(cached) " >&6
1840else
1841  eval "$3=\$ac_header_compiler"
1842fi
1843eval ac_res=\$$3
1844	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845$as_echo "$ac_res" >&6; }
1846fi
1847  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848
1849} # ac_fn_c_check_header_mongrel
1850
1851# ac_fn_c_try_run LINENO
1852# ----------------------
1853# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1854# that executables *can* be run.
1855ac_fn_c_try_run ()
1856{
1857  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858  if { { ac_try="$ac_link"
1859case "(($ac_try" in
1860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861  *) ac_try_echo=$ac_try;;
1862esac
1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864$as_echo "$ac_try_echo"; } >&5
1865  (eval "$ac_link") 2>&5
1866  ac_status=$?
1867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1869  { { case "(($ac_try" in
1870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871  *) ac_try_echo=$ac_try;;
1872esac
1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874$as_echo "$ac_try_echo"; } >&5
1875  (eval "$ac_try") 2>&5
1876  ac_status=$?
1877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878  test $ac_status = 0; }; }; then :
1879  ac_retval=0
1880else
1881  $as_echo "$as_me: program exited with status $ac_status" >&5
1882       $as_echo "$as_me: failed program was:" >&5
1883sed 's/^/| /' conftest.$ac_ext >&5
1884
1885       ac_retval=$ac_status
1886fi
1887  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889  as_fn_set_status $ac_retval
1890
1891} # ac_fn_c_try_run
1892
1893# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1894# -------------------------------------------------------
1895# Tests whether HEADER exists and can be compiled using the include files in
1896# INCLUDES, setting the cache variable VAR accordingly.
1897ac_fn_c_check_header_compile ()
1898{
1899  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901$as_echo_n "checking for $2... " >&6; }
1902if eval \${$3+:} false; then :
1903  $as_echo_n "(cached) " >&6
1904else
1905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906/* end confdefs.h.  */
1907$4
1908#include <$2>
1909_ACEOF
1910if ac_fn_c_try_compile "$LINENO"; then :
1911  eval "$3=yes"
1912else
1913  eval "$3=no"
1914fi
1915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916fi
1917eval ac_res=\$$3
1918	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919$as_echo "$ac_res" >&6; }
1920  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921
1922} # ac_fn_c_check_header_compile
1923
1924# ac_fn_objc_try_compile LINENO
1925# -----------------------------
1926# Try to compile conftest.$ac_ext, and return whether this succeeded.
1927ac_fn_objc_try_compile ()
1928{
1929  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930  rm -f conftest.$ac_objext
1931  if { { ac_try="$ac_compile"
1932case "(($ac_try" in
1933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934  *) ac_try_echo=$ac_try;;
1935esac
1936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937$as_echo "$ac_try_echo"; } >&5
1938  (eval "$ac_compile") 2>conftest.err
1939  ac_status=$?
1940  if test -s conftest.err; then
1941    grep -v '^ *+' conftest.err >conftest.er1
1942    cat conftest.er1 >&5
1943    mv -f conftest.er1 conftest.err
1944  fi
1945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946  test $ac_status = 0; } && {
1947	 test -z "$ac_objc_werror_flag" ||
1948	 test ! -s conftest.err
1949       } && test -s conftest.$ac_objext; then :
1950  ac_retval=0
1951else
1952  $as_echo "$as_me: failed program was:" >&5
1953sed 's/^/| /' conftest.$ac_ext >&5
1954
1955	ac_retval=1
1956fi
1957  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958  as_fn_set_status $ac_retval
1959
1960} # ac_fn_objc_try_compile
1961
1962# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1963# -------------------------------------------
1964# Tests whether TYPE exists after having included INCLUDES, setting cache
1965# variable VAR accordingly.
1966ac_fn_c_check_type ()
1967{
1968  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970$as_echo_n "checking for $2... " >&6; }
1971if eval \${$3+:} false; then :
1972  $as_echo_n "(cached) " >&6
1973else
1974  eval "$3=no"
1975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976/* end confdefs.h.  */
1977$4
1978int
1979main ()
1980{
1981if (sizeof ($2))
1982	 return 0;
1983  ;
1984  return 0;
1985}
1986_ACEOF
1987if ac_fn_c_try_compile "$LINENO"; then :
1988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h.  */
1990$4
1991int
1992main ()
1993{
1994if (sizeof (($2)))
1995	    return 0;
1996  ;
1997  return 0;
1998}
1999_ACEOF
2000if ac_fn_c_try_compile "$LINENO"; then :
2001
2002else
2003  eval "$3=yes"
2004fi
2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006fi
2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008fi
2009eval ac_res=\$$3
2010	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011$as_echo "$ac_res" >&6; }
2012  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013
2014} # ac_fn_c_check_type
2015
2016# ac_fn_c_try_link LINENO
2017# -----------------------
2018# Try to link conftest.$ac_ext, and return whether this succeeded.
2019ac_fn_c_try_link ()
2020{
2021  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022  rm -f conftest.$ac_objext conftest$ac_exeext
2023  if { { ac_try="$ac_link"
2024case "(($ac_try" in
2025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026  *) ac_try_echo=$ac_try;;
2027esac
2028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029$as_echo "$ac_try_echo"; } >&5
2030  (eval "$ac_link") 2>conftest.err
2031  ac_status=$?
2032  if test -s conftest.err; then
2033    grep -v '^ *+' conftest.err >conftest.er1
2034    cat conftest.er1 >&5
2035    mv -f conftest.er1 conftest.err
2036  fi
2037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038  test $ac_status = 0; } && {
2039	 test -z "$ac_c_werror_flag" ||
2040	 test ! -s conftest.err
2041       } && test -s conftest$ac_exeext && {
2042	 test "$cross_compiling" = yes ||
2043	 test -x conftest$ac_exeext
2044       }; then :
2045  ac_retval=0
2046else
2047  $as_echo "$as_me: failed program was:" >&5
2048sed 's/^/| /' conftest.$ac_ext >&5
2049
2050	ac_retval=1
2051fi
2052  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2053  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2054  # interfere with the next link command; also delete a directory that is
2055  # left behind by Apple's compiler.  We do this before executing the actions.
2056  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2057  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058  as_fn_set_status $ac_retval
2059
2060} # ac_fn_c_try_link
2061
2062# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2063# ----------------------------------------------------
2064# Tries to find if the field MEMBER exists in type AGGR, after including
2065# INCLUDES, setting cache variable VAR accordingly.
2066ac_fn_c_check_member ()
2067{
2068  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2070$as_echo_n "checking for $2.$3... " >&6; }
2071if eval \${$4+:} false; then :
2072  $as_echo_n "(cached) " >&6
2073else
2074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075/* end confdefs.h.  */
2076$5
2077int
2078main ()
2079{
2080static $2 ac_aggr;
2081if (ac_aggr.$3)
2082return 0;
2083  ;
2084  return 0;
2085}
2086_ACEOF
2087if ac_fn_c_try_compile "$LINENO"; then :
2088  eval "$4=yes"
2089else
2090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h.  */
2092$5
2093int
2094main ()
2095{
2096static $2 ac_aggr;
2097if (sizeof ac_aggr.$3)
2098return 0;
2099  ;
2100  return 0;
2101}
2102_ACEOF
2103if ac_fn_c_try_compile "$LINENO"; then :
2104  eval "$4=yes"
2105else
2106  eval "$4=no"
2107fi
2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109fi
2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111fi
2112eval ac_res=\$$4
2113	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114$as_echo "$ac_res" >&6; }
2115  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116
2117} # ac_fn_c_check_member
2118
2119# ac_fn_c_check_func LINENO FUNC VAR
2120# ----------------------------------
2121# Tests whether FUNC exists, setting the cache variable VAR accordingly
2122ac_fn_c_check_func ()
2123{
2124  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2126$as_echo_n "checking for $2... " >&6; }
2127if eval \${$3+:} false; then :
2128  $as_echo_n "(cached) " >&6
2129else
2130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131/* end confdefs.h.  */
2132/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2133   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2134#define $2 innocuous_$2
2135
2136/* System header to define __stub macros and hopefully few prototypes,
2137    which can conflict with char $2 (); below.
2138    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2139    <limits.h> exists even on freestanding compilers.  */
2140
2141#ifdef __STDC__
2142# include <limits.h>
2143#else
2144# include <assert.h>
2145#endif
2146
2147#undef $2
2148
2149/* Override any GCC internal prototype to avoid an error.
2150   Use char because int might match the return type of a GCC
2151   builtin and then its argument prototype would still apply.  */
2152#ifdef __cplusplus
2153extern "C"
2154#endif
2155char $2 ();
2156/* The GNU C library defines this for functions which it implements
2157    to always fail with ENOSYS.  Some functions are actually named
2158    something starting with __ and the normal name is an alias.  */
2159#if defined __stub_$2 || defined __stub___$2
2160choke me
2161#endif
2162
2163int
2164main ()
2165{
2166return $2 ();
2167  ;
2168  return 0;
2169}
2170_ACEOF
2171if ac_fn_c_try_link "$LINENO"; then :
2172  eval "$3=yes"
2173else
2174  eval "$3=no"
2175fi
2176rm -f core conftest.err conftest.$ac_objext \
2177    conftest$ac_exeext conftest.$ac_ext
2178fi
2179eval ac_res=\$$3
2180	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181$as_echo "$ac_res" >&6; }
2182  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183
2184} # ac_fn_c_check_func
2185
2186# ac_fn_objc_try_link LINENO
2187# --------------------------
2188# Try to link conftest.$ac_ext, and return whether this succeeded.
2189ac_fn_objc_try_link ()
2190{
2191  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192  rm -f conftest.$ac_objext conftest$ac_exeext
2193  if { { ac_try="$ac_link"
2194case "(($ac_try" in
2195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196  *) ac_try_echo=$ac_try;;
2197esac
2198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199$as_echo "$ac_try_echo"; } >&5
2200  (eval "$ac_link") 2>conftest.err
2201  ac_status=$?
2202  if test -s conftest.err; then
2203    grep -v '^ *+' conftest.err >conftest.er1
2204    cat conftest.er1 >&5
2205    mv -f conftest.er1 conftest.err
2206  fi
2207  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208  test $ac_status = 0; } && {
2209	 test -z "$ac_objc_werror_flag" ||
2210	 test ! -s conftest.err
2211       } && test -s conftest$ac_exeext && {
2212	 test "$cross_compiling" = yes ||
2213	 test -x conftest$ac_exeext
2214       }; then :
2215  ac_retval=0
2216else
2217  $as_echo "$as_me: failed program was:" >&5
2218sed 's/^/| /' conftest.$ac_ext >&5
2219
2220	ac_retval=1
2221fi
2222  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2223  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2224  # interfere with the next link command; also delete a directory that is
2225  # left behind by Apple's compiler.  We do this before executing the actions.
2226  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2227  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228  as_fn_set_status $ac_retval
2229
2230} # ac_fn_objc_try_link
2231
2232# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2233# ---------------------------------------------
2234# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2235# accordingly.
2236ac_fn_c_check_decl ()
2237{
2238  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239  as_decl_name=`echo $2|sed 's/ *(.*//'`
2240  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2242$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2243if eval \${$3+:} false; then :
2244  $as_echo_n "(cached) " >&6
2245else
2246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247/* end confdefs.h.  */
2248$4
2249int
2250main ()
2251{
2252#ifndef $as_decl_name
2253#ifdef __cplusplus
2254  (void) $as_decl_use;
2255#else
2256  (void) $as_decl_name;
2257#endif
2258#endif
2259
2260  ;
2261  return 0;
2262}
2263_ACEOF
2264if ac_fn_c_try_compile "$LINENO"; then :
2265  eval "$3=yes"
2266else
2267  eval "$3=no"
2268fi
2269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270fi
2271eval ac_res=\$$3
2272	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273$as_echo "$ac_res" >&6; }
2274  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275
2276} # ac_fn_c_check_decl
2277
2278# ac_fn_cxx_try_compile LINENO
2279# ----------------------------
2280# Try to compile conftest.$ac_ext, and return whether this succeeded.
2281ac_fn_cxx_try_compile ()
2282{
2283  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284  rm -f conftest.$ac_objext
2285  if { { ac_try="$ac_compile"
2286case "(($ac_try" in
2287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288  *) ac_try_echo=$ac_try;;
2289esac
2290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2291$as_echo "$ac_try_echo"; } >&5
2292  (eval "$ac_compile") 2>conftest.err
2293  ac_status=$?
2294  if test -s conftest.err; then
2295    grep -v '^ *+' conftest.err >conftest.er1
2296    cat conftest.er1 >&5
2297    mv -f conftest.er1 conftest.err
2298  fi
2299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2300  test $ac_status = 0; } && {
2301	 test -z "$ac_cxx_werror_flag" ||
2302	 test ! -s conftest.err
2303       } && test -s conftest.$ac_objext; then :
2304  ac_retval=0
2305else
2306  $as_echo "$as_me: failed program was:" >&5
2307sed 's/^/| /' conftest.$ac_ext >&5
2308
2309	ac_retval=1
2310fi
2311  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312  as_fn_set_status $ac_retval
2313
2314} # ac_fn_cxx_try_compile
2315
2316# ac_fn_cxx_try_cpp LINENO
2317# ------------------------
2318# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2319ac_fn_cxx_try_cpp ()
2320{
2321  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322  if { { ac_try="$ac_cpp conftest.$ac_ext"
2323case "(($ac_try" in
2324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325  *) ac_try_echo=$ac_try;;
2326esac
2327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2328$as_echo "$ac_try_echo"; } >&5
2329  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2330  ac_status=$?
2331  if test -s conftest.err; then
2332    grep -v '^ *+' conftest.err >conftest.er1
2333    cat conftest.er1 >&5
2334    mv -f conftest.er1 conftest.err
2335  fi
2336  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2337  test $ac_status = 0; } > conftest.i && {
2338	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2339	 test ! -s conftest.err
2340       }; then :
2341  ac_retval=0
2342else
2343  $as_echo "$as_me: failed program was:" >&5
2344sed 's/^/| /' conftest.$ac_ext >&5
2345
2346    ac_retval=1
2347fi
2348  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2349  as_fn_set_status $ac_retval
2350
2351} # ac_fn_cxx_try_cpp
2352cat >config.log <<_ACEOF
2353This file contains any messages produced by compilers while
2354running configure, to aid debugging if configure makes a mistake.
2355
2356It was created by gnuplot $as_me 5.4.1, which was
2357generated by GNU Autoconf 2.69.  Invocation command line was
2358
2359  $ $0 $@
2360
2361_ACEOF
2362exec 5>>config.log
2363{
2364cat <<_ASUNAME
2365## --------- ##
2366## Platform. ##
2367## --------- ##
2368
2369hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2370uname -m = `(uname -m) 2>/dev/null || echo unknown`
2371uname -r = `(uname -r) 2>/dev/null || echo unknown`
2372uname -s = `(uname -s) 2>/dev/null || echo unknown`
2373uname -v = `(uname -v) 2>/dev/null || echo unknown`
2374
2375/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2376/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2377
2378/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2379/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2380/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2381/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2382/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2383/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2384/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2385
2386_ASUNAME
2387
2388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389for as_dir in $PATH
2390do
2391  IFS=$as_save_IFS
2392  test -z "$as_dir" && as_dir=.
2393    $as_echo "PATH: $as_dir"
2394  done
2395IFS=$as_save_IFS
2396
2397} >&5
2398
2399cat >&5 <<_ACEOF
2400
2401
2402## ----------- ##
2403## Core tests. ##
2404## ----------- ##
2405
2406_ACEOF
2407
2408
2409# Keep a trace of the command line.
2410# Strip out --no-create and --no-recursion so they do not pile up.
2411# Strip out --silent because we don't want to record it for future runs.
2412# Also quote any args containing shell meta-characters.
2413# Make two passes to allow for proper duplicate-argument suppression.
2414ac_configure_args=
2415ac_configure_args0=
2416ac_configure_args1=
2417ac_must_keep_next=false
2418for ac_pass in 1 2
2419do
2420  for ac_arg
2421  do
2422    case $ac_arg in
2423    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2424    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2425    | -silent | --silent | --silen | --sile | --sil)
2426      continue ;;
2427    *\'*)
2428      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2429    esac
2430    case $ac_pass in
2431    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2432    2)
2433      as_fn_append ac_configure_args1 " '$ac_arg'"
2434      if test $ac_must_keep_next = true; then
2435	ac_must_keep_next=false # Got value, back to normal.
2436      else
2437	case $ac_arg in
2438	  *=* | --config-cache | -C | -disable-* | --disable-* \
2439	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2440	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2441	  | -with-* | --with-* | -without-* | --without-* | --x)
2442	    case "$ac_configure_args0 " in
2443	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2444	    esac
2445	    ;;
2446	  -* ) ac_must_keep_next=true ;;
2447	esac
2448      fi
2449      as_fn_append ac_configure_args " '$ac_arg'"
2450      ;;
2451    esac
2452  done
2453done
2454{ ac_configure_args0=; unset ac_configure_args0;}
2455{ ac_configure_args1=; unset ac_configure_args1;}
2456
2457# When interrupted or exit'd, cleanup temporary files, and complete
2458# config.log.  We remove comments because anyway the quotes in there
2459# would cause problems or look ugly.
2460# WARNING: Use '\'' to represent an apostrophe within the trap.
2461# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2462trap 'exit_status=$?
2463  # Save into config.log some information that might help in debugging.
2464  {
2465    echo
2466
2467    $as_echo "## ---------------- ##
2468## Cache variables. ##
2469## ---------------- ##"
2470    echo
2471    # The following way of writing the cache mishandles newlines in values,
2472(
2473  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2474    eval ac_val=\$$ac_var
2475    case $ac_val in #(
2476    *${as_nl}*)
2477      case $ac_var in #(
2478      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2479$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2480      esac
2481      case $ac_var in #(
2482      _ | IFS | as_nl) ;; #(
2483      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2484      *) { eval $ac_var=; unset $ac_var;} ;;
2485      esac ;;
2486    esac
2487  done
2488  (set) 2>&1 |
2489    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2490    *${as_nl}ac_space=\ *)
2491      sed -n \
2492	"s/'\''/'\''\\\\'\'''\''/g;
2493	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2494      ;; #(
2495    *)
2496      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2497      ;;
2498    esac |
2499    sort
2500)
2501    echo
2502
2503    $as_echo "## ----------------- ##
2504## Output variables. ##
2505## ----------------- ##"
2506    echo
2507    for ac_var in $ac_subst_vars
2508    do
2509      eval ac_val=\$$ac_var
2510      case $ac_val in
2511      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2512      esac
2513      $as_echo "$ac_var='\''$ac_val'\''"
2514    done | sort
2515    echo
2516
2517    if test -n "$ac_subst_files"; then
2518      $as_echo "## ------------------- ##
2519## File substitutions. ##
2520## ------------------- ##"
2521      echo
2522      for ac_var in $ac_subst_files
2523      do
2524	eval ac_val=\$$ac_var
2525	case $ac_val in
2526	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2527	esac
2528	$as_echo "$ac_var='\''$ac_val'\''"
2529      done | sort
2530      echo
2531    fi
2532
2533    if test -s confdefs.h; then
2534      $as_echo "## ----------- ##
2535## confdefs.h. ##
2536## ----------- ##"
2537      echo
2538      cat confdefs.h
2539      echo
2540    fi
2541    test "$ac_signal" != 0 &&
2542      $as_echo "$as_me: caught signal $ac_signal"
2543    $as_echo "$as_me: exit $exit_status"
2544  } >&5
2545  rm -f core *.core core.conftest.* &&
2546    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2547    exit $exit_status
2548' 0
2549for ac_signal in 1 2 13 15; do
2550  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2551done
2552ac_signal=0
2553
2554# confdefs.h avoids OS command line length limits that DEFS can exceed.
2555rm -f -r conftest* confdefs.h
2556
2557$as_echo "/* confdefs.h */" > confdefs.h
2558
2559# Predefined preprocessor variables.
2560
2561cat >>confdefs.h <<_ACEOF
2562#define PACKAGE_NAME "$PACKAGE_NAME"
2563_ACEOF
2564
2565cat >>confdefs.h <<_ACEOF
2566#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2567_ACEOF
2568
2569cat >>confdefs.h <<_ACEOF
2570#define PACKAGE_VERSION "$PACKAGE_VERSION"
2571_ACEOF
2572
2573cat >>confdefs.h <<_ACEOF
2574#define PACKAGE_STRING "$PACKAGE_STRING"
2575_ACEOF
2576
2577cat >>confdefs.h <<_ACEOF
2578#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2579_ACEOF
2580
2581cat >>confdefs.h <<_ACEOF
2582#define PACKAGE_URL "$PACKAGE_URL"
2583_ACEOF
2584
2585
2586# Let the site file select an alternate cache file if it wants to.
2587# Prefer an explicitly selected file to automatically selected ones.
2588ac_site_file1=NONE
2589ac_site_file2=NONE
2590if test -n "$CONFIG_SITE"; then
2591  # We do not want a PATH search for config.site.
2592  case $CONFIG_SITE in #((
2593    -*)  ac_site_file1=./$CONFIG_SITE;;
2594    */*) ac_site_file1=$CONFIG_SITE;;
2595    *)   ac_site_file1=./$CONFIG_SITE;;
2596  esac
2597elif test "x$prefix" != xNONE; then
2598  ac_site_file1=$prefix/share/config.site
2599  ac_site_file2=$prefix/etc/config.site
2600else
2601  ac_site_file1=$ac_default_prefix/share/config.site
2602  ac_site_file2=$ac_default_prefix/etc/config.site
2603fi
2604for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2605do
2606  test "x$ac_site_file" = xNONE && continue
2607  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2608    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2609$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2610    sed 's/^/| /' "$ac_site_file" >&5
2611    . "$ac_site_file" \
2612      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2614as_fn_error $? "failed to load site script $ac_site_file
2615See \`config.log' for more details" "$LINENO" 5; }
2616  fi
2617done
2618
2619if test -r "$cache_file"; then
2620  # Some versions of bash will fail to source /dev/null (special files
2621  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2622  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2623    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2624$as_echo "$as_me: loading cache $cache_file" >&6;}
2625    case $cache_file in
2626      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2627      *)                      . "./$cache_file";;
2628    esac
2629  fi
2630else
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2632$as_echo "$as_me: creating cache $cache_file" >&6;}
2633  >$cache_file
2634fi
2635
2636# Check that the precious variables saved in the cache have kept the same
2637# value.
2638ac_cache_corrupted=false
2639for ac_var in $ac_precious_vars; do
2640  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2641  eval ac_new_set=\$ac_env_${ac_var}_set
2642  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2643  eval ac_new_val=\$ac_env_${ac_var}_value
2644  case $ac_old_set,$ac_new_set in
2645    set,)
2646      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2647$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2648      ac_cache_corrupted=: ;;
2649    ,set)
2650      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2651$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2652      ac_cache_corrupted=: ;;
2653    ,);;
2654    *)
2655      if test "x$ac_old_val" != "x$ac_new_val"; then
2656	# differences in whitespace do not lead to failure.
2657	ac_old_val_w=`echo x $ac_old_val`
2658	ac_new_val_w=`echo x $ac_new_val`
2659	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2660	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2661$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2662	  ac_cache_corrupted=:
2663	else
2664	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2665$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2666	  eval $ac_var=\$ac_old_val
2667	fi
2668	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2669$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2670	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2671$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2672      fi;;
2673  esac
2674  # Pass precious variables to config.status.
2675  if test "$ac_new_set" = set; then
2676    case $ac_new_val in
2677    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2678    *) ac_arg=$ac_var=$ac_new_val ;;
2679    esac
2680    case " $ac_configure_args " in
2681      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2682      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2683    esac
2684  fi
2685done
2686if $ac_cache_corrupted; then
2687  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2689  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2690$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2691  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2692fi
2693## -------------------- ##
2694## Main body of script. ##
2695## -------------------- ##
2696
2697ac_ext=c
2698ac_cpp='$CPP $CPPFLAGS'
2699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2701ac_compiler_gnu=$ac_cv_c_compiler_gnu
2702
2703
2704
2705
2706
2707ac_config_headers="$ac_config_headers config.h:config.hin"
2708
2709
2710 if 0; then
2711  DEVELOPMENT_VERSION_TRUE=
2712  DEVELOPMENT_VERSION_FALSE='#'
2713else
2714  DEVELOPMENT_VERSION_TRUE='#'
2715  DEVELOPMENT_VERSION_FALSE=
2716fi
2717
2718
2719am__api_version='1.16'
2720
2721ac_aux_dir=
2722for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2723  if test -f "$ac_dir/install-sh"; then
2724    ac_aux_dir=$ac_dir
2725    ac_install_sh="$ac_aux_dir/install-sh -c"
2726    break
2727  elif test -f "$ac_dir/install.sh"; then
2728    ac_aux_dir=$ac_dir
2729    ac_install_sh="$ac_aux_dir/install.sh -c"
2730    break
2731  elif test -f "$ac_dir/shtool"; then
2732    ac_aux_dir=$ac_dir
2733    ac_install_sh="$ac_aux_dir/shtool install -c"
2734    break
2735  fi
2736done
2737if test -z "$ac_aux_dir"; then
2738  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2739fi
2740
2741# These three variables are undocumented and unsupported,
2742# and are intended to be withdrawn in a future Autoconf release.
2743# They can cause serious problems if a builder's source tree is in a directory
2744# whose full name contains unusual characters.
2745ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2746ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2747ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2748
2749
2750# Find a good install program.  We prefer a C program (faster),
2751# so one script is as good as another.  But avoid the broken or
2752# incompatible versions:
2753# SysV /etc/install, /usr/sbin/install
2754# SunOS /usr/etc/install
2755# IRIX /sbin/install
2756# AIX /bin/install
2757# AmigaOS /C/install, which installs bootblocks on floppy discs
2758# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2759# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2760# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2761# OS/2's system install, which has a completely different semantic
2762# ./install, which can be erroneously created by make from ./install.sh.
2763# Reject install programs that cannot install multiple files.
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2765$as_echo_n "checking for a BSD-compatible install... " >&6; }
2766if test -z "$INSTALL"; then
2767if ${ac_cv_path_install+:} false; then :
2768  $as_echo_n "(cached) " >&6
2769else
2770  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771for as_dir in $PATH
2772do
2773  IFS=$as_save_IFS
2774  test -z "$as_dir" && as_dir=.
2775    # Account for people who put trailing slashes in PATH elements.
2776case $as_dir/ in #((
2777  ./ | .// | /[cC]/* | \
2778  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2779  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2780  /usr/ucb/* ) ;;
2781  *)
2782    # OSF1 and SCO ODT 3.0 have their own names for install.
2783    # Don't use installbsd from OSF since it installs stuff as root
2784    # by default.
2785    for ac_prog in ginstall scoinst install; do
2786      for ac_exec_ext in '' $ac_executable_extensions; do
2787	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2788	  if test $ac_prog = install &&
2789	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2790	    # AIX install.  It has an incompatible calling convention.
2791	    :
2792	  elif test $ac_prog = install &&
2793	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2794	    # program-specific install script used by HP pwplus--don't use.
2795	    :
2796	  else
2797	    rm -rf conftest.one conftest.two conftest.dir
2798	    echo one > conftest.one
2799	    echo two > conftest.two
2800	    mkdir conftest.dir
2801	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2802	      test -s conftest.one && test -s conftest.two &&
2803	      test -s conftest.dir/conftest.one &&
2804	      test -s conftest.dir/conftest.two
2805	    then
2806	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2807	      break 3
2808	    fi
2809	  fi
2810	fi
2811      done
2812    done
2813    ;;
2814esac
2815
2816  done
2817IFS=$as_save_IFS
2818
2819rm -rf conftest.one conftest.two conftest.dir
2820
2821fi
2822  if test "${ac_cv_path_install+set}" = set; then
2823    INSTALL=$ac_cv_path_install
2824  else
2825    # As a last resort, use the slow shell script.  Don't cache a
2826    # value for INSTALL within a source directory, because that will
2827    # break other packages using the cache if that directory is
2828    # removed, or if the value is a relative name.
2829    INSTALL=$ac_install_sh
2830  fi
2831fi
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2833$as_echo "$INSTALL" >&6; }
2834
2835# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2836# It thinks the first close brace ends the variable substitution.
2837test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2838
2839test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2840
2841test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2842
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2844$as_echo_n "checking whether build environment is sane... " >&6; }
2845# Reject unsafe characters in $srcdir or the absolute working directory
2846# name.  Accept space and tab only in the latter.
2847am_lf='
2848'
2849case `pwd` in
2850  *[\\\"\#\$\&\'\`$am_lf]*)
2851    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2852esac
2853case $srcdir in
2854  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2855    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2856esac
2857
2858# Do 'set' in a subshell so we don't clobber the current shell's
2859# arguments.  Must try -L first in case configure is actually a
2860# symlink; some systems play weird games with the mod time of symlinks
2861# (eg FreeBSD returns the mod time of the symlink's containing
2862# directory).
2863if (
2864   am_has_slept=no
2865   for am_try in 1 2; do
2866     echo "timestamp, slept: $am_has_slept" > conftest.file
2867     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2868     if test "$*" = "X"; then
2869	# -L didn't work.
2870	set X `ls -t "$srcdir/configure" conftest.file`
2871     fi
2872     if test "$*" != "X $srcdir/configure conftest.file" \
2873	&& test "$*" != "X conftest.file $srcdir/configure"; then
2874
2875	# If neither matched, then we have a broken ls.  This can happen
2876	# if, for instance, CONFIG_SHELL is bash and it inherits a
2877	# broken ls alias from the environment.  This has actually
2878	# happened.  Such a system could not be considered "sane".
2879	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2880  alias in your environment" "$LINENO" 5
2881     fi
2882     if test "$2" = conftest.file || test $am_try -eq 2; then
2883       break
2884     fi
2885     # Just in case.
2886     sleep 1
2887     am_has_slept=yes
2888   done
2889   test "$2" = conftest.file
2890   )
2891then
2892   # Ok.
2893   :
2894else
2895   as_fn_error $? "newly created file is older than distributed files!
2896Check your system clock" "$LINENO" 5
2897fi
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2899$as_echo "yes" >&6; }
2900# If we didn't sleep, we still need to ensure time stamps of config.status and
2901# generated files are strictly newer.
2902am_sleep_pid=
2903if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2904  ( sleep 1 ) &
2905  am_sleep_pid=$!
2906fi
2907
2908rm -f conftest.file
2909
2910test "$program_prefix" != NONE &&
2911  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2912# Use a double $ so make ignores it.
2913test "$program_suffix" != NONE &&
2914  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2915# Double any \ or $.
2916# By default was `s,x,x', remove it if useless.
2917ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2918program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2919
2920# Expand $ac_aux_dir to an absolute path.
2921am_aux_dir=`cd "$ac_aux_dir" && pwd`
2922
2923if test x"${MISSING+set}" != xset; then
2924  case $am_aux_dir in
2925  *\ * | *\	*)
2926    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2927  *)
2928    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2929  esac
2930fi
2931# Use eval to expand $SHELL
2932if eval "$MISSING --is-lightweight"; then
2933  am_missing_run="$MISSING "
2934else
2935  am_missing_run=
2936  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2937$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2938fi
2939
2940if test x"${install_sh+set}" != xset; then
2941  case $am_aux_dir in
2942  *\ * | *\	*)
2943    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2944  *)
2945    install_sh="\${SHELL} $am_aux_dir/install-sh"
2946  esac
2947fi
2948
2949# Installed binaries are usually stripped using 'strip' when the user
2950# run "make install-strip".  However 'strip' might not be the right
2951# tool to use in cross-compilation environments, therefore Automake
2952# will honor the 'STRIP' environment variable to overrule this program.
2953if test "$cross_compiling" != no; then
2954  if test -n "$ac_tool_prefix"; then
2955  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2956set dummy ${ac_tool_prefix}strip; ac_word=$2
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958$as_echo_n "checking for $ac_word... " >&6; }
2959if ${ac_cv_prog_STRIP+:} false; then :
2960  $as_echo_n "(cached) " >&6
2961else
2962  if test -n "$STRIP"; then
2963  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2964else
2965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966for as_dir in $PATH
2967do
2968  IFS=$as_save_IFS
2969  test -z "$as_dir" && as_dir=.
2970    for ac_exec_ext in '' $ac_executable_extensions; do
2971  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2972    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974    break 2
2975  fi
2976done
2977  done
2978IFS=$as_save_IFS
2979
2980fi
2981fi
2982STRIP=$ac_cv_prog_STRIP
2983if test -n "$STRIP"; then
2984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2985$as_echo "$STRIP" >&6; }
2986else
2987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988$as_echo "no" >&6; }
2989fi
2990
2991
2992fi
2993if test -z "$ac_cv_prog_STRIP"; then
2994  ac_ct_STRIP=$STRIP
2995  # Extract the first word of "strip", so it can be a program name with args.
2996set dummy strip; ac_word=$2
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998$as_echo_n "checking for $ac_word... " >&6; }
2999if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3000  $as_echo_n "(cached) " >&6
3001else
3002  if test -n "$ac_ct_STRIP"; then
3003  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3004else
3005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006for as_dir in $PATH
3007do
3008  IFS=$as_save_IFS
3009  test -z "$as_dir" && as_dir=.
3010    for ac_exec_ext in '' $ac_executable_extensions; do
3011  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012    ac_cv_prog_ac_ct_STRIP="strip"
3013    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014    break 2
3015  fi
3016done
3017  done
3018IFS=$as_save_IFS
3019
3020fi
3021fi
3022ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3023if test -n "$ac_ct_STRIP"; then
3024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3025$as_echo "$ac_ct_STRIP" >&6; }
3026else
3027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028$as_echo "no" >&6; }
3029fi
3030
3031  if test "x$ac_ct_STRIP" = x; then
3032    STRIP=":"
3033  else
3034    case $cross_compiling:$ac_tool_warned in
3035yes:)
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038ac_tool_warned=yes ;;
3039esac
3040    STRIP=$ac_ct_STRIP
3041  fi
3042else
3043  STRIP="$ac_cv_prog_STRIP"
3044fi
3045
3046fi
3047INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3048
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3050$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3051if test -z "$MKDIR_P"; then
3052  if ${ac_cv_path_mkdir+:} false; then :
3053  $as_echo_n "(cached) " >&6
3054else
3055  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3057do
3058  IFS=$as_save_IFS
3059  test -z "$as_dir" && as_dir=.
3060    for ac_prog in mkdir gmkdir; do
3061	 for ac_exec_ext in '' $ac_executable_extensions; do
3062	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3063	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3064	     'mkdir (GNU coreutils) '* | \
3065	     'mkdir (coreutils) '* | \
3066	     'mkdir (fileutils) '4.1*)
3067	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3068	       break 3;;
3069	   esac
3070	 done
3071       done
3072  done
3073IFS=$as_save_IFS
3074
3075fi
3076
3077  test -d ./--version && rmdir ./--version
3078  if test "${ac_cv_path_mkdir+set}" = set; then
3079    MKDIR_P="$ac_cv_path_mkdir -p"
3080  else
3081    # As a last resort, use the slow shell script.  Don't cache a
3082    # value for MKDIR_P within a source directory, because that will
3083    # break other packages using the cache if that directory is
3084    # removed, or if the value is a relative name.
3085    MKDIR_P="$ac_install_sh -d"
3086  fi
3087fi
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3089$as_echo "$MKDIR_P" >&6; }
3090
3091for ac_prog in gawk mawk nawk awk
3092do
3093  # Extract the first word of "$ac_prog", so it can be a program name with args.
3094set dummy $ac_prog; ac_word=$2
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096$as_echo_n "checking for $ac_word... " >&6; }
3097if ${ac_cv_prog_AWK+:} false; then :
3098  $as_echo_n "(cached) " >&6
3099else
3100  if test -n "$AWK"; then
3101  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3102else
3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104for as_dir in $PATH
3105do
3106  IFS=$as_save_IFS
3107  test -z "$as_dir" && as_dir=.
3108    for ac_exec_ext in '' $ac_executable_extensions; do
3109  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110    ac_cv_prog_AWK="$ac_prog"
3111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112    break 2
3113  fi
3114done
3115  done
3116IFS=$as_save_IFS
3117
3118fi
3119fi
3120AWK=$ac_cv_prog_AWK
3121if test -n "$AWK"; then
3122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3123$as_echo "$AWK" >&6; }
3124else
3125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126$as_echo "no" >&6; }
3127fi
3128
3129
3130  test -n "$AWK" && break
3131done
3132
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3134$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3135set x ${MAKE-make}
3136ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3137if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3138  $as_echo_n "(cached) " >&6
3139else
3140  cat >conftest.make <<\_ACEOF
3141SHELL = /bin/sh
3142all:
3143	@echo '@@@%%%=$(MAKE)=@@@%%%'
3144_ACEOF
3145# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3146case `${MAKE-make} -f conftest.make 2>/dev/null` in
3147  *@@@%%%=?*=@@@%%%*)
3148    eval ac_cv_prog_make_${ac_make}_set=yes;;
3149  *)
3150    eval ac_cv_prog_make_${ac_make}_set=no;;
3151esac
3152rm -f conftest.make
3153fi
3154if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3156$as_echo "yes" >&6; }
3157  SET_MAKE=
3158else
3159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160$as_echo "no" >&6; }
3161  SET_MAKE="MAKE=${MAKE-make}"
3162fi
3163
3164rm -rf .tst 2>/dev/null
3165mkdir .tst 2>/dev/null
3166if test -d .tst; then
3167  am__leading_dot=.
3168else
3169  am__leading_dot=_
3170fi
3171rmdir .tst 2>/dev/null
3172
3173# Check whether --enable-silent-rules was given.
3174if test "${enable_silent_rules+set}" = set; then :
3175  enableval=$enable_silent_rules;
3176fi
3177
3178case $enable_silent_rules in # (((
3179  yes) AM_DEFAULT_VERBOSITY=0;;
3180   no) AM_DEFAULT_VERBOSITY=1;;
3181    *) AM_DEFAULT_VERBOSITY=1;;
3182esac
3183am_make=${MAKE-make}
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3185$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3186if ${am_cv_make_support_nested_variables+:} false; then :
3187  $as_echo_n "(cached) " >&6
3188else
3189  if $as_echo 'TRUE=$(BAR$(V))
3190BAR0=false
3191BAR1=true
3192V=1
3193am__doit:
3194	@$(TRUE)
3195.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3196  am_cv_make_support_nested_variables=yes
3197else
3198  am_cv_make_support_nested_variables=no
3199fi
3200fi
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3202$as_echo "$am_cv_make_support_nested_variables" >&6; }
3203if test $am_cv_make_support_nested_variables = yes; then
3204    AM_V='$(V)'
3205  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3206else
3207  AM_V=$AM_DEFAULT_VERBOSITY
3208  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3209fi
3210AM_BACKSLASH='\'
3211
3212if test "`cd $srcdir && pwd`" != "`pwd`"; then
3213  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3214  # is not polluted with repeated "-I."
3215  am__isrc=' -I$(srcdir)'
3216  # test to see if srcdir already configured
3217  if test -f $srcdir/config.status; then
3218    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3219  fi
3220fi
3221
3222# test whether we have cygpath
3223if test -z "$CYGPATH_W"; then
3224  if (cygpath --version) >/dev/null 2>/dev/null; then
3225    CYGPATH_W='cygpath -w'
3226  else
3227    CYGPATH_W=echo
3228  fi
3229fi
3230
3231
3232# Define the identity of the package.
3233 PACKAGE='gnuplot'
3234 VERSION='5.4.1'
3235
3236
3237cat >>confdefs.h <<_ACEOF
3238#define PACKAGE "$PACKAGE"
3239_ACEOF
3240
3241
3242cat >>confdefs.h <<_ACEOF
3243#define VERSION "$VERSION"
3244_ACEOF
3245
3246# Some tools Automake needs.
3247
3248ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3249
3250
3251AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3252
3253
3254AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3255
3256
3257AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3258
3259
3260MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3261
3262# For better backward compatibility.  To be removed once Automake 1.9.x
3263# dies out for good.  For more background, see:
3264# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3265# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3266mkdir_p='$(MKDIR_P)'
3267
3268# We need awk for the "check" target (and possibly the TAP driver).  The
3269# system "awk" is bad on some platforms.
3270# Always define AMTAR for backward compatibility.  Yes, it's still used
3271# in the wild :-(  We should find a proper way to deprecate it ...
3272AMTAR='$${TAR-tar}'
3273
3274
3275# We'll loop over all known methods to create a tar archive until one works.
3276_am_tools='gnutar  pax cpio none'
3277
3278am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3279
3280
3281
3282
3283
3284
3285# POSIX will say in a future version that running "rm -f" with no argument
3286# is OK; and we want to be able to make that assumption in our Makefile
3287# recipes.  So use an aggressive probe to check that the usage we want is
3288# actually supported "in the wild" to an acceptable degree.
3289# See automake bug#10828.
3290# To make any issue more visible, cause the running configure to be aborted
3291# by default if the 'rm' program in use doesn't match our expectations; the
3292# user can still override this though.
3293if rm -f && rm -fr && rm -rf; then : OK; else
3294  cat >&2 <<'END'
3295Oops!
3296
3297Your 'rm' program seems unable to run without file operands specified
3298on the command line, even when the '-f' option is present.  This is contrary
3299to the behaviour of most rm programs out there, and not conforming with
3300the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3301
3302Please tell bug-automake@gnu.org about your system, including the value
3303of your $PATH and any error possibly output before this message.  This
3304can help us improve future automake versions.
3305
3306END
3307  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3308    echo 'Configuration will proceed anyway, since you have set the' >&2
3309    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3310    echo >&2
3311  else
3312    cat >&2 <<'END'
3313Aborting the configuration process, to ensure you take notice of the issue.
3314
3315You can download and install GNU coreutils to get an 'rm' implementation
3316that behaves properly: <https://www.gnu.org/software/coreutils/>.
3317
3318If you want to complete the configuration process using your problematic
3319'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3320to "yes", and re-run configure.
3321
3322END
3323    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3324  fi
3325fi
3326
3327
3328
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3330$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3331    # Check whether --enable-maintainer-mode was given.
3332if test "${enable_maintainer_mode+set}" = set; then :
3333  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3334else
3335  USE_MAINTAINER_MODE=no
3336fi
3337
3338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3339$as_echo "$USE_MAINTAINER_MODE" >&6; }
3340   if test $USE_MAINTAINER_MODE = yes; then
3341  MAINTAINER_MODE_TRUE=
3342  MAINTAINER_MODE_FALSE='#'
3343else
3344  MAINTAINER_MODE_TRUE='#'
3345  MAINTAINER_MODE_FALSE=
3346fi
3347
3348  MAINT=$MAINTAINER_MODE_TRUE
3349
3350
3351
3352VERSION_MAJOR="5.4"
3353PATCHLEVEL="`cat $srcdir/PATCHLEVEL`"
3354
3355cat >>confdefs.h <<_ACEOF
3356#define VERSION_MAJOR "$VERSION_MAJOR"
3357_ACEOF
3358
3359
3360cat >>confdefs.h <<_ACEOF
3361#define PATCHLEVEL "$PATCHLEVEL"
3362_ACEOF
3363
3364
3365
3366DEPDIR="${am__leading_dot}deps"
3367
3368ac_config_commands="$ac_config_commands depfiles"
3369
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3371$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3372cat > confinc.mk << 'END'
3373am__doit:
3374	@echo this is the am__doit target >confinc.out
3375.PHONY: am__doit
3376END
3377am__include="#"
3378am__quote=
3379# BSD make does it like this.
3380echo '.include "confinc.mk" # ignored' > confmf.BSD
3381# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3382echo 'include confinc.mk # ignored' > confmf.GNU
3383_am_result=no
3384for s in GNU BSD; do
3385  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3386   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3387   ac_status=$?
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); }
3390  case $?:`cat confinc.out 2>/dev/null` in #(
3391  '0:this is the am__doit target') :
3392    case $s in #(
3393  BSD) :
3394    am__include='.include' am__quote='"' ;; #(
3395  *) :
3396    am__include='include' am__quote='' ;;
3397esac ;; #(
3398  *) :
3399     ;;
3400esac
3401  if test "$am__include" != "#"; then
3402    _am_result="yes ($s style)"
3403    break
3404  fi
3405done
3406rm -f confinc.* confmf.*
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3408$as_echo "${_am_result}" >&6; }
3409
3410# Check whether --enable-dependency-tracking was given.
3411if test "${enable_dependency_tracking+set}" = set; then :
3412  enableval=$enable_dependency_tracking;
3413fi
3414
3415if test "x$enable_dependency_tracking" != xno; then
3416  am_depcomp="$ac_aux_dir/depcomp"
3417  AMDEPBACKSLASH='\'
3418  am__nodep='_no'
3419fi
3420 if test "x$enable_dependency_tracking" != xno; then
3421  AMDEP_TRUE=
3422  AMDEP_FALSE='#'
3423else
3424  AMDEP_TRUE='#'
3425  AMDEP_FALSE=
3426fi
3427
3428
3429ac_ext=c
3430ac_cpp='$CPP $CPPFLAGS'
3431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434if test -n "$ac_tool_prefix"; then
3435  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3436set dummy ${ac_tool_prefix}gcc; ac_word=$2
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438$as_echo_n "checking for $ac_word... " >&6; }
3439if ${ac_cv_prog_CC+:} false; then :
3440  $as_echo_n "(cached) " >&6
3441else
3442  if test -n "$CC"; then
3443  ac_cv_prog_CC="$CC" # Let the user override the test.
3444else
3445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446for as_dir in $PATH
3447do
3448  IFS=$as_save_IFS
3449  test -z "$as_dir" && as_dir=.
3450    for ac_exec_ext in '' $ac_executable_extensions; do
3451  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454    break 2
3455  fi
3456done
3457  done
3458IFS=$as_save_IFS
3459
3460fi
3461fi
3462CC=$ac_cv_prog_CC
3463if test -n "$CC"; then
3464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3465$as_echo "$CC" >&6; }
3466else
3467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468$as_echo "no" >&6; }
3469fi
3470
3471
3472fi
3473if test -z "$ac_cv_prog_CC"; then
3474  ac_ct_CC=$CC
3475  # Extract the first word of "gcc", so it can be a program name with args.
3476set dummy gcc; ac_word=$2
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478$as_echo_n "checking for $ac_word... " >&6; }
3479if ${ac_cv_prog_ac_ct_CC+:} false; then :
3480  $as_echo_n "(cached) " >&6
3481else
3482  if test -n "$ac_ct_CC"; then
3483  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3484else
3485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486for as_dir in $PATH
3487do
3488  IFS=$as_save_IFS
3489  test -z "$as_dir" && as_dir=.
3490    for ac_exec_ext in '' $ac_executable_extensions; do
3491  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3492    ac_cv_prog_ac_ct_CC="gcc"
3493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3494    break 2
3495  fi
3496done
3497  done
3498IFS=$as_save_IFS
3499
3500fi
3501fi
3502ac_ct_CC=$ac_cv_prog_ac_ct_CC
3503if test -n "$ac_ct_CC"; then
3504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3505$as_echo "$ac_ct_CC" >&6; }
3506else
3507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508$as_echo "no" >&6; }
3509fi
3510
3511  if test "x$ac_ct_CC" = x; then
3512    CC=""
3513  else
3514    case $cross_compiling:$ac_tool_warned in
3515yes:)
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3518ac_tool_warned=yes ;;
3519esac
3520    CC=$ac_ct_CC
3521  fi
3522else
3523  CC="$ac_cv_prog_CC"
3524fi
3525
3526if test -z "$CC"; then
3527          if test -n "$ac_tool_prefix"; then
3528    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3529set dummy ${ac_tool_prefix}cc; ac_word=$2
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531$as_echo_n "checking for $ac_word... " >&6; }
3532if ${ac_cv_prog_CC+:} false; then :
3533  $as_echo_n "(cached) " >&6
3534else
3535  if test -n "$CC"; then
3536  ac_cv_prog_CC="$CC" # Let the user override the test.
3537else
3538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539for as_dir in $PATH
3540do
3541  IFS=$as_save_IFS
3542  test -z "$as_dir" && as_dir=.
3543    for ac_exec_ext in '' $ac_executable_extensions; do
3544  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3545    ac_cv_prog_CC="${ac_tool_prefix}cc"
3546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547    break 2
3548  fi
3549done
3550  done
3551IFS=$as_save_IFS
3552
3553fi
3554fi
3555CC=$ac_cv_prog_CC
3556if test -n "$CC"; then
3557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3558$as_echo "$CC" >&6; }
3559else
3560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561$as_echo "no" >&6; }
3562fi
3563
3564
3565  fi
3566fi
3567if test -z "$CC"; then
3568  # Extract the first word of "cc", so it can be a program name with args.
3569set dummy cc; ac_word=$2
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571$as_echo_n "checking for $ac_word... " >&6; }
3572if ${ac_cv_prog_CC+:} false; then :
3573  $as_echo_n "(cached) " >&6
3574else
3575  if test -n "$CC"; then
3576  ac_cv_prog_CC="$CC" # Let the user override the test.
3577else
3578  ac_prog_rejected=no
3579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580for as_dir in $PATH
3581do
3582  IFS=$as_save_IFS
3583  test -z "$as_dir" && as_dir=.
3584    for ac_exec_ext in '' $ac_executable_extensions; do
3585  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3586    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3587       ac_prog_rejected=yes
3588       continue
3589     fi
3590    ac_cv_prog_CC="cc"
3591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3592    break 2
3593  fi
3594done
3595  done
3596IFS=$as_save_IFS
3597
3598if test $ac_prog_rejected = yes; then
3599  # We found a bogon in the path, so make sure we never use it.
3600  set dummy $ac_cv_prog_CC
3601  shift
3602  if test $# != 0; then
3603    # We chose a different compiler from the bogus one.
3604    # However, it has the same basename, so the bogon will be chosen
3605    # first if we set CC to just the basename; use the full file name.
3606    shift
3607    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3608  fi
3609fi
3610fi
3611fi
3612CC=$ac_cv_prog_CC
3613if test -n "$CC"; then
3614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3615$as_echo "$CC" >&6; }
3616else
3617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618$as_echo "no" >&6; }
3619fi
3620
3621
3622fi
3623if test -z "$CC"; then
3624  if test -n "$ac_tool_prefix"; then
3625  for ac_prog in cl.exe
3626  do
3627    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3628set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630$as_echo_n "checking for $ac_word... " >&6; }
3631if ${ac_cv_prog_CC+:} false; then :
3632  $as_echo_n "(cached) " >&6
3633else
3634  if test -n "$CC"; then
3635  ac_cv_prog_CC="$CC" # Let the user override the test.
3636else
3637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638for as_dir in $PATH
3639do
3640  IFS=$as_save_IFS
3641  test -z "$as_dir" && as_dir=.
3642    for ac_exec_ext in '' $ac_executable_extensions; do
3643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3644    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646    break 2
3647  fi
3648done
3649  done
3650IFS=$as_save_IFS
3651
3652fi
3653fi
3654CC=$ac_cv_prog_CC
3655if test -n "$CC"; then
3656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3657$as_echo "$CC" >&6; }
3658else
3659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660$as_echo "no" >&6; }
3661fi
3662
3663
3664    test -n "$CC" && break
3665  done
3666fi
3667if test -z "$CC"; then
3668  ac_ct_CC=$CC
3669  for ac_prog in cl.exe
3670do
3671  # Extract the first word of "$ac_prog", so it can be a program name with args.
3672set dummy $ac_prog; ac_word=$2
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3674$as_echo_n "checking for $ac_word... " >&6; }
3675if ${ac_cv_prog_ac_ct_CC+:} false; then :
3676  $as_echo_n "(cached) " >&6
3677else
3678  if test -n "$ac_ct_CC"; then
3679  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3680else
3681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682for as_dir in $PATH
3683do
3684  IFS=$as_save_IFS
3685  test -z "$as_dir" && as_dir=.
3686    for ac_exec_ext in '' $ac_executable_extensions; do
3687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3688    ac_cv_prog_ac_ct_CC="$ac_prog"
3689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3690    break 2
3691  fi
3692done
3693  done
3694IFS=$as_save_IFS
3695
3696fi
3697fi
3698ac_ct_CC=$ac_cv_prog_ac_ct_CC
3699if test -n "$ac_ct_CC"; then
3700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3701$as_echo "$ac_ct_CC" >&6; }
3702else
3703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3704$as_echo "no" >&6; }
3705fi
3706
3707
3708  test -n "$ac_ct_CC" && break
3709done
3710
3711  if test "x$ac_ct_CC" = x; then
3712    CC=""
3713  else
3714    case $cross_compiling:$ac_tool_warned in
3715yes:)
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3718ac_tool_warned=yes ;;
3719esac
3720    CC=$ac_ct_CC
3721  fi
3722fi
3723
3724fi
3725
3726
3727test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729as_fn_error $? "no acceptable C compiler found in \$PATH
3730See \`config.log' for more details" "$LINENO" 5; }
3731
3732# Provide some information about the compiler.
3733$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3734set X $ac_compile
3735ac_compiler=$2
3736for ac_option in --version -v -V -qversion; do
3737  { { ac_try="$ac_compiler $ac_option >&5"
3738case "(($ac_try" in
3739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740  *) ac_try_echo=$ac_try;;
3741esac
3742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3743$as_echo "$ac_try_echo"; } >&5
3744  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3745  ac_status=$?
3746  if test -s conftest.err; then
3747    sed '10a\
3748... rest of stderr output deleted ...
3749         10q' conftest.err >conftest.er1
3750    cat conftest.er1 >&5
3751  fi
3752  rm -f conftest.er1 conftest.err
3753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3754  test $ac_status = 0; }
3755done
3756
3757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758/* end confdefs.h.  */
3759
3760int
3761main ()
3762{
3763
3764  ;
3765  return 0;
3766}
3767_ACEOF
3768ac_clean_files_save=$ac_clean_files
3769ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3770# Try to create an executable without -o first, disregard a.out.
3771# It will help us diagnose broken compilers, and finding out an intuition
3772# of exeext.
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3774$as_echo_n "checking whether the C compiler works... " >&6; }
3775ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3776
3777# The possible output files:
3778ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3779
3780ac_rmfiles=
3781for ac_file in $ac_files
3782do
3783  case $ac_file in
3784    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3785    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3786  esac
3787done
3788rm -f $ac_rmfiles
3789
3790if { { ac_try="$ac_link_default"
3791case "(($ac_try" in
3792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793  *) ac_try_echo=$ac_try;;
3794esac
3795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796$as_echo "$ac_try_echo"; } >&5
3797  (eval "$ac_link_default") 2>&5
3798  ac_status=$?
3799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800  test $ac_status = 0; }; then :
3801  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3802# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3803# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3804# so that the user can short-circuit this test for compilers unknown to
3805# Autoconf.
3806for ac_file in $ac_files ''
3807do
3808  test -f "$ac_file" || continue
3809  case $ac_file in
3810    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3811	;;
3812    [ab].out )
3813	# We found the default executable, but exeext='' is most
3814	# certainly right.
3815	break;;
3816    *.* )
3817	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3818	then :; else
3819	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3820	fi
3821	# We set ac_cv_exeext here because the later test for it is not
3822	# safe: cross compilers may not add the suffix if given an `-o'
3823	# argument, so we may need to know it at that point already.
3824	# Even if this section looks crufty: it has the advantage of
3825	# actually working.
3826	break;;
3827    * )
3828	break;;
3829  esac
3830done
3831test "$ac_cv_exeext" = no && ac_cv_exeext=
3832
3833else
3834  ac_file=''
3835fi
3836if test -z "$ac_file"; then :
3837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838$as_echo "no" >&6; }
3839$as_echo "$as_me: failed program was:" >&5
3840sed 's/^/| /' conftest.$ac_ext >&5
3841
3842{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3844as_fn_error 77 "C compiler cannot create executables
3845See \`config.log' for more details" "$LINENO" 5; }
3846else
3847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3848$as_echo "yes" >&6; }
3849fi
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3851$as_echo_n "checking for C compiler default output file name... " >&6; }
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3853$as_echo "$ac_file" >&6; }
3854ac_exeext=$ac_cv_exeext
3855
3856rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3857ac_clean_files=$ac_clean_files_save
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3859$as_echo_n "checking for suffix of executables... " >&6; }
3860if { { ac_try="$ac_link"
3861case "(($ac_try" in
3862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863  *) ac_try_echo=$ac_try;;
3864esac
3865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3866$as_echo "$ac_try_echo"; } >&5
3867  (eval "$ac_link") 2>&5
3868  ac_status=$?
3869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870  test $ac_status = 0; }; then :
3871  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3872# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3873# work properly (i.e., refer to `conftest.exe'), while it won't with
3874# `rm'.
3875for ac_file in conftest.exe conftest conftest.*; do
3876  test -f "$ac_file" || continue
3877  case $ac_file in
3878    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3879    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3880	  break;;
3881    * ) break;;
3882  esac
3883done
3884else
3885  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3887as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3888See \`config.log' for more details" "$LINENO" 5; }
3889fi
3890rm -f conftest conftest$ac_cv_exeext
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3892$as_echo "$ac_cv_exeext" >&6; }
3893
3894rm -f conftest.$ac_ext
3895EXEEXT=$ac_cv_exeext
3896ac_exeext=$EXEEXT
3897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898/* end confdefs.h.  */
3899#include <stdio.h>
3900int
3901main ()
3902{
3903FILE *f = fopen ("conftest.out", "w");
3904 return ferror (f) || fclose (f) != 0;
3905
3906  ;
3907  return 0;
3908}
3909_ACEOF
3910ac_clean_files="$ac_clean_files conftest.out"
3911# Check that the compiler produces executables we can run.  If not, either
3912# the compiler is broken, or we cross compile.
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3914$as_echo_n "checking whether we are cross compiling... " >&6; }
3915if test "$cross_compiling" != yes; then
3916  { { ac_try="$ac_link"
3917case "(($ac_try" in
3918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919  *) ac_try_echo=$ac_try;;
3920esac
3921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922$as_echo "$ac_try_echo"; } >&5
3923  (eval "$ac_link") 2>&5
3924  ac_status=$?
3925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926  test $ac_status = 0; }
3927  if { ac_try='./conftest$ac_cv_exeext'
3928  { { case "(($ac_try" in
3929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930  *) ac_try_echo=$ac_try;;
3931esac
3932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3933$as_echo "$ac_try_echo"; } >&5
3934  (eval "$ac_try") 2>&5
3935  ac_status=$?
3936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937  test $ac_status = 0; }; }; then
3938    cross_compiling=no
3939  else
3940    if test "$cross_compiling" = maybe; then
3941	cross_compiling=yes
3942    else
3943	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3945as_fn_error $? "cannot run C compiled programs.
3946If you meant to cross compile, use \`--host'.
3947See \`config.log' for more details" "$LINENO" 5; }
3948    fi
3949  fi
3950fi
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3952$as_echo "$cross_compiling" >&6; }
3953
3954rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3955ac_clean_files=$ac_clean_files_save
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3957$as_echo_n "checking for suffix of object files... " >&6; }
3958if ${ac_cv_objext+:} false; then :
3959  $as_echo_n "(cached) " >&6
3960else
3961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962/* end confdefs.h.  */
3963
3964int
3965main ()
3966{
3967
3968  ;
3969  return 0;
3970}
3971_ACEOF
3972rm -f conftest.o conftest.obj
3973if { { ac_try="$ac_compile"
3974case "(($ac_try" in
3975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976  *) ac_try_echo=$ac_try;;
3977esac
3978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3979$as_echo "$ac_try_echo"; } >&5
3980  (eval "$ac_compile") 2>&5
3981  ac_status=$?
3982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3983  test $ac_status = 0; }; then :
3984  for ac_file in conftest.o conftest.obj conftest.*; do
3985  test -f "$ac_file" || continue;
3986  case $ac_file in
3987    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3988    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3989       break;;
3990  esac
3991done
3992else
3993  $as_echo "$as_me: failed program was:" >&5
3994sed 's/^/| /' conftest.$ac_ext >&5
3995
3996{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3998as_fn_error $? "cannot compute suffix of object files: cannot compile
3999See \`config.log' for more details" "$LINENO" 5; }
4000fi
4001rm -f conftest.$ac_cv_objext conftest.$ac_ext
4002fi
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4004$as_echo "$ac_cv_objext" >&6; }
4005OBJEXT=$ac_cv_objext
4006ac_objext=$OBJEXT
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4008$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4009if ${ac_cv_c_compiler_gnu+:} false; then :
4010  $as_echo_n "(cached) " >&6
4011else
4012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013/* end confdefs.h.  */
4014
4015int
4016main ()
4017{
4018#ifndef __GNUC__
4019       choke me
4020#endif
4021
4022  ;
4023  return 0;
4024}
4025_ACEOF
4026if ac_fn_c_try_compile "$LINENO"; then :
4027  ac_compiler_gnu=yes
4028else
4029  ac_compiler_gnu=no
4030fi
4031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032ac_cv_c_compiler_gnu=$ac_compiler_gnu
4033
4034fi
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4036$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4037if test $ac_compiler_gnu = yes; then
4038  GCC=yes
4039else
4040  GCC=
4041fi
4042ac_test_CFLAGS=${CFLAGS+set}
4043ac_save_CFLAGS=$CFLAGS
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4045$as_echo_n "checking whether $CC accepts -g... " >&6; }
4046if ${ac_cv_prog_cc_g+:} false; then :
4047  $as_echo_n "(cached) " >&6
4048else
4049  ac_save_c_werror_flag=$ac_c_werror_flag
4050   ac_c_werror_flag=yes
4051   ac_cv_prog_cc_g=no
4052   CFLAGS="-g"
4053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054/* end confdefs.h.  */
4055
4056int
4057main ()
4058{
4059
4060  ;
4061  return 0;
4062}
4063_ACEOF
4064if ac_fn_c_try_compile "$LINENO"; then :
4065  ac_cv_prog_cc_g=yes
4066else
4067  CFLAGS=""
4068      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069/* end confdefs.h.  */
4070
4071int
4072main ()
4073{
4074
4075  ;
4076  return 0;
4077}
4078_ACEOF
4079if ac_fn_c_try_compile "$LINENO"; then :
4080
4081else
4082  ac_c_werror_flag=$ac_save_c_werror_flag
4083	 CFLAGS="-g"
4084	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085/* end confdefs.h.  */
4086
4087int
4088main ()
4089{
4090
4091  ;
4092  return 0;
4093}
4094_ACEOF
4095if ac_fn_c_try_compile "$LINENO"; then :
4096  ac_cv_prog_cc_g=yes
4097fi
4098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099fi
4100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101fi
4102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103   ac_c_werror_flag=$ac_save_c_werror_flag
4104fi
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4106$as_echo "$ac_cv_prog_cc_g" >&6; }
4107if test "$ac_test_CFLAGS" = set; then
4108  CFLAGS=$ac_save_CFLAGS
4109elif test $ac_cv_prog_cc_g = yes; then
4110  if test "$GCC" = yes; then
4111    CFLAGS="-g -O2"
4112  else
4113    CFLAGS="-g"
4114  fi
4115else
4116  if test "$GCC" = yes; then
4117    CFLAGS="-O2"
4118  else
4119    CFLAGS=
4120  fi
4121fi
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4123$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4124if ${ac_cv_prog_cc_c89+:} false; then :
4125  $as_echo_n "(cached) " >&6
4126else
4127  ac_cv_prog_cc_c89=no
4128ac_save_CC=$CC
4129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130/* end confdefs.h.  */
4131#include <stdarg.h>
4132#include <stdio.h>
4133struct stat;
4134/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4135struct buf { int x; };
4136FILE * (*rcsopen) (struct buf *, struct stat *, int);
4137static char *e (p, i)
4138     char **p;
4139     int i;
4140{
4141  return p[i];
4142}
4143static char *f (char * (*g) (char **, int), char **p, ...)
4144{
4145  char *s;
4146  va_list v;
4147  va_start (v,p);
4148  s = g (p, va_arg (v,int));
4149  va_end (v);
4150  return s;
4151}
4152
4153/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4154   function prototypes and stuff, but not '\xHH' hex character constants.
4155   These don't provoke an error unfortunately, instead are silently treated
4156   as 'x'.  The following induces an error, until -std is added to get
4157   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4158   array size at least.  It's necessary to write '\x00'==0 to get something
4159   that's true only with -std.  */
4160int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4161
4162/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4163   inside strings and character constants.  */
4164#define FOO(x) 'x'
4165int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4166
4167int test (int i, double x);
4168struct s1 {int (*f) (int a);};
4169struct s2 {int (*f) (double a);};
4170int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4171int argc;
4172char **argv;
4173int
4174main ()
4175{
4176return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4177  ;
4178  return 0;
4179}
4180_ACEOF
4181for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4182	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4183do
4184  CC="$ac_save_CC $ac_arg"
4185  if ac_fn_c_try_compile "$LINENO"; then :
4186  ac_cv_prog_cc_c89=$ac_arg
4187fi
4188rm -f core conftest.err conftest.$ac_objext
4189  test "x$ac_cv_prog_cc_c89" != "xno" && break
4190done
4191rm -f conftest.$ac_ext
4192CC=$ac_save_CC
4193
4194fi
4195# AC_CACHE_VAL
4196case "x$ac_cv_prog_cc_c89" in
4197  x)
4198    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4199$as_echo "none needed" >&6; } ;;
4200  xno)
4201    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4202$as_echo "unsupported" >&6; } ;;
4203  *)
4204    CC="$CC $ac_cv_prog_cc_c89"
4205    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4206$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4207esac
4208if test "x$ac_cv_prog_cc_c89" != xno; then :
4209
4210fi
4211
4212ac_ext=c
4213ac_cpp='$CPP $CPPFLAGS'
4214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4216ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217
4218ac_ext=c
4219ac_cpp='$CPP $CPPFLAGS'
4220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4224$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4225if ${am_cv_prog_cc_c_o+:} false; then :
4226  $as_echo_n "(cached) " >&6
4227else
4228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229/* end confdefs.h.  */
4230
4231int
4232main ()
4233{
4234
4235  ;
4236  return 0;
4237}
4238_ACEOF
4239  # Make sure it works both with $CC and with simple cc.
4240  # Following AC_PROG_CC_C_O, we do the test twice because some
4241  # compilers refuse to overwrite an existing .o file with -o,
4242  # though they will create one.
4243  am_cv_prog_cc_c_o=yes
4244  for am_i in 1 2; do
4245    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4246   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4247   ac_status=$?
4248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249   (exit $ac_status); } \
4250         && test -f conftest2.$ac_objext; then
4251      : OK
4252    else
4253      am_cv_prog_cc_c_o=no
4254      break
4255    fi
4256  done
4257  rm -f core conftest*
4258  unset am_i
4259fi
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4261$as_echo "$am_cv_prog_cc_c_o" >&6; }
4262if test "$am_cv_prog_cc_c_o" != yes; then
4263   # Losing compiler, so override with the script.
4264   # FIXME: It is wrong to rewrite CC.
4265   # But if we don't then we get into trouble of one sort or another.
4266   # A longer-term fix would be to have automake use am__CC in this case,
4267   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4268   CC="$am_aux_dir/compile $CC"
4269fi
4270ac_ext=c
4271ac_cpp='$CPP $CPPFLAGS'
4272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275
4276
4277depcc="$CC"   am_compiler_list=
4278
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4280$as_echo_n "checking dependency style of $depcc... " >&6; }
4281if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4282  $as_echo_n "(cached) " >&6
4283else
4284  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4285  # We make a subdir and do the tests there.  Otherwise we can end up
4286  # making bogus files that we don't know about and never remove.  For
4287  # instance it was reported that on HP-UX the gcc test will end up
4288  # making a dummy file named 'D' -- because '-MD' means "put the output
4289  # in D".
4290  rm -rf conftest.dir
4291  mkdir conftest.dir
4292  # Copy depcomp to subdir because otherwise we won't find it if we're
4293  # using a relative directory.
4294  cp "$am_depcomp" conftest.dir
4295  cd conftest.dir
4296  # We will build objects and dependencies in a subdirectory because
4297  # it helps to detect inapplicable dependency modes.  For instance
4298  # both Tru64's cc and ICC support -MD to output dependencies as a
4299  # side effect of compilation, but ICC will put the dependencies in
4300  # the current directory while Tru64 will put them in the object
4301  # directory.
4302  mkdir sub
4303
4304  am_cv_CC_dependencies_compiler_type=none
4305  if test "$am_compiler_list" = ""; then
4306     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4307  fi
4308  am__universal=false
4309  case " $depcc " in #(
4310     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4311     esac
4312
4313  for depmode in $am_compiler_list; do
4314    # Setup a source with many dependencies, because some compilers
4315    # like to wrap large dependency lists on column 80 (with \), and
4316    # we should not choose a depcomp mode which is confused by this.
4317    #
4318    # We need to recreate these files for each test, as the compiler may
4319    # overwrite some of them when testing with obscure command lines.
4320    # This happens at least with the AIX C compiler.
4321    : > sub/conftest.c
4322    for i in 1 2 3 4 5 6; do
4323      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4324      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4325      # Solaris 10 /bin/sh.
4326      echo '/* dummy */' > sub/conftst$i.h
4327    done
4328    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4329
4330    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4331    # mode.  It turns out that the SunPro C++ compiler does not properly
4332    # handle '-M -o', and we need to detect this.  Also, some Intel
4333    # versions had trouble with output in subdirs.
4334    am__obj=sub/conftest.${OBJEXT-o}
4335    am__minus_obj="-o $am__obj"
4336    case $depmode in
4337    gcc)
4338      # This depmode causes a compiler race in universal mode.
4339      test "$am__universal" = false || continue
4340      ;;
4341    nosideeffect)
4342      # After this tag, mechanisms are not by side-effect, so they'll
4343      # only be used when explicitly requested.
4344      if test "x$enable_dependency_tracking" = xyes; then
4345	continue
4346      else
4347	break
4348      fi
4349      ;;
4350    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4351      # This compiler won't grok '-c -o', but also, the minuso test has
4352      # not run yet.  These depmodes are late enough in the game, and
4353      # so weak that their functioning should not be impacted.
4354      am__obj=conftest.${OBJEXT-o}
4355      am__minus_obj=
4356      ;;
4357    none) break ;;
4358    esac
4359    if depmode=$depmode \
4360       source=sub/conftest.c object=$am__obj \
4361       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4362       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4363         >/dev/null 2>conftest.err &&
4364       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4365       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4366       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4367       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4368      # icc doesn't choke on unknown options, it will just issue warnings
4369      # or remarks (even with -Werror).  So we grep stderr for any message
4370      # that says an option was ignored or not supported.
4371      # When given -MP, icc 7.0 and 7.1 complain thusly:
4372      #   icc: Command line warning: ignoring option '-M'; no argument required
4373      # The diagnosis changed in icc 8.0:
4374      #   icc: Command line remark: option '-MP' not supported
4375      if (grep 'ignoring option' conftest.err ||
4376          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4377        am_cv_CC_dependencies_compiler_type=$depmode
4378        break
4379      fi
4380    fi
4381  done
4382
4383  cd ..
4384  rm -rf conftest.dir
4385else
4386  am_cv_CC_dependencies_compiler_type=none
4387fi
4388
4389fi
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4391$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4392CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4393
4394 if
4395  test "x$enable_dependency_tracking" != xno \
4396  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4397  am__fastdepCC_TRUE=
4398  am__fastdepCC_FALSE='#'
4399else
4400  am__fastdepCC_TRUE='#'
4401  am__fastdepCC_FALSE=
4402fi
4403
4404
4405
4406ac_ext=c
4407ac_cpp='$CPP $CPPFLAGS'
4408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4410ac_compiler_gnu=$ac_cv_c_compiler_gnu
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4412$as_echo_n "checking how to run the C preprocessor... " >&6; }
4413# On Suns, sometimes $CPP names a directory.
4414if test -n "$CPP" && test -d "$CPP"; then
4415  CPP=
4416fi
4417if test -z "$CPP"; then
4418  if ${ac_cv_prog_CPP+:} false; then :
4419  $as_echo_n "(cached) " >&6
4420else
4421      # Double quotes because CPP needs to be expanded
4422    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4423    do
4424      ac_preproc_ok=false
4425for ac_c_preproc_warn_flag in '' yes
4426do
4427  # Use a header file that comes with gcc, so configuring glibc
4428  # with a fresh cross-compiler works.
4429  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4430  # <limits.h> exists even on freestanding compilers.
4431  # On the NeXT, cc -E runs the code through the compiler's parser,
4432  # not just through cpp. "Syntax error" is here to catch this case.
4433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434/* end confdefs.h.  */
4435#ifdef __STDC__
4436# include <limits.h>
4437#else
4438# include <assert.h>
4439#endif
4440		     Syntax error
4441_ACEOF
4442if ac_fn_c_try_cpp "$LINENO"; then :
4443
4444else
4445  # Broken: fails on valid input.
4446continue
4447fi
4448rm -f conftest.err conftest.i conftest.$ac_ext
4449
4450  # OK, works on sane cases.  Now check whether nonexistent headers
4451  # can be detected and how.
4452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453/* end confdefs.h.  */
4454#include <ac_nonexistent.h>
4455_ACEOF
4456if ac_fn_c_try_cpp "$LINENO"; then :
4457  # Broken: success on invalid input.
4458continue
4459else
4460  # Passes both tests.
4461ac_preproc_ok=:
4462break
4463fi
4464rm -f conftest.err conftest.i conftest.$ac_ext
4465
4466done
4467# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4468rm -f conftest.i conftest.err conftest.$ac_ext
4469if $ac_preproc_ok; then :
4470  break
4471fi
4472
4473    done
4474    ac_cv_prog_CPP=$CPP
4475
4476fi
4477  CPP=$ac_cv_prog_CPP
4478else
4479  ac_cv_prog_CPP=$CPP
4480fi
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4482$as_echo "$CPP" >&6; }
4483ac_preproc_ok=false
4484for ac_c_preproc_warn_flag in '' yes
4485do
4486  # Use a header file that comes with gcc, so configuring glibc
4487  # with a fresh cross-compiler works.
4488  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4489  # <limits.h> exists even on freestanding compilers.
4490  # On the NeXT, cc -E runs the code through the compiler's parser,
4491  # not just through cpp. "Syntax error" is here to catch this case.
4492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493/* end confdefs.h.  */
4494#ifdef __STDC__
4495# include <limits.h>
4496#else
4497# include <assert.h>
4498#endif
4499		     Syntax error
4500_ACEOF
4501if ac_fn_c_try_cpp "$LINENO"; then :
4502
4503else
4504  # Broken: fails on valid input.
4505continue
4506fi
4507rm -f conftest.err conftest.i conftest.$ac_ext
4508
4509  # OK, works on sane cases.  Now check whether nonexistent headers
4510  # can be detected and how.
4511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512/* end confdefs.h.  */
4513#include <ac_nonexistent.h>
4514_ACEOF
4515if ac_fn_c_try_cpp "$LINENO"; then :
4516  # Broken: success on invalid input.
4517continue
4518else
4519  # Passes both tests.
4520ac_preproc_ok=:
4521break
4522fi
4523rm -f conftest.err conftest.i conftest.$ac_ext
4524
4525done
4526# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4527rm -f conftest.i conftest.err conftest.$ac_ext
4528if $ac_preproc_ok; then :
4529
4530else
4531  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4533as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4534See \`config.log' for more details" "$LINENO" 5; }
4535fi
4536
4537ac_ext=c
4538ac_cpp='$CPP $CPPFLAGS'
4539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541ac_compiler_gnu=$ac_cv_c_compiler_gnu
4542
4543
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4545$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4546if ${ac_cv_path_GREP+:} false; then :
4547  $as_echo_n "(cached) " >&6
4548else
4549  if test -z "$GREP"; then
4550  ac_path_GREP_found=false
4551  # Loop through the user's path and test for each of PROGNAME-LIST
4552  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4554do
4555  IFS=$as_save_IFS
4556  test -z "$as_dir" && as_dir=.
4557    for ac_prog in grep ggrep; do
4558    for ac_exec_ext in '' $ac_executable_extensions; do
4559      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4560      as_fn_executable_p "$ac_path_GREP" || continue
4561# Check for GNU ac_path_GREP and select it if it is found.
4562  # Check for GNU $ac_path_GREP
4563case `"$ac_path_GREP" --version 2>&1` in
4564*GNU*)
4565  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4566*)
4567  ac_count=0
4568  $as_echo_n 0123456789 >"conftest.in"
4569  while :
4570  do
4571    cat "conftest.in" "conftest.in" >"conftest.tmp"
4572    mv "conftest.tmp" "conftest.in"
4573    cp "conftest.in" "conftest.nl"
4574    $as_echo 'GREP' >> "conftest.nl"
4575    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4576    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4577    as_fn_arith $ac_count + 1 && ac_count=$as_val
4578    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4579      # Best one so far, save it but keep looking for a better one
4580      ac_cv_path_GREP="$ac_path_GREP"
4581      ac_path_GREP_max=$ac_count
4582    fi
4583    # 10*(2^10) chars as input seems more than enough
4584    test $ac_count -gt 10 && break
4585  done
4586  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4587esac
4588
4589      $ac_path_GREP_found && break 3
4590    done
4591  done
4592  done
4593IFS=$as_save_IFS
4594  if test -z "$ac_cv_path_GREP"; then
4595    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4596  fi
4597else
4598  ac_cv_path_GREP=$GREP
4599fi
4600
4601fi
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4603$as_echo "$ac_cv_path_GREP" >&6; }
4604 GREP="$ac_cv_path_GREP"
4605
4606
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4608$as_echo_n "checking for egrep... " >&6; }
4609if ${ac_cv_path_EGREP+:} false; then :
4610  $as_echo_n "(cached) " >&6
4611else
4612  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4613   then ac_cv_path_EGREP="$GREP -E"
4614   else
4615     if test -z "$EGREP"; then
4616  ac_path_EGREP_found=false
4617  # Loop through the user's path and test for each of PROGNAME-LIST
4618  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4620do
4621  IFS=$as_save_IFS
4622  test -z "$as_dir" && as_dir=.
4623    for ac_prog in egrep; do
4624    for ac_exec_ext in '' $ac_executable_extensions; do
4625      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4626      as_fn_executable_p "$ac_path_EGREP" || continue
4627# Check for GNU ac_path_EGREP and select it if it is found.
4628  # Check for GNU $ac_path_EGREP
4629case `"$ac_path_EGREP" --version 2>&1` in
4630*GNU*)
4631  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4632*)
4633  ac_count=0
4634  $as_echo_n 0123456789 >"conftest.in"
4635  while :
4636  do
4637    cat "conftest.in" "conftest.in" >"conftest.tmp"
4638    mv "conftest.tmp" "conftest.in"
4639    cp "conftest.in" "conftest.nl"
4640    $as_echo 'EGREP' >> "conftest.nl"
4641    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4642    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4643    as_fn_arith $ac_count + 1 && ac_count=$as_val
4644    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4645      # Best one so far, save it but keep looking for a better one
4646      ac_cv_path_EGREP="$ac_path_EGREP"
4647      ac_path_EGREP_max=$ac_count
4648    fi
4649    # 10*(2^10) chars as input seems more than enough
4650    test $ac_count -gt 10 && break
4651  done
4652  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4653esac
4654
4655      $ac_path_EGREP_found && break 3
4656    done
4657  done
4658  done
4659IFS=$as_save_IFS
4660  if test -z "$ac_cv_path_EGREP"; then
4661    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4662  fi
4663else
4664  ac_cv_path_EGREP=$EGREP
4665fi
4666
4667   fi
4668fi
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4670$as_echo "$ac_cv_path_EGREP" >&6; }
4671 EGREP="$ac_cv_path_EGREP"
4672
4673
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4675$as_echo_n "checking for ANSI C header files... " >&6; }
4676if ${ac_cv_header_stdc+:} false; then :
4677  $as_echo_n "(cached) " >&6
4678else
4679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680/* end confdefs.h.  */
4681#include <stdlib.h>
4682#include <stdarg.h>
4683#include <string.h>
4684#include <float.h>
4685
4686int
4687main ()
4688{
4689
4690  ;
4691  return 0;
4692}
4693_ACEOF
4694if ac_fn_c_try_compile "$LINENO"; then :
4695  ac_cv_header_stdc=yes
4696else
4697  ac_cv_header_stdc=no
4698fi
4699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4700
4701if test $ac_cv_header_stdc = yes; then
4702  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704/* end confdefs.h.  */
4705#include <string.h>
4706
4707_ACEOF
4708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4709  $EGREP "memchr" >/dev/null 2>&1; then :
4710
4711else
4712  ac_cv_header_stdc=no
4713fi
4714rm -f conftest*
4715
4716fi
4717
4718if test $ac_cv_header_stdc = yes; then
4719  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721/* end confdefs.h.  */
4722#include <stdlib.h>
4723
4724_ACEOF
4725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4726  $EGREP "free" >/dev/null 2>&1; then :
4727
4728else
4729  ac_cv_header_stdc=no
4730fi
4731rm -f conftest*
4732
4733fi
4734
4735if test $ac_cv_header_stdc = yes; then
4736  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4737  if test "$cross_compiling" = yes; then :
4738  :
4739else
4740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741/* end confdefs.h.  */
4742#include <ctype.h>
4743#include <stdlib.h>
4744#if ((' ' & 0x0FF) == 0x020)
4745# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4746# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4747#else
4748# define ISLOWER(c) \
4749		   (('a' <= (c) && (c) <= 'i') \
4750		     || ('j' <= (c) && (c) <= 'r') \
4751		     || ('s' <= (c) && (c) <= 'z'))
4752# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4753#endif
4754
4755#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4756int
4757main ()
4758{
4759  int i;
4760  for (i = 0; i < 256; i++)
4761    if (XOR (islower (i), ISLOWER (i))
4762	|| toupper (i) != TOUPPER (i))
4763      return 2;
4764  return 0;
4765}
4766_ACEOF
4767if ac_fn_c_try_run "$LINENO"; then :
4768
4769else
4770  ac_cv_header_stdc=no
4771fi
4772rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4773  conftest.$ac_objext conftest.beam conftest.$ac_ext
4774fi
4775
4776fi
4777fi
4778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4779$as_echo "$ac_cv_header_stdc" >&6; }
4780if test $ac_cv_header_stdc = yes; then
4781
4782$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4783
4784fi
4785
4786# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4787for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4788		  inttypes.h stdint.h unistd.h
4789do :
4790  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4791ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4792"
4793if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4794  cat >>confdefs.h <<_ACEOF
4795#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4796_ACEOF
4797
4798fi
4799
4800done
4801
4802
4803
4804  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4805if test "x$ac_cv_header_minix_config_h" = xyes; then :
4806  MINIX=yes
4807else
4808  MINIX=
4809fi
4810
4811
4812  if test "$MINIX" = yes; then
4813
4814$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4815
4816
4817$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4818
4819
4820$as_echo "#define _MINIX 1" >>confdefs.h
4821
4822  fi
4823
4824
4825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4826$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4827if ${ac_cv_safe_to_define___extensions__+:} false; then :
4828  $as_echo_n "(cached) " >&6
4829else
4830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831/* end confdefs.h.  */
4832
4833#         define __EXTENSIONS__ 1
4834          $ac_includes_default
4835int
4836main ()
4837{
4838
4839  ;
4840  return 0;
4841}
4842_ACEOF
4843if ac_fn_c_try_compile "$LINENO"; then :
4844  ac_cv_safe_to_define___extensions__=yes
4845else
4846  ac_cv_safe_to_define___extensions__=no
4847fi
4848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849fi
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4851$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4852  test $ac_cv_safe_to_define___extensions__ = yes &&
4853    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4854
4855  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4856
4857  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4858
4859  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4860
4861  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4862
4863
4864ac_ext=c
4865ac_cpp='$CPP $CPPFLAGS'
4866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868ac_compiler_gnu=$ac_cv_c_compiler_gnu
4869if test -n "$ac_tool_prefix"; then
4870  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4871set dummy ${ac_tool_prefix}gcc; ac_word=$2
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873$as_echo_n "checking for $ac_word... " >&6; }
4874if ${ac_cv_prog_CC+:} false; then :
4875  $as_echo_n "(cached) " >&6
4876else
4877  if test -n "$CC"; then
4878  ac_cv_prog_CC="$CC" # Let the user override the test.
4879else
4880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881for as_dir in $PATH
4882do
4883  IFS=$as_save_IFS
4884  test -z "$as_dir" && as_dir=.
4885    for ac_exec_ext in '' $ac_executable_extensions; do
4886  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4887    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4888    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889    break 2
4890  fi
4891done
4892  done
4893IFS=$as_save_IFS
4894
4895fi
4896fi
4897CC=$ac_cv_prog_CC
4898if test -n "$CC"; then
4899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4900$as_echo "$CC" >&6; }
4901else
4902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903$as_echo "no" >&6; }
4904fi
4905
4906
4907fi
4908if test -z "$ac_cv_prog_CC"; then
4909  ac_ct_CC=$CC
4910  # Extract the first word of "gcc", so it can be a program name with args.
4911set dummy gcc; ac_word=$2
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913$as_echo_n "checking for $ac_word... " >&6; }
4914if ${ac_cv_prog_ac_ct_CC+:} false; then :
4915  $as_echo_n "(cached) " >&6
4916else
4917  if test -n "$ac_ct_CC"; then
4918  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4919else
4920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921for as_dir in $PATH
4922do
4923  IFS=$as_save_IFS
4924  test -z "$as_dir" && as_dir=.
4925    for ac_exec_ext in '' $ac_executable_extensions; do
4926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927    ac_cv_prog_ac_ct_CC="gcc"
4928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929    break 2
4930  fi
4931done
4932  done
4933IFS=$as_save_IFS
4934
4935fi
4936fi
4937ac_ct_CC=$ac_cv_prog_ac_ct_CC
4938if test -n "$ac_ct_CC"; then
4939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4940$as_echo "$ac_ct_CC" >&6; }
4941else
4942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943$as_echo "no" >&6; }
4944fi
4945
4946  if test "x$ac_ct_CC" = x; then
4947    CC=""
4948  else
4949    case $cross_compiling:$ac_tool_warned in
4950yes:)
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4953ac_tool_warned=yes ;;
4954esac
4955    CC=$ac_ct_CC
4956  fi
4957else
4958  CC="$ac_cv_prog_CC"
4959fi
4960
4961if test -z "$CC"; then
4962          if test -n "$ac_tool_prefix"; then
4963    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4964set dummy ${ac_tool_prefix}cc; ac_word=$2
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966$as_echo_n "checking for $ac_word... " >&6; }
4967if ${ac_cv_prog_CC+:} false; then :
4968  $as_echo_n "(cached) " >&6
4969else
4970  if test -n "$CC"; then
4971  ac_cv_prog_CC="$CC" # Let the user override the test.
4972else
4973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974for as_dir in $PATH
4975do
4976  IFS=$as_save_IFS
4977  test -z "$as_dir" && as_dir=.
4978    for ac_exec_ext in '' $ac_executable_extensions; do
4979  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4980    ac_cv_prog_CC="${ac_tool_prefix}cc"
4981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982    break 2
4983  fi
4984done
4985  done
4986IFS=$as_save_IFS
4987
4988fi
4989fi
4990CC=$ac_cv_prog_CC
4991if test -n "$CC"; then
4992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4993$as_echo "$CC" >&6; }
4994else
4995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996$as_echo "no" >&6; }
4997fi
4998
4999
5000  fi
5001fi
5002if test -z "$CC"; then
5003  # Extract the first word of "cc", so it can be a program name with args.
5004set dummy cc; ac_word=$2
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5006$as_echo_n "checking for $ac_word... " >&6; }
5007if ${ac_cv_prog_CC+:} false; then :
5008  $as_echo_n "(cached) " >&6
5009else
5010  if test -n "$CC"; then
5011  ac_cv_prog_CC="$CC" # Let the user override the test.
5012else
5013  ac_prog_rejected=no
5014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015for as_dir in $PATH
5016do
5017  IFS=$as_save_IFS
5018  test -z "$as_dir" && as_dir=.
5019    for ac_exec_ext in '' $ac_executable_extensions; do
5020  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5022       ac_prog_rejected=yes
5023       continue
5024     fi
5025    ac_cv_prog_CC="cc"
5026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027    break 2
5028  fi
5029done
5030  done
5031IFS=$as_save_IFS
5032
5033if test $ac_prog_rejected = yes; then
5034  # We found a bogon in the path, so make sure we never use it.
5035  set dummy $ac_cv_prog_CC
5036  shift
5037  if test $# != 0; then
5038    # We chose a different compiler from the bogus one.
5039    # However, it has the same basename, so the bogon will be chosen
5040    # first if we set CC to just the basename; use the full file name.
5041    shift
5042    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5043  fi
5044fi
5045fi
5046fi
5047CC=$ac_cv_prog_CC
5048if test -n "$CC"; then
5049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5050$as_echo "$CC" >&6; }
5051else
5052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053$as_echo "no" >&6; }
5054fi
5055
5056
5057fi
5058if test -z "$CC"; then
5059  if test -n "$ac_tool_prefix"; then
5060  for ac_prog in cl.exe
5061  do
5062    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5063set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065$as_echo_n "checking for $ac_word... " >&6; }
5066if ${ac_cv_prog_CC+:} false; then :
5067  $as_echo_n "(cached) " >&6
5068else
5069  if test -n "$CC"; then
5070  ac_cv_prog_CC="$CC" # Let the user override the test.
5071else
5072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073for as_dir in $PATH
5074do
5075  IFS=$as_save_IFS
5076  test -z "$as_dir" && as_dir=.
5077    for ac_exec_ext in '' $ac_executable_extensions; do
5078  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081    break 2
5082  fi
5083done
5084  done
5085IFS=$as_save_IFS
5086
5087fi
5088fi
5089CC=$ac_cv_prog_CC
5090if test -n "$CC"; then
5091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5092$as_echo "$CC" >&6; }
5093else
5094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095$as_echo "no" >&6; }
5096fi
5097
5098
5099    test -n "$CC" && break
5100  done
5101fi
5102if test -z "$CC"; then
5103  ac_ct_CC=$CC
5104  for ac_prog in cl.exe
5105do
5106  # Extract the first word of "$ac_prog", so it can be a program name with args.
5107set dummy $ac_prog; ac_word=$2
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109$as_echo_n "checking for $ac_word... " >&6; }
5110if ${ac_cv_prog_ac_ct_CC+:} false; then :
5111  $as_echo_n "(cached) " >&6
5112else
5113  if test -n "$ac_ct_CC"; then
5114  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5115else
5116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117for as_dir in $PATH
5118do
5119  IFS=$as_save_IFS
5120  test -z "$as_dir" && as_dir=.
5121    for ac_exec_ext in '' $ac_executable_extensions; do
5122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123    ac_cv_prog_ac_ct_CC="$ac_prog"
5124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125    break 2
5126  fi
5127done
5128  done
5129IFS=$as_save_IFS
5130
5131fi
5132fi
5133ac_ct_CC=$ac_cv_prog_ac_ct_CC
5134if test -n "$ac_ct_CC"; then
5135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5136$as_echo "$ac_ct_CC" >&6; }
5137else
5138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139$as_echo "no" >&6; }
5140fi
5141
5142
5143  test -n "$ac_ct_CC" && break
5144done
5145
5146  if test "x$ac_ct_CC" = x; then
5147    CC=""
5148  else
5149    case $cross_compiling:$ac_tool_warned in
5150yes:)
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5153ac_tool_warned=yes ;;
5154esac
5155    CC=$ac_ct_CC
5156  fi
5157fi
5158
5159fi
5160
5161
5162test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5164as_fn_error $? "no acceptable C compiler found in \$PATH
5165See \`config.log' for more details" "$LINENO" 5; }
5166
5167# Provide some information about the compiler.
5168$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5169set X $ac_compile
5170ac_compiler=$2
5171for ac_option in --version -v -V -qversion; do
5172  { { ac_try="$ac_compiler $ac_option >&5"
5173case "(($ac_try" in
5174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175  *) ac_try_echo=$ac_try;;
5176esac
5177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5178$as_echo "$ac_try_echo"; } >&5
5179  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5180  ac_status=$?
5181  if test -s conftest.err; then
5182    sed '10a\
5183... rest of stderr output deleted ...
5184         10q' conftest.err >conftest.er1
5185    cat conftest.er1 >&5
5186  fi
5187  rm -f conftest.er1 conftest.err
5188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5189  test $ac_status = 0; }
5190done
5191
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5193$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5194if ${ac_cv_c_compiler_gnu+:} false; then :
5195  $as_echo_n "(cached) " >&6
5196else
5197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198/* end confdefs.h.  */
5199
5200int
5201main ()
5202{
5203#ifndef __GNUC__
5204       choke me
5205#endif
5206
5207  ;
5208  return 0;
5209}
5210_ACEOF
5211if ac_fn_c_try_compile "$LINENO"; then :
5212  ac_compiler_gnu=yes
5213else
5214  ac_compiler_gnu=no
5215fi
5216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5217ac_cv_c_compiler_gnu=$ac_compiler_gnu
5218
5219fi
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5221$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5222if test $ac_compiler_gnu = yes; then
5223  GCC=yes
5224else
5225  GCC=
5226fi
5227ac_test_CFLAGS=${CFLAGS+set}
5228ac_save_CFLAGS=$CFLAGS
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5230$as_echo_n "checking whether $CC accepts -g... " >&6; }
5231if ${ac_cv_prog_cc_g+:} false; then :
5232  $as_echo_n "(cached) " >&6
5233else
5234  ac_save_c_werror_flag=$ac_c_werror_flag
5235   ac_c_werror_flag=yes
5236   ac_cv_prog_cc_g=no
5237   CFLAGS="-g"
5238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239/* end confdefs.h.  */
5240
5241int
5242main ()
5243{
5244
5245  ;
5246  return 0;
5247}
5248_ACEOF
5249if ac_fn_c_try_compile "$LINENO"; then :
5250  ac_cv_prog_cc_g=yes
5251else
5252  CFLAGS=""
5253      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254/* end confdefs.h.  */
5255
5256int
5257main ()
5258{
5259
5260  ;
5261  return 0;
5262}
5263_ACEOF
5264if ac_fn_c_try_compile "$LINENO"; then :
5265
5266else
5267  ac_c_werror_flag=$ac_save_c_werror_flag
5268	 CFLAGS="-g"
5269	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270/* end confdefs.h.  */
5271
5272int
5273main ()
5274{
5275
5276  ;
5277  return 0;
5278}
5279_ACEOF
5280if ac_fn_c_try_compile "$LINENO"; then :
5281  ac_cv_prog_cc_g=yes
5282fi
5283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284fi
5285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286fi
5287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288   ac_c_werror_flag=$ac_save_c_werror_flag
5289fi
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5291$as_echo "$ac_cv_prog_cc_g" >&6; }
5292if test "$ac_test_CFLAGS" = set; then
5293  CFLAGS=$ac_save_CFLAGS
5294elif test $ac_cv_prog_cc_g = yes; then
5295  if test "$GCC" = yes; then
5296    CFLAGS="-g -O2"
5297  else
5298    CFLAGS="-g"
5299  fi
5300else
5301  if test "$GCC" = yes; then
5302    CFLAGS="-O2"
5303  else
5304    CFLAGS=
5305  fi
5306fi
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5308$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5309if ${ac_cv_prog_cc_c89+:} false; then :
5310  $as_echo_n "(cached) " >&6
5311else
5312  ac_cv_prog_cc_c89=no
5313ac_save_CC=$CC
5314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315/* end confdefs.h.  */
5316#include <stdarg.h>
5317#include <stdio.h>
5318struct stat;
5319/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5320struct buf { int x; };
5321FILE * (*rcsopen) (struct buf *, struct stat *, int);
5322static char *e (p, i)
5323     char **p;
5324     int i;
5325{
5326  return p[i];
5327}
5328static char *f (char * (*g) (char **, int), char **p, ...)
5329{
5330  char *s;
5331  va_list v;
5332  va_start (v,p);
5333  s = g (p, va_arg (v,int));
5334  va_end (v);
5335  return s;
5336}
5337
5338/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5339   function prototypes and stuff, but not '\xHH' hex character constants.
5340   These don't provoke an error unfortunately, instead are silently treated
5341   as 'x'.  The following induces an error, until -std is added to get
5342   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5343   array size at least.  It's necessary to write '\x00'==0 to get something
5344   that's true only with -std.  */
5345int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5346
5347/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5348   inside strings and character constants.  */
5349#define FOO(x) 'x'
5350int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5351
5352int test (int i, double x);
5353struct s1 {int (*f) (int a);};
5354struct s2 {int (*f) (double a);};
5355int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5356int argc;
5357char **argv;
5358int
5359main ()
5360{
5361return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5362  ;
5363  return 0;
5364}
5365_ACEOF
5366for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5367	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5368do
5369  CC="$ac_save_CC $ac_arg"
5370  if ac_fn_c_try_compile "$LINENO"; then :
5371  ac_cv_prog_cc_c89=$ac_arg
5372fi
5373rm -f core conftest.err conftest.$ac_objext
5374  test "x$ac_cv_prog_cc_c89" != "xno" && break
5375done
5376rm -f conftest.$ac_ext
5377CC=$ac_save_CC
5378
5379fi
5380# AC_CACHE_VAL
5381case "x$ac_cv_prog_cc_c89" in
5382  x)
5383    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5384$as_echo "none needed" >&6; } ;;
5385  xno)
5386    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5387$as_echo "unsupported" >&6; } ;;
5388  *)
5389    CC="$CC $ac_cv_prog_cc_c89"
5390    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5391$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5392esac
5393if test "x$ac_cv_prog_cc_c89" != xno; then :
5394
5395fi
5396
5397ac_ext=c
5398ac_cpp='$CPP $CPPFLAGS'
5399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5401ac_compiler_gnu=$ac_cv_c_compiler_gnu
5402
5403ac_ext=c
5404ac_cpp='$CPP $CPPFLAGS'
5405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5407ac_compiler_gnu=$ac_cv_c_compiler_gnu
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5409$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5410if ${am_cv_prog_cc_c_o+:} false; then :
5411  $as_echo_n "(cached) " >&6
5412else
5413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414/* end confdefs.h.  */
5415
5416int
5417main ()
5418{
5419
5420  ;
5421  return 0;
5422}
5423_ACEOF
5424  # Make sure it works both with $CC and with simple cc.
5425  # Following AC_PROG_CC_C_O, we do the test twice because some
5426  # compilers refuse to overwrite an existing .o file with -o,
5427  # though they will create one.
5428  am_cv_prog_cc_c_o=yes
5429  for am_i in 1 2; do
5430    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5431   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5432   ac_status=$?
5433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); } \
5435         && test -f conftest2.$ac_objext; then
5436      : OK
5437    else
5438      am_cv_prog_cc_c_o=no
5439      break
5440    fi
5441  done
5442  rm -f core conftest*
5443  unset am_i
5444fi
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5446$as_echo "$am_cv_prog_cc_c_o" >&6; }
5447if test "$am_cv_prog_cc_c_o" != yes; then
5448   # Losing compiler, so override with the script.
5449   # FIXME: It is wrong to rewrite CC.
5450   # But if we don't then we get into trouble of one sort or another.
5451   # A longer-term fix would be to have automake use am__CC in this case,
5452   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5453   CC="$am_aux_dir/compile $CC"
5454fi
5455ac_ext=c
5456ac_cpp='$CPP $CPPFLAGS'
5457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5459ac_compiler_gnu=$ac_cv_c_compiler_gnu
5460
5461
5462depcc="$CC"   am_compiler_list=
5463
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5465$as_echo_n "checking dependency style of $depcc... " >&6; }
5466if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5467  $as_echo_n "(cached) " >&6
5468else
5469  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5470  # We make a subdir and do the tests there.  Otherwise we can end up
5471  # making bogus files that we don't know about and never remove.  For
5472  # instance it was reported that on HP-UX the gcc test will end up
5473  # making a dummy file named 'D' -- because '-MD' means "put the output
5474  # in D".
5475  rm -rf conftest.dir
5476  mkdir conftest.dir
5477  # Copy depcomp to subdir because otherwise we won't find it if we're
5478  # using a relative directory.
5479  cp "$am_depcomp" conftest.dir
5480  cd conftest.dir
5481  # We will build objects and dependencies in a subdirectory because
5482  # it helps to detect inapplicable dependency modes.  For instance
5483  # both Tru64's cc and ICC support -MD to output dependencies as a
5484  # side effect of compilation, but ICC will put the dependencies in
5485  # the current directory while Tru64 will put them in the object
5486  # directory.
5487  mkdir sub
5488
5489  am_cv_CC_dependencies_compiler_type=none
5490  if test "$am_compiler_list" = ""; then
5491     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5492  fi
5493  am__universal=false
5494  case " $depcc " in #(
5495     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5496     esac
5497
5498  for depmode in $am_compiler_list; do
5499    # Setup a source with many dependencies, because some compilers
5500    # like to wrap large dependency lists on column 80 (with \), and
5501    # we should not choose a depcomp mode which is confused by this.
5502    #
5503    # We need to recreate these files for each test, as the compiler may
5504    # overwrite some of them when testing with obscure command lines.
5505    # This happens at least with the AIX C compiler.
5506    : > sub/conftest.c
5507    for i in 1 2 3 4 5 6; do
5508      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5509      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5510      # Solaris 10 /bin/sh.
5511      echo '/* dummy */' > sub/conftst$i.h
5512    done
5513    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5514
5515    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5516    # mode.  It turns out that the SunPro C++ compiler does not properly
5517    # handle '-M -o', and we need to detect this.  Also, some Intel
5518    # versions had trouble with output in subdirs.
5519    am__obj=sub/conftest.${OBJEXT-o}
5520    am__minus_obj="-o $am__obj"
5521    case $depmode in
5522    gcc)
5523      # This depmode causes a compiler race in universal mode.
5524      test "$am__universal" = false || continue
5525      ;;
5526    nosideeffect)
5527      # After this tag, mechanisms are not by side-effect, so they'll
5528      # only be used when explicitly requested.
5529      if test "x$enable_dependency_tracking" = xyes; then
5530	continue
5531      else
5532	break
5533      fi
5534      ;;
5535    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5536      # This compiler won't grok '-c -o', but also, the minuso test has
5537      # not run yet.  These depmodes are late enough in the game, and
5538      # so weak that their functioning should not be impacted.
5539      am__obj=conftest.${OBJEXT-o}
5540      am__minus_obj=
5541      ;;
5542    none) break ;;
5543    esac
5544    if depmode=$depmode \
5545       source=sub/conftest.c object=$am__obj \
5546       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5547       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5548         >/dev/null 2>conftest.err &&
5549       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5550       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5551       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5552       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5553      # icc doesn't choke on unknown options, it will just issue warnings
5554      # or remarks (even with -Werror).  So we grep stderr for any message
5555      # that says an option was ignored or not supported.
5556      # When given -MP, icc 7.0 and 7.1 complain thusly:
5557      #   icc: Command line warning: ignoring option '-M'; no argument required
5558      # The diagnosis changed in icc 8.0:
5559      #   icc: Command line remark: option '-MP' not supported
5560      if (grep 'ignoring option' conftest.err ||
5561          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5562        am_cv_CC_dependencies_compiler_type=$depmode
5563        break
5564      fi
5565    fi
5566  done
5567
5568  cd ..
5569  rm -rf conftest.dir
5570else
5571  am_cv_CC_dependencies_compiler_type=none
5572fi
5573
5574fi
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5576$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5577CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5578
5579 if
5580  test "x$enable_dependency_tracking" != xno \
5581  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5582  am__fastdepCC_TRUE=
5583  am__fastdepCC_FALSE='#'
5584else
5585  am__fastdepCC_TRUE='#'
5586  am__fastdepCC_FALSE=
5587fi
5588
5589
5590ac_ext=c
5591ac_cpp='$CPP $CPPFLAGS'
5592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5594ac_compiler_gnu=$ac_cv_c_compiler_gnu
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5596$as_echo_n "checking how to run the C preprocessor... " >&6; }
5597# On Suns, sometimes $CPP names a directory.
5598if test -n "$CPP" && test -d "$CPP"; then
5599  CPP=
5600fi
5601if test -z "$CPP"; then
5602  if ${ac_cv_prog_CPP+:} false; then :
5603  $as_echo_n "(cached) " >&6
5604else
5605      # Double quotes because CPP needs to be expanded
5606    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5607    do
5608      ac_preproc_ok=false
5609for ac_c_preproc_warn_flag in '' yes
5610do
5611  # Use a header file that comes with gcc, so configuring glibc
5612  # with a fresh cross-compiler works.
5613  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5614  # <limits.h> exists even on freestanding compilers.
5615  # On the NeXT, cc -E runs the code through the compiler's parser,
5616  # not just through cpp. "Syntax error" is here to catch this case.
5617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618/* end confdefs.h.  */
5619#ifdef __STDC__
5620# include <limits.h>
5621#else
5622# include <assert.h>
5623#endif
5624		     Syntax error
5625_ACEOF
5626if ac_fn_c_try_cpp "$LINENO"; then :
5627
5628else
5629  # Broken: fails on valid input.
5630continue
5631fi
5632rm -f conftest.err conftest.i conftest.$ac_ext
5633
5634  # OK, works on sane cases.  Now check whether nonexistent headers
5635  # can be detected and how.
5636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637/* end confdefs.h.  */
5638#include <ac_nonexistent.h>
5639_ACEOF
5640if ac_fn_c_try_cpp "$LINENO"; then :
5641  # Broken: success on invalid input.
5642continue
5643else
5644  # Passes both tests.
5645ac_preproc_ok=:
5646break
5647fi
5648rm -f conftest.err conftest.i conftest.$ac_ext
5649
5650done
5651# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5652rm -f conftest.i conftest.err conftest.$ac_ext
5653if $ac_preproc_ok; then :
5654  break
5655fi
5656
5657    done
5658    ac_cv_prog_CPP=$CPP
5659
5660fi
5661  CPP=$ac_cv_prog_CPP
5662else
5663  ac_cv_prog_CPP=$CPP
5664fi
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5666$as_echo "$CPP" >&6; }
5667ac_preproc_ok=false
5668for ac_c_preproc_warn_flag in '' yes
5669do
5670  # Use a header file that comes with gcc, so configuring glibc
5671  # with a fresh cross-compiler works.
5672  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5673  # <limits.h> exists even on freestanding compilers.
5674  # On the NeXT, cc -E runs the code through the compiler's parser,
5675  # not just through cpp. "Syntax error" is here to catch this case.
5676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677/* end confdefs.h.  */
5678#ifdef __STDC__
5679# include <limits.h>
5680#else
5681# include <assert.h>
5682#endif
5683		     Syntax error
5684_ACEOF
5685if ac_fn_c_try_cpp "$LINENO"; then :
5686
5687else
5688  # Broken: fails on valid input.
5689continue
5690fi
5691rm -f conftest.err conftest.i conftest.$ac_ext
5692
5693  # OK, works on sane cases.  Now check whether nonexistent headers
5694  # can be detected and how.
5695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696/* end confdefs.h.  */
5697#include <ac_nonexistent.h>
5698_ACEOF
5699if ac_fn_c_try_cpp "$LINENO"; then :
5700  # Broken: success on invalid input.
5701continue
5702else
5703  # Passes both tests.
5704ac_preproc_ok=:
5705break
5706fi
5707rm -f conftest.err conftest.i conftest.$ac_ext
5708
5709done
5710# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5711rm -f conftest.i conftest.err conftest.$ac_ext
5712if $ac_preproc_ok; then :
5713
5714else
5715  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5717as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5718See \`config.log' for more details" "$LINENO" 5; }
5719fi
5720
5721ac_ext=c
5722ac_cpp='$CPP $CPPFLAGS'
5723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5725ac_compiler_gnu=$ac_cv_c_compiler_gnu
5726
5727ac_ext=m
5728ac_cpp='$OBJCPP $CPPFLAGS'
5729ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731ac_compiler_gnu=$ac_cv_objc_compiler_gnu
5732if test -n "$ac_tool_prefix"; then
5733  for ac_prog in gcc objcc objc cc CC
5734  do
5735    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5736set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738$as_echo_n "checking for $ac_word... " >&6; }
5739if ${ac_cv_prog_OBJC+:} false; then :
5740  $as_echo_n "(cached) " >&6
5741else
5742  if test -n "$OBJC"; then
5743  ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
5744else
5745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746for as_dir in $PATH
5747do
5748  IFS=$as_save_IFS
5749  test -z "$as_dir" && as_dir=.
5750    for ac_exec_ext in '' $ac_executable_extensions; do
5751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5752    ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
5753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754    break 2
5755  fi
5756done
5757  done
5758IFS=$as_save_IFS
5759
5760fi
5761fi
5762OBJC=$ac_cv_prog_OBJC
5763if test -n "$OBJC"; then
5764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
5765$as_echo "$OBJC" >&6; }
5766else
5767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768$as_echo "no" >&6; }
5769fi
5770
5771
5772    test -n "$OBJC" && break
5773  done
5774fi
5775if test -z "$OBJC"; then
5776  ac_ct_OBJC=$OBJC
5777  for ac_prog in gcc objcc objc cc CC
5778do
5779  # Extract the first word of "$ac_prog", so it can be a program name with args.
5780set dummy $ac_prog; ac_word=$2
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5782$as_echo_n "checking for $ac_word... " >&6; }
5783if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
5784  $as_echo_n "(cached) " >&6
5785else
5786  if test -n "$ac_ct_OBJC"; then
5787  ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
5788else
5789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790for as_dir in $PATH
5791do
5792  IFS=$as_save_IFS
5793  test -z "$as_dir" && as_dir=.
5794    for ac_exec_ext in '' $ac_executable_extensions; do
5795  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5796    ac_cv_prog_ac_ct_OBJC="$ac_prog"
5797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5798    break 2
5799  fi
5800done
5801  done
5802IFS=$as_save_IFS
5803
5804fi
5805fi
5806ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
5807if test -n "$ac_ct_OBJC"; then
5808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
5809$as_echo "$ac_ct_OBJC" >&6; }
5810else
5811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812$as_echo "no" >&6; }
5813fi
5814
5815
5816  test -n "$ac_ct_OBJC" && break
5817done
5818
5819  if test "x$ac_ct_OBJC" = x; then
5820    OBJC="gcc"
5821  else
5822    case $cross_compiling:$ac_tool_warned in
5823yes:)
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5826ac_tool_warned=yes ;;
5827esac
5828    OBJC=$ac_ct_OBJC
5829  fi
5830fi
5831
5832# Provide some information about the compiler.
5833$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
5834set X $ac_compile
5835ac_compiler=$2
5836for ac_option in --version -v -V -qversion; do
5837  { { ac_try="$ac_compiler $ac_option >&5"
5838case "(($ac_try" in
5839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840  *) ac_try_echo=$ac_try;;
5841esac
5842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5843$as_echo "$ac_try_echo"; } >&5
5844  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5845  ac_status=$?
5846  if test -s conftest.err; then
5847    sed '10a\
5848... rest of stderr output deleted ...
5849         10q' conftest.err >conftest.er1
5850    cat conftest.er1 >&5
5851  fi
5852  rm -f conftest.er1 conftest.err
5853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5854  test $ac_status = 0; }
5855done
5856
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
5858$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
5859if ${ac_cv_objc_compiler_gnu+:} false; then :
5860  $as_echo_n "(cached) " >&6
5861else
5862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863/* end confdefs.h.  */
5864
5865int
5866main ()
5867{
5868#ifndef __GNUC__
5869       choke me
5870#endif
5871
5872  ;
5873  return 0;
5874}
5875_ACEOF
5876if ac_fn_objc_try_compile "$LINENO"; then :
5877  ac_compiler_gnu=yes
5878else
5879  ac_compiler_gnu=no
5880fi
5881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882ac_cv_objc_compiler_gnu=$ac_compiler_gnu
5883
5884fi
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
5886$as_echo "$ac_cv_objc_compiler_gnu" >&6; }
5887if test $ac_compiler_gnu = yes; then
5888  GOBJC=yes
5889else
5890  GOBJC=
5891fi
5892ac_test_OBJCFLAGS=${OBJCFLAGS+set}
5893ac_save_OBJCFLAGS=$OBJCFLAGS
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
5895$as_echo_n "checking whether $OBJC accepts -g... " >&6; }
5896if ${ac_cv_prog_objc_g+:} false; then :
5897  $as_echo_n "(cached) " >&6
5898else
5899  ac_save_objc_werror_flag=$ac_objc_werror_flag
5900   ac_objc_werror_flag=yes
5901   ac_cv_prog_objc_g=no
5902   OBJCFLAGS="-g"
5903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904/* end confdefs.h.  */
5905
5906int
5907main ()
5908{
5909
5910  ;
5911  return 0;
5912}
5913_ACEOF
5914if ac_fn_objc_try_compile "$LINENO"; then :
5915  ac_cv_prog_objc_g=yes
5916else
5917  OBJCFLAGS=""
5918      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919/* end confdefs.h.  */
5920
5921int
5922main ()
5923{
5924
5925  ;
5926  return 0;
5927}
5928_ACEOF
5929if ac_fn_objc_try_compile "$LINENO"; then :
5930
5931else
5932  ac_objc_werror_flag=$ac_save_objc_werror_flag
5933	 OBJCFLAGS="-g"
5934	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935/* end confdefs.h.  */
5936
5937int
5938main ()
5939{
5940
5941  ;
5942  return 0;
5943}
5944_ACEOF
5945if ac_fn_objc_try_compile "$LINENO"; then :
5946  ac_cv_prog_objc_g=yes
5947fi
5948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949fi
5950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951fi
5952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953   ac_objc_werror_flag=$ac_save_objc_werror_flag
5954fi
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
5956$as_echo "$ac_cv_prog_objc_g" >&6; }
5957if test "$ac_test_OBJCFLAGS" = set; then
5958  OBJCFLAGS=$ac_save_OBJCFLAGS
5959elif test $ac_cv_prog_objc_g = yes; then
5960  if test "$GOBJC" = yes; then
5961    OBJCFLAGS="-g -O2"
5962  else
5963    OBJCFLAGS="-g"
5964  fi
5965else
5966  if test "$GOBJC" = yes; then
5967    OBJCFLAGS="-O2"
5968  else
5969    OBJCFLAGS=
5970  fi
5971fi
5972ac_ext=c
5973ac_cpp='$CPP $CPPFLAGS'
5974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5976ac_compiler_gnu=$ac_cv_c_compiler_gnu
5977
5978depcc="$OBJC" am_compiler_list='gcc3 gcc'
5979
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5981$as_echo_n "checking dependency style of $depcc... " >&6; }
5982if ${am_cv_OBJC_dependencies_compiler_type+:} false; then :
5983  $as_echo_n "(cached) " >&6
5984else
5985  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5986  # We make a subdir and do the tests there.  Otherwise we can end up
5987  # making bogus files that we don't know about and never remove.  For
5988  # instance it was reported that on HP-UX the gcc test will end up
5989  # making a dummy file named 'D' -- because '-MD' means "put the output
5990  # in D".
5991  rm -rf conftest.dir
5992  mkdir conftest.dir
5993  # Copy depcomp to subdir because otherwise we won't find it if we're
5994  # using a relative directory.
5995  cp "$am_depcomp" conftest.dir
5996  cd conftest.dir
5997  # We will build objects and dependencies in a subdirectory because
5998  # it helps to detect inapplicable dependency modes.  For instance
5999  # both Tru64's cc and ICC support -MD to output dependencies as a
6000  # side effect of compilation, but ICC will put the dependencies in
6001  # the current directory while Tru64 will put them in the object
6002  # directory.
6003  mkdir sub
6004
6005  am_cv_OBJC_dependencies_compiler_type=none
6006  if test "$am_compiler_list" = ""; then
6007     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6008  fi
6009  am__universal=false
6010
6011
6012  for depmode in $am_compiler_list; do
6013    # Setup a source with many dependencies, because some compilers
6014    # like to wrap large dependency lists on column 80 (with \), and
6015    # we should not choose a depcomp mode which is confused by this.
6016    #
6017    # We need to recreate these files for each test, as the compiler may
6018    # overwrite some of them when testing with obscure command lines.
6019    # This happens at least with the AIX C compiler.
6020    : > sub/conftest.c
6021    for i in 1 2 3 4 5 6; do
6022      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6023      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6024      # Solaris 10 /bin/sh.
6025      echo '/* dummy */' > sub/conftst$i.h
6026    done
6027    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6028
6029    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6030    # mode.  It turns out that the SunPro C++ compiler does not properly
6031    # handle '-M -o', and we need to detect this.  Also, some Intel
6032    # versions had trouble with output in subdirs.
6033    am__obj=sub/conftest.${OBJEXT-o}
6034    am__minus_obj="-o $am__obj"
6035    case $depmode in
6036    gcc)
6037      # This depmode causes a compiler race in universal mode.
6038      test "$am__universal" = false || continue
6039      ;;
6040    nosideeffect)
6041      # After this tag, mechanisms are not by side-effect, so they'll
6042      # only be used when explicitly requested.
6043      if test "x$enable_dependency_tracking" = xyes; then
6044	continue
6045      else
6046	break
6047      fi
6048      ;;
6049    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6050      # This compiler won't grok '-c -o', but also, the minuso test has
6051      # not run yet.  These depmodes are late enough in the game, and
6052      # so weak that their functioning should not be impacted.
6053      am__obj=conftest.${OBJEXT-o}
6054      am__minus_obj=
6055      ;;
6056    none) break ;;
6057    esac
6058    if depmode=$depmode \
6059       source=sub/conftest.c object=$am__obj \
6060       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6061       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6062         >/dev/null 2>conftest.err &&
6063       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6064       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6065       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6066       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6067      # icc doesn't choke on unknown options, it will just issue warnings
6068      # or remarks (even with -Werror).  So we grep stderr for any message
6069      # that says an option was ignored or not supported.
6070      # When given -MP, icc 7.0 and 7.1 complain thusly:
6071      #   icc: Command line warning: ignoring option '-M'; no argument required
6072      # The diagnosis changed in icc 8.0:
6073      #   icc: Command line remark: option '-MP' not supported
6074      if (grep 'ignoring option' conftest.err ||
6075          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6076        am_cv_OBJC_dependencies_compiler_type=$depmode
6077        break
6078      fi
6079    fi
6080  done
6081
6082  cd ..
6083  rm -rf conftest.dir
6084else
6085  am_cv_OBJC_dependencies_compiler_type=none
6086fi
6087
6088fi
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
6090$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
6091OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
6092
6093 if
6094  test "x$enable_dependency_tracking" != xno \
6095  && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
6096  am__fastdepOBJC_TRUE=
6097  am__fastdepOBJC_FALSE='#'
6098else
6099  am__fastdepOBJC_TRUE='#'
6100  am__fastdepOBJC_FALSE=
6101fi
6102
6103
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6105$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6106if ${ac_cv_c_const+:} false; then :
6107  $as_echo_n "(cached) " >&6
6108else
6109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110/* end confdefs.h.  */
6111
6112int
6113main ()
6114{
6115
6116#ifndef __cplusplus
6117  /* Ultrix mips cc rejects this sort of thing.  */
6118  typedef int charset[2];
6119  const charset cs = { 0, 0 };
6120  /* SunOS 4.1.1 cc rejects this.  */
6121  char const *const *pcpcc;
6122  char **ppc;
6123  /* NEC SVR4.0.2 mips cc rejects this.  */
6124  struct point {int x, y;};
6125  static struct point const zero = {0,0};
6126  /* AIX XL C 1.02.0.0 rejects this.
6127     It does not let you subtract one const X* pointer from another in
6128     an arm of an if-expression whose if-part is not a constant
6129     expression */
6130  const char *g = "string";
6131  pcpcc = &g + (g ? g-g : 0);
6132  /* HPUX 7.0 cc rejects these. */
6133  ++pcpcc;
6134  ppc = (char**) pcpcc;
6135  pcpcc = (char const *const *) ppc;
6136  { /* SCO 3.2v4 cc rejects this sort of thing.  */
6137    char tx;
6138    char *t = &tx;
6139    char const *s = 0 ? (char *) 0 : (char const *) 0;
6140
6141    *t++ = 0;
6142    if (s) return 0;
6143  }
6144  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6145    int x[] = {25, 17};
6146    const int *foo = &x[0];
6147    ++foo;
6148  }
6149  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6150    typedef const int *iptr;
6151    iptr p = 0;
6152    ++p;
6153  }
6154  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6155       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6156    struct s { int j; const int *ap[3]; } bx;
6157    struct s *b = &bx; b->j = 5;
6158  }
6159  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6160    const int foo = 10;
6161    if (!foo) return 0;
6162  }
6163  return !cs[0] && !zero.x;
6164#endif
6165
6166  ;
6167  return 0;
6168}
6169_ACEOF
6170if ac_fn_c_try_compile "$LINENO"; then :
6171  ac_cv_c_const=yes
6172else
6173  ac_cv_c_const=no
6174fi
6175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176fi
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6178$as_echo "$ac_cv_c_const" >&6; }
6179if test $ac_cv_c_const = no; then
6180
6181$as_echo "#define const /**/" >>confdefs.h
6182
6183fi
6184
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6186$as_echo_n "checking for inline... " >&6; }
6187if ${ac_cv_c_inline+:} false; then :
6188  $as_echo_n "(cached) " >&6
6189else
6190  ac_cv_c_inline=no
6191for ac_kw in inline __inline__ __inline; do
6192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193/* end confdefs.h.  */
6194#ifndef __cplusplus
6195typedef int foo_t;
6196static $ac_kw foo_t static_foo () {return 0; }
6197$ac_kw foo_t foo () {return 0; }
6198#endif
6199
6200_ACEOF
6201if ac_fn_c_try_compile "$LINENO"; then :
6202  ac_cv_c_inline=$ac_kw
6203fi
6204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205  test "$ac_cv_c_inline" != no && break
6206done
6207
6208fi
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6210$as_echo "$ac_cv_c_inline" >&6; }
6211
6212case $ac_cv_c_inline in
6213  inline | yes) ;;
6214  *)
6215    case $ac_cv_c_inline in
6216      no) ac_val=;;
6217      *) ac_val=$ac_cv_c_inline;;
6218    esac
6219    cat >>confdefs.h <<_ACEOF
6220#ifndef __cplusplus
6221#define inline $ac_val
6222#endif
6223_ACEOF
6224    ;;
6225esac
6226
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
6228$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
6229if ${ac_cv_c_stringize+:} false; then :
6230  $as_echo_n "(cached) " >&6
6231else
6232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233/* end confdefs.h.  */
6234#define x(y) #y
6235
6236char *s = x(teststring);
6237_ACEOF
6238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6239  $EGREP "#teststring" >/dev/null 2>&1; then :
6240  ac_cv_c_stringize=no
6241else
6242  ac_cv_c_stringize=yes
6243fi
6244rm -f conftest*
6245
6246fi
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
6248$as_echo "$ac_cv_c_stringize" >&6; }
6249if test $ac_cv_c_stringize = yes; then
6250
6251$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
6252
6253fi
6254
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6256$as_echo_n "checking whether ln -s works... " >&6; }
6257LN_S=$as_ln_s
6258if test "$LN_S" = "ln -s"; then
6259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6260$as_echo "yes" >&6; }
6261else
6262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6263$as_echo "no, using $LN_S" >&6; }
6264fi
6265
6266
6267if test "${build}" != "${host}"
6268then
6269  CC=${CC-${host_alias-gcc}}
6270  CFLAGS=${CFLAGS-"-g -O2"}
6271  CXX=${CXX-${host_alias-c++}}
6272  CXXFLAGS=${CXXFLAGS-"-g -O2"}
6273  CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
6274else
6275  # The cross-compilation patch originally had CC_FOR_BUILD = "\$(CC)"
6276  # but that causes a recursive definition in docs/Makefile. EAM Dec 2009.
6277  CC_FOR_BUILD="${CC}"
6278  ac_ext=c
6279ac_cpp='$CPP $CPPFLAGS'
6280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6282ac_compiler_gnu=$ac_cv_c_compiler_gnu
6283if test -n "$ac_tool_prefix"; then
6284  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6285set dummy ${ac_tool_prefix}gcc; ac_word=$2
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287$as_echo_n "checking for $ac_word... " >&6; }
6288if ${ac_cv_prog_CC+:} false; then :
6289  $as_echo_n "(cached) " >&6
6290else
6291  if test -n "$CC"; then
6292  ac_cv_prog_CC="$CC" # Let the user override the test.
6293else
6294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295for as_dir in $PATH
6296do
6297  IFS=$as_save_IFS
6298  test -z "$as_dir" && as_dir=.
6299    for ac_exec_ext in '' $ac_executable_extensions; do
6300  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6301    ac_cv_prog_CC="${ac_tool_prefix}gcc"
6302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303    break 2
6304  fi
6305done
6306  done
6307IFS=$as_save_IFS
6308
6309fi
6310fi
6311CC=$ac_cv_prog_CC
6312if test -n "$CC"; then
6313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6314$as_echo "$CC" >&6; }
6315else
6316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317$as_echo "no" >&6; }
6318fi
6319
6320
6321fi
6322if test -z "$ac_cv_prog_CC"; then
6323  ac_ct_CC=$CC
6324  # Extract the first word of "gcc", so it can be a program name with args.
6325set dummy gcc; ac_word=$2
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327$as_echo_n "checking for $ac_word... " >&6; }
6328if ${ac_cv_prog_ac_ct_CC+:} false; then :
6329  $as_echo_n "(cached) " >&6
6330else
6331  if test -n "$ac_ct_CC"; then
6332  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6333else
6334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335for as_dir in $PATH
6336do
6337  IFS=$as_save_IFS
6338  test -z "$as_dir" && as_dir=.
6339    for ac_exec_ext in '' $ac_executable_extensions; do
6340  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6341    ac_cv_prog_ac_ct_CC="gcc"
6342    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343    break 2
6344  fi
6345done
6346  done
6347IFS=$as_save_IFS
6348
6349fi
6350fi
6351ac_ct_CC=$ac_cv_prog_ac_ct_CC
6352if test -n "$ac_ct_CC"; then
6353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6354$as_echo "$ac_ct_CC" >&6; }
6355else
6356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357$as_echo "no" >&6; }
6358fi
6359
6360  if test "x$ac_ct_CC" = x; then
6361    CC=""
6362  else
6363    case $cross_compiling:$ac_tool_warned in
6364yes:)
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6367ac_tool_warned=yes ;;
6368esac
6369    CC=$ac_ct_CC
6370  fi
6371else
6372  CC="$ac_cv_prog_CC"
6373fi
6374
6375if test -z "$CC"; then
6376          if test -n "$ac_tool_prefix"; then
6377    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6378set dummy ${ac_tool_prefix}cc; ac_word=$2
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380$as_echo_n "checking for $ac_word... " >&6; }
6381if ${ac_cv_prog_CC+:} false; then :
6382  $as_echo_n "(cached) " >&6
6383else
6384  if test -n "$CC"; then
6385  ac_cv_prog_CC="$CC" # Let the user override the test.
6386else
6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390  IFS=$as_save_IFS
6391  test -z "$as_dir" && as_dir=.
6392    for ac_exec_ext in '' $ac_executable_extensions; do
6393  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394    ac_cv_prog_CC="${ac_tool_prefix}cc"
6395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396    break 2
6397  fi
6398done
6399  done
6400IFS=$as_save_IFS
6401
6402fi
6403fi
6404CC=$ac_cv_prog_CC
6405if test -n "$CC"; then
6406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6407$as_echo "$CC" >&6; }
6408else
6409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410$as_echo "no" >&6; }
6411fi
6412
6413
6414  fi
6415fi
6416if test -z "$CC"; then
6417  # Extract the first word of "cc", so it can be a program name with args.
6418set dummy cc; ac_word=$2
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420$as_echo_n "checking for $ac_word... " >&6; }
6421if ${ac_cv_prog_CC+:} false; then :
6422  $as_echo_n "(cached) " >&6
6423else
6424  if test -n "$CC"; then
6425  ac_cv_prog_CC="$CC" # Let the user override the test.
6426else
6427  ac_prog_rejected=no
6428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429for as_dir in $PATH
6430do
6431  IFS=$as_save_IFS
6432  test -z "$as_dir" && as_dir=.
6433    for ac_exec_ext in '' $ac_executable_extensions; do
6434  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6435    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6436       ac_prog_rejected=yes
6437       continue
6438     fi
6439    ac_cv_prog_CC="cc"
6440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6441    break 2
6442  fi
6443done
6444  done
6445IFS=$as_save_IFS
6446
6447if test $ac_prog_rejected = yes; then
6448  # We found a bogon in the path, so make sure we never use it.
6449  set dummy $ac_cv_prog_CC
6450  shift
6451  if test $# != 0; then
6452    # We chose a different compiler from the bogus one.
6453    # However, it has the same basename, so the bogon will be chosen
6454    # first if we set CC to just the basename; use the full file name.
6455    shift
6456    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6457  fi
6458fi
6459fi
6460fi
6461CC=$ac_cv_prog_CC
6462if test -n "$CC"; then
6463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6464$as_echo "$CC" >&6; }
6465else
6466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467$as_echo "no" >&6; }
6468fi
6469
6470
6471fi
6472if test -z "$CC"; then
6473  if test -n "$ac_tool_prefix"; then
6474  for ac_prog in cl.exe
6475  do
6476    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6477set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479$as_echo_n "checking for $ac_word... " >&6; }
6480if ${ac_cv_prog_CC+:} false; then :
6481  $as_echo_n "(cached) " >&6
6482else
6483  if test -n "$CC"; then
6484  ac_cv_prog_CC="$CC" # Let the user override the test.
6485else
6486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487for as_dir in $PATH
6488do
6489  IFS=$as_save_IFS
6490  test -z "$as_dir" && as_dir=.
6491    for ac_exec_ext in '' $ac_executable_extensions; do
6492  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6493    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495    break 2
6496  fi
6497done
6498  done
6499IFS=$as_save_IFS
6500
6501fi
6502fi
6503CC=$ac_cv_prog_CC
6504if test -n "$CC"; then
6505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6506$as_echo "$CC" >&6; }
6507else
6508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509$as_echo "no" >&6; }
6510fi
6511
6512
6513    test -n "$CC" && break
6514  done
6515fi
6516if test -z "$CC"; then
6517  ac_ct_CC=$CC
6518  for ac_prog in cl.exe
6519do
6520  # Extract the first word of "$ac_prog", so it can be a program name with args.
6521set dummy $ac_prog; ac_word=$2
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523$as_echo_n "checking for $ac_word... " >&6; }
6524if ${ac_cv_prog_ac_ct_CC+:} false; then :
6525  $as_echo_n "(cached) " >&6
6526else
6527  if test -n "$ac_ct_CC"; then
6528  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6529else
6530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531for as_dir in $PATH
6532do
6533  IFS=$as_save_IFS
6534  test -z "$as_dir" && as_dir=.
6535    for ac_exec_ext in '' $ac_executable_extensions; do
6536  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6537    ac_cv_prog_ac_ct_CC="$ac_prog"
6538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539    break 2
6540  fi
6541done
6542  done
6543IFS=$as_save_IFS
6544
6545fi
6546fi
6547ac_ct_CC=$ac_cv_prog_ac_ct_CC
6548if test -n "$ac_ct_CC"; then
6549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6550$as_echo "$ac_ct_CC" >&6; }
6551else
6552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553$as_echo "no" >&6; }
6554fi
6555
6556
6557  test -n "$ac_ct_CC" && break
6558done
6559
6560  if test "x$ac_ct_CC" = x; then
6561    CC=""
6562  else
6563    case $cross_compiling:$ac_tool_warned in
6564yes:)
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6567ac_tool_warned=yes ;;
6568esac
6569    CC=$ac_ct_CC
6570  fi
6571fi
6572
6573fi
6574
6575
6576test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6578as_fn_error $? "no acceptable C compiler found in \$PATH
6579See \`config.log' for more details" "$LINENO" 5; }
6580
6581# Provide some information about the compiler.
6582$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6583set X $ac_compile
6584ac_compiler=$2
6585for ac_option in --version -v -V -qversion; do
6586  { { ac_try="$ac_compiler $ac_option >&5"
6587case "(($ac_try" in
6588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589  *) ac_try_echo=$ac_try;;
6590esac
6591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6592$as_echo "$ac_try_echo"; } >&5
6593  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6594  ac_status=$?
6595  if test -s conftest.err; then
6596    sed '10a\
6597... rest of stderr output deleted ...
6598         10q' conftest.err >conftest.er1
6599    cat conftest.er1 >&5
6600  fi
6601  rm -f conftest.er1 conftest.err
6602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6603  test $ac_status = 0; }
6604done
6605
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6607$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6608if ${ac_cv_c_compiler_gnu+:} false; then :
6609  $as_echo_n "(cached) " >&6
6610else
6611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612/* end confdefs.h.  */
6613
6614int
6615main ()
6616{
6617#ifndef __GNUC__
6618       choke me
6619#endif
6620
6621  ;
6622  return 0;
6623}
6624_ACEOF
6625if ac_fn_c_try_compile "$LINENO"; then :
6626  ac_compiler_gnu=yes
6627else
6628  ac_compiler_gnu=no
6629fi
6630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6631ac_cv_c_compiler_gnu=$ac_compiler_gnu
6632
6633fi
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6635$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6636if test $ac_compiler_gnu = yes; then
6637  GCC=yes
6638else
6639  GCC=
6640fi
6641ac_test_CFLAGS=${CFLAGS+set}
6642ac_save_CFLAGS=$CFLAGS
6643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6644$as_echo_n "checking whether $CC accepts -g... " >&6; }
6645if ${ac_cv_prog_cc_g+:} false; then :
6646  $as_echo_n "(cached) " >&6
6647else
6648  ac_save_c_werror_flag=$ac_c_werror_flag
6649   ac_c_werror_flag=yes
6650   ac_cv_prog_cc_g=no
6651   CFLAGS="-g"
6652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653/* end confdefs.h.  */
6654
6655int
6656main ()
6657{
6658
6659  ;
6660  return 0;
6661}
6662_ACEOF
6663if ac_fn_c_try_compile "$LINENO"; then :
6664  ac_cv_prog_cc_g=yes
6665else
6666  CFLAGS=""
6667      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668/* end confdefs.h.  */
6669
6670int
6671main ()
6672{
6673
6674  ;
6675  return 0;
6676}
6677_ACEOF
6678if ac_fn_c_try_compile "$LINENO"; then :
6679
6680else
6681  ac_c_werror_flag=$ac_save_c_werror_flag
6682	 CFLAGS="-g"
6683	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684/* end confdefs.h.  */
6685
6686int
6687main ()
6688{
6689
6690  ;
6691  return 0;
6692}
6693_ACEOF
6694if ac_fn_c_try_compile "$LINENO"; then :
6695  ac_cv_prog_cc_g=yes
6696fi
6697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6698fi
6699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700fi
6701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702   ac_c_werror_flag=$ac_save_c_werror_flag
6703fi
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6705$as_echo "$ac_cv_prog_cc_g" >&6; }
6706if test "$ac_test_CFLAGS" = set; then
6707  CFLAGS=$ac_save_CFLAGS
6708elif test $ac_cv_prog_cc_g = yes; then
6709  if test "$GCC" = yes; then
6710    CFLAGS="-g -O2"
6711  else
6712    CFLAGS="-g"
6713  fi
6714else
6715  if test "$GCC" = yes; then
6716    CFLAGS="-O2"
6717  else
6718    CFLAGS=
6719  fi
6720fi
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6722$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6723if ${ac_cv_prog_cc_c89+:} false; then :
6724  $as_echo_n "(cached) " >&6
6725else
6726  ac_cv_prog_cc_c89=no
6727ac_save_CC=$CC
6728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729/* end confdefs.h.  */
6730#include <stdarg.h>
6731#include <stdio.h>
6732struct stat;
6733/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6734struct buf { int x; };
6735FILE * (*rcsopen) (struct buf *, struct stat *, int);
6736static char *e (p, i)
6737     char **p;
6738     int i;
6739{
6740  return p[i];
6741}
6742static char *f (char * (*g) (char **, int), char **p, ...)
6743{
6744  char *s;
6745  va_list v;
6746  va_start (v,p);
6747  s = g (p, va_arg (v,int));
6748  va_end (v);
6749  return s;
6750}
6751
6752/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6753   function prototypes and stuff, but not '\xHH' hex character constants.
6754   These don't provoke an error unfortunately, instead are silently treated
6755   as 'x'.  The following induces an error, until -std is added to get
6756   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6757   array size at least.  It's necessary to write '\x00'==0 to get something
6758   that's true only with -std.  */
6759int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6760
6761/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6762   inside strings and character constants.  */
6763#define FOO(x) 'x'
6764int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6765
6766int test (int i, double x);
6767struct s1 {int (*f) (int a);};
6768struct s2 {int (*f) (double a);};
6769int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6770int argc;
6771char **argv;
6772int
6773main ()
6774{
6775return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6776  ;
6777  return 0;
6778}
6779_ACEOF
6780for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6781	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6782do
6783  CC="$ac_save_CC $ac_arg"
6784  if ac_fn_c_try_compile "$LINENO"; then :
6785  ac_cv_prog_cc_c89=$ac_arg
6786fi
6787rm -f core conftest.err conftest.$ac_objext
6788  test "x$ac_cv_prog_cc_c89" != "xno" && break
6789done
6790rm -f conftest.$ac_ext
6791CC=$ac_save_CC
6792
6793fi
6794# AC_CACHE_VAL
6795case "x$ac_cv_prog_cc_c89" in
6796  x)
6797    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6798$as_echo "none needed" >&6; } ;;
6799  xno)
6800    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6801$as_echo "unsupported" >&6; } ;;
6802  *)
6803    CC="$CC $ac_cv_prog_cc_c89"
6804    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6805$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6806esac
6807if test "x$ac_cv_prog_cc_c89" != xno; then :
6808
6809fi
6810
6811ac_ext=c
6812ac_cpp='$CPP $CPPFLAGS'
6813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6815ac_compiler_gnu=$ac_cv_c_compiler_gnu
6816
6817ac_ext=c
6818ac_cpp='$CPP $CPPFLAGS'
6819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821ac_compiler_gnu=$ac_cv_c_compiler_gnu
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6823$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6824if ${am_cv_prog_cc_c_o+:} false; then :
6825  $as_echo_n "(cached) " >&6
6826else
6827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828/* end confdefs.h.  */
6829
6830int
6831main ()
6832{
6833
6834  ;
6835  return 0;
6836}
6837_ACEOF
6838  # Make sure it works both with $CC and with simple cc.
6839  # Following AC_PROG_CC_C_O, we do the test twice because some
6840  # compilers refuse to overwrite an existing .o file with -o,
6841  # though they will create one.
6842  am_cv_prog_cc_c_o=yes
6843  for am_i in 1 2; do
6844    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6845   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6846   ac_status=$?
6847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848   (exit $ac_status); } \
6849         && test -f conftest2.$ac_objext; then
6850      : OK
6851    else
6852      am_cv_prog_cc_c_o=no
6853      break
6854    fi
6855  done
6856  rm -f core conftest*
6857  unset am_i
6858fi
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6860$as_echo "$am_cv_prog_cc_c_o" >&6; }
6861if test "$am_cv_prog_cc_c_o" != yes; then
6862   # Losing compiler, so override with the script.
6863   # FIXME: It is wrong to rewrite CC.
6864   # But if we don't then we get into trouble of one sort or another.
6865   # A longer-term fix would be to have automake use am__CC in this case,
6866   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6867   CC="$am_aux_dir/compile $CC"
6868fi
6869ac_ext=c
6870ac_cpp='$CPP $CPPFLAGS'
6871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6873ac_compiler_gnu=$ac_cv_c_compiler_gnu
6874
6875
6876depcc="$CC"   am_compiler_list=
6877
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6879$as_echo_n "checking dependency style of $depcc... " >&6; }
6880if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6881  $as_echo_n "(cached) " >&6
6882else
6883  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6884  # We make a subdir and do the tests there.  Otherwise we can end up
6885  # making bogus files that we don't know about and never remove.  For
6886  # instance it was reported that on HP-UX the gcc test will end up
6887  # making a dummy file named 'D' -- because '-MD' means "put the output
6888  # in D".
6889  rm -rf conftest.dir
6890  mkdir conftest.dir
6891  # Copy depcomp to subdir because otherwise we won't find it if we're
6892  # using a relative directory.
6893  cp "$am_depcomp" conftest.dir
6894  cd conftest.dir
6895  # We will build objects and dependencies in a subdirectory because
6896  # it helps to detect inapplicable dependency modes.  For instance
6897  # both Tru64's cc and ICC support -MD to output dependencies as a
6898  # side effect of compilation, but ICC will put the dependencies in
6899  # the current directory while Tru64 will put them in the object
6900  # directory.
6901  mkdir sub
6902
6903  am_cv_CC_dependencies_compiler_type=none
6904  if test "$am_compiler_list" = ""; then
6905     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6906  fi
6907  am__universal=false
6908  case " $depcc " in #(
6909     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6910     esac
6911
6912  for depmode in $am_compiler_list; do
6913    # Setup a source with many dependencies, because some compilers
6914    # like to wrap large dependency lists on column 80 (with \), and
6915    # we should not choose a depcomp mode which is confused by this.
6916    #
6917    # We need to recreate these files for each test, as the compiler may
6918    # overwrite some of them when testing with obscure command lines.
6919    # This happens at least with the AIX C compiler.
6920    : > sub/conftest.c
6921    for i in 1 2 3 4 5 6; do
6922      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6923      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6924      # Solaris 10 /bin/sh.
6925      echo '/* dummy */' > sub/conftst$i.h
6926    done
6927    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6928
6929    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6930    # mode.  It turns out that the SunPro C++ compiler does not properly
6931    # handle '-M -o', and we need to detect this.  Also, some Intel
6932    # versions had trouble with output in subdirs.
6933    am__obj=sub/conftest.${OBJEXT-o}
6934    am__minus_obj="-o $am__obj"
6935    case $depmode in
6936    gcc)
6937      # This depmode causes a compiler race in universal mode.
6938      test "$am__universal" = false || continue
6939      ;;
6940    nosideeffect)
6941      # After this tag, mechanisms are not by side-effect, so they'll
6942      # only be used when explicitly requested.
6943      if test "x$enable_dependency_tracking" = xyes; then
6944	continue
6945      else
6946	break
6947      fi
6948      ;;
6949    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6950      # This compiler won't grok '-c -o', but also, the minuso test has
6951      # not run yet.  These depmodes are late enough in the game, and
6952      # so weak that their functioning should not be impacted.
6953      am__obj=conftest.${OBJEXT-o}
6954      am__minus_obj=
6955      ;;
6956    none) break ;;
6957    esac
6958    if depmode=$depmode \
6959       source=sub/conftest.c object=$am__obj \
6960       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6961       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6962         >/dev/null 2>conftest.err &&
6963       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6964       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6965       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6966       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6967      # icc doesn't choke on unknown options, it will just issue warnings
6968      # or remarks (even with -Werror).  So we grep stderr for any message
6969      # that says an option was ignored or not supported.
6970      # When given -MP, icc 7.0 and 7.1 complain thusly:
6971      #   icc: Command line warning: ignoring option '-M'; no argument required
6972      # The diagnosis changed in icc 8.0:
6973      #   icc: Command line remark: option '-MP' not supported
6974      if (grep 'ignoring option' conftest.err ||
6975          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6976        am_cv_CC_dependencies_compiler_type=$depmode
6977        break
6978      fi
6979    fi
6980  done
6981
6982  cd ..
6983  rm -rf conftest.dir
6984else
6985  am_cv_CC_dependencies_compiler_type=none
6986fi
6987
6988fi
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6990$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6991CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6992
6993 if
6994  test "x$enable_dependency_tracking" != xno \
6995  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6996  am__fastdepCC_TRUE=
6997  am__fastdepCC_FALSE='#'
6998else
6999  am__fastdepCC_TRUE='#'
7000  am__fastdepCC_FALSE=
7001fi
7002
7003
7004
7005  # We must set the default linker to the linker used by gcc for the correct
7006  # operation of libtool.  If LD is not defined and we are using gcc, try to
7007  # set the LD default to the ld used by gcc.
7008  if test -z "$LD"
7009  then
7010    if test "$GCC" = yes
7011    then
7012      case $build in
7013      *-*-mingw*)
7014        gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
7015      *)
7016        gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
7017      esac
7018      case $gcc_prog_ld in
7019      # Accept absolute paths.
7020      [\\/]* | [A-Za-z]:[\\/]*)
7021        LD="$gcc_prog_ld" ;;
7022      esac
7023    fi
7024  fi
7025
7026  CXX=${CXX-"c++"}
7027  CFLAGS=${CFLAGS-"-g -O2"}
7028  CXXFLAGS=${CXXFLAGS-"-g -O2"}
7029fi
7030
7031
7032
7033ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7034if test "x$ac_cv_type_off_t" = xyes; then :
7035
7036cat >>confdefs.h <<_ACEOF
7037#define HAVE_OFF_T 1
7038_ACEOF
7039
7040
7041fi
7042
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7044$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
7045if ${ac_cv_sys_largefile_source+:} false; then :
7046  $as_echo_n "(cached) " >&6
7047else
7048  while :; do
7049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050/* end confdefs.h.  */
7051#include <sys/types.h> /* for off_t */
7052     #include <stdio.h>
7053int
7054main ()
7055{
7056int (*fp) (FILE *, off_t, int) = fseeko;
7057     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7058  ;
7059  return 0;
7060}
7061_ACEOF
7062if ac_fn_c_try_link "$LINENO"; then :
7063  ac_cv_sys_largefile_source=no; break
7064fi
7065rm -f core conftest.err conftest.$ac_objext \
7066    conftest$ac_exeext conftest.$ac_ext
7067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h.  */
7069#define _LARGEFILE_SOURCE 1
7070#include <sys/types.h> /* for off_t */
7071     #include <stdio.h>
7072int
7073main ()
7074{
7075int (*fp) (FILE *, off_t, int) = fseeko;
7076     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7077  ;
7078  return 0;
7079}
7080_ACEOF
7081if ac_fn_c_try_link "$LINENO"; then :
7082  ac_cv_sys_largefile_source=1; break
7083fi
7084rm -f core conftest.err conftest.$ac_objext \
7085    conftest$ac_exeext conftest.$ac_ext
7086  ac_cv_sys_largefile_source=unknown
7087  break
7088done
7089fi
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
7091$as_echo "$ac_cv_sys_largefile_source" >&6; }
7092case $ac_cv_sys_largefile_source in #(
7093  no | unknown) ;;
7094  *)
7095cat >>confdefs.h <<_ACEOF
7096#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7097_ACEOF
7098;;
7099esac
7100rm -rf conftest*
7101
7102# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7103# in glibc 2.1.3, but that breaks too many other things.
7104# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7105if test $ac_cv_sys_largefile_source != unknown; then
7106
7107$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
7108
7109fi
7110
7111# Check whether --enable-largefile was given.
7112if test "${enable_largefile+set}" = set; then :
7113  enableval=$enable_largefile;
7114fi
7115
7116if test "$enable_largefile" != no; then
7117
7118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7119$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7120if ${ac_cv_sys_largefile_CC+:} false; then :
7121  $as_echo_n "(cached) " >&6
7122else
7123  ac_cv_sys_largefile_CC=no
7124     if test "$GCC" != yes; then
7125       ac_save_CC=$CC
7126       while :; do
7127	 # IRIX 6.2 and later do not support large files by default,
7128	 # so use the C compiler's -n32 option if that helps.
7129	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130/* end confdefs.h.  */
7131#include <sys/types.h>
7132 /* Check that off_t can represent 2**63 - 1 correctly.
7133    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7134    since some C++ compilers masquerading as C compilers
7135    incorrectly reject 9223372036854775807.  */
7136#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7137  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7138		       && LARGE_OFF_T % 2147483647 == 1)
7139		      ? 1 : -1];
7140int
7141main ()
7142{
7143
7144  ;
7145  return 0;
7146}
7147_ACEOF
7148	 if ac_fn_c_try_compile "$LINENO"; then :
7149  break
7150fi
7151rm -f core conftest.err conftest.$ac_objext
7152	 CC="$CC -n32"
7153	 if ac_fn_c_try_compile "$LINENO"; then :
7154  ac_cv_sys_largefile_CC=' -n32'; break
7155fi
7156rm -f core conftest.err conftest.$ac_objext
7157	 break
7158       done
7159       CC=$ac_save_CC
7160       rm -f conftest.$ac_ext
7161    fi
7162fi
7163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7164$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7165  if test "$ac_cv_sys_largefile_CC" != no; then
7166    CC=$CC$ac_cv_sys_largefile_CC
7167  fi
7168
7169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7170$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7171if ${ac_cv_sys_file_offset_bits+:} false; then :
7172  $as_echo_n "(cached) " >&6
7173else
7174  while :; do
7175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176/* end confdefs.h.  */
7177#include <sys/types.h>
7178 /* Check that off_t can represent 2**63 - 1 correctly.
7179    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7180    since some C++ compilers masquerading as C compilers
7181    incorrectly reject 9223372036854775807.  */
7182#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7183  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7184		       && LARGE_OFF_T % 2147483647 == 1)
7185		      ? 1 : -1];
7186int
7187main ()
7188{
7189
7190  ;
7191  return 0;
7192}
7193_ACEOF
7194if ac_fn_c_try_compile "$LINENO"; then :
7195  ac_cv_sys_file_offset_bits=no; break
7196fi
7197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199/* end confdefs.h.  */
7200#define _FILE_OFFSET_BITS 64
7201#include <sys/types.h>
7202 /* Check that off_t can represent 2**63 - 1 correctly.
7203    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7204    since some C++ compilers masquerading as C compilers
7205    incorrectly reject 9223372036854775807.  */
7206#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7207  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7208		       && LARGE_OFF_T % 2147483647 == 1)
7209		      ? 1 : -1];
7210int
7211main ()
7212{
7213
7214  ;
7215  return 0;
7216}
7217_ACEOF
7218if ac_fn_c_try_compile "$LINENO"; then :
7219  ac_cv_sys_file_offset_bits=64; break
7220fi
7221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222  ac_cv_sys_file_offset_bits=unknown
7223  break
7224done
7225fi
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7227$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7228case $ac_cv_sys_file_offset_bits in #(
7229  no | unknown) ;;
7230  *)
7231cat >>confdefs.h <<_ACEOF
7232#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7233_ACEOF
7234;;
7235esac
7236rm -rf conftest*
7237  if test $ac_cv_sys_file_offset_bits = unknown; then
7238    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7239$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7240if ${ac_cv_sys_large_files+:} false; then :
7241  $as_echo_n "(cached) " >&6
7242else
7243  while :; do
7244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245/* end confdefs.h.  */
7246#include <sys/types.h>
7247 /* Check that off_t can represent 2**63 - 1 correctly.
7248    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7249    since some C++ compilers masquerading as C compilers
7250    incorrectly reject 9223372036854775807.  */
7251#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7252  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7253		       && LARGE_OFF_T % 2147483647 == 1)
7254		      ? 1 : -1];
7255int
7256main ()
7257{
7258
7259  ;
7260  return 0;
7261}
7262_ACEOF
7263if ac_fn_c_try_compile "$LINENO"; then :
7264  ac_cv_sys_large_files=no; break
7265fi
7266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268/* end confdefs.h.  */
7269#define _LARGE_FILES 1
7270#include <sys/types.h>
7271 /* Check that off_t can represent 2**63 - 1 correctly.
7272    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7273    since some C++ compilers masquerading as C compilers
7274    incorrectly reject 9223372036854775807.  */
7275#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7276  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7277		       && LARGE_OFF_T % 2147483647 == 1)
7278		      ? 1 : -1];
7279int
7280main ()
7281{
7282
7283  ;
7284  return 0;
7285}
7286_ACEOF
7287if ac_fn_c_try_compile "$LINENO"; then :
7288  ac_cv_sys_large_files=1; break
7289fi
7290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291  ac_cv_sys_large_files=unknown
7292  break
7293done
7294fi
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7296$as_echo "$ac_cv_sys_large_files" >&6; }
7297case $ac_cv_sys_large_files in #(
7298  no | unknown) ;;
7299  *)
7300cat >>confdefs.h <<_ACEOF
7301#define _LARGE_FILES $ac_cv_sys_large_files
7302_ACEOF
7303;;
7304esac
7305rm -rf conftest*
7306  fi
7307
7308
7309fi
7310
7311
7312ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
7313#include <sys/types.h>
7314#include <time.h>
7315"
7316if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7317
7318cat >>confdefs.h <<_ACEOF
7319#define HAVE_STRUCT_TM_TM_GMTOFF 1
7320_ACEOF
7321
7322
7323fi
7324ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "
7325#include <sys/types.h>
7326#include <time.h>
7327"
7328if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
7329
7330cat >>confdefs.h <<_ACEOF
7331#define HAVE_STRUCT_TM___TM_GMTOFF 1
7332_ACEOF
7333
7334
7335fi
7336
7337
7338
7339
7340if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7341	if test -n "$ac_tool_prefix"; then
7342  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7343set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345$as_echo_n "checking for $ac_word... " >&6; }
7346if ${ac_cv_path_PKG_CONFIG+:} false; then :
7347  $as_echo_n "(cached) " >&6
7348else
7349  case $PKG_CONFIG in
7350  [\\/]* | ?:[\\/]*)
7351  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7352  ;;
7353  *)
7354  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357  IFS=$as_save_IFS
7358  test -z "$as_dir" && as_dir=.
7359    for ac_exec_ext in '' $ac_executable_extensions; do
7360  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363    break 2
7364  fi
7365done
7366  done
7367IFS=$as_save_IFS
7368
7369  ;;
7370esac
7371fi
7372PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7373if test -n "$PKG_CONFIG"; then
7374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7375$as_echo "$PKG_CONFIG" >&6; }
7376else
7377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378$as_echo "no" >&6; }
7379fi
7380
7381
7382fi
7383if test -z "$ac_cv_path_PKG_CONFIG"; then
7384  ac_pt_PKG_CONFIG=$PKG_CONFIG
7385  # Extract the first word of "pkg-config", so it can be a program name with args.
7386set dummy pkg-config; ac_word=$2
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388$as_echo_n "checking for $ac_word... " >&6; }
7389if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7390  $as_echo_n "(cached) " >&6
7391else
7392  case $ac_pt_PKG_CONFIG in
7393  [\\/]* | ?:[\\/]*)
7394  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7395  ;;
7396  *)
7397  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400  IFS=$as_save_IFS
7401  test -z "$as_dir" && as_dir=.
7402    for ac_exec_ext in '' $ac_executable_extensions; do
7403  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406    break 2
7407  fi
7408done
7409  done
7410IFS=$as_save_IFS
7411
7412  ;;
7413esac
7414fi
7415ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7416if test -n "$ac_pt_PKG_CONFIG"; then
7417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7418$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7419else
7420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421$as_echo "no" >&6; }
7422fi
7423
7424  if test "x$ac_pt_PKG_CONFIG" = x; then
7425    PKG_CONFIG=""
7426  else
7427    case $cross_compiling:$ac_tool_warned in
7428yes:)
7429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7431ac_tool_warned=yes ;;
7432esac
7433    PKG_CONFIG=$ac_pt_PKG_CONFIG
7434  fi
7435else
7436  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7437fi
7438
7439fi
7440if test -n "$PKG_CONFIG"; then
7441	_pkg_min_version=0.9.0
7442	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7443$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7444	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7445		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7446$as_echo "yes" >&6; }
7447	else
7448		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449$as_echo "no" >&6; }
7450		PKG_CONFIG=""
7451	fi
7452
7453fi
7454
7455
7456# Check whether --with-libcerf was given.
7457if test "${with_libcerf+set}" = set; then :
7458  withval=$with_libcerf;
7459else
7460  test -z "${with_libcerf}" && with_libcerf=yes
7461fi
7462
7463
7464if test "${with_libcerf}" = yes ; then
7465
7466pkg_failed=no
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCERF" >&5
7468$as_echo_n "checking for LIBCERF... " >&6; }
7469
7470if test -n "$PKG_CONFIG"; then
7471    if test -n "$LIBCERF_CFLAGS"; then
7472        pkg_cv_LIBCERF_CFLAGS="$LIBCERF_CFLAGS"
7473    else
7474        if test -n "$PKG_CONFIG" && \
7475    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcerf\""; } >&5
7476  ($PKG_CONFIG --exists --print-errors "libcerf") 2>&5
7477  ac_status=$?
7478  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7479  test $ac_status = 0; }; then
7480  pkg_cv_LIBCERF_CFLAGS=`$PKG_CONFIG --cflags "libcerf" 2>/dev/null`
7481else
7482  pkg_failed=yes
7483fi
7484    fi
7485else
7486	pkg_failed=untried
7487fi
7488if test -n "$PKG_CONFIG"; then
7489    if test -n "$LIBCERF_LIBS"; then
7490        pkg_cv_LIBCERF_LIBS="$LIBCERF_LIBS"
7491    else
7492        if test -n "$PKG_CONFIG" && \
7493    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcerf\""; } >&5
7494  ($PKG_CONFIG --exists --print-errors "libcerf") 2>&5
7495  ac_status=$?
7496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7497  test $ac_status = 0; }; then
7498  pkg_cv_LIBCERF_LIBS=`$PKG_CONFIG --libs "libcerf" 2>/dev/null`
7499else
7500  pkg_failed=yes
7501fi
7502    fi
7503else
7504	pkg_failed=untried
7505fi
7506
7507
7508
7509if test $pkg_failed = yes; then
7510
7511if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7512        _pkg_short_errors_supported=yes
7513else
7514        _pkg_short_errors_supported=no
7515fi
7516        if test $_pkg_short_errors_supported = yes; then
7517	        LIBCERF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcerf"`
7518        else
7519	        LIBCERF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcerf"`
7520        fi
7521	# Put the nasty error message in config.log where it belongs
7522	echo "$LIBCERF_PKG_ERRORS" >&5
7523
7524	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7525Package requirements (libcerf) were not met:
7526
7527$LIBCERF_PKG_ERRORS
7528
7529Consider adjusting the PKG_CONFIG_PATH environment variable if you
7530installed software in a non-standard prefix.
7531
7532Alternatively, you may set the environment variables LIBCERF_CFLAGS
7533and LIBCERF_LIBS to avoid the need to call pkg-config.
7534See the pkg-config man page for more details.
7535" >&5
7536$as_echo "$as_me: WARNING:
7537Package requirements (libcerf) were not met:
7538
7539$LIBCERF_PKG_ERRORS
7540
7541Consider adjusting the PKG_CONFIG_PATH environment variable if you
7542installed software in a non-standard prefix.
7543
7544Alternatively, you may set the environment variables LIBCERF_CFLAGS
7545and LIBCERF_LIBS to avoid the need to call pkg-config.
7546See the pkg-config man page for more details.
7547" >&2;}
7548elif test $pkg_failed = untried; then
7549	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7550The pkg-config script could not be found or is too old.  Make sure it
7551is in your PATH or set the PKG_CONFIG environment variable to the full
7552path to pkg-config.
7553
7554Alternatively, you may set the environment variables LIBCERF_CFLAGS
7555and LIBCERF_LIBS to avoid the need to call pkg-config.
7556See the pkg-config man page for more details.
7557
7558To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>." >&5
7559$as_echo "$as_me: WARNING:
7560The pkg-config script could not be found or is too old.  Make sure it
7561is in your PATH or set the PKG_CONFIG environment variable to the full
7562path to pkg-config.
7563
7564Alternatively, you may set the environment variables LIBCERF_CFLAGS
7565and LIBCERF_LIBS to avoid the need to call pkg-config.
7566See the pkg-config man page for more details.
7567
7568To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>." >&2;}
7569else
7570	LIBCERF_CFLAGS=$pkg_cv_LIBCERF_CFLAGS
7571	LIBCERF_LIBS=$pkg_cv_LIBCERF_LIBS
7572        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7573$as_echo "yes" >&6; }
7574
7575      CPPFLAGS="$CPPFLAGS $LIBCERF_CFLAGS"
7576      LDFLAGS="$LDFLAGS $LIBCERF_LIBS"
7577
7578fi
7579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cdawson" >&5
7580$as_echo_n "checking for library containing cdawson... " >&6; }
7581if ${ac_cv_search_cdawson+:} false; then :
7582  $as_echo_n "(cached) " >&6
7583else
7584  ac_func_search_save_LIBS=$LIBS
7585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586/* end confdefs.h.  */
7587
7588/* Override any GCC internal prototype to avoid an error.
7589   Use char because int might match the return type of a GCC
7590   builtin and then its argument prototype would still apply.  */
7591#ifdef __cplusplus
7592extern "C"
7593#endif
7594char cdawson ();
7595int
7596main ()
7597{
7598return cdawson ();
7599  ;
7600  return 0;
7601}
7602_ACEOF
7603for ac_lib in '' cerf; do
7604  if test -z "$ac_lib"; then
7605    ac_res="none required"
7606  else
7607    ac_res=-l$ac_lib
7608    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7609  fi
7610  if ac_fn_c_try_link "$LINENO"; then :
7611  ac_cv_search_cdawson=$ac_res
7612fi
7613rm -f core conftest.err conftest.$ac_objext \
7614    conftest$ac_exeext
7615  if ${ac_cv_search_cdawson+:} false; then :
7616  break
7617fi
7618done
7619if ${ac_cv_search_cdawson+:} false; then :
7620
7621else
7622  ac_cv_search_cdawson=no
7623fi
7624rm conftest.$ac_ext
7625LIBS=$ac_func_search_save_LIBS
7626fi
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cdawson" >&5
7628$as_echo "$ac_cv_search_cdawson" >&6; }
7629ac_res=$ac_cv_search_cdawson
7630if test "$ac_res" != no; then :
7631  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7632
7633$as_echo "#define HAVE_LIBCERF 1" >>confdefs.h
7634
7635      have_libcerf=yes
7636
7637fi
7638
7639fi
7640
7641test x"$EMACS" = xt && EMACS=
7642for ac_prog in emacs xemacs
7643do
7644  # Extract the first word of "$ac_prog", so it can be a program name with args.
7645set dummy $ac_prog; ac_word=$2
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647$as_echo_n "checking for $ac_word... " >&6; }
7648if ${ac_cv_prog_EMACS+:} false; then :
7649  $as_echo_n "(cached) " >&6
7650else
7651  if test -n "$EMACS"; then
7652  ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
7653else
7654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657  IFS=$as_save_IFS
7658  test -z "$as_dir" && as_dir=.
7659    for ac_exec_ext in '' $ac_executable_extensions; do
7660  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661    ac_cv_prog_EMACS="$ac_prog"
7662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663    break 2
7664  fi
7665done
7666  done
7667IFS=$as_save_IFS
7668
7669fi
7670fi
7671EMACS=$ac_cv_prog_EMACS
7672if test -n "$EMACS"; then
7673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5
7674$as_echo "$EMACS" >&6; }
7675else
7676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677$as_echo "no" >&6; }
7678fi
7679
7680
7681  test -n "$EMACS" && break
7682done
7683test -n "$EMACS" || EMACS="no"
7684
7685
7686
7687# Check whether --with-latex was given.
7688if test "${with_latex+set}" = set; then :
7689  withval=$with_latex;
7690else
7691  with_latex="yes"
7692fi
7693
7694if test "$with_latex" = yes; then
7695  for ac_prog in tex
7696do
7697  # Extract the first word of "$ac_prog", so it can be a program name with args.
7698set dummy $ac_prog; ac_word=$2
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700$as_echo_n "checking for $ac_word... " >&6; }
7701if ${ac_cv_prog_PLAINTEX+:} false; then :
7702  $as_echo_n "(cached) " >&6
7703else
7704  if test -n "$PLAINTEX"; then
7705  ac_cv_prog_PLAINTEX="$PLAINTEX" # Let the user override the test.
7706else
7707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708for as_dir in $PATH
7709do
7710  IFS=$as_save_IFS
7711  test -z "$as_dir" && as_dir=.
7712    for ac_exec_ext in '' $ac_executable_extensions; do
7713  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714    ac_cv_prog_PLAINTEX="$ac_prog"
7715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716    break 2
7717  fi
7718done
7719  done
7720IFS=$as_save_IFS
7721
7722fi
7723fi
7724PLAINTEX=$ac_cv_prog_PLAINTEX
7725if test -n "$PLAINTEX"; then
7726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLAINTEX" >&5
7727$as_echo "$PLAINTEX" >&6; }
7728else
7729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730$as_echo "no" >&6; }
7731fi
7732
7733
7734  test -n "$PLAINTEX" && break
7735done
7736test -n "$PLAINTEX" || PLAINTEX="no"
7737
7738  for ac_prog in latex latex2e
7739do
7740  # Extract the first word of "$ac_prog", so it can be a program name with args.
7741set dummy $ac_prog; ac_word=$2
7742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7743$as_echo_n "checking for $ac_word... " >&6; }
7744if ${ac_cv_prog_LATEX+:} false; then :
7745  $as_echo_n "(cached) " >&6
7746else
7747  if test -n "$LATEX"; then
7748  ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
7749else
7750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751for as_dir in $PATH
7752do
7753  IFS=$as_save_IFS
7754  test -z "$as_dir" && as_dir=.
7755    for ac_exec_ext in '' $ac_executable_extensions; do
7756  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7757    ac_cv_prog_LATEX="$ac_prog"
7758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759    break 2
7760  fi
7761done
7762  done
7763IFS=$as_save_IFS
7764
7765fi
7766fi
7767LATEX=$ac_cv_prog_LATEX
7768if test -n "$LATEX"; then
7769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
7770$as_echo "$LATEX" >&6; }
7771else
7772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773$as_echo "no" >&6; }
7774fi
7775
7776
7777  test -n "$LATEX" && break
7778done
7779test -n "$LATEX" || LATEX="no"
7780
7781  for ac_prog in pdflatex
7782do
7783  # Extract the first word of "$ac_prog", so it can be a program name with args.
7784set dummy $ac_prog; ac_word=$2
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786$as_echo_n "checking for $ac_word... " >&6; }
7787if ${ac_cv_prog_PDFLATEX+:} false; then :
7788  $as_echo_n "(cached) " >&6
7789else
7790  if test -n "$PDFLATEX"; then
7791  ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
7792else
7793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794for as_dir in $PATH
7795do
7796  IFS=$as_save_IFS
7797  test -z "$as_dir" && as_dir=.
7798    for ac_exec_ext in '' $ac_executable_extensions; do
7799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7800    ac_cv_prog_PDFLATEX="$ac_prog"
7801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802    break 2
7803  fi
7804done
7805  done
7806IFS=$as_save_IFS
7807
7808fi
7809fi
7810PDFLATEX=$ac_cv_prog_PDFLATEX
7811if test -n "$PDFLATEX"; then
7812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
7813$as_echo "$PDFLATEX" >&6; }
7814else
7815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816$as_echo "no" >&6; }
7817fi
7818
7819
7820  test -n "$PDFLATEX" && break
7821done
7822test -n "$PDFLATEX" || PDFLATEX="no"
7823
7824  test "$PLAINTEX" = "no" -o "$LATEX" = no -o "$PDFLATEX" = "no" && with_latex="no"
7825else
7826    PLAINTEX="no"
7827    LATEX="no"
7828    PDFLATEX="no"
7829fi
7830 if test "$with_latex" != no; then
7831  HAVE_LATEX_TRUE=
7832  HAVE_LATEX_FALSE='#'
7833else
7834  HAVE_LATEX_TRUE='#'
7835  HAVE_LATEX_FALSE=
7836fi
7837
7838for ac_prog in dvips
7839do
7840  # Extract the first word of "$ac_prog", so it can be a program name with args.
7841set dummy $ac_prog; ac_word=$2
7842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843$as_echo_n "checking for $ac_word... " >&6; }
7844if ${ac_cv_prog_DVIPS+:} false; then :
7845  $as_echo_n "(cached) " >&6
7846else
7847  if test -n "$DVIPS"; then
7848  ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
7849else
7850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851for as_dir in $PATH
7852do
7853  IFS=$as_save_IFS
7854  test -z "$as_dir" && as_dir=.
7855    for ac_exec_ext in '' $ac_executable_extensions; do
7856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7857    ac_cv_prog_DVIPS="$ac_prog"
7858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7859    break 2
7860  fi
7861done
7862  done
7863IFS=$as_save_IFS
7864
7865fi
7866fi
7867DVIPS=$ac_cv_prog_DVIPS
7868if test -n "$DVIPS"; then
7869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
7870$as_echo "$DVIPS" >&6; }
7871else
7872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873$as_echo "no" >&6; }
7874fi
7875
7876
7877  test -n "$DVIPS" && break
7878done
7879test -n "$DVIPS" || DVIPS="no"
7880
7881for ac_prog in troff
7882do
7883  # Extract the first word of "$ac_prog", so it can be a program name with args.
7884set dummy $ac_prog; ac_word=$2
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886$as_echo_n "checking for $ac_word... " >&6; }
7887if ${ac_cv_prog_TROFF+:} false; then :
7888  $as_echo_n "(cached) " >&6
7889else
7890  if test -n "$TROFF"; then
7891  ac_cv_prog_TROFF="$TROFF" # Let the user override the test.
7892else
7893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894for as_dir in $PATH
7895do
7896  IFS=$as_save_IFS
7897  test -z "$as_dir" && as_dir=.
7898    for ac_exec_ext in '' $ac_executable_extensions; do
7899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7900    ac_cv_prog_TROFF="$ac_prog"
7901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902    break 2
7903  fi
7904done
7905  done
7906IFS=$as_save_IFS
7907
7908fi
7909fi
7910TROFF=$ac_cv_prog_TROFF
7911if test -n "$TROFF"; then
7912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TROFF" >&5
7913$as_echo "$TROFF" >&6; }
7914else
7915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916$as_echo "no" >&6; }
7917fi
7918
7919
7920  test -n "$TROFF" && break
7921done
7922test -n "$TROFF" || TROFF="no"
7923
7924for ac_prog in latex2html
7925do
7926  # Extract the first word of "$ac_prog", so it can be a program name with args.
7927set dummy $ac_prog; ac_word=$2
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7929$as_echo_n "checking for $ac_word... " >&6; }
7930if ${ac_cv_prog_LATEX2HTML+:} false; then :
7931  $as_echo_n "(cached) " >&6
7932else
7933  if test -n "$LATEX2HTML"; then
7934  ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
7935else
7936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937for as_dir in $PATH
7938do
7939  IFS=$as_save_IFS
7940  test -z "$as_dir" && as_dir=.
7941    for ac_exec_ext in '' $ac_executable_extensions; do
7942  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7943    ac_cv_prog_LATEX2HTML="$ac_prog"
7944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7945    break 2
7946  fi
7947done
7948  done
7949IFS=$as_save_IFS
7950
7951fi
7952fi
7953LATEX2HTML=$ac_cv_prog_LATEX2HTML
7954if test -n "$LATEX2HTML"; then
7955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX2HTML" >&5
7956$as_echo "$LATEX2HTML" >&6; }
7957else
7958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959$as_echo "no" >&6; }
7960fi
7961
7962
7963  test -n "$LATEX2HTML" && break
7964done
7965test -n "$LATEX2HTML" || LATEX2HTML="no"
7966
7967
7968
7969# Check whether --with-texdir was given.
7970if test "${with_texdir+set}" = set; then :
7971  withval=$with_texdir; TEXDIR="$withval"
7972else
7973  TEXDIR="no"
7974fi
7975
7976for ac_prog in kpsexpand
7977do
7978  # Extract the first word of "$ac_prog", so it can be a program name with args.
7979set dummy $ac_prog; ac_word=$2
7980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981$as_echo_n "checking for $ac_word... " >&6; }
7982if ${ac_cv_prog_KPSEXPAND+:} false; then :
7983  $as_echo_n "(cached) " >&6
7984else
7985  if test -n "$KPSEXPAND"; then
7986  ac_cv_prog_KPSEXPAND="$KPSEXPAND" # Let the user override the test.
7987else
7988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989for as_dir in $PATH
7990do
7991  IFS=$as_save_IFS
7992  test -z "$as_dir" && as_dir=.
7993    for ac_exec_ext in '' $ac_executable_extensions; do
7994  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7995    ac_cv_prog_KPSEXPAND="$ac_prog"
7996    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997    break 2
7998  fi
7999done
8000  done
8001IFS=$as_save_IFS
8002
8003fi
8004fi
8005KPSEXPAND=$ac_cv_prog_KPSEXPAND
8006if test -n "$KPSEXPAND"; then
8007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KPSEXPAND" >&5
8008$as_echo "$KPSEXPAND" >&6; }
8009else
8010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011$as_echo "no" >&6; }
8012fi
8013
8014
8015  test -n "$KPSEXPAND" && break
8016done
8017test -n "$KPSEXPAND" || KPSEXPAND="no"
8018
8019for ac_prog in texhash
8020do
8021  # Extract the first word of "$ac_prog", so it can be a program name with args.
8022set dummy $ac_prog; ac_word=$2
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024$as_echo_n "checking for $ac_word... " >&6; }
8025if ${ac_cv_prog_TEXHASH+:} false; then :
8026  $as_echo_n "(cached) " >&6
8027else
8028  if test -n "$TEXHASH"; then
8029  ac_cv_prog_TEXHASH="$TEXHASH" # Let the user override the test.
8030else
8031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032for as_dir in $PATH
8033do
8034  IFS=$as_save_IFS
8035  test -z "$as_dir" && as_dir=.
8036    for ac_exec_ext in '' $ac_executable_extensions; do
8037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8038    ac_cv_prog_TEXHASH="$ac_prog"
8039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040    break 2
8041  fi
8042done
8043  done
8044IFS=$as_save_IFS
8045
8046fi
8047fi
8048TEXHASH=$ac_cv_prog_TEXHASH
8049if test -n "$TEXHASH"; then
8050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXHASH" >&5
8051$as_echo "$TEXHASH" >&6; }
8052else
8053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054$as_echo "no" >&6; }
8055fi
8056
8057
8058  test -n "$TEXHASH" && break
8059done
8060test -n "$TEXHASH" || TEXHASH="true"
8061
8062
8063# Check whether --with-kpsexpand was given.
8064if test "${with_kpsexpand+set}" = set; then :
8065  withval=$with_kpsexpand; if test "$withval" = yes; then
8066    test "$KPSEXPAND" != "no" || as_fn_error $? "      You tell me to use kpsexpand, but there is no kpsexpand" "$LINENO" 5
8067
8068$as_echo "#define HAVE_KPSEXPAND 1" >>confdefs.h
8069
8070  fi
8071fi
8072
8073
8074if test "$with_latex" = yes; then
8075  test "$KPSEXPAND" = "no" -a "$TEXDIR" = "no" && as_fn_error $? "    texdir is not given and there is no kpsexpand, please tell where to install" "$LINENO" 5
8076    if test "$TEXDIR" = "no"; then
8077    TEXDIR=`$KPSEXPAND '$TEXMFLOCAL'`
8078    if test "x$TEXDIR" = "x" -o "$TEXDIR" = "\$TEXMFLOCAL"; then
8079      if test "x$prefix" != "xNONE"; then
8080        TEXDIR=${prefix}/share/texmf
8081      else
8082        TEXDIR=${ac_default_prefix}/share/texmf
8083      fi
8084    fi
8085    TEXDIR=${TEXDIR}/tex/latex/gnuplot
8086  fi
8087fi
8088
8089
8090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8091$as_echo_n "checking for X... " >&6; }
8092
8093
8094# Check whether --with-x was given.
8095if test "${with_x+set}" = set; then :
8096  withval=$with_x;
8097fi
8098
8099# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8100if test "x$with_x" = xno; then
8101  # The user explicitly disabled X.
8102  have_x=disabled
8103else
8104  case $x_includes,$x_libraries in #(
8105    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8106    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8107  $as_echo_n "(cached) " >&6
8108else
8109  # One or both of the vars are not set, and there is no cached value.
8110ac_x_includes=no ac_x_libraries=no
8111rm -f -r conftest.dir
8112if mkdir conftest.dir; then
8113  cd conftest.dir
8114  cat >Imakefile <<'_ACEOF'
8115incroot:
8116	@echo incroot='${INCROOT}'
8117usrlibdir:
8118	@echo usrlibdir='${USRLIBDIR}'
8119libdir:
8120	@echo libdir='${LIBDIR}'
8121_ACEOF
8122  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8123    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8124    for ac_var in incroot usrlibdir libdir; do
8125      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8126    done
8127    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8128    for ac_extension in a so sl dylib la dll; do
8129      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8130	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8131	ac_im_usrlibdir=$ac_im_libdir; break
8132      fi
8133    done
8134    # Screen out bogus values from the imake configuration.  They are
8135    # bogus both because they are the default anyway, and because
8136    # using them would break gcc on systems where it needs fixed includes.
8137    case $ac_im_incroot in
8138	/usr/include) ac_x_includes= ;;
8139	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8140    esac
8141    case $ac_im_usrlibdir in
8142	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
8143	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8144    esac
8145  fi
8146  cd ..
8147  rm -f -r conftest.dir
8148fi
8149
8150# Standard set of common directories for X headers.
8151# Check X11 before X11Rn because it is often a symlink to the current release.
8152ac_x_header_dirs='
8153/usr/X11/include
8154/usr/X11R7/include
8155/usr/X11R6/include
8156/usr/X11R5/include
8157/usr/X11R4/include
8158
8159/usr/include/X11
8160/usr/include/X11R7
8161/usr/include/X11R6
8162/usr/include/X11R5
8163/usr/include/X11R4
8164
8165/usr/local/X11/include
8166/usr/local/X11R7/include
8167/usr/local/X11R6/include
8168/usr/local/X11R5/include
8169/usr/local/X11R4/include
8170
8171/usr/local/include/X11
8172/usr/local/include/X11R7
8173/usr/local/include/X11R6
8174/usr/local/include/X11R5
8175/usr/local/include/X11R4
8176
8177/usr/X386/include
8178/usr/x386/include
8179/usr/XFree86/include/X11
8180
8181/usr/include
8182/usr/local/include
8183/usr/unsupported/include
8184/usr/athena/include
8185/usr/local/x11r5/include
8186/usr/lpp/Xamples/include
8187
8188/usr/openwin/include
8189/usr/openwin/share/include'
8190
8191if test "$ac_x_includes" = no; then
8192  # Guess where to find include files, by looking for Xlib.h.
8193  # First, try using that file with no special directory specified.
8194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195/* end confdefs.h.  */
8196#include <X11/Xlib.h>
8197_ACEOF
8198if ac_fn_c_try_cpp "$LINENO"; then :
8199  # We can compile using X headers with no special include directory.
8200ac_x_includes=
8201else
8202  for ac_dir in $ac_x_header_dirs; do
8203  if test -r "$ac_dir/X11/Xlib.h"; then
8204    ac_x_includes=$ac_dir
8205    break
8206  fi
8207done
8208fi
8209rm -f conftest.err conftest.i conftest.$ac_ext
8210fi # $ac_x_includes = no
8211
8212if test "$ac_x_libraries" = no; then
8213  # Check for the libraries.
8214  # See if we find them without any special options.
8215  # Don't add to $LIBS permanently.
8216  ac_save_LIBS=$LIBS
8217  LIBS="-lX11 $LIBS"
8218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219/* end confdefs.h.  */
8220#include <X11/Xlib.h>
8221int
8222main ()
8223{
8224XrmInitialize ()
8225  ;
8226  return 0;
8227}
8228_ACEOF
8229if ac_fn_c_try_link "$LINENO"; then :
8230  LIBS=$ac_save_LIBS
8231# We can link X programs with no special library path.
8232ac_x_libraries=
8233else
8234  LIBS=$ac_save_LIBS
8235for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8236do
8237  # Don't even attempt the hair of trying to link an X program!
8238  for ac_extension in a so sl dylib la dll; do
8239    if test -r "$ac_dir/libX11.$ac_extension"; then
8240      ac_x_libraries=$ac_dir
8241      break 2
8242    fi
8243  done
8244done
8245fi
8246rm -f core conftest.err conftest.$ac_objext \
8247    conftest$ac_exeext conftest.$ac_ext
8248fi # $ac_x_libraries = no
8249
8250case $ac_x_includes,$ac_x_libraries in #(
8251  no,* | *,no | *\'*)
8252    # Didn't find X, or a directory has "'" in its name.
8253    ac_cv_have_x="have_x=no";; #(
8254  *)
8255    # Record where we found X for the cache.
8256    ac_cv_have_x="have_x=yes\
8257	ac_x_includes='$ac_x_includes'\
8258	ac_x_libraries='$ac_x_libraries'"
8259esac
8260fi
8261;; #(
8262    *) have_x=yes;;
8263  esac
8264  eval "$ac_cv_have_x"
8265fi # $with_x != no
8266
8267if test "$have_x" != yes; then
8268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8269$as_echo "$have_x" >&6; }
8270  no_x=yes
8271else
8272  # If each of the values was on the command line, it overrides each guess.
8273  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8274  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8275  # Update the cache value to reflect the command line values.
8276  ac_cv_have_x="have_x=yes\
8277	ac_x_includes='$x_includes'\
8278	ac_x_libraries='$x_libraries'"
8279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8280$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8281fi
8282
8283if test "$no_x" = yes; then
8284  # Not all programs may use this symbol, but it does not hurt to define it.
8285
8286$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8287
8288  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8289else
8290  if test -n "$x_includes"; then
8291    X_CFLAGS="$X_CFLAGS -I$x_includes"
8292  fi
8293
8294  # It would also be nice to do this for all -L options, not just this one.
8295  if test -n "$x_libraries"; then
8296    X_LIBS="$X_LIBS -L$x_libraries"
8297    # For Solaris; some versions of Sun CC require a space after -R and
8298    # others require no space.  Words are not sufficient . . . .
8299    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8300$as_echo_n "checking whether -R must be followed by a space... " >&6; }
8301    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8302    ac_xsave_c_werror_flag=$ac_c_werror_flag
8303    ac_c_werror_flag=yes
8304    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305/* end confdefs.h.  */
8306
8307int
8308main ()
8309{
8310
8311  ;
8312  return 0;
8313}
8314_ACEOF
8315if ac_fn_c_try_link "$LINENO"; then :
8316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8317$as_echo "no" >&6; }
8318       X_LIBS="$X_LIBS -R$x_libraries"
8319else
8320  LIBS="$ac_xsave_LIBS -R $x_libraries"
8321       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322/* end confdefs.h.  */
8323
8324int
8325main ()
8326{
8327
8328  ;
8329  return 0;
8330}
8331_ACEOF
8332if ac_fn_c_try_link "$LINENO"; then :
8333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8334$as_echo "yes" >&6; }
8335	  X_LIBS="$X_LIBS -R $x_libraries"
8336else
8337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8338$as_echo "neither works" >&6; }
8339fi
8340rm -f core conftest.err conftest.$ac_objext \
8341    conftest$ac_exeext conftest.$ac_ext
8342fi
8343rm -f core conftest.err conftest.$ac_objext \
8344    conftest$ac_exeext conftest.$ac_ext
8345    ac_c_werror_flag=$ac_xsave_c_werror_flag
8346    LIBS=$ac_xsave_LIBS
8347  fi
8348
8349  # Check for system-dependent libraries X programs must link with.
8350  # Do this before checking for the system-independent R6 libraries
8351  # (-lICE), since we may need -lsocket or whatever for X linking.
8352
8353  if test "$ISC" = yes; then
8354    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8355  else
8356    # Martyn Johnson says this is needed for Ultrix, if the X
8357    # libraries were built with DECnet support.  And Karl Berry says
8358    # the Alpha needs dnet_stub (dnet does not exist).
8359    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8360    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361/* end confdefs.h.  */
8362
8363/* Override any GCC internal prototype to avoid an error.
8364   Use char because int might match the return type of a GCC
8365   builtin and then its argument prototype would still apply.  */
8366#ifdef __cplusplus
8367extern "C"
8368#endif
8369char XOpenDisplay ();
8370int
8371main ()
8372{
8373return XOpenDisplay ();
8374  ;
8375  return 0;
8376}
8377_ACEOF
8378if ac_fn_c_try_link "$LINENO"; then :
8379
8380else
8381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8382$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8383if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8384  $as_echo_n "(cached) " >&6
8385else
8386  ac_check_lib_save_LIBS=$LIBS
8387LIBS="-ldnet  $LIBS"
8388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389/* end confdefs.h.  */
8390
8391/* Override any GCC internal prototype to avoid an error.
8392   Use char because int might match the return type of a GCC
8393   builtin and then its argument prototype would still apply.  */
8394#ifdef __cplusplus
8395extern "C"
8396#endif
8397char dnet_ntoa ();
8398int
8399main ()
8400{
8401return dnet_ntoa ();
8402  ;
8403  return 0;
8404}
8405_ACEOF
8406if ac_fn_c_try_link "$LINENO"; then :
8407  ac_cv_lib_dnet_dnet_ntoa=yes
8408else
8409  ac_cv_lib_dnet_dnet_ntoa=no
8410fi
8411rm -f core conftest.err conftest.$ac_objext \
8412    conftest$ac_exeext conftest.$ac_ext
8413LIBS=$ac_check_lib_save_LIBS
8414fi
8415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8416$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8417if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8418  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8419fi
8420
8421    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8422      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8423$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8424if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8425  $as_echo_n "(cached) " >&6
8426else
8427  ac_check_lib_save_LIBS=$LIBS
8428LIBS="-ldnet_stub  $LIBS"
8429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430/* end confdefs.h.  */
8431
8432/* Override any GCC internal prototype to avoid an error.
8433   Use char because int might match the return type of a GCC
8434   builtin and then its argument prototype would still apply.  */
8435#ifdef __cplusplus
8436extern "C"
8437#endif
8438char dnet_ntoa ();
8439int
8440main ()
8441{
8442return dnet_ntoa ();
8443  ;
8444  return 0;
8445}
8446_ACEOF
8447if ac_fn_c_try_link "$LINENO"; then :
8448  ac_cv_lib_dnet_stub_dnet_ntoa=yes
8449else
8450  ac_cv_lib_dnet_stub_dnet_ntoa=no
8451fi
8452rm -f core conftest.err conftest.$ac_objext \
8453    conftest$ac_exeext conftest.$ac_ext
8454LIBS=$ac_check_lib_save_LIBS
8455fi
8456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8457$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8458if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8459  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8460fi
8461
8462    fi
8463fi
8464rm -f core conftest.err conftest.$ac_objext \
8465    conftest$ac_exeext conftest.$ac_ext
8466    LIBS="$ac_xsave_LIBS"
8467
8468    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8469    # to get the SysV transport functions.
8470    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8471    # needs -lnsl.
8472    # The nsl library prevents programs from opening the X display
8473    # on Irix 5.2, according to T.E. Dickey.
8474    # The functions gethostbyname, getservbyname, and inet_addr are
8475    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8476    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8477if test "x$ac_cv_func_gethostbyname" = xyes; then :
8478
8479fi
8480
8481    if test $ac_cv_func_gethostbyname = no; then
8482      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8483$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8484if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8485  $as_echo_n "(cached) " >&6
8486else
8487  ac_check_lib_save_LIBS=$LIBS
8488LIBS="-lnsl  $LIBS"
8489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490/* end confdefs.h.  */
8491
8492/* Override any GCC internal prototype to avoid an error.
8493   Use char because int might match the return type of a GCC
8494   builtin and then its argument prototype would still apply.  */
8495#ifdef __cplusplus
8496extern "C"
8497#endif
8498char gethostbyname ();
8499int
8500main ()
8501{
8502return gethostbyname ();
8503  ;
8504  return 0;
8505}
8506_ACEOF
8507if ac_fn_c_try_link "$LINENO"; then :
8508  ac_cv_lib_nsl_gethostbyname=yes
8509else
8510  ac_cv_lib_nsl_gethostbyname=no
8511fi
8512rm -f core conftest.err conftest.$ac_objext \
8513    conftest$ac_exeext conftest.$ac_ext
8514LIBS=$ac_check_lib_save_LIBS
8515fi
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8517$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8518if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8519  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8520fi
8521
8522      if test $ac_cv_lib_nsl_gethostbyname = no; then
8523	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8524$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8525if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8526  $as_echo_n "(cached) " >&6
8527else
8528  ac_check_lib_save_LIBS=$LIBS
8529LIBS="-lbsd  $LIBS"
8530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531/* end confdefs.h.  */
8532
8533/* Override any GCC internal prototype to avoid an error.
8534   Use char because int might match the return type of a GCC
8535   builtin and then its argument prototype would still apply.  */
8536#ifdef __cplusplus
8537extern "C"
8538#endif
8539char gethostbyname ();
8540int
8541main ()
8542{
8543return gethostbyname ();
8544  ;
8545  return 0;
8546}
8547_ACEOF
8548if ac_fn_c_try_link "$LINENO"; then :
8549  ac_cv_lib_bsd_gethostbyname=yes
8550else
8551  ac_cv_lib_bsd_gethostbyname=no
8552fi
8553rm -f core conftest.err conftest.$ac_objext \
8554    conftest$ac_exeext conftest.$ac_ext
8555LIBS=$ac_check_lib_save_LIBS
8556fi
8557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8558$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8559if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8560  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8561fi
8562
8563      fi
8564    fi
8565
8566    # lieder@skyler.mavd.honeywell.com says without -lsocket,
8567    # socket/setsockopt and other routines are undefined under SCO ODT
8568    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8569    # on later versions), says Simon Leinen: it contains gethostby*
8570    # variants that don't use the name server (or something).  -lsocket
8571    # must be given before -lnsl if both are needed.  We assume that
8572    # if connect needs -lnsl, so does gethostbyname.
8573    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8574if test "x$ac_cv_func_connect" = xyes; then :
8575
8576fi
8577
8578    if test $ac_cv_func_connect = no; then
8579      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8580$as_echo_n "checking for connect in -lsocket... " >&6; }
8581if ${ac_cv_lib_socket_connect+:} false; then :
8582  $as_echo_n "(cached) " >&6
8583else
8584  ac_check_lib_save_LIBS=$LIBS
8585LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587/* end confdefs.h.  */
8588
8589/* Override any GCC internal prototype to avoid an error.
8590   Use char because int might match the return type of a GCC
8591   builtin and then its argument prototype would still apply.  */
8592#ifdef __cplusplus
8593extern "C"
8594#endif
8595char connect ();
8596int
8597main ()
8598{
8599return connect ();
8600  ;
8601  return 0;
8602}
8603_ACEOF
8604if ac_fn_c_try_link "$LINENO"; then :
8605  ac_cv_lib_socket_connect=yes
8606else
8607  ac_cv_lib_socket_connect=no
8608fi
8609rm -f core conftest.err conftest.$ac_objext \
8610    conftest$ac_exeext conftest.$ac_ext
8611LIBS=$ac_check_lib_save_LIBS
8612fi
8613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8614$as_echo "$ac_cv_lib_socket_connect" >&6; }
8615if test "x$ac_cv_lib_socket_connect" = xyes; then :
8616  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8617fi
8618
8619    fi
8620
8621    # Guillermo Gomez says -lposix is necessary on A/UX.
8622    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8623if test "x$ac_cv_func_remove" = xyes; then :
8624
8625fi
8626
8627    if test $ac_cv_func_remove = no; then
8628      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8629$as_echo_n "checking for remove in -lposix... " >&6; }
8630if ${ac_cv_lib_posix_remove+:} false; then :
8631  $as_echo_n "(cached) " >&6
8632else
8633  ac_check_lib_save_LIBS=$LIBS
8634LIBS="-lposix  $LIBS"
8635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636/* end confdefs.h.  */
8637
8638/* Override any GCC internal prototype to avoid an error.
8639   Use char because int might match the return type of a GCC
8640   builtin and then its argument prototype would still apply.  */
8641#ifdef __cplusplus
8642extern "C"
8643#endif
8644char remove ();
8645int
8646main ()
8647{
8648return remove ();
8649  ;
8650  return 0;
8651}
8652_ACEOF
8653if ac_fn_c_try_link "$LINENO"; then :
8654  ac_cv_lib_posix_remove=yes
8655else
8656  ac_cv_lib_posix_remove=no
8657fi
8658rm -f core conftest.err conftest.$ac_objext \
8659    conftest$ac_exeext conftest.$ac_ext
8660LIBS=$ac_check_lib_save_LIBS
8661fi
8662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8663$as_echo "$ac_cv_lib_posix_remove" >&6; }
8664if test "x$ac_cv_lib_posix_remove" = xyes; then :
8665  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8666fi
8667
8668    fi
8669
8670    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8671    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8672if test "x$ac_cv_func_shmat" = xyes; then :
8673
8674fi
8675
8676    if test $ac_cv_func_shmat = no; then
8677      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8678$as_echo_n "checking for shmat in -lipc... " >&6; }
8679if ${ac_cv_lib_ipc_shmat+:} false; then :
8680  $as_echo_n "(cached) " >&6
8681else
8682  ac_check_lib_save_LIBS=$LIBS
8683LIBS="-lipc  $LIBS"
8684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685/* end confdefs.h.  */
8686
8687/* Override any GCC internal prototype to avoid an error.
8688   Use char because int might match the return type of a GCC
8689   builtin and then its argument prototype would still apply.  */
8690#ifdef __cplusplus
8691extern "C"
8692#endif
8693char shmat ();
8694int
8695main ()
8696{
8697return shmat ();
8698  ;
8699  return 0;
8700}
8701_ACEOF
8702if ac_fn_c_try_link "$LINENO"; then :
8703  ac_cv_lib_ipc_shmat=yes
8704else
8705  ac_cv_lib_ipc_shmat=no
8706fi
8707rm -f core conftest.err conftest.$ac_objext \
8708    conftest$ac_exeext conftest.$ac_ext
8709LIBS=$ac_check_lib_save_LIBS
8710fi
8711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8712$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8713if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8714  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8715fi
8716
8717    fi
8718  fi
8719
8720  # Check for libraries that X11R6 Xt/Xaw programs need.
8721  ac_save_LDFLAGS=$LDFLAGS
8722  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8723  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8724  # check for ICE first), but we must link in the order -lSM -lICE or
8725  # we get undefined symbols.  So assume we have SM if we have ICE.
8726  # These have to be linked with before -lX11, unlike the other
8727  # libraries we check for below, so use a different variable.
8728  # John Interrante, Karl Berry
8729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8730$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8731if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8732  $as_echo_n "(cached) " >&6
8733else
8734  ac_check_lib_save_LIBS=$LIBS
8735LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8737/* end confdefs.h.  */
8738
8739/* Override any GCC internal prototype to avoid an error.
8740   Use char because int might match the return type of a GCC
8741   builtin and then its argument prototype would still apply.  */
8742#ifdef __cplusplus
8743extern "C"
8744#endif
8745char IceConnectionNumber ();
8746int
8747main ()
8748{
8749return IceConnectionNumber ();
8750  ;
8751  return 0;
8752}
8753_ACEOF
8754if ac_fn_c_try_link "$LINENO"; then :
8755  ac_cv_lib_ICE_IceConnectionNumber=yes
8756else
8757  ac_cv_lib_ICE_IceConnectionNumber=no
8758fi
8759rm -f core conftest.err conftest.$ac_objext \
8760    conftest$ac_exeext conftest.$ac_ext
8761LIBS=$ac_check_lib_save_LIBS
8762fi
8763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8764$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8765if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8766  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8767fi
8768
8769  LDFLAGS=$ac_save_LDFLAGS
8770
8771fi
8772
8773
8774if test "$ac_cv_func_gethostbyname" = no; then
8775  if test "$ac_cv_lib_nsl_gethostbyname" = no; then
8776    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8777$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8778if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8779  $as_echo_n "(cached) " >&6
8780else
8781  ac_check_lib_save_LIBS=$LIBS
8782LIBS="-lbsd  $LIBS"
8783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784/* end confdefs.h.  */
8785
8786/* Override any GCC internal prototype to avoid an error.
8787   Use char because int might match the return type of a GCC
8788   builtin and then its argument prototype would still apply.  */
8789#ifdef __cplusplus
8790extern "C"
8791#endif
8792char gethostbyname ();
8793int
8794main ()
8795{
8796return gethostbyname ();
8797  ;
8798  return 0;
8799}
8800_ACEOF
8801if ac_fn_c_try_link "$LINENO"; then :
8802  ac_cv_lib_bsd_gethostbyname=yes
8803else
8804  ac_cv_lib_bsd_gethostbyname=no
8805fi
8806rm -f core conftest.err conftest.$ac_objext \
8807    conftest$ac_exeext conftest.$ac_ext
8808LIBS=$ac_check_lib_save_LIBS
8809fi
8810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8811$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8812if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8813  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8814fi
8815
8816  fi
8817fi
8818
8819if test "$no_x" != yes; then
8820  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8821  LIBRARIES_FOR_X="$X_LIBS -lX11 $X_EXTRA_LIBS"
8822
8823$as_echo "#define X11 1" >>confdefs.h
8824
8825
8826# Check whether --with-x-dcop was given.
8827if test "${with_x_dcop+set}" = set; then :
8828  withval=$with_x_dcop;
8829$as_echo "#define USE_KDE3_DCOP 1" >>confdefs.h
8830
8831fi
8832
8833fi
8834 if test "$no_x" != yes; then
8835  BUILD_GNUPLOT_X11_TRUE=
8836  BUILD_GNUPLOT_X11_FALSE='#'
8837else
8838  BUILD_GNUPLOT_X11_TRUE='#'
8839  BUILD_GNUPLOT_X11_FALSE=
8840fi
8841
8842
8843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MS-DOS/djgpp/libGRX" >&5
8844$as_echo_n "checking for MS-DOS/djgpp/libGRX... " >&6; }
8845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846/* end confdefs.h.  */
8847#if __DJGPP__ && __DJGPP__ == 2
8848  yes
8849#endif
8850
8851_ACEOF
8852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8853  $EGREP "yes" >/dev/null 2>&1; then :
8854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8855$as_echo "yes" >&6; }
8856  LIBS="-lpc $LIBS"
8857
8858$as_echo "#define MSDOS 1" >>confdefs.h
8859
8860
8861$as_echo "#define DOS32 1" >>confdefs.h
8862
8863  with_linux_vga=no
8864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GrLine in -lgrx20" >&5
8865$as_echo_n "checking for GrLine in -lgrx20... " >&6; }
8866if ${ac_cv_lib_grx20_GrLine+:} false; then :
8867  $as_echo_n "(cached) " >&6
8868else
8869  ac_check_lib_save_LIBS=$LIBS
8870LIBS="-lgrx20  $LIBS"
8871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872/* end confdefs.h.  */
8873
8874/* Override any GCC internal prototype to avoid an error.
8875   Use char because int might match the return type of a GCC
8876   builtin and then its argument prototype would still apply.  */
8877#ifdef __cplusplus
8878extern "C"
8879#endif
8880char GrLine ();
8881int
8882main ()
8883{
8884return GrLine ();
8885  ;
8886  return 0;
8887}
8888_ACEOF
8889if ac_fn_c_try_link "$LINENO"; then :
8890  ac_cv_lib_grx20_GrLine=yes
8891else
8892  ac_cv_lib_grx20_GrLine=no
8893fi
8894rm -f core conftest.err conftest.$ac_objext \
8895    conftest$ac_exeext conftest.$ac_ext
8896LIBS=$ac_check_lib_save_LIBS
8897fi
8898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_grx20_GrLine" >&5
8899$as_echo "$ac_cv_lib_grx20_GrLine" >&6; }
8900if test "x$ac_cv_lib_grx20_GrLine" = xyes; then :
8901  LIBS="-lgrx20 $LIBS"
8902    CFLAGS="$CFLAGS -fno-inline-functions"
8903
8904$as_echo "#define DJSVGA 1" >>confdefs.h
8905
8906    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GrCustomLine in -lgrx20" >&5
8907$as_echo_n "checking for GrCustomLine in -lgrx20... " >&6; }
8908if ${ac_cv_lib_grx20_GrCustomLine+:} false; then :
8909  $as_echo_n "(cached) " >&6
8910else
8911  ac_check_lib_save_LIBS=$LIBS
8912LIBS="-lgrx20  $LIBS"
8913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914/* end confdefs.h.  */
8915
8916/* Override any GCC internal prototype to avoid an error.
8917   Use char because int might match the return type of a GCC
8918   builtin and then its argument prototype would still apply.  */
8919#ifdef __cplusplus
8920extern "C"
8921#endif
8922char GrCustomLine ();
8923int
8924main ()
8925{
8926return GrCustomLine ();
8927  ;
8928  return 0;
8929}
8930_ACEOF
8931if ac_fn_c_try_link "$LINENO"; then :
8932  ac_cv_lib_grx20_GrCustomLine=yes
8933else
8934  ac_cv_lib_grx20_GrCustomLine=no
8935fi
8936rm -f core conftest.err conftest.$ac_objext \
8937    conftest$ac_exeext conftest.$ac_ext
8938LIBS=$ac_check_lib_save_LIBS
8939fi
8940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_grx20_GrCustomLine" >&5
8941$as_echo "$ac_cv_lib_grx20_GrCustomLine" >&6; }
8942if test "x$ac_cv_lib_grx20_GrCustomLine" = xyes; then :
8943
8944$as_echo "#define GRX21 1" >>confdefs.h
8945
8946fi
8947
8948fi
8949
8950  is_msdos=yes
8951else
8952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953$as_echo "no" >&6; }
8954  is_msdos=no
8955
8956fi
8957rm -f conftest*
8958
8959
8960
8961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X" >&5
8962$as_echo_n "checking for Mac OS X... " >&6; }
8963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964/* end confdefs.h.  */
8965
8966#if defined(__APPLE__) && defined(__MACH__)
8967      yes
8968#endif
8969
8970_ACEOF
8971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8972  $EGREP "yes" >/dev/null 2>&1; then :
8973
8974    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8975$as_echo "yes" >&6; }
8976    is_apple=yes
8977
8978# Check whether --with-aquaterm was given.
8979if test "${with_aquaterm+set}" = set; then :
8980  withval=$with_aquaterm; if test "$withval" == yes; then
8981
8982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AquaTerm framework presence" >&5
8983$as_echo_n "checking for AquaTerm framework presence... " >&6; }
8984  ac_gnuplot_save_LDFLAGS="$LDFLAGS"
8985  LDFLAGS="$LDFLAGS -framework Foundation -framework AquaTerm"
8986  ac_ext=m
8987ac_cpp='$OBJCPP $CPPFLAGS'
8988ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8989ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8990ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8991
8992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993/* end confdefs.h.  */
8994#import <AquaTerm/AQTAdapter.h>
8995int
8996main ()
8997{
8998
8999  ;
9000  return 0;
9001}
9002_ACEOF
9003if ac_fn_objc_try_link "$LINENO"; then :
9004  eval "gnuplot_framework_AquaTerm=yes"
9005else
9006  eval "gnuplot_framework_AquaTerm=no"
9007fi
9008rm -f core conftest.err conftest.$ac_objext \
9009    conftest$ac_exeext conftest.$ac_ext
9010  ac_ext=c
9011ac_cpp='$CPP $CPPFLAGS'
9012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9014ac_compiler_gnu=$ac_cv_c_compiler_gnu
9015
9016  LDFLAGS="$ac_gnuplot_save_LDFLAGS"
9017  if test "$gnuplot_framework_AquaTerm" = yes; then
9018
9019$as_echo "#define HAVE_FRAMEWORK_AQUATERM 1" >>confdefs.h
9020
9021    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9022$as_echo "yes" >&6; }
9023    CFLAGS="$CFLAGS -ObjC"; LDFLAGS="$LDFLAGS -framework Foundation -framework AquaTerm"
9024  else
9025    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026$as_echo "no" >&6; }
9027
9028  fi
9029
9030                fi
9031fi
9032
9033
9034else
9035
9036    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037$as_echo "no" >&6; }
9038    is_apple=no
9039
9040fi
9041rm -f conftest*
9042
9043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5
9044$as_echo_n "checking for BeOS... " >&6; }
9045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046/* end confdefs.h.  */
9047#if __BEOS__
9048  yes
9049#endif
9050
9051_ACEOF
9052if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9053  $EGREP "yes" >/dev/null 2>&1; then :
9054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9055$as_echo "yes" >&6; }
9056   build_src_beos_subdir=yes
9057else
9058  build_src_beos_subdir=no
9059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060$as_echo "no" >&6; }
9061fi
9062rm -f conftest*
9063
9064
9065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Alpha/AXP CPU" >&5
9066$as_echo_n "checking for Alpha/AXP CPU... " >&6; }
9067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068/* end confdefs.h.  */
9069#ifdef __alpha
9070  yes
9071#endif
9072
9073_ACEOF
9074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9075  $EGREP "yes" >/dev/null 2>&1; then :
9076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9077$as_echo "yes" >&6; }
9078  if test "$GCC" = "yes" ; then
9079     CFLAGS="-mieee $CFLAGS"
9080  else
9081     CFLAGS="-ieee $CFLAGS"
9082  fi
9083else
9084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9085$as_echo "no" >&6; }
9086
9087fi
9088rm -f conftest*
9089
9090 if test x$build_beos_subdir = xyes; then
9091  BUILD_SRC_BEOS_SUBDIR_TRUE=
9092  BUILD_SRC_BEOS_SUBDIR_FALSE='#'
9093else
9094  BUILD_SRC_BEOS_SUBDIR_TRUE='#'
9095  BUILD_SRC_BEOS_SUBDIR_FALSE=
9096fi
9097
9098
9099ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
9100if test "x$ac_cv_func_sin" = xyes; then :
9101
9102else
9103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
9104$as_echo_n "checking for sin in -lm... " >&6; }
9105if ${ac_cv_lib_m_sin+:} false; then :
9106  $as_echo_n "(cached) " >&6
9107else
9108  ac_check_lib_save_LIBS=$LIBS
9109LIBS="-lm  $LIBS"
9110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111/* end confdefs.h.  */
9112
9113/* Override any GCC internal prototype to avoid an error.
9114   Use char because int might match the return type of a GCC
9115   builtin and then its argument prototype would still apply.  */
9116#ifdef __cplusplus
9117extern "C"
9118#endif
9119char sin ();
9120int
9121main ()
9122{
9123return sin ();
9124  ;
9125  return 0;
9126}
9127_ACEOF
9128if ac_fn_c_try_link "$LINENO"; then :
9129  ac_cv_lib_m_sin=yes
9130else
9131  ac_cv_lib_m_sin=no
9132fi
9133rm -f core conftest.err conftest.$ac_objext \
9134    conftest$ac_exeext conftest.$ac_ext
9135LIBS=$ac_check_lib_save_LIBS
9136fi
9137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
9138$as_echo "$ac_cv_lib_m_sin" >&6; }
9139if test "x$ac_cv_lib_m_sin" = xyes; then :
9140  cat >>confdefs.h <<_ACEOF
9141#define HAVE_LIBM 1
9142_ACEOF
9143
9144  LIBS="-lm $LIBS"
9145
9146fi
9147
9148fi
9149
9150
9151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9152$as_echo_n "checking for ANSI C header files... " >&6; }
9153if ${ac_cv_header_stdc+:} false; then :
9154  $as_echo_n "(cached) " >&6
9155else
9156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157/* end confdefs.h.  */
9158#include <stdlib.h>
9159#include <stdarg.h>
9160#include <string.h>
9161#include <float.h>
9162
9163int
9164main ()
9165{
9166
9167  ;
9168  return 0;
9169}
9170_ACEOF
9171if ac_fn_c_try_compile "$LINENO"; then :
9172  ac_cv_header_stdc=yes
9173else
9174  ac_cv_header_stdc=no
9175fi
9176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9177
9178if test $ac_cv_header_stdc = yes; then
9179  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181/* end confdefs.h.  */
9182#include <string.h>
9183
9184_ACEOF
9185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9186  $EGREP "memchr" >/dev/null 2>&1; then :
9187
9188else
9189  ac_cv_header_stdc=no
9190fi
9191rm -f conftest*
9192
9193fi
9194
9195if test $ac_cv_header_stdc = yes; then
9196  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198/* end confdefs.h.  */
9199#include <stdlib.h>
9200
9201_ACEOF
9202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9203  $EGREP "free" >/dev/null 2>&1; then :
9204
9205else
9206  ac_cv_header_stdc=no
9207fi
9208rm -f conftest*
9209
9210fi
9211
9212if test $ac_cv_header_stdc = yes; then
9213  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9214  if test "$cross_compiling" = yes; then :
9215  :
9216else
9217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218/* end confdefs.h.  */
9219#include <ctype.h>
9220#include <stdlib.h>
9221#if ((' ' & 0x0FF) == 0x020)
9222# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9223# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9224#else
9225# define ISLOWER(c) \
9226		   (('a' <= (c) && (c) <= 'i') \
9227		     || ('j' <= (c) && (c) <= 'r') \
9228		     || ('s' <= (c) && (c) <= 'z'))
9229# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9230#endif
9231
9232#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9233int
9234main ()
9235{
9236  int i;
9237  for (i = 0; i < 256; i++)
9238    if (XOR (islower (i), ISLOWER (i))
9239	|| toupper (i) != TOUPPER (i))
9240      return 2;
9241  return 0;
9242}
9243_ACEOF
9244if ac_fn_c_try_run "$LINENO"; then :
9245
9246else
9247  ac_cv_header_stdc=no
9248fi
9249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9250  conftest.$ac_objext conftest.beam conftest.$ac_ext
9251fi
9252
9253fi
9254fi
9255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9256$as_echo "$ac_cv_header_stdc" >&6; }
9257if test $ac_cv_header_stdc = yes; then
9258
9259$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9260
9261fi
9262
9263
9264for ac_header in dirent.h errno.h float.h langinfo.h limits.h locale.h math.h \
9265  stdlib.h string.h time.h sys/time.h sys/types.h \
9266  sys/bsdtypes.h sys/ioctl.h sys/param.h sys/select.h sys/socket.h \
9267  sys/stat.h sys/systeminfo.h sys/timeb.h sys/utsname.h \
9268  libc.h malloc.h poll.h sgtty.h termios.h values.h dirent.h \
9269  inttypes.h \
9270  dlfcn.h dl.h
9271
9272do :
9273  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9274ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9275if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9276  cat >>confdefs.h <<_ACEOF
9277#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9278_ACEOF
9279
9280fi
9281
9282done
9283
9284
9285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9286$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9287if ${ac_cv_header_stdbool_h+:} false; then :
9288  $as_echo_n "(cached) " >&6
9289else
9290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291/* end confdefs.h.  */
9292
9293             #include <stdbool.h>
9294             #ifndef bool
9295              "error: bool is not defined"
9296             #endif
9297             #ifndef false
9298              "error: false is not defined"
9299             #endif
9300             #if false
9301              "error: false is not 0"
9302             #endif
9303             #ifndef true
9304              "error: true is not defined"
9305             #endif
9306             #if true != 1
9307              "error: true is not 1"
9308             #endif
9309             #ifndef __bool_true_false_are_defined
9310              "error: __bool_true_false_are_defined is not defined"
9311             #endif
9312
9313             struct s { _Bool s: 1; _Bool t; } s;
9314
9315             char a[true == 1 ? 1 : -1];
9316             char b[false == 0 ? 1 : -1];
9317             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9318             char d[(bool) 0.5 == true ? 1 : -1];
9319             /* See body of main program for 'e'.  */
9320             char f[(_Bool) 0.0 == false ? 1 : -1];
9321             char g[true];
9322             char h[sizeof (_Bool)];
9323             char i[sizeof s.t];
9324             enum { j = false, k = true, l = false * true, m = true * 256 };
9325             /* The following fails for
9326                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9327             _Bool n[m];
9328             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9329             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9330             /* Catch a bug in an HP-UX C compiler.  See
9331                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9332                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9333              */
9334             _Bool q = true;
9335             _Bool *pq = &q;
9336
9337int
9338main ()
9339{
9340
9341             bool e = &s;
9342             *pq |= q;
9343             *pq |= ! q;
9344             /* Refer to every declared value, to avoid compiler optimizations.  */
9345             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9346                     + !m + !n + !o + !p + !q + !pq);
9347
9348  ;
9349  return 0;
9350}
9351_ACEOF
9352if ac_fn_c_try_compile "$LINENO"; then :
9353  ac_cv_header_stdbool_h=yes
9354else
9355  ac_cv_header_stdbool_h=no
9356fi
9357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9358fi
9359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9360$as_echo "$ac_cv_header_stdbool_h" >&6; }
9361   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9362if test "x$ac_cv_type__Bool" = xyes; then :
9363
9364cat >>confdefs.h <<_ACEOF
9365#define HAVE__BOOL 1
9366_ACEOF
9367
9368
9369fi
9370
9371
9372if test $ac_cv_header_stdbool_h = yes; then
9373
9374$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
9375
9376fi
9377
9378
9379if test "$ac_cv_header_sys_stat_h" = yes; then
9380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9381$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9382if ${ac_cv_header_stat_broken+:} false; then :
9383  $as_echo_n "(cached) " >&6
9384else
9385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386/* end confdefs.h.  */
9387#include <sys/types.h>
9388#include <sys/stat.h>
9389
9390#if defined S_ISBLK && defined S_IFDIR
9391extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9392#endif
9393
9394#if defined S_ISBLK && defined S_IFCHR
9395extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9396#endif
9397
9398#if defined S_ISLNK && defined S_IFREG
9399extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9400#endif
9401
9402#if defined S_ISSOCK && defined S_IFREG
9403extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9404#endif
9405
9406_ACEOF
9407if ac_fn_c_try_compile "$LINENO"; then :
9408  ac_cv_header_stat_broken=no
9409else
9410  ac_cv_header_stat_broken=yes
9411fi
9412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9413fi
9414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9415$as_echo "$ac_cv_header_stat_broken" >&6; }
9416if test $ac_cv_header_stat_broken = yes; then
9417
9418$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9419
9420fi
9421
9422fi
9423
9424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9425$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9426if ${ac_cv_header_sys_wait_h+:} false; then :
9427  $as_echo_n "(cached) " >&6
9428else
9429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9430/* end confdefs.h.  */
9431#include <sys/types.h>
9432#include <sys/wait.h>
9433#ifndef WEXITSTATUS
9434# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9435#endif
9436#ifndef WIFEXITED
9437# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9438#endif
9439
9440int
9441main ()
9442{
9443  int s;
9444  wait (&s);
9445  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9446  ;
9447  return 0;
9448}
9449_ACEOF
9450if ac_fn_c_try_compile "$LINENO"; then :
9451  ac_cv_header_sys_wait_h=yes
9452else
9453  ac_cv_header_sys_wait_h=no
9454fi
9455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9456fi
9457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9458$as_echo "$ac_cv_header_sys_wait_h" >&6; }
9459if test $ac_cv_header_sys_wait_h = yes; then
9460
9461$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9462
9463fi
9464
9465
9466# Check whether --enable-plugins was given.
9467if test "${enable_plugins+set}" = set; then :
9468  enableval=$enable_plugins;
9469fi
9470
9471
9472if test "$enable_plugins" != no; then
9473  if test "$ac_cv_header_dl_h" = yes; then
9474    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
9475$as_echo_n "checking for library containing shl_load... " >&6; }
9476if ${ac_cv_search_shl_load+:} false; then :
9477  $as_echo_n "(cached) " >&6
9478else
9479  ac_func_search_save_LIBS=$LIBS
9480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481/* end confdefs.h.  */
9482
9483/* Override any GCC internal prototype to avoid an error.
9484   Use char because int might match the return type of a GCC
9485   builtin and then its argument prototype would still apply.  */
9486#ifdef __cplusplus
9487extern "C"
9488#endif
9489char shl_load ();
9490int
9491main ()
9492{
9493return shl_load ();
9494  ;
9495  return 0;
9496}
9497_ACEOF
9498for ac_lib in '' dld; do
9499  if test -z "$ac_lib"; then
9500    ac_res="none required"
9501  else
9502    ac_res=-l$ac_lib
9503    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9504  fi
9505  if ac_fn_c_try_link "$LINENO"; then :
9506  ac_cv_search_shl_load=$ac_res
9507fi
9508rm -f core conftest.err conftest.$ac_objext \
9509    conftest$ac_exeext
9510  if ${ac_cv_search_shl_load+:} false; then :
9511  break
9512fi
9513done
9514if ${ac_cv_search_shl_load+:} false; then :
9515
9516else
9517  ac_cv_search_shl_load=no
9518fi
9519rm conftest.$ac_ext
9520LIBS=$ac_func_search_save_LIBS
9521fi
9522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
9523$as_echo "$ac_cv_search_shl_load" >&6; }
9524ac_res=$ac_cv_search_shl_load
9525if test "$ac_res" != no; then :
9526  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9527
9528$as_echo "#define HAVE_EXTERNAL_FUNCTIONS 1" >>confdefs.h
9529
9530       have_external_functions=yes
9531
9532fi
9533
9534  fi
9535  if test "$ac_cv_header_dlfcn_h" = yes; then
9536    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9537$as_echo_n "checking for library containing dlopen... " >&6; }
9538if ${ac_cv_search_dlopen+:} false; then :
9539  $as_echo_n "(cached) " >&6
9540else
9541  ac_func_search_save_LIBS=$LIBS
9542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543/* end confdefs.h.  */
9544
9545/* Override any GCC internal prototype to avoid an error.
9546   Use char because int might match the return type of a GCC
9547   builtin and then its argument prototype would still apply.  */
9548#ifdef __cplusplus
9549extern "C"
9550#endif
9551char dlopen ();
9552int
9553main ()
9554{
9555return dlopen ();
9556  ;
9557  return 0;
9558}
9559_ACEOF
9560for ac_lib in '' dl; do
9561  if test -z "$ac_lib"; then
9562    ac_res="none required"
9563  else
9564    ac_res=-l$ac_lib
9565    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9566  fi
9567  if ac_fn_c_try_link "$LINENO"; then :
9568  ac_cv_search_dlopen=$ac_res
9569fi
9570rm -f core conftest.err conftest.$ac_objext \
9571    conftest$ac_exeext
9572  if ${ac_cv_search_dlopen+:} false; then :
9573  break
9574fi
9575done
9576if ${ac_cv_search_dlopen+:} false; then :
9577
9578else
9579  ac_cv_search_dlopen=no
9580fi
9581rm conftest.$ac_ext
9582LIBS=$ac_func_search_save_LIBS
9583fi
9584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9585$as_echo "$ac_cv_search_dlopen" >&6; }
9586ac_res=$ac_cv_search_dlopen
9587if test "$ac_res" != no; then :
9588  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9589
9590$as_echo "#define HAVE_EXTERNAL_FUNCTIONS 1" >>confdefs.h
9591
9592       have_external_functions=yes
9593
9594fi
9595
9596  fi
9597fi
9598 if test "$have_external_functions" = yes; then
9599  BUILD_PLUGIN_TRUE=
9600  BUILD_PLUGIN_FALSE='#'
9601else
9602  BUILD_PLUGIN_TRUE='#'
9603  BUILD_PLUGIN_FALSE=
9604fi
9605
9606
9607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unistd.h" >&5
9608$as_echo_n "checking for unistd.h... " >&6; }
9609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9610/* end confdefs.h.  */
9611#include <unistd.h>
9612
9613_ACEOF
9614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9615  $EGREP "execv" >/dev/null 2>&1; then :
9616  $as_echo "#define HAVE_UNISTD_H 1" >>confdefs.h
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9618$as_echo "yes" >&6; }
9619else
9620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9621$as_echo "no" >&6; }
9622fi
9623rm -f conftest*
9624
9625
9626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if errno variable is declared" >&5
9627$as_echo_n "checking if errno variable is declared... " >&6; }
9628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629/* end confdefs.h.  */
9630#include <stdio.h>
9631#ifdef HAVE_ERRNO_H
9632#include <errno.h>
9633#endif
9634int
9635main ()
9636{
9637errno=0
9638  ;
9639  return 0;
9640}
9641_ACEOF
9642if ac_fn_c_try_compile "$LINENO"; then :
9643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9644$as_echo "yes" >&6; }
9645else
9646
9647$as_echo "#define EXTERN_ERRNO 1" >>confdefs.h
9648
9649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650$as_echo "no" >&6; }
9651fi
9652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9653
9654
9655ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9656if test "x$ac_cv_type_size_t" = xyes; then :
9657
9658else
9659
9660cat >>confdefs.h <<_ACEOF
9661#define size_t unsigned int
9662_ACEOF
9663
9664fi
9665
9666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5
9667$as_echo_n "checking for time_t in time.h... " >&6; }
9668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9669/* end confdefs.h.  */
9670#include <time.h>
9671
9672_ACEOF
9673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9674  $EGREP "time_t" >/dev/null 2>&1; then :
9675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9676$as_echo "yes" >&6; }
9677
9678$as_echo "#define HAVE_TIME_T_IN_TIME_H 1" >>confdefs.h
9679
9680fi
9681rm -f conftest*
9682
9683
9684
9685
9686for ac_func in atexit memcpy memmove memset \
9687  on_exit bcopy bzero \
9688  setvbuf strerror strchr strrchr strstr \
9689  index rindex \
9690  erf erfc gamma lgamma tgamma \
9691  getcwd poll pclose popen fdopen select sleep stpcpy \
9692  strcspn strdup strndup strnlen strcasecmp stricmp strncasecmp strnicmp \
9693  sysinfo tcgetattr vfprintf doprnt uname usleep
9694
9695do :
9696  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9697ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9698if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9699  cat >>confdefs.h <<_ACEOF
9700#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9701_ACEOF
9702
9703fi
9704done
9705
9706
9707ac_fn_c_check_decl "$LINENO" "signgam" "ac_cv_have_decl_signgam" "#if HAVE_MATH_H
9708#include <math.h>
9709#endif
9710
9711"
9712if test "x$ac_cv_have_decl_signgam" = xyes; then :
9713  ac_have_decl=1
9714else
9715  ac_have_decl=0
9716fi
9717
9718cat >>confdefs.h <<_ACEOF
9719#define HAVE_DECL_SIGNGAM $ac_have_decl
9720_ACEOF
9721
9722
9723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
9724$as_echo_n "checking for sigsetjmp... " >&6; }
9725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726/* end confdefs.h.  */
9727#include <setjmp.h>
9728int
9729main ()
9730{
9731jmp_buf env; sigsetjmp(env, 1);
9732  ;
9733  return 0;
9734}
9735_ACEOF
9736if ac_fn_c_try_link "$LINENO"; then :
9737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9738$as_echo "yes" >&6; }
9739
9740$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
9741
9742else
9743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744$as_echo "no" >&6; }
9745fi
9746rm -f core conftest.err conftest.$ac_objext \
9747    conftest$ac_exeext conftest.$ac_ext
9748
9749if test "$ac_cv_func_pclose" = yes -a "$ac_cv_func_popen" = yes ; then
9750
9751$as_echo "#define PIPES 1" >>confdefs.h
9752
9753fi
9754
9755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc(0) returns 0" >&5
9756$as_echo_n "checking if malloc(0) returns 0... " >&6; }
9757if test "$cross_compiling" = yes; then :
9758  malloc_zero_returns_zero=yes
9759else
9760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761/* end confdefs.h.  */
9762#ifdef HAVE_STDLIB_H
9763#include <stdlib.h>
9764#endif
9765
9766int
9767main ()
9768{
9769if(malloc(0)==0) return 1;
9770  ;
9771  return 0;
9772}
9773_ACEOF
9774if ac_fn_c_try_run "$LINENO"; then :
9775  malloc_zero_returns_zero=no
9776else
9777  malloc_zero_returns_zero=yes
9778fi
9779rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9780  conftest.$ac_objext conftest.beam conftest.$ac_ext
9781fi
9782
9783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $malloc_zero_returns_zero" >&5
9784$as_echo "$malloc_zero_returns_zero" >&6; }
9785if test x$malloc_zero_returns_zero = xyes; then :
9786
9787$as_echo "#define MALLOC_ZERO_RETURNS_ZERO 1" >>confdefs.h
9788
9789fi
9790
9791for ac_header in sys/select.h sys/socket.h
9792do :
9793  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9794ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9795if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9796  cat >>confdefs.h <<_ACEOF
9797#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9798_ACEOF
9799
9800fi
9801
9802done
9803
9804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9805$as_echo_n "checking types of arguments for select... " >&6; }
9806if ${ac_cv_func_select_args+:} false; then :
9807  $as_echo_n "(cached) " >&6
9808else
9809  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9810 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9811  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813/* end confdefs.h.  */
9814$ac_includes_default
9815#ifdef HAVE_SYS_SELECT_H
9816# include <sys/select.h>
9817#endif
9818#ifdef HAVE_SYS_SOCKET_H
9819# include <sys/socket.h>
9820#endif
9821
9822int
9823main ()
9824{
9825extern int select ($ac_arg1,
9826					    $ac_arg234, $ac_arg234, $ac_arg234,
9827					    $ac_arg5);
9828  ;
9829  return 0;
9830}
9831_ACEOF
9832if ac_fn_c_try_compile "$LINENO"; then :
9833  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9834fi
9835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9836  done
9837 done
9838done
9839# Provide a safe default value.
9840: "${ac_cv_func_select_args=int,int *,struct timeval *}"
9841
9842fi
9843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9844$as_echo "$ac_cv_func_select_args" >&6; }
9845ac_save_IFS=$IFS; IFS=','
9846set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9847IFS=$ac_save_IFS
9848shift
9849
9850cat >>confdefs.h <<_ACEOF
9851#define SELECT_TYPE_ARG1 $1
9852_ACEOF
9853
9854
9855cat >>confdefs.h <<_ACEOF
9856#define SELECT_TYPE_ARG234 ($2)
9857_ACEOF
9858
9859
9860cat >>confdefs.h <<_ACEOF
9861#define SELECT_TYPE_ARG5 ($3)
9862_ACEOF
9863
9864rm -f conftest*
9865
9866
9867
9868eval gp_datadir=$datadir
9869if test "$gp_datadir" = NONE/share; then
9870  datadir="/usr/local/share"
9871fi
9872pkgdatadir="$datadir/$PACKAGE"
9873
9874# Check whether --with-gihdir was given.
9875if test "${with_gihdir+set}" = set; then :
9876  withval=$with_gihdir; GIHDIR="$withval"
9877else
9878  GIHDIR="$pkgdatadir/$VERSION_MAJOR"
9879fi
9880
9881
9882GGI_SUPPORT=no
9883
9884# Check whether --with-ggi was given.
9885if test "${with_ggi+set}" = set; then :
9886  withval=$with_ggi; if test "$withval" != no; then
9887     if test -d $withval/include; then
9888       CPPFLAGS="$CPPFLAGS -I$withval/include"
9889     fi
9890     if test -d $withval/lib; then
9891       LDFLAGS="$LDFLAGS -L$withval/lib"
9892     fi
9893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ggiInit in -lggi" >&5
9894$as_echo_n "checking for ggiInit in -lggi... " >&6; }
9895if ${ac_cv_lib_ggi_ggiInit+:} false; then :
9896  $as_echo_n "(cached) " >&6
9897else
9898  ac_check_lib_save_LIBS=$LIBS
9899LIBS="-lggi  $LIBS"
9900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901/* end confdefs.h.  */
9902
9903/* Override any GCC internal prototype to avoid an error.
9904   Use char because int might match the return type of a GCC
9905   builtin and then its argument prototype would still apply.  */
9906#ifdef __cplusplus
9907extern "C"
9908#endif
9909char ggiInit ();
9910int
9911main ()
9912{
9913return ggiInit ();
9914  ;
9915  return 0;
9916}
9917_ACEOF
9918if ac_fn_c_try_link "$LINENO"; then :
9919  ac_cv_lib_ggi_ggiInit=yes
9920else
9921  ac_cv_lib_ggi_ggiInit=no
9922fi
9923rm -f core conftest.err conftest.$ac_objext \
9924    conftest$ac_exeext conftest.$ac_ext
9925LIBS=$ac_check_lib_save_LIBS
9926fi
9927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ggi_ggiInit" >&5
9928$as_echo "$ac_cv_lib_ggi_ggiInit" >&6; }
9929if test "x$ac_cv_lib_ggi_ggiInit" = xyes; then :
9930  TERMLIBS="-lggi $TERMLIBS"
9931
9932$as_echo "#define USE_GGI_DRIVER 1" >>confdefs.h
9933
9934        GGI_SUPPORT=yes
9935	        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmiInit in -lxmi" >&5
9936$as_echo_n "checking for xmiInit in -lxmi... " >&6; }
9937if ${ac_cv_lib_xmi_xmiInit+:} false; then :
9938  $as_echo_n "(cached) " >&6
9939else
9940  ac_check_lib_save_LIBS=$LIBS
9941LIBS="-lxmi  $LIBS"
9942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943/* end confdefs.h.  */
9944
9945/* Override any GCC internal prototype to avoid an error.
9946   Use char because int might match the return type of a GCC
9947   builtin and then its argument prototype would still apply.  */
9948#ifdef __cplusplus
9949extern "C"
9950#endif
9951char xmiInit ();
9952int
9953main ()
9954{
9955return xmiInit ();
9956  ;
9957  return 0;
9958}
9959_ACEOF
9960if ac_fn_c_try_link "$LINENO"; then :
9961  ac_cv_lib_xmi_xmiInit=yes
9962else
9963  ac_cv_lib_xmi_xmiInit=no
9964fi
9965rm -f core conftest.err conftest.$ac_objext \
9966    conftest$ac_exeext conftest.$ac_ext
9967LIBS=$ac_check_lib_save_LIBS
9968fi
9969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xmi_xmiInit" >&5
9970$as_echo "$ac_cv_lib_xmi_xmiInit" >&6; }
9971if test "x$ac_cv_lib_xmi_xmiInit" = xyes; then :
9972  TERMLIBS="-lxmi $TERMLIBS"
9973           for ac_header in ggi/xmi.h
9974do :
9975  ac_fn_c_check_header_mongrel "$LINENO" "ggi/xmi.h" "ac_cv_header_ggi_xmi_h" "$ac_includes_default"
9976if test "x$ac_cv_header_ggi_xmi_h" = xyes; then :
9977  cat >>confdefs.h <<_ACEOF
9978#define HAVE_GGI_XMI_H 1
9979_ACEOF
9980
9981fi
9982
9983done
9984
9985fi
9986
9987                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ggiWmhInit in -lggiwmh" >&5
9988$as_echo_n "checking for ggiWmhInit in -lggiwmh... " >&6; }
9989if ${ac_cv_lib_ggiwmh_ggiWmhInit+:} false; then :
9990  $as_echo_n "(cached) " >&6
9991else
9992  ac_check_lib_save_LIBS=$LIBS
9993LIBS="-lggiwmh  $LIBS"
9994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995/* end confdefs.h.  */
9996
9997/* Override any GCC internal prototype to avoid an error.
9998   Use char because int might match the return type of a GCC
9999   builtin and then its argument prototype would still apply.  */
10000#ifdef __cplusplus
10001extern "C"
10002#endif
10003char ggiWmhInit ();
10004int
10005main ()
10006{
10007return ggiWmhInit ();
10008  ;
10009  return 0;
10010}
10011_ACEOF
10012if ac_fn_c_try_link "$LINENO"; then :
10013  ac_cv_lib_ggiwmh_ggiWmhInit=yes
10014else
10015  ac_cv_lib_ggiwmh_ggiWmhInit=no
10016fi
10017rm -f core conftest.err conftest.$ac_objext \
10018    conftest$ac_exeext conftest.$ac_ext
10019LIBS=$ac_check_lib_save_LIBS
10020fi
10021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ggiwmh_ggiWmhInit" >&5
10022$as_echo "$ac_cv_lib_ggiwmh_ggiWmhInit" >&6; }
10023if test "x$ac_cv_lib_ggiwmh_ggiWmhInit" = xyes; then :
10024  TERMLIBS="-lggiwmh $TERMLIBS"
10025           for ac_header in ggi/wmh.h
10026do :
10027  ac_fn_c_check_header_mongrel "$LINENO" "ggi/wmh.h" "ac_cv_header_ggi_wmh_h" "$ac_includes_default"
10028if test "x$ac_cv_header_ggi_wmh_h" = xyes; then :
10029  cat >>confdefs.h <<_ACEOF
10030#define HAVE_GGI_WMH_H 1
10031_ACEOF
10032
10033else
10034  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found ggiwmh library but not ggi/wmh.h
10035please add path to ggi/wmh.h to CPPFLAGS in Makefile" >&5
10036$as_echo "$as_me: WARNING: found ggiwmh library but not ggi/wmh.h
10037please add path to ggi/wmh.h to CPPFLAGS in Makefile" >&2;}
10038fi
10039
10040done
10041
10042
10043fi
10044
10045fi
10046
10047   fi
10048fi
10049
10050
10051
10052# Check whether --with-readline was given.
10053if test "${with_readline+set}" = set; then :
10054  withval=$with_readline;
10055else
10056  test -z "$with_readline" && with_readline=gnu
10057fi
10058
10059
10060if test "x${with_readline}" = "xno"; then :
10061  with_readline="builtin"
10062fi
10063
10064# Check whether --enable-history-file was given.
10065if test "${enable_history_file+set}" = set; then :
10066  enableval=$enable_history_file;
10067else
10068  test -z "$enable_history_file" && enable_history_file=yes
10069fi
10070
10071
10072if test "$with_readline" != no; then
10073  _libs="$LIBS"
10074  if test "$with_readline" != builtin; then
10075
10076            gp_tcap=""
10077    for termlib in ncurses curses termcap terminfo termlib; do
10078      as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh`
10079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -l${termlib}" >&5
10080$as_echo_n "checking for tputs in -l${termlib}... " >&6; }
10081if eval \${$as_ac_Lib+:} false; then :
10082  $as_echo_n "(cached) " >&6
10083else
10084  ac_check_lib_save_LIBS=$LIBS
10085LIBS="-l${termlib}  $LIBS"
10086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087/* end confdefs.h.  */
10088
10089/* Override any GCC internal prototype to avoid an error.
10090   Use char because int might match the return type of a GCC
10091   builtin and then its argument prototype would still apply.  */
10092#ifdef __cplusplus
10093extern "C"
10094#endif
10095char tputs ();
10096int
10097main ()
10098{
10099return tputs ();
10100  ;
10101  return 0;
10102}
10103_ACEOF
10104if ac_fn_c_try_link "$LINENO"; then :
10105  eval "$as_ac_Lib=yes"
10106else
10107  eval "$as_ac_Lib=no"
10108fi
10109rm -f core conftest.err conftest.$ac_objext \
10110    conftest$ac_exeext conftest.$ac_ext
10111LIBS=$ac_check_lib_save_LIBS
10112fi
10113eval ac_res=\$$as_ac_Lib
10114	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10115$as_echo "$ac_res" >&6; }
10116if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10117  gp_tcap="$gp_tcap -l$termlib"
10118fi
10119
10120      case "$gp_tcap" in
10121        *-l${termlib}*)
10122          break
10123        ;;
10124      esac
10125    done
10126
10127        if test "$with_readline" != gnu -a "$with_readline" != bsd; then
10128      if test -d $with_readline/include; then
10129        CPPFLAGS="$CPPFLAGS -I$with_readline/include"
10130      fi
10131      if test -d $with_readline/lib; then
10132        LDFLAGS="$LDFLAGS -L$with_readline/lib"
10133      fi
10134            if test ! -d $with_readline/include/readline; then
10135        if test -d $with_readline/include/editline; then
10136          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_readline contains libedit, not readline!" >&5
10137$as_echo "$as_me: WARNING: $with_readline contains libedit, not readline!" >&2;}
10138          with_readline=bsd
10139        else
10140          as_fn_error $? "No readline found in $with_readline" "$LINENO" 5
10141        fi
10142      fi
10143    fi
10144
10145    if test "$with_readline" = bsd; then
10146
10147      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
10148$as_echo_n "checking for readline in -ledit... " >&6; }
10149if ${ac_cv_lib_edit_readline+:} false; then :
10150  $as_echo_n "(cached) " >&6
10151else
10152  ac_check_lib_save_LIBS=$LIBS
10153LIBS="-ledit  $LIBS"
10154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155/* end confdefs.h.  */
10156
10157/* Override any GCC internal prototype to avoid an error.
10158   Use char because int might match the return type of a GCC
10159   builtin and then its argument prototype would still apply.  */
10160#ifdef __cplusplus
10161extern "C"
10162#endif
10163char readline ();
10164int
10165main ()
10166{
10167return readline ();
10168  ;
10169  return 0;
10170}
10171_ACEOF
10172if ac_fn_c_try_link "$LINENO"; then :
10173  ac_cv_lib_edit_readline=yes
10174else
10175  ac_cv_lib_edit_readline=no
10176fi
10177rm -f core conftest.err conftest.$ac_objext \
10178    conftest$ac_exeext conftest.$ac_ext
10179LIBS=$ac_check_lib_save_LIBS
10180fi
10181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
10182$as_echo "$ac_cv_lib_edit_readline" >&6; }
10183if test "x$ac_cv_lib_edit_readline" = xyes; then :
10184  TERMLIBS="-ledit $TERMLIBS"
10185else
10186  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find BSD editline library " >&5
10187$as_echo "$as_me: WARNING: Could not find BSD editline library " >&2;}
10188	  with_readline=builtin
10189fi
10190
10191
10192      if test "$ac_cv_lib_edit_readline" = yes; then
10193
10194$as_echo "#define HAVE_LIBEDITLINE 1" >>confdefs.h
10195
10196        for ac_header in editline/readline.h
10197do :
10198  ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
10199if test "x$ac_cv_header_editline_readline_h" = xyes; then :
10200  cat >>confdefs.h <<_ACEOF
10201#define HAVE_EDITLINE_READLINE_H 1
10202_ACEOF
10203
10204else
10205  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found BSD editline library but not readline.h please add path to readline.h to CPPFLAGS in Makefile" >&5
10206$as_echo "$as_me: WARNING: found BSD editline library but not readline.h please add path to readline.h to CPPFLAGS in Makefile" >&2;}
10207fi
10208
10209done
10210
10211
10212        if test "$enable_history_file" = yes; then
10213
10214$as_echo "#define GNUPLOT_HISTORY 1" >>confdefs.h
10215
10216        fi
10217      fi
10218
10219    else # !bsd
10220
10221    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove_history in -lreadline" >&5
10222$as_echo_n "checking for remove_history in -lreadline... " >&6; }
10223if ${ac_cv_lib_readline_remove_history+:} false; then :
10224  $as_echo_n "(cached) " >&6
10225else
10226  ac_check_lib_save_LIBS=$LIBS
10227LIBS="-lreadline ${gp_tcap} $LIBS"
10228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10229/* end confdefs.h.  */
10230
10231/* Override any GCC internal prototype to avoid an error.
10232   Use char because int might match the return type of a GCC
10233   builtin and then its argument prototype would still apply.  */
10234#ifdef __cplusplus
10235extern "C"
10236#endif
10237char remove_history ();
10238int
10239main ()
10240{
10241return remove_history ();
10242  ;
10243  return 0;
10244}
10245_ACEOF
10246if ac_fn_c_try_link "$LINENO"; then :
10247  ac_cv_lib_readline_remove_history=yes
10248else
10249  ac_cv_lib_readline_remove_history=no
10250fi
10251rm -f core conftest.err conftest.$ac_objext \
10252    conftest$ac_exeext conftest.$ac_ext
10253LIBS=$ac_check_lib_save_LIBS
10254fi
10255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_remove_history" >&5
10256$as_echo "$ac_cv_lib_readline_remove_history" >&6; }
10257if test "x$ac_cv_lib_readline_remove_history" = xyes; then :
10258  TERMLIBS="-lreadline $gp_tcap $TERMLIBS"
10259fi
10260
10261    if test "$ac_cv_lib_readline_remove_history" = no; then
10262            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove_history in -lhistory" >&5
10263$as_echo_n "checking for remove_history in -lhistory... " >&6; }
10264if ${ac_cv_lib_history_remove_history+:} false; then :
10265  $as_echo_n "(cached) " >&6
10266else
10267  ac_check_lib_save_LIBS=$LIBS
10268LIBS="-lhistory ${gp_tcap} $LIBS"
10269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270/* end confdefs.h.  */
10271
10272/* Override any GCC internal prototype to avoid an error.
10273   Use char because int might match the return type of a GCC
10274   builtin and then its argument prototype would still apply.  */
10275#ifdef __cplusplus
10276extern "C"
10277#endif
10278char remove_history ();
10279int
10280main ()
10281{
10282return remove_history ();
10283  ;
10284  return 0;
10285}
10286_ACEOF
10287if ac_fn_c_try_link "$LINENO"; then :
10288  ac_cv_lib_history_remove_history=yes
10289else
10290  ac_cv_lib_history_remove_history=no
10291fi
10292rm -f core conftest.err conftest.$ac_objext \
10293    conftest$ac_exeext conftest.$ac_ext
10294LIBS=$ac_check_lib_save_LIBS
10295fi
10296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_history_remove_history" >&5
10297$as_echo "$ac_cv_lib_history_remove_history" >&6; }
10298if test "x$ac_cv_lib_history_remove_history" = xyes; then :
10299  TERMLIBS="-lreadline -lhistory $gp_tcap $TERMLIBS"
10300else
10301   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU readline not found - falling back to builtin readline" >&5
10302$as_echo "$as_me: WARNING: GNU readline not found - falling back to builtin readline" >&2;}
10303          with_readline=builtin
10304
10305fi
10306
10307    fi
10308
10309            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rl_ding" >&5
10310$as_echo_n "checking for library containing rl_ding... " >&6; }
10311if ${ac_cv_search_rl_ding+:} false; then :
10312  $as_echo_n "(cached) " >&6
10313else
10314  ac_func_search_save_LIBS=$LIBS
10315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316/* end confdefs.h.  */
10317
10318/* Override any GCC internal prototype to avoid an error.
10319   Use char because int might match the return type of a GCC
10320   builtin and then its argument prototype would still apply.  */
10321#ifdef __cplusplus
10322extern "C"
10323#endif
10324char rl_ding ();
10325int
10326main ()
10327{
10328return rl_ding ();
10329  ;
10330  return 0;
10331}
10332_ACEOF
10333for ac_lib in '' readline; do
10334  if test -z "$ac_lib"; then
10335    ac_res="none required"
10336  else
10337    ac_res=-l$ac_lib
10338    LIBS="-l$ac_lib ${TERMLIBS} $ac_func_search_save_LIBS"
10339  fi
10340  if ac_fn_c_try_link "$LINENO"; then :
10341  ac_cv_search_rl_ding=$ac_res
10342fi
10343rm -f core conftest.err conftest.$ac_objext \
10344    conftest$ac_exeext
10345  if ${ac_cv_search_rl_ding+:} false; then :
10346  break
10347fi
10348done
10349if ${ac_cv_search_rl_ding+:} false; then :
10350
10351else
10352  ac_cv_search_rl_ding=no
10353fi
10354rm conftest.$ac_ext
10355LIBS=$ac_func_search_save_LIBS
10356fi
10357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rl_ding" >&5
10358$as_echo "$ac_cv_search_rl_ding" >&6; }
10359ac_res=$ac_cv_search_rl_ding
10360if test "$ac_res" != no; then :
10361  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10362
10363else
10364
10365$as_echo "#define MISSING_RL_DING 1" >>confdefs.h
10366
10367fi
10368
10369    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rl_forced_update_display" >&5
10370$as_echo_n "checking for library containing rl_forced_update_display... " >&6; }
10371if ${ac_cv_search_rl_forced_update_display+:} false; then :
10372  $as_echo_n "(cached) " >&6
10373else
10374  ac_func_search_save_LIBS=$LIBS
10375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10376/* end confdefs.h.  */
10377
10378/* Override any GCC internal prototype to avoid an error.
10379   Use char because int might match the return type of a GCC
10380   builtin and then its argument prototype would still apply.  */
10381#ifdef __cplusplus
10382extern "C"
10383#endif
10384char rl_forced_update_display ();
10385int
10386main ()
10387{
10388return rl_forced_update_display ();
10389  ;
10390  return 0;
10391}
10392_ACEOF
10393for ac_lib in '' readline; do
10394  if test -z "$ac_lib"; then
10395    ac_res="none required"
10396  else
10397    ac_res=-l$ac_lib
10398    LIBS="-l$ac_lib ${TERMLIBS} $ac_func_search_save_LIBS"
10399  fi
10400  if ac_fn_c_try_link "$LINENO"; then :
10401  ac_cv_search_rl_forced_update_display=$ac_res
10402fi
10403rm -f core conftest.err conftest.$ac_objext \
10404    conftest$ac_exeext
10405  if ${ac_cv_search_rl_forced_update_display+:} false; then :
10406  break
10407fi
10408done
10409if ${ac_cv_search_rl_forced_update_display+:} false; then :
10410
10411else
10412  ac_cv_search_rl_forced_update_display=no
10413fi
10414rm conftest.$ac_ext
10415LIBS=$ac_func_search_save_LIBS
10416fi
10417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rl_forced_update_display" >&5
10418$as_echo "$ac_cv_search_rl_forced_update_display" >&6; }
10419ac_res=$ac_cv_search_rl_forced_update_display
10420if test "$ac_res" != no; then :
10421  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10422
10423else
10424
10425$as_echo "#define MISSING_RL_FORCED_UPDATE_DISPLAY 1" >>confdefs.h
10426
10427fi
10428
10429    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rl_reset_after_signal" >&5
10430$as_echo_n "checking for library containing rl_reset_after_signal... " >&6; }
10431if ${ac_cv_search_rl_reset_after_signal+:} false; then :
10432  $as_echo_n "(cached) " >&6
10433else
10434  ac_func_search_save_LIBS=$LIBS
10435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436/* end confdefs.h.  */
10437
10438/* Override any GCC internal prototype to avoid an error.
10439   Use char because int might match the return type of a GCC
10440   builtin and then its argument prototype would still apply.  */
10441#ifdef __cplusplus
10442extern "C"
10443#endif
10444char rl_reset_after_signal ();
10445int
10446main ()
10447{
10448return rl_reset_after_signal ();
10449  ;
10450  return 0;
10451}
10452_ACEOF
10453for ac_lib in '' readline; do
10454  if test -z "$ac_lib"; then
10455    ac_res="none required"
10456  else
10457    ac_res=-l$ac_lib
10458    LIBS="-l$ac_lib ${TERMLIBS} $ac_func_search_save_LIBS"
10459  fi
10460  if ac_fn_c_try_link "$LINENO"; then :
10461  ac_cv_search_rl_reset_after_signal=$ac_res
10462fi
10463rm -f core conftest.err conftest.$ac_objext \
10464    conftest$ac_exeext
10465  if ${ac_cv_search_rl_reset_after_signal+:} false; then :
10466  break
10467fi
10468done
10469if ${ac_cv_search_rl_reset_after_signal+:} false; then :
10470
10471else
10472  ac_cv_search_rl_reset_after_signal=no
10473fi
10474rm conftest.$ac_ext
10475LIBS=$ac_func_search_save_LIBS
10476fi
10477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rl_reset_after_signal" >&5
10478$as_echo "$ac_cv_search_rl_reset_after_signal" >&6; }
10479ac_res=$ac_cv_search_rl_reset_after_signal
10480if test "$ac_res" != no; then :
10481  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10482
10483$as_echo "#define HAVE_READLINE_RESET 1" >>confdefs.h
10484
10485fi
10486
10487    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing _rl_signal_handler" >&5
10488$as_echo_n "checking for library containing _rl_signal_handler... " >&6; }
10489if ${ac_cv_search__rl_signal_handler+:} false; then :
10490  $as_echo_n "(cached) " >&6
10491else
10492  ac_func_search_save_LIBS=$LIBS
10493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494/* end confdefs.h.  */
10495
10496/* Override any GCC internal prototype to avoid an error.
10497   Use char because int might match the return type of a GCC
10498   builtin and then its argument prototype would still apply.  */
10499#ifdef __cplusplus
10500extern "C"
10501#endif
10502char _rl_signal_handler ();
10503int
10504main ()
10505{
10506return _rl_signal_handler ();
10507  ;
10508  return 0;
10509}
10510_ACEOF
10511for ac_lib in '' readline; do
10512  if test -z "$ac_lib"; then
10513    ac_res="none required"
10514  else
10515    ac_res=-l$ac_lib
10516    LIBS="-l$ac_lib ${TERMLIBS} $ac_func_search_save_LIBS"
10517  fi
10518  if ac_fn_c_try_link "$LINENO"; then :
10519  ac_cv_search__rl_signal_handler=$ac_res
10520fi
10521rm -f core conftest.err conftest.$ac_objext \
10522    conftest$ac_exeext
10523  if ${ac_cv_search__rl_signal_handler+:} false; then :
10524  break
10525fi
10526done
10527if ${ac_cv_search__rl_signal_handler+:} false; then :
10528
10529else
10530  ac_cv_search__rl_signal_handler=no
10531fi
10532rm conftest.$ac_ext
10533LIBS=$ac_func_search_save_LIBS
10534fi
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search__rl_signal_handler" >&5
10536$as_echo "$ac_cv_search__rl_signal_handler" >&6; }
10537ac_res=$ac_cv_search__rl_signal_handler
10538if test "$ac_res" != no; then :
10539  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10540
10541$as_echo "#define HAVE_READLINE_SIGNAL_HANDLER 1" >>confdefs.h
10542
10543fi
10544
10545    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rl_pending_signal" >&5
10546$as_echo_n "checking for library containing rl_pending_signal... " >&6; }
10547if ${ac_cv_search_rl_pending_signal+:} false; then :
10548  $as_echo_n "(cached) " >&6
10549else
10550  ac_func_search_save_LIBS=$LIBS
10551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552/* end confdefs.h.  */
10553
10554/* Override any GCC internal prototype to avoid an error.
10555   Use char because int might match the return type of a GCC
10556   builtin and then its argument prototype would still apply.  */
10557#ifdef __cplusplus
10558extern "C"
10559#endif
10560char rl_pending_signal ();
10561int
10562main ()
10563{
10564return rl_pending_signal ();
10565  ;
10566  return 0;
10567}
10568_ACEOF
10569for ac_lib in '' readline; do
10570  if test -z "$ac_lib"; then
10571    ac_res="none required"
10572  else
10573    ac_res=-l$ac_lib
10574    LIBS="-l$ac_lib ${TERMLIBS} $ac_func_search_save_LIBS"
10575  fi
10576  if ac_fn_c_try_link "$LINENO"; then :
10577  ac_cv_search_rl_pending_signal=$ac_res
10578fi
10579rm -f core conftest.err conftest.$ac_objext \
10580    conftest$ac_exeext
10581  if ${ac_cv_search_rl_pending_signal+:} false; then :
10582  break
10583fi
10584done
10585if ${ac_cv_search_rl_pending_signal+:} false; then :
10586
10587else
10588  ac_cv_search_rl_pending_signal=no
10589fi
10590rm conftest.$ac_ext
10591LIBS=$ac_func_search_save_LIBS
10592fi
10593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rl_pending_signal" >&5
10594$as_echo "$ac_cv_search_rl_pending_signal" >&6; }
10595ac_res=$ac_cv_search_rl_pending_signal
10596if test "$ac_res" != no; then :
10597  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10598
10599$as_echo "#define HAVE_READLINE_PENDING_SIGNAL 1" >>confdefs.h
10600
10601fi
10602
10603    # Warning: rl_complete_with_tilde_expansion is an int, not a function.
10604    # I.e., it is not callable.  AC_CHECK_LIB seems to work anyhow, but...
10605    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rl_complete_with_tilde_expansion" >&5
10606$as_echo_n "checking for library containing rl_complete_with_tilde_expansion... " >&6; }
10607if ${ac_cv_search_rl_complete_with_tilde_expansion+:} false; then :
10608  $as_echo_n "(cached) " >&6
10609else
10610  ac_func_search_save_LIBS=$LIBS
10611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612/* end confdefs.h.  */
10613
10614/* Override any GCC internal prototype to avoid an error.
10615   Use char because int might match the return type of a GCC
10616   builtin and then its argument prototype would still apply.  */
10617#ifdef __cplusplus
10618extern "C"
10619#endif
10620char rl_complete_with_tilde_expansion ();
10621int
10622main ()
10623{
10624return rl_complete_with_tilde_expansion ();
10625  ;
10626  return 0;
10627}
10628_ACEOF
10629for ac_lib in '' readline; do
10630  if test -z "$ac_lib"; then
10631    ac_res="none required"
10632  else
10633    ac_res=-l$ac_lib
10634    LIBS="-l$ac_lib ${TERMLIBS} $ac_func_search_save_LIBS"
10635  fi
10636  if ac_fn_c_try_link "$LINENO"; then :
10637  ac_cv_search_rl_complete_with_tilde_expansion=$ac_res
10638fi
10639rm -f core conftest.err conftest.$ac_objext \
10640    conftest$ac_exeext
10641  if ${ac_cv_search_rl_complete_with_tilde_expansion+:} false; then :
10642  break
10643fi
10644done
10645if ${ac_cv_search_rl_complete_with_tilde_expansion+:} false; then :
10646
10647else
10648  ac_cv_search_rl_complete_with_tilde_expansion=no
10649fi
10650rm conftest.$ac_ext
10651LIBS=$ac_func_search_save_LIBS
10652fi
10653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rl_complete_with_tilde_expansion" >&5
10654$as_echo "$ac_cv_search_rl_complete_with_tilde_expansion" >&6; }
10655ac_res=$ac_cv_search_rl_complete_with_tilde_expansion
10656if test "$ac_res" != no; then :
10657  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10658
10659else
10660
10661$as_echo "#define MISSING_RL_TILDE_EXPANSION 1" >>confdefs.h
10662
10663fi
10664
10665
10666    if test "$ac_cv_lib_readline_remove_history" != no || test "$ac_cv_lib_history_remove_history" != no; then
10667      if test "$with_readline" = bsd; then
10668
10669$as_echo "#define HAVE_LIBEDITLINE 1" >>confdefs.h
10670
10671      else
10672
10673$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
10674
10675      fi
10676      for ac_header in readline/readline.h
10677do :
10678  ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
10679if test "x$ac_cv_header_readline_readline_h" = xyes; then :
10680  cat >>confdefs.h <<_ACEOF
10681#define HAVE_READLINE_READLINE_H 1
10682_ACEOF
10683
10684else
10685  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found GNU readline library but not readline.h
10686please add path to readline.h to CPPFLAGS in Makefile" >&5
10687$as_echo "$as_me: WARNING: found GNU readline library but not readline.h
10688please add path to readline.h to CPPFLAGS in Makefile" >&2;}
10689fi
10690
10691done
10692
10693      for ac_header in readline/history.h
10694do :
10695  ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
10696if test "x$ac_cv_header_readline_history_h" = xyes; then :
10697  cat >>confdefs.h <<_ACEOF
10698#define HAVE_READLINE_HISTORY_H 1
10699_ACEOF
10700
10701else
10702  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found GNU readline library but not history.h
10703please add path to history.h to CPPFLAGS in Makefile" >&5
10704$as_echo "$as_me: WARNING: found GNU readline library but not history.h
10705please add path to history.h to CPPFLAGS in Makefile" >&2;}
10706fi
10707
10708done
10709
10710
10711      if test "$enable_history_file" = yes; then
10712
10713$as_echo "#define GNUPLOT_HISTORY 1" >>confdefs.h
10714
10715      fi
10716
10717    fi # ! ac_cv_lib_readline_readline = no
10718
10719   fi # ! with_readline = bsd
10720
10721  fi # ! with_readline != builtin
10722
10723  if test "$with_readline" = builtin; then
10724    for ac_func in wcwidth
10725do :
10726  ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
10727if test "x$ac_cv_func_wcwidth" = xyes; then :
10728  cat >>confdefs.h <<_ACEOF
10729#define HAVE_WCWIDTH 1
10730_ACEOF
10731
10732fi
10733done
10734
10735    for ac_header in wchar.h
10736do :
10737  ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
10738if test "x$ac_cv_header_wchar_h" = xyes; then :
10739  cat >>confdefs.h <<_ACEOF
10740#define HAVE_WCHAR_H 1
10741_ACEOF
10742
10743else
10744  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: please add path to wchar.h to CPPFLAGS in Makefile" >&5
10745$as_echo "$as_me: WARNING: please add path to wchar.h to CPPFLAGS in Makefile" >&2;}
10746fi
10747
10748done
10749
10750
10751$as_echo "#define READLINE 1" >>confdefs.h
10752
10753    if test "$enable_history_file" = yes; then
10754
10755$as_echo "#define GNUPLOT_HISTORY 1" >>confdefs.h
10756
10757    fi
10758  fi
10759
10760  LIBS="$_libs"
10761fi
10762
10763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
10764$as_echo_n "checking for deflate in -lz... " >&6; }
10765if ${ac_cv_lib_z_deflate+:} false; then :
10766  $as_echo_n "(cached) " >&6
10767else
10768  ac_check_lib_save_LIBS=$LIBS
10769LIBS="-lz  $LIBS"
10770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771/* end confdefs.h.  */
10772
10773/* Override any GCC internal prototype to avoid an error.
10774   Use char because int might match the return type of a GCC
10775   builtin and then its argument prototype would still apply.  */
10776#ifdef __cplusplus
10777extern "C"
10778#endif
10779char deflate ();
10780int
10781main ()
10782{
10783return deflate ();
10784  ;
10785  return 0;
10786}
10787_ACEOF
10788if ac_fn_c_try_link "$LINENO"; then :
10789  ac_cv_lib_z_deflate=yes
10790else
10791  ac_cv_lib_z_deflate=no
10792fi
10793rm -f core conftest.err conftest.$ac_objext \
10794    conftest$ac_exeext conftest.$ac_ext
10795LIBS=$ac_check_lib_save_LIBS
10796fi
10797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
10798$as_echo "$ac_cv_lib_z_deflate" >&6; }
10799if test "x$ac_cv_lib_z_deflate" = xyes; then :
10800  TERMLIBS="$TERMLIBS -lz"
10801
10802$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
10803
10804   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
10805if test "x$ac_cv_header_zlib_h" = xyes; then :
10806
10807else
10808  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found z library but not zlib.h
10809please add path to zlib.h to CPPFLAGS in Makefile" >&5
10810$as_echo "$as_me: WARNING: found z library but not zlib.h
10811please add path to zlib.h to CPPFLAGS in Makefile" >&2;}
10812fi
10813
10814
10815else
10816  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib is required - see http://www.gzip.org/zlib/" >&5
10817$as_echo "$as_me: WARNING: zlib is required - see http://www.gzip.org/zlib/" >&2;}
10818fi
10819
10820
10821
10822# Check whether --with-gd was given.
10823if test "${with_gd+set}" = set; then :
10824  withval=$with_gd;
10825else
10826  with_gd=yes
10827fi
10828
10829
10830if test "$with_gd" != no; then
10831
10832pkg_failed=no
10833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
10834$as_echo_n "checking for libgd... " >&6; }
10835
10836if test -n "$PKG_CONFIG"; then
10837    if test -n "$libgd_CFLAGS"; then
10838        pkg_cv_libgd_CFLAGS="$libgd_CFLAGS"
10839    else
10840        if test -n "$PKG_CONFIG" && \
10841    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdlib\""; } >&5
10842  ($PKG_CONFIG --exists --print-errors "gdlib") 2>&5
10843  ac_status=$?
10844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10845  test $ac_status = 0; }; then
10846  pkg_cv_libgd_CFLAGS=`$PKG_CONFIG --cflags "gdlib" 2>/dev/null`
10847else
10848  pkg_failed=yes
10849fi
10850    fi
10851else
10852	pkg_failed=untried
10853fi
10854if test -n "$PKG_CONFIG"; then
10855    if test -n "$libgd_LIBS"; then
10856        pkg_cv_libgd_LIBS="$libgd_LIBS"
10857    else
10858        if test -n "$PKG_CONFIG" && \
10859    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdlib\""; } >&5
10860  ($PKG_CONFIG --exists --print-errors "gdlib") 2>&5
10861  ac_status=$?
10862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10863  test $ac_status = 0; }; then
10864  pkg_cv_libgd_LIBS=`$PKG_CONFIG --libs "gdlib" 2>/dev/null`
10865else
10866  pkg_failed=yes
10867fi
10868    fi
10869else
10870	pkg_failed=untried
10871fi
10872
10873
10874
10875if test $pkg_failed = yes; then
10876
10877if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10878        _pkg_short_errors_supported=yes
10879else
10880        _pkg_short_errors_supported=no
10881fi
10882        if test $_pkg_short_errors_supported = yes; then
10883	        libgd_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gdlib"`
10884        else
10885	        libgd_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdlib"`
10886        fi
10887	# Put the nasty error message in config.log where it belongs
10888	echo "$libgd_PKG_ERRORS" >&5
10889
10890	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10891Package requirements (gdlib) were not met:
10892
10893$libgd_PKG_ERRORS
10894
10895Consider adjusting the PKG_CONFIG_PATH environment variable if you
10896installed software in a non-standard prefix.
10897
10898Alternatively, you may set the environment variables libgd_CFLAGS
10899and libgd_LIBS to avoid the need to call pkg-config.
10900See the pkg-config man page for more details.
10901" >&5
10902$as_echo "$as_me: WARNING:
10903Package requirements (gdlib) were not met:
10904
10905$libgd_PKG_ERRORS
10906
10907Consider adjusting the PKG_CONFIG_PATH environment variable if you
10908installed software in a non-standard prefix.
10909
10910Alternatively, you may set the environment variables libgd_CFLAGS
10911and libgd_LIBS to avoid the need to call pkg-config.
10912See the pkg-config man page for more details.
10913" >&2;}
10914elif test $pkg_failed = untried; then
10915	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10916The pkg-config script could not be found or is too old.  Make sure it
10917is in your PATH or set the PKG_CONFIG environment variable to the full
10918path to pkg-config.
10919
10920Alternatively, you may set the environment variables libgd_CFLAGS
10921and libgd_LIBS to avoid the need to call pkg-config.
10922See the pkg-config man page for more details.
10923
10924To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>." >&5
10925$as_echo "$as_me: WARNING:
10926The pkg-config script could not be found or is too old.  Make sure it
10927is in your PATH or set the PKG_CONFIG environment variable to the full
10928path to pkg-config.
10929
10930Alternatively, you may set the environment variables libgd_CFLAGS
10931and libgd_LIBS to avoid the need to call pkg-config.
10932See the pkg-config man page for more details.
10933
10934To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>." >&2;}
10935else
10936	libgd_CFLAGS=$pkg_cv_libgd_CFLAGS
10937	libgd_LIBS=$pkg_cv_libgd_LIBS
10938        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10939$as_echo "yes" >&6; }
10940	:
10941fi
10942  # Extract the first word of "gdlib-config", so it can be a program name with args.
10943set dummy gdlib-config; ac_word=$2
10944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10945$as_echo_n "checking for $ac_word... " >&6; }
10946if ${ac_cv_path_GDLIB_CONFIG+:} false; then :
10947  $as_echo_n "(cached) " >&6
10948else
10949  case $GDLIB_CONFIG in
10950  [\\/]* | ?:[\\/]*)
10951  ac_cv_path_GDLIB_CONFIG="$GDLIB_CONFIG" # Let the user override the test with a path.
10952  ;;
10953  *)
10954  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955for as_dir in $PATH
10956do
10957  IFS=$as_save_IFS
10958  test -z "$as_dir" && as_dir=.
10959    for ac_exec_ext in '' $ac_executable_extensions; do
10960  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10961    ac_cv_path_GDLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10963    break 2
10964  fi
10965done
10966  done
10967IFS=$as_save_IFS
10968
10969  ;;
10970esac
10971fi
10972GDLIB_CONFIG=$ac_cv_path_GDLIB_CONFIG
10973if test -n "$GDLIB_CONFIG"; then
10974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG" >&5
10975$as_echo "$GDLIB_CONFIG" >&6; }
10976else
10977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978$as_echo "no" >&6; }
10979fi
10980
10981
10982  if test $pkg_failed == no && test -n "$GDLIB_CONFIG"; then
10983    libgd_CPPFLAGS=`$GDLIB_CONFIG --cflags`
10984    libgd_LDFLAGS=`$GDLIB_CONFIG --ldflags`
10985    libgd_LIBS=`$GDLIB_CONFIG --libs`
10986  elif test -d "$with_gd"; then
10987    libgd_CPPFLAGS="-I$with_gd/include"
10988    libgd_LDFLAGS="-L$with_gd/lib"
10989    libgd_LIBS="-ljpeg -lpng -lfreetype -lz"
10990  fi
10991
10992  _cppflags="$CPPFLAGS"
10993  _ldflags="$LDFLAGS"
10994  _libs="$LIBS"
10995  CPPFLAGS="$CPPFLAGS $libgd_CPPFLAGS"
10996  LDFLAGS="$LDFLAGS $libgd_LDFLAGS"
10997  LIBS="$LIBS $libgd_LIBS"
10998
10999  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateTrueColor in -lgd" >&5
11000$as_echo_n "checking for gdImageCreateTrueColor in -lgd... " >&6; }
11001if ${ac_cv_lib_gd_gdImageCreateTrueColor+:} false; then :
11002  $as_echo_n "(cached) " >&6
11003else
11004  ac_check_lib_save_LIBS=$LIBS
11005LIBS="-lgd  $LIBS"
11006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007/* end confdefs.h.  */
11008
11009/* Override any GCC internal prototype to avoid an error.
11010   Use char because int might match the return type of a GCC
11011   builtin and then its argument prototype would still apply.  */
11012#ifdef __cplusplus
11013extern "C"
11014#endif
11015char gdImageCreateTrueColor ();
11016int
11017main ()
11018{
11019return gdImageCreateTrueColor ();
11020  ;
11021  return 0;
11022}
11023_ACEOF
11024if ac_fn_c_try_link "$LINENO"; then :
11025  ac_cv_lib_gd_gdImageCreateTrueColor=yes
11026else
11027  ac_cv_lib_gd_gdImageCreateTrueColor=no
11028fi
11029rm -f core conftest.err conftest.$ac_objext \
11030    conftest$ac_exeext conftest.$ac_ext
11031LIBS=$ac_check_lib_save_LIBS
11032fi
11033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateTrueColor" >&5
11034$as_echo "$ac_cv_lib_gd_gdImageCreateTrueColor" >&6; }
11035if test "x$ac_cv_lib_gd_gdImageCreateTrueColor" = xyes; then :
11036
11037$as_echo "#define HAVE_LIBGD 1" >>confdefs.h
11038
11039     for ac_header in gd.h
11040do :
11041  ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
11042if test "x$ac_cv_header_gd_h" = xyes; then :
11043  cat >>confdefs.h <<_ACEOF
11044#define HAVE_GD_H 1
11045_ACEOF
11046
11047else
11048  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: please add path to gd.h to CPPFLAGS in Makefile" >&5
11049$as_echo "$as_me: WARNING: please add path to gd.h to CPPFLAGS in Makefile" >&2;}
11050fi
11051
11052done
11053
11054
11055          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageGif in -lgd" >&5
11056$as_echo_n "checking for gdImageGif in -lgd... " >&6; }
11057if ${ac_cv_lib_gd_gdImageGif+:} false; then :
11058  $as_echo_n "(cached) " >&6
11059else
11060  ac_check_lib_save_LIBS=$LIBS
11061LIBS="-lgd  $LIBS"
11062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063/* end confdefs.h.  */
11064
11065/* Override any GCC internal prototype to avoid an error.
11066   Use char because int might match the return type of a GCC
11067   builtin and then its argument prototype would still apply.  */
11068#ifdef __cplusplus
11069extern "C"
11070#endif
11071char gdImageGif ();
11072int
11073main ()
11074{
11075return gdImageGif ();
11076  ;
11077  return 0;
11078}
11079_ACEOF
11080if ac_fn_c_try_link "$LINENO"; then :
11081  ac_cv_lib_gd_gdImageGif=yes
11082else
11083  ac_cv_lib_gd_gdImageGif=no
11084fi
11085rm -f core conftest.err conftest.$ac_objext \
11086    conftest$ac_exeext conftest.$ac_ext
11087LIBS=$ac_check_lib_save_LIBS
11088fi
11089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageGif" >&5
11090$as_echo "$ac_cv_lib_gd_gdImageGif" >&6; }
11091if test "x$ac_cv_lib_gd_gdImageGif" = xyes; then :
11092
11093$as_echo "#define HAVE_GD_GIF 1" >>confdefs.h
11094
11095fi
11096
11097     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageGifAnimBegin in -lgd" >&5
11098$as_echo_n "checking for gdImageGifAnimBegin in -lgd... " >&6; }
11099if ${ac_cv_lib_gd_gdImageGifAnimBegin+:} false; then :
11100  $as_echo_n "(cached) " >&6
11101else
11102  ac_check_lib_save_LIBS=$LIBS
11103LIBS="-lgd  $LIBS"
11104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105/* end confdefs.h.  */
11106
11107/* Override any GCC internal prototype to avoid an error.
11108   Use char because int might match the return type of a GCC
11109   builtin and then its argument prototype would still apply.  */
11110#ifdef __cplusplus
11111extern "C"
11112#endif
11113char gdImageGifAnimBegin ();
11114int
11115main ()
11116{
11117return gdImageGifAnimBegin ();
11118  ;
11119  return 0;
11120}
11121_ACEOF
11122if ac_fn_c_try_link "$LINENO"; then :
11123  ac_cv_lib_gd_gdImageGifAnimBegin=yes
11124else
11125  ac_cv_lib_gd_gdImageGifAnimBegin=no
11126fi
11127rm -f core conftest.err conftest.$ac_objext \
11128    conftest$ac_exeext conftest.$ac_ext
11129LIBS=$ac_check_lib_save_LIBS
11130fi
11131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageGifAnimBegin" >&5
11132$as_echo "$ac_cv_lib_gd_gdImageGifAnimBegin" >&6; }
11133if test "x$ac_cv_lib_gd_gdImageGifAnimBegin" = xyes; then :
11134
11135$as_echo "#define GIF_ANIMATION 1" >>confdefs.h
11136
11137fi
11138
11139
11140          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageJpeg in -lgd" >&5
11141$as_echo_n "checking for gdImageJpeg in -lgd... " >&6; }
11142if ${ac_cv_lib_gd_gdImageJpeg+:} false; then :
11143  $as_echo_n "(cached) " >&6
11144else
11145  ac_check_lib_save_LIBS=$LIBS
11146LIBS="-lgd  $LIBS"
11147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148/* end confdefs.h.  */
11149
11150/* Override any GCC internal prototype to avoid an error.
11151   Use char because int might match the return type of a GCC
11152   builtin and then its argument prototype would still apply.  */
11153#ifdef __cplusplus
11154extern "C"
11155#endif
11156char gdImageJpeg ();
11157int
11158main ()
11159{
11160return gdImageJpeg ();
11161  ;
11162  return 0;
11163}
11164_ACEOF
11165if ac_fn_c_try_link "$LINENO"; then :
11166  ac_cv_lib_gd_gdImageJpeg=yes
11167else
11168  ac_cv_lib_gd_gdImageJpeg=no
11169fi
11170rm -f core conftest.err conftest.$ac_objext \
11171    conftest$ac_exeext conftest.$ac_ext
11172LIBS=$ac_check_lib_save_LIBS
11173fi
11174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageJpeg" >&5
11175$as_echo "$ac_cv_lib_gd_gdImageJpeg" >&6; }
11176if test "x$ac_cv_lib_gd_gdImageJpeg" = xyes; then :
11177
11178$as_echo "#define HAVE_GD_JPEG 1" >>confdefs.h
11179
11180fi
11181
11182
11183          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageStringFT in -lgd" >&5
11184$as_echo_n "checking for gdImageStringFT in -lgd... " >&6; }
11185if ${ac_cv_lib_gd_gdImageStringFT+:} false; then :
11186  $as_echo_n "(cached) " >&6
11187else
11188  ac_check_lib_save_LIBS=$LIBS
11189LIBS="-lgd  $LIBS"
11190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11191/* end confdefs.h.  */
11192
11193/* Override any GCC internal prototype to avoid an error.
11194   Use char because int might match the return type of a GCC
11195   builtin and then its argument prototype would still apply.  */
11196#ifdef __cplusplus
11197extern "C"
11198#endif
11199char gdImageStringFT ();
11200int
11201main ()
11202{
11203return gdImageStringFT ();
11204  ;
11205  return 0;
11206}
11207_ACEOF
11208if ac_fn_c_try_link "$LINENO"; then :
11209  ac_cv_lib_gd_gdImageStringFT=yes
11210else
11211  ac_cv_lib_gd_gdImageStringFT=no
11212fi
11213rm -f core conftest.err conftest.$ac_objext \
11214    conftest$ac_exeext conftest.$ac_ext
11215LIBS=$ac_check_lib_save_LIBS
11216fi
11217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageStringFT" >&5
11218$as_echo "$ac_cv_lib_gd_gdImageStringFT" >&6; }
11219if test "x$ac_cv_lib_gd_gdImageStringFT" = xyes; then :
11220
11221$as_echo "#define HAVE_GD_TTF 1" >>confdefs.h
11222
11223fi
11224
11225
11226          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImagePng in -lgd" >&5
11227$as_echo_n "checking for gdImagePng in -lgd... " >&6; }
11228if ${ac_cv_lib_gd_gdImagePng+:} false; then :
11229  $as_echo_n "(cached) " >&6
11230else
11231  ac_check_lib_save_LIBS=$LIBS
11232LIBS="-lgd  $LIBS"
11233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234/* end confdefs.h.  */
11235
11236/* Override any GCC internal prototype to avoid an error.
11237   Use char because int might match the return type of a GCC
11238   builtin and then its argument prototype would still apply.  */
11239#ifdef __cplusplus
11240extern "C"
11241#endif
11242char gdImagePng ();
11243int
11244main ()
11245{
11246return gdImagePng ();
11247  ;
11248  return 0;
11249}
11250_ACEOF
11251if ac_fn_c_try_link "$LINENO"; then :
11252  ac_cv_lib_gd_gdImagePng=yes
11253else
11254  ac_cv_lib_gd_gdImagePng=no
11255fi
11256rm -f core conftest.err conftest.$ac_objext \
11257    conftest$ac_exeext conftest.$ac_ext
11258LIBS=$ac_check_lib_save_LIBS
11259fi
11260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImagePng" >&5
11261$as_echo "$ac_cv_lib_gd_gdImagePng" >&6; }
11262if test "x$ac_cv_lib_gd_gdImagePng" = xyes; then :
11263
11264$as_echo "#define HAVE_GD_PNG 1" >>confdefs.h
11265
11266fi
11267
11268
11269
11270else
11271         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libgd not found or too old, version >= 2.0 is required" >&5
11272$as_echo "$as_me: WARNING: libgd not found or too old, version >= 2.0 is required" >&2;}
11273       with_gd=no
11274
11275fi
11276
11277
11278    if test "$with_gd" = no; then
11279    CPPFLAGS="$_cppflags"
11280    LDFLAGS="$_ldflags"
11281    LIBS="$_libs"
11282  else
11283    LIBS="$_libs"
11284    TERMLIBS="$TERMLIBS -lgd $libgd_LIBS"
11285  fi
11286
11287fi
11288
11289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
11290$as_echo_n "checking for library containing iconv_open... " >&6; }
11291if ${ac_cv_search_iconv_open+:} false; then :
11292  $as_echo_n "(cached) " >&6
11293else
11294  ac_func_search_save_LIBS=$LIBS
11295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11296/* end confdefs.h.  */
11297
11298/* Override any GCC internal prototype to avoid an error.
11299   Use char because int might match the return type of a GCC
11300   builtin and then its argument prototype would still apply.  */
11301#ifdef __cplusplus
11302extern "C"
11303#endif
11304char iconv_open ();
11305int
11306main ()
11307{
11308return iconv_open ();
11309  ;
11310  return 0;
11311}
11312_ACEOF
11313for ac_lib in '' iconv; do
11314  if test -z "$ac_lib"; then
11315    ac_res="none required"
11316  else
11317    ac_res=-l$ac_lib
11318    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11319  fi
11320  if ac_fn_c_try_link "$LINENO"; then :
11321  ac_cv_search_iconv_open=$ac_res
11322fi
11323rm -f core conftest.err conftest.$ac_objext \
11324    conftest$ac_exeext
11325  if ${ac_cv_search_iconv_open+:} false; then :
11326  break
11327fi
11328done
11329if ${ac_cv_search_iconv_open+:} false; then :
11330
11331else
11332  ac_cv_search_iconv_open=no
11333fi
11334rm conftest.$ac_ext
11335LIBS=$ac_func_search_save_LIBS
11336fi
11337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
11338$as_echo "$ac_cv_search_iconv_open" >&6; }
11339ac_res=$ac_cv_search_iconv_open
11340if test "$ac_res" != no; then :
11341  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11342  ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
11343if test "x$ac_cv_header_iconv_h" = xyes; then :
11344
11345$as_echo "#define HAVE_ICONV 1" >>confdefs.h
11346
11347
11348fi
11349
11350
11351
11352fi
11353
11354
11355
11356# Check whether --with-lua was given.
11357if test "${with_lua+set}" = set; then :
11358  withval=$with_lua;
11359else
11360  test -z "${with_lua}" && with_lua=yes
11361fi
11362
11363
11364if test "${with_lua}" = yes ; then
11365  LUA=lua
11366
11367pkg_failed=no
11368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
11369$as_echo_n "checking for LUA... " >&6; }
11370
11371if test -n "$PKG_CONFIG"; then
11372    if test -n "$LUA_CFLAGS"; then
11373        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
11374    else
11375        if test -n "$PKG_CONFIG" && \
11376    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5
11377  ($PKG_CONFIG --exists --print-errors "lua") 2>&5
11378  ac_status=$?
11379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11380  test $ac_status = 0; }; then
11381  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua" 2>/dev/null`
11382else
11383  pkg_failed=yes
11384fi
11385    fi
11386else
11387	pkg_failed=untried
11388fi
11389if test -n "$PKG_CONFIG"; then
11390    if test -n "$LUA_LIBS"; then
11391        pkg_cv_LUA_LIBS="$LUA_LIBS"
11392    else
11393        if test -n "$PKG_CONFIG" && \
11394    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5
11395  ($PKG_CONFIG --exists --print-errors "lua") 2>&5
11396  ac_status=$?
11397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11398  test $ac_status = 0; }; then
11399  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua" 2>/dev/null`
11400else
11401  pkg_failed=yes
11402fi
11403    fi
11404else
11405	pkg_failed=untried
11406fi
11407
11408
11409
11410if test $pkg_failed = yes; then
11411
11412if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11413        _pkg_short_errors_supported=yes
11414else
11415        _pkg_short_errors_supported=no
11416fi
11417        if test $_pkg_short_errors_supported = yes; then
11418	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua"`
11419        else
11420	        LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua"`
11421        fi
11422	# Put the nasty error message in config.log where it belongs
11423	echo "$LUA_PKG_ERRORS" >&5
11424
11425	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426$as_echo "no" >&6; }
11427
11428pkg_failed=no
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
11430$as_echo_n "checking for LUA... " >&6; }
11431
11432if test -n "$PKG_CONFIG"; then
11433    if test -n "$LUA_CFLAGS"; then
11434        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
11435    else
11436        if test -n "$PKG_CONFIG" && \
11437    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.3\""; } >&5
11438  ($PKG_CONFIG --exists --print-errors "lua-5.3") 2>&5
11439  ac_status=$?
11440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11441  test $ac_status = 0; }; then
11442  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.3" 2>/dev/null`
11443else
11444  pkg_failed=yes
11445fi
11446    fi
11447else
11448	pkg_failed=untried
11449fi
11450if test -n "$PKG_CONFIG"; then
11451    if test -n "$LUA_LIBS"; then
11452        pkg_cv_LUA_LIBS="$LUA_LIBS"
11453    else
11454        if test -n "$PKG_CONFIG" && \
11455    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.3\""; } >&5
11456  ($PKG_CONFIG --exists --print-errors "lua-5.3") 2>&5
11457  ac_status=$?
11458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11459  test $ac_status = 0; }; then
11460  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.3" 2>/dev/null`
11461else
11462  pkg_failed=yes
11463fi
11464    fi
11465else
11466	pkg_failed=untried
11467fi
11468
11469
11470
11471if test $pkg_failed = yes; then
11472
11473if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11474        _pkg_short_errors_supported=yes
11475else
11476        _pkg_short_errors_supported=no
11477fi
11478        if test $_pkg_short_errors_supported = yes; then
11479	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.3"`
11480        else
11481	        LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.3"`
11482        fi
11483	# Put the nasty error message in config.log where it belongs
11484	echo "$LUA_PKG_ERRORS" >&5
11485
11486	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487$as_echo "no" >&6; }
11488
11489pkg_failed=no
11490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
11491$as_echo_n "checking for LUA... " >&6; }
11492
11493if test -n "$PKG_CONFIG"; then
11494    if test -n "$LUA_CFLAGS"; then
11495        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
11496    else
11497        if test -n "$PKG_CONFIG" && \
11498    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
11499  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
11500  ac_status=$?
11501  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11502  test $ac_status = 0; }; then
11503  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
11504else
11505  pkg_failed=yes
11506fi
11507    fi
11508else
11509	pkg_failed=untried
11510fi
11511if test -n "$PKG_CONFIG"; then
11512    if test -n "$LUA_LIBS"; then
11513        pkg_cv_LUA_LIBS="$LUA_LIBS"
11514    else
11515        if test -n "$PKG_CONFIG" && \
11516    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
11517  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
11518  ac_status=$?
11519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11520  test $ac_status = 0; }; then
11521  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
11522else
11523  pkg_failed=yes
11524fi
11525    fi
11526else
11527	pkg_failed=untried
11528fi
11529
11530
11531
11532if test $pkg_failed = yes; then
11533
11534if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11535        _pkg_short_errors_supported=yes
11536else
11537        _pkg_short_errors_supported=no
11538fi
11539        if test $_pkg_short_errors_supported = yes; then
11540	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.2"`
11541        else
11542	        LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.2"`
11543        fi
11544	# Put the nasty error message in config.log where it belongs
11545	echo "$LUA_PKG_ERRORS" >&5
11546
11547	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548$as_echo "no" >&6; }
11549
11550pkg_failed=no
11551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
11552$as_echo_n "checking for LUA... " >&6; }
11553
11554if test -n "$PKG_CONFIG"; then
11555    if test -n "$LUA_CFLAGS"; then
11556        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
11557    else
11558        if test -n "$PKG_CONFIG" && \
11559    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
11560  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
11561  ac_status=$?
11562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11563  test $ac_status = 0; }; then
11564  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
11565else
11566  pkg_failed=yes
11567fi
11568    fi
11569else
11570	pkg_failed=untried
11571fi
11572if test -n "$PKG_CONFIG"; then
11573    if test -n "$LUA_LIBS"; then
11574        pkg_cv_LUA_LIBS="$LUA_LIBS"
11575    else
11576        if test -n "$PKG_CONFIG" && \
11577    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
11578  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
11579  ac_status=$?
11580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11581  test $ac_status = 0; }; then
11582  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
11583else
11584  pkg_failed=yes
11585fi
11586    fi
11587else
11588	pkg_failed=untried
11589fi
11590
11591
11592
11593if test $pkg_failed = yes; then
11594
11595if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11596        _pkg_short_errors_supported=yes
11597else
11598        _pkg_short_errors_supported=no
11599fi
11600        if test $_pkg_short_errors_supported = yes; then
11601	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1"`
11602        else
11603	        LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1"`
11604        fi
11605	# Put the nasty error message in config.log where it belongs
11606	echo "$LUA_PKG_ERRORS" >&5
11607
11608	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609$as_echo "no" >&6; }
11610		 LUAFOUND=no
11611elif test $pkg_failed = untried; then
11612	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613$as_echo "no" >&6; }
11614		 LUAFOUND=no
11615else
11616	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
11617	LUA_LIBS=$pkg_cv_LUA_LIBS
11618        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11619$as_echo "yes" >&6; }
11620	LUA=lua5.1
11621fi
11622elif test $pkg_failed = untried; then
11623	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11624$as_echo "no" >&6; }
11625
11626pkg_failed=no
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
11628$as_echo_n "checking for LUA... " >&6; }
11629
11630if test -n "$PKG_CONFIG"; then
11631    if test -n "$LUA_CFLAGS"; then
11632        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
11633    else
11634        if test -n "$PKG_CONFIG" && \
11635    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
11636  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
11637  ac_status=$?
11638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11639  test $ac_status = 0; }; then
11640  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
11641else
11642  pkg_failed=yes
11643fi
11644    fi
11645else
11646	pkg_failed=untried
11647fi
11648if test -n "$PKG_CONFIG"; then
11649    if test -n "$LUA_LIBS"; then
11650        pkg_cv_LUA_LIBS="$LUA_LIBS"
11651    else
11652        if test -n "$PKG_CONFIG" && \
11653    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
11654  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
11655  ac_status=$?
11656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11657  test $ac_status = 0; }; then
11658  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
11659else
11660  pkg_failed=yes
11661fi
11662    fi
11663else
11664	pkg_failed=untried
11665fi
11666
11667
11668
11669if test $pkg_failed = yes; then
11670
11671if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11672        _pkg_short_errors_supported=yes
11673else
11674        _pkg_short_errors_supported=no
11675fi
11676        if test $_pkg_short_errors_supported = yes; then
11677	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1"`
11678        else
11679	        LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1"`
11680        fi
11681	# Put the nasty error message in config.log where it belongs
11682	echo "$LUA_PKG_ERRORS" >&5
11683
11684	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685$as_echo "no" >&6; }
11686		 LUAFOUND=no
11687elif test $pkg_failed = untried; then
11688	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11689$as_echo "no" >&6; }
11690		 LUAFOUND=no
11691else
11692	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
11693	LUA_LIBS=$pkg_cv_LUA_LIBS
11694        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11695$as_echo "yes" >&6; }
11696	LUA=lua5.1
11697fi
11698else
11699	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
11700	LUA_LIBS=$pkg_cv_LUA_LIBS
11701        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11702$as_echo "yes" >&6; }
11703	LUA=lua5.2
11704fi
11705elif test $pkg_failed = untried; then
11706	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707$as_echo "no" >&6; }
11708
11709pkg_failed=no
11710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
11711$as_echo_n "checking for LUA... " >&6; }
11712
11713if test -n "$PKG_CONFIG"; then
11714    if test -n "$LUA_CFLAGS"; then
11715        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
11716    else
11717        if test -n "$PKG_CONFIG" && \
11718    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
11719  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
11720  ac_status=$?
11721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11722  test $ac_status = 0; }; then
11723  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
11724else
11725  pkg_failed=yes
11726fi
11727    fi
11728else
11729	pkg_failed=untried
11730fi
11731if test -n "$PKG_CONFIG"; then
11732    if test -n "$LUA_LIBS"; then
11733        pkg_cv_LUA_LIBS="$LUA_LIBS"
11734    else
11735        if test -n "$PKG_CONFIG" && \
11736    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
11737  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
11738  ac_status=$?
11739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11740  test $ac_status = 0; }; then
11741  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
11742else
11743  pkg_failed=yes
11744fi
11745    fi
11746else
11747	pkg_failed=untried
11748fi
11749
11750
11751
11752if test $pkg_failed = yes; then
11753
11754if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11755        _pkg_short_errors_supported=yes
11756else
11757        _pkg_short_errors_supported=no
11758fi
11759        if test $_pkg_short_errors_supported = yes; then
11760	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.2"`
11761        else
11762	        LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.2"`
11763        fi
11764	# Put the nasty error message in config.log where it belongs
11765	echo "$LUA_PKG_ERRORS" >&5
11766
11767	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768$as_echo "no" >&6; }
11769
11770pkg_failed=no
11771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
11772$as_echo_n "checking for LUA... " >&6; }
11773
11774if test -n "$PKG_CONFIG"; then
11775    if test -n "$LUA_CFLAGS"; then
11776        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
11777    else
11778        if test -n "$PKG_CONFIG" && \
11779    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
11780  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
11781  ac_status=$?
11782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11783  test $ac_status = 0; }; then
11784  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
11785else
11786  pkg_failed=yes
11787fi
11788    fi
11789else
11790	pkg_failed=untried
11791fi
11792if test -n "$PKG_CONFIG"; then
11793    if test -n "$LUA_LIBS"; then
11794        pkg_cv_LUA_LIBS="$LUA_LIBS"
11795    else
11796        if test -n "$PKG_CONFIG" && \
11797    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
11798  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
11799  ac_status=$?
11800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11801  test $ac_status = 0; }; then
11802  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
11803else
11804  pkg_failed=yes
11805fi
11806    fi
11807else
11808	pkg_failed=untried
11809fi
11810
11811
11812
11813if test $pkg_failed = yes; then
11814
11815if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11816        _pkg_short_errors_supported=yes
11817else
11818        _pkg_short_errors_supported=no
11819fi
11820        if test $_pkg_short_errors_supported = yes; then
11821	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1"`
11822        else
11823	        LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1"`
11824        fi
11825	# Put the nasty error message in config.log where it belongs
11826	echo "$LUA_PKG_ERRORS" >&5
11827
11828	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829$as_echo "no" >&6; }
11830		 LUAFOUND=no
11831elif test $pkg_failed = untried; then
11832	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833$as_echo "no" >&6; }
11834		 LUAFOUND=no
11835else
11836	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
11837	LUA_LIBS=$pkg_cv_LUA_LIBS
11838        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11839$as_echo "yes" >&6; }
11840	LUA=lua5.1
11841fi
11842elif test $pkg_failed = untried; then
11843	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844$as_echo "no" >&6; }
11845
11846pkg_failed=no
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
11848$as_echo_n "checking for LUA... " >&6; }
11849
11850if test -n "$PKG_CONFIG"; then
11851    if test -n "$LUA_CFLAGS"; then
11852        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
11853    else
11854        if test -n "$PKG_CONFIG" && \
11855    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
11856  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
11857  ac_status=$?
11858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11859  test $ac_status = 0; }; then
11860  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
11861else
11862  pkg_failed=yes
11863fi
11864    fi
11865else
11866	pkg_failed=untried
11867fi
11868if test -n "$PKG_CONFIG"; then
11869    if test -n "$LUA_LIBS"; then
11870        pkg_cv_LUA_LIBS="$LUA_LIBS"
11871    else
11872        if test -n "$PKG_CONFIG" && \
11873    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
11874  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
11875  ac_status=$?
11876  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11877  test $ac_status = 0; }; then
11878  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
11879else
11880  pkg_failed=yes
11881fi
11882    fi
11883else
11884	pkg_failed=untried
11885fi
11886
11887
11888
11889if test $pkg_failed = yes; then
11890
11891if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11892        _pkg_short_errors_supported=yes
11893else
11894        _pkg_short_errors_supported=no
11895fi
11896        if test $_pkg_short_errors_supported = yes; then
11897	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1"`
11898        else
11899	        LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1"`
11900        fi
11901	# Put the nasty error message in config.log where it belongs
11902	echo "$LUA_PKG_ERRORS" >&5
11903
11904	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905$as_echo "no" >&6; }
11906		 LUAFOUND=no
11907elif test $pkg_failed = untried; then
11908	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909$as_echo "no" >&6; }
11910		 LUAFOUND=no
11911else
11912	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
11913	LUA_LIBS=$pkg_cv_LUA_LIBS
11914        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11915$as_echo "yes" >&6; }
11916	LUA=lua5.1
11917fi
11918else
11919	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
11920	LUA_LIBS=$pkg_cv_LUA_LIBS
11921        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11922$as_echo "yes" >&6; }
11923	LUA=lua5.2
11924fi
11925else
11926	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
11927	LUA_LIBS=$pkg_cv_LUA_LIBS
11928        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11929$as_echo "yes" >&6; }
11930	LUA=lua53
11931fi
11932elif test $pkg_failed = untried; then
11933	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934$as_echo "no" >&6; }
11935
11936pkg_failed=no
11937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
11938$as_echo_n "checking for LUA... " >&6; }
11939
11940if test -n "$PKG_CONFIG"; then
11941    if test -n "$LUA_CFLAGS"; then
11942        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
11943    else
11944        if test -n "$PKG_CONFIG" && \
11945    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.3\""; } >&5
11946  ($PKG_CONFIG --exists --print-errors "lua-5.3") 2>&5
11947  ac_status=$?
11948  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11949  test $ac_status = 0; }; then
11950  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.3" 2>/dev/null`
11951else
11952  pkg_failed=yes
11953fi
11954    fi
11955else
11956	pkg_failed=untried
11957fi
11958if test -n "$PKG_CONFIG"; then
11959    if test -n "$LUA_LIBS"; then
11960        pkg_cv_LUA_LIBS="$LUA_LIBS"
11961    else
11962        if test -n "$PKG_CONFIG" && \
11963    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.3\""; } >&5
11964  ($PKG_CONFIG --exists --print-errors "lua-5.3") 2>&5
11965  ac_status=$?
11966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11967  test $ac_status = 0; }; then
11968  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.3" 2>/dev/null`
11969else
11970  pkg_failed=yes
11971fi
11972    fi
11973else
11974	pkg_failed=untried
11975fi
11976
11977
11978
11979if test $pkg_failed = yes; then
11980
11981if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11982        _pkg_short_errors_supported=yes
11983else
11984        _pkg_short_errors_supported=no
11985fi
11986        if test $_pkg_short_errors_supported = yes; then
11987	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.3"`
11988        else
11989	        LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.3"`
11990        fi
11991	# Put the nasty error message in config.log where it belongs
11992	echo "$LUA_PKG_ERRORS" >&5
11993
11994	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995$as_echo "no" >&6; }
11996
11997pkg_failed=no
11998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
11999$as_echo_n "checking for LUA... " >&6; }
12000
12001if test -n "$PKG_CONFIG"; then
12002    if test -n "$LUA_CFLAGS"; then
12003        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
12004    else
12005        if test -n "$PKG_CONFIG" && \
12006    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
12007  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
12008  ac_status=$?
12009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12010  test $ac_status = 0; }; then
12011  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
12012else
12013  pkg_failed=yes
12014fi
12015    fi
12016else
12017	pkg_failed=untried
12018fi
12019if test -n "$PKG_CONFIG"; then
12020    if test -n "$LUA_LIBS"; then
12021        pkg_cv_LUA_LIBS="$LUA_LIBS"
12022    else
12023        if test -n "$PKG_CONFIG" && \
12024    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
12025  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
12026  ac_status=$?
12027  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12028  test $ac_status = 0; }; then
12029  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
12030else
12031  pkg_failed=yes
12032fi
12033    fi
12034else
12035	pkg_failed=untried
12036fi
12037
12038
12039
12040if test $pkg_failed = yes; then
12041
12042if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12043        _pkg_short_errors_supported=yes
12044else
12045        _pkg_short_errors_supported=no
12046fi
12047        if test $_pkg_short_errors_supported = yes; then
12048	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.2"`
12049        else
12050	        LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.2"`
12051        fi
12052	# Put the nasty error message in config.log where it belongs
12053	echo "$LUA_PKG_ERRORS" >&5
12054
12055	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12056$as_echo "no" >&6; }
12057
12058pkg_failed=no
12059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
12060$as_echo_n "checking for LUA... " >&6; }
12061
12062if test -n "$PKG_CONFIG"; then
12063    if test -n "$LUA_CFLAGS"; then
12064        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
12065    else
12066        if test -n "$PKG_CONFIG" && \
12067    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
12068  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
12069  ac_status=$?
12070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12071  test $ac_status = 0; }; then
12072  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
12073else
12074  pkg_failed=yes
12075fi
12076    fi
12077else
12078	pkg_failed=untried
12079fi
12080if test -n "$PKG_CONFIG"; then
12081    if test -n "$LUA_LIBS"; then
12082        pkg_cv_LUA_LIBS="$LUA_LIBS"
12083    else
12084        if test -n "$PKG_CONFIG" && \
12085    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
12086  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
12087  ac_status=$?
12088  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12089  test $ac_status = 0; }; then
12090  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
12091else
12092  pkg_failed=yes
12093fi
12094    fi
12095else
12096	pkg_failed=untried
12097fi
12098
12099
12100
12101if test $pkg_failed = yes; then
12102
12103if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12104        _pkg_short_errors_supported=yes
12105else
12106        _pkg_short_errors_supported=no
12107fi
12108        if test $_pkg_short_errors_supported = yes; then
12109	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1"`
12110        else
12111	        LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1"`
12112        fi
12113	# Put the nasty error message in config.log where it belongs
12114	echo "$LUA_PKG_ERRORS" >&5
12115
12116	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117$as_echo "no" >&6; }
12118		 LUAFOUND=no
12119elif test $pkg_failed = untried; then
12120	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121$as_echo "no" >&6; }
12122		 LUAFOUND=no
12123else
12124	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
12125	LUA_LIBS=$pkg_cv_LUA_LIBS
12126        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12127$as_echo "yes" >&6; }
12128	LUA=lua5.1
12129fi
12130elif test $pkg_failed = untried; then
12131	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132$as_echo "no" >&6; }
12133
12134pkg_failed=no
12135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
12136$as_echo_n "checking for LUA... " >&6; }
12137
12138if test -n "$PKG_CONFIG"; then
12139    if test -n "$LUA_CFLAGS"; then
12140        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
12141    else
12142        if test -n "$PKG_CONFIG" && \
12143    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
12144  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
12145  ac_status=$?
12146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12147  test $ac_status = 0; }; then
12148  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
12149else
12150  pkg_failed=yes
12151fi
12152    fi
12153else
12154	pkg_failed=untried
12155fi
12156if test -n "$PKG_CONFIG"; then
12157    if test -n "$LUA_LIBS"; then
12158        pkg_cv_LUA_LIBS="$LUA_LIBS"
12159    else
12160        if test -n "$PKG_CONFIG" && \
12161    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
12162  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
12163  ac_status=$?
12164  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12165  test $ac_status = 0; }; then
12166  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
12167else
12168  pkg_failed=yes
12169fi
12170    fi
12171else
12172	pkg_failed=untried
12173fi
12174
12175
12176
12177if test $pkg_failed = yes; then
12178
12179if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12180        _pkg_short_errors_supported=yes
12181else
12182        _pkg_short_errors_supported=no
12183fi
12184        if test $_pkg_short_errors_supported = yes; then
12185	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1"`
12186        else
12187	        LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1"`
12188        fi
12189	# Put the nasty error message in config.log where it belongs
12190	echo "$LUA_PKG_ERRORS" >&5
12191
12192	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193$as_echo "no" >&6; }
12194		 LUAFOUND=no
12195elif test $pkg_failed = untried; then
12196	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12197$as_echo "no" >&6; }
12198		 LUAFOUND=no
12199else
12200	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
12201	LUA_LIBS=$pkg_cv_LUA_LIBS
12202        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12203$as_echo "yes" >&6; }
12204	LUA=lua5.1
12205fi
12206else
12207	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
12208	LUA_LIBS=$pkg_cv_LUA_LIBS
12209        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12210$as_echo "yes" >&6; }
12211	LUA=lua5.2
12212fi
12213elif test $pkg_failed = untried; then
12214	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215$as_echo "no" >&6; }
12216
12217pkg_failed=no
12218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
12219$as_echo_n "checking for LUA... " >&6; }
12220
12221if test -n "$PKG_CONFIG"; then
12222    if test -n "$LUA_CFLAGS"; then
12223        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
12224    else
12225        if test -n "$PKG_CONFIG" && \
12226    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
12227  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
12228  ac_status=$?
12229  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12230  test $ac_status = 0; }; then
12231  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
12232else
12233  pkg_failed=yes
12234fi
12235    fi
12236else
12237	pkg_failed=untried
12238fi
12239if test -n "$PKG_CONFIG"; then
12240    if test -n "$LUA_LIBS"; then
12241        pkg_cv_LUA_LIBS="$LUA_LIBS"
12242    else
12243        if test -n "$PKG_CONFIG" && \
12244    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
12245  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
12246  ac_status=$?
12247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12248  test $ac_status = 0; }; then
12249  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
12250else
12251  pkg_failed=yes
12252fi
12253    fi
12254else
12255	pkg_failed=untried
12256fi
12257
12258
12259
12260if test $pkg_failed = yes; then
12261
12262if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12263        _pkg_short_errors_supported=yes
12264else
12265        _pkg_short_errors_supported=no
12266fi
12267        if test $_pkg_short_errors_supported = yes; then
12268	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.2"`
12269        else
12270	        LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.2"`
12271        fi
12272	# Put the nasty error message in config.log where it belongs
12273	echo "$LUA_PKG_ERRORS" >&5
12274
12275	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276$as_echo "no" >&6; }
12277
12278pkg_failed=no
12279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
12280$as_echo_n "checking for LUA... " >&6; }
12281
12282if test -n "$PKG_CONFIG"; then
12283    if test -n "$LUA_CFLAGS"; then
12284        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
12285    else
12286        if test -n "$PKG_CONFIG" && \
12287    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
12288  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
12289  ac_status=$?
12290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12291  test $ac_status = 0; }; then
12292  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
12293else
12294  pkg_failed=yes
12295fi
12296    fi
12297else
12298	pkg_failed=untried
12299fi
12300if test -n "$PKG_CONFIG"; then
12301    if test -n "$LUA_LIBS"; then
12302        pkg_cv_LUA_LIBS="$LUA_LIBS"
12303    else
12304        if test -n "$PKG_CONFIG" && \
12305    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
12306  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
12307  ac_status=$?
12308  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12309  test $ac_status = 0; }; then
12310  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
12311else
12312  pkg_failed=yes
12313fi
12314    fi
12315else
12316	pkg_failed=untried
12317fi
12318
12319
12320
12321if test $pkg_failed = yes; then
12322
12323if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12324        _pkg_short_errors_supported=yes
12325else
12326        _pkg_short_errors_supported=no
12327fi
12328        if test $_pkg_short_errors_supported = yes; then
12329	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1"`
12330        else
12331	        LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1"`
12332        fi
12333	# Put the nasty error message in config.log where it belongs
12334	echo "$LUA_PKG_ERRORS" >&5
12335
12336	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337$as_echo "no" >&6; }
12338		 LUAFOUND=no
12339elif test $pkg_failed = untried; then
12340	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341$as_echo "no" >&6; }
12342		 LUAFOUND=no
12343else
12344	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
12345	LUA_LIBS=$pkg_cv_LUA_LIBS
12346        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12347$as_echo "yes" >&6; }
12348	LUA=lua5.1
12349fi
12350elif test $pkg_failed = untried; then
12351	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352$as_echo "no" >&6; }
12353
12354pkg_failed=no
12355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
12356$as_echo_n "checking for LUA... " >&6; }
12357
12358if test -n "$PKG_CONFIG"; then
12359    if test -n "$LUA_CFLAGS"; then
12360        pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
12361    else
12362        if test -n "$PKG_CONFIG" && \
12363    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
12364  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
12365  ac_status=$?
12366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12367  test $ac_status = 0; }; then
12368  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
12369else
12370  pkg_failed=yes
12371fi
12372    fi
12373else
12374	pkg_failed=untried
12375fi
12376if test -n "$PKG_CONFIG"; then
12377    if test -n "$LUA_LIBS"; then
12378        pkg_cv_LUA_LIBS="$LUA_LIBS"
12379    else
12380        if test -n "$PKG_CONFIG" && \
12381    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
12382  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
12383  ac_status=$?
12384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12385  test $ac_status = 0; }; then
12386  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
12387else
12388  pkg_failed=yes
12389fi
12390    fi
12391else
12392	pkg_failed=untried
12393fi
12394
12395
12396
12397if test $pkg_failed = yes; then
12398
12399if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12400        _pkg_short_errors_supported=yes
12401else
12402        _pkg_short_errors_supported=no
12403fi
12404        if test $_pkg_short_errors_supported = yes; then
12405	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1"`
12406        else
12407	        LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1"`
12408        fi
12409	# Put the nasty error message in config.log where it belongs
12410	echo "$LUA_PKG_ERRORS" >&5
12411
12412	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413$as_echo "no" >&6; }
12414		 LUAFOUND=no
12415elif test $pkg_failed = untried; then
12416	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12417$as_echo "no" >&6; }
12418		 LUAFOUND=no
12419else
12420	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
12421	LUA_LIBS=$pkg_cv_LUA_LIBS
12422        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12423$as_echo "yes" >&6; }
12424	LUA=lua5.1
12425fi
12426else
12427	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
12428	LUA_LIBS=$pkg_cv_LUA_LIBS
12429        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12430$as_echo "yes" >&6; }
12431	LUA=lua5.2
12432fi
12433else
12434	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
12435	LUA_LIBS=$pkg_cv_LUA_LIBS
12436        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12437$as_echo "yes" >&6; }
12438	LUA=lua53
12439fi
12440else
12441	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
12442	LUA_LIBS=$pkg_cv_LUA_LIBS
12443        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12444$as_echo "yes" >&6; }
12445	LUAFOUND=yes
12446fi
12447  if test $pkg_failed != no; then
12448    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find support for lua using pkg-config." >&5
12449$as_echo "$as_me: WARNING: Could not find support for lua using pkg-config." >&2;}
12450    with_lua=no
12451  fi
12452
12453  if test "$with_lua" != no; then
12454    TERMLIBS="$TERMLIBS $LUA_LIBS"
12455    CPPFLAGS="$CPPFLAGS $LUA_CFLAGS"
12456  else
12457        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing luaL_openlibs" >&5
12458$as_echo_n "checking for library containing luaL_openlibs... " >&6; }
12459if ${ac_cv_search_luaL_openlibs+:} false; then :
12460  $as_echo_n "(cached) " >&6
12461else
12462  ac_func_search_save_LIBS=$LIBS
12463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464/* end confdefs.h.  */
12465
12466/* Override any GCC internal prototype to avoid an error.
12467   Use char because int might match the return type of a GCC
12468   builtin and then its argument prototype would still apply.  */
12469#ifdef __cplusplus
12470extern "C"
12471#endif
12472char luaL_openlibs ();
12473int
12474main ()
12475{
12476return luaL_openlibs ();
12477  ;
12478  return 0;
12479}
12480_ACEOF
12481for ac_lib in '' lua lua53 lua5.2 lua5.1; do
12482  if test -z "$ac_lib"; then
12483    ac_res="none required"
12484  else
12485    ac_res=-l$ac_lib
12486    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12487  fi
12488  if ac_fn_c_try_link "$LINENO"; then :
12489  ac_cv_search_luaL_openlibs=$ac_res
12490fi
12491rm -f core conftest.err conftest.$ac_objext \
12492    conftest$ac_exeext
12493  if ${ac_cv_search_luaL_openlibs+:} false; then :
12494  break
12495fi
12496done
12497if ${ac_cv_search_luaL_openlibs+:} false; then :
12498
12499else
12500  ac_cv_search_luaL_openlibs=no
12501fi
12502rm conftest.$ac_ext
12503LIBS=$ac_func_search_save_LIBS
12504fi
12505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_luaL_openlibs" >&5
12506$as_echo "$ac_cv_search_luaL_openlibs" >&6; }
12507ac_res=$ac_cv_search_luaL_openlibs
12508if test "$ac_res" != no; then :
12509  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12510  with_lua=yes
12511else
12512  with_lua=no
12513fi
12514
12515  fi
12516  if test "$with_lua" = yes; then
12517
12518$as_echo "#define HAVE_LUA 1" >>confdefs.h
12519
12520     for ac_header in lua.h
12521do :
12522  ac_fn_c_check_header_mongrel "$LINENO" "lua.h" "ac_cv_header_lua_h" "$ac_includes_default"
12523if test "x$ac_cv_header_lua_h" = xyes; then :
12524  cat >>confdefs.h <<_ACEOF
12525#define HAVE_LUA_H 1
12526_ACEOF
12527
12528else
12529  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: please add path to lua.h to CPPFLAGS in Makefile" >&5
12530$as_echo "$as_me: WARNING: please add path to lua.h to CPPFLAGS in Makefile" >&2;}
12531fi
12532
12533done
12534
12535  fi
12536
12537fi
12538 if test "${with_lua}" = yes; then
12539  BUILD_LUA_TRUE=
12540  BUILD_LUA_FALSE='#'
12541else
12542  BUILD_LUA_TRUE='#'
12543  BUILD_LUA_FALSE=
12544fi
12545
12546
12547
12548# Check whether --with-caca was given.
12549if test "${with_caca+set}" = set; then :
12550  withval=$with_caca;
12551else
12552  with_caca=no
12553fi
12554
12555
12556if test "$with_caca" != no; then
12557  if test -d "$with_caca"; then
12558        caca_CPPFLAGS="-I$with_caca/include"
12559    caca_LDFLAGS="-L$with_caca/lib -Wl,-rpath -Wl,$with_caca/lib"
12560    caca_LIBS="-lcaca"
12561    with_caca=yes
12562  else
12563
12564pkg_failed=no
12565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for caca" >&5
12566$as_echo_n "checking for caca... " >&6; }
12567
12568if test -n "$PKG_CONFIG"; then
12569    if test -n "$caca_CFLAGS"; then
12570        pkg_cv_caca_CFLAGS="$caca_CFLAGS"
12571    else
12572        if test -n "$PKG_CONFIG" && \
12573    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"caca\""; } >&5
12574  ($PKG_CONFIG --exists --print-errors "caca") 2>&5
12575  ac_status=$?
12576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12577  test $ac_status = 0; }; then
12578  pkg_cv_caca_CFLAGS=`$PKG_CONFIG --cflags "caca" 2>/dev/null`
12579else
12580  pkg_failed=yes
12581fi
12582    fi
12583else
12584	pkg_failed=untried
12585fi
12586if test -n "$PKG_CONFIG"; then
12587    if test -n "$caca_LIBS"; then
12588        pkg_cv_caca_LIBS="$caca_LIBS"
12589    else
12590        if test -n "$PKG_CONFIG" && \
12591    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"caca\""; } >&5
12592  ($PKG_CONFIG --exists --print-errors "caca") 2>&5
12593  ac_status=$?
12594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12595  test $ac_status = 0; }; then
12596  pkg_cv_caca_LIBS=`$PKG_CONFIG --libs "caca" 2>/dev/null`
12597else
12598  pkg_failed=yes
12599fi
12600    fi
12601else
12602	pkg_failed=untried
12603fi
12604
12605
12606
12607if test $pkg_failed = yes; then
12608
12609if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12610        _pkg_short_errors_supported=yes
12611else
12612        _pkg_short_errors_supported=no
12613fi
12614        if test $_pkg_short_errors_supported = yes; then
12615	        caca_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "caca"`
12616        else
12617	        caca_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "caca"`
12618        fi
12619	# Put the nasty error message in config.log where it belongs
12620	echo "$caca_PKG_ERRORS" >&5
12621
12622	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623$as_echo "no" >&6; }
12624		 with_caca=no
12625elif test $pkg_failed = untried; then
12626	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627$as_echo "no" >&6; }
12628		 with_caca=no
12629else
12630	caca_CFLAGS=$pkg_cv_caca_CFLAGS
12631	caca_LIBS=$pkg_cv_caca_LIBS
12632        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12633$as_echo "yes" >&6; }
12634	with_caca=yes
12635fi
12636    if test $pkg_failed != no; then
12637            # Extract the first word of "caca-config", so it can be a program name with args.
12638set dummy caca-config; ac_word=$2
12639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12640$as_echo_n "checking for $ac_word... " >&6; }
12641if ${ac_cv_path_CACA_CONFIG+:} false; then :
12642  $as_echo_n "(cached) " >&6
12643else
12644  case $CACA_CONFIG in
12645  [\\/]* | ?:[\\/]*)
12646  ac_cv_path_CACA_CONFIG="$CACA_CONFIG" # Let the user override the test with a path.
12647  ;;
12648  *)
12649  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12650for as_dir in $PATH
12651do
12652  IFS=$as_save_IFS
12653  test -z "$as_dir" && as_dir=.
12654    for ac_exec_ext in '' $ac_executable_extensions; do
12655  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12656    ac_cv_path_CACA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12657    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12658    break 2
12659  fi
12660done
12661  done
12662IFS=$as_save_IFS
12663
12664  ;;
12665esac
12666fi
12667CACA_CONFIG=$ac_cv_path_CACA_CONFIG
12668if test -n "$CACA_CONFIG"; then
12669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CACA_CONFIG" >&5
12670$as_echo "$CACA_CONFIG" >&6; }
12671else
12672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673$as_echo "no" >&6; }
12674fi
12675
12676
12677      if test -n "$CACA_CONFIG"; then
12678        caca_CPPFLAGS=`$CACA_CONFIG --cflags`
12679        caca_LDFLAGS=`$CACA_CONFIG --ldflags`
12680        caca_LIBS=`$CACA_CONFIG --libs`
12681        with_caca=yes
12682      else
12683                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcaca not found or too old, version >= 0.99.beta15 is required" >&5
12684$as_echo "$as_me: WARNING: libcaca not found or too old, version >= 0.99.beta15 is required" >&2;}
12685        with_caca=no
12686      fi
12687    fi
12688  fi
12689
12690    _cppflags="$CPPFLAGS"
12691  _ldflags="$LDFLAGS"
12692  CPPFLAGS="$caca_CPPFLAGS $CPPFLAGS"
12693  LDFLAGS="$caca_LDFLAGS $LDFLAGS"
12694  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for caca_get_version in -lcaca" >&5
12695$as_echo_n "checking for caca_get_version in -lcaca... " >&6; }
12696if ${ac_cv_lib_caca_caca_get_version+:} false; then :
12697  $as_echo_n "(cached) " >&6
12698else
12699  ac_check_lib_save_LIBS=$LIBS
12700LIBS="-lcaca  $LIBS"
12701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702/* end confdefs.h.  */
12703
12704/* Override any GCC internal prototype to avoid an error.
12705   Use char because int might match the return type of a GCC
12706   builtin and then its argument prototype would still apply.  */
12707#ifdef __cplusplus
12708extern "C"
12709#endif
12710char caca_get_version ();
12711int
12712main ()
12713{
12714return caca_get_version ();
12715  ;
12716  return 0;
12717}
12718_ACEOF
12719if ac_fn_c_try_link "$LINENO"; then :
12720  ac_cv_lib_caca_caca_get_version=yes
12721else
12722  ac_cv_lib_caca_caca_get_version=no
12723fi
12724rm -f core conftest.err conftest.$ac_objext \
12725    conftest$ac_exeext conftest.$ac_ext
12726LIBS=$ac_check_lib_save_LIBS
12727fi
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_caca_caca_get_version" >&5
12729$as_echo "$ac_cv_lib_caca_caca_get_version" >&6; }
12730if test "x$ac_cv_lib_caca_caca_get_version" = xyes; then :
12731       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for caca_export_canvas_to_memory in -lcaca" >&5
12732$as_echo_n "checking for caca_export_canvas_to_memory in -lcaca... " >&6; }
12733if ${ac_cv_lib_caca_caca_export_canvas_to_memory+:} false; then :
12734  $as_echo_n "(cached) " >&6
12735else
12736  ac_check_lib_save_LIBS=$LIBS
12737LIBS="-lcaca  $LIBS"
12738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12739/* end confdefs.h.  */
12740
12741/* Override any GCC internal prototype to avoid an error.
12742   Use char because int might match the return type of a GCC
12743   builtin and then its argument prototype would still apply.  */
12744#ifdef __cplusplus
12745extern "C"
12746#endif
12747char caca_export_canvas_to_memory ();
12748int
12749main ()
12750{
12751return caca_export_canvas_to_memory ();
12752  ;
12753  return 0;
12754}
12755_ACEOF
12756if ac_fn_c_try_link "$LINENO"; then :
12757  ac_cv_lib_caca_caca_export_canvas_to_memory=yes
12758else
12759  ac_cv_lib_caca_caca_export_canvas_to_memory=no
12760fi
12761rm -f core conftest.err conftest.$ac_objext \
12762    conftest$ac_exeext conftest.$ac_ext
12763LIBS=$ac_check_lib_save_LIBS
12764fi
12765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_caca_caca_export_canvas_to_memory" >&5
12766$as_echo "$ac_cv_lib_caca_caca_export_canvas_to_memory" >&6; }
12767if test "x$ac_cv_lib_caca_caca_export_canvas_to_memory" = xyes; then :
12768  cat >>confdefs.h <<_ACEOF
12769#define HAVE_LIBCACA 1
12770_ACEOF
12771
12772  LIBS="-lcaca $LIBS"
12773
12774else
12775
12776$as_echo "#define USE_CACA_EXPORT_MEMORY 1" >>confdefs.h
12777
12778fi
12779
12780     ac_fn_c_check_decl "$LINENO" "CACA_DEPRECATED" "ac_cv_have_decl_CACA_DEPRECATED" "#include <caca.h>
12781"
12782if test "x$ac_cv_have_decl_CACA_DEPRECATED" = xyes; then :
12783
12784$as_echo "#define HAVE_LIBCACA 1" >>confdefs.h
12785
12786else
12787  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcaca header not found or too old, version >= 0.99.beta15 is required" >&5
12788$as_echo "$as_me: WARNING: libcaca header not found or too old, version >= 0.99.beta15 is required" >&2;}
12789        with_caca=no
12790fi
12791
12792
12793else
12794         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcaca not found or too old, version >= 0.99.beta15 is required" >&5
12795$as_echo "$as_me: WARNING: libcaca not found or too old, version >= 0.99.beta15 is required" >&2;}
12796       with_caca=no
12797
12798fi
12799
12800
12801    if test "$with_caca" = no; then
12802    CPPFLAGS="$_cppflags"
12803    LDFLAGS="$_ldflags"
12804  else
12805    TERMLIBS="$TERMLIBS $caca_LIBS"
12806  fi
12807fi
12808
12809
12810
12811# Check whether --with-cwdrc was given.
12812if test "${with_cwdrc+set}" = set; then :
12813  withval=$with_cwdrc;
12814fi
12815
12816if test "$with_cwdrc" = yes; then
12817
12818$as_echo "#define USE_CWDRC 1" >>confdefs.h
12819
12820fi
12821
12822
12823# Check whether --with-row-help was given.
12824if test "${with_row_help+set}" = set; then :
12825  withval=$with_row_help; if test "$with_row_help" = no; then
12826
12827$as_echo "#define COLUMN_HELP 1" >>confdefs.h
12828
12829   fi
12830fi
12831
12832
12833# Check whether --enable-x11-mbfonts was given.
12834if test "${enable_x11_mbfonts+set}" = set; then :
12835  enableval=$enable_x11_mbfonts;
12836else
12837  test -z "$enable_x11_mbfonts" && enable_x11_mbfonts=yes
12838fi
12839
12840  if test "$enable_x11_mbfonts" = yes; then
12841
12842    _ldflags="$LDFLAGS"
12843    LDFLAGS="$LDFLAGS $LIBRARIES_FOR_X"
12844
12845    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multi-byte support in x11" >&5
12846$as_echo_n "checking for multi-byte support in x11... " >&6; }
12847    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmbDrawString in -lX11" >&5
12848$as_echo_n "checking for XmbDrawString in -lX11... " >&6; }
12849if ${ac_cv_lib_X11_XmbDrawString+:} false; then :
12850  $as_echo_n "(cached) " >&6
12851else
12852  ac_check_lib_save_LIBS=$LIBS
12853LIBS="-lX11  $LIBS"
12854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855/* end confdefs.h.  */
12856
12857/* Override any GCC internal prototype to avoid an error.
12858   Use char because int might match the return type of a GCC
12859   builtin and then its argument prototype would still apply.  */
12860#ifdef __cplusplus
12861extern "C"
12862#endif
12863char XmbDrawString ();
12864int
12865main ()
12866{
12867return XmbDrawString ();
12868  ;
12869  return 0;
12870}
12871_ACEOF
12872if ac_fn_c_try_link "$LINENO"; then :
12873  ac_cv_lib_X11_XmbDrawString=yes
12874else
12875  ac_cv_lib_X11_XmbDrawString=no
12876fi
12877rm -f core conftest.err conftest.$ac_objext \
12878    conftest$ac_exeext conftest.$ac_ext
12879LIBS=$ac_check_lib_save_LIBS
12880fi
12881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XmbDrawString" >&5
12882$as_echo "$ac_cv_lib_X11_XmbDrawString" >&6; }
12883if test "x$ac_cv_lib_X11_XmbDrawString" = xyes; then :
12884
12885$as_echo "#define USE_X11_MULTIBYTE 1" >>confdefs.h
12886
12887else
12888  enable_x11_mbfonts=no
12889fi
12890
12891
12892    LDFLAGS="$_ldflags"
12893
12894  fi
12895
12896# Check whether --enable-x11_external was given.
12897if test "${enable_x11_external+set}" = set; then :
12898  enableval=$enable_x11_external;
12899else
12900  test -z "$enable_x11_external" && enable_x11_external=yes
12901fi
12902
12903
12904if test "$enable_x11_external" = yes; then
12905
12906$as_echo "#define EXTERNAL_X11_WINDOW 1" >>confdefs.h
12907
12908fi
12909
12910# Check whether --enable-raise-console was given.
12911if test "${enable_raise_console+set}" = set; then :
12912  enableval=$enable_raise_console;
12913else
12914  test -z "$enable_raise_console" && enable_raise_console=yes
12915fi
12916
12917  if test "$enable_raise_console" != yes; then
12918
12919$as_echo "#define DISABLE_SPACE_RAISES_CONSOLE 1" >>confdefs.h
12920
12921  fi
12922
12923
12924
12925
12926
12927ac_ext=cpp
12928ac_cpp='$CXXCPP $CPPFLAGS'
12929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12932if test -z "$CXX"; then
12933  if test -n "$CCC"; then
12934    CXX=$CCC
12935  else
12936    if test -n "$ac_tool_prefix"; then
12937  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12938  do
12939    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12940set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12942$as_echo_n "checking for $ac_word... " >&6; }
12943if ${ac_cv_prog_CXX+:} false; then :
12944  $as_echo_n "(cached) " >&6
12945else
12946  if test -n "$CXX"; then
12947  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12948else
12949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12950for as_dir in $PATH
12951do
12952  IFS=$as_save_IFS
12953  test -z "$as_dir" && as_dir=.
12954    for ac_exec_ext in '' $ac_executable_extensions; do
12955  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12956    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12958    break 2
12959  fi
12960done
12961  done
12962IFS=$as_save_IFS
12963
12964fi
12965fi
12966CXX=$ac_cv_prog_CXX
12967if test -n "$CXX"; then
12968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12969$as_echo "$CXX" >&6; }
12970else
12971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12972$as_echo "no" >&6; }
12973fi
12974
12975
12976    test -n "$CXX" && break
12977  done
12978fi
12979if test -z "$CXX"; then
12980  ac_ct_CXX=$CXX
12981  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12982do
12983  # Extract the first word of "$ac_prog", so it can be a program name with args.
12984set dummy $ac_prog; ac_word=$2
12985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12986$as_echo_n "checking for $ac_word... " >&6; }
12987if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12988  $as_echo_n "(cached) " >&6
12989else
12990  if test -n "$ac_ct_CXX"; then
12991  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12992else
12993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12994for as_dir in $PATH
12995do
12996  IFS=$as_save_IFS
12997  test -z "$as_dir" && as_dir=.
12998    for ac_exec_ext in '' $ac_executable_extensions; do
12999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13000    ac_cv_prog_ac_ct_CXX="$ac_prog"
13001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13002    break 2
13003  fi
13004done
13005  done
13006IFS=$as_save_IFS
13007
13008fi
13009fi
13010ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13011if test -n "$ac_ct_CXX"; then
13012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13013$as_echo "$ac_ct_CXX" >&6; }
13014else
13015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13016$as_echo "no" >&6; }
13017fi
13018
13019
13020  test -n "$ac_ct_CXX" && break
13021done
13022
13023  if test "x$ac_ct_CXX" = x; then
13024    CXX="g++"
13025  else
13026    case $cross_compiling:$ac_tool_warned in
13027yes:)
13028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13030ac_tool_warned=yes ;;
13031esac
13032    CXX=$ac_ct_CXX
13033  fi
13034fi
13035
13036  fi
13037fi
13038# Provide some information about the compiler.
13039$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13040set X $ac_compile
13041ac_compiler=$2
13042for ac_option in --version -v -V -qversion; do
13043  { { ac_try="$ac_compiler $ac_option >&5"
13044case "(($ac_try" in
13045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046  *) ac_try_echo=$ac_try;;
13047esac
13048eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13049$as_echo "$ac_try_echo"; } >&5
13050  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13051  ac_status=$?
13052  if test -s conftest.err; then
13053    sed '10a\
13054... rest of stderr output deleted ...
13055         10q' conftest.err >conftest.er1
13056    cat conftest.er1 >&5
13057  fi
13058  rm -f conftest.er1 conftest.err
13059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13060  test $ac_status = 0; }
13061done
13062
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13064$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13065if ${ac_cv_cxx_compiler_gnu+:} false; then :
13066  $as_echo_n "(cached) " >&6
13067else
13068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069/* end confdefs.h.  */
13070
13071int
13072main ()
13073{
13074#ifndef __GNUC__
13075       choke me
13076#endif
13077
13078  ;
13079  return 0;
13080}
13081_ACEOF
13082if ac_fn_cxx_try_compile "$LINENO"; then :
13083  ac_compiler_gnu=yes
13084else
13085  ac_compiler_gnu=no
13086fi
13087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13088ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13089
13090fi
13091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13092$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13093if test $ac_compiler_gnu = yes; then
13094  GXX=yes
13095else
13096  GXX=
13097fi
13098ac_test_CXXFLAGS=${CXXFLAGS+set}
13099ac_save_CXXFLAGS=$CXXFLAGS
13100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13101$as_echo_n "checking whether $CXX accepts -g... " >&6; }
13102if ${ac_cv_prog_cxx_g+:} false; then :
13103  $as_echo_n "(cached) " >&6
13104else
13105  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13106   ac_cxx_werror_flag=yes
13107   ac_cv_prog_cxx_g=no
13108   CXXFLAGS="-g"
13109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110/* end confdefs.h.  */
13111
13112int
13113main ()
13114{
13115
13116  ;
13117  return 0;
13118}
13119_ACEOF
13120if ac_fn_cxx_try_compile "$LINENO"; then :
13121  ac_cv_prog_cxx_g=yes
13122else
13123  CXXFLAGS=""
13124      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13125/* end confdefs.h.  */
13126
13127int
13128main ()
13129{
13130
13131  ;
13132  return 0;
13133}
13134_ACEOF
13135if ac_fn_cxx_try_compile "$LINENO"; then :
13136
13137else
13138  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13139	 CXXFLAGS="-g"
13140	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13141/* end confdefs.h.  */
13142
13143int
13144main ()
13145{
13146
13147  ;
13148  return 0;
13149}
13150_ACEOF
13151if ac_fn_cxx_try_compile "$LINENO"; then :
13152  ac_cv_prog_cxx_g=yes
13153fi
13154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13155fi
13156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13157fi
13158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13159   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13160fi
13161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13162$as_echo "$ac_cv_prog_cxx_g" >&6; }
13163if test "$ac_test_CXXFLAGS" = set; then
13164  CXXFLAGS=$ac_save_CXXFLAGS
13165elif test $ac_cv_prog_cxx_g = yes; then
13166  if test "$GXX" = yes; then
13167    CXXFLAGS="-g -O2"
13168  else
13169    CXXFLAGS="-g"
13170  fi
13171else
13172  if test "$GXX" = yes; then
13173    CXXFLAGS="-O2"
13174  else
13175    CXXFLAGS=
13176  fi
13177fi
13178ac_ext=c
13179ac_cpp='$CPP $CPPFLAGS'
13180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13182ac_compiler_gnu=$ac_cv_c_compiler_gnu
13183
13184depcc="$CXX"  am_compiler_list=
13185
13186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13187$as_echo_n "checking dependency style of $depcc... " >&6; }
13188if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13189  $as_echo_n "(cached) " >&6
13190else
13191  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13192  # We make a subdir and do the tests there.  Otherwise we can end up
13193  # making bogus files that we don't know about and never remove.  For
13194  # instance it was reported that on HP-UX the gcc test will end up
13195  # making a dummy file named 'D' -- because '-MD' means "put the output
13196  # in D".
13197  rm -rf conftest.dir
13198  mkdir conftest.dir
13199  # Copy depcomp to subdir because otherwise we won't find it if we're
13200  # using a relative directory.
13201  cp "$am_depcomp" conftest.dir
13202  cd conftest.dir
13203  # We will build objects and dependencies in a subdirectory because
13204  # it helps to detect inapplicable dependency modes.  For instance
13205  # both Tru64's cc and ICC support -MD to output dependencies as a
13206  # side effect of compilation, but ICC will put the dependencies in
13207  # the current directory while Tru64 will put them in the object
13208  # directory.
13209  mkdir sub
13210
13211  am_cv_CXX_dependencies_compiler_type=none
13212  if test "$am_compiler_list" = ""; then
13213     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13214  fi
13215  am__universal=false
13216  case " $depcc " in #(
13217     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13218     esac
13219
13220  for depmode in $am_compiler_list; do
13221    # Setup a source with many dependencies, because some compilers
13222    # like to wrap large dependency lists on column 80 (with \), and
13223    # we should not choose a depcomp mode which is confused by this.
13224    #
13225    # We need to recreate these files for each test, as the compiler may
13226    # overwrite some of them when testing with obscure command lines.
13227    # This happens at least with the AIX C compiler.
13228    : > sub/conftest.c
13229    for i in 1 2 3 4 5 6; do
13230      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13231      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13232      # Solaris 10 /bin/sh.
13233      echo '/* dummy */' > sub/conftst$i.h
13234    done
13235    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13236
13237    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13238    # mode.  It turns out that the SunPro C++ compiler does not properly
13239    # handle '-M -o', and we need to detect this.  Also, some Intel
13240    # versions had trouble with output in subdirs.
13241    am__obj=sub/conftest.${OBJEXT-o}
13242    am__minus_obj="-o $am__obj"
13243    case $depmode in
13244    gcc)
13245      # This depmode causes a compiler race in universal mode.
13246      test "$am__universal" = false || continue
13247      ;;
13248    nosideeffect)
13249      # After this tag, mechanisms are not by side-effect, so they'll
13250      # only be used when explicitly requested.
13251      if test "x$enable_dependency_tracking" = xyes; then
13252	continue
13253      else
13254	break
13255      fi
13256      ;;
13257    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13258      # This compiler won't grok '-c -o', but also, the minuso test has
13259      # not run yet.  These depmodes are late enough in the game, and
13260      # so weak that their functioning should not be impacted.
13261      am__obj=conftest.${OBJEXT-o}
13262      am__minus_obj=
13263      ;;
13264    none) break ;;
13265    esac
13266    if depmode=$depmode \
13267       source=sub/conftest.c object=$am__obj \
13268       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13269       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13270         >/dev/null 2>conftest.err &&
13271       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13272       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13273       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13274       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13275      # icc doesn't choke on unknown options, it will just issue warnings
13276      # or remarks (even with -Werror).  So we grep stderr for any message
13277      # that says an option was ignored or not supported.
13278      # When given -MP, icc 7.0 and 7.1 complain thusly:
13279      #   icc: Command line warning: ignoring option '-M'; no argument required
13280      # The diagnosis changed in icc 8.0:
13281      #   icc: Command line remark: option '-MP' not supported
13282      if (grep 'ignoring option' conftest.err ||
13283          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13284        am_cv_CXX_dependencies_compiler_type=$depmode
13285        break
13286      fi
13287    fi
13288  done
13289
13290  cd ..
13291  rm -rf conftest.dir
13292else
13293  am_cv_CXX_dependencies_compiler_type=none
13294fi
13295
13296fi
13297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13298$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13299CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13300
13301 if
13302  test "x$enable_dependency_tracking" != xno \
13303  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13304  am__fastdepCXX_TRUE=
13305  am__fastdepCXX_FALSE='#'
13306else
13307  am__fastdepCXX_TRUE='#'
13308  am__fastdepCXX_FALSE=
13309fi
13310
13311
13312
13313
13314if test "x${cxxerror}" != "xyes"; then
13315  ac_ext=cpp
13316ac_cpp='$CXXCPP $CPPFLAGS'
13317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13320
13321
13322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323/* end confdefs.h.  */
13324#include <iostream>
13325int
13326main ()
13327{
13328const char hw[] = "Hello, World\n"; std::cout << hw;
13329  ;
13330  return 0;
13331}
13332_ACEOF
13333if ac_fn_cxx_try_compile "$LINENO"; then :
13334  cxxerror=no
13335	ac_ext=cpp
13336ac_cpp='$CXXCPP $CPPFLAGS'
13337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13341$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13342if test -z "$CXXCPP"; then
13343  if ${ac_cv_prog_CXXCPP+:} false; then :
13344  $as_echo_n "(cached) " >&6
13345else
13346      # Double quotes because CXXCPP needs to be expanded
13347    for CXXCPP in "$CXX -E" "/lib/cpp"
13348    do
13349      ac_preproc_ok=false
13350for ac_cxx_preproc_warn_flag in '' yes
13351do
13352  # Use a header file that comes with gcc, so configuring glibc
13353  # with a fresh cross-compiler works.
13354  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13355  # <limits.h> exists even on freestanding compilers.
13356  # On the NeXT, cc -E runs the code through the compiler's parser,
13357  # not just through cpp. "Syntax error" is here to catch this case.
13358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359/* end confdefs.h.  */
13360#ifdef __STDC__
13361# include <limits.h>
13362#else
13363# include <assert.h>
13364#endif
13365		     Syntax error
13366_ACEOF
13367if ac_fn_cxx_try_cpp "$LINENO"; then :
13368
13369else
13370  # Broken: fails on valid input.
13371continue
13372fi
13373rm -f conftest.err conftest.i conftest.$ac_ext
13374
13375  # OK, works on sane cases.  Now check whether nonexistent headers
13376  # can be detected and how.
13377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378/* end confdefs.h.  */
13379#include <ac_nonexistent.h>
13380_ACEOF
13381if ac_fn_cxx_try_cpp "$LINENO"; then :
13382  # Broken: success on invalid input.
13383continue
13384else
13385  # Passes both tests.
13386ac_preproc_ok=:
13387break
13388fi
13389rm -f conftest.err conftest.i conftest.$ac_ext
13390
13391done
13392# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13393rm -f conftest.i conftest.err conftest.$ac_ext
13394if $ac_preproc_ok; then :
13395  break
13396fi
13397
13398    done
13399    ac_cv_prog_CXXCPP=$CXXCPP
13400
13401fi
13402  CXXCPP=$ac_cv_prog_CXXCPP
13403else
13404  ac_cv_prog_CXXCPP=$CXXCPP
13405fi
13406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13407$as_echo "$CXXCPP" >&6; }
13408ac_preproc_ok=false
13409for ac_cxx_preproc_warn_flag in '' yes
13410do
13411  # Use a header file that comes with gcc, so configuring glibc
13412  # with a fresh cross-compiler works.
13413  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13414  # <limits.h> exists even on freestanding compilers.
13415  # On the NeXT, cc -E runs the code through the compiler's parser,
13416  # not just through cpp. "Syntax error" is here to catch this case.
13417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418/* end confdefs.h.  */
13419#ifdef __STDC__
13420# include <limits.h>
13421#else
13422# include <assert.h>
13423#endif
13424		     Syntax error
13425_ACEOF
13426if ac_fn_cxx_try_cpp "$LINENO"; then :
13427
13428else
13429  # Broken: fails on valid input.
13430continue
13431fi
13432rm -f conftest.err conftest.i conftest.$ac_ext
13433
13434  # OK, works on sane cases.  Now check whether nonexistent headers
13435  # can be detected and how.
13436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437/* end confdefs.h.  */
13438#include <ac_nonexistent.h>
13439_ACEOF
13440if ac_fn_cxx_try_cpp "$LINENO"; then :
13441  # Broken: success on invalid input.
13442continue
13443else
13444  # Passes both tests.
13445ac_preproc_ok=:
13446break
13447fi
13448rm -f conftest.err conftest.i conftest.$ac_ext
13449
13450done
13451# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13452rm -f conftest.i conftest.err conftest.$ac_ext
13453if $ac_preproc_ok; then :
13454
13455else
13456  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13458as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13459See \`config.log' for more details" "$LINENO" 5; }
13460fi
13461
13462ac_ext=cpp
13463ac_cpp='$CXXCPP $CPPFLAGS'
13464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13467
13468else
13469  cxxerror=yes
13470	CXX=$CC
13471fi
13472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13473  ac_ext=c
13474ac_cpp='$CPP $CPPFLAGS'
13475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13477ac_compiler_gnu=$ac_cv_c_compiler_gnu
13478
13479fi
13480
13481# Check whether --enable-wxwidgets was given.
13482if test "${enable_wxwidgets+set}" = set; then :
13483  enableval=$enable_wxwidgets;
13484else
13485  test -z "${enable_wxwidgets}" && enable_wxwidgets=yes
13486fi
13487
13488
13489if test "${enable_wxwidgets}" = yes ; then
13490    enable_wxwidgets_ok=yes
13491
13492    if test "x${cxxerror}" = "xyes"; then
13493    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No C++ compiler found. The wxWidgets terminal will not be compiled." >&5
13494$as_echo "$as_me: WARNING: No C++ compiler found. The wxWidgets terminal will not be compiled." >&2;}
13495      enable_wxwidgets_ok=no
13496  fi
13497
13498    WXWIDGETS_PATH="${PATH}"
13499
13500# Check whether --with-wx was given.
13501if test "${with_wx+set}" = set; then :
13502  withval=$with_wx;  if test "${with_wx}" != "no" ; then
13503	WXWIDGETS_PATH="${with_wx}:${PATH}"
13504     fi
13505fi
13506
13507
13508    # Extract the first word of "wx-config", so it can be a program name with args.
13509set dummy wx-config; ac_word=$2
13510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13511$as_echo_n "checking for $ac_word... " >&6; }
13512if ${ac_cv_path_WX_CONFIG+:} false; then :
13513  $as_echo_n "(cached) " >&6
13514else
13515  case $WX_CONFIG in
13516  [\\/]* | ?:[\\/]*)
13517  ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a path.
13518  ;;
13519  *)
13520  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13521for as_dir in ${WXWIDGETS_PATH}
13522do
13523  IFS=$as_save_IFS
13524  test -z "$as_dir" && as_dir=.
13525    for ac_exec_ext in '' $ac_executable_extensions; do
13526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13527    ac_cv_path_WX_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13529    break 2
13530  fi
13531done
13532  done
13533IFS=$as_save_IFS
13534
13535  test -z "$ac_cv_path_WX_CONFIG" && ac_cv_path_WX_CONFIG="no"
13536  ;;
13537esac
13538fi
13539WX_CONFIG=$ac_cv_path_WX_CONFIG
13540if test -n "$WX_CONFIG"; then
13541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG" >&5
13542$as_echo "$WX_CONFIG" >&6; }
13543else
13544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545$as_echo "no" >&6; }
13546fi
13547
13548
13549  if test "${WX_CONFIG}" = "no"; then
13550    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxWidgets can't be found. You can try --with-wx=DIR to give the right path to wx-config. The wxWidgets terminal will not be compiled." >&5
13551$as_echo "$as_me: WARNING: wxWidgets can't be found. You can try --with-wx=DIR to give the right path to wx-config. The wxWidgets terminal will not be compiled." >&2;}
13552    enable_wxwidgets_ok=no
13553  else
13554
13555        WXWIDGETS_VERSION=`${WX_CONFIG} --release`
13556    if expr 2.6 \> ${WXWIDGETS_VERSION} >/dev/null; then
13557      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your development package for wxWidgets is too old, you need at least version 2.6. The wxWidgets terminal will not be compiled." >&5
13558$as_echo "$as_me: WARNING: Your development package for wxWidgets is too old, you need at least version 2.6. The wxWidgets terminal will not be compiled." >&2;}
13559      enable_wxwidgets_ok=no
13560    fi
13561    if expr ${WXWIDGETS_VERSION} \> 2.8 >/dev/null; then
13562
13563$as_echo "#define WX_NEEDS_XINITTHREADS 1" >>confdefs.h
13564
13565    fi
13566
13567        if expr `${WX_CONFIG} --basename` : '.*base' >/dev/null; then
13568      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You only have the 'base' flavor of wxWidgets. A full wxWidgets library is required. On Debian/Ubuntu, please make sure that you have a 'libwx...-dev' package other than just 'libwxbase...-dev' installed. The wxWidgets terminal will not be compiled." >&5
13569$as_echo "$as_me: WARNING: You only have the 'base' flavor of wxWidgets. A full wxWidgets library is required. On Debian/Ubuntu, please make sure that you have a 'libwx...-dev' package other than just 'libwxbase...-dev' installed. The wxWidgets terminal will not be compiled." >&2;}
13570      enable_wxwidgets_ok=no
13571    fi
13572  fi
13573
13574
13575pkg_failed=no
13576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIROPANGO" >&5
13577$as_echo_n "checking for CAIROPANGO... " >&6; }
13578
13579if test -n "$PKG_CONFIG"; then
13580    if test -n "$CAIROPANGO_CFLAGS"; then
13581        pkg_cv_CAIROPANGO_CFLAGS="$CAIROPANGO_CFLAGS"
13582    else
13583        if test -n "$PKG_CONFIG" && \
13584    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 0.9.0 pango >= 1.22 pangocairo >= 1.10\""; } >&5
13585  ($PKG_CONFIG --exists --print-errors "cairo >= 0.9.0 pango >= 1.22 pangocairo >= 1.10") 2>&5
13586  ac_status=$?
13587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13588  test $ac_status = 0; }; then
13589  pkg_cv_CAIROPANGO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 0.9.0 pango >= 1.22 pangocairo >= 1.10" 2>/dev/null`
13590else
13591  pkg_failed=yes
13592fi
13593    fi
13594else
13595	pkg_failed=untried
13596fi
13597if test -n "$PKG_CONFIG"; then
13598    if test -n "$CAIROPANGO_LIBS"; then
13599        pkg_cv_CAIROPANGO_LIBS="$CAIROPANGO_LIBS"
13600    else
13601        if test -n "$PKG_CONFIG" && \
13602    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 0.9.0 pango >= 1.22 pangocairo >= 1.10\""; } >&5
13603  ($PKG_CONFIG --exists --print-errors "cairo >= 0.9.0 pango >= 1.22 pangocairo >= 1.10") 2>&5
13604  ac_status=$?
13605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13606  test $ac_status = 0; }; then
13607  pkg_cv_CAIROPANGO_LIBS=`$PKG_CONFIG --libs "cairo >= 0.9.0 pango >= 1.22 pangocairo >= 1.10" 2>/dev/null`
13608else
13609  pkg_failed=yes
13610fi
13611    fi
13612else
13613	pkg_failed=untried
13614fi
13615
13616
13617
13618if test $pkg_failed = yes; then
13619
13620if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13621        _pkg_short_errors_supported=yes
13622else
13623        _pkg_short_errors_supported=no
13624fi
13625        if test $_pkg_short_errors_supported = yes; then
13626	        CAIROPANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo >= 0.9.0 pango >= 1.22 pangocairo >= 1.10"`
13627        else
13628	        CAIROPANGO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 0.9.0 pango >= 1.22 pangocairo >= 1.10"`
13629        fi
13630	# Put the nasty error message in config.log where it belongs
13631	echo "$CAIROPANGO_PKG_ERRORS" >&5
13632
13633	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13634Package requirements (cairo >= 0.9.0 pango >= 1.22 pangocairo >= 1.10) were not met:
13635
13636$CAIROPANGO_PKG_ERRORS
13637
13638Consider adjusting the PKG_CONFIG_PATH environment variable if you
13639installed software in a non-standard prefix.
13640
13641Alternatively, you may set the environment variables CAIROPANGO_CFLAGS
13642and CAIROPANGO_LIBS to avoid the need to call pkg-config.
13643See the pkg-config man page for more details.
13644" >&5
13645$as_echo "$as_me: WARNING:
13646Package requirements (cairo >= 0.9.0 pango >= 1.22 pangocairo >= 1.10) were not met:
13647
13648$CAIROPANGO_PKG_ERRORS
13649
13650Consider adjusting the PKG_CONFIG_PATH environment variable if you
13651installed software in a non-standard prefix.
13652
13653Alternatively, you may set the environment variables CAIROPANGO_CFLAGS
13654and CAIROPANGO_LIBS to avoid the need to call pkg-config.
13655See the pkg-config man page for more details.
13656" >&2;}
13657elif test $pkg_failed = untried; then
13658	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13659The pkg-config script could not be found or is too old.  Make sure it
13660is in your PATH or set the PKG_CONFIG environment variable to the full
13661path to pkg-config.
13662
13663Alternatively, you may set the environment variables CAIROPANGO_CFLAGS
13664and CAIROPANGO_LIBS to avoid the need to call pkg-config.
13665See the pkg-config man page for more details.
13666
13667To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>." >&5
13668$as_echo "$as_me: WARNING:
13669The pkg-config script could not be found or is too old.  Make sure it
13670is in your PATH or set the PKG_CONFIG environment variable to the full
13671path to pkg-config.
13672
13673Alternatively, you may set the environment variables CAIROPANGO_CFLAGS
13674and CAIROPANGO_LIBS to avoid the need to call pkg-config.
13675See the pkg-config man page for more details.
13676
13677To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>." >&2;}
13678else
13679	CAIROPANGO_CFLAGS=$pkg_cv_CAIROPANGO_CFLAGS
13680	CAIROPANGO_LIBS=$pkg_cv_CAIROPANGO_LIBS
13681        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13682$as_echo "yes" >&6; }
13683	:
13684fi
13685  if test $pkg_failed != no; then
13686    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The wxWidgets terminal will not be compiled." >&5
13687$as_echo "$as_me: WARNING: The wxWidgets terminal will not be compiled." >&2;}
13688    enable_wxwidgets_ok=no
13689  fi
13690fi
13691
13692if test "${enable_wxwidgets_ok}" = yes ; then
13693  WX_CXXFLAGS="`$WX_CONFIG --cxxflags | sed 's/-fno-exceptions//'` $CAIROPANGO_CFLAGS"
13694  WX_LIBS="`$WX_CONFIG --libs` $CAIROPANGO_LIBS $LIBRARIES_FOR_X"
13695
13696    ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13697if test "x$ac_cv_type_pid_t" = xyes; then :
13698
13699else
13700
13701cat >>confdefs.h <<_ACEOF
13702#define pid_t int
13703_ACEOF
13704
13705fi
13706
13707for ac_header in vfork.h
13708do :
13709  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13710if test "x$ac_cv_header_vfork_h" = xyes; then :
13711  cat >>confdefs.h <<_ACEOF
13712#define HAVE_VFORK_H 1
13713_ACEOF
13714
13715fi
13716
13717done
13718
13719for ac_func in fork vfork
13720do :
13721  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13722ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13723if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13724  cat >>confdefs.h <<_ACEOF
13725#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13726_ACEOF
13727
13728fi
13729done
13730
13731if test "x$ac_cv_func_fork" = xyes; then
13732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13733$as_echo_n "checking for working fork... " >&6; }
13734if ${ac_cv_func_fork_works+:} false; then :
13735  $as_echo_n "(cached) " >&6
13736else
13737  if test "$cross_compiling" = yes; then :
13738  ac_cv_func_fork_works=cross
13739else
13740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741/* end confdefs.h.  */
13742$ac_includes_default
13743int
13744main ()
13745{
13746
13747	  /* By Ruediger Kuhlmann. */
13748	  return fork () < 0;
13749
13750  ;
13751  return 0;
13752}
13753_ACEOF
13754if ac_fn_c_try_run "$LINENO"; then :
13755  ac_cv_func_fork_works=yes
13756else
13757  ac_cv_func_fork_works=no
13758fi
13759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13760  conftest.$ac_objext conftest.beam conftest.$ac_ext
13761fi
13762
13763fi
13764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13765$as_echo "$ac_cv_func_fork_works" >&6; }
13766
13767else
13768  ac_cv_func_fork_works=$ac_cv_func_fork
13769fi
13770if test "x$ac_cv_func_fork_works" = xcross; then
13771  case $host in
13772    *-*-amigaos* | *-*-msdosdjgpp*)
13773      # Override, as these systems have only a dummy fork() stub
13774      ac_cv_func_fork_works=no
13775      ;;
13776    *)
13777      ac_cv_func_fork_works=yes
13778      ;;
13779  esac
13780  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13781$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13782fi
13783ac_cv_func_vfork_works=$ac_cv_func_vfork
13784if test "x$ac_cv_func_vfork" = xyes; then
13785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13786$as_echo_n "checking for working vfork... " >&6; }
13787if ${ac_cv_func_vfork_works+:} false; then :
13788  $as_echo_n "(cached) " >&6
13789else
13790  if test "$cross_compiling" = yes; then :
13791  ac_cv_func_vfork_works=cross
13792else
13793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13794/* end confdefs.h.  */
13795/* Thanks to Paul Eggert for this test.  */
13796$ac_includes_default
13797#include <sys/wait.h>
13798#ifdef HAVE_VFORK_H
13799# include <vfork.h>
13800#endif
13801/* On some sparc systems, changes by the child to local and incoming
13802   argument registers are propagated back to the parent.  The compiler
13803   is told about this with #include <vfork.h>, but some compilers
13804   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
13805   static variable whose address is put into a register that is
13806   clobbered by the vfork.  */
13807static void
13808#ifdef __cplusplus
13809sparc_address_test (int arg)
13810# else
13811sparc_address_test (arg) int arg;
13812#endif
13813{
13814  static pid_t child;
13815  if (!child) {
13816    child = vfork ();
13817    if (child < 0) {
13818      perror ("vfork");
13819      _exit(2);
13820    }
13821    if (!child) {
13822      arg = getpid();
13823      write(-1, "", 0);
13824      _exit (arg);
13825    }
13826  }
13827}
13828
13829int
13830main ()
13831{
13832  pid_t parent = getpid ();
13833  pid_t child;
13834
13835  sparc_address_test (0);
13836
13837  child = vfork ();
13838
13839  if (child == 0) {
13840    /* Here is another test for sparc vfork register problems.  This
13841       test uses lots of local variables, at least as many local
13842       variables as main has allocated so far including compiler
13843       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
13844       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
13845       reuse the register of parent for one of the local variables,
13846       since it will think that parent can't possibly be used any more
13847       in this routine.  Assigning to the local variable will thus
13848       munge parent in the parent process.  */
13849    pid_t
13850      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13851      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13852    /* Convince the compiler that p..p7 are live; otherwise, it might
13853       use the same hardware register for all 8 local variables.  */
13854    if (p != p1 || p != p2 || p != p3 || p != p4
13855	|| p != p5 || p != p6 || p != p7)
13856      _exit(1);
13857
13858    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13859       from child file descriptors.  If the child closes a descriptor
13860       before it execs or exits, this munges the parent's descriptor
13861       as well.  Test for this by closing stdout in the child.  */
13862    _exit(close(fileno(stdout)) != 0);
13863  } else {
13864    int status;
13865    struct stat st;
13866
13867    while (wait(&status) != child)
13868      ;
13869    return (
13870	 /* Was there some problem with vforking?  */
13871	 child < 0
13872
13873	 /* Did the child fail?  (This shouldn't happen.)  */
13874	 || status
13875
13876	 /* Did the vfork/compiler bug occur?  */
13877	 || parent != getpid()
13878
13879	 /* Did the file descriptor bug occur?  */
13880	 || fstat(fileno(stdout), &st) != 0
13881	 );
13882  }
13883}
13884_ACEOF
13885if ac_fn_c_try_run "$LINENO"; then :
13886  ac_cv_func_vfork_works=yes
13887else
13888  ac_cv_func_vfork_works=no
13889fi
13890rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13891  conftest.$ac_objext conftest.beam conftest.$ac_ext
13892fi
13893
13894fi
13895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13896$as_echo "$ac_cv_func_vfork_works" >&6; }
13897
13898fi;
13899if test "x$ac_cv_func_fork_works" = xcross; then
13900  ac_cv_func_vfork_works=$ac_cv_func_vfork
13901  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13902$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13903fi
13904
13905if test "x$ac_cv_func_vfork_works" = xyes; then
13906
13907$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13908
13909else
13910
13911$as_echo "#define vfork fork" >>confdefs.h
13912
13913fi
13914if test "x$ac_cv_func_fork_works" = xyes; then
13915
13916$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13917
13918fi
13919
13920
13921    WX_TOOLKIT="`$WX_CONFIG --query-toolkit`"
13922  if test "${WX_TOOLKIT}" = gtk2 ; then
13923
13924pkg_failed=no
13925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
13926$as_echo_n "checking for GTK... " >&6; }
13927
13928if test -n "$PKG_CONFIG"; then
13929    if test -n "$GTK_CFLAGS"; then
13930        pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
13931    else
13932        if test -n "$PKG_CONFIG" && \
13933    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
13934  ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
13935  ac_status=$?
13936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13937  test $ac_status = 0; }; then
13938  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
13939else
13940  pkg_failed=yes
13941fi
13942    fi
13943else
13944	pkg_failed=untried
13945fi
13946if test -n "$PKG_CONFIG"; then
13947    if test -n "$GTK_LIBS"; then
13948        pkg_cv_GTK_LIBS="$GTK_LIBS"
13949    else
13950        if test -n "$PKG_CONFIG" && \
13951    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
13952  ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
13953  ac_status=$?
13954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13955  test $ac_status = 0; }; then
13956  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
13957else
13958  pkg_failed=yes
13959fi
13960    fi
13961else
13962	pkg_failed=untried
13963fi
13964
13965
13966
13967if test $pkg_failed = yes; then
13968
13969if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13970        _pkg_short_errors_supported=yes
13971else
13972        _pkg_short_errors_supported=no
13973fi
13974        if test $_pkg_short_errors_supported = yes; then
13975	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
13976        else
13977	        GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
13978        fi
13979	# Put the nasty error message in config.log where it belongs
13980	echo "$GTK_PKG_ERRORS" >&5
13981
13982	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13983$as_echo "no" >&6; }
13984		 have_gtk=no
13985elif test $pkg_failed = untried; then
13986	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13987$as_echo "no" >&6; }
13988		 have_gtk=no
13989else
13990	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13991	GTK_LIBS=$pkg_cv_GTK_LIBS
13992        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13993$as_echo "yes" >&6; }
13994	have_gtk=yes
13995fi
13996    want_gtk=yes
13997  elif test "${WX_TOOLKIT}" = gtk3 ; then
13998
13999pkg_failed=no
14000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
14001$as_echo_n "checking for GTK... " >&6; }
14002
14003if test -n "$PKG_CONFIG"; then
14004    if test -n "$GTK_CFLAGS"; then
14005        pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
14006    else
14007        if test -n "$PKG_CONFIG" && \
14008    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
14009  ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
14010  ac_status=$?
14011  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14012  test $ac_status = 0; }; then
14013  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
14014else
14015  pkg_failed=yes
14016fi
14017    fi
14018else
14019	pkg_failed=untried
14020fi
14021if test -n "$PKG_CONFIG"; then
14022    if test -n "$GTK_LIBS"; then
14023        pkg_cv_GTK_LIBS="$GTK_LIBS"
14024    else
14025        if test -n "$PKG_CONFIG" && \
14026    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
14027  ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
14028  ac_status=$?
14029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14030  test $ac_status = 0; }; then
14031  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
14032else
14033  pkg_failed=yes
14034fi
14035    fi
14036else
14037	pkg_failed=untried
14038fi
14039
14040
14041
14042if test $pkg_failed = yes; then
14043
14044if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14045        _pkg_short_errors_supported=yes
14046else
14047        _pkg_short_errors_supported=no
14048fi
14049        if test $_pkg_short_errors_supported = yes; then
14050	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-3.0"`
14051        else
14052	        GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-3.0"`
14053        fi
14054	# Put the nasty error message in config.log where it belongs
14055	echo "$GTK_PKG_ERRORS" >&5
14056
14057	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14058$as_echo "no" >&6; }
14059		 have_gtk=no
14060elif test $pkg_failed = untried; then
14061	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14062$as_echo "no" >&6; }
14063		 have_gtk=no
14064else
14065	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
14066	GTK_LIBS=$pkg_cv_GTK_LIBS
14067        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14068$as_echo "yes" >&6; }
14069	have_gtk=yes
14070fi
14071    want_gtk=yes
14072  fi
14073  if  test "${have_gtk}" = yes ; then
14074
14075$as_echo "#define HAVE_GTK 1" >>confdefs.h
14076
14077    WX_CXXFLAGS="$WX_CXXFLAGS $GTK_CFLAGS"
14078    WX_LIBS="$WX_LIBS $GTK_LIBS"
14079  fi
14080
14081
14082# Check whether --with-wx-multithreaded was given.
14083if test "${with_wx_multithreaded+set}" = set; then :
14084  withval=$with_wx_multithreaded;
14085else
14086  WX_CXXFLAGS="$WX_CXXFLAGS -DWXT_MONOTHREADED"
14087
14088fi
14089
14090
14091  CPPFLAGS="$CPPFLAGS $CAIROPANGO_CFLAGS"
14092  CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS"
14093
14094
14095$as_echo "#define WXWIDGETS 1" >>confdefs.h
14096
14097fi
14098
14099 if test "${enable_wxwidgets_ok}" = yes; then
14100  BUILD_WXWIDGETS_TRUE=
14101  BUILD_WXWIDGETS_FALSE='#'
14102else
14103  BUILD_WXWIDGETS_TRUE='#'
14104  BUILD_WXWIDGETS_FALSE=
14105fi
14106
14107
14108
14109
14110# Check whether --with-bitmap_terminals was given.
14111if test "${with_bitmap_terminals+set}" = set; then :
14112  withval=$with_bitmap_terminals;
14113fi
14114
14115if test "x${with_bitmap_terminals}" = "xyes"; then :
14116
14117else
14118
14119$as_echo "#define NO_BITMAP_SUPPORT 1" >>confdefs.h
14120
14121fi
14122 if test "${with_bitmap_terminals}" = yes; then
14123  BUILD_BITMAP_TRUE=
14124  BUILD_BITMAP_FALSE='#'
14125else
14126  BUILD_BITMAP_TRUE='#'
14127  BUILD_BITMAP_FALSE=
14128fi
14129
14130
14131
14132# Check whether --with-tektronix was given.
14133if test "${with_tektronix+set}" = set; then :
14134  withval=$with_tektronix;
14135fi
14136
14137if test "x${with_tektronix}" != "xno"; then :
14138
14139$as_echo "#define WITH_TEKTRONIX 1" >>confdefs.h
14140
14141fi
14142
14143
14144# Check whether --with-gpic was given.
14145if test "${with_gpic+set}" = set; then :
14146  withval=$with_gpic;
14147fi
14148
14149if test "x${with_gpic}" = "xyes"; then :
14150
14151$as_echo "#define HAVE_GPIC 1" >>confdefs.h
14152
14153fi
14154
14155
14156# Check whether --with-tgif was given.
14157if test "${with_tgif+set}" = set; then :
14158  withval=$with_tgif;
14159fi
14160
14161if test "x${with_tgif}" = "xyes"; then :
14162
14163$as_echo "#define HAVE_TGIF 1" >>confdefs.h
14164
14165fi
14166
14167
14168# Check whether --with-mif was given.
14169if test "${with_mif+set}" = set; then :
14170  withval=$with_mif;
14171fi
14172
14173if test "x${with_mif}" = "xyes"; then :
14174
14175$as_echo "#define HAVE_MIF 1" >>confdefs.h
14176
14177fi
14178
14179
14180# Check whether --with-regis was given.
14181if test "${with_regis+set}" = set; then :
14182  withval=$with_regis;
14183fi
14184
14185if test "x${with_regis}" = "xyes"; then :
14186
14187$as_echo "#define HAVE_REGIS 1" >>confdefs.h
14188
14189fi
14190
14191
14192# Check whether --with-cairo was given.
14193if test "${with_cairo+set}" = set; then :
14194  withval=$with_cairo;
14195else
14196  test -z "${with_cairo}" && with_cairo=yes
14197fi
14198
14199
14200if test "${with_cairo}" = yes ; then
14201
14202pkg_failed=no
14203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIROPDF" >&5
14204$as_echo_n "checking for CAIROPDF... " >&6; }
14205
14206if test -n "$PKG_CONFIG"; then
14207    if test -n "$CAIROPDF_CFLAGS"; then
14208        pkg_cv_CAIROPDF_CFLAGS="$CAIROPDF_CFLAGS"
14209    else
14210        if test -n "$PKG_CONFIG" && \
14211    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"       cairo >= 1.2 cairo-pdf >= 1.2 pango >= 1.22 pangocairo >= 1.10 glib-2.0 >= 2.28\""; } >&5
14212  ($PKG_CONFIG --exists --print-errors "       cairo >= 1.2 cairo-pdf >= 1.2 pango >= 1.22 pangocairo >= 1.10 glib-2.0 >= 2.28") 2>&5
14213  ac_status=$?
14214  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14215  test $ac_status = 0; }; then
14216  pkg_cv_CAIROPDF_CFLAGS=`$PKG_CONFIG --cflags "       cairo >= 1.2 cairo-pdf >= 1.2 pango >= 1.22 pangocairo >= 1.10 glib-2.0 >= 2.28" 2>/dev/null`
14217else
14218  pkg_failed=yes
14219fi
14220    fi
14221else
14222	pkg_failed=untried
14223fi
14224if test -n "$PKG_CONFIG"; then
14225    if test -n "$CAIROPDF_LIBS"; then
14226        pkg_cv_CAIROPDF_LIBS="$CAIROPDF_LIBS"
14227    else
14228        if test -n "$PKG_CONFIG" && \
14229    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"       cairo >= 1.2 cairo-pdf >= 1.2 pango >= 1.22 pangocairo >= 1.10 glib-2.0 >= 2.28\""; } >&5
14230  ($PKG_CONFIG --exists --print-errors "       cairo >= 1.2 cairo-pdf >= 1.2 pango >= 1.22 pangocairo >= 1.10 glib-2.0 >= 2.28") 2>&5
14231  ac_status=$?
14232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14233  test $ac_status = 0; }; then
14234  pkg_cv_CAIROPDF_LIBS=`$PKG_CONFIG --libs "       cairo >= 1.2 cairo-pdf >= 1.2 pango >= 1.22 pangocairo >= 1.10 glib-2.0 >= 2.28" 2>/dev/null`
14235else
14236  pkg_failed=yes
14237fi
14238    fi
14239else
14240	pkg_failed=untried
14241fi
14242
14243
14244
14245if test $pkg_failed = yes; then
14246
14247if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14248        _pkg_short_errors_supported=yes
14249else
14250        _pkg_short_errors_supported=no
14251fi
14252        if test $_pkg_short_errors_supported = yes; then
14253	        CAIROPDF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "       cairo >= 1.2 cairo-pdf >= 1.2 pango >= 1.22 pangocairo >= 1.10 glib-2.0 >= 2.28"`
14254        else
14255	        CAIROPDF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "       cairo >= 1.2 cairo-pdf >= 1.2 pango >= 1.22 pangocairo >= 1.10 glib-2.0 >= 2.28"`
14256        fi
14257	# Put the nasty error message in config.log where it belongs
14258	echo "$CAIROPDF_PKG_ERRORS" >&5
14259
14260	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14261Package requirements (       cairo >= 1.2 cairo-pdf >= 1.2 pango >= 1.22 pangocairo >= 1.10 glib-2.0 >= 2.28) were not met:
14262
14263$CAIROPDF_PKG_ERRORS
14264
14265Consider adjusting the PKG_CONFIG_PATH environment variable if you
14266installed software in a non-standard prefix.
14267
14268Alternatively, you may set the environment variables CAIROPDF_CFLAGS
14269and CAIROPDF_LIBS to avoid the need to call pkg-config.
14270See the pkg-config man page for more details.
14271" >&5
14272$as_echo "$as_me: WARNING:
14273Package requirements (       cairo >= 1.2 cairo-pdf >= 1.2 pango >= 1.22 pangocairo >= 1.10 glib-2.0 >= 2.28) were not met:
14274
14275$CAIROPDF_PKG_ERRORS
14276
14277Consider adjusting the PKG_CONFIG_PATH environment variable if you
14278installed software in a non-standard prefix.
14279
14280Alternatively, you may set the environment variables CAIROPDF_CFLAGS
14281and CAIROPDF_LIBS to avoid the need to call pkg-config.
14282See the pkg-config man page for more details.
14283" >&2;}
14284elif test $pkg_failed = untried; then
14285	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14286The pkg-config script could not be found or is too old.  Make sure it
14287is in your PATH or set the PKG_CONFIG environment variable to the full
14288path to pkg-config.
14289
14290Alternatively, you may set the environment variables CAIROPDF_CFLAGS
14291and CAIROPDF_LIBS to avoid the need to call pkg-config.
14292See the pkg-config man page for more details.
14293
14294To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>." >&5
14295$as_echo "$as_me: WARNING:
14296The pkg-config script could not be found or is too old.  Make sure it
14297is in your PATH or set the PKG_CONFIG environment variable to the full
14298path to pkg-config.
14299
14300Alternatively, you may set the environment variables CAIROPDF_CFLAGS
14301and CAIROPDF_LIBS to avoid the need to call pkg-config.
14302See the pkg-config man page for more details.
14303
14304To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>." >&2;}
14305else
14306	CAIROPDF_CFLAGS=$pkg_cv_CAIROPDF_CFLAGS
14307	CAIROPDF_LIBS=$pkg_cv_CAIROPDF_LIBS
14308        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14309$as_echo "yes" >&6; }
14310	:
14311fi
14312  if test $pkg_failed != no; then
14313    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The cairo terminals will not be compiled." >&5
14314$as_echo "$as_me: WARNING: The cairo terminals will not be compiled." >&2;}
14315    with_cairo=no
14316  else
14317
14318$as_echo "#define HAVE_CAIROPDF 1" >>confdefs.h
14319
14320    CPPFLAGS="$CPPFLAGS $CAIROPDF_CFLAGS"
14321    LIBS="$LIBS $CAIROPDF_LIBS"
14322    with_cairo=yes
14323
14324pkg_failed=no
14325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIROEPS" >&5
14326$as_echo_n "checking for CAIROEPS... " >&6; }
14327
14328if test -n "$PKG_CONFIG"; then
14329    if test -n "$CAIROEPS_CFLAGS"; then
14330        pkg_cv_CAIROEPS_CFLAGS="$CAIROEPS_CFLAGS"
14331    else
14332        if test -n "$PKG_CONFIG" && \
14333    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.6.0\""; } >&5
14334  ($PKG_CONFIG --exists --print-errors "cairo >= 1.6.0") 2>&5
14335  ac_status=$?
14336  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14337  test $ac_status = 0; }; then
14338  pkg_cv_CAIROEPS_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.6.0" 2>/dev/null`
14339else
14340  pkg_failed=yes
14341fi
14342    fi
14343else
14344	pkg_failed=untried
14345fi
14346if test -n "$PKG_CONFIG"; then
14347    if test -n "$CAIROEPS_LIBS"; then
14348        pkg_cv_CAIROEPS_LIBS="$CAIROEPS_LIBS"
14349    else
14350        if test -n "$PKG_CONFIG" && \
14351    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.6.0\""; } >&5
14352  ($PKG_CONFIG --exists --print-errors "cairo >= 1.6.0") 2>&5
14353  ac_status=$?
14354  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14355  test $ac_status = 0; }; then
14356  pkg_cv_CAIROEPS_LIBS=`$PKG_CONFIG --libs "cairo >= 1.6.0" 2>/dev/null`
14357else
14358  pkg_failed=yes
14359fi
14360    fi
14361else
14362	pkg_failed=untried
14363fi
14364
14365
14366
14367if test $pkg_failed = yes; then
14368
14369if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14370        _pkg_short_errors_supported=yes
14371else
14372        _pkg_short_errors_supported=no
14373fi
14374        if test $_pkg_short_errors_supported = yes; then
14375	        CAIROEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo >= 1.6.0"`
14376        else
14377	        CAIROEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.6.0"`
14378        fi
14379	# Put the nasty error message in config.log where it belongs
14380	echo "$CAIROEPS_PKG_ERRORS" >&5
14381
14382	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14383$as_echo "no" >&6; }
14384		 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of cairo is too old to support epscairo output" >&5
14385$as_echo "$as_me: WARNING: Your version of cairo is too old to support epscairo output" >&2;}
14386elif test $pkg_failed = untried; then
14387	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14388$as_echo "no" >&6; }
14389		 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of cairo is too old to support epscairo output" >&5
14390$as_echo "$as_me: WARNING: Your version of cairo is too old to support epscairo output" >&2;}
14391else
14392	CAIROEPS_CFLAGS=$pkg_cv_CAIROEPS_CFLAGS
14393	CAIROEPS_LIBS=$pkg_cv_CAIROEPS_LIBS
14394        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14395$as_echo "yes" >&6; }
14396
14397$as_echo "#define HAVE_CAIROEPS 1" >>confdefs.h
14398
14399fi
14400  fi
14401fi
14402
14403build_gpcairo=no
14404if test "${enable_wxwidgets_ok}" = yes; then
14405  build_gpcairo=yes
14406fi
14407if test "${with_cairo}" = yes; then
14408  build_gpcairo=yes
14409fi
14410
14411 if test "${build_gpcairo}" = yes; then
14412  BUILD_GPCAIRO_TRUE=
14413  BUILD_GPCAIRO_FALSE='#'
14414else
14415  BUILD_GPCAIRO_TRUE='#'
14416  BUILD_GPCAIRO_FALSE=
14417fi
14418
14419
14420# Check whether --enable-stats was given.
14421if test "${enable_stats+set}" = set; then :
14422  enableval=$enable_stats; if test "$enableval" != no; then
14423
14424$as_echo "#define USE_STATS 1" >>confdefs.h
14425
14426   fi
14427else
14428
14429$as_echo "#define USE_STATS 1" >>confdefs.h
14430
14431
14432fi
14433
14434
14435
14436
14437
14438# Check whether --with-qt was given.
14439if test "${with_qt+set}" = set; then :
14440  withval=$with_qt; if test "x${with_qt}" != "xno"; then
14441     enable_qt=yes;
14442   fi
14443else
14444  enable_qt=yes
14445fi
14446
14447
14448if test "${enable_qt}" = yes ; then
14449    enable_qt_ok=yes
14450
14451    if test "x${cxxerror}" = "xyes"; then
14452    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No C++ compiler found. The Qt terminal will not be compiled." >&5
14453$as_echo "$as_me: WARNING: No C++ compiler found. The Qt terminal will not be compiled." >&2;}
14454      enable_qt_ok=no
14455  fi
14456
14457    if test "x${with_qt}" = "xqt5"; then
14458    try_qt4=no
14459  else
14460    try_qt4=yes
14461  fi
14462  if test "x${with_qt}" != "xqt4"; then
14463
14464pkg_failed=no
14465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT" >&5
14466$as_echo_n "checking for QT... " >&6; }
14467
14468if test -n "$PKG_CONFIG"; then
14469    if test -n "$QT_CFLAGS"; then
14470        pkg_cv_QT_CFLAGS="$QT_CFLAGS"
14471    else
14472        if test -n "$PKG_CONFIG" && \
14473    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core Qt5Gui Qt5Network Qt5Svg Qt5PrintSupport\""; } >&5
14474  ($PKG_CONFIG --exists --print-errors "Qt5Core Qt5Gui Qt5Network Qt5Svg Qt5PrintSupport") 2>&5
14475  ac_status=$?
14476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14477  test $ac_status = 0; }; then
14478  pkg_cv_QT_CFLAGS=`$PKG_CONFIG --cflags "Qt5Core Qt5Gui Qt5Network Qt5Svg Qt5PrintSupport" 2>/dev/null`
14479else
14480  pkg_failed=yes
14481fi
14482    fi
14483else
14484	pkg_failed=untried
14485fi
14486if test -n "$PKG_CONFIG"; then
14487    if test -n "$QT_LIBS"; then
14488        pkg_cv_QT_LIBS="$QT_LIBS"
14489    else
14490        if test -n "$PKG_CONFIG" && \
14491    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core Qt5Gui Qt5Network Qt5Svg Qt5PrintSupport\""; } >&5
14492  ($PKG_CONFIG --exists --print-errors "Qt5Core Qt5Gui Qt5Network Qt5Svg Qt5PrintSupport") 2>&5
14493  ac_status=$?
14494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14495  test $ac_status = 0; }; then
14496  pkg_cv_QT_LIBS=`$PKG_CONFIG --libs "Qt5Core Qt5Gui Qt5Network Qt5Svg Qt5PrintSupport" 2>/dev/null`
14497else
14498  pkg_failed=yes
14499fi
14500    fi
14501else
14502	pkg_failed=untried
14503fi
14504
14505
14506
14507if test $pkg_failed = yes; then
14508
14509if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14510        _pkg_short_errors_supported=yes
14511else
14512        _pkg_short_errors_supported=no
14513fi
14514        if test $_pkg_short_errors_supported = yes; then
14515	        QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Core Qt5Gui Qt5Network Qt5Svg Qt5PrintSupport"`
14516        else
14517	        QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Core Qt5Gui Qt5Network Qt5Svg Qt5PrintSupport"`
14518        fi
14519	# Put the nasty error message in config.log where it belongs
14520	echo "$QT_PKG_ERRORS" >&5
14521
14522	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14523Package requirements (Qt5Core Qt5Gui Qt5Network Qt5Svg Qt5PrintSupport) were not met:
14524
14525$QT_PKG_ERRORS
14526
14527Consider adjusting the PKG_CONFIG_PATH environment variable if you
14528installed software in a non-standard prefix.
14529
14530Alternatively, you may set the environment variables QT_CFLAGS
14531and QT_LIBS to avoid the need to call pkg-config.
14532See the pkg-config man page for more details.
14533" >&5
14534$as_echo "$as_me: WARNING:
14535Package requirements (Qt5Core Qt5Gui Qt5Network Qt5Svg Qt5PrintSupport) were not met:
14536
14537$QT_PKG_ERRORS
14538
14539Consider adjusting the PKG_CONFIG_PATH environment variable if you
14540installed software in a non-standard prefix.
14541
14542Alternatively, you may set the environment variables QT_CFLAGS
14543and QT_LIBS to avoid the need to call pkg-config.
14544See the pkg-config man page for more details.
14545" >&2;}
14546elif test $pkg_failed = untried; then
14547	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14548The pkg-config script could not be found or is too old.  Make sure it
14549is in your PATH or set the PKG_CONFIG environment variable to the full
14550path to pkg-config.
14551
14552Alternatively, you may set the environment variables QT_CFLAGS
14553and QT_LIBS to avoid the need to call pkg-config.
14554See the pkg-config man page for more details.
14555
14556To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>." >&5
14557$as_echo "$as_me: WARNING:
14558The pkg-config script could not be found or is too old.  Make sure it
14559is in your PATH or set the PKG_CONFIG environment variable to the full
14560path to pkg-config.
14561
14562Alternatively, you may set the environment variables QT_CFLAGS
14563and QT_LIBS to avoid the need to call pkg-config.
14564See the pkg-config man page for more details.
14565
14566To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>." >&2;}
14567else
14568	QT_CFLAGS=$pkg_cv_QT_CFLAGS
14569	QT_LIBS=$pkg_cv_QT_LIBS
14570        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14571$as_echo "yes" >&6; }
14572	:
14573fi
14574    if test $pkg_failed = no; then
14575      try_qt4=no
14576      QT5LOC=`$PKG_CONFIG --variable=host_bins Qt5Core`
14577      if test "x${QT5LOC}" != "x"; then
14578        UIC=${QT5LOC}/uic
14579        MOC=${QT5LOC}/moc
14580        RCC=${QT5LOC}/rcc
14581        LRELEASE=${QT5LOC}/lrelease
14582      fi
14583      CXXFLAGS="$CXXFLAGS -fPIC"
14584    fi
14585  fi
14586
14587    if test ${try_qt4} != no; then
14588
14589pkg_failed=no
14590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT" >&5
14591$as_echo_n "checking for QT... " >&6; }
14592
14593if test -n "$PKG_CONFIG"; then
14594    if test -n "$QT_CFLAGS"; then
14595        pkg_cv_QT_CFLAGS="$QT_CFLAGS"
14596    else
14597        if test -n "$PKG_CONFIG" && \
14598    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.5 QtGui >= 4.5 QtNetwork >= 4.5 QtSvg >= 4.5\""; } >&5
14599  ($PKG_CONFIG --exists --print-errors "QtCore >= 4.5 QtGui >= 4.5 QtNetwork >= 4.5 QtSvg >= 4.5") 2>&5
14600  ac_status=$?
14601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14602  test $ac_status = 0; }; then
14603  pkg_cv_QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore >= 4.5 QtGui >= 4.5 QtNetwork >= 4.5 QtSvg >= 4.5" 2>/dev/null`
14604else
14605  pkg_failed=yes
14606fi
14607    fi
14608else
14609	pkg_failed=untried
14610fi
14611if test -n "$PKG_CONFIG"; then
14612    if test -n "$QT_LIBS"; then
14613        pkg_cv_QT_LIBS="$QT_LIBS"
14614    else
14615        if test -n "$PKG_CONFIG" && \
14616    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.5 QtGui >= 4.5 QtNetwork >= 4.5 QtSvg >= 4.5\""; } >&5
14617  ($PKG_CONFIG --exists --print-errors "QtCore >= 4.5 QtGui >= 4.5 QtNetwork >= 4.5 QtSvg >= 4.5") 2>&5
14618  ac_status=$?
14619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14620  test $ac_status = 0; }; then
14621  pkg_cv_QT_LIBS=`$PKG_CONFIG --libs "QtCore >= 4.5 QtGui >= 4.5 QtNetwork >= 4.5 QtSvg >= 4.5" 2>/dev/null`
14622else
14623  pkg_failed=yes
14624fi
14625    fi
14626else
14627	pkg_failed=untried
14628fi
14629
14630
14631
14632if test $pkg_failed = yes; then
14633
14634if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14635        _pkg_short_errors_supported=yes
14636else
14637        _pkg_short_errors_supported=no
14638fi
14639        if test $_pkg_short_errors_supported = yes; then
14640	        QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtCore >= 4.5 QtGui >= 4.5 QtNetwork >= 4.5 QtSvg >= 4.5"`
14641        else
14642	        QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore >= 4.5 QtGui >= 4.5 QtNetwork >= 4.5 QtSvg >= 4.5"`
14643        fi
14644	# Put the nasty error message in config.log where it belongs
14645	echo "$QT_PKG_ERRORS" >&5
14646
14647	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14648Package requirements (QtCore >= 4.5 QtGui >= 4.5 QtNetwork >= 4.5 QtSvg >= 4.5) were not met:
14649
14650$QT_PKG_ERRORS
14651
14652Consider adjusting the PKG_CONFIG_PATH environment variable if you
14653installed software in a non-standard prefix.
14654
14655Alternatively, you may set the environment variables QT_CFLAGS
14656and QT_LIBS to avoid the need to call pkg-config.
14657See the pkg-config man page for more details.
14658" >&5
14659$as_echo "$as_me: WARNING:
14660Package requirements (QtCore >= 4.5 QtGui >= 4.5 QtNetwork >= 4.5 QtSvg >= 4.5) were not met:
14661
14662$QT_PKG_ERRORS
14663
14664Consider adjusting the PKG_CONFIG_PATH environment variable if you
14665installed software in a non-standard prefix.
14666
14667Alternatively, you may set the environment variables QT_CFLAGS
14668and QT_LIBS to avoid the need to call pkg-config.
14669See the pkg-config man page for more details.
14670" >&2;}
14671elif test $pkg_failed = untried; then
14672	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14673The pkg-config script could not be found or is too old.  Make sure it
14674is in your PATH or set the PKG_CONFIG environment variable to the full
14675path to pkg-config.
14676
14677Alternatively, you may set the environment variables QT_CFLAGS
14678and QT_LIBS to avoid the need to call pkg-config.
14679See the pkg-config man page for more details.
14680
14681To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>." >&5
14682$as_echo "$as_me: WARNING:
14683The pkg-config script could not be found or is too old.  Make sure it
14684is in your PATH or set the PKG_CONFIG environment variable to the full
14685path to pkg-config.
14686
14687Alternatively, you may set the environment variables QT_CFLAGS
14688and QT_LIBS to avoid the need to call pkg-config.
14689See the pkg-config man page for more details.
14690
14691To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>." >&2;}
14692else
14693	QT_CFLAGS=$pkg_cv_QT_CFLAGS
14694	QT_LIBS=$pkg_cv_QT_LIBS
14695        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14696$as_echo "yes" >&6; }
14697	:
14698fi
14699    if test $pkg_failed != no; then
14700      enable_qt_ok=no
14701      { $as_echo "$as_me:${as_lineno-$LINENO}: result: The Qt terminal will not be compiled." >&5
14702$as_echo "The Qt terminal will not be compiled." >&6; }
14703    else
14704      QT4LOC=`$PKG_CONFIG --variable=exec_prefix QtCore`
14705      UIC=`$PKG_CONFIG --variable=uic_location QtCore`
14706      MOC=`$PKG_CONFIG --variable=moc_location QtCore`
14707      RCC=`$PKG_CONFIG --variable=rcc_location QtCore`
14708      LRELEASE=`$PKG_CONFIG --variable=lrelease_location QtCore`
14709      { $as_echo "$as_me:${as_lineno-$LINENO}: result: The Qt terminal will use Qt4." >&5
14710$as_echo "The Qt terminal will use Qt4." >&6; }
14711      QTVER="4"
14712    fi
14713  else
14714    { $as_echo "$as_me:${as_lineno-$LINENO}: result: The Qt terminal will use Qt5." >&5
14715$as_echo "The Qt terminal will use Qt5." >&6; }
14716    QTVER="5"
14717  fi
14718fi
14719
14720if test "${enable_qt_ok}" = yes ; then
14721    for ac_header in vfork.h
14722do :
14723  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14724if test "x$ac_cv_header_vfork_h" = xyes; then :
14725  cat >>confdefs.h <<_ACEOF
14726#define HAVE_VFORK_H 1
14727_ACEOF
14728
14729fi
14730
14731done
14732
14733for ac_func in fork vfork
14734do :
14735  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14736ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14737if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14738  cat >>confdefs.h <<_ACEOF
14739#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14740_ACEOF
14741
14742fi
14743done
14744
14745if test "x$ac_cv_func_fork" = xyes; then
14746  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14747$as_echo_n "checking for working fork... " >&6; }
14748if ${ac_cv_func_fork_works+:} false; then :
14749  $as_echo_n "(cached) " >&6
14750else
14751  if test "$cross_compiling" = yes; then :
14752  ac_cv_func_fork_works=cross
14753else
14754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755/* end confdefs.h.  */
14756$ac_includes_default
14757int
14758main ()
14759{
14760
14761	  /* By Ruediger Kuhlmann. */
14762	  return fork () < 0;
14763
14764  ;
14765  return 0;
14766}
14767_ACEOF
14768if ac_fn_c_try_run "$LINENO"; then :
14769  ac_cv_func_fork_works=yes
14770else
14771  ac_cv_func_fork_works=no
14772fi
14773rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14774  conftest.$ac_objext conftest.beam conftest.$ac_ext
14775fi
14776
14777fi
14778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14779$as_echo "$ac_cv_func_fork_works" >&6; }
14780
14781else
14782  ac_cv_func_fork_works=$ac_cv_func_fork
14783fi
14784if test "x$ac_cv_func_fork_works" = xcross; then
14785  case $host in
14786    *-*-amigaos* | *-*-msdosdjgpp*)
14787      # Override, as these systems have only a dummy fork() stub
14788      ac_cv_func_fork_works=no
14789      ;;
14790    *)
14791      ac_cv_func_fork_works=yes
14792      ;;
14793  esac
14794  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14795$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14796fi
14797ac_cv_func_vfork_works=$ac_cv_func_vfork
14798if test "x$ac_cv_func_vfork" = xyes; then
14799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14800$as_echo_n "checking for working vfork... " >&6; }
14801if ${ac_cv_func_vfork_works+:} false; then :
14802  $as_echo_n "(cached) " >&6
14803else
14804  if test "$cross_compiling" = yes; then :
14805  ac_cv_func_vfork_works=cross
14806else
14807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14808/* end confdefs.h.  */
14809/* Thanks to Paul Eggert for this test.  */
14810$ac_includes_default
14811#include <sys/wait.h>
14812#ifdef HAVE_VFORK_H
14813# include <vfork.h>
14814#endif
14815/* On some sparc systems, changes by the child to local and incoming
14816   argument registers are propagated back to the parent.  The compiler
14817   is told about this with #include <vfork.h>, but some compilers
14818   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14819   static variable whose address is put into a register that is
14820   clobbered by the vfork.  */
14821static void
14822#ifdef __cplusplus
14823sparc_address_test (int arg)
14824# else
14825sparc_address_test (arg) int arg;
14826#endif
14827{
14828  static pid_t child;
14829  if (!child) {
14830    child = vfork ();
14831    if (child < 0) {
14832      perror ("vfork");
14833      _exit(2);
14834    }
14835    if (!child) {
14836      arg = getpid();
14837      write(-1, "", 0);
14838      _exit (arg);
14839    }
14840  }
14841}
14842
14843int
14844main ()
14845{
14846  pid_t parent = getpid ();
14847  pid_t child;
14848
14849  sparc_address_test (0);
14850
14851  child = vfork ();
14852
14853  if (child == 0) {
14854    /* Here is another test for sparc vfork register problems.  This
14855       test uses lots of local variables, at least as many local
14856       variables as main has allocated so far including compiler
14857       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14858       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14859       reuse the register of parent for one of the local variables,
14860       since it will think that parent can't possibly be used any more
14861       in this routine.  Assigning to the local variable will thus
14862       munge parent in the parent process.  */
14863    pid_t
14864      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14865      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14866    /* Convince the compiler that p..p7 are live; otherwise, it might
14867       use the same hardware register for all 8 local variables.  */
14868    if (p != p1 || p != p2 || p != p3 || p != p4
14869	|| p != p5 || p != p6 || p != p7)
14870      _exit(1);
14871
14872    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14873       from child file descriptors.  If the child closes a descriptor
14874       before it execs or exits, this munges the parent's descriptor
14875       as well.  Test for this by closing stdout in the child.  */
14876    _exit(close(fileno(stdout)) != 0);
14877  } else {
14878    int status;
14879    struct stat st;
14880
14881    while (wait(&status) != child)
14882      ;
14883    return (
14884	 /* Was there some problem with vforking?  */
14885	 child < 0
14886
14887	 /* Did the child fail?  (This shouldn't happen.)  */
14888	 || status
14889
14890	 /* Did the vfork/compiler bug occur?  */
14891	 || parent != getpid()
14892
14893	 /* Did the file descriptor bug occur?  */
14894	 || fstat(fileno(stdout), &st) != 0
14895	 );
14896  }
14897}
14898_ACEOF
14899if ac_fn_c_try_run "$LINENO"; then :
14900  ac_cv_func_vfork_works=yes
14901else
14902  ac_cv_func_vfork_works=no
14903fi
14904rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14905  conftest.$ac_objext conftest.beam conftest.$ac_ext
14906fi
14907
14908fi
14909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14910$as_echo "$ac_cv_func_vfork_works" >&6; }
14911
14912fi;
14913if test "x$ac_cv_func_fork_works" = xcross; then
14914  ac_cv_func_vfork_works=$ac_cv_func_vfork
14915  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14916$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14917fi
14918
14919if test "x$ac_cv_func_vfork_works" = xyes; then
14920
14921$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14922
14923else
14924
14925$as_echo "#define vfork fork" >>confdefs.h
14926
14927fi
14928if test "x$ac_cv_func_fork_works" = xyes; then
14929
14930$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14931
14932fi
14933
14934
14935  CPPFLAGS="$CPPFLAGS $QT_CFLAGS"
14936  CXXFLAGS="$CXXFLAGS $QT_CXXFLAGS"
14937
14938  if test x"$MOC" = x; then
14939    MOC=moc
14940  fi
14941  if test x"$UIC" = x; then
14942    UIC=uic
14943  fi
14944  if test x"$RCC" = x ; then
14945    if test x"$QT4LOC" != x ; then
14946        RCC=$QT4LOC/bin/rcc
14947    else
14948        RCC=rcc
14949    fi
14950  fi
14951  if test x"$LRELEASE" = x ; then
14952    if test x"$QT4LOC" != x ; then
14953        LRELEASE=$QT4LOC/bin/lrelease
14954    else
14955        LRELEASE=lrelease
14956    fi
14957  fi
14958
14959
14960
14961
14962
14963
14964$as_echo "#define QTTERM 1" >>confdefs.h
14965
14966
14967cat >>confdefs.h <<_ACEOF
14968#define QTVER $QTVER
14969_ACEOF
14970
14971fi
14972 if test "${enable_qt_ok}" = yes; then
14973  BUILD_QT_TRUE=
14974  BUILD_QT_FALSE='#'
14975else
14976  BUILD_QT_TRUE='#'
14977  BUILD_QT_FALSE=
14978fi
14979
14980
14981if test "${enable_qt_ok}" = yes \
14982  || test "${enable_wxwidgets_ok}" = yes \
14983  || test "$GGI_SUPPORT" = yes \
14984  || test "$no_x" != yes; then
14985    enable_mouse=yes;
14986fi
14987
14988if test "$enable_mouse" = yes; then
14989
14990$as_echo "#define USE_MOUSE 1" >>confdefs.h
14991
14992
14993$as_echo "#define PIPE_IPC 1" >>confdefs.h
14994
14995fi
14996
14997 if test "${LRELEASE}" != no; then
14998  HAVE_LRELEASE_TRUE=
14999  HAVE_LRELEASE_FALSE='#'
15000else
15001  HAVE_LRELEASE_TRUE='#'
15002  HAVE_LRELEASE_FALSE=
15003fi
15004
15005
15006
15007if test -n "${DIST_CONTACT}"; then
15008
15009cat >>confdefs.h <<_ACEOF
15010#define DIST_CONTACT "$DIST_CONTACT"
15011_ACEOF
15012
15013fi
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024ac_config_files="$ac_config_files Makefile config/Makefile demo/Makefile demo/plugin/Makefile docs/Makefile m4/Makefile man/Makefile share/Makefile share/LaTeX/Makefile src/Makefile src/beos/Makefile src/wxterminal/Makefile src/qtterminal/Makefile term/Makefile"
15025
15026ac_config_commands="$ac_config_commands default"
15027
15028cat >confcache <<\_ACEOF
15029# This file is a shell script that caches the results of configure
15030# tests run on this system so they can be shared between configure
15031# scripts and configure runs, see configure's option --config-cache.
15032# It is not useful on other systems.  If it contains results you don't
15033# want to keep, you may remove or edit it.
15034#
15035# config.status only pays attention to the cache file if you give it
15036# the --recheck option to rerun configure.
15037#
15038# `ac_cv_env_foo' variables (set or unset) will be overridden when
15039# loading this file, other *unset* `ac_cv_foo' will be assigned the
15040# following values.
15041
15042_ACEOF
15043
15044# The following way of writing the cache mishandles newlines in values,
15045# but we know of no workaround that is simple, portable, and efficient.
15046# So, we kill variables containing newlines.
15047# Ultrix sh set writes to stderr and can't be redirected directly,
15048# and sets the high bit in the cache file unless we assign to the vars.
15049(
15050  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15051    eval ac_val=\$$ac_var
15052    case $ac_val in #(
15053    *${as_nl}*)
15054      case $ac_var in #(
15055      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15056$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15057      esac
15058      case $ac_var in #(
15059      _ | IFS | as_nl) ;; #(
15060      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15061      *) { eval $ac_var=; unset $ac_var;} ;;
15062      esac ;;
15063    esac
15064  done
15065
15066  (set) 2>&1 |
15067    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15068    *${as_nl}ac_space=\ *)
15069      # `set' does not quote correctly, so add quotes: double-quote
15070      # substitution turns \\\\ into \\, and sed turns \\ into \.
15071      sed -n \
15072	"s/'/'\\\\''/g;
15073	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15074      ;; #(
15075    *)
15076      # `set' quotes correctly as required by POSIX, so do not add quotes.
15077      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15078      ;;
15079    esac |
15080    sort
15081) |
15082  sed '
15083     /^ac_cv_env_/b end
15084     t clear
15085     :clear
15086     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15087     t end
15088     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15089     :end' >>confcache
15090if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15091  if test -w "$cache_file"; then
15092    if test "x$cache_file" != "x/dev/null"; then
15093      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15094$as_echo "$as_me: updating cache $cache_file" >&6;}
15095      if test ! -f "$cache_file" || test -h "$cache_file"; then
15096	cat confcache >"$cache_file"
15097      else
15098        case $cache_file in #(
15099        */* | ?:*)
15100	  mv -f confcache "$cache_file"$$ &&
15101	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15102        *)
15103	  mv -f confcache "$cache_file" ;;
15104	esac
15105      fi
15106    fi
15107  else
15108    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15109$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15110  fi
15111fi
15112rm -f confcache
15113
15114test "x$prefix" = xNONE && prefix=$ac_default_prefix
15115# Let make expand exec_prefix.
15116test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15117
15118DEFS=-DHAVE_CONFIG_H
15119
15120ac_libobjs=
15121ac_ltlibobjs=
15122U=
15123for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15124  # 1. Remove the extension, and $U if already installed.
15125  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15126  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15127  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15128  #    will be set to the directory where LIBOBJS objects are built.
15129  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15130  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15131done
15132LIBOBJS=$ac_libobjs
15133
15134LTLIBOBJS=$ac_ltlibobjs
15135
15136
15137if test -z "${DEVELOPMENT_VERSION_TRUE}" && test -z "${DEVELOPMENT_VERSION_FALSE}"; then
15138  as_fn_error $? "conditional \"DEVELOPMENT_VERSION\" was never defined.
15139Usually this means the macro was only invoked conditionally." "$LINENO" 5
15140fi
15141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15142$as_echo_n "checking that generated files are newer than configure... " >&6; }
15143   if test -n "$am_sleep_pid"; then
15144     # Hide warnings about reused PIDs.
15145     wait $am_sleep_pid 2>/dev/null
15146   fi
15147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15148$as_echo "done" >&6; }
15149 if test -n "$EXEEXT"; then
15150  am__EXEEXT_TRUE=
15151  am__EXEEXT_FALSE='#'
15152else
15153  am__EXEEXT_TRUE='#'
15154  am__EXEEXT_FALSE=
15155fi
15156
15157if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15158  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15159Usually this means the macro was only invoked conditionally." "$LINENO" 5
15160fi
15161if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15162  as_fn_error $? "conditional \"AMDEP\" was never defined.
15163Usually this means the macro was only invoked conditionally." "$LINENO" 5
15164fi
15165if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15166  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15167Usually this means the macro was only invoked conditionally." "$LINENO" 5
15168fi
15169if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15170  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15171Usually this means the macro was only invoked conditionally." "$LINENO" 5
15172fi
15173if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
15174  as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
15175Usually this means the macro was only invoked conditionally." "$LINENO" 5
15176fi
15177if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15178  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15179Usually this means the macro was only invoked conditionally." "$LINENO" 5
15180fi
15181if test -z "${HAVE_LATEX_TRUE}" && test -z "${HAVE_LATEX_FALSE}"; then
15182  as_fn_error $? "conditional \"HAVE_LATEX\" was never defined.
15183Usually this means the macro was only invoked conditionally." "$LINENO" 5
15184fi
15185if test -z "${BUILD_GNUPLOT_X11_TRUE}" && test -z "${BUILD_GNUPLOT_X11_FALSE}"; then
15186  as_fn_error $? "conditional \"BUILD_GNUPLOT_X11\" was never defined.
15187Usually this means the macro was only invoked conditionally." "$LINENO" 5
15188fi
15189if test -z "${BUILD_SRC_BEOS_SUBDIR_TRUE}" && test -z "${BUILD_SRC_BEOS_SUBDIR_FALSE}"; then
15190  as_fn_error $? "conditional \"BUILD_SRC_BEOS_SUBDIR\" was never defined.
15191Usually this means the macro was only invoked conditionally." "$LINENO" 5
15192fi
15193if test -z "${BUILD_PLUGIN_TRUE}" && test -z "${BUILD_PLUGIN_FALSE}"; then
15194  as_fn_error $? "conditional \"BUILD_PLUGIN\" was never defined.
15195Usually this means the macro was only invoked conditionally." "$LINENO" 5
15196fi
15197if test -z "${BUILD_LUA_TRUE}" && test -z "${BUILD_LUA_FALSE}"; then
15198  as_fn_error $? "conditional \"BUILD_LUA\" was never defined.
15199Usually this means the macro was only invoked conditionally." "$LINENO" 5
15200fi
15201if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15202  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15203Usually this means the macro was only invoked conditionally." "$LINENO" 5
15204fi
15205if test -z "${BUILD_WXWIDGETS_TRUE}" && test -z "${BUILD_WXWIDGETS_FALSE}"; then
15206  as_fn_error $? "conditional \"BUILD_WXWIDGETS\" was never defined.
15207Usually this means the macro was only invoked conditionally." "$LINENO" 5
15208fi
15209if test -z "${BUILD_BITMAP_TRUE}" && test -z "${BUILD_BITMAP_FALSE}"; then
15210  as_fn_error $? "conditional \"BUILD_BITMAP\" was never defined.
15211Usually this means the macro was only invoked conditionally." "$LINENO" 5
15212fi
15213if test -z "${BUILD_GPCAIRO_TRUE}" && test -z "${BUILD_GPCAIRO_FALSE}"; then
15214  as_fn_error $? "conditional \"BUILD_GPCAIRO\" was never defined.
15215Usually this means the macro was only invoked conditionally." "$LINENO" 5
15216fi
15217if test -z "${BUILD_QT_TRUE}" && test -z "${BUILD_QT_FALSE}"; then
15218  as_fn_error $? "conditional \"BUILD_QT\" was never defined.
15219Usually this means the macro was only invoked conditionally." "$LINENO" 5
15220fi
15221if test -z "${HAVE_LRELEASE_TRUE}" && test -z "${HAVE_LRELEASE_FALSE}"; then
15222  as_fn_error $? "conditional \"HAVE_LRELEASE\" was never defined.
15223Usually this means the macro was only invoked conditionally." "$LINENO" 5
15224fi
15225
15226: "${CONFIG_STATUS=./config.status}"
15227ac_write_fail=0
15228ac_clean_files_save=$ac_clean_files
15229ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15230{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15231$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15232as_write_fail=0
15233cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15234#! $SHELL
15235# Generated by $as_me.
15236# Run this file to recreate the current configuration.
15237# Compiler output produced by configure, useful for debugging
15238# configure, is in config.log if it exists.
15239
15240debug=false
15241ac_cs_recheck=false
15242ac_cs_silent=false
15243
15244SHELL=\${CONFIG_SHELL-$SHELL}
15245export SHELL
15246_ASEOF
15247cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15248## -------------------- ##
15249## M4sh Initialization. ##
15250## -------------------- ##
15251
15252# Be more Bourne compatible
15253DUALCASE=1; export DUALCASE # for MKS sh
15254if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15255  emulate sh
15256  NULLCMD=:
15257  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15258  # is contrary to our usage.  Disable this feature.
15259  alias -g '${1+"$@"}'='"$@"'
15260  setopt NO_GLOB_SUBST
15261else
15262  case `(set -o) 2>/dev/null` in #(
15263  *posix*) :
15264    set -o posix ;; #(
15265  *) :
15266     ;;
15267esac
15268fi
15269
15270
15271as_nl='
15272'
15273export as_nl
15274# Printing a long string crashes Solaris 7 /usr/bin/printf.
15275as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15276as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15277as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15278# Prefer a ksh shell builtin over an external printf program on Solaris,
15279# but without wasting forks for bash or zsh.
15280if test -z "$BASH_VERSION$ZSH_VERSION" \
15281    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15282  as_echo='print -r --'
15283  as_echo_n='print -rn --'
15284elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15285  as_echo='printf %s\n'
15286  as_echo_n='printf %s'
15287else
15288  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15289    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15290    as_echo_n='/usr/ucb/echo -n'
15291  else
15292    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15293    as_echo_n_body='eval
15294      arg=$1;
15295      case $arg in #(
15296      *"$as_nl"*)
15297	expr "X$arg" : "X\\(.*\\)$as_nl";
15298	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15299      esac;
15300      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15301    '
15302    export as_echo_n_body
15303    as_echo_n='sh -c $as_echo_n_body as_echo'
15304  fi
15305  export as_echo_body
15306  as_echo='sh -c $as_echo_body as_echo'
15307fi
15308
15309# The user is always right.
15310if test "${PATH_SEPARATOR+set}" != set; then
15311  PATH_SEPARATOR=:
15312  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15313    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15314      PATH_SEPARATOR=';'
15315  }
15316fi
15317
15318
15319# IFS
15320# We need space, tab and new line, in precisely that order.  Quoting is
15321# there to prevent editors from complaining about space-tab.
15322# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15323# splitting by setting IFS to empty value.)
15324IFS=" ""	$as_nl"
15325
15326# Find who we are.  Look in the path if we contain no directory separator.
15327as_myself=
15328case $0 in #((
15329  *[\\/]* ) as_myself=$0 ;;
15330  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15331for as_dir in $PATH
15332do
15333  IFS=$as_save_IFS
15334  test -z "$as_dir" && as_dir=.
15335    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15336  done
15337IFS=$as_save_IFS
15338
15339     ;;
15340esac
15341# We did not find ourselves, most probably we were run as `sh COMMAND'
15342# in which case we are not to be found in the path.
15343if test "x$as_myself" = x; then
15344  as_myself=$0
15345fi
15346if test ! -f "$as_myself"; then
15347  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15348  exit 1
15349fi
15350
15351# Unset variables that we do not need and which cause bugs (e.g. in
15352# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15353# suppresses any "Segmentation fault" message there.  '((' could
15354# trigger a bug in pdksh 5.2.14.
15355for as_var in BASH_ENV ENV MAIL MAILPATH
15356do eval test x\${$as_var+set} = xset \
15357  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15358done
15359PS1='$ '
15360PS2='> '
15361PS4='+ '
15362
15363# NLS nuisances.
15364LC_ALL=C
15365export LC_ALL
15366LANGUAGE=C
15367export LANGUAGE
15368
15369# CDPATH.
15370(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15371
15372
15373# as_fn_error STATUS ERROR [LINENO LOG_FD]
15374# ----------------------------------------
15375# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15376# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15377# script with STATUS, using 1 if that was 0.
15378as_fn_error ()
15379{
15380  as_status=$1; test $as_status -eq 0 && as_status=1
15381  if test "$4"; then
15382    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15383    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15384  fi
15385  $as_echo "$as_me: error: $2" >&2
15386  as_fn_exit $as_status
15387} # as_fn_error
15388
15389
15390# as_fn_set_status STATUS
15391# -----------------------
15392# Set $? to STATUS, without forking.
15393as_fn_set_status ()
15394{
15395  return $1
15396} # as_fn_set_status
15397
15398# as_fn_exit STATUS
15399# -----------------
15400# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15401as_fn_exit ()
15402{
15403  set +e
15404  as_fn_set_status $1
15405  exit $1
15406} # as_fn_exit
15407
15408# as_fn_unset VAR
15409# ---------------
15410# Portably unset VAR.
15411as_fn_unset ()
15412{
15413  { eval $1=; unset $1;}
15414}
15415as_unset=as_fn_unset
15416# as_fn_append VAR VALUE
15417# ----------------------
15418# Append the text in VALUE to the end of the definition contained in VAR. Take
15419# advantage of any shell optimizations that allow amortized linear growth over
15420# repeated appends, instead of the typical quadratic growth present in naive
15421# implementations.
15422if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15423  eval 'as_fn_append ()
15424  {
15425    eval $1+=\$2
15426  }'
15427else
15428  as_fn_append ()
15429  {
15430    eval $1=\$$1\$2
15431  }
15432fi # as_fn_append
15433
15434# as_fn_arith ARG...
15435# ------------------
15436# Perform arithmetic evaluation on the ARGs, and store the result in the
15437# global $as_val. Take advantage of shells that can avoid forks. The arguments
15438# must be portable across $(()) and expr.
15439if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15440  eval 'as_fn_arith ()
15441  {
15442    as_val=$(( $* ))
15443  }'
15444else
15445  as_fn_arith ()
15446  {
15447    as_val=`expr "$@" || test $? -eq 1`
15448  }
15449fi # as_fn_arith
15450
15451
15452if expr a : '\(a\)' >/dev/null 2>&1 &&
15453   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15454  as_expr=expr
15455else
15456  as_expr=false
15457fi
15458
15459if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15460  as_basename=basename
15461else
15462  as_basename=false
15463fi
15464
15465if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15466  as_dirname=dirname
15467else
15468  as_dirname=false
15469fi
15470
15471as_me=`$as_basename -- "$0" ||
15472$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15473	 X"$0" : 'X\(//\)$' \| \
15474	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15475$as_echo X/"$0" |
15476    sed '/^.*\/\([^/][^/]*\)\/*$/{
15477	    s//\1/
15478	    q
15479	  }
15480	  /^X\/\(\/\/\)$/{
15481	    s//\1/
15482	    q
15483	  }
15484	  /^X\/\(\/\).*/{
15485	    s//\1/
15486	    q
15487	  }
15488	  s/.*/./; q'`
15489
15490# Avoid depending upon Character Ranges.
15491as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15492as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15493as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15494as_cr_digits='0123456789'
15495as_cr_alnum=$as_cr_Letters$as_cr_digits
15496
15497ECHO_C= ECHO_N= ECHO_T=
15498case `echo -n x` in #(((((
15499-n*)
15500  case `echo 'xy\c'` in
15501  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15502  xy)  ECHO_C='\c';;
15503  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15504       ECHO_T='	';;
15505  esac;;
15506*)
15507  ECHO_N='-n';;
15508esac
15509
15510rm -f conf$$ conf$$.exe conf$$.file
15511if test -d conf$$.dir; then
15512  rm -f conf$$.dir/conf$$.file
15513else
15514  rm -f conf$$.dir
15515  mkdir conf$$.dir 2>/dev/null
15516fi
15517if (echo >conf$$.file) 2>/dev/null; then
15518  if ln -s conf$$.file conf$$ 2>/dev/null; then
15519    as_ln_s='ln -s'
15520    # ... but there are two gotchas:
15521    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15522    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15523    # In both cases, we have to default to `cp -pR'.
15524    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15525      as_ln_s='cp -pR'
15526  elif ln conf$$.file conf$$ 2>/dev/null; then
15527    as_ln_s=ln
15528  else
15529    as_ln_s='cp -pR'
15530  fi
15531else
15532  as_ln_s='cp -pR'
15533fi
15534rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15535rmdir conf$$.dir 2>/dev/null
15536
15537
15538# as_fn_mkdir_p
15539# -------------
15540# Create "$as_dir" as a directory, including parents if necessary.
15541as_fn_mkdir_p ()
15542{
15543
15544  case $as_dir in #(
15545  -*) as_dir=./$as_dir;;
15546  esac
15547  test -d "$as_dir" || eval $as_mkdir_p || {
15548    as_dirs=
15549    while :; do
15550      case $as_dir in #(
15551      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15552      *) as_qdir=$as_dir;;
15553      esac
15554      as_dirs="'$as_qdir' $as_dirs"
15555      as_dir=`$as_dirname -- "$as_dir" ||
15556$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15557	 X"$as_dir" : 'X\(//\)[^/]' \| \
15558	 X"$as_dir" : 'X\(//\)$' \| \
15559	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15560$as_echo X"$as_dir" |
15561    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15562	    s//\1/
15563	    q
15564	  }
15565	  /^X\(\/\/\)[^/].*/{
15566	    s//\1/
15567	    q
15568	  }
15569	  /^X\(\/\/\)$/{
15570	    s//\1/
15571	    q
15572	  }
15573	  /^X\(\/\).*/{
15574	    s//\1/
15575	    q
15576	  }
15577	  s/.*/./; q'`
15578      test -d "$as_dir" && break
15579    done
15580    test -z "$as_dirs" || eval "mkdir $as_dirs"
15581  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15582
15583
15584} # as_fn_mkdir_p
15585if mkdir -p . 2>/dev/null; then
15586  as_mkdir_p='mkdir -p "$as_dir"'
15587else
15588  test -d ./-p && rmdir ./-p
15589  as_mkdir_p=false
15590fi
15591
15592
15593# as_fn_executable_p FILE
15594# -----------------------
15595# Test if FILE is an executable regular file.
15596as_fn_executable_p ()
15597{
15598  test -f "$1" && test -x "$1"
15599} # as_fn_executable_p
15600as_test_x='test -x'
15601as_executable_p=as_fn_executable_p
15602
15603# Sed expression to map a string onto a valid CPP name.
15604as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15605
15606# Sed expression to map a string onto a valid variable name.
15607as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15608
15609
15610exec 6>&1
15611## ----------------------------------- ##
15612## Main body of $CONFIG_STATUS script. ##
15613## ----------------------------------- ##
15614_ASEOF
15615test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15616
15617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15618# Save the log message, to keep $0 and so on meaningful, and to
15619# report actual input values of CONFIG_FILES etc. instead of their
15620# values after options handling.
15621ac_log="
15622This file was extended by gnuplot $as_me 5.4.1, which was
15623generated by GNU Autoconf 2.69.  Invocation command line was
15624
15625  CONFIG_FILES    = $CONFIG_FILES
15626  CONFIG_HEADERS  = $CONFIG_HEADERS
15627  CONFIG_LINKS    = $CONFIG_LINKS
15628  CONFIG_COMMANDS = $CONFIG_COMMANDS
15629  $ $0 $@
15630
15631on `(hostname || uname -n) 2>/dev/null | sed 1q`
15632"
15633
15634_ACEOF
15635
15636case $ac_config_files in *"
15637"*) set x $ac_config_files; shift; ac_config_files=$*;;
15638esac
15639
15640case $ac_config_headers in *"
15641"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15642esac
15643
15644
15645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15646# Files that config.status was made for.
15647config_files="`echo $ac_config_files`"
15648config_headers="`echo $ac_config_headers`"
15649config_commands="`echo $ac_config_commands`"
15650
15651_ACEOF
15652
15653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15654ac_cs_usage="\
15655\`$as_me' instantiates files and other configuration actions
15656from templates according to the current configuration.  Unless the files
15657and actions are specified as TAGs, all are instantiated by default.
15658
15659Usage: $0 [OPTION]... [TAG]...
15660
15661  -h, --help       print this help, then exit
15662  -V, --version    print version number and configuration settings, then exit
15663      --config     print configuration, then exit
15664  -q, --quiet, --silent
15665                   do not print progress messages
15666  -d, --debug      don't remove temporary files
15667      --recheck    update $as_me by reconfiguring in the same conditions
15668      --file=FILE[:TEMPLATE]
15669                   instantiate the configuration file FILE
15670      --header=FILE[:TEMPLATE]
15671                   instantiate the configuration header FILE
15672
15673Configuration files:
15674$config_files
15675
15676Configuration headers:
15677$config_headers
15678
15679Configuration commands:
15680$config_commands
15681
15682Report bugs to the package provider."
15683
15684_ACEOF
15685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15686ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15687ac_cs_version="\\
15688gnuplot config.status 5.4.1
15689configured by $0, generated by GNU Autoconf 2.69,
15690  with options \\"\$ac_cs_config\\"
15691
15692Copyright (C) 2012 Free Software Foundation, Inc.
15693This config.status script is free software; the Free Software Foundation
15694gives unlimited permission to copy, distribute and modify it."
15695
15696ac_pwd='$ac_pwd'
15697srcdir='$srcdir'
15698INSTALL='$INSTALL'
15699MKDIR_P='$MKDIR_P'
15700AWK='$AWK'
15701test -n "\$AWK" || AWK=awk
15702_ACEOF
15703
15704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15705# The default lists apply if the user does not specify any file.
15706ac_need_defaults=:
15707while test $# != 0
15708do
15709  case $1 in
15710  --*=?*)
15711    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15712    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15713    ac_shift=:
15714    ;;
15715  --*=)
15716    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15717    ac_optarg=
15718    ac_shift=:
15719    ;;
15720  *)
15721    ac_option=$1
15722    ac_optarg=$2
15723    ac_shift=shift
15724    ;;
15725  esac
15726
15727  case $ac_option in
15728  # Handling of the options.
15729  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15730    ac_cs_recheck=: ;;
15731  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15732    $as_echo "$ac_cs_version"; exit ;;
15733  --config | --confi | --conf | --con | --co | --c )
15734    $as_echo "$ac_cs_config"; exit ;;
15735  --debug | --debu | --deb | --de | --d | -d )
15736    debug=: ;;
15737  --file | --fil | --fi | --f )
15738    $ac_shift
15739    case $ac_optarg in
15740    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15741    '') as_fn_error $? "missing file argument" ;;
15742    esac
15743    as_fn_append CONFIG_FILES " '$ac_optarg'"
15744    ac_need_defaults=false;;
15745  --header | --heade | --head | --hea )
15746    $ac_shift
15747    case $ac_optarg in
15748    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15749    esac
15750    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15751    ac_need_defaults=false;;
15752  --he | --h)
15753    # Conflict between --help and --header
15754    as_fn_error $? "ambiguous option: \`$1'
15755Try \`$0 --help' for more information.";;
15756  --help | --hel | -h )
15757    $as_echo "$ac_cs_usage"; exit ;;
15758  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15759  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15760    ac_cs_silent=: ;;
15761
15762  # This is an error.
15763  -*) as_fn_error $? "unrecognized option: \`$1'
15764Try \`$0 --help' for more information." ;;
15765
15766  *) as_fn_append ac_config_targets " $1"
15767     ac_need_defaults=false ;;
15768
15769  esac
15770  shift
15771done
15772
15773ac_configure_extra_args=
15774
15775if $ac_cs_silent; then
15776  exec 6>/dev/null
15777  ac_configure_extra_args="$ac_configure_extra_args --silent"
15778fi
15779
15780_ACEOF
15781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15782if \$ac_cs_recheck; then
15783  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15784  shift
15785  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15786  CONFIG_SHELL='$SHELL'
15787  export CONFIG_SHELL
15788  exec "\$@"
15789fi
15790
15791_ACEOF
15792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15793exec 5>>config.log
15794{
15795  echo
15796  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15797## Running $as_me. ##
15798_ASBOX
15799  $as_echo "$ac_log"
15800} >&5
15801
15802_ACEOF
15803cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15804#
15805# INIT-COMMANDS
15806#
15807AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15808
15809_ACEOF
15810
15811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15812
15813# Handling of arguments.
15814for ac_config_target in $ac_config_targets
15815do
15816  case $ac_config_target in
15817    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
15818    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15819    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15820    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
15821    "demo/Makefile") CONFIG_FILES="$CONFIG_FILES demo/Makefile" ;;
15822    "demo/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES demo/plugin/Makefile" ;;
15823    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
15824    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
15825    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15826    "share/Makefile") CONFIG_FILES="$CONFIG_FILES share/Makefile" ;;
15827    "share/LaTeX/Makefile") CONFIG_FILES="$CONFIG_FILES share/LaTeX/Makefile" ;;
15828    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15829    "src/beos/Makefile") CONFIG_FILES="$CONFIG_FILES src/beos/Makefile" ;;
15830    "src/wxterminal/Makefile") CONFIG_FILES="$CONFIG_FILES src/wxterminal/Makefile" ;;
15831    "src/qtterminal/Makefile") CONFIG_FILES="$CONFIG_FILES src/qtterminal/Makefile" ;;
15832    "term/Makefile") CONFIG_FILES="$CONFIG_FILES term/Makefile" ;;
15833    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15834
15835  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15836  esac
15837done
15838
15839
15840# If the user did not use the arguments to specify the items to instantiate,
15841# then the envvar interface is used.  Set only those that are not.
15842# We use the long form for the default assignment because of an extremely
15843# bizarre bug on SunOS 4.1.3.
15844if $ac_need_defaults; then
15845  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15846  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15847  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15848fi
15849
15850# Have a temporary directory for convenience.  Make it in the build tree
15851# simply because there is no reason against having it here, and in addition,
15852# creating and moving files from /tmp can sometimes cause problems.
15853# Hook for its removal unless debugging.
15854# Note that there is a small window in which the directory will not be cleaned:
15855# after its creation but before its name has been assigned to `$tmp'.
15856$debug ||
15857{
15858  tmp= ac_tmp=
15859  trap 'exit_status=$?
15860  : "${ac_tmp:=$tmp}"
15861  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15862' 0
15863  trap 'as_fn_exit 1' 1 2 13 15
15864}
15865# Create a (secure) tmp directory for tmp files.
15866
15867{
15868  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15869  test -d "$tmp"
15870}  ||
15871{
15872  tmp=./conf$$-$RANDOM
15873  (umask 077 && mkdir "$tmp")
15874} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15875ac_tmp=$tmp
15876
15877# Set up the scripts for CONFIG_FILES section.
15878# No need to generate them if there are no CONFIG_FILES.
15879# This happens for instance with `./config.status config.h'.
15880if test -n "$CONFIG_FILES"; then
15881
15882
15883ac_cr=`echo X | tr X '\015'`
15884# On cygwin, bash can eat \r inside `` if the user requested igncr.
15885# But we know of no other shell where ac_cr would be empty at this
15886# point, so we can use a bashism as a fallback.
15887if test "x$ac_cr" = x; then
15888  eval ac_cr=\$\'\\r\'
15889fi
15890ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15891if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15892  ac_cs_awk_cr='\\r'
15893else
15894  ac_cs_awk_cr=$ac_cr
15895fi
15896
15897echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15898_ACEOF
15899
15900
15901{
15902  echo "cat >conf$$subs.awk <<_ACEOF" &&
15903  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15904  echo "_ACEOF"
15905} >conf$$subs.sh ||
15906  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15907ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15908ac_delim='%!_!# '
15909for ac_last_try in false false false false false :; do
15910  . ./conf$$subs.sh ||
15911    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15912
15913  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15914  if test $ac_delim_n = $ac_delim_num; then
15915    break
15916  elif $ac_last_try; then
15917    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15918  else
15919    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15920  fi
15921done
15922rm -f conf$$subs.sh
15923
15924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15925cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15926_ACEOF
15927sed -n '
15928h
15929s/^/S["/; s/!.*/"]=/
15930p
15931g
15932s/^[^!]*!//
15933:repl
15934t repl
15935s/'"$ac_delim"'$//
15936t delim
15937:nl
15938h
15939s/\(.\{148\}\)..*/\1/
15940t more1
15941s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15942p
15943n
15944b repl
15945:more1
15946s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15947p
15948g
15949s/.\{148\}//
15950t nl
15951:delim
15952h
15953s/\(.\{148\}\)..*/\1/
15954t more2
15955s/["\\]/\\&/g; s/^/"/; s/$/"/
15956p
15957b
15958:more2
15959s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15960p
15961g
15962s/.\{148\}//
15963t delim
15964' <conf$$subs.awk | sed '
15965/^[^""]/{
15966  N
15967  s/\n//
15968}
15969' >>$CONFIG_STATUS || ac_write_fail=1
15970rm -f conf$$subs.awk
15971cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15972_ACAWK
15973cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15974  for (key in S) S_is_set[key] = 1
15975  FS = ""
15976
15977}
15978{
15979  line = $ 0
15980  nfields = split(line, field, "@")
15981  substed = 0
15982  len = length(field[1])
15983  for (i = 2; i < nfields; i++) {
15984    key = field[i]
15985    keylen = length(key)
15986    if (S_is_set[key]) {
15987      value = S[key]
15988      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15989      len += length(value) + length(field[++i])
15990      substed = 1
15991    } else
15992      len += 1 + keylen
15993  }
15994
15995  print line
15996}
15997
15998_ACAWK
15999_ACEOF
16000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16001if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16002  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16003else
16004  cat
16005fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16006  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16007_ACEOF
16008
16009# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16010# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16011# trailing colons and then remove the whole line if VPATH becomes empty
16012# (actually we leave an empty line to preserve line numbers).
16013if test "x$srcdir" = x.; then
16014  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16015h
16016s///
16017s/^/:/
16018s/[	 ]*$/:/
16019s/:\$(srcdir):/:/g
16020s/:\${srcdir}:/:/g
16021s/:@srcdir@:/:/g
16022s/^:*//
16023s/:*$//
16024x
16025s/\(=[	 ]*\).*/\1/
16026G
16027s/\n//
16028s/^[^=]*=[	 ]*$//
16029}'
16030fi
16031
16032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16033fi # test -n "$CONFIG_FILES"
16034
16035# Set up the scripts for CONFIG_HEADERS section.
16036# No need to generate them if there are no CONFIG_HEADERS.
16037# This happens for instance with `./config.status Makefile'.
16038if test -n "$CONFIG_HEADERS"; then
16039cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16040BEGIN {
16041_ACEOF
16042
16043# Transform confdefs.h into an awk script `defines.awk', embedded as
16044# here-document in config.status, that substitutes the proper values into
16045# config.h.in to produce config.h.
16046
16047# Create a delimiter string that does not exist in confdefs.h, to ease
16048# handling of long lines.
16049ac_delim='%!_!# '
16050for ac_last_try in false false :; do
16051  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16052  if test -z "$ac_tt"; then
16053    break
16054  elif $ac_last_try; then
16055    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16056  else
16057    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16058  fi
16059done
16060
16061# For the awk script, D is an array of macro values keyed by name,
16062# likewise P contains macro parameters if any.  Preserve backslash
16063# newline sequences.
16064
16065ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16066sed -n '
16067s/.\{148\}/&'"$ac_delim"'/g
16068t rset
16069:rset
16070s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16071t def
16072d
16073:def
16074s/\\$//
16075t bsnl
16076s/["\\]/\\&/g
16077s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16078D["\1"]=" \3"/p
16079s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16080d
16081:bsnl
16082s/["\\]/\\&/g
16083s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16084D["\1"]=" \3\\\\\\n"\\/p
16085t cont
16086s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16087t cont
16088d
16089:cont
16090n
16091s/.\{148\}/&'"$ac_delim"'/g
16092t clear
16093:clear
16094s/\\$//
16095t bsnlc
16096s/["\\]/\\&/g; s/^/"/; s/$/"/p
16097d
16098:bsnlc
16099s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16100b cont
16101' <confdefs.h | sed '
16102s/'"$ac_delim"'/"\\\
16103"/g' >>$CONFIG_STATUS || ac_write_fail=1
16104
16105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16106  for (key in D) D_is_set[key] = 1
16107  FS = ""
16108}
16109/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16110  line = \$ 0
16111  split(line, arg, " ")
16112  if (arg[1] == "#") {
16113    defundef = arg[2]
16114    mac1 = arg[3]
16115  } else {
16116    defundef = substr(arg[1], 2)
16117    mac1 = arg[2]
16118  }
16119  split(mac1, mac2, "(") #)
16120  macro = mac2[1]
16121  prefix = substr(line, 1, index(line, defundef) - 1)
16122  if (D_is_set[macro]) {
16123    # Preserve the white space surrounding the "#".
16124    print prefix "define", macro P[macro] D[macro]
16125    next
16126  } else {
16127    # Replace #undef with comments.  This is necessary, for example,
16128    # in the case of _POSIX_SOURCE, which is predefined and required
16129    # on some systems where configure will not decide to define it.
16130    if (defundef == "undef") {
16131      print "/*", prefix defundef, macro, "*/"
16132      next
16133    }
16134  }
16135}
16136{ print }
16137_ACAWK
16138_ACEOF
16139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16140  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16141fi # test -n "$CONFIG_HEADERS"
16142
16143
16144eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16145shift
16146for ac_tag
16147do
16148  case $ac_tag in
16149  :[FHLC]) ac_mode=$ac_tag; continue;;
16150  esac
16151  case $ac_mode$ac_tag in
16152  :[FHL]*:*);;
16153  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16154  :[FH]-) ac_tag=-:-;;
16155  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16156  esac
16157  ac_save_IFS=$IFS
16158  IFS=:
16159  set x $ac_tag
16160  IFS=$ac_save_IFS
16161  shift
16162  ac_file=$1
16163  shift
16164
16165  case $ac_mode in
16166  :L) ac_source=$1;;
16167  :[FH])
16168    ac_file_inputs=
16169    for ac_f
16170    do
16171      case $ac_f in
16172      -) ac_f="$ac_tmp/stdin";;
16173      *) # Look for the file first in the build tree, then in the source tree
16174	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16175	 # because $ac_f cannot contain `:'.
16176	 test -f "$ac_f" ||
16177	   case $ac_f in
16178	   [\\/$]*) false;;
16179	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16180	   esac ||
16181	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16182      esac
16183      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16184      as_fn_append ac_file_inputs " '$ac_f'"
16185    done
16186
16187    # Let's still pretend it is `configure' which instantiates (i.e., don't
16188    # use $as_me), people would be surprised to read:
16189    #    /* config.h.  Generated by config.status.  */
16190    configure_input='Generated from '`
16191	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16192	`' by configure.'
16193    if test x"$ac_file" != x-; then
16194      configure_input="$ac_file.  $configure_input"
16195      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16196$as_echo "$as_me: creating $ac_file" >&6;}
16197    fi
16198    # Neutralize special characters interpreted by sed in replacement strings.
16199    case $configure_input in #(
16200    *\&* | *\|* | *\\* )
16201       ac_sed_conf_input=`$as_echo "$configure_input" |
16202       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16203    *) ac_sed_conf_input=$configure_input;;
16204    esac
16205
16206    case $ac_tag in
16207    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16208      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16209    esac
16210    ;;
16211  esac
16212
16213  ac_dir=`$as_dirname -- "$ac_file" ||
16214$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16215	 X"$ac_file" : 'X\(//\)[^/]' \| \
16216	 X"$ac_file" : 'X\(//\)$' \| \
16217	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16218$as_echo X"$ac_file" |
16219    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16220	    s//\1/
16221	    q
16222	  }
16223	  /^X\(\/\/\)[^/].*/{
16224	    s//\1/
16225	    q
16226	  }
16227	  /^X\(\/\/\)$/{
16228	    s//\1/
16229	    q
16230	  }
16231	  /^X\(\/\).*/{
16232	    s//\1/
16233	    q
16234	  }
16235	  s/.*/./; q'`
16236  as_dir="$ac_dir"; as_fn_mkdir_p
16237  ac_builddir=.
16238
16239case "$ac_dir" in
16240.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16241*)
16242  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16243  # A ".." for each directory in $ac_dir_suffix.
16244  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16245  case $ac_top_builddir_sub in
16246  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16247  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16248  esac ;;
16249esac
16250ac_abs_top_builddir=$ac_pwd
16251ac_abs_builddir=$ac_pwd$ac_dir_suffix
16252# for backward compatibility:
16253ac_top_builddir=$ac_top_build_prefix
16254
16255case $srcdir in
16256  .)  # We are building in place.
16257    ac_srcdir=.
16258    ac_top_srcdir=$ac_top_builddir_sub
16259    ac_abs_top_srcdir=$ac_pwd ;;
16260  [\\/]* | ?:[\\/]* )  # Absolute name.
16261    ac_srcdir=$srcdir$ac_dir_suffix;
16262    ac_top_srcdir=$srcdir
16263    ac_abs_top_srcdir=$srcdir ;;
16264  *) # Relative name.
16265    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16266    ac_top_srcdir=$ac_top_build_prefix$srcdir
16267    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16268esac
16269ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16270
16271
16272  case $ac_mode in
16273  :F)
16274  #
16275  # CONFIG_FILE
16276  #
16277
16278  case $INSTALL in
16279  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16280  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16281  esac
16282  ac_MKDIR_P=$MKDIR_P
16283  case $MKDIR_P in
16284  [\\/$]* | ?:[\\/]* ) ;;
16285  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16286  esac
16287_ACEOF
16288
16289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16290# If the template does not know about datarootdir, expand it.
16291# FIXME: This hack should be removed a few years after 2.60.
16292ac_datarootdir_hack=; ac_datarootdir_seen=
16293ac_sed_dataroot='
16294/datarootdir/ {
16295  p
16296  q
16297}
16298/@datadir@/p
16299/@docdir@/p
16300/@infodir@/p
16301/@localedir@/p
16302/@mandir@/p'
16303case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16304*datarootdir*) ac_datarootdir_seen=yes;;
16305*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16306  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16307$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16308_ACEOF
16309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16310  ac_datarootdir_hack='
16311  s&@datadir@&$datadir&g
16312  s&@docdir@&$docdir&g
16313  s&@infodir@&$infodir&g
16314  s&@localedir@&$localedir&g
16315  s&@mandir@&$mandir&g
16316  s&\\\${datarootdir}&$datarootdir&g' ;;
16317esac
16318_ACEOF
16319
16320# Neutralize VPATH when `$srcdir' = `.'.
16321# Shell code in configure.ac might set extrasub.
16322# FIXME: do we really want to maintain this feature?
16323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16324ac_sed_extra="$ac_vpsub
16325$extrasub
16326_ACEOF
16327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16328:t
16329/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16330s|@configure_input@|$ac_sed_conf_input|;t t
16331s&@top_builddir@&$ac_top_builddir_sub&;t t
16332s&@top_build_prefix@&$ac_top_build_prefix&;t t
16333s&@srcdir@&$ac_srcdir&;t t
16334s&@abs_srcdir@&$ac_abs_srcdir&;t t
16335s&@top_srcdir@&$ac_top_srcdir&;t t
16336s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16337s&@builddir@&$ac_builddir&;t t
16338s&@abs_builddir@&$ac_abs_builddir&;t t
16339s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16340s&@INSTALL@&$ac_INSTALL&;t t
16341s&@MKDIR_P@&$ac_MKDIR_P&;t t
16342$ac_datarootdir_hack
16343"
16344eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16345  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16346
16347test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16348  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16349  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16350      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16351  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16352which seems to be undefined.  Please make sure it is defined" >&5
16353$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16354which seems to be undefined.  Please make sure it is defined" >&2;}
16355
16356  rm -f "$ac_tmp/stdin"
16357  case $ac_file in
16358  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16359  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16360  esac \
16361  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16362 ;;
16363  :H)
16364  #
16365  # CONFIG_HEADER
16366  #
16367  if test x"$ac_file" != x-; then
16368    {
16369      $as_echo "/* $configure_input  */" \
16370      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16371    } >"$ac_tmp/config.h" \
16372      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16373    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16374      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16375$as_echo "$as_me: $ac_file is unchanged" >&6;}
16376    else
16377      rm -f "$ac_file"
16378      mv "$ac_tmp/config.h" "$ac_file" \
16379	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16380    fi
16381  else
16382    $as_echo "/* $configure_input  */" \
16383      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16384      || as_fn_error $? "could not create -" "$LINENO" 5
16385  fi
16386# Compute "$ac_file"'s index in $config_headers.
16387_am_arg="$ac_file"
16388_am_stamp_count=1
16389for _am_header in $config_headers :; do
16390  case $_am_header in
16391    $_am_arg | $_am_arg:* )
16392      break ;;
16393    * )
16394      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16395  esac
16396done
16397echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16398$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16399	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16400	 X"$_am_arg" : 'X\(//\)$' \| \
16401	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16402$as_echo X"$_am_arg" |
16403    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16404	    s//\1/
16405	    q
16406	  }
16407	  /^X\(\/\/\)[^/].*/{
16408	    s//\1/
16409	    q
16410	  }
16411	  /^X\(\/\/\)$/{
16412	    s//\1/
16413	    q
16414	  }
16415	  /^X\(\/\).*/{
16416	    s//\1/
16417	    q
16418	  }
16419	  s/.*/./; q'`/stamp-h$_am_stamp_count
16420 ;;
16421
16422  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16423$as_echo "$as_me: executing $ac_file commands" >&6;}
16424 ;;
16425  esac
16426
16427
16428  case $ac_file$ac_mode in
16429    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16430  # Older Autoconf quotes --file arguments for eval, but not when files
16431  # are listed without --file.  Let's play safe and only enable the eval
16432  # if we detect the quoting.
16433  # TODO: see whether this extra hack can be removed once we start
16434  # requiring Autoconf 2.70 or later.
16435  case $CONFIG_FILES in #(
16436  *\'*) :
16437    eval set x "$CONFIG_FILES" ;; #(
16438  *) :
16439    set x $CONFIG_FILES ;; #(
16440  *) :
16441     ;;
16442esac
16443  shift
16444  # Used to flag and report bootstrapping failures.
16445  am_rc=0
16446  for am_mf
16447  do
16448    # Strip MF so we end up with the name of the file.
16449    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
16450    # Check whether this is an Automake generated Makefile which includes
16451    # dependency-tracking related rules and includes.
16452    # Grep'ing the whole file directly is not great: AIX grep has a line
16453    # limit of 2048, but all sed's we know have understand at least 4000.
16454    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16455      || continue
16456    am_dirpart=`$as_dirname -- "$am_mf" ||
16457$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16458	 X"$am_mf" : 'X\(//\)[^/]' \| \
16459	 X"$am_mf" : 'X\(//\)$' \| \
16460	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16461$as_echo X"$am_mf" |
16462    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16463	    s//\1/
16464	    q
16465	  }
16466	  /^X\(\/\/\)[^/].*/{
16467	    s//\1/
16468	    q
16469	  }
16470	  /^X\(\/\/\)$/{
16471	    s//\1/
16472	    q
16473	  }
16474	  /^X\(\/\).*/{
16475	    s//\1/
16476	    q
16477	  }
16478	  s/.*/./; q'`
16479    am_filepart=`$as_basename -- "$am_mf" ||
16480$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16481	 X"$am_mf" : 'X\(//\)$' \| \
16482	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16483$as_echo X/"$am_mf" |
16484    sed '/^.*\/\([^/][^/]*\)\/*$/{
16485	    s//\1/
16486	    q
16487	  }
16488	  /^X\/\(\/\/\)$/{
16489	    s//\1/
16490	    q
16491	  }
16492	  /^X\/\(\/\).*/{
16493	    s//\1/
16494	    q
16495	  }
16496	  s/.*/./; q'`
16497    { echo "$as_me:$LINENO: cd "$am_dirpart" \
16498      && sed -e '/# am--include-marker/d' "$am_filepart" \
16499        | $MAKE -f - am--depfiles" >&5
16500   (cd "$am_dirpart" \
16501      && sed -e '/# am--include-marker/d' "$am_filepart" \
16502        | $MAKE -f - am--depfiles) >&5 2>&5
16503   ac_status=$?
16504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505   (exit $ac_status); } || am_rc=$?
16506  done
16507  if test $am_rc -ne 0; then
16508    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16510as_fn_error $? "Something went wrong bootstrapping makefile fragments
16511    for automatic dependency tracking.  Try re-running configure with the
16512    '--disable-dependency-tracking' option to at least be able to build
16513    the package (albeit without support for automatic dependency tracking).
16514See \`config.log' for more details" "$LINENO" 5; }
16515  fi
16516  { am_dirpart=; unset am_dirpart;}
16517  { am_filepart=; unset am_filepart;}
16518  { am_mf=; unset am_mf;}
16519  { am_rc=; unset am_rc;}
16520  rm -f conftest-deps.mk
16521}
16522 ;;
16523    "default":C) test -z "$CONFIG_HEADERS" || echo timestamp >stamp-h ;;
16524
16525  esac
16526done # for ac_tag
16527
16528
16529as_fn_exit 0
16530_ACEOF
16531ac_clean_files=$ac_clean_files_save
16532
16533test $ac_write_fail = 0 ||
16534  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16535
16536
16537# configure is writing to config.log, and then calls config.status.
16538# config.status does its own redirection, appending to config.log.
16539# Unfortunately, on DOS this fails, as config.log is still kept open
16540# by configure, so config.status won't be able to write to it; its
16541# output is simply discarded.  So we exec the FD to /dev/null,
16542# effectively closing config.log, so it can be properly (re)opened and
16543# appended to by config.status.  When coming back to configure, we
16544# need to make the FD available again.
16545if test "$no_create" != yes; then
16546  ac_cs_success=:
16547  ac_config_status_args=
16548  test "$silent" = yes &&
16549    ac_config_status_args="$ac_config_status_args --quiet"
16550  exec 5>/dev/null
16551  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16552  exec 5>>config.log
16553  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16554  # would make configure fail if this is the last instruction.
16555  $ac_cs_success || as_fn_exit 1
16556fi
16557if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16558  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16559$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16560fi
16561
16562
16563
16564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16565$as_echo "" >&6; }
16566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Configuration summary for $PACKAGE $VERSION:" >&5
16567$as_echo "** Configuration summary for $PACKAGE $VERSION:" >&6; }
16568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16569$as_echo "" >&6; }
16570
16571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gnuplot will be compiled with the following terminals:" >&5
16572$as_echo "gnuplot will be compiled with the following terminals:" >&6; }
16573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16574$as_echo "" >&6; }
16575
16576{ $as_echo "$as_me:${as_lineno-$LINENO}: result:   Standalone terminals: yes (included by default)" >&5
16577$as_echo "  Standalone terminals: yes (included by default)" >&6; }
16578{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     canvas, cgm, context, dumb, dxf, emf, epslatex," >&5
16579$as_echo "    canvas, cgm, context, dumb, dxf, emf, epslatex," >&6; }
16580{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     fig, hpgl, metafont, metapost, pcl5, postscript," >&5
16581$as_echo "    fig, hpgl, metafont, metapost, pcl5, postscript," >&6; }
16582{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     pict2e, pslatex, pstex, pstricks, svg, texdraw, tkcanvas" >&5
16583$as_echo "    pict2e, pslatex, pstex, pstricks, svg, texdraw, tkcanvas" >&6; }
16584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16585$as_echo "" >&6; }
16586
16587if test "$with_bitmap_terminals" == yes; then
16588  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   dot-matrix terminals: yes ( --without-bitmap-terminals to disable)" >&5
16589$as_echo "  dot-matrix terminals: yes ( --without-bitmap-terminals to disable)" >&6; }
16590else
16591  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   dot-matrix terminals: no (use --with-bitmap-terminals to enable)" >&5
16592$as_echo "  dot-matrix terminals: no (use --with-bitmap-terminals to enable)" >&6; }
16593fi
16594{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     epson, nec, okidata, tandy, and seiko dp414 printers" >&5
16595$as_echo "    epson, nec, okidata, tandy, and seiko dp414 printers" >&6; }
16596{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     hp500c, hpdj, hpljii, hppj, pbm, sixel, starc" >&5
16597$as_echo "    hp500c, hpdj, hpljii, hppj, pbm, sixel, starc" >&6; }
16598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16599$as_echo "" >&6; }
16600
16601if test "$with_tektronix" == no; then
16602  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   tektronix terminal emulators: no ( --with-tektronix to enable)" >&5
16603$as_echo "  tektronix terminal emulators: no ( --with-tektronix to enable)" >&6; }
16604else
16605  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   tektronix terminal emulators: yes ( --without-tektronix to disable)" >&5
16606$as_echo "  tektronix terminal emulators: yes ( --without-tektronix to disable)" >&6; }
16607fi
16608{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     tek410x tek40 vttek xterm kc_tek40 km_tek40 selanar sixeltek bitgraph" >&5
16609$as_echo "    tek410x tek40 vttek xterm kc_tek40 km_tek40 selanar sixeltek bitgraph" >&6; }
16610{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     note: not needed for sixel graphics output to vt100-series emulators" >&5
16611$as_echo "    note: not needed for sixel graphics output to vt100-series emulators" >&6; }
16612
16613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16614$as_echo "" >&6; }
16615{ $as_echo "$as_me:${as_lineno-$LINENO}: result:   Platform-specific, legacy, or specialized terminals omitted by default:" >&5
16616$as_echo "  Platform-specific, legacy, or specialized terminals omitted by default:" >&6; }
16617
16618if test "$GGI_SUPPORT" = yes; then
16619  if test "$ac_cv_header_ggi_xmi_h" = yes; then
16620    { $as_echo "$as_me:${as_lineno-$LINENO}: result:     ggi terminal: yes (with pm3d support)" >&5
16621$as_echo "    ggi terminal: yes (with pm3d support)" >&6; }
16622  else
16623    { $as_echo "$as_me:${as_lineno-$LINENO}: result:     ggi terminal: yes (no pm3d support, requires ggi xmi library)" >&5
16624$as_echo "    ggi terminal: yes (no pm3d support, requires ggi xmi library)" >&6; }
16625  fi
16626else
16627  { $as_echo "$as_me:${as_lineno-$LINENO}: result:     ggi terminal:  no   (use --with-ggi to enable, requires libggi)" >&5
16628$as_echo "    ggi terminal:  no   (use --with-ggi to enable, requires libggi)" >&6; }
16629fi
16630
16631if test "$with_gpic" == yes; then
16632  { $as_echo "$as_me:${as_lineno-$LINENO}: result:     gpic terminal: yes" >&5
16633$as_echo "    gpic terminal: yes" >&6; }
16634else
16635  { $as_echo "$as_me:${as_lineno-$LINENO}: result:     gpic terminal: no   (use --with-gpic to enable)" >&5
16636$as_echo "    gpic terminal: no   (use --with-gpic to enable)" >&6; }
16637fi
16638
16639if test "$with_tgif" == yes; then
16640  { $as_echo "$as_me:${as_lineno-$LINENO}: result:     tgif terminal: yes" >&5
16641$as_echo "    tgif terminal: yes" >&6; }
16642else
16643  { $as_echo "$as_me:${as_lineno-$LINENO}: result:     tgif terminal: no   (use --with-tgif to enable)" >&5
16644$as_echo "    tgif terminal: no   (use --with-tgif to enable)" >&6; }
16645fi
16646
16647if test "$with_mif" == yes; then
16648  { $as_echo "$as_me:${as_lineno-$LINENO}: result:     mif terminal (FrameMaker 3): yes" >&5
16649$as_echo "    mif terminal (FrameMaker 3): yes" >&6; }
16650else
16651  { $as_echo "$as_me:${as_lineno-$LINENO}: result:     mif terminal (FrameMaker 3): no   (use --with-mif to enable)" >&5
16652$as_echo "    mif terminal (FrameMaker 3): no   (use --with-mif to enable)" >&6; }
16653fi
16654
16655if test "$with_regis" = yes; then
16656  { $as_echo "$as_me:${as_lineno-$LINENO}: result:     ReGIS terminal: yes" >&5
16657$as_echo "    ReGIS terminal: yes" >&6; }
16658else
16659  { $as_echo "$as_me:${as_lineno-$LINENO}: result:     ReGIS terminal: no  (use --with-regis to enable)" >&5
16660$as_echo "    ReGIS terminal: no  (use --with-regis to enable)" >&6; }
16661fi
16662
16663if test "$is_msdos" = yes; then
16664  { $as_echo "$as_me:${as_lineno-$LINENO}: result:     svga terminal (MSDOS/djgpp): yes" >&5
16665$as_echo "    svga terminal (MSDOS/djgpp): yes" >&6; }
16666fi
16667
16668if test "$build_src_beos_subdir" = yes; then
16669  { $as_echo "$as_me:${as_lineno-$LINENO}: result:     be terminal (BeOS): yes" >&5
16670$as_echo "    be terminal (BeOS): yes" >&6; }
16671fi
16672
16673if test "$with_caca" = yes; then
16674  { $as_echo "$as_me:${as_lineno-$LINENO}: result:     caca terminal: yes (EXPERIMENTAL)" >&5
16675$as_echo "    caca terminal: yes (EXPERIMENTAL)" >&6; }
16676else
16677  { $as_echo "$as_me:${as_lineno-$LINENO}: result:     caca terminal:  no   (use --with-caca to enable)" >&5
16678$as_echo "    caca terminal:  no   (use --with-caca to enable)" >&6; }
16679fi
16680
16681if test "$gnuplot_framework_AquaTerm" = yes; then
16682  { $as_echo "$as_me:${as_lineno-$LINENO}: result:     aqua terminal (OSX): yes" >&5
16683$as_echo "    aqua terminal (OSX): yes" >&6; }
16684else
16685  { $as_echo "$as_me:${as_lineno-$LINENO}: result:     aqua terminal (OSX): no" >&5
16686$as_echo "    aqua terminal (OSX): no" >&6; }
16687fi
16688
16689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16690$as_echo "" >&6; }
16691{ $as_echo "$as_me:${as_lineno-$LINENO}: result:   Other terminals that can be enabled but have no ./configure option:" >&5
16692$as_echo "  Other terminals that can be enabled but have no ./configure option:" >&6; }
16693{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     eepic, emtex, hp2623a, hp2648, imagen, kyocera, latex, qms, tpic " >&5
16694$as_echo "    eepic, emtex, hp2623a, hp2648, imagen, kyocera, latex, qms, tpic " >&6; }
16695{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     pm (makefile.os2), be (BeOS), svga (MSDOS/djgpp), windows" >&5
16696$as_echo "    pm (makefile.os2), be (BeOS), svga (MSDOS/djgpp), windows" >&6; }
16697
16698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16699$as_echo "" >&6; }
16700if test "$no_x" != yes; then
16701  if test "$enable_x11_mbfonts" = yes; then
16702    { $as_echo "$as_me:${as_lineno-$LINENO}: result:   X Window System terminal: yes  (multi-byte fonts OK)" >&5
16703$as_echo "  X Window System terminal: yes  (multi-byte fonts OK)" >&6; }
16704  else
16705    { $as_echo "$as_me:${as_lineno-$LINENO}: result:   X Window System terminal: yes  (multi-byte fonts not supported)" >&5
16706$as_echo "  X Window System terminal: yes  (multi-byte fonts not supported)" >&6; }
16707  fi
16708
16709  if test "$enable_x11_external" = yes; then
16710    { $as_echo "$as_me:${as_lineno-$LINENO}: result:     (enable plotting to windows opened by external apps) " >&5
16711$as_echo "    (enable plotting to windows opened by external apps) " >&6; }
16712  else
16713    { $as_echo "$as_me:${as_lineno-$LINENO}: result:     (disable plotting to windows opened by external apps) " >&5
16714$as_echo "    (disable plotting to windows opened by external apps) " >&6; }
16715  fi
16716
16717  if test "$with_x_dcop" = yes; then
16718    { $as_echo "$as_me:${as_lineno-$LINENO}: result:     (gnuplot_x11 can use KDE3/DCOP to raise konsole) " >&5
16719$as_echo "    (gnuplot_x11 can use KDE3/DCOP to raise konsole) " >&6; }
16720  fi
16721else
16722  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   X Window System terminal: no (requires X libraries)" >&5
16723$as_echo "  X Window System terminal: no (requires X libraries)" >&6; }
16724fi
16725
16726if test "$ac_cv_lib_gd_gdImageJpeg" = yes &&
16727   test "$ac_cv_lib_gd_gdImagePng" = yes &&
16728   test "$ac_cv_lib_gd_gdImageGif" = yes; then
16729    if test "$ac_cv_lib_gd_gdImageGifAnimBegin" = yes; then
16730      { $as_echo "$as_me:${as_lineno-$LINENO}: result:   libgd-based png, jpeg, and gif terminals: yes (with animated gif)" >&5
16731$as_echo "  libgd-based png, jpeg, and gif terminals: yes (with animated gif)" >&6; }
16732    else
16733      { $as_echo "$as_me:${as_lineno-$LINENO}: result:   libgd-based png, jpeg, and gif terminals: yes (no animated gif)" >&5
16734$as_echo "  libgd-based png, jpeg, and gif terminals: yes (no animated gif)" >&6; }
16735    fi
16736else
16737    { $as_echo "$as_me:${as_lineno-$LINENO}: result:   libgd-based png, jpeg, and gif terminals: no (requires libgd,  see config.log) " >&5
16738$as_echo "  libgd-based png, jpeg, and gif terminals: no (requires libgd,  see config.log) " >&6; }
16739fi
16740
16741if test "$with_cairo" = yes; then
16742  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   cairo-based pdf and png terminals: yes " >&5
16743$as_echo "  cairo-based pdf and png terminals: yes " >&6; }
16744else
16745  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   cairo-based terminals: no (requires cairo>=1.2, pango>=1.22, glib>=2.28)" >&5
16746$as_echo "  cairo-based terminals: no (requires cairo>=1.2, pango>=1.22, glib>=2.28)" >&6; }
16747fi
16748
16749if test "$with_lua" = yes; then
16750  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   lua/TikZ terminal: yes " >&5
16751$as_echo "  lua/TikZ terminal: yes " >&6; }
16752else
16753  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   lua/TikZ terminal: no " >&5
16754$as_echo "  lua/TikZ terminal: no " >&6; }
16755fi
16756
16757if test "$enable_wxwidgets_ok" = yes; then
16758  if test "$with_wx_multithreaded" = yes; then
16759    { $as_echo "$as_me:${as_lineno-$LINENO}: result:   wxt terminal: yes (multithreaded)" >&5
16760$as_echo "  wxt terminal: yes (multithreaded)" >&6; }
16761  else
16762    { $as_echo "$as_me:${as_lineno-$LINENO}: result:   wxt terminal: yes " >&5
16763$as_echo "  wxt terminal: yes " >&6; }
16764  fi
16765else
16766  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   wxt terminal: no (requires C++, wxWidgets>2.6, cairo>0.9, pango>1.22)" >&5
16767$as_echo "  wxt terminal: no (requires C++, wxWidgets>2.6, cairo>0.9, pango>1.22)" >&6; }
16768fi
16769
16770if test "$enable_qt_ok" = yes; then
16771  if test "$QTVER" = 4; then
16772      { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Qt terminal: yes (qt4)" >&5
16773$as_echo "  Qt terminal: yes (qt4)" >&6; }
16774  fi
16775  if test "$QTVER" = 5; then
16776      { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Qt terminal: yes (qt5)" >&5
16777$as_echo "  Qt terminal: yes (qt5)" >&6; }
16778  fi
16779else
16780  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Qt terminal: no (use --with-qt or --with-qt=qt4 to enable" >&5
16781$as_echo "  Qt terminal: no (use --with-qt or --with-qt=qt4 to enable" >&6; }
16782fi
16783
16784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16785$as_echo "" >&6; }
16786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gnuplot will be compiled with the following configurable features:" >&5
16787$as_echo "gnuplot will be compiled with the following configurable features:" >&6; }
16788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16789$as_echo "" >&6; }
16790
16791if test "$enable_mouse" = yes; then
16792  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Mouse support in interactive terminals: yes" >&5
16793$as_echo "  Mouse support in interactive terminals: yes" >&6; }
16794else
16795  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Mouse support in interactive terminals: no" >&5
16796$as_echo "  Mouse support in interactive terminals: no" >&6; }
16797fi
16798
16799if test "$enable_raise_console" = yes; then
16800  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Typing <space> in plot window raises console: yes" >&5
16801$as_echo "  Typing <space> in plot window raises console: yes" >&6; }
16802else
16803  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Typing <space> in plot window raises console: no" >&5
16804$as_echo "  Typing <space> in plot window raises console: no" >&6; }
16805fi
16806
16807if test "$with_readline" = no; then
16808  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   No readline support (use --with-readline=gnu or --with-readline=builtin)" >&5
16809$as_echo "  No readline support (use --with-readline=gnu or --with-readline=builtin)" >&6; }
16810fi
16811
16812  if test "$with_readline" = bsd; then
16813    if test -n "$gp_tcap"; then
16814      { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Readline library: BSD editline with $gp_tcap" >&5
16815$as_echo "  Readline library: BSD editline with $gp_tcap" >&6; }
16816    else
16817      { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Readline library: BSD editline library" >&5
16818$as_echo "  Readline library: BSD editline library" >&6; }
16819    fi
16820    { $as_echo "$as_me:${as_lineno-$LINENO}: result:            WARNING:     editline cannot handle multi-byte characters!" >&5
16821$as_echo "           WARNING:     editline cannot handle multi-byte characters!" >&6; }
16822  else if test "$with_readline" != builtin; then
16823    if test -n "$gp_tcap"; then
16824      { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Readline library: GNU readline library with $gp_tcap" >&5
16825$as_echo "  Readline library: GNU readline library with $gp_tcap" >&6; }
16826    else
16827      { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Readline library: GNU readline library" >&5
16828$as_echo "  Readline library: GNU readline library" >&6; }
16829    fi
16830    if test "$ac_cv_lib_readline_rl_forced_update_display" = no; then
16831      { $as_echo "$as_me:${as_lineno-$LINENO}: result:                     missing some features (OSX version?)" >&5
16832$as_echo "                    missing some features (OSX version?)" >&6; }
16833    fi
16834  else
16835    { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Readline library: builtin minimal (use --with-readline=gnu for GNU readline)" >&5
16836$as_echo "  Readline library: builtin minimal (use --with-readline=gnu for GNU readline)" >&6; }
16837  fi
16838fi
16839
16840if test "$enable_history_file" = yes; then
16841  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Command-line history file: yes" >&5
16842$as_echo "  Command-line history file: yes" >&6; }
16843else
16844  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Command-line history file: no" >&5
16845$as_echo "  Command-line history file: no" >&6; }
16846fi
16847
16848if test "$with_cwdrc" = yes; then
16849  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Check current directory for .gnuplot file: yes (warning: security risk)" >&5
16850$as_echo "  Check current directory for .gnuplot file: yes (warning: security risk)" >&6; }
16851else
16852  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Check current directory for .gnuplot file: no (use --with-cwdrc to enable)" >&5
16853$as_echo "  Check current directory for .gnuplot file: no (use --with-cwdrc to enable)" >&6; }
16854fi
16855
16856if test "$with_row_help" = no; then
16857  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Sort help/subtopic tables by column: yes" >&5
16858$as_echo "  Sort help/subtopic tables by column: yes" >&6; }
16859else
16860  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Sort help/subtopic tables by column: no (use --without-row-help to enable)" >&5
16861$as_echo "  Sort help/subtopic tables by column: no (use --without-row-help to enable)" >&6; }
16862fi
16863
16864if test "$have_libcerf" = yes; then
16865  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   cerf() and other special functions from libcerf: yes" >&5
16866$as_echo "  cerf() and other special functions from libcerf: yes" >&6; }
16867else
16868  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   cerf() and other special functions: no (libcerf not found)" >&5
16869$as_echo "  cerf() and other special functions: no (libcerf not found)" >&6; }
16870fi
16871
16872if test "$have_external_functions" = yes; then
16873  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   plugin support for loading external functions: yes " >&5
16874$as_echo "  plugin support for loading external functions: yes " >&6; }
16875else
16876  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   plugin support for loading external functions: no " >&5
16877$as_echo "  plugin support for loading external functions: no " >&6; }
16878fi
16879
16880if test "$with_kpsexpand" = yes; then
16881  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Use TeX kpsexpand to search for fonts: yes" >&5
16882$as_echo "  Use TeX kpsexpand to search for fonts: yes" >&6; }
16883else
16884  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Use TeX kpsexpand to search for fonts: no (use --with-kpsexpand to enable)" >&5
16885$as_echo "  Use TeX kpsexpand to search for fonts: no (use --with-kpsexpand to enable)" >&6; }
16886fi
16887
16888
16889if test "$enable_stats" != no; then
16890  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Statistical summary of data (\"stats\" command): yes" >&5
16891$as_echo "  Statistical summary of data (\"stats\" command): yes" >&6; }
16892else
16893  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   Statistical summary of data (\"stats\" command): no (use --enable-stats to enable)" >&5
16894$as_echo "  Statistical summary of data (\"stats\" command): no (use --enable-stats to enable)" >&6; }
16895fi
16896
16897
16898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16899$as_echo "" >&6; }
16900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gnuplot will install the following additional materials:" >&5
16901$as_echo "gnuplot will install the following additional materials:" >&6; }
16902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16903$as_echo "" >&6; }
16904
16905if test "$with_latex" != no; then
16906  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   TeX files will be installed in $TEXDIR" >&5
16907$as_echo "  TeX files will be installed in $TEXDIR" >&6; }
16908  { $as_echo "$as_me:${as_lineno-$LINENO}: result:                                (use --with-texdir=DIR to change)" >&5
16909$as_echo "                               (use --with-texdir=DIR to change)" >&6; }
16910else
16911  { $as_echo "$as_me:${as_lineno-$LINENO}: result:   TeX files will not be installed" >&5
16912$as_echo "  TeX files will not be installed" >&6; }
16913fi
16914{ $as_echo "$as_me:${as_lineno-$LINENO}: result:   PostScript prologue files: $GIHDIR/PostScript/" >&5
16915$as_echo "  PostScript prologue files: $GIHDIR/PostScript/" >&6; }
16916{ $as_echo "$as_me:${as_lineno-$LINENO}: result:   Help file: $GIHDIR/gnuplot.gih" >&5
16917$as_echo "  Help file: $GIHDIR/gnuplot.gih" >&6; }
16918
16919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16920$as_echo "" >&6; }
16921
16922
16923