xref: /vim-8.2.3635/src/auto/configure (revision fb094e14)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
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 [email protected] 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=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="vim.h"
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='LTLIBOBJS
623LIBOBJS
624LINK_AS_NEEDED
625DEPEND_CFLAGS_FILTER
626MAKEMO
627MSGFMT
628INSTALL_TOOL_LANGS
629INSTALL_LANGS
630TAGPRG
631HANGULIN_OBJ
632HANGULIN_SRC
633GUI_X_LIBS
634GUITYPE
635GUI_LIB_LOC
636GUI_INC_LOC
637NARROW_PROTO
638MOTIF_LIBNAME
639GRESOURCE_OBJ
640GRESOURCE_SRC
641UPDATE_DESKTOP_DATABASE
642GTK_UPDATE_ICON_CACHE
643GLIB_COMPILE_RESOURCES
644GNOME_INCLUDEDIR
645GNOME_LIBDIR
646GNOME_LIBS
647GTK_LIBNAME
648GTK_LIBS
649GTK_CFLAGS
650PKG_CONFIG
651X_LIB
652X_EXTRA_LIBS
653X_LIBS
654X_PRE_LIBS
655X_CFLAGS
656XMKMF
657xmkmfpath
658TERM_OBJ
659TERM_SRC
660CHANNEL_OBJ
661CHANNEL_SRC
662NETBEANS_OBJ
663NETBEANS_SRC
664WORKSHOP_OBJ
665WORKSHOP_SRC
666RUBY_LIBS
667RUBY_CFLAGS
668RUBY_PRO
669RUBY_OBJ
670RUBY_SRC
671vi_cv_path_ruby
672TCL_LIBS
673TCL_CFLAGS
674TCL_PRO
675TCL_OBJ
676TCL_SRC
677vi_cv_path_tcl
678PYTHON3_OBJ
679PYTHON3_SRC
680PYTHON3_CFLAGS
681PYTHON3_LIBS
682PYTHON3_CONFDIR
683vi_cv_path_python3
684PYTHON_OBJ
685PYTHON_SRC
686PYTHON_CFLAGS
687PYTHON_GETPATH_CFLAGS
688PYTHON_LIBS
689PYTHON_CONFDIR
690vi_cv_path_python
691PERL_LIBS
692PERL_CFLAGS
693PERL_PRO
694PERL_OBJ
695PERL_SRC
696shrpenv
697vi_cv_perl_xsubpp
698vi_cv_perllib
699vi_cv_path_perl
700MZSCHEME_MZC
701MZSCHEME_EXTRA
702MZSCHEME_CFLAGS
703MZSCHEME_LIBS
704MZSCHEME_PRO
705MZSCHEME_OBJ
706MZSCHEME_SRC
707vi_cv_path_mzscheme
708LUA_CFLAGS
709LUA_LIBS
710LUA_PRO
711LUA_OBJ
712LUA_SRC
713vi_cv_path_plain_lua
714vi_cv_path_luajit
715vi_cv_path_lua
716compiledby
717dogvimdiff
718dovimdiff
719QUOTESED
720line_break
721VIEWNAME
722EXNAME
723VIMNAME
724OS_EXTRA_OBJ
725OS_EXTRA_SRC
726XCODE_SELECT
727CPP_MM
728CROSS_COMPILING
729STRIP
730AWK
731FGREP
732EGREP
733GREP
734CPP
735OBJEXT
736EXEEXT
737ac_ct_CC
738CPPFLAGS
739LDFLAGS
740CFLAGS
741CC
742SET_MAKE
743target_alias
744host_alias
745build_alias
746LIBS
747ECHO_T
748ECHO_N
749ECHO_C
750DEFS
751mandir
752localedir
753libdir
754psdir
755pdfdir
756dvidir
757htmldir
758infodir
759docdir
760oldincludedir
761includedir
762runstatedir
763localstatedir
764sharedstatedir
765sysconfdir
766datadir
767datarootdir
768libexecdir
769sbindir
770bindir
771program_transform_name
772prefix
773exec_prefix
774PACKAGE_URL
775PACKAGE_BUGREPORT
776PACKAGE_STRING
777PACKAGE_VERSION
778PACKAGE_TARNAME
779PACKAGE_NAME
780PATH_SEPARATOR
781SHELL'
782ac_subst_files=''
783ac_user_opts='
784enable_option_checking
785enable_fail_if_missing
786enable_darwin
787with_mac_arch
788with_developer_dir
789with_local_dir
790with_vim_name
791with_ex_name
792with_view_name
793with_global_runtime
794with_modified_by
795enable_smack
796enable_selinux
797with_features
798with_compiledby
799enable_xsmp
800enable_xsmp_interact
801enable_luainterp
802with_lua_prefix
803with_luajit
804enable_mzschemeinterp
805with_plthome
806enable_perlinterp
807enable_pythoninterp
808with_python_config_dir
809enable_python3interp
810with_python3_config_dir
811enable_tclinterp
812with_tclsh
813enable_rubyinterp
814with_ruby_command
815enable_cscope
816enable_workshop
817enable_netbeans
818enable_channel
819enable_terminal
820enable_multibyte
821enable_hangulinput
822enable_xim
823enable_fontset
824with_x
825enable_gui
826enable_gtk2_check
827enable_gnome_check
828enable_gtk3_check
829enable_motif_check
830enable_athena_check
831enable_nextaw_check
832enable_carbon_check
833enable_gtktest
834with_gnome_includes
835with_gnome_libs
836with_gnome
837enable_icon_cache_update
838enable_desktop_database_update
839with_motif_lib
840with_tlib
841enable_largefile
842enable_acl
843enable_gpm
844enable_sysmouse
845enable_nls
846'
847      ac_precious_vars='build_alias
848host_alias
849target_alias
850CC
851CFLAGS
852LDFLAGS
853LIBS
854CPPFLAGS
855CPP
856XMKMF'
857
858
859# Initialize some variables set by options.
860ac_init_help=
861ac_init_version=false
862ac_unrecognized_opts=
863ac_unrecognized_sep=
864# The variables have the same names as the options, with
865# dashes changed to underlines.
866cache_file=/dev/null
867exec_prefix=NONE
868no_create=
869no_recursion=
870prefix=NONE
871program_prefix=NONE
872program_suffix=NONE
873program_transform_name=s,x,x,
874silent=
875site=
876srcdir=
877verbose=
878x_includes=NONE
879x_libraries=NONE
880
881# Installation directory options.
882# These are left unexpanded so users can "make install exec_prefix=/foo"
883# and all the variables that are supposed to be based on exec_prefix
884# by default will actually change.
885# Use braces instead of parens because sh, perl, etc. also accept them.
886# (The list follows the same order as the GNU Coding Standards.)
887bindir='${exec_prefix}/bin'
888sbindir='${exec_prefix}/sbin'
889libexecdir='${exec_prefix}/libexec'
890datarootdir='${prefix}/share'
891datadir='${datarootdir}'
892sysconfdir='${prefix}/etc'
893sharedstatedir='${prefix}/com'
894localstatedir='${prefix}/var'
895runstatedir='${localstatedir}/run'
896includedir='${prefix}/include'
897oldincludedir='/usr/include'
898docdir='${datarootdir}/doc/${PACKAGE}'
899infodir='${datarootdir}/info'
900htmldir='${docdir}'
901dvidir='${docdir}'
902pdfdir='${docdir}'
903psdir='${docdir}'
904libdir='${exec_prefix}/lib'
905localedir='${datarootdir}/locale'
906mandir='${datarootdir}/man'
907
908ac_prev=
909ac_dashdash=
910for ac_option
911do
912  # If the previous option needs an argument, assign it.
913  if test -n "$ac_prev"; then
914    eval $ac_prev=\$ac_option
915    ac_prev=
916    continue
917  fi
918
919  case $ac_option in
920  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921  *=)   ac_optarg= ;;
922  *)    ac_optarg=yes ;;
923  esac
924
925  # Accept the important Cygnus configure options, so we can diagnose typos.
926
927  case $ac_dashdash$ac_option in
928  --)
929    ac_dashdash=yes ;;
930
931  -bindir | --bindir | --bindi | --bind | --bin | --bi)
932    ac_prev=bindir ;;
933  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934    bindir=$ac_optarg ;;
935
936  -build | --build | --buil | --bui | --bu)
937    ac_prev=build_alias ;;
938  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939    build_alias=$ac_optarg ;;
940
941  -cache-file | --cache-file | --cache-fil | --cache-fi \
942  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943    ac_prev=cache_file ;;
944  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946    cache_file=$ac_optarg ;;
947
948  --config-cache | -C)
949    cache_file=config.cache ;;
950
951  -datadir | --datadir | --datadi | --datad)
952    ac_prev=datadir ;;
953  -datadir=* | --datadir=* | --datadi=* | --datad=*)
954    datadir=$ac_optarg ;;
955
956  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957  | --dataroo | --dataro | --datar)
958    ac_prev=datarootdir ;;
959  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961    datarootdir=$ac_optarg ;;
962
963  -disable-* | --disable-*)
964    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965    # Reject names that are not valid shell variable names.
966    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967      as_fn_error $? "invalid feature name: $ac_useropt"
968    ac_useropt_orig=$ac_useropt
969    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970    case $ac_user_opts in
971      *"
972"enable_$ac_useropt"
973"*) ;;
974      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975	 ac_unrecognized_sep=', ';;
976    esac
977    eval enable_$ac_useropt=no ;;
978
979  -docdir | --docdir | --docdi | --doc | --do)
980    ac_prev=docdir ;;
981  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982    docdir=$ac_optarg ;;
983
984  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985    ac_prev=dvidir ;;
986  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987    dvidir=$ac_optarg ;;
988
989  -enable-* | --enable-*)
990    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991    # Reject names that are not valid shell variable names.
992    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993      as_fn_error $? "invalid feature name: $ac_useropt"
994    ac_useropt_orig=$ac_useropt
995    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996    case $ac_user_opts in
997      *"
998"enable_$ac_useropt"
999"*) ;;
1000      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001	 ac_unrecognized_sep=', ';;
1002    esac
1003    eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007  | --exec | --exe | --ex)
1008    ac_prev=exec_prefix ;;
1009  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011  | --exec=* | --exe=* | --ex=*)
1012    exec_prefix=$ac_optarg ;;
1013
1014  -gas | --gas | --ga | --g)
1015    # Obsolete; use --with-gas.
1016    with_gas=yes ;;
1017
1018  -help | --help | --hel | --he | -h)
1019    ac_init_help=long ;;
1020  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021    ac_init_help=recursive ;;
1022  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023    ac_init_help=short ;;
1024
1025  -host | --host | --hos | --ho)
1026    ac_prev=host_alias ;;
1027  -host=* | --host=* | --hos=* | --ho=*)
1028    host_alias=$ac_optarg ;;
1029
1030  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031    ac_prev=htmldir ;;
1032  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033  | --ht=*)
1034    htmldir=$ac_optarg ;;
1035
1036  -includedir | --includedir | --includedi | --included | --include \
1037  | --includ | --inclu | --incl | --inc)
1038    ac_prev=includedir ;;
1039  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040  | --includ=* | --inclu=* | --incl=* | --inc=*)
1041    includedir=$ac_optarg ;;
1042
1043  -infodir | --infodir | --infodi | --infod | --info | --inf)
1044    ac_prev=infodir ;;
1045  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046    infodir=$ac_optarg ;;
1047
1048  -libdir | --libdir | --libdi | --libd)
1049    ac_prev=libdir ;;
1050  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051    libdir=$ac_optarg ;;
1052
1053  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054  | --libexe | --libex | --libe)
1055    ac_prev=libexecdir ;;
1056  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057  | --libexe=* | --libex=* | --libe=*)
1058    libexecdir=$ac_optarg ;;
1059
1060  -localedir | --localedir | --localedi | --localed | --locale)
1061    ac_prev=localedir ;;
1062  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063    localedir=$ac_optarg ;;
1064
1065  -localstatedir | --localstatedir | --localstatedi | --localstated \
1066  | --localstate | --localstat | --localsta | --localst | --locals)
1067    ac_prev=localstatedir ;;
1068  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070    localstatedir=$ac_optarg ;;
1071
1072  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073    ac_prev=mandir ;;
1074  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075    mandir=$ac_optarg ;;
1076
1077  -nfp | --nfp | --nf)
1078    # Obsolete; use --without-fp.
1079    with_fp=no ;;
1080
1081  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082  | --no-cr | --no-c | -n)
1083    no_create=yes ;;
1084
1085  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087    no_recursion=yes ;;
1088
1089  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091  | --oldin | --oldi | --old | --ol | --o)
1092    ac_prev=oldincludedir ;;
1093  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096    oldincludedir=$ac_optarg ;;
1097
1098  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099    ac_prev=prefix ;;
1100  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101    prefix=$ac_optarg ;;
1102
1103  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104  | --program-pre | --program-pr | --program-p)
1105    ac_prev=program_prefix ;;
1106  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108    program_prefix=$ac_optarg ;;
1109
1110  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111  | --program-suf | --program-su | --program-s)
1112    ac_prev=program_suffix ;;
1113  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115    program_suffix=$ac_optarg ;;
1116
1117  -program-transform-name | --program-transform-name \
1118  | --program-transform-nam | --program-transform-na \
1119  | --program-transform-n | --program-transform- \
1120  | --program-transform | --program-transfor \
1121  | --program-transfo | --program-transf \
1122  | --program-trans | --program-tran \
1123  | --progr-tra | --program-tr | --program-t)
1124    ac_prev=program_transform_name ;;
1125  -program-transform-name=* | --program-transform-name=* \
1126  | --program-transform-nam=* | --program-transform-na=* \
1127  | --program-transform-n=* | --program-transform-=* \
1128  | --program-transform=* | --program-transfor=* \
1129  | --program-transfo=* | --program-transf=* \
1130  | --program-trans=* | --program-tran=* \
1131  | --progr-tra=* | --program-tr=* | --program-t=*)
1132    program_transform_name=$ac_optarg ;;
1133
1134  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135    ac_prev=pdfdir ;;
1136  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137    pdfdir=$ac_optarg ;;
1138
1139  -psdir | --psdir | --psdi | --psd | --ps)
1140    ac_prev=psdir ;;
1141  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142    psdir=$ac_optarg ;;
1143
1144  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145  | -silent | --silent | --silen | --sile | --sil)
1146    silent=yes ;;
1147
1148  -runstatedir | --runstatedir | --runstatedi | --runstated \
1149  | --runstate | --runstat | --runsta | --runst | --runs \
1150  | --run | --ru | --r)
1151    ac_prev=runstatedir ;;
1152  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1153  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1154  | --run=* | --ru=* | --r=*)
1155    runstatedir=$ac_optarg ;;
1156
1157  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158    ac_prev=sbindir ;;
1159  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160  | --sbi=* | --sb=*)
1161    sbindir=$ac_optarg ;;
1162
1163  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165  | --sharedst | --shareds | --shared | --share | --shar \
1166  | --sha | --sh)
1167    ac_prev=sharedstatedir ;;
1168  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171  | --sha=* | --sh=*)
1172    sharedstatedir=$ac_optarg ;;
1173
1174  -site | --site | --sit)
1175    ac_prev=site ;;
1176  -site=* | --site=* | --sit=*)
1177    site=$ac_optarg ;;
1178
1179  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180    ac_prev=srcdir ;;
1181  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182    srcdir=$ac_optarg ;;
1183
1184  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185  | --syscon | --sysco | --sysc | --sys | --sy)
1186    ac_prev=sysconfdir ;;
1187  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189    sysconfdir=$ac_optarg ;;
1190
1191  -target | --target | --targe | --targ | --tar | --ta | --t)
1192    ac_prev=target_alias ;;
1193  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194    target_alias=$ac_optarg ;;
1195
1196  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197    verbose=yes ;;
1198
1199  -version | --version | --versio | --versi | --vers | -V)
1200    ac_init_version=: ;;
1201
1202  -with-* | --with-*)
1203    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204    # Reject names that are not valid shell variable names.
1205    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206      as_fn_error $? "invalid package name: $ac_useropt"
1207    ac_useropt_orig=$ac_useropt
1208    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209    case $ac_user_opts in
1210      *"
1211"with_$ac_useropt"
1212"*) ;;
1213      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1214	 ac_unrecognized_sep=', ';;
1215    esac
1216    eval with_$ac_useropt=\$ac_optarg ;;
1217
1218  -without-* | --without-*)
1219    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220    # Reject names that are not valid shell variable names.
1221    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222      as_fn_error $? "invalid package name: $ac_useropt"
1223    ac_useropt_orig=$ac_useropt
1224    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225    case $ac_user_opts in
1226      *"
1227"with_$ac_useropt"
1228"*) ;;
1229      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230	 ac_unrecognized_sep=', ';;
1231    esac
1232    eval with_$ac_useropt=no ;;
1233
1234  --x)
1235    # Obsolete; use --with-x.
1236    with_x=yes ;;
1237
1238  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239  | --x-incl | --x-inc | --x-in | --x-i)
1240    ac_prev=x_includes ;;
1241  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243    x_includes=$ac_optarg ;;
1244
1245  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247    ac_prev=x_libraries ;;
1248  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250    x_libraries=$ac_optarg ;;
1251
1252  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1253Try \`$0 --help' for more information"
1254    ;;
1255
1256  *=*)
1257    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258    # Reject names that are not valid shell variable names.
1259    case $ac_envvar in #(
1260      '' | [0-9]* | *[!_$as_cr_alnum]* )
1261      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1262    esac
1263    eval $ac_envvar=\$ac_optarg
1264    export $ac_envvar ;;
1265
1266  *)
1267    # FIXME: should be removed in autoconf 3.0.
1268    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1272    ;;
1273
1274  esac
1275done
1276
1277if test -n "$ac_prev"; then
1278  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279  as_fn_error $? "missing argument to $ac_option"
1280fi
1281
1282if test -n "$ac_unrecognized_opts"; then
1283  case $enable_option_checking in
1284    no) ;;
1285    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1286    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1287  esac
1288fi
1289
1290# Check all directory arguments for consistency.
1291for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292		datadir sysconfdir sharedstatedir localstatedir includedir \
1293		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294		libdir localedir mandir runstatedir
1295do
1296  eval ac_val=\$$ac_var
1297  # Remove trailing slashes.
1298  case $ac_val in
1299    */ )
1300      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301      eval $ac_var=\$ac_val;;
1302  esac
1303  # Be sure to have absolute directory names.
1304  case $ac_val in
1305    [\\/$]* | ?:[\\/]* )  continue;;
1306    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307  esac
1308  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1309done
1310
1311# There might be people who depend on the old broken behavior: `$host'
1312# used to hold the argument of --host etc.
1313# FIXME: To remove some day.
1314build=$build_alias
1315host=$host_alias
1316target=$target_alias
1317
1318# FIXME: To remove some day.
1319if test "x$host_alias" != x; then
1320  if test "x$build_alias" = x; then
1321    cross_compiling=maybe
1322  elif test "x$build_alias" != "x$host_alias"; then
1323    cross_compiling=yes
1324  fi
1325fi
1326
1327ac_tool_prefix=
1328test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330test "$silent" = yes && exec 6>/dev/null
1331
1332
1333ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334ac_ls_di=`ls -di .` &&
1335ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336  as_fn_error $? "working directory cannot be determined"
1337test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338  as_fn_error $? "pwd does not report name of working directory"
1339
1340
1341# Find the source files, if location was not specified.
1342if test -z "$srcdir"; then
1343  ac_srcdir_defaulted=yes
1344  # Try the directory containing this script, then the parent directory.
1345  ac_confdir=`$as_dirname -- "$as_myself" ||
1346$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347	 X"$as_myself" : 'X\(//\)[^/]' \| \
1348	 X"$as_myself" : 'X\(//\)$' \| \
1349	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350$as_echo X"$as_myself" |
1351    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352	    s//\1/
1353	    q
1354	  }
1355	  /^X\(\/\/\)[^/].*/{
1356	    s//\1/
1357	    q
1358	  }
1359	  /^X\(\/\/\)$/{
1360	    s//\1/
1361	    q
1362	  }
1363	  /^X\(\/\).*/{
1364	    s//\1/
1365	    q
1366	  }
1367	  s/.*/./; q'`
1368  srcdir=$ac_confdir
1369  if test ! -r "$srcdir/$ac_unique_file"; then
1370    srcdir=..
1371  fi
1372else
1373  ac_srcdir_defaulted=no
1374fi
1375if test ! -r "$srcdir/$ac_unique_file"; then
1376  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1378fi
1379ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380ac_abs_confdir=`(
1381	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1382	pwd)`
1383# When building in place, set srcdir=.
1384if test "$ac_abs_confdir" = "$ac_pwd"; then
1385  srcdir=.
1386fi
1387# Remove unnecessary trailing slashes from srcdir.
1388# Double slashes in file names in object file debugging info
1389# mess up M-x gdb in Emacs.
1390case $srcdir in
1391*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392esac
1393for ac_var in $ac_precious_vars; do
1394  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395  eval ac_env_${ac_var}_value=\$${ac_var}
1396  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398done
1399
1400#
1401# Report the --help message.
1402#
1403if test "$ac_init_help" = "long"; then
1404  # Omit some internal or obsolete options to make the list less imposing.
1405  # This message is too long to be a string in the A/UX 3.1 sh.
1406  cat <<_ACEOF
1407\`configure' configures this package to adapt to many kinds of systems.
1408
1409Usage: $0 [OPTION]... [VAR=VALUE]...
1410
1411To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412VAR=VALUE.  See below for descriptions of some of the useful variables.
1413
1414Defaults for the options are specified in brackets.
1415
1416Configuration:
1417  -h, --help              display this help and exit
1418      --help=short        display options specific to this package
1419      --help=recursive    display the short help of all the included packages
1420  -V, --version           display version information and exit
1421  -q, --quiet, --silent   do not print \`checking ...' messages
1422      --cache-file=FILE   cache test results in FILE [disabled]
1423  -C, --config-cache      alias for \`--cache-file=config.cache'
1424  -n, --no-create         do not create output files
1425      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1426
1427Installation directories:
1428  --prefix=PREFIX         install architecture-independent files in PREFIX
1429                          [$ac_default_prefix]
1430  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1431                          [PREFIX]
1432
1433By default, \`make install' will install all the files in
1434\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1435an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436for instance \`--prefix=\$HOME'.
1437
1438For better control, use the options below.
1439
1440Fine tuning of the installation directories:
1441  --bindir=DIR            user executables [EPREFIX/bin]
1442  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1443  --libexecdir=DIR        program executables [EPREFIX/libexec]
1444  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1445  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1446  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1447  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1448  --libdir=DIR            object code libraries [EPREFIX/lib]
1449  --includedir=DIR        C header files [PREFIX/include]
1450  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1451  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1452  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1453  --infodir=DIR           info documentation [DATAROOTDIR/info]
1454  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1455  --mandir=DIR            man documentation [DATAROOTDIR/man]
1456  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1457  --htmldir=DIR           html documentation [DOCDIR]
1458  --dvidir=DIR            dvi documentation [DOCDIR]
1459  --pdfdir=DIR            pdf documentation [DOCDIR]
1460  --psdir=DIR             ps documentation [DOCDIR]
1461_ACEOF
1462
1463  cat <<\_ACEOF
1464
1465X features:
1466  --x-includes=DIR    X include files are in DIR
1467  --x-libraries=DIR   X library files are in DIR
1468_ACEOF
1469fi
1470
1471if test -n "$ac_init_help"; then
1472
1473  cat <<\_ACEOF
1474
1475Optional Features:
1476  --disable-option-checking  ignore unrecognized --enable/--with options
1477  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1478  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1479  --enable-fail-if-missing    Fail if dependencies on additional features
1480     specified on the command line are missing.
1481  --disable-darwin        Disable Darwin (Mac OS X) support.
1482  --disable-smack	  Do not check for Smack support.
1483  --disable-selinux	  Do not check for SELinux support.
1484  --disable-xsmp          Disable XSMP session management
1485  --disable-xsmp-interact Disable XSMP interaction
1486  --enable-luainterp=OPTS      Include Lua interpreter.  default=no OPTS=no/yes/dynamic
1487  --enable-mzschemeinterp      Include MzScheme interpreter.
1488  --enable-perlinterp=OPTS     Include Perl interpreter.  default=no OPTS=no/yes/dynamic
1489  --enable-pythoninterp=OPTS   Include Python interpreter. default=no OPTS=no/yes/dynamic
1490  --enable-python3interp=OPTS  Include Python3 interpreter. default=no OPTS=no/yes/dynamic
1491  --enable-tclinterp=OPTS      Include Tcl interpreter. default=no OPTS=no/yes/dynamic
1492  --enable-rubyinterp=OPTS     Include Ruby interpreter.  default=no OPTS=no/yes/dynamic
1493  --enable-cscope         Include cscope interface.
1494  --enable-workshop       Include Sun Visual Workshop support.
1495  --disable-netbeans      Disable NetBeans integration support.
1496  --disable-channel       Disable process communication support.
1497  --enable-terminal       Enable terminal emulation support.
1498  --enable-multibyte      Include multibyte editing support.
1499  --enable-hangulinput    Include Hangul input support.
1500  --enable-xim            Include XIM input support.
1501  --enable-fontset        Include X fontset output support.
1502  --enable-gui=OPTS       X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/photon/carbon
1503  --enable-gtk2-check     If auto-select GUI, check for GTK+ 2 default=yes
1504  --enable-gnome-check    If GTK GUI, check for GNOME default=no
1505  --enable-gtk3-check     If auto-select GUI, check for GTK+ 3 default=yes
1506  --enable-motif-check    If auto-select GUI, check for Motif default=yes
1507  --enable-athena-check   If auto-select GUI, check for Athena default=yes
1508  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
1509  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
1510  --disable-gtktest       Do not try to compile and run a test GTK program
1511  --disable-icon-cache-update        update disabled
1512  --disable-desktop-database-update  update disabled
1513  --disable-largefile     omit support for large files
1514  --disable-acl           Don't check for ACL support.
1515  --disable-gpm           Don't use gpm (Linux mouse daemon).
1516  --disable-sysmouse      Don't use sysmouse (mouse in *BSD console).
1517  --disable-nls           Don't support NLS (gettext()).
1518
1519Optional Packages:
1520  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1521  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1522  --with-mac-arch=ARCH    current, intel, ppc or both
1523  --with-developer-dir=PATH    use PATH as location for Xcode developer tools
1524  --with-local-dir=PATH   search PATH instead of /usr/local for local libraries.
1525  --without-local-dir     do not search /usr/local for local libraries.
1526  --with-vim-name=NAME    what to call the Vim executable
1527  --with-ex-name=NAME     what to call the Ex executable
1528  --with-view-name=NAME   what to call the View executable
1529  --with-global-runtime=DIR    global runtime directory in 'runtimepath'
1530  --with-modified-by=NAME       name of who modified a release version
1531  --with-features=TYPE    tiny, small, normal, big or huge (default: huge)
1532  --with-compiledby=NAME  name to show in :version message
1533  --with-lua-prefix=PFX   Prefix where Lua is installed.
1534  --with-luajit           Link with LuaJIT instead of Lua.
1535  --with-plthome=PLTHOME   Use PLTHOME.
1536  --with-python-config-dir=PATH  Python's config directory
1537  --with-python3-config-dir=PATH  Python's config directory
1538  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
1539  --with-ruby-command=RUBY  name of the Ruby command (default: ruby)
1540  --with-x                use the X Window System
1541  --with-gnome-includes=DIR Specify location of GNOME headers
1542  --with-gnome-libs=DIR   Specify location of GNOME libs
1543  --with-gnome            Specify prefix for GNOME files
1544  --with-motif-lib=STRING Library for Motif
1545  --with-tlib=library     terminal library to be used
1546
1547Some influential environment variables:
1548  CC          C compiler command
1549  CFLAGS      C compiler flags
1550  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1551              nonstandard directory <lib dir>
1552  LIBS        libraries to pass to the linker, e.g. -l<library>
1553  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1554              you have headers in a nonstandard directory <include dir>
1555  CPP         C preprocessor
1556  XMKMF       Path to xmkmf, Makefile generator for X Window System
1557
1558Use these variables to override the choices made by `configure' or to help
1559it to find libraries and programs with nonstandard names/locations.
1560
1561Report bugs to the package provider.
1562_ACEOF
1563ac_status=$?
1564fi
1565
1566if test "$ac_init_help" = "recursive"; then
1567  # If there are subdirs, report their specific --help.
1568  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569    test -d "$ac_dir" ||
1570      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571      continue
1572    ac_builddir=.
1573
1574case "$ac_dir" in
1575.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576*)
1577  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1578  # A ".." for each directory in $ac_dir_suffix.
1579  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1580  case $ac_top_builddir_sub in
1581  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583  esac ;;
1584esac
1585ac_abs_top_builddir=$ac_pwd
1586ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587# for backward compatibility:
1588ac_top_builddir=$ac_top_build_prefix
1589
1590case $srcdir in
1591  .)  # We are building in place.
1592    ac_srcdir=.
1593    ac_top_srcdir=$ac_top_builddir_sub
1594    ac_abs_top_srcdir=$ac_pwd ;;
1595  [\\/]* | ?:[\\/]* )  # Absolute name.
1596    ac_srcdir=$srcdir$ac_dir_suffix;
1597    ac_top_srcdir=$srcdir
1598    ac_abs_top_srcdir=$srcdir ;;
1599  *) # Relative name.
1600    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601    ac_top_srcdir=$ac_top_build_prefix$srcdir
1602    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603esac
1604ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605
1606    cd "$ac_dir" || { ac_status=$?; continue; }
1607    # Check for guested configure.
1608    if test -f "$ac_srcdir/configure.gnu"; then
1609      echo &&
1610      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611    elif test -f "$ac_srcdir/configure"; then
1612      echo &&
1613      $SHELL "$ac_srcdir/configure" --help=recursive
1614    else
1615      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616    fi || ac_status=$?
1617    cd "$ac_pwd" || { ac_status=$?; break; }
1618  done
1619fi
1620
1621test -n "$ac_init_help" && exit $ac_status
1622if $ac_init_version; then
1623  cat <<\_ACEOF
1624configure
1625generated by GNU Autoconf 2.69
1626
1627Copyright (C) 2012 Free Software Foundation, Inc.
1628This configure script is free software; the Free Software Foundation
1629gives unlimited permission to copy, distribute and modify it.
1630_ACEOF
1631  exit
1632fi
1633
1634## ------------------------ ##
1635## Autoconf initialization. ##
1636## ------------------------ ##
1637
1638# ac_fn_c_try_compile LINENO
1639# --------------------------
1640# Try to compile conftest.$ac_ext, and return whether this succeeded.
1641ac_fn_c_try_compile ()
1642{
1643  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644  rm -f conftest.$ac_objext
1645  if { { ac_try="$ac_compile"
1646case "(($ac_try" in
1647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648  *) ac_try_echo=$ac_try;;
1649esac
1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651$as_echo "$ac_try_echo"; } >&5
1652  (eval "$ac_compile") 2>conftest.err
1653  ac_status=$?
1654  if test -s conftest.err; then
1655    grep -v '^ *+' conftest.err >conftest.er1
1656    cat conftest.er1 >&5
1657    mv -f conftest.er1 conftest.err
1658  fi
1659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660  test $ac_status = 0; } && {
1661	 test -z "$ac_c_werror_flag" ||
1662	 test ! -s conftest.err
1663       } && test -s conftest.$ac_objext; then :
1664  ac_retval=0
1665else
1666  $as_echo "$as_me: failed program was:" >&5
1667sed 's/^/| /' conftest.$ac_ext >&5
1668
1669	ac_retval=1
1670fi
1671  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672  as_fn_set_status $ac_retval
1673
1674} # ac_fn_c_try_compile
1675
1676# ac_fn_c_try_cpp LINENO
1677# ----------------------
1678# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1679ac_fn_c_try_cpp ()
1680{
1681  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682  if { { ac_try="$ac_cpp conftest.$ac_ext"
1683case "(($ac_try" in
1684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685  *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690  ac_status=$?
1691  if test -s conftest.err; then
1692    grep -v '^ *+' conftest.err >conftest.er1
1693    cat conftest.er1 >&5
1694    mv -f conftest.er1 conftest.err
1695  fi
1696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697  test $ac_status = 0; } > conftest.i && {
1698	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1699	 test ! -s conftest.err
1700       }; then :
1701  ac_retval=0
1702else
1703  $as_echo "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706    ac_retval=1
1707fi
1708  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709  as_fn_set_status $ac_retval
1710
1711} # ac_fn_c_try_cpp
1712
1713# ac_fn_c_try_link LINENO
1714# -----------------------
1715# Try to link conftest.$ac_ext, and return whether this succeeded.
1716ac_fn_c_try_link ()
1717{
1718  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719  rm -f conftest.$ac_objext conftest$ac_exeext
1720  if { { ac_try="$ac_link"
1721case "(($ac_try" in
1722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723  *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727  (eval "$ac_link") 2>conftest.err
1728  ac_status=$?
1729  if test -s conftest.err; then
1730    grep -v '^ *+' conftest.err >conftest.er1
1731    cat conftest.er1 >&5
1732    mv -f conftest.er1 conftest.err
1733  fi
1734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735  test $ac_status = 0; } && {
1736	 test -z "$ac_c_werror_flag" ||
1737	 test ! -s conftest.err
1738       } && test -s conftest$ac_exeext && {
1739	 test "$cross_compiling" = yes ||
1740	 test -x conftest$ac_exeext
1741       }; then :
1742  ac_retval=0
1743else
1744  $as_echo "$as_me: failed program was:" >&5
1745sed 's/^/| /' conftest.$ac_ext >&5
1746
1747	ac_retval=1
1748fi
1749  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1750  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1751  # interfere with the next link command; also delete a directory that is
1752  # left behind by Apple's compiler.  We do this before executing the actions.
1753  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1754  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755  as_fn_set_status $ac_retval
1756
1757} # ac_fn_c_try_link
1758
1759# ac_fn_c_try_run LINENO
1760# ----------------------
1761# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1762# that executables *can* be run.
1763ac_fn_c_try_run ()
1764{
1765  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766  if { { ac_try="$ac_link"
1767case "(($ac_try" in
1768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769  *) ac_try_echo=$ac_try;;
1770esac
1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772$as_echo "$ac_try_echo"; } >&5
1773  (eval "$ac_link") 2>&5
1774  ac_status=$?
1775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1777  { { case "(($ac_try" in
1778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779  *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782$as_echo "$ac_try_echo"; } >&5
1783  (eval "$ac_try") 2>&5
1784  ac_status=$?
1785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786  test $ac_status = 0; }; }; then :
1787  ac_retval=0
1788else
1789  $as_echo "$as_me: program exited with status $ac_status" >&5
1790       $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
1792
1793       ac_retval=$ac_status
1794fi
1795  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797  as_fn_set_status $ac_retval
1798
1799} # ac_fn_c_try_run
1800
1801# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1802# -------------------------------------------------------
1803# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1804# the include files in INCLUDES and setting the cache variable VAR
1805# accordingly.
1806ac_fn_c_check_header_mongrel ()
1807{
1808  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809  if eval \${$3+:} false; then :
1810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811$as_echo_n "checking for $2... " >&6; }
1812if eval \${$3+:} false; then :
1813  $as_echo_n "(cached) " >&6
1814fi
1815eval ac_res=\$$3
1816	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817$as_echo "$ac_res" >&6; }
1818else
1819  # Is the header compilable?
1820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1821$as_echo_n "checking $2 usability... " >&6; }
1822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h.  */
1824$4
1825#include <$2>
1826_ACEOF
1827if ac_fn_c_try_compile "$LINENO"; then :
1828  ac_header_compiler=yes
1829else
1830  ac_header_compiler=no
1831fi
1832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1834$as_echo "$ac_header_compiler" >&6; }
1835
1836# Is the header present?
1837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1838$as_echo_n "checking $2 presence... " >&6; }
1839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840/* end confdefs.h.  */
1841#include <$2>
1842_ACEOF
1843if ac_fn_c_try_cpp "$LINENO"; then :
1844  ac_header_preproc=yes
1845else
1846  ac_header_preproc=no
1847fi
1848rm -f conftest.err conftest.i conftest.$ac_ext
1849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1850$as_echo "$ac_header_preproc" >&6; }
1851
1852# So?  What about this header?
1853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1854  yes:no: )
1855    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1856$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1857    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859    ;;
1860  no:yes:* )
1861    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1862$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1863    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1864$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1865    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1866$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1867    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1868$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1869    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871    ;;
1872esac
1873  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874$as_echo_n "checking for $2... " >&6; }
1875if eval \${$3+:} false; then :
1876  $as_echo_n "(cached) " >&6
1877else
1878  eval "$3=\$ac_header_compiler"
1879fi
1880eval ac_res=\$$3
1881	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882$as_echo "$ac_res" >&6; }
1883fi
1884  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885
1886} # ac_fn_c_check_header_mongrel
1887
1888# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1889# -------------------------------------------------------
1890# Tests whether HEADER exists and can be compiled using the include files in
1891# INCLUDES, setting the cache variable VAR accordingly.
1892ac_fn_c_check_header_compile ()
1893{
1894  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896$as_echo_n "checking for $2... " >&6; }
1897if eval \${$3+:} false; then :
1898  $as_echo_n "(cached) " >&6
1899else
1900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901/* end confdefs.h.  */
1902$4
1903#include <$2>
1904_ACEOF
1905if ac_fn_c_try_compile "$LINENO"; then :
1906  eval "$3=yes"
1907else
1908  eval "$3=no"
1909fi
1910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911fi
1912eval ac_res=\$$3
1913	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914$as_echo "$ac_res" >&6; }
1915  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916
1917} # ac_fn_c_check_header_compile
1918
1919# ac_fn_c_check_func LINENO FUNC VAR
1920# ----------------------------------
1921# Tests whether FUNC exists, setting the cache variable VAR accordingly
1922ac_fn_c_check_func ()
1923{
1924  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926$as_echo_n "checking for $2... " >&6; }
1927if eval \${$3+:} false; then :
1928  $as_echo_n "(cached) " >&6
1929else
1930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931/* end confdefs.h.  */
1932/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1933   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1934#define $2 innocuous_$2
1935
1936/* System header to define __stub macros and hopefully few prototypes,
1937    which can conflict with char $2 (); below.
1938    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1939    <limits.h> exists even on freestanding compilers.  */
1940
1941#ifdef __STDC__
1942# include <limits.h>
1943#else
1944# include <assert.h>
1945#endif
1946
1947#undef $2
1948
1949/* Override any GCC internal prototype to avoid an error.
1950   Use char because int might match the return type of a GCC
1951   builtin and then its argument prototype would still apply.  */
1952#ifdef __cplusplus
1953extern "C"
1954#endif
1955char $2 ();
1956/* The GNU C library defines this for functions which it implements
1957    to always fail with ENOSYS.  Some functions are actually named
1958    something starting with __ and the normal name is an alias.  */
1959#if defined __stub_$2 || defined __stub___$2
1960choke me
1961#endif
1962
1963int
1964main ()
1965{
1966return $2 ();
1967  ;
1968  return 0;
1969}
1970_ACEOF
1971if ac_fn_c_try_link "$LINENO"; then :
1972  eval "$3=yes"
1973else
1974  eval "$3=no"
1975fi
1976rm -f core conftest.err conftest.$ac_objext \
1977    conftest$ac_exeext conftest.$ac_ext
1978fi
1979eval ac_res=\$$3
1980	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981$as_echo "$ac_res" >&6; }
1982  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983
1984} # ac_fn_c_check_func
1985
1986# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1987# -------------------------------------------
1988# Tests whether TYPE exists after having included INCLUDES, setting cache
1989# variable VAR accordingly.
1990ac_fn_c_check_type ()
1991{
1992  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994$as_echo_n "checking for $2... " >&6; }
1995if eval \${$3+:} false; then :
1996  $as_echo_n "(cached) " >&6
1997else
1998  eval "$3=no"
1999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h.  */
2001$4
2002int
2003main ()
2004{
2005if (sizeof ($2))
2006	 return 0;
2007  ;
2008  return 0;
2009}
2010_ACEOF
2011if ac_fn_c_try_compile "$LINENO"; then :
2012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013/* end confdefs.h.  */
2014$4
2015int
2016main ()
2017{
2018if (sizeof (($2)))
2019	    return 0;
2020  ;
2021  return 0;
2022}
2023_ACEOF
2024if ac_fn_c_try_compile "$LINENO"; then :
2025
2026else
2027  eval "$3=yes"
2028fi
2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030fi
2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032fi
2033eval ac_res=\$$3
2034	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035$as_echo "$ac_res" >&6; }
2036  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037
2038} # ac_fn_c_check_type
2039
2040# ac_fn_c_find_uintX_t LINENO BITS VAR
2041# ------------------------------------
2042# Finds an unsigned integer type with width BITS, setting cache variable VAR
2043# accordingly.
2044ac_fn_c_find_uintX_t ()
2045{
2046  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2048$as_echo_n "checking for uint$2_t... " >&6; }
2049if eval \${$3+:} false; then :
2050  $as_echo_n "(cached) " >&6
2051else
2052  eval "$3=no"
2053     # Order is important - never check a type that is potentially smaller
2054     # than half of the expected target width.
2055     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2056	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2057       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058/* end confdefs.h.  */
2059$ac_includes_default
2060int
2061main ()
2062{
2063static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2064test_array [0] = 0;
2065return test_array [0];
2066
2067  ;
2068  return 0;
2069}
2070_ACEOF
2071if ac_fn_c_try_compile "$LINENO"; then :
2072  case $ac_type in #(
2073  uint$2_t) :
2074    eval "$3=yes" ;; #(
2075  *) :
2076    eval "$3=\$ac_type" ;;
2077esac
2078fi
2079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080       if eval test \"x\$"$3"\" = x"no"; then :
2081
2082else
2083  break
2084fi
2085     done
2086fi
2087eval ac_res=\$$3
2088	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089$as_echo "$ac_res" >&6; }
2090  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091
2092} # ac_fn_c_find_uintX_t
2093
2094# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2095# --------------------------------------------
2096# Tries to find the compile-time value of EXPR in a program that includes
2097# INCLUDES, setting VAR accordingly. Returns whether the value could be
2098# computed
2099ac_fn_c_compute_int ()
2100{
2101  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102  if test "$cross_compiling" = yes; then
2103    # Depending upon the size, compute the lo and hi bounds.
2104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105/* end confdefs.h.  */
2106$4
2107int
2108main ()
2109{
2110static int test_array [1 - 2 * !(($2) >= 0)];
2111test_array [0] = 0;
2112return test_array [0];
2113
2114  ;
2115  return 0;
2116}
2117_ACEOF
2118if ac_fn_c_try_compile "$LINENO"; then :
2119  ac_lo=0 ac_mid=0
2120  while :; do
2121    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122/* end confdefs.h.  */
2123$4
2124int
2125main ()
2126{
2127static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2128test_array [0] = 0;
2129return test_array [0];
2130
2131  ;
2132  return 0;
2133}
2134_ACEOF
2135if ac_fn_c_try_compile "$LINENO"; then :
2136  ac_hi=$ac_mid; break
2137else
2138  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2139			if test $ac_lo -le $ac_mid; then
2140			  ac_lo= ac_hi=
2141			  break
2142			fi
2143			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2144fi
2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146  done
2147else
2148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149/* end confdefs.h.  */
2150$4
2151int
2152main ()
2153{
2154static int test_array [1 - 2 * !(($2) < 0)];
2155test_array [0] = 0;
2156return test_array [0];
2157
2158  ;
2159  return 0;
2160}
2161_ACEOF
2162if ac_fn_c_try_compile "$LINENO"; then :
2163  ac_hi=-1 ac_mid=-1
2164  while :; do
2165    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166/* end confdefs.h.  */
2167$4
2168int
2169main ()
2170{
2171static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2172test_array [0] = 0;
2173return test_array [0];
2174
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179if ac_fn_c_try_compile "$LINENO"; then :
2180  ac_lo=$ac_mid; break
2181else
2182  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2183			if test $ac_mid -le $ac_hi; then
2184			  ac_lo= ac_hi=
2185			  break
2186			fi
2187			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2188fi
2189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190  done
2191else
2192  ac_lo= ac_hi=
2193fi
2194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195fi
2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197# Binary search between lo and hi bounds.
2198while test "x$ac_lo" != "x$ac_hi"; do
2199  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201/* end confdefs.h.  */
2202$4
2203int
2204main ()
2205{
2206static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2207test_array [0] = 0;
2208return test_array [0];
2209
2210  ;
2211  return 0;
2212}
2213_ACEOF
2214if ac_fn_c_try_compile "$LINENO"; then :
2215  ac_hi=$ac_mid
2216else
2217  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2218fi
2219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220done
2221case $ac_lo in #((
2222?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2223'') ac_retval=1 ;;
2224esac
2225  else
2226    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227/* end confdefs.h.  */
2228$4
2229static long int longval () { return $2; }
2230static unsigned long int ulongval () { return $2; }
2231#include <stdio.h>
2232#include <stdlib.h>
2233int
2234main ()
2235{
2236
2237  FILE *f = fopen ("conftest.val", "w");
2238  if (! f)
2239    return 1;
2240  if (($2) < 0)
2241    {
2242      long int i = longval ();
2243      if (i != ($2))
2244	return 1;
2245      fprintf (f, "%ld", i);
2246    }
2247  else
2248    {
2249      unsigned long int i = ulongval ();
2250      if (i != ($2))
2251	return 1;
2252      fprintf (f, "%lu", i);
2253    }
2254  /* Do not output a trailing newline, as this causes \r\n confusion
2255     on some platforms.  */
2256  return ferror (f) || fclose (f) != 0;
2257
2258  ;
2259  return 0;
2260}
2261_ACEOF
2262if ac_fn_c_try_run "$LINENO"; then :
2263  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2264else
2265  ac_retval=1
2266fi
2267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2268  conftest.$ac_objext conftest.beam conftest.$ac_ext
2269rm -f conftest.val
2270
2271  fi
2272  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273  as_fn_set_status $ac_retval
2274
2275} # ac_fn_c_compute_int
2276cat >auto/config.log <<_ACEOF
2277This file contains any messages produced by compilers while
2278running configure, to aid debugging if configure makes a mistake.
2279
2280It was created by $as_me, which was
2281generated by GNU Autoconf 2.69.  Invocation command line was
2282
2283  $ $0 $@
2284
2285_ACEOF
2286exec 5>>auto/config.log
2287{
2288cat <<_ASUNAME
2289## --------- ##
2290## Platform. ##
2291## --------- ##
2292
2293hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2294uname -m = `(uname -m) 2>/dev/null || echo unknown`
2295uname -r = `(uname -r) 2>/dev/null || echo unknown`
2296uname -s = `(uname -s) 2>/dev/null || echo unknown`
2297uname -v = `(uname -v) 2>/dev/null || echo unknown`
2298
2299/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2300/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2301
2302/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2303/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2304/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2305/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2306/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2307/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2308/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2309
2310_ASUNAME
2311
2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315  IFS=$as_save_IFS
2316  test -z "$as_dir" && as_dir=.
2317    $as_echo "PATH: $as_dir"
2318  done
2319IFS=$as_save_IFS
2320
2321} >&5
2322
2323cat >&5 <<_ACEOF
2324
2325
2326## ----------- ##
2327## Core tests. ##
2328## ----------- ##
2329
2330_ACEOF
2331
2332
2333# Keep a trace of the command line.
2334# Strip out --no-create and --no-recursion so they do not pile up.
2335# Strip out --silent because we don't want to record it for future runs.
2336# Also quote any args containing shell meta-characters.
2337# Make two passes to allow for proper duplicate-argument suppression.
2338ac_configure_args=
2339ac_configure_args0=
2340ac_configure_args1=
2341ac_must_keep_next=false
2342for ac_pass in 1 2
2343do
2344  for ac_arg
2345  do
2346    case $ac_arg in
2347    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2348    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2349    | -silent | --silent | --silen | --sile | --sil)
2350      continue ;;
2351    *\'*)
2352      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2353    esac
2354    case $ac_pass in
2355    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2356    2)
2357      as_fn_append ac_configure_args1 " '$ac_arg'"
2358      if test $ac_must_keep_next = true; then
2359	ac_must_keep_next=false # Got value, back to normal.
2360      else
2361	case $ac_arg in
2362	  *=* | --config-cache | -C | -disable-* | --disable-* \
2363	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2364	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2365	  | -with-* | --with-* | -without-* | --without-* | --x)
2366	    case "$ac_configure_args0 " in
2367	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2368	    esac
2369	    ;;
2370	  -* ) ac_must_keep_next=true ;;
2371	esac
2372      fi
2373      as_fn_append ac_configure_args " '$ac_arg'"
2374      ;;
2375    esac
2376  done
2377done
2378{ ac_configure_args0=; unset ac_configure_args0;}
2379{ ac_configure_args1=; unset ac_configure_args1;}
2380
2381# When interrupted or exit'd, cleanup temporary files, and complete
2382# config.log.  We remove comments because anyway the quotes in there
2383# would cause problems or look ugly.
2384# WARNING: Use '\'' to represent an apostrophe within the trap.
2385# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2386trap 'exit_status=$?
2387  # Save into config.log some information that might help in debugging.
2388  {
2389    echo
2390
2391    $as_echo "## ---------------- ##
2392## Cache variables. ##
2393## ---------------- ##"
2394    echo
2395    # The following way of writing the cache mishandles newlines in values,
2396(
2397  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2398    eval ac_val=\$$ac_var
2399    case $ac_val in #(
2400    *${as_nl}*)
2401      case $ac_var in #(
2402      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2403$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2404      esac
2405      case $ac_var in #(
2406      _ | IFS | as_nl) ;; #(
2407      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2408      *) { eval $ac_var=; unset $ac_var;} ;;
2409      esac ;;
2410    esac
2411  done
2412  (set) 2>&1 |
2413    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2414    *${as_nl}ac_space=\ *)
2415      sed -n \
2416	"s/'\''/'\''\\\\'\'''\''/g;
2417	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2418      ;; #(
2419    *)
2420      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2421      ;;
2422    esac |
2423    sort
2424)
2425    echo
2426
2427    $as_echo "## ----------------- ##
2428## Output variables. ##
2429## ----------------- ##"
2430    echo
2431    for ac_var in $ac_subst_vars
2432    do
2433      eval ac_val=\$$ac_var
2434      case $ac_val in
2435      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436      esac
2437      $as_echo "$ac_var='\''$ac_val'\''"
2438    done | sort
2439    echo
2440
2441    if test -n "$ac_subst_files"; then
2442      $as_echo "## ------------------- ##
2443## File substitutions. ##
2444## ------------------- ##"
2445      echo
2446      for ac_var in $ac_subst_files
2447      do
2448	eval ac_val=\$$ac_var
2449	case $ac_val in
2450	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2451	esac
2452	$as_echo "$ac_var='\''$ac_val'\''"
2453      done | sort
2454      echo
2455    fi
2456
2457    if test -s confdefs.h; then
2458      $as_echo "## ----------- ##
2459## confdefs.h. ##
2460## ----------- ##"
2461      echo
2462      cat confdefs.h
2463      echo
2464    fi
2465    test "$ac_signal" != 0 &&
2466      $as_echo "$as_me: caught signal $ac_signal"
2467    $as_echo "$as_me: exit $exit_status"
2468  } >&5
2469  rm -f core *.core core.conftest.* &&
2470    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2471    exit $exit_status
2472' 0
2473for ac_signal in 1 2 13 15; do
2474  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2475done
2476ac_signal=0
2477
2478# confdefs.h avoids OS command line length limits that DEFS can exceed.
2479rm -f -r conftest* confdefs.h
2480
2481$as_echo "/* confdefs.h */" > confdefs.h
2482
2483# Predefined preprocessor variables.
2484
2485cat >>confdefs.h <<_ACEOF
2486#define PACKAGE_NAME "$PACKAGE_NAME"
2487_ACEOF
2488
2489cat >>confdefs.h <<_ACEOF
2490#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2491_ACEOF
2492
2493cat >>confdefs.h <<_ACEOF
2494#define PACKAGE_VERSION "$PACKAGE_VERSION"
2495_ACEOF
2496
2497cat >>confdefs.h <<_ACEOF
2498#define PACKAGE_STRING "$PACKAGE_STRING"
2499_ACEOF
2500
2501cat >>confdefs.h <<_ACEOF
2502#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2503_ACEOF
2504
2505cat >>confdefs.h <<_ACEOF
2506#define PACKAGE_URL "$PACKAGE_URL"
2507_ACEOF
2508
2509
2510# Let the site file select an alternate cache file if it wants to.
2511# Prefer an explicitly selected file to automatically selected ones.
2512ac_site_file1=NONE
2513ac_site_file2=NONE
2514if test -n "$CONFIG_SITE"; then
2515  # We do not want a PATH search for config.site.
2516  case $CONFIG_SITE in #((
2517    -*)  ac_site_file1=./$CONFIG_SITE;;
2518    */*) ac_site_file1=$CONFIG_SITE;;
2519    *)   ac_site_file1=./$CONFIG_SITE;;
2520  esac
2521elif test "x$prefix" != xNONE; then
2522  ac_site_file1=$prefix/share/config.site
2523  ac_site_file2=$prefix/etc/config.site
2524else
2525  ac_site_file1=$ac_default_prefix/share/config.site
2526  ac_site_file2=$ac_default_prefix/etc/config.site
2527fi
2528for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2529do
2530  test "x$ac_site_file" = xNONE && continue
2531  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2532    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2533$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2534    sed 's/^/| /' "$ac_site_file" >&5
2535    . "$ac_site_file" \
2536      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2538as_fn_error $? "failed to load site script $ac_site_file
2539See \`config.log' for more details" "$LINENO" 5; }
2540  fi
2541done
2542
2543if test -r "$cache_file"; then
2544  # Some versions of bash will fail to source /dev/null (special files
2545  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2546  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2547    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2548$as_echo "$as_me: loading cache $cache_file" >&6;}
2549    case $cache_file in
2550      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2551      *)                      . "./$cache_file";;
2552    esac
2553  fi
2554else
2555  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2556$as_echo "$as_me: creating cache $cache_file" >&6;}
2557  >$cache_file
2558fi
2559
2560# Check that the precious variables saved in the cache have kept the same
2561# value.
2562ac_cache_corrupted=false
2563for ac_var in $ac_precious_vars; do
2564  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2565  eval ac_new_set=\$ac_env_${ac_var}_set
2566  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2567  eval ac_new_val=\$ac_env_${ac_var}_value
2568  case $ac_old_set,$ac_new_set in
2569    set,)
2570      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2571$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2572      ac_cache_corrupted=: ;;
2573    ,set)
2574      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2575$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2576      ac_cache_corrupted=: ;;
2577    ,);;
2578    *)
2579      if test "x$ac_old_val" != "x$ac_new_val"; then
2580	# differences in whitespace do not lead to failure.
2581	ac_old_val_w=`echo x $ac_old_val`
2582	ac_new_val_w=`echo x $ac_new_val`
2583	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2584	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2585$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2586	  ac_cache_corrupted=:
2587	else
2588	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2589$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2590	  eval $ac_var=\$ac_old_val
2591	fi
2592	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2593$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2594	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2595$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2596      fi;;
2597  esac
2598  # Pass precious variables to config.status.
2599  if test "$ac_new_set" = set; then
2600    case $ac_new_val in
2601    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2602    *) ac_arg=$ac_var=$ac_new_val ;;
2603    esac
2604    case " $ac_configure_args " in
2605      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2606      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2607    esac
2608  fi
2609done
2610if $ac_cache_corrupted; then
2611  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2614$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2615  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2616fi
2617## -------------------- ##
2618## Main body of script. ##
2619## -------------------- ##
2620
2621ac_ext=c
2622ac_cpp='$CPP $CPPFLAGS'
2623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626
2627
2628ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
2629
2630
2631$as_echo "#define UNIX 1" >>confdefs.h
2632
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2634$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2635set x ${MAKE-make}
2636ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2637if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2638  $as_echo_n "(cached) " >&6
2639else
2640  cat >conftest.make <<\_ACEOF
2641SHELL = /bin/sh
2642all:
2643	@echo '@@@%%%=$(MAKE)=@@@%%%'
2644_ACEOF
2645# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2646case `${MAKE-make} -f conftest.make 2>/dev/null` in
2647  *@@@%%%=?*=@@@%%%*)
2648    eval ac_cv_prog_make_${ac_make}_set=yes;;
2649  *)
2650    eval ac_cv_prog_make_${ac_make}_set=no;;
2651esac
2652rm -f conftest.make
2653fi
2654if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2656$as_echo "yes" >&6; }
2657  SET_MAKE=
2658else
2659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660$as_echo "no" >&6; }
2661  SET_MAKE="MAKE=${MAKE-make}"
2662fi
2663
2664
2665ac_ext=c
2666ac_cpp='$CPP $CPPFLAGS'
2667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2669ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670if test -n "$ac_tool_prefix"; then
2671  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2672set dummy ${ac_tool_prefix}gcc; ac_word=$2
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674$as_echo_n "checking for $ac_word... " >&6; }
2675if ${ac_cv_prog_CC+:} false; then :
2676  $as_echo_n "(cached) " >&6
2677else
2678  if test -n "$CC"; then
2679  ac_cv_prog_CC="$CC" # Let the user override the test.
2680else
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684  IFS=$as_save_IFS
2685  test -z "$as_dir" && as_dir=.
2686    for ac_exec_ext in '' $ac_executable_extensions; do
2687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690    break 2
2691  fi
2692done
2693  done
2694IFS=$as_save_IFS
2695
2696fi
2697fi
2698CC=$ac_cv_prog_CC
2699if test -n "$CC"; then
2700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2701$as_echo "$CC" >&6; }
2702else
2703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704$as_echo "no" >&6; }
2705fi
2706
2707
2708fi
2709if test -z "$ac_cv_prog_CC"; then
2710  ac_ct_CC=$CC
2711  # Extract the first word of "gcc", so it can be a program name with args.
2712set dummy gcc; ac_word=$2
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714$as_echo_n "checking for $ac_word... " >&6; }
2715if ${ac_cv_prog_ac_ct_CC+:} false; then :
2716  $as_echo_n "(cached) " >&6
2717else
2718  if test -n "$ac_ct_CC"; then
2719  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2720else
2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH
2723do
2724  IFS=$as_save_IFS
2725  test -z "$as_dir" && as_dir=.
2726    for ac_exec_ext in '' $ac_executable_extensions; do
2727  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728    ac_cv_prog_ac_ct_CC="gcc"
2729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730    break 2
2731  fi
2732done
2733  done
2734IFS=$as_save_IFS
2735
2736fi
2737fi
2738ac_ct_CC=$ac_cv_prog_ac_ct_CC
2739if test -n "$ac_ct_CC"; then
2740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2741$as_echo "$ac_ct_CC" >&6; }
2742else
2743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744$as_echo "no" >&6; }
2745fi
2746
2747  if test "x$ac_ct_CC" = x; then
2748    CC=""
2749  else
2750    case $cross_compiling:$ac_tool_warned in
2751yes:)
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2754ac_tool_warned=yes ;;
2755esac
2756    CC=$ac_ct_CC
2757  fi
2758else
2759  CC="$ac_cv_prog_CC"
2760fi
2761
2762if test -z "$CC"; then
2763          if test -n "$ac_tool_prefix"; then
2764    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2765set dummy ${ac_tool_prefix}cc; ac_word=$2
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767$as_echo_n "checking for $ac_word... " >&6; }
2768if ${ac_cv_prog_CC+:} false; then :
2769  $as_echo_n "(cached) " >&6
2770else
2771  if test -n "$CC"; then
2772  ac_cv_prog_CC="$CC" # Let the user override the test.
2773else
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777  IFS=$as_save_IFS
2778  test -z "$as_dir" && as_dir=.
2779    for ac_exec_ext in '' $ac_executable_extensions; do
2780  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781    ac_cv_prog_CC="${ac_tool_prefix}cc"
2782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783    break 2
2784  fi
2785done
2786  done
2787IFS=$as_save_IFS
2788
2789fi
2790fi
2791CC=$ac_cv_prog_CC
2792if test -n "$CC"; then
2793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2794$as_echo "$CC" >&6; }
2795else
2796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797$as_echo "no" >&6; }
2798fi
2799
2800
2801  fi
2802fi
2803if test -z "$CC"; then
2804  # Extract the first word of "cc", so it can be a program name with args.
2805set dummy cc; ac_word=$2
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807$as_echo_n "checking for $ac_word... " >&6; }
2808if ${ac_cv_prog_CC+:} false; then :
2809  $as_echo_n "(cached) " >&6
2810else
2811  if test -n "$CC"; then
2812  ac_cv_prog_CC="$CC" # Let the user override the test.
2813else
2814  ac_prog_rejected=no
2815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816for as_dir in $PATH
2817do
2818  IFS=$as_save_IFS
2819  test -z "$as_dir" && as_dir=.
2820    for ac_exec_ext in '' $ac_executable_extensions; do
2821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2823       ac_prog_rejected=yes
2824       continue
2825     fi
2826    ac_cv_prog_CC="cc"
2827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828    break 2
2829  fi
2830done
2831  done
2832IFS=$as_save_IFS
2833
2834if test $ac_prog_rejected = yes; then
2835  # We found a bogon in the path, so make sure we never use it.
2836  set dummy $ac_cv_prog_CC
2837  shift
2838  if test $# != 0; then
2839    # We chose a different compiler from the bogus one.
2840    # However, it has the same basename, so the bogon will be chosen
2841    # first if we set CC to just the basename; use the full file name.
2842    shift
2843    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2844  fi
2845fi
2846fi
2847fi
2848CC=$ac_cv_prog_CC
2849if test -n "$CC"; then
2850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2851$as_echo "$CC" >&6; }
2852else
2853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854$as_echo "no" >&6; }
2855fi
2856
2857
2858fi
2859if test -z "$CC"; then
2860  if test -n "$ac_tool_prefix"; then
2861  for ac_prog in cl.exe
2862  do
2863    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2864set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866$as_echo_n "checking for $ac_word... " >&6; }
2867if ${ac_cv_prog_CC+:} false; then :
2868  $as_echo_n "(cached) " >&6
2869else
2870  if test -n "$CC"; then
2871  ac_cv_prog_CC="$CC" # Let the user override the test.
2872else
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876  IFS=$as_save_IFS
2877  test -z "$as_dir" && as_dir=.
2878    for ac_exec_ext in '' $ac_executable_extensions; do
2879  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2880    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2881    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882    break 2
2883  fi
2884done
2885  done
2886IFS=$as_save_IFS
2887
2888fi
2889fi
2890CC=$ac_cv_prog_CC
2891if test -n "$CC"; then
2892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2893$as_echo "$CC" >&6; }
2894else
2895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896$as_echo "no" >&6; }
2897fi
2898
2899
2900    test -n "$CC" && break
2901  done
2902fi
2903if test -z "$CC"; then
2904  ac_ct_CC=$CC
2905  for ac_prog in cl.exe
2906do
2907  # Extract the first word of "$ac_prog", so it can be a program name with args.
2908set dummy $ac_prog; ac_word=$2
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910$as_echo_n "checking for $ac_word... " >&6; }
2911if ${ac_cv_prog_ac_ct_CC+:} false; then :
2912  $as_echo_n "(cached) " >&6
2913else
2914  if test -n "$ac_ct_CC"; then
2915  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2916else
2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918for as_dir in $PATH
2919do
2920  IFS=$as_save_IFS
2921  test -z "$as_dir" && as_dir=.
2922    for ac_exec_ext in '' $ac_executable_extensions; do
2923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2924    ac_cv_prog_ac_ct_CC="$ac_prog"
2925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926    break 2
2927  fi
2928done
2929  done
2930IFS=$as_save_IFS
2931
2932fi
2933fi
2934ac_ct_CC=$ac_cv_prog_ac_ct_CC
2935if test -n "$ac_ct_CC"; then
2936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2937$as_echo "$ac_ct_CC" >&6; }
2938else
2939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940$as_echo "no" >&6; }
2941fi
2942
2943
2944  test -n "$ac_ct_CC" && break
2945done
2946
2947  if test "x$ac_ct_CC" = x; then
2948    CC=""
2949  else
2950    case $cross_compiling:$ac_tool_warned in
2951yes:)
2952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2954ac_tool_warned=yes ;;
2955esac
2956    CC=$ac_ct_CC
2957  fi
2958fi
2959
2960fi
2961
2962
2963test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2965as_fn_error $? "no acceptable C compiler found in \$PATH
2966See \`config.log' for more details" "$LINENO" 5; }
2967
2968# Provide some information about the compiler.
2969$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2970set X $ac_compile
2971ac_compiler=$2
2972for ac_option in --version -v -V -qversion; do
2973  { { ac_try="$ac_compiler $ac_option >&5"
2974case "(($ac_try" in
2975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976  *) ac_try_echo=$ac_try;;
2977esac
2978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2979$as_echo "$ac_try_echo"; } >&5
2980  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2981  ac_status=$?
2982  if test -s conftest.err; then
2983    sed '10a\
2984... rest of stderr output deleted ...
2985         10q' conftest.err >conftest.er1
2986    cat conftest.er1 >&5
2987  fi
2988  rm -f conftest.er1 conftest.err
2989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2990  test $ac_status = 0; }
2991done
2992
2993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2994/* end confdefs.h.  */
2995
2996int
2997main ()
2998{
2999
3000  ;
3001  return 0;
3002}
3003_ACEOF
3004ac_clean_files_save=$ac_clean_files
3005ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3006# Try to create an executable without -o first, disregard a.out.
3007# It will help us diagnose broken compilers, and finding out an intuition
3008# of exeext.
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3010$as_echo_n "checking whether the C compiler works... " >&6; }
3011ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3012
3013# The possible output files:
3014ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3015
3016ac_rmfiles=
3017for ac_file in $ac_files
3018do
3019  case $ac_file in
3020    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3021    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3022  esac
3023done
3024rm -f $ac_rmfiles
3025
3026if { { ac_try="$ac_link_default"
3027case "(($ac_try" in
3028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029  *) ac_try_echo=$ac_try;;
3030esac
3031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3032$as_echo "$ac_try_echo"; } >&5
3033  (eval "$ac_link_default") 2>&5
3034  ac_status=$?
3035  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3036  test $ac_status = 0; }; then :
3037  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3038# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3039# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3040# so that the user can short-circuit this test for compilers unknown to
3041# Autoconf.
3042for ac_file in $ac_files ''
3043do
3044  test -f "$ac_file" || continue
3045  case $ac_file in
3046    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3047	;;
3048    [ab].out )
3049	# We found the default executable, but exeext='' is most
3050	# certainly right.
3051	break;;
3052    *.* )
3053	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3054	then :; else
3055	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3056	fi
3057	# We set ac_cv_exeext here because the later test for it is not
3058	# safe: cross compilers may not add the suffix if given an `-o'
3059	# argument, so we may need to know it at that point already.
3060	# Even if this section looks crufty: it has the advantage of
3061	# actually working.
3062	break;;
3063    * )
3064	break;;
3065  esac
3066done
3067test "$ac_cv_exeext" = no && ac_cv_exeext=
3068
3069else
3070  ac_file=''
3071fi
3072if test -z "$ac_file"; then :
3073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074$as_echo "no" >&6; }
3075$as_echo "$as_me: failed program was:" >&5
3076sed 's/^/| /' conftest.$ac_ext >&5
3077
3078{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3080as_fn_error 77 "C compiler cannot create executables
3081See \`config.log' for more details" "$LINENO" 5; }
3082else
3083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3084$as_echo "yes" >&6; }
3085fi
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3087$as_echo_n "checking for C compiler default output file name... " >&6; }
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3089$as_echo "$ac_file" >&6; }
3090ac_exeext=$ac_cv_exeext
3091
3092rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3093ac_clean_files=$ac_clean_files_save
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3095$as_echo_n "checking for suffix of executables... " >&6; }
3096if { { ac_try="$ac_link"
3097case "(($ac_try" in
3098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099  *) ac_try_echo=$ac_try;;
3100esac
3101eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102$as_echo "$ac_try_echo"; } >&5
3103  (eval "$ac_link") 2>&5
3104  ac_status=$?
3105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106  test $ac_status = 0; }; then :
3107  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3108# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3109# work properly (i.e., refer to `conftest.exe'), while it won't with
3110# `rm'.
3111for ac_file in conftest.exe conftest conftest.*; do
3112  test -f "$ac_file" || continue
3113  case $ac_file in
3114    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3115    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3116	  break;;
3117    * ) break;;
3118  esac
3119done
3120else
3121  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3123as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3124See \`config.log' for more details" "$LINENO" 5; }
3125fi
3126rm -f conftest conftest$ac_cv_exeext
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3128$as_echo "$ac_cv_exeext" >&6; }
3129
3130rm -f conftest.$ac_ext
3131EXEEXT=$ac_cv_exeext
3132ac_exeext=$EXEEXT
3133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134/* end confdefs.h.  */
3135#include <stdio.h>
3136int
3137main ()
3138{
3139FILE *f = fopen ("conftest.out", "w");
3140 return ferror (f) || fclose (f) != 0;
3141
3142  ;
3143  return 0;
3144}
3145_ACEOF
3146ac_clean_files="$ac_clean_files conftest.out"
3147# Check that the compiler produces executables we can run.  If not, either
3148# the compiler is broken, or we cross compile.
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3150$as_echo_n "checking whether we are cross compiling... " >&6; }
3151if test "$cross_compiling" != yes; then
3152  { { ac_try="$ac_link"
3153case "(($ac_try" in
3154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155  *) ac_try_echo=$ac_try;;
3156esac
3157eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158$as_echo "$ac_try_echo"; } >&5
3159  (eval "$ac_link") 2>&5
3160  ac_status=$?
3161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162  test $ac_status = 0; }
3163  if { ac_try='./conftest$ac_cv_exeext'
3164  { { case "(($ac_try" in
3165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166  *) ac_try_echo=$ac_try;;
3167esac
3168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169$as_echo "$ac_try_echo"; } >&5
3170  (eval "$ac_try") 2>&5
3171  ac_status=$?
3172  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173  test $ac_status = 0; }; }; then
3174    cross_compiling=no
3175  else
3176    if test "$cross_compiling" = maybe; then
3177	cross_compiling=yes
3178    else
3179	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181as_fn_error $? "cannot run C compiled programs.
3182If you meant to cross compile, use \`--host'.
3183See \`config.log' for more details" "$LINENO" 5; }
3184    fi
3185  fi
3186fi
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3188$as_echo "$cross_compiling" >&6; }
3189
3190rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3191ac_clean_files=$ac_clean_files_save
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3193$as_echo_n "checking for suffix of object files... " >&6; }
3194if ${ac_cv_objext+:} false; then :
3195  $as_echo_n "(cached) " >&6
3196else
3197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198/* end confdefs.h.  */
3199
3200int
3201main ()
3202{
3203
3204  ;
3205  return 0;
3206}
3207_ACEOF
3208rm -f conftest.o conftest.obj
3209if { { ac_try="$ac_compile"
3210case "(($ac_try" in
3211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212  *) ac_try_echo=$ac_try;;
3213esac
3214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215$as_echo "$ac_try_echo"; } >&5
3216  (eval "$ac_compile") 2>&5
3217  ac_status=$?
3218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219  test $ac_status = 0; }; then :
3220  for ac_file in conftest.o conftest.obj conftest.*; do
3221  test -f "$ac_file" || continue;
3222  case $ac_file in
3223    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3224    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3225       break;;
3226  esac
3227done
3228else
3229  $as_echo "$as_me: failed program was:" >&5
3230sed 's/^/| /' conftest.$ac_ext >&5
3231
3232{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234as_fn_error $? "cannot compute suffix of object files: cannot compile
3235See \`config.log' for more details" "$LINENO" 5; }
3236fi
3237rm -f conftest.$ac_cv_objext conftest.$ac_ext
3238fi
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3240$as_echo "$ac_cv_objext" >&6; }
3241OBJEXT=$ac_cv_objext
3242ac_objext=$OBJEXT
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3244$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3245if ${ac_cv_c_compiler_gnu+:} false; then :
3246  $as_echo_n "(cached) " >&6
3247else
3248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249/* end confdefs.h.  */
3250
3251int
3252main ()
3253{
3254#ifndef __GNUC__
3255       choke me
3256#endif
3257
3258  ;
3259  return 0;
3260}
3261_ACEOF
3262if ac_fn_c_try_compile "$LINENO"; then :
3263  ac_compiler_gnu=yes
3264else
3265  ac_compiler_gnu=no
3266fi
3267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268ac_cv_c_compiler_gnu=$ac_compiler_gnu
3269
3270fi
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3272$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3273if test $ac_compiler_gnu = yes; then
3274  GCC=yes
3275else
3276  GCC=
3277fi
3278ac_test_CFLAGS=${CFLAGS+set}
3279ac_save_CFLAGS=$CFLAGS
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3281$as_echo_n "checking whether $CC accepts -g... " >&6; }
3282if ${ac_cv_prog_cc_g+:} false; then :
3283  $as_echo_n "(cached) " >&6
3284else
3285  ac_save_c_werror_flag=$ac_c_werror_flag
3286   ac_c_werror_flag=yes
3287   ac_cv_prog_cc_g=no
3288   CFLAGS="-g"
3289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290/* end confdefs.h.  */
3291
3292int
3293main ()
3294{
3295
3296  ;
3297  return 0;
3298}
3299_ACEOF
3300if ac_fn_c_try_compile "$LINENO"; then :
3301  ac_cv_prog_cc_g=yes
3302else
3303  CFLAGS=""
3304      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305/* end confdefs.h.  */
3306
3307int
3308main ()
3309{
3310
3311  ;
3312  return 0;
3313}
3314_ACEOF
3315if ac_fn_c_try_compile "$LINENO"; then :
3316
3317else
3318  ac_c_werror_flag=$ac_save_c_werror_flag
3319	 CFLAGS="-g"
3320	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321/* end confdefs.h.  */
3322
3323int
3324main ()
3325{
3326
3327  ;
3328  return 0;
3329}
3330_ACEOF
3331if ac_fn_c_try_compile "$LINENO"; then :
3332  ac_cv_prog_cc_g=yes
3333fi
3334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335fi
3336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337fi
3338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339   ac_c_werror_flag=$ac_save_c_werror_flag
3340fi
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3342$as_echo "$ac_cv_prog_cc_g" >&6; }
3343if test "$ac_test_CFLAGS" = set; then
3344  CFLAGS=$ac_save_CFLAGS
3345elif test $ac_cv_prog_cc_g = yes; then
3346  if test "$GCC" = yes; then
3347    CFLAGS="-g -O2"
3348  else
3349    CFLAGS="-g"
3350  fi
3351else
3352  if test "$GCC" = yes; then
3353    CFLAGS="-O2"
3354  else
3355    CFLAGS=
3356  fi
3357fi
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3359$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3360if ${ac_cv_prog_cc_c89+:} false; then :
3361  $as_echo_n "(cached) " >&6
3362else
3363  ac_cv_prog_cc_c89=no
3364ac_save_CC=$CC
3365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366/* end confdefs.h.  */
3367#include <stdarg.h>
3368#include <stdio.h>
3369struct stat;
3370/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3371struct buf { int x; };
3372FILE * (*rcsopen) (struct buf *, struct stat *, int);
3373static char *e (p, i)
3374     char **p;
3375     int i;
3376{
3377  return p[i];
3378}
3379static char *f (char * (*g) (char **, int), char **p, ...)
3380{
3381  char *s;
3382  va_list v;
3383  va_start (v,p);
3384  s = g (p, va_arg (v,int));
3385  va_end (v);
3386  return s;
3387}
3388
3389/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3390   function prototypes and stuff, but not '\xHH' hex character constants.
3391   These don't provoke an error unfortunately, instead are silently treated
3392   as 'x'.  The following induces an error, until -std is added to get
3393   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3394   array size at least.  It's necessary to write '\x00'==0 to get something
3395   that's true only with -std.  */
3396int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3397
3398/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3399   inside strings and character constants.  */
3400#define FOO(x) 'x'
3401int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3402
3403int test (int i, double x);
3404struct s1 {int (*f) (int a);};
3405struct s2 {int (*f) (double a);};
3406int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3407int argc;
3408char **argv;
3409int
3410main ()
3411{
3412return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3413  ;
3414  return 0;
3415}
3416_ACEOF
3417for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3418	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3419do
3420  CC="$ac_save_CC $ac_arg"
3421  if ac_fn_c_try_compile "$LINENO"; then :
3422  ac_cv_prog_cc_c89=$ac_arg
3423fi
3424rm -f core conftest.err conftest.$ac_objext
3425  test "x$ac_cv_prog_cc_c89" != "xno" && break
3426done
3427rm -f conftest.$ac_ext
3428CC=$ac_save_CC
3429
3430fi
3431# AC_CACHE_VAL
3432case "x$ac_cv_prog_cc_c89" in
3433  x)
3434    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3435$as_echo "none needed" >&6; } ;;
3436  xno)
3437    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3438$as_echo "unsupported" >&6; } ;;
3439  *)
3440    CC="$CC $ac_cv_prog_cc_c89"
3441    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3442$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3443esac
3444if test "x$ac_cv_prog_cc_c89" != xno; then :
3445
3446fi
3447
3448ac_ext=c
3449ac_cpp='$CPP $CPPFLAGS'
3450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453		ac_ext=c
3454ac_cpp='$CPP $CPPFLAGS'
3455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3459$as_echo_n "checking how to run the C preprocessor... " >&6; }
3460# On Suns, sometimes $CPP names a directory.
3461if test -n "$CPP" && test -d "$CPP"; then
3462  CPP=
3463fi
3464if test -z "$CPP"; then
3465  if ${ac_cv_prog_CPP+:} false; then :
3466  $as_echo_n "(cached) " >&6
3467else
3468      # Double quotes because CPP needs to be expanded
3469    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3470    do
3471      ac_preproc_ok=false
3472for ac_c_preproc_warn_flag in '' yes
3473do
3474  # Use a header file that comes with gcc, so configuring glibc
3475  # with a fresh cross-compiler works.
3476  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3477  # <limits.h> exists even on freestanding compilers.
3478  # On the NeXT, cc -E runs the code through the compiler's parser,
3479  # not just through cpp. "Syntax error" is here to catch this case.
3480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481/* end confdefs.h.  */
3482#ifdef __STDC__
3483# include <limits.h>
3484#else
3485# include <assert.h>
3486#endif
3487		     Syntax error
3488_ACEOF
3489if ac_fn_c_try_cpp "$LINENO"; then :
3490
3491else
3492  # Broken: fails on valid input.
3493continue
3494fi
3495rm -f conftest.err conftest.i conftest.$ac_ext
3496
3497  # OK, works on sane cases.  Now check whether nonexistent headers
3498  # can be detected and how.
3499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500/* end confdefs.h.  */
3501#include <ac_nonexistent.h>
3502_ACEOF
3503if ac_fn_c_try_cpp "$LINENO"; then :
3504  # Broken: success on invalid input.
3505continue
3506else
3507  # Passes both tests.
3508ac_preproc_ok=:
3509break
3510fi
3511rm -f conftest.err conftest.i conftest.$ac_ext
3512
3513done
3514# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515rm -f conftest.i conftest.err conftest.$ac_ext
3516if $ac_preproc_ok; then :
3517  break
3518fi
3519
3520    done
3521    ac_cv_prog_CPP=$CPP
3522
3523fi
3524  CPP=$ac_cv_prog_CPP
3525else
3526  ac_cv_prog_CPP=$CPP
3527fi
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3529$as_echo "$CPP" >&6; }
3530ac_preproc_ok=false
3531for ac_c_preproc_warn_flag in '' yes
3532do
3533  # Use a header file that comes with gcc, so configuring glibc
3534  # with a fresh cross-compiler works.
3535  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536  # <limits.h> exists even on freestanding compilers.
3537  # On the NeXT, cc -E runs the code through the compiler's parser,
3538  # not just through cpp. "Syntax error" is here to catch this case.
3539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540/* end confdefs.h.  */
3541#ifdef __STDC__
3542# include <limits.h>
3543#else
3544# include <assert.h>
3545#endif
3546		     Syntax error
3547_ACEOF
3548if ac_fn_c_try_cpp "$LINENO"; then :
3549
3550else
3551  # Broken: fails on valid input.
3552continue
3553fi
3554rm -f conftest.err conftest.i conftest.$ac_ext
3555
3556  # OK, works on sane cases.  Now check whether nonexistent headers
3557  # can be detected and how.
3558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559/* end confdefs.h.  */
3560#include <ac_nonexistent.h>
3561_ACEOF
3562if ac_fn_c_try_cpp "$LINENO"; then :
3563  # Broken: success on invalid input.
3564continue
3565else
3566  # Passes both tests.
3567ac_preproc_ok=:
3568break
3569fi
3570rm -f conftest.err conftest.i conftest.$ac_ext
3571
3572done
3573# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3574rm -f conftest.i conftest.err conftest.$ac_ext
3575if $ac_preproc_ok; then :
3576
3577else
3578  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3581See \`config.log' for more details" "$LINENO" 5; }
3582fi
3583
3584ac_ext=c
3585ac_cpp='$CPP $CPPFLAGS'
3586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588ac_compiler_gnu=$ac_cv_c_compiler_gnu
3589
3590
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3592$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3593if ${ac_cv_path_GREP+:} false; then :
3594  $as_echo_n "(cached) " >&6
3595else
3596  if test -z "$GREP"; then
3597  ac_path_GREP_found=false
3598  # Loop through the user's path and test for each of PROGNAME-LIST
3599  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3601do
3602  IFS=$as_save_IFS
3603  test -z "$as_dir" && as_dir=.
3604    for ac_prog in grep ggrep; do
3605    for ac_exec_ext in '' $ac_executable_extensions; do
3606      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3607      as_fn_executable_p "$ac_path_GREP" || continue
3608# Check for GNU ac_path_GREP and select it if it is found.
3609  # Check for GNU $ac_path_GREP
3610case `"$ac_path_GREP" --version 2>&1` in
3611*GNU*)
3612  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3613*)
3614  ac_count=0
3615  $as_echo_n 0123456789 >"conftest.in"
3616  while :
3617  do
3618    cat "conftest.in" "conftest.in" >"conftest.tmp"
3619    mv "conftest.tmp" "conftest.in"
3620    cp "conftest.in" "conftest.nl"
3621    $as_echo 'GREP' >> "conftest.nl"
3622    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3623    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3624    as_fn_arith $ac_count + 1 && ac_count=$as_val
3625    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3626      # Best one so far, save it but keep looking for a better one
3627      ac_cv_path_GREP="$ac_path_GREP"
3628      ac_path_GREP_max=$ac_count
3629    fi
3630    # 10*(2^10) chars as input seems more than enough
3631    test $ac_count -gt 10 && break
3632  done
3633  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3634esac
3635
3636      $ac_path_GREP_found && break 3
3637    done
3638  done
3639  done
3640IFS=$as_save_IFS
3641  if test -z "$ac_cv_path_GREP"; then
3642    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3643  fi
3644else
3645  ac_cv_path_GREP=$GREP
3646fi
3647
3648fi
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3650$as_echo "$ac_cv_path_GREP" >&6; }
3651 GREP="$ac_cv_path_GREP"
3652
3653
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3655$as_echo_n "checking for egrep... " >&6; }
3656if ${ac_cv_path_EGREP+:} false; then :
3657  $as_echo_n "(cached) " >&6
3658else
3659  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3660   then ac_cv_path_EGREP="$GREP -E"
3661   else
3662     if test -z "$EGREP"; then
3663  ac_path_EGREP_found=false
3664  # Loop through the user's path and test for each of PROGNAME-LIST
3665  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3667do
3668  IFS=$as_save_IFS
3669  test -z "$as_dir" && as_dir=.
3670    for ac_prog in egrep; do
3671    for ac_exec_ext in '' $ac_executable_extensions; do
3672      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3673      as_fn_executable_p "$ac_path_EGREP" || continue
3674# Check for GNU ac_path_EGREP and select it if it is found.
3675  # Check for GNU $ac_path_EGREP
3676case `"$ac_path_EGREP" --version 2>&1` in
3677*GNU*)
3678  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3679*)
3680  ac_count=0
3681  $as_echo_n 0123456789 >"conftest.in"
3682  while :
3683  do
3684    cat "conftest.in" "conftest.in" >"conftest.tmp"
3685    mv "conftest.tmp" "conftest.in"
3686    cp "conftest.in" "conftest.nl"
3687    $as_echo 'EGREP' >> "conftest.nl"
3688    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3689    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3690    as_fn_arith $ac_count + 1 && ac_count=$as_val
3691    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3692      # Best one so far, save it but keep looking for a better one
3693      ac_cv_path_EGREP="$ac_path_EGREP"
3694      ac_path_EGREP_max=$ac_count
3695    fi
3696    # 10*(2^10) chars as input seems more than enough
3697    test $ac_count -gt 10 && break
3698  done
3699  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3700esac
3701
3702      $ac_path_EGREP_found && break 3
3703    done
3704  done
3705  done
3706IFS=$as_save_IFS
3707  if test -z "$ac_cv_path_EGREP"; then
3708    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3709  fi
3710else
3711  ac_cv_path_EGREP=$EGREP
3712fi
3713
3714   fi
3715fi
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3717$as_echo "$ac_cv_path_EGREP" >&6; }
3718 EGREP="$ac_cv_path_EGREP"
3719
3720
3721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722/* end confdefs.h.  */
3723
3724_ACEOF
3725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3726  $EGREP "" >/dev/null 2>&1; then :
3727
3728fi
3729rm -f conftest*
3730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3731$as_echo_n "checking for fgrep... " >&6; }
3732if ${ac_cv_path_FGREP+:} false; then :
3733  $as_echo_n "(cached) " >&6
3734else
3735  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3736   then ac_cv_path_FGREP="$GREP -F"
3737   else
3738     if test -z "$FGREP"; then
3739  ac_path_FGREP_found=false
3740  # Loop through the user's path and test for each of PROGNAME-LIST
3741  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3743do
3744  IFS=$as_save_IFS
3745  test -z "$as_dir" && as_dir=.
3746    for ac_prog in fgrep; do
3747    for ac_exec_ext in '' $ac_executable_extensions; do
3748      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3749      as_fn_executable_p "$ac_path_FGREP" || continue
3750# Check for GNU ac_path_FGREP and select it if it is found.
3751  # Check for GNU $ac_path_FGREP
3752case `"$ac_path_FGREP" --version 2>&1` in
3753*GNU*)
3754  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3755*)
3756  ac_count=0
3757  $as_echo_n 0123456789 >"conftest.in"
3758  while :
3759  do
3760    cat "conftest.in" "conftest.in" >"conftest.tmp"
3761    mv "conftest.tmp" "conftest.in"
3762    cp "conftest.in" "conftest.nl"
3763    $as_echo 'FGREP' >> "conftest.nl"
3764    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3765    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3766    as_fn_arith $ac_count + 1 && ac_count=$as_val
3767    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3768      # Best one so far, save it but keep looking for a better one
3769      ac_cv_path_FGREP="$ac_path_FGREP"
3770      ac_path_FGREP_max=$ac_count
3771    fi
3772    # 10*(2^10) chars as input seems more than enough
3773    test $ac_count -gt 10 && break
3774  done
3775  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3776esac
3777
3778      $ac_path_FGREP_found && break 3
3779    done
3780  done
3781  done
3782IFS=$as_save_IFS
3783  if test -z "$ac_cv_path_FGREP"; then
3784    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3785  fi
3786else
3787  ac_cv_path_FGREP=$FGREP
3788fi
3789
3790   fi
3791fi
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3793$as_echo "$ac_cv_path_FGREP" >&6; }
3794 FGREP="$ac_cv_path_FGREP"
3795
3796		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3797$as_echo_n "checking for library containing strerror... " >&6; }
3798if ${ac_cv_search_strerror+:} false; then :
3799  $as_echo_n "(cached) " >&6
3800else
3801  ac_func_search_save_LIBS=$LIBS
3802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803/* end confdefs.h.  */
3804
3805/* Override any GCC internal prototype to avoid an error.
3806   Use char because int might match the return type of a GCC
3807   builtin and then its argument prototype would still apply.  */
3808#ifdef __cplusplus
3809extern "C"
3810#endif
3811char strerror ();
3812int
3813main ()
3814{
3815return strerror ();
3816  ;
3817  return 0;
3818}
3819_ACEOF
3820for ac_lib in '' cposix; do
3821  if test -z "$ac_lib"; then
3822    ac_res="none required"
3823  else
3824    ac_res=-l$ac_lib
3825    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3826  fi
3827  if ac_fn_c_try_link "$LINENO"; then :
3828  ac_cv_search_strerror=$ac_res
3829fi
3830rm -f core conftest.err conftest.$ac_objext \
3831    conftest$ac_exeext
3832  if ${ac_cv_search_strerror+:} false; then :
3833  break
3834fi
3835done
3836if ${ac_cv_search_strerror+:} false; then :
3837
3838else
3839  ac_cv_search_strerror=no
3840fi
3841rm conftest.$ac_ext
3842LIBS=$ac_func_search_save_LIBS
3843fi
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3845$as_echo "$ac_cv_search_strerror" >&6; }
3846ac_res=$ac_cv_search_strerror
3847if test "$ac_res" != no; then :
3848  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3849
3850fi
3851		for ac_prog in gawk mawk nawk awk
3852do
3853  # Extract the first word of "$ac_prog", so it can be a program name with args.
3854set dummy $ac_prog; ac_word=$2
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856$as_echo_n "checking for $ac_word... " >&6; }
3857if ${ac_cv_prog_AWK+:} false; then :
3858  $as_echo_n "(cached) " >&6
3859else
3860  if test -n "$AWK"; then
3861  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3862else
3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH
3865do
3866  IFS=$as_save_IFS
3867  test -z "$as_dir" && as_dir=.
3868    for ac_exec_ext in '' $ac_executable_extensions; do
3869  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870    ac_cv_prog_AWK="$ac_prog"
3871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872    break 2
3873  fi
3874done
3875  done
3876IFS=$as_save_IFS
3877
3878fi
3879fi
3880AWK=$ac_cv_prog_AWK
3881if test -n "$AWK"; then
3882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3883$as_echo "$AWK" >&6; }
3884else
3885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886$as_echo "no" >&6; }
3887fi
3888
3889
3890  test -n "$AWK" && break
3891done
3892
3893# Extract the first word of "strip", so it can be a program name with args.
3894set dummy strip; ac_word=$2
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896$as_echo_n "checking for $ac_word... " >&6; }
3897if ${ac_cv_prog_STRIP+:} false; then :
3898  $as_echo_n "(cached) " >&6
3899else
3900  if test -n "$STRIP"; then
3901  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3902else
3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH
3905do
3906  IFS=$as_save_IFS
3907  test -z "$as_dir" && as_dir=.
3908    for ac_exec_ext in '' $ac_executable_extensions; do
3909  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910    ac_cv_prog_STRIP="strip"
3911    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912    break 2
3913  fi
3914done
3915  done
3916IFS=$as_save_IFS
3917
3918  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3919fi
3920fi
3921STRIP=$ac_cv_prog_STRIP
3922if test -n "$STRIP"; then
3923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3924$as_echo "$STRIP" >&6; }
3925else
3926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927$as_echo "no" >&6; }
3928fi
3929
3930
3931
3932
3933
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3935$as_echo_n "checking for ANSI C header files... " >&6; }
3936if ${ac_cv_header_stdc+:} false; then :
3937  $as_echo_n "(cached) " >&6
3938else
3939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940/* end confdefs.h.  */
3941#include <stdlib.h>
3942#include <stdarg.h>
3943#include <string.h>
3944#include <float.h>
3945
3946int
3947main ()
3948{
3949
3950  ;
3951  return 0;
3952}
3953_ACEOF
3954if ac_fn_c_try_compile "$LINENO"; then :
3955  ac_cv_header_stdc=yes
3956else
3957  ac_cv_header_stdc=no
3958fi
3959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960
3961if test $ac_cv_header_stdc = yes; then
3962  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964/* end confdefs.h.  */
3965#include <string.h>
3966
3967_ACEOF
3968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3969  $EGREP "memchr" >/dev/null 2>&1; then :
3970
3971else
3972  ac_cv_header_stdc=no
3973fi
3974rm -f conftest*
3975
3976fi
3977
3978if test $ac_cv_header_stdc = yes; then
3979  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981/* end confdefs.h.  */
3982#include <stdlib.h>
3983
3984_ACEOF
3985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3986  $EGREP "free" >/dev/null 2>&1; then :
3987
3988else
3989  ac_cv_header_stdc=no
3990fi
3991rm -f conftest*
3992
3993fi
3994
3995if test $ac_cv_header_stdc = yes; then
3996  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3997  if test "$cross_compiling" = yes; then :
3998  :
3999else
4000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001/* end confdefs.h.  */
4002#include <ctype.h>
4003#include <stdlib.h>
4004#if ((' ' & 0x0FF) == 0x020)
4005# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4006# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4007#else
4008# define ISLOWER(c) \
4009		   (('a' <= (c) && (c) <= 'i') \
4010		     || ('j' <= (c) && (c) <= 'r') \
4011		     || ('s' <= (c) && (c) <= 'z'))
4012# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4013#endif
4014
4015#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4016int
4017main ()
4018{
4019  int i;
4020  for (i = 0; i < 256; i++)
4021    if (XOR (islower (i), ISLOWER (i))
4022	|| toupper (i) != TOUPPER (i))
4023      return 2;
4024  return 0;
4025}
4026_ACEOF
4027if ac_fn_c_try_run "$LINENO"; then :
4028
4029else
4030  ac_cv_header_stdc=no
4031fi
4032rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4033  conftest.$ac_objext conftest.beam conftest.$ac_ext
4034fi
4035
4036fi
4037fi
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4039$as_echo "$ac_cv_header_stdc" >&6; }
4040if test $ac_cv_header_stdc = yes; then
4041
4042$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4043
4044fi
4045
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4047$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4048if ${ac_cv_header_sys_wait_h+:} false; then :
4049  $as_echo_n "(cached) " >&6
4050else
4051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052/* end confdefs.h.  */
4053#include <sys/types.h>
4054#include <sys/wait.h>
4055#ifndef WEXITSTATUS
4056# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4057#endif
4058#ifndef WIFEXITED
4059# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4060#endif
4061
4062int
4063main ()
4064{
4065  int s;
4066  wait (&s);
4067  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4068  ;
4069  return 0;
4070}
4071_ACEOF
4072if ac_fn_c_try_compile "$LINENO"; then :
4073  ac_cv_header_sys_wait_h=yes
4074else
4075  ac_cv_header_sys_wait_h=no
4076fi
4077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078fi
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4080$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4081if test $ac_cv_header_sys_wait_h = yes; then
4082
4083$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4084
4085fi
4086
4087
4088
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5
4090$as_echo_n "checking --enable-fail-if-missing argument... " >&6; }
4091# Check whether --enable-fail_if_missing was given.
4092if test "${enable_fail_if_missing+set}" = set; then :
4093  enableval=$enable_fail_if_missing; fail_if_missing="yes"
4094else
4095  fail_if_missing="no"
4096fi
4097
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5
4099$as_echo "$fail_if_missing" >&6; }
4100
4101if test -z "$CFLAGS"; then
4102  CFLAGS="-O"
4103  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
4104fi
4105if test "$GCC" = yes; then
4106    gccversion=`$CC -dumpversion`
4107  if test "x$gccversion" = "x"; then
4108        gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
4109  fi
4110    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
4111    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
4112    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
4113  else
4114    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
4115      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
4116      CFLAGS="$CFLAGS -fno-strength-reduce"
4117    fi
4118  fi
4119fi
4120
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5
4122$as_echo_n "checking for clang version... " >&6; }
4123CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed  -n -e 's/^.*clang[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'`
4124if test x"$CLANG_VERSION_STRING" != x"" ; then
4125  CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'`
4126  CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'`
4127  CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'`
4128  CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION`
4129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5
4130$as_echo "$CLANG_VERSION" >&6; }
4131          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5
4132$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; }
4133  if test "$CLANG_VERSION" -ge 500002075 ; then
4134    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135$as_echo "no" >&6; }
4136    CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
4137  else
4138    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4139$as_echo "yes" >&6; }
4140  fi
4141else
4142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5
4143$as_echo "N/A" >&6; }
4144fi
4145
4146CROSS_COMPILING=
4147if test "$cross_compiling" = yes; then
4148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
4149$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
4150  CROSS_COMPILING=1
4151fi
4152
4153
4154test "$GCC" = yes && CPP_MM=M;
4155
4156if test -f ./toolcheck; then
4157  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
4158$as_echo "$as_me: checking for buggy tools..." >&6;}
4159  sh ./toolcheck 1>&6
4160fi
4161
4162OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
4163
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5
4165$as_echo_n "checking for BeOS... " >&6; }
4166case `uname` in
4167    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
4168		BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4169$as_echo "yes" >&6; };;
4170    *)		BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171$as_echo "no" >&6; };;
4172esac
4173
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5
4175$as_echo_n "checking for QNX... " >&6; }
4176case `uname` in
4177    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
4178		test -z "$with_x" && with_x=no
4179		QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4180$as_echo "yes" >&6; };;
4181    *)		QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182$as_echo "no" >&6; };;
4183esac
4184
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5
4186$as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
4187if test "`(uname) 2>/dev/null`" = Darwin; then
4188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4189$as_echo "yes" >&6; }
4190  MACOS_X=yes
4191  CPPFLAGS="$CPPFLAGS -DMACOS_X"
4192
4193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5
4194$as_echo_n "checking --disable-darwin argument... " >&6; }
4195  # Check whether --enable-darwin was given.
4196if test "${enable_darwin+set}" = set; then :
4197  enableval=$enable_darwin;
4198else
4199  enable_darwin="yes"
4200fi
4201
4202  if test "$enable_darwin" = "yes"; then
4203    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204$as_echo "no" >&6; }
4205    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5
4206$as_echo_n "checking if Darwin files are there... " >&6; }
4207    if test -f os_macosx.m; then
4208      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4209$as_echo "yes" >&6; }
4210    else
4211      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5
4212$as_echo "no, Darwin support disabled" >&6; }
4213      enable_darwin=no
4214    fi
4215  else
4216    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5
4217$as_echo "yes, Darwin support excluded" >&6; }
4218  fi
4219
4220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5
4221$as_echo_n "checking --with-mac-arch argument... " >&6; }
4222
4223# Check whether --with-mac-arch was given.
4224if test "${with_mac_arch+set}" = set; then :
4225  withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5
4226$as_echo "$MACARCH" >&6; }
4227else
4228  MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5
4229$as_echo "defaulting to $MACARCH" >&6; }
4230fi
4231
4232
4233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5
4234$as_echo_n "checking --with-developer-dir argument... " >&6; }
4235
4236# Check whether --with-developer-dir was given.
4237if test "${with_developer_dir+set}" = set; then :
4238  withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4239$as_echo "$DEVELOPER_DIR" >&6; }
4240else
4241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
4242$as_echo "not present" >&6; }
4243fi
4244
4245
4246  if test "x$DEVELOPER_DIR" = "x"; then
4247    # Extract the first word of "xcode-select", so it can be a program name with args.
4248set dummy xcode-select; ac_word=$2
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4250$as_echo_n "checking for $ac_word... " >&6; }
4251if ${ac_cv_path_XCODE_SELECT+:} false; then :
4252  $as_echo_n "(cached) " >&6
4253else
4254  case $XCODE_SELECT in
4255  [\\/]* | ?:[\\/]*)
4256  ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
4257  ;;
4258  *)
4259  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260for as_dir in $PATH
4261do
4262  IFS=$as_save_IFS
4263  test -z "$as_dir" && as_dir=.
4264    for ac_exec_ext in '' $ac_executable_extensions; do
4265  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4266    ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
4267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268    break 2
4269  fi
4270done
4271  done
4272IFS=$as_save_IFS
4273
4274  ;;
4275esac
4276fi
4277XCODE_SELECT=$ac_cv_path_XCODE_SELECT
4278if test -n "$XCODE_SELECT"; then
4279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5
4280$as_echo "$XCODE_SELECT" >&6; }
4281else
4282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283$as_echo "no" >&6; }
4284fi
4285
4286
4287    if test "x$XCODE_SELECT" != "x"; then
4288      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5
4289$as_echo_n "checking for developer dir using xcode-select... " >&6; }
4290      DEVELOPER_DIR=`$XCODE_SELECT -print-path`
4291      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4292$as_echo "$DEVELOPER_DIR" >&6; }
4293    else
4294      DEVELOPER_DIR=/Developer
4295    fi
4296  fi
4297
4298  if test "x$MACARCH" = "xboth"; then
4299    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5
4300$as_echo_n "checking for 10.4 universal SDK... " >&6; }
4301                            save_cppflags="$CPPFLAGS"
4302    save_cflags="$CFLAGS"
4303    save_ldflags="$LDFLAGS"
4304    CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
4305    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306/* end confdefs.h.  */
4307
4308int
4309main ()
4310{
4311
4312  ;
4313  return 0;
4314}
4315_ACEOF
4316if ac_fn_c_try_link "$LINENO"; then :
4317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
4318$as_echo "found" >&6; }
4319else
4320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4321$as_echo "not found" >&6; }
4322	CFLAGS="$save_cflags"
4323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5
4324$as_echo_n "checking if Intel architecture is supported... " >&6; }
4325	CPPFLAGS="$CPPFLAGS -arch i386"
4326	LDFLAGS="$save_ldflags -arch i386"
4327	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328/* end confdefs.h.  */
4329
4330int
4331main ()
4332{
4333
4334  ;
4335  return 0;
4336}
4337_ACEOF
4338if ac_fn_c_try_link "$LINENO"; then :
4339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4340$as_echo "yes" >&6; }; MACARCH="intel"
4341else
4342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343$as_echo "no" >&6; }
4344		MACARCH="ppc"
4345		CPPFLAGS="$save_cppflags -arch ppc"
4346		LDFLAGS="$save_ldflags -arch ppc"
4347fi
4348rm -f core conftest.err conftest.$ac_objext \
4349    conftest$ac_exeext conftest.$ac_ext
4350fi
4351rm -f core conftest.err conftest.$ac_objext \
4352    conftest$ac_exeext conftest.$ac_ext
4353  elif test "x$MACARCH" = "xintel"; then
4354    CPPFLAGS="$CPPFLAGS -arch intel"
4355    LDFLAGS="$LDFLAGS -arch intel"
4356  elif test "x$MACARCH" = "xppc"; then
4357    CPPFLAGS="$CPPFLAGS -arch ppc"
4358    LDFLAGS="$LDFLAGS -arch ppc"
4359  fi
4360
4361  if test "$enable_darwin" = "yes"; then
4362    MACOS_X_DARWIN=yes
4363    OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
4364    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4365            CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN"
4366
4367                # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4368for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4369		  inttypes.h stdint.h unistd.h
4370do :
4371  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4372ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4373"
4374if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4375  cat >>confdefs.h <<_ACEOF
4376#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4377_ACEOF
4378
4379fi
4380
4381done
4382
4383
4384ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
4385if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then :
4386  CARBON=yes
4387fi
4388
4389
4390    if test "x$CARBON" = "xyes"; then
4391      if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2 -a "X$enable_gui" != Xgtk3; then
4392	with_x=no
4393      fi
4394    fi
4395  fi
4396
4397        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4398    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4399  fi
4400
4401else
4402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403$as_echo "no" >&6; }
4404fi
4405
4406for ac_header in AvailabilityMacros.h
4407do :
4408  ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
4409if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then :
4410  cat >>confdefs.h <<_ACEOF
4411#define HAVE_AVAILABILITYMACROS_H 1
4412_ACEOF
4413
4414fi
4415
4416done
4417
4418
4419
4420
4421
4422if test "$cross_compiling" = no; then
4423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5
4424$as_echo_n "checking --with-local-dir argument... " >&6; }
4425  have_local_include=''
4426  have_local_lib=''
4427
4428# Check whether --with-local-dir was given.
4429if test "${with_local_dir+set}" = set; then :
4430  withval=$with_local_dir;
4431    local_dir="$withval"
4432    case "$withval" in
4433    */*) ;;
4434    no)
4435      # avoid adding local dir to LDFLAGS and CPPFLAGS
4436      have_local_include=yes
4437      have_local_lib=yes
4438      ;;
4439    *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;;
4440    esac
4441	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5
4442$as_echo "$local_dir" >&6; }
4443
4444else
4445
4446    local_dir=/usr/local
4447    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5
4448$as_echo "Defaulting to $local_dir" >&6; }
4449
4450fi
4451
4452  if test "$GCC" = yes -a "$local_dir" != no; then
4453    echo 'void f(){}' > conftest.c
4454        have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4455    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4456    rm -f conftest.c conftest.o
4457  fi
4458  if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4459    tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4460    if test "$tt" = "$LDFLAGS"; then
4461      LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4462    fi
4463  fi
4464  if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4465    tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4466    if test "$tt" = "$CPPFLAGS"; then
4467      CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4468    fi
4469  fi
4470fi
4471
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5
4473$as_echo_n "checking --with-vim-name argument... " >&6; }
4474
4475# Check whether --with-vim-name was given.
4476if test "${with_vim_name+set}" = set; then :
4477  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5
4478$as_echo "$VIMNAME" >&6; }
4479else
4480  VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5
4481$as_echo "Defaulting to $VIMNAME" >&6; }
4482fi
4483
4484
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5
4486$as_echo_n "checking --with-ex-name argument... " >&6; }
4487
4488# Check whether --with-ex-name was given.
4489if test "${with_ex_name+set}" = set; then :
4490  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5
4491$as_echo "$EXNAME" >&6; }
4492else
4493  EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5
4494$as_echo "Defaulting to ex" >&6; }
4495fi
4496
4497
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5
4499$as_echo_n "checking --with-view-name argument... " >&6; }
4500
4501# Check whether --with-view-name was given.
4502if test "${with_view_name+set}" = set; then :
4503  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5
4504$as_echo "$VIEWNAME" >&6; }
4505else
4506  VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5
4507$as_echo "Defaulting to view" >&6; }
4508fi
4509
4510
4511
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5
4513$as_echo_n "checking --with-global-runtime argument... " >&6; }
4514
4515# Check whether --with-global-runtime was given.
4516if test "${with_global_runtime+set}" = set; then :
4517  withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4518$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4519#define RUNTIME_GLOBAL "$withval"
4520_ACEOF
4521
4522else
4523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524$as_echo "no" >&6; }
4525fi
4526
4527
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5
4529$as_echo_n "checking --with-modified-by argument... " >&6; }
4530
4531# Check whether --with-modified-by was given.
4532if test "${with_modified_by+set}" = set; then :
4533  withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4534$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4535#define MODIFIED_BY "$withval"
4536_ACEOF
4537
4538else
4539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540$as_echo "no" >&6; }
4541fi
4542
4543
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5
4545$as_echo_n "checking if character set is EBCDIC... " >&6; }
4546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547/* end confdefs.h.  */
4548
4549int
4550main ()
4551{
4552 /* TryCompile function for CharSet.
4553   Treat any failure as ASCII for compatibility with existing art.
4554   Use compile-time rather than run-time tests for cross-compiler
4555   tolerance.  */
4556#if '0'!=240
4557make an error "Character set is not EBCDIC"
4558#endif
4559  ;
4560  return 0;
4561}
4562_ACEOF
4563if ac_fn_c_try_compile "$LINENO"; then :
4564   # TryCompile action if true
4565cf_cv_ebcdic=yes
4566else
4567   # TryCompile action if false
4568cf_cv_ebcdic=no
4569fi
4570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571# end of TryCompile ])
4572# end of CacheVal CvEbcdic
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5
4574$as_echo "$cf_cv_ebcdic" >&6; }
4575case "$cf_cv_ebcdic" in  #(vi
4576    yes)	$as_echo "#define EBCDIC 1" >>confdefs.h
4577
4578		line_break='"\\n"'
4579		;;
4580    *)		line_break='"\\012"';;
4581esac
4582
4583
4584if test "$cf_cv_ebcdic" = "yes"; then
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5
4586$as_echo_n "checking for z/OS Unix... " >&6; }
4587case `uname` in
4588    OS/390)	zOSUnix="yes";
4589										if test "$CC" = "cc"; then
4590		  ccm="$_CC_CCMODE"
4591		  ccn="CC"
4592		else
4593		  if test "$CC" = "c89"; then
4594		    ccm="$_CC_C89MODE"
4595		    ccn="C89"
4596		  else
4597		    ccm=1
4598		  fi
4599		fi
4600		if test "$ccm" != "1"; then
4601		  echo ""
4602		  echo "------------------------------------------"
4603		  echo " On z/OS Unix, the environment variable"
4604		  echo " _CC_${ccn}MODE must be set to \"1\"!"
4605		  echo " Do:"
4606		  echo "    export _CC_${ccn}MODE=1"
4607		  echo " and then call configure again."
4608		  echo "------------------------------------------"
4609		  exit 1
4610		fi
4611		# Set CFLAGS for configure process.
4612		# This will be reset later for config.mk.
4613		# Use haltonmsg to force error for missing H files.
4614		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)";
4615		LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4616		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4617$as_echo "yes" >&6; }
4618		;;
4619    *)		zOSUnix="no";
4620		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621$as_echo "no" >&6; }
4622		;;
4623esac
4624fi
4625
4626if test "$zOSUnix" = "yes"; then
4627    QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'"
4628else
4629    QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'"
4630fi
4631
4632
4633
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5
4635$as_echo_n "checking --disable-smack argument... " >&6; }
4636# Check whether --enable-smack was given.
4637if test "${enable_smack+set}" = set; then :
4638  enableval=$enable_smack;
4639else
4640  enable_smack="yes"
4641fi
4642
4643if test "$enable_smack" = "yes"; then
4644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645$as_echo "no" >&6; }
4646  ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default"
4647if test "x$ac_cv_header_linux_xattr_h" = xyes; then :
4648  true
4649else
4650  enable_smack="no"
4651fi
4652
4653
4654else
4655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4656$as_echo "yes" >&6; }
4657fi
4658if test "$enable_smack" = "yes"; then
4659  ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
4660if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
4661  true
4662else
4663  enable_smack="no"
4664fi
4665
4666
4667fi
4668if test "$enable_smack" = "yes"; then
4669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5
4670$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; }
4671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672/* end confdefs.h.  */
4673#include <linux/xattr.h>
4674_ACEOF
4675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4676  $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then :
4677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4678$as_echo "yes" >&6; }
4679else
4680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681$as_echo "no" >&6; }; enable_smack="no"
4682fi
4683rm -f conftest*
4684
4685fi
4686if test "$enable_smack" = "yes"; then
4687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
4688$as_echo_n "checking for setxattr in -lattr... " >&6; }
4689if ${ac_cv_lib_attr_setxattr+:} false; then :
4690  $as_echo_n "(cached) " >&6
4691else
4692  ac_check_lib_save_LIBS=$LIBS
4693LIBS="-lattr  $LIBS"
4694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695/* end confdefs.h.  */
4696
4697/* Override any GCC internal prototype to avoid an error.
4698   Use char because int might match the return type of a GCC
4699   builtin and then its argument prototype would still apply.  */
4700#ifdef __cplusplus
4701extern "C"
4702#endif
4703char setxattr ();
4704int
4705main ()
4706{
4707return setxattr ();
4708  ;
4709  return 0;
4710}
4711_ACEOF
4712if ac_fn_c_try_link "$LINENO"; then :
4713  ac_cv_lib_attr_setxattr=yes
4714else
4715  ac_cv_lib_attr_setxattr=no
4716fi
4717rm -f core conftest.err conftest.$ac_objext \
4718    conftest$ac_exeext conftest.$ac_ext
4719LIBS=$ac_check_lib_save_LIBS
4720fi
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
4722$as_echo "$ac_cv_lib_attr_setxattr" >&6; }
4723if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
4724  LIBS="$LIBS -lattr"
4725	   found_smack="yes"
4726	   $as_echo "#define HAVE_SMACK 1" >>confdefs.h
4727
4728fi
4729
4730fi
4731
4732if test "x$found_smack" = "x"; then
4733    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5
4734$as_echo_n "checking --disable-selinux argument... " >&6; }
4735  # Check whether --enable-selinux was given.
4736if test "${enable_selinux+set}" = set; then :
4737  enableval=$enable_selinux;
4738else
4739  enable_selinux="yes"
4740fi
4741
4742  if test "$enable_selinux" = "yes"; then
4743    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744$as_echo "no" >&6; }
4745    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
4746$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4747if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
4748  $as_echo_n "(cached) " >&6
4749else
4750  ac_check_lib_save_LIBS=$LIBS
4751LIBS="-lselinux  $LIBS"
4752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753/* end confdefs.h.  */
4754
4755/* Override any GCC internal prototype to avoid an error.
4756   Use char because int might match the return type of a GCC
4757   builtin and then its argument prototype would still apply.  */
4758#ifdef __cplusplus
4759extern "C"
4760#endif
4761char is_selinux_enabled ();
4762int
4763main ()
4764{
4765return is_selinux_enabled ();
4766  ;
4767  return 0;
4768}
4769_ACEOF
4770if ac_fn_c_try_link "$LINENO"; then :
4771  ac_cv_lib_selinux_is_selinux_enabled=yes
4772else
4773  ac_cv_lib_selinux_is_selinux_enabled=no
4774fi
4775rm -f core conftest.err conftest.$ac_objext \
4776    conftest$ac_exeext conftest.$ac_ext
4777LIBS=$ac_check_lib_save_LIBS
4778fi
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4780$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4781if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
4782  LIBS="$LIBS -lselinux"
4783	     $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
4784
4785fi
4786
4787  else
4788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4789$as_echo "yes" >&6; }
4790  fi
4791fi
4792
4793
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5
4795$as_echo_n "checking --with-features argument... " >&6; }
4796
4797# Check whether --with-features was given.
4798if test "${with_features+set}" = set; then :
4799  withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5
4800$as_echo "$features" >&6; }
4801else
4802  features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5
4803$as_echo "Defaulting to huge" >&6; }
4804fi
4805
4806
4807dovimdiff=""
4808dogvimdiff=""
4809case "$features" in
4810  tiny)		$as_echo "#define FEAT_TINY 1" >>confdefs.h
4811 ;;
4812  small)	$as_echo "#define FEAT_SMALL 1" >>confdefs.h
4813 ;;
4814  normal)	$as_echo "#define FEAT_NORMAL 1" >>confdefs.h
4815 dovimdiff="installvimdiff";
4816			dogvimdiff="installgvimdiff" ;;
4817  big)		$as_echo "#define FEAT_BIG 1" >>confdefs.h
4818 dovimdiff="installvimdiff";
4819			dogvimdiff="installgvimdiff" ;;
4820  huge)		$as_echo "#define FEAT_HUGE 1" >>confdefs.h
4821 dovimdiff="installvimdiff";
4822			dogvimdiff="installgvimdiff" ;;
4823  *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5
4824$as_echo "Sorry, $features is not supported" >&6; } ;;
4825esac
4826
4827
4828
4829
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5
4831$as_echo_n "checking --with-compiledby argument... " >&6; }
4832
4833# Check whether --with-compiledby was given.
4834if test "${with_compiledby+set}" = set; then :
4835  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4836$as_echo "$withval" >&6; }
4837else
4838  compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839$as_echo "no" >&6; }
4840fi
4841
4842
4843
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5
4845$as_echo_n "checking --disable-xsmp argument... " >&6; }
4846# Check whether --enable-xsmp was given.
4847if test "${enable_xsmp+set}" = set; then :
4848  enableval=$enable_xsmp;
4849else
4850  enable_xsmp="yes"
4851fi
4852
4853
4854if test "$enable_xsmp" = "yes"; then
4855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856$as_echo "no" >&6; }
4857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5
4858$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4859  # Check whether --enable-xsmp-interact was given.
4860if test "${enable_xsmp_interact+set}" = set; then :
4861  enableval=$enable_xsmp_interact;
4862else
4863  enable_xsmp_interact="yes"
4864fi
4865
4866  if test "$enable_xsmp_interact" = "yes"; then
4867    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868$as_echo "no" >&6; }
4869    $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h
4870
4871  else
4872    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4873$as_echo "yes" >&6; }
4874  fi
4875else
4876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4877$as_echo "yes" >&6; }
4878fi
4879
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5
4881$as_echo_n "checking --enable-luainterp argument... " >&6; }
4882# Check whether --enable-luainterp was given.
4883if test "${enable_luainterp+set}" = set; then :
4884  enableval=$enable_luainterp;
4885else
4886  enable_luainterp="no"
4887fi
4888
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5
4890$as_echo "$enable_luainterp" >&6; }
4891
4892if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
4893  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
4894    as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5
4895  fi
4896
4897
4898
4899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5
4900$as_echo_n "checking --with-lua-prefix argument... " >&6; }
4901
4902# Check whether --with-lua_prefix was given.
4903if test "${with_lua_prefix+set}" = set; then :
4904  withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5
4905$as_echo "$with_lua_prefix" >&6; }
4906else
4907  with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908$as_echo "no" >&6; }
4909fi
4910
4911
4912  if test "X$with_lua_prefix" != "X"; then
4913       vi_cv_path_lua_pfx="$with_lua_prefix"
4914  else
4915    { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5
4916$as_echo_n "checking LUA_PREFIX environment var... " >&6; }
4917    if test "X$LUA_PREFIX" != "X"; then
4918	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5
4919$as_echo "\"$LUA_PREFIX\"" >&6; }
4920	vi_cv_path_lua_pfx="$LUA_PREFIX"
4921    else
4922	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5
4923$as_echo "not set, default to /usr" >&6; }
4924	vi_cv_path_lua_pfx="/usr"
4925    fi
4926  fi
4927
4928  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5
4929$as_echo_n "checking --with-luajit... " >&6; }
4930
4931# Check whether --with-luajit was given.
4932if test "${with_luajit+set}" = set; then :
4933  withval=$with_luajit; vi_cv_with_luajit="$withval"
4934else
4935  vi_cv_with_luajit="no"
4936fi
4937
4938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5
4939$as_echo "$vi_cv_with_luajit" >&6; }
4940
4941  LUA_INC=
4942  if test "X$vi_cv_path_lua_pfx" != "X"; then
4943    if test "x$vi_cv_with_luajit" != "xno"; then
4944            # Extract the first word of "luajit", so it can be a program name with args.
4945set dummy luajit; ac_word=$2
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947$as_echo_n "checking for $ac_word... " >&6; }
4948if ${ac_cv_path_vi_cv_path_luajit+:} false; then :
4949  $as_echo_n "(cached) " >&6
4950else
4951  case $vi_cv_path_luajit in
4952  [\\/]* | ?:[\\/]*)
4953  ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path.
4954  ;;
4955  *)
4956  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957for as_dir in $PATH
4958do
4959  IFS=$as_save_IFS
4960  test -z "$as_dir" && as_dir=.
4961    for ac_exec_ext in '' $ac_executable_extensions; do
4962  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4963    ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext"
4964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4965    break 2
4966  fi
4967done
4968  done
4969IFS=$as_save_IFS
4970
4971  ;;
4972esac
4973fi
4974vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit
4975if test -n "$vi_cv_path_luajit"; then
4976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5
4977$as_echo "$vi_cv_path_luajit" >&6; }
4978else
4979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980$as_echo "no" >&6; }
4981fi
4982
4983
4984      if test "X$vi_cv_path_luajit" != "X"; then
4985		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5
4986$as_echo_n "checking LuaJIT version... " >&6; }
4987if ${vi_cv_version_luajit+:} false; then :
4988  $as_echo_n "(cached) " >&6
4989else
4990   vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'`
4991fi
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5
4993$as_echo "$vi_cv_version_luajit" >&6; }
4994	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5
4995$as_echo_n "checking Lua version of LuaJIT... " >&6; }
4996if ${vi_cv_version_lua_luajit+:} false; then :
4997  $as_echo_n "(cached) " >&6
4998else
4999   vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'`
5000fi
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5
5002$as_echo "$vi_cv_version_lua_luajit" >&6; }
5003	vi_cv_path_lua="$vi_cv_path_luajit"
5004	vi_cv_version_lua="$vi_cv_version_lua_luajit"
5005      fi
5006    else
5007            # Extract the first word of "lua", so it can be a program name with args.
5008set dummy lua; ac_word=$2
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010$as_echo_n "checking for $ac_word... " >&6; }
5011if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then :
5012  $as_echo_n "(cached) " >&6
5013else
5014  case $vi_cv_path_plain_lua in
5015  [\\/]* | ?:[\\/]*)
5016  ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path.
5017  ;;
5018  *)
5019  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH
5021do
5022  IFS=$as_save_IFS
5023  test -z "$as_dir" && as_dir=.
5024    for ac_exec_ext in '' $ac_executable_extensions; do
5025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026    ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext"
5027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028    break 2
5029  fi
5030done
5031  done
5032IFS=$as_save_IFS
5033
5034  ;;
5035esac
5036fi
5037vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua
5038if test -n "$vi_cv_path_plain_lua"; then
5039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5
5040$as_echo "$vi_cv_path_plain_lua" >&6; }
5041else
5042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043$as_echo "no" >&6; }
5044fi
5045
5046
5047      if test "X$vi_cv_path_plain_lua" != "X"; then
5048		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5
5049$as_echo_n "checking Lua version... " >&6; }
5050if ${vi_cv_version_plain_lua+:} false; then :
5051  $as_echo_n "(cached) " >&6
5052else
5053   vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'`
5054fi
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5
5056$as_echo "$vi_cv_version_plain_lua" >&6; }
5057      fi
5058      vi_cv_path_lua="$vi_cv_path_plain_lua"
5059      vi_cv_version_lua="$vi_cv_version_plain_lua"
5060    fi
5061    if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then
5062      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit" >&5
5063$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; }
5064      if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then
5065	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5066$as_echo "yes" >&6; }
5067	LUA_INC=/luajit-$vi_cv_version_luajit
5068      fi
5069    fi
5070    if test "X$LUA_INC" = "X"; then
5071      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5
5072$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; }
5073      if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then
5074	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5075$as_echo "yes" >&6; }
5076      else
5077	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078$as_echo "no" >&6; }
5079	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua" >&5
5080$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; }
5081	if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then
5082	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5083$as_echo "yes" >&6; }
5084	  LUA_INC=/lua$vi_cv_version_lua
5085	else
5086	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087$as_echo "no" >&6; }
5088	  vi_cv_path_lua_pfx=
5089	fi
5090      fi
5091    fi
5092  fi
5093
5094  if test "X$vi_cv_path_lua_pfx" != "X"; then
5095    if test "x$vi_cv_with_luajit" != "xno"; then
5096      multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5097      if test "X$multiarch" != "X"; then
5098	lib_multiarch="lib/${multiarch}"
5099      else
5100	lib_multiarch="lib"
5101      fi
5102      if test "X$vi_cv_version_lua" = "X"; then
5103	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit"
5104      else
5105	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua"
5106      fi
5107    else
5108      if test "X$LUA_INC" != "X"; then
5109		LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua"
5110      else
5111	LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua"
5112      fi
5113    fi
5114    if test "$enable_luainterp" = "dynamic"; then
5115      lua_ok="yes"
5116    else
5117      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5
5118$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; }
5119      libs_save=$LIBS
5120      LIBS="$LIBS $LUA_LIBS"
5121      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122/* end confdefs.h.  */
5123
5124int
5125main ()
5126{
5127
5128  ;
5129  return 0;
5130}
5131_ACEOF
5132if ac_fn_c_try_link "$LINENO"; then :
5133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5134$as_echo "yes" >&6; }; lua_ok="yes"
5135else
5136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS=""
5138fi
5139rm -f core conftest.err conftest.$ac_objext \
5140    conftest$ac_exeext conftest.$ac_ext
5141      LIBS=$libs_save
5142    fi
5143    if test "x$lua_ok" = "xyes"; then
5144      LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}"
5145      LUA_SRC="if_lua.c"
5146      LUA_OBJ="objects/if_lua.o"
5147      LUA_PRO="if_lua.pro"
5148      $as_echo "#define FEAT_LUA 1" >>confdefs.h
5149
5150    fi
5151    if test "$enable_luainterp" = "dynamic"; then
5152      if test "x$vi_cv_with_luajit" != "xno"; then
5153	luajit="jit"
5154      fi
5155      if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
5156	vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
5157      else
5158	if test "x$MACOS_X" = "xyes"; then
5159	  ext="dylib"
5160	  indexes=""
5161	else
5162	  ext="so"
5163	  indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9"
5164	  multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5165	  if test "X$multiarch" != "X"; then
5166	    lib_multiarch="lib/${multiarch}"
5167	  fi
5168	fi
5169			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5
5170$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; }
5171	for subdir in "${lib_multiarch}" lib64 lib; do
5172	  if test -z "$subdir"; then
5173	    continue
5174	  fi
5175	  for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \
5176	    ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do
5177	    for i in $indexes ""; do
5178	      if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then
5179		sover2="$i"
5180		break 3
5181	      fi
5182	    done
5183	  done
5184	  sover=""
5185	done
5186	if test "X$sover" = "X"; then
5187	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188$as_echo "no" >&6; }
5189	  lua_ok="no"
5190	  vi_cv_dll_name_lua="liblua${luajit}.${ext}"
5191	else
5192	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5193$as_echo "yes" >&6; }
5194	  lua_ok="yes"
5195	  vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2"
5196	fi
5197      fi
5198      $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h
5199
5200      LUA_LIBS=""
5201      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS"
5202    fi
5203    if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \
5204       test "x$MACOS_X" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \
5205       test "`(uname -m) 2>/dev/null`" = "x86_64"; then
5206            LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS"
5207    fi
5208  fi
5209  if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then
5210    as_fn_error $? "could not configure lua" "$LINENO" 5
5211  fi
5212
5213
5214
5215
5216
5217fi
5218
5219
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5
5221$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
5222# Check whether --enable-mzschemeinterp was given.
5223if test "${enable_mzschemeinterp+set}" = set; then :
5224  enableval=$enable_mzschemeinterp;
5225else
5226  enable_mzschemeinterp="no"
5227fi
5228
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5
5230$as_echo "$enable_mzschemeinterp" >&6; }
5231
5232if test "$enable_mzschemeinterp" = "yes"; then
5233
5234
5235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5
5236$as_echo_n "checking --with-plthome argument... " >&6; }
5237
5238# Check whether --with-plthome was given.
5239if test "${with_plthome+set}" = set; then :
5240  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5
5241$as_echo "$with_plthome" >&6; }
5242else
5243  with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5244$as_echo "\"no\"" >&6; }
5245fi
5246
5247
5248  if test "X$with_plthome" != "X"; then
5249       vi_cv_path_mzscheme_pfx="$with_plthome"
5250       vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5251  else
5252    { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5
5253$as_echo_n "checking PLTHOME environment var... " >&6; }
5254    if test "X$PLTHOME" != "X"; then
5255	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5
5256$as_echo "\"$PLTHOME\"" >&6; }
5257	vi_cv_path_mzscheme_pfx="$PLTHOME"
5258	vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5259    else
5260	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
5261$as_echo "not set" >&6; }
5262		# Extract the first word of "mzscheme", so it can be a program name with args.
5263set dummy mzscheme; ac_word=$2
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265$as_echo_n "checking for $ac_word... " >&6; }
5266if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then :
5267  $as_echo_n "(cached) " >&6
5268else
5269  case $vi_cv_path_mzscheme in
5270  [\\/]* | ?:[\\/]*)
5271  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
5272  ;;
5273  *)
5274  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275for as_dir in $PATH
5276do
5277  IFS=$as_save_IFS
5278  test -z "$as_dir" && as_dir=.
5279    for ac_exec_ext in '' $ac_executable_extensions; do
5280  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
5282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283    break 2
5284  fi
5285done
5286  done
5287IFS=$as_save_IFS
5288
5289  ;;
5290esac
5291fi
5292vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
5293if test -n "$vi_cv_path_mzscheme"; then
5294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5
5295$as_echo "$vi_cv_path_mzscheme" >&6; }
5296else
5297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298$as_echo "no" >&6; }
5299fi
5300
5301
5302
5303			if test "X$vi_cv_path_mzscheme" != "X"; then
5304	  lsout=`ls -l $vi_cv_path_mzscheme`
5305	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
5306	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
5307	  fi
5308	fi
5309
5310	if test "X$vi_cv_path_mzscheme" != "X"; then
5311	    	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5
5312$as_echo_n "checking MzScheme install prefix... " >&6; }
5313if ${vi_cv_path_mzscheme_pfx+:} false; then :
5314  $as_echo_n "(cached) " >&6
5315else
5316  	    	    echo "(display (simplify-path		\
5317	       (build-path (call-with-values	\
5318		(lambda () (split-path (find-system-path (quote exec-file)))) \
5319		(lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
5320	    	     vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
5321		sed -e 's+/$++'`
5322fi
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5
5324$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
5325	    rm -f mzdirs.scm
5326	fi
5327    fi
5328  fi
5329
5330  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5331    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5
5332$as_echo_n "checking for racket include directory... " >&6; }
5333    SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'`
5334    if test "X$SCHEME_INC" != "X"; then
5335      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5
5336$as_echo "${SCHEME_INC}" >&6; }
5337    else
5338      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5339$as_echo "not found" >&6; }
5340      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
5341$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
5342      if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then
5343	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
5344	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5345$as_echo "yes" >&6; }
5346      else
5347	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348$as_echo "no" >&6; }
5349	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
5350$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
5351	if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then
5352	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5353$as_echo "yes" >&6; }
5354	  SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
5355	else
5356	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357$as_echo "no" >&6; }
5358	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5
5359$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; }
5360	  if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then
5361	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5362$as_echo "yes" >&6; }
5363	    SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket
5364	  else
5365	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366$as_echo "no" >&6; }
5367	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5
5368$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
5369	    if test -f /usr/include/plt/scheme.h; then
5370	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5371$as_echo "yes" >&6; }
5372	      SCHEME_INC=/usr/include/plt
5373	    else
5374	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375$as_echo "no" >&6; }
5376	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5
5377$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; }
5378	      if test -f /usr/include/racket/scheme.h; then
5379		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5380$as_echo "yes" >&6; }
5381		SCHEME_INC=/usr/include/racket
5382	      else
5383		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384$as_echo "no" >&6; }
5385		vi_cv_path_mzscheme_pfx=
5386	      fi
5387	    fi
5388	  fi
5389	fi
5390      fi
5391    fi
5392  fi
5393
5394  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5395
5396    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5
5397$as_echo_n "checking for racket lib directory... " >&6; }
5398    SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'`
5399    if test "X$SCHEME_LIB" != "X"; then
5400      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5
5401$as_echo "${SCHEME_LIB}" >&6; }
5402    else
5403      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5404$as_echo "not found" >&6; }
5405    fi
5406
5407    for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do
5408      if test "X$path" != "X"; then
5409	if test "x$MACOS_X" = "xyes"; then
5410	  MZSCHEME_LIBS="-framework Racket"
5411	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5412	elif test -f "${path}/libmzscheme3m.a"; then
5413	  MZSCHEME_LIBS="${path}/libmzscheme3m.a"
5414	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5415	elif test -f "${path}/libracket3m.a"; then
5416	  MZSCHEME_LIBS="${path}/libracket3m.a"
5417	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5418	elif test -f "${path}/libracket.a"; then
5419	  MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a"
5420	elif test -f "${path}/libmzscheme.a"; then
5421	  MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a"
5422	else
5423	  	  if test -f "${path}/libmzscheme3m.so"; then
5424	    MZSCHEME_LIBS="-L${path} -lmzscheme3m"
5425	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5426	  elif test -f "${path}/libracket3m.so"; then
5427	    MZSCHEME_LIBS="-L${path} -lracket3m"
5428	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5429	  elif test -f "${path}/libracket.so"; then
5430	    MZSCHEME_LIBS="-L${path} -lracket -lmzgc"
5431	  else
5432	    	    if test "$path" != "$SCHEME_LIB"; then
5433	      continue
5434	    fi
5435	    MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc"
5436	  fi
5437	  if test "$GCC" = yes; then
5438	    	    	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}"
5439	  elif test "`(uname) 2>/dev/null`" = SunOS &&
5440				   uname -r | grep '^5' >/dev/null; then
5441	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}"
5442	  fi
5443	fi
5444      fi
5445      if test "X$MZSCHEME_LIBS" != "X"; then
5446	break
5447      fi
5448    done
5449
5450    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5
5451$as_echo_n "checking if racket requires -pthread... " >&6; }
5452    if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then
5453      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5454$as_echo "yes" >&6; }
5455      MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread"
5456      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread"
5457    else
5458      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459$as_echo "no" >&6; }
5460    fi
5461
5462    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5
5463$as_echo_n "checking for racket config directory... " >&6; }
5464    SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'`
5465    if test "X$SCHEME_CONFIGDIR" != "X"; then
5466      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'"
5467      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5
5468$as_echo "${SCHEME_CONFIGDIR}" >&6; }
5469    else
5470      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5471$as_echo "not found" >&6; }
5472    fi
5473
5474    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5
5475$as_echo_n "checking for racket collects directory... " >&6; }
5476    SCHEME_COLLECTS=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-collects-dir))) (when (path? p) (let-values (((base _1 _2) (split-path p))) (display base))))'`
5477    if test "X$SCHEME_COLLECTS" = "X"; then
5478      if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then
5479	SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/
5480      else
5481	if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then
5482	  SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/
5483	else
5484	  if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then
5485	    SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/
5486	  else
5487	    if test -d "$vi_cv_path_mzscheme_pfx/collects"; then
5488	      SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/
5489	    fi
5490	  fi
5491	fi
5492      fi
5493    fi
5494    if test "X$SCHEME_COLLECTS" != "X" ; then
5495      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5
5496$as_echo "${SCHEME_COLLECTS}" >&6; }
5497    else
5498      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5499$as_echo "not found" >&6; }
5500    fi
5501
5502    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5
5503$as_echo_n "checking for mzscheme_base.c... " >&6; }
5504    if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
5505      MZSCHEME_EXTRA="mzscheme_base.c"
5506      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5507      MZSCHEME_MOD="++lib scheme/base"
5508    else
5509      if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then
5510	MZSCHEME_EXTRA="mzscheme_base.c"
5511	MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5512	MZSCHEME_MOD="++lib scheme/base"
5513      else
5514	if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then
5515	  MZSCHEME_EXTRA="mzscheme_base.c"
5516	  MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool"
5517	  MZSCHEME_MOD=""
5518	fi
5519      fi
5520    fi
5521    if test "X$MZSCHEME_EXTRA" != "X" ; then
5522            MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
5523      { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5
5524$as_echo "needed" >&6; }
5525    else
5526      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
5527$as_echo "not needed" >&6; }
5528    fi
5529
5530        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5
5531$as_echo_n "checking for ffi_type_void in -lffi... " >&6; }
5532if ${ac_cv_lib_ffi_ffi_type_void+:} false; then :
5533  $as_echo_n "(cached) " >&6
5534else
5535  ac_check_lib_save_LIBS=$LIBS
5536LIBS="-lffi  $LIBS"
5537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538/* end confdefs.h.  */
5539
5540/* Override any GCC internal prototype to avoid an error.
5541   Use char because int might match the return type of a GCC
5542   builtin and then its argument prototype would still apply.  */
5543#ifdef __cplusplus
5544extern "C"
5545#endif
5546char ffi_type_void ();
5547int
5548main ()
5549{
5550return ffi_type_void ();
5551  ;
5552  return 0;
5553}
5554_ACEOF
5555if ac_fn_c_try_link "$LINENO"; then :
5556  ac_cv_lib_ffi_ffi_type_void=yes
5557else
5558  ac_cv_lib_ffi_ffi_type_void=no
5559fi
5560rm -f core conftest.err conftest.$ac_objext \
5561    conftest$ac_exeext conftest.$ac_ext
5562LIBS=$ac_check_lib_save_LIBS
5563fi
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5
5565$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; }
5566if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then :
5567  MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi"
5568fi
5569
5570
5571    MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
5572      -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'"
5573
5574        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5
5575$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; }
5576    cflags_save=$CFLAGS
5577    libs_save=$LIBS
5578    CFLAGS="$CFLAGS $MZSCHEME_CFLAGS"
5579    LIBS="$LIBS $MZSCHEME_LIBS"
5580    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581/* end confdefs.h.  */
5582
5583int
5584main ()
5585{
5586
5587  ;
5588  return 0;
5589}
5590_ACEOF
5591if ac_fn_c_try_link "$LINENO"; then :
5592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5593$as_echo "yes" >&6; }; mzs_ok=yes
5594else
5595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5
5596$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no
5597fi
5598rm -f core conftest.err conftest.$ac_objext \
5599    conftest$ac_exeext conftest.$ac_ext
5600    CFLAGS=$cflags_save
5601    LIBS=$libs_save
5602    if test $mzs_ok = yes; then
5603      MZSCHEME_SRC="if_mzsch.c"
5604      MZSCHEME_OBJ="objects/if_mzsch.o"
5605      MZSCHEME_PRO="if_mzsch.pro"
5606      $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h
5607
5608    else
5609      MZSCHEME_CFLAGS=
5610      MZSCHEME_LIBS=
5611      MZSCHEME_EXTRA=
5612      MZSCHEME_MZC=
5613    fi
5614  fi
5615
5616
5617
5618
5619
5620
5621
5622fi
5623
5624
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5
5626$as_echo_n "checking --enable-perlinterp argument... " >&6; }
5627# Check whether --enable-perlinterp was given.
5628if test "${enable_perlinterp+set}" = set; then :
5629  enableval=$enable_perlinterp;
5630else
5631  enable_perlinterp="no"
5632fi
5633
5634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5
5635$as_echo "$enable_perlinterp" >&6; }
5636if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
5637  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
5638    as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5
5639  fi
5640
5641  # Extract the first word of "perl", so it can be a program name with args.
5642set dummy perl; ac_word=$2
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644$as_echo_n "checking for $ac_word... " >&6; }
5645if ${ac_cv_path_vi_cv_path_perl+:} false; then :
5646  $as_echo_n "(cached) " >&6
5647else
5648  case $vi_cv_path_perl in
5649  [\\/]* | ?:[\\/]*)
5650  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
5651  ;;
5652  *)
5653  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654for as_dir in $PATH
5655do
5656  IFS=$as_save_IFS
5657  test -z "$as_dir" && as_dir=.
5658    for ac_exec_ext in '' $ac_executable_extensions; do
5659  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
5661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662    break 2
5663  fi
5664done
5665  done
5666IFS=$as_save_IFS
5667
5668  ;;
5669esac
5670fi
5671vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
5672if test -n "$vi_cv_path_perl"; then
5673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5
5674$as_echo "$vi_cv_path_perl" >&6; }
5675else
5676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677$as_echo "no" >&6; }
5678fi
5679
5680
5681  if test "X$vi_cv_path_perl" != "X"; then
5682    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5
5683$as_echo_n "checking Perl version... " >&6; }
5684    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
5685     eval `$vi_cv_path_perl -V:usethreads`
5686     eval `$vi_cv_path_perl -V:libperl`
5687     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
5688       badthreads=no
5689     else
5690       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
5691	 eval `$vi_cv_path_perl -V:use5005threads`
5692	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
5693	   badthreads=no
5694	 else
5695	   badthreads=yes
5696	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
5697$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
5698	 fi
5699       else
5700	 badthreads=yes
5701	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
5702$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
5703       fi
5704     fi
5705     if test $badthreads = no; then
5706      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
5707$as_echo "OK" >&6; }
5708      eval `$vi_cv_path_perl -V:shrpenv`
5709      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
5710	shrpenv=""
5711      fi
5712      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
5713
5714      vi_cv_perl_extutils=unknown_perl_extutils_path
5715      for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do
5716	xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp"
5717	if test -f "$xsubpp_path"; then
5718	  vi_cv_perl_xsubpp="$xsubpp_path"
5719	fi
5720      done
5721
5722                              perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
5723		-e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \
5724		-e 's/-fdebug-prefix-map[^ ]*//g' \
5725		-e 's/-pipe //' \
5726		-e 's/-W[^ ]*//g' \
5727		-e 's/-D_FORTIFY_SOURCE=.//g'`
5728            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
5729		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
5730			-e 's/-bE:perl.exp//' -e 's/-lc //'`
5731                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
5732		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
5733
5734                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5
5735$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
5736      cflags_save=$CFLAGS
5737      libs_save=$LIBS
5738      ldflags_save=$LDFLAGS
5739      CFLAGS="$CFLAGS $perlcppflags"
5740      LIBS="$LIBS $perllibs"
5741      perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'`
5742      LDFLAGS="$perlldflags $LDFLAGS"
5743      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744/* end confdefs.h.  */
5745
5746int
5747main ()
5748{
5749
5750  ;
5751  return 0;
5752}
5753_ACEOF
5754if ac_fn_c_try_link "$LINENO"; then :
5755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5756$as_echo "yes" >&6; }; perl_ok=yes
5757else
5758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5
5759$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
5760fi
5761rm -f core conftest.err conftest.$ac_objext \
5762    conftest$ac_exeext conftest.$ac_ext
5763      CFLAGS=$cflags_save
5764      LIBS=$libs_save
5765      LDFLAGS=$ldflags_save
5766      if test $perl_ok = yes; then
5767	if test "X$perlcppflags" != "X"; then
5768	  PERL_CFLAGS=$perlcppflags
5769	fi
5770	if test "X$perlldflags" != "X"; then
5771	  if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then
5772	    LDFLAGS="$perlldflags $LDFLAGS"
5773	  fi
5774	fi
5775	PERL_LIBS=$perllibs
5776	PERL_SRC="auto/if_perl.c if_perlsfio.c"
5777	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
5778	PERL_PRO="if_perl.pro if_perlsfio.pro"
5779	$as_echo "#define FEAT_PERL 1" >>confdefs.h
5780
5781      fi
5782     fi
5783    else
5784      { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
5785$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
5786    fi
5787  fi
5788
5789  if test "x$MACOS_X" = "xyes"; then
5790        dir=/System/Library/Perl
5791    darwindir=$dir/darwin
5792    if test -d $darwindir; then
5793      PERL=/usr/bin/perl
5794    else
5795            dir=/System/Library/Perl/5.8.1
5796      darwindir=$dir/darwin-thread-multi-2level
5797      if test -d $darwindir; then
5798	PERL=/usr/bin/perl
5799      fi
5800    fi
5801    if test -n "$PERL"; then
5802      PERL_DIR="$dir"
5803      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
5804      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
5805      PERL_LIBS="-L$darwindir/CORE -lperl"
5806    fi
5807                PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
5808    PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
5809  fi
5810  if test "$enable_perlinterp" = "dynamic"; then
5811    if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then
5812      $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h
5813
5814      PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
5815    fi
5816  fi
5817
5818  if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
5819    as_fn_error $? "could not configure perl" "$LINENO" 5
5820  fi
5821fi
5822
5823
5824
5825
5826
5827
5828
5829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5
5830$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5831# Check whether --enable-pythoninterp was given.
5832if test "${enable_pythoninterp+set}" = set; then :
5833  enableval=$enable_pythoninterp;
5834else
5835  enable_pythoninterp="no"
5836fi
5837
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
5839$as_echo "$enable_pythoninterp" >&6; }
5840if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
5841  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
5842    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
5843  fi
5844
5845    for ac_prog in python2 python
5846do
5847  # Extract the first word of "$ac_prog", so it can be a program name with args.
5848set dummy $ac_prog; ac_word=$2
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850$as_echo_n "checking for $ac_word... " >&6; }
5851if ${ac_cv_path_vi_cv_path_python+:} false; then :
5852  $as_echo_n "(cached) " >&6
5853else
5854  case $vi_cv_path_python in
5855  [\\/]* | ?:[\\/]*)
5856  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5857  ;;
5858  *)
5859  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860for as_dir in $PATH
5861do
5862  IFS=$as_save_IFS
5863  test -z "$as_dir" && as_dir=.
5864    for ac_exec_ext in '' $ac_executable_extensions; do
5865  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868    break 2
5869  fi
5870done
5871  done
5872IFS=$as_save_IFS
5873
5874  ;;
5875esac
5876fi
5877vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5878if test -n "$vi_cv_path_python"; then
5879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
5880$as_echo "$vi_cv_path_python" >&6; }
5881else
5882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883$as_echo "no" >&6; }
5884fi
5885
5886
5887  test -n "$vi_cv_path_python" && break
5888done
5889
5890  if test "X$vi_cv_path_python" != "X"; then
5891
5892        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
5893$as_echo_n "checking Python version... " >&6; }
5894if ${vi_cv_var_python_version+:} false; then :
5895  $as_echo_n "(cached) " >&6
5896else
5897  vi_cv_var_python_version=`
5898	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5899
5900fi
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5
5902$as_echo "$vi_cv_var_python_version" >&6; }
5903
5904        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5
5905$as_echo_n "checking Python is 2.3 or better... " >&6; }
5906    if ${vi_cv_path_python} -c \
5907	"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"
5908    then
5909      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
5910$as_echo "yep" >&6; }
5911
5912            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
5913$as_echo_n "checking Python's install prefix... " >&6; }
5914if ${vi_cv_path_python_pfx+:} false; then :
5915  $as_echo_n "(cached) " >&6
5916else
5917   vi_cv_path_python_pfx=`
5918	    ${vi_cv_path_python} -c \
5919		"import sys; print sys.prefix"`
5920fi
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5
5922$as_echo "$vi_cv_path_python_pfx" >&6; }
5923
5924            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
5925$as_echo_n "checking Python's execution prefix... " >&6; }
5926if ${vi_cv_path_python_epfx+:} false; then :
5927  $as_echo_n "(cached) " >&6
5928else
5929   vi_cv_path_python_epfx=`
5930	    ${vi_cv_path_python} -c \
5931		"import sys; print sys.exec_prefix"`
5932fi
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5
5934$as_echo "$vi_cv_path_python_epfx" >&6; }
5935
5936
5937      if ${vi_cv_path_pythonpath+:} false; then :
5938  $as_echo_n "(cached) " >&6
5939else
5940   vi_cv_path_pythonpath=`
5941	    unset PYTHONPATH;
5942	    ${vi_cv_path_python} -c \
5943		"import sys, string; print string.join(sys.path,':')"`
5944fi
5945
5946
5947
5948
5949# Check whether --with-python-config-dir was given.
5950if test "${with_python_config_dir+set}" = set; then :
5951  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"
5952fi
5953
5954
5955      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
5956$as_echo_n "checking Python's configuration directory... " >&6; }
5957if ${vi_cv_path_python_conf+:} false; then :
5958  $as_echo_n "(cached) " >&6
5959else
5960
5961	vi_cv_path_python_conf=
5962	d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"`
5963	if test -d "$d" && test -f "$d/config.c"; then
5964	  vi_cv_path_python_conf="$d"
5965	else
5966	  for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5967	    for subdir in lib64 lib share; do
5968	      d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5969	      if test -d "$d" && test -f "$d/config.c"; then
5970		vi_cv_path_python_conf="$d"
5971	      fi
5972	    done
5973	  done
5974	fi
5975
5976fi
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5
5978$as_echo "$vi_cv_path_python_conf" >&6; }
5979
5980      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5981
5982      if test "X$PYTHON_CONFDIR" = "X"; then
5983	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
5984$as_echo "can't find it!" >&6; }
5985      else
5986
5987			if ${vi_cv_path_python_plibs+:} false; then :
5988  $as_echo_n "(cached) " >&6
5989else
5990
5991	    pwd=`pwd`
5992	    tmp_mkf="$pwd/config-PyMake$$"
5993	    cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5994__:
5995	@echo "python_BASEMODLIBS='$(BASEMODLIBS)'"
5996	@echo "python_LIBS='$(LIBS)'"
5997	@echo "python_SYSLIBS='$(SYSLIBS)'"
5998	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5999	@echo "python_DLLLIBRARY='$(DLLLIBRARY)'"
6000	@echo "python_INSTSONAME='$(INSTSONAME)'"
6001	@echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'"
6002	@echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'"
6003	@echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'"
6004eof
6005	    	    eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6006	    rm -f -- "${tmp_mkf}"
6007	    if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \
6008		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
6009	      vi_cv_path_python_plibs="-framework Python"
6010	      if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6011		  vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python"
6012	      fi
6013	    else
6014	      if test "${vi_cv_var_python_version}" = "1.4"; then
6015		  vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
6016	      else
6017		  vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
6018	      fi
6019	      	      	      	      if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6020	        python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'`
6021		python_link_path=`echo ${python_LINKFORSHARED} |   sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'`
6022	        if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6023	          		  	          python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}"
6024		  if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6025		    		    python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}"
6026	            	            		  fi
6027	          python_LINKFORSHARED="${python_link_symbol} ${python_link_path}"
6028	        fi
6029	      fi
6030	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
6031	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
6032	    fi
6033
6034fi
6035
6036	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5
6037$as_echo_n "checking Python's dll name... " >&6; }
6038if ${vi_cv_dll_name_python+:} false; then :
6039  $as_echo_n "(cached) " >&6
6040else
6041
6042	  if test "X$python_DLLLIBRARY" != "X"; then
6043	    vi_cv_dll_name_python="$python_DLLLIBRARY"
6044	  else
6045	    vi_cv_dll_name_python="$python_INSTSONAME"
6046	  fi
6047
6048fi
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5
6050$as_echo "$vi_cv_dll_name_python" >&6; }
6051
6052	PYTHON_LIBS="${vi_cv_path_python_plibs}"
6053	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
6054	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'"
6055	else
6056	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'"
6057	fi
6058	PYTHON_SRC="if_python.c"
6059	PYTHON_OBJ="objects/if_python.o"
6060	if test "${vi_cv_var_python_version}" = "1.4"; then
6061	   PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
6062	fi
6063    PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
6064
6065								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6066$as_echo_n "checking if -pthread should be used... " >&6; }
6067	threadsafe_flag=
6068	thread_lib=
6069	        if test "`(uname) 2>/dev/null`" != Darwin; then
6070	  test "$GCC" = yes && threadsafe_flag="-pthread"
6071	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
6072	    threadsafe_flag="-D_THREAD_SAFE"
6073	    thread_lib="-pthread"
6074	  fi
6075	  if test "`(uname) 2>/dev/null`" = SunOS; then
6076	    threadsafe_flag="-pthreads"
6077	  fi
6078	fi
6079	libs_save_old=$LIBS
6080	if test -n "$threadsafe_flag"; then
6081	  cflags_save=$CFLAGS
6082	  CFLAGS="$CFLAGS $threadsafe_flag"
6083	  LIBS="$LIBS $thread_lib"
6084	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085/* end confdefs.h.  */
6086
6087int
6088main ()
6089{
6090
6091  ;
6092  return 0;
6093}
6094_ACEOF
6095if ac_fn_c_try_link "$LINENO"; then :
6096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6097$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
6098else
6099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100$as_echo "no" >&6; }; LIBS=$libs_save_old
6101
6102fi
6103rm -f core conftest.err conftest.$ac_objext \
6104    conftest$ac_exeext conftest.$ac_ext
6105	  CFLAGS=$cflags_save
6106	else
6107	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108$as_echo "no" >&6; }
6109	fi
6110
6111			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5
6112$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
6113	cflags_save=$CFLAGS
6114	libs_save=$LIBS
6115	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6116	LIBS="$LIBS $PYTHON_LIBS"
6117	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118/* end confdefs.h.  */
6119
6120int
6121main ()
6122{
6123
6124  ;
6125  return 0;
6126}
6127_ACEOF
6128if ac_fn_c_try_link "$LINENO"; then :
6129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6130$as_echo "yes" >&6; }; python_ok=yes
6131else
6132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5
6133$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
6134fi
6135rm -f core conftest.err conftest.$ac_objext \
6136    conftest$ac_exeext conftest.$ac_ext
6137	CFLAGS=$cflags_save
6138	LIBS=$libs_save
6139	if test $python_ok = yes; then
6140	  $as_echo "#define FEAT_PYTHON 1" >>confdefs.h
6141
6142	else
6143	  LIBS=$libs_save_old
6144	  PYTHON_SRC=
6145	  PYTHON_OBJ=
6146	  PYTHON_LIBS=
6147	  PYTHON_CFLAGS=
6148	fi
6149      fi
6150    else
6151      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6152$as_echo "too old" >&6; }
6153    fi
6154  fi
6155
6156  if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
6157    as_fn_error $? "could not configure python" "$LINENO" 5
6158  fi
6159fi
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5
6170$as_echo_n "checking --enable-python3interp argument... " >&6; }
6171# Check whether --enable-python3interp was given.
6172if test "${enable_python3interp+set}" = set; then :
6173  enableval=$enable_python3interp;
6174else
6175  enable_python3interp="no"
6176fi
6177
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5
6179$as_echo "$enable_python3interp" >&6; }
6180if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
6181  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6182    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6183  fi
6184
6185    for ac_prog in python3 python
6186do
6187  # Extract the first word of "$ac_prog", so it can be a program name with args.
6188set dummy $ac_prog; ac_word=$2
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190$as_echo_n "checking for $ac_word... " >&6; }
6191if ${ac_cv_path_vi_cv_path_python3+:} false; then :
6192  $as_echo_n "(cached) " >&6
6193else
6194  case $vi_cv_path_python3 in
6195  [\\/]* | ?:[\\/]*)
6196  ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path.
6197  ;;
6198  *)
6199  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200for as_dir in $PATH
6201do
6202  IFS=$as_save_IFS
6203  test -z "$as_dir" && as_dir=.
6204    for ac_exec_ext in '' $ac_executable_extensions; do
6205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6206    ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext"
6207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6208    break 2
6209  fi
6210done
6211  done
6212IFS=$as_save_IFS
6213
6214  ;;
6215esac
6216fi
6217vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3
6218if test -n "$vi_cv_path_python3"; then
6219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6220$as_echo "$vi_cv_path_python3" >&6; }
6221else
6222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223$as_echo "no" >&6; }
6224fi
6225
6226
6227  test -n "$vi_cv_path_python3" && break
6228done
6229
6230  if test "X$vi_cv_path_python3" != "X"; then
6231
6232        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6233$as_echo_n "checking Python version... " >&6; }
6234if ${vi_cv_var_python3_version+:} false; then :
6235  $as_echo_n "(cached) " >&6
6236else
6237  vi_cv_var_python3_version=`
6238          ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'`
6239
6240fi
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5
6242$as_echo "$vi_cv_var_python3_version" >&6; }
6243
6244        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5
6245$as_echo_n "checking Python is 3.0 or better... " >&6; }
6246    if ${vi_cv_path_python3} -c \
6247      "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)"
6248    then
6249      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6250$as_echo "yep" >&6; }
6251
6252            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5
6253$as_echo_n "checking Python's abiflags... " >&6; }
6254if ${vi_cv_var_python3_abiflags+:} false; then :
6255  $as_echo_n "(cached) " >&6
6256else
6257
6258       vi_cv_var_python3_abiflags=
6259       if ${vi_cv_path_python3} -c \
6260           "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)"
6261       then
6262         vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \
6263           "import sys; print(sys.abiflags)"`
6264       fi
6265fi
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5
6267$as_echo "$vi_cv_var_python3_abiflags" >&6; }
6268
6269            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6270$as_echo_n "checking Python's install prefix... " >&6; }
6271if ${vi_cv_path_python3_pfx+:} false; then :
6272  $as_echo_n "(cached) " >&6
6273else
6274   vi_cv_path_python3_pfx=`
6275       ${vi_cv_path_python3} -c \
6276       "import sys; print(sys.prefix)"`
6277fi
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5
6279$as_echo "$vi_cv_path_python3_pfx" >&6; }
6280
6281            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6282$as_echo_n "checking Python's execution prefix... " >&6; }
6283if ${vi_cv_path_python3_epfx+:} false; then :
6284  $as_echo_n "(cached) " >&6
6285else
6286   vi_cv_path_python3_epfx=`
6287       ${vi_cv_path_python3} -c \
6288       "import sys; print(sys.exec_prefix)"`
6289fi
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5
6291$as_echo "$vi_cv_path_python3_epfx" >&6; }
6292
6293
6294      if ${vi_cv_path_python3path+:} false; then :
6295  $as_echo_n "(cached) " >&6
6296else
6297   vi_cv_path_python3path=`
6298       unset PYTHONPATH;
6299       ${vi_cv_path_python3} -c \
6300       "import sys, string; print(':'.join(sys.path))"`
6301fi
6302
6303
6304
6305
6306# Check whether --with-python3-config-dir was given.
6307if test "${with_python3_config_dir+set}" = set; then :
6308  withval=$with_python3_config_dir;  vi_cv_path_python3_conf="${withval}"
6309fi
6310
6311
6312      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6313$as_echo_n "checking Python's configuration directory... " >&6; }
6314if ${vi_cv_path_python3_conf+:} false; then :
6315  $as_echo_n "(cached) " >&6
6316else
6317
6318       vi_cv_path_python3_conf=
6319       config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6320       d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"`
6321       if test -d "$d" && test -f "$d/config.c"; then
6322         vi_cv_path_python3_conf="$d"
6323       else
6324         for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do
6325	   for subdir in lib64 lib share; do
6326	     d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}"
6327	     if test -d "$d" && test -f "$d/config.c"; then
6328	       vi_cv_path_python3_conf="$d"
6329	     fi
6330	   done
6331         done
6332       fi
6333
6334fi
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5
6336$as_echo "$vi_cv_path_python3_conf" >&6; }
6337
6338      PYTHON3_CONFDIR="${vi_cv_path_python3_conf}"
6339
6340      if test "X$PYTHON3_CONFDIR" = "X"; then
6341        { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6342$as_echo "can't find it!" >&6; }
6343      else
6344
6345                        if ${vi_cv_path_python3_plibs+:} false; then :
6346  $as_echo_n "(cached) " >&6
6347else
6348
6349            pwd=`pwd`
6350            tmp_mkf="$pwd/config-PyMake$$"
6351            cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6352__:
6353	@echo "python3_BASEMODLIBS='$(BASEMODLIBS)'"
6354	@echo "python3_LIBS='$(LIBS)'"
6355	@echo "python3_SYSLIBS='$(SYSLIBS)'"
6356	@echo "python3_DLLLIBRARY='$(DLLLIBRARY)'"
6357	@echo "python3_INSTSONAME='$(INSTSONAME)'"
6358eof
6359	    	    eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6360	    rm -f -- "${tmp_mkf}"
6361	    vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6362	    vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
6363	    	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
6364	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
6365
6366fi
6367
6368	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5
6369$as_echo_n "checking Python3's dll name... " >&6; }
6370if ${vi_cv_dll_name_python3+:} false; then :
6371  $as_echo_n "(cached) " >&6
6372else
6373
6374	  if test "X$python3_DLLLIBRARY" != "X"; then
6375	    vi_cv_dll_name_python3="$python3_DLLLIBRARY"
6376	  else
6377	    vi_cv_dll_name_python3="$python3_INSTSONAME"
6378	  fi
6379
6380fi
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5
6382$as_echo "$vi_cv_dll_name_python3" >&6; }
6383
6384        PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
6385        if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
6386          PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'"
6387        else
6388          PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -I${vi_cv_path_python3_epfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags} -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'"
6389        fi
6390        PYTHON3_SRC="if_python3.c"
6391        PYTHON3_OBJ="objects/if_python3.o"
6392
6393                                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6394$as_echo_n "checking if -pthread should be used... " >&6; }
6395        threadsafe_flag=
6396        thread_lib=
6397                if test "`(uname) 2>/dev/null`" != Darwin; then
6398          test "$GCC" = yes && threadsafe_flag="-pthread"
6399          if test "`(uname) 2>/dev/null`" = FreeBSD; then
6400            threadsafe_flag="-D_THREAD_SAFE"
6401            thread_lib="-pthread"
6402          fi
6403          if test "`(uname) 2>/dev/null`" = SunOS; then
6404            threadsafe_flag="-pthreads"
6405          fi
6406        fi
6407        libs_save_old=$LIBS
6408        if test -n "$threadsafe_flag"; then
6409          cflags_save=$CFLAGS
6410          CFLAGS="$CFLAGS $threadsafe_flag"
6411          LIBS="$LIBS $thread_lib"
6412          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413/* end confdefs.h.  */
6414
6415int
6416main ()
6417{
6418
6419  ;
6420  return 0;
6421}
6422_ACEOF
6423if ac_fn_c_try_link "$LINENO"; then :
6424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6425$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag"
6426else
6427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428$as_echo "no" >&6; }; LIBS=$libs_save_old
6429
6430fi
6431rm -f core conftest.err conftest.$ac_objext \
6432    conftest$ac_exeext conftest.$ac_ext
6433          CFLAGS=$cflags_save
6434        else
6435          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436$as_echo "no" >&6; }
6437        fi
6438
6439                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5
6440$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; }
6441        cflags_save=$CFLAGS
6442        libs_save=$LIBS
6443        CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6444        LIBS="$LIBS $PYTHON3_LIBS"
6445        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446/* end confdefs.h.  */
6447
6448int
6449main ()
6450{
6451
6452  ;
6453  return 0;
6454}
6455_ACEOF
6456if ac_fn_c_try_link "$LINENO"; then :
6457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6458$as_echo "yes" >&6; }; python3_ok=yes
6459else
6460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5
6461$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no
6462fi
6463rm -f core conftest.err conftest.$ac_objext \
6464    conftest$ac_exeext conftest.$ac_ext
6465        CFLAGS=$cflags_save
6466        LIBS=$libs_save
6467        if test "$python3_ok" = yes; then
6468          $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h
6469
6470        else
6471          LIBS=$libs_save_old
6472          PYTHON3_SRC=
6473          PYTHON3_OBJ=
6474          PYTHON3_LIBS=
6475          PYTHON3_CFLAGS=
6476        fi
6477      fi
6478    else
6479      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6480$as_echo "too old" >&6; }
6481    fi
6482  fi
6483  if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then
6484    as_fn_error $? "could not configure python3" "$LINENO" 5
6485  fi
6486fi
6487
6488
6489
6490
6491
6492
6493
6494if test "$python_ok" = yes && test "$python3_ok" = yes; then
6495  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
6496
6497  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
6498
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5
6500$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; }
6501  cflags_save=$CFLAGS
6502  CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6503  libs_save=$LIBS
6504    LIBS="-ldl $LIBS"
6505  if test "$cross_compiling" = yes; then :
6506  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6508as_fn_error $? "cannot run test program while cross compiling
6509See \`config.log' for more details" "$LINENO" 5; }
6510else
6511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512/* end confdefs.h.  */
6513
6514    #include <dlfcn.h>
6515    /* If this program fails, then RTLD_GLOBAL is needed.
6516     * RTLD_GLOBAL will be used and then it is not possible to
6517     * have both python versions enabled in the same vim instance.
6518     * Only the first python version used will be switched on.
6519     */
6520
6521    int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
6522    {
6523      int needed = 0;
6524      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
6525      if (pylib != 0)
6526      {
6527          void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome");
6528          void (*init)(void) = dlsym(pylib, "Py_Initialize");
6529          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
6530          void (*final)(void) = dlsym(pylib, "Py_Finalize");
6531          (*pfx)(prefix);
6532          (*init)();
6533          needed = (*simple)("import termios") == -1;
6534          (*final)();
6535          dlclose(pylib);
6536      }
6537      return !needed;
6538    }
6539
6540    int main(int argc, char** argv)
6541    {
6542      int not_needed = 0;
6543      if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}"))
6544            not_needed = 1;
6545      return !not_needed;
6546    }
6547_ACEOF
6548if ac_fn_c_try_run "$LINENO"; then :
6549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6550$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h
6551
6552else
6553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554$as_echo "no" >&6; }
6555fi
6556rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6557  conftest.$ac_objext conftest.beam conftest.$ac_ext
6558fi
6559
6560
6561  CFLAGS=$cflags_save
6562  LIBS=$libs_save
6563
6564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5
6565$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; }
6566  cflags_save=$CFLAGS
6567  CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6568  libs_save=$LIBS
6569    LIBS="-ldl $LIBS"
6570  if test "$cross_compiling" = yes; then :
6571  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6573as_fn_error $? "cannot run test program while cross compiling
6574See \`config.log' for more details" "$LINENO" 5; }
6575else
6576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577/* end confdefs.h.  */
6578
6579    #include <dlfcn.h>
6580    #include <wchar.h>
6581    /* If this program fails, then RTLD_GLOBAL is needed.
6582     * RTLD_GLOBAL will be used and then it is not possible to
6583     * have both python versions enabled in the same vim instance.
6584     * Only the first python version used will be switched on.
6585     */
6586
6587    int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
6588    {
6589      int needed = 0;
6590      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
6591      if (pylib != 0)
6592      {
6593          void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome");
6594          void (*init)(void) = dlsym(pylib, "Py_Initialize");
6595          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
6596          void (*final)(void) = dlsym(pylib, "Py_Finalize");
6597          (*pfx)(prefix);
6598          (*init)();
6599          needed = (*simple)("import termios") == -1;
6600          (*final)();
6601          dlclose(pylib);
6602      }
6603      return !needed;
6604    }
6605
6606    int main(int argc, char** argv)
6607    {
6608      int not_needed = 0;
6609      if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}"))
6610            not_needed = 1;
6611      return !not_needed;
6612    }
6613_ACEOF
6614if ac_fn_c_try_run "$LINENO"; then :
6615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6616$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h
6617
6618else
6619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620$as_echo "no" >&6; }
6621fi
6622rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6623  conftest.$ac_objext conftest.beam conftest.$ac_ext
6624fi
6625
6626
6627  CFLAGS=$cflags_save
6628  LIBS=$libs_save
6629
6630  PYTHON_SRC="if_python.c"
6631  PYTHON_OBJ="objects/if_python.o"
6632  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
6633  PYTHON_LIBS=
6634  PYTHON3_SRC="if_python3.c"
6635  PYTHON3_OBJ="objects/if_python3.o"
6636  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
6637  PYTHON3_LIBS=
6638elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then
6639  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
6640
6641  PYTHON_SRC="if_python.c"
6642  PYTHON_OBJ="objects/if_python.o"
6643  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
6644  PYTHON_LIBS=
6645elif test "$python_ok" = yes; then
6646      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5
6647$as_echo_n "checking if -fPIE can be added for Python... " >&6; }
6648  cflags_save=$CFLAGS
6649  libs_save=$LIBS
6650  CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE"
6651  LIBS="$LIBS $PYTHON_LIBS"
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_link "$LINENO"; then :
6664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6665$as_echo "yes" >&6; }; fpie_ok=yes
6666else
6667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668$as_echo "no" >&6; }; fpie_ok=no
6669fi
6670rm -f core conftest.err conftest.$ac_objext \
6671    conftest$ac_exeext conftest.$ac_ext
6672  CFLAGS=$cflags_save
6673  LIBS=$libs_save
6674  if test $fpie_ok = yes; then
6675    PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE"
6676  fi
6677elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then
6678  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
6679
6680  PYTHON3_SRC="if_python3.c"
6681  PYTHON3_OBJ="objects/if_python3.o"
6682  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
6683  PYTHON3_LIBS=
6684elif test "$python3_ok" = yes; then
6685      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5
6686$as_echo_n "checking if -fPIE can be added for Python3... " >&6; }
6687  cflags_save=$CFLAGS
6688  libs_save=$LIBS
6689  CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE"
6690  LIBS="$LIBS $PYTHON3_LIBS"
6691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692/* end confdefs.h.  */
6693
6694int
6695main ()
6696{
6697
6698  ;
6699  return 0;
6700}
6701_ACEOF
6702if ac_fn_c_try_link "$LINENO"; then :
6703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6704$as_echo "yes" >&6; }; fpie_ok=yes
6705else
6706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707$as_echo "no" >&6; }; fpie_ok=no
6708fi
6709rm -f core conftest.err conftest.$ac_objext \
6710    conftest$ac_exeext conftest.$ac_ext
6711  CFLAGS=$cflags_save
6712  LIBS=$libs_save
6713  if test $fpie_ok = yes; then
6714    PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE"
6715  fi
6716fi
6717
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5
6719$as_echo_n "checking --enable-tclinterp argument... " >&6; }
6720# Check whether --enable-tclinterp was given.
6721if test "${enable_tclinterp+set}" = set; then :
6722  enableval=$enable_tclinterp;
6723else
6724  enable_tclinterp="no"
6725fi
6726
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5
6728$as_echo "$enable_tclinterp" >&6; }
6729
6730if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then
6731
6732    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5
6733$as_echo_n "checking --with-tclsh argument... " >&6; }
6734
6735# Check whether --with-tclsh was given.
6736if test "${with_tclsh+set}" = set; then :
6737  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5
6738$as_echo "$tclsh_name" >&6; }
6739else
6740  tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741$as_echo "no" >&6; }
6742fi
6743
6744  # Extract the first word of "$tclsh_name", so it can be a program name with args.
6745set dummy $tclsh_name; ac_word=$2
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747$as_echo_n "checking for $ac_word... " >&6; }
6748if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6749  $as_echo_n "(cached) " >&6
6750else
6751  case $vi_cv_path_tcl in
6752  [\\/]* | ?:[\\/]*)
6753  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6754  ;;
6755  *)
6756  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757for as_dir in $PATH
6758do
6759  IFS=$as_save_IFS
6760  test -z "$as_dir" && as_dir=.
6761    for ac_exec_ext in '' $ac_executable_extensions; do
6762  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6763    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765    break 2
6766  fi
6767done
6768  done
6769IFS=$as_save_IFS
6770
6771  ;;
6772esac
6773fi
6774vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6775if test -n "$vi_cv_path_tcl"; then
6776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6777$as_echo "$vi_cv_path_tcl" >&6; }
6778else
6779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780$as_echo "no" >&6; }
6781fi
6782
6783
6784
6785
6786    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
6787    tclsh_name="tclsh8.4"
6788    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6789set dummy $tclsh_name; ac_word=$2
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791$as_echo_n "checking for $ac_word... " >&6; }
6792if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6793  $as_echo_n "(cached) " >&6
6794else
6795  case $vi_cv_path_tcl in
6796  [\\/]* | ?:[\\/]*)
6797  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6798  ;;
6799  *)
6800  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803  IFS=$as_save_IFS
6804  test -z "$as_dir" && as_dir=.
6805    for ac_exec_ext in '' $ac_executable_extensions; do
6806  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809    break 2
6810  fi
6811done
6812  done
6813IFS=$as_save_IFS
6814
6815  ;;
6816esac
6817fi
6818vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6819if test -n "$vi_cv_path_tcl"; then
6820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6821$as_echo "$vi_cv_path_tcl" >&6; }
6822else
6823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824$as_echo "no" >&6; }
6825fi
6826
6827
6828  fi
6829  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
6830    tclsh_name="tclsh8.2"
6831    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6832set dummy $tclsh_name; ac_word=$2
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834$as_echo_n "checking for $ac_word... " >&6; }
6835if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6836  $as_echo_n "(cached) " >&6
6837else
6838  case $vi_cv_path_tcl in
6839  [\\/]* | ?:[\\/]*)
6840  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6841  ;;
6842  *)
6843  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844for as_dir in $PATH
6845do
6846  IFS=$as_save_IFS
6847  test -z "$as_dir" && as_dir=.
6848    for ac_exec_ext in '' $ac_executable_extensions; do
6849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852    break 2
6853  fi
6854done
6855  done
6856IFS=$as_save_IFS
6857
6858  ;;
6859esac
6860fi
6861vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6862if test -n "$vi_cv_path_tcl"; then
6863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6864$as_echo "$vi_cv_path_tcl" >&6; }
6865else
6866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867$as_echo "no" >&6; }
6868fi
6869
6870
6871  fi
6872  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
6873    tclsh_name="tclsh8.0"
6874    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6875set dummy $tclsh_name; ac_word=$2
6876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877$as_echo_n "checking for $ac_word... " >&6; }
6878if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6879  $as_echo_n "(cached) " >&6
6880else
6881  case $vi_cv_path_tcl in
6882  [\\/]* | ?:[\\/]*)
6883  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6884  ;;
6885  *)
6886  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887for as_dir in $PATH
6888do
6889  IFS=$as_save_IFS
6890  test -z "$as_dir" && as_dir=.
6891    for ac_exec_ext in '' $ac_executable_extensions; do
6892  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6893    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6894    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895    break 2
6896  fi
6897done
6898  done
6899IFS=$as_save_IFS
6900
6901  ;;
6902esac
6903fi
6904vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6905if test -n "$vi_cv_path_tcl"; then
6906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6907$as_echo "$vi_cv_path_tcl" >&6; }
6908else
6909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910$as_echo "no" >&6; }
6911fi
6912
6913
6914  fi
6915    if test "X$vi_cv_path_tcl" = "X"; then
6916    tclsh_name="tclsh"
6917    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6918set dummy $tclsh_name; ac_word=$2
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920$as_echo_n "checking for $ac_word... " >&6; }
6921if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6922  $as_echo_n "(cached) " >&6
6923else
6924  case $vi_cv_path_tcl in
6925  [\\/]* | ?:[\\/]*)
6926  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6927  ;;
6928  *)
6929  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930for as_dir in $PATH
6931do
6932  IFS=$as_save_IFS
6933  test -z "$as_dir" && as_dir=.
6934    for ac_exec_ext in '' $ac_executable_extensions; do
6935  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6936    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938    break 2
6939  fi
6940done
6941  done
6942IFS=$as_save_IFS
6943
6944  ;;
6945esac
6946fi
6947vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6948if test -n "$vi_cv_path_tcl"; then
6949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6950$as_echo "$vi_cv_path_tcl" >&6; }
6951else
6952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953$as_echo "no" >&6; }
6954fi
6955
6956
6957  fi
6958  if test "X$vi_cv_path_tcl" != "X"; then
6959    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5
6960$as_echo_n "checking Tcl version... " >&6; }
6961    if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then
6962      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
6963      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5
6964$as_echo "$tclver - OK" >&6; };
6965      tclloc=`echo 'set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' | $vi_cv_path_tcl -`
6966      tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -`
6967
6968      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5
6969$as_echo_n "checking for location of Tcl include... " >&6; }
6970      if test "x$MACOS_X" != "xyes"; then
6971	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
6972      else
6973		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
6974      fi
6975      TCL_INC=
6976      for try in $tclinc; do
6977	if test -f "$try/tcl.h"; then
6978	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5
6979$as_echo "$try/tcl.h" >&6; }
6980	  TCL_INC=$try
6981	  break
6982	fi
6983      done
6984      if test -z "$TCL_INC"; then
6985	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
6986$as_echo "<not found>" >&6; }
6987	SKIP_TCL=YES
6988      fi
6989      if test -z "$SKIP_TCL"; then
6990	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5
6991$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
6992	if test "x$MACOS_X" != "xyes"; then
6993	  tclcnf=`echo $tclinc | sed s/include/lib/g`
6994	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
6995	else
6996	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
6997	fi
6998	for try in $tclcnf; do
6999	  if test -f "$try/tclConfig.sh"; then
7000	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5
7001$as_echo "$try/tclConfig.sh" >&6; }
7002	    . "$try/tclConfig.sh"
7003	    	    if test "$enable_tclinterp" = "dynamic"; then
7004	      TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"`
7005	    else
7006	      TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
7007	    fi
7008	    	    	    TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^[^-]/d' -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'`
7009	    break
7010	  fi
7011	done
7012	if test -z "$TCL_LIBS"; then
7013	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7014$as_echo "<not found>" >&6; }
7015	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5
7016$as_echo_n "checking for Tcl library by myself... " >&6; }
7017	  tcllib=`echo $tclinc | sed s/include/lib/g`
7018	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
7019	  for ext in .so .a ; do
7020	    for ver in "" $tclver ; do
7021	      for try in $tcllib ; do
7022		trylib=tcl$ver$ext
7023		if test -f "$try/lib$trylib" ; then
7024		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5
7025$as_echo "$try/lib$trylib" >&6; }
7026		  TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm"
7027		  if test "`(uname) 2>/dev/null`" = SunOS &&
7028					 uname -r | grep '^5' >/dev/null; then
7029		    TCL_LIBS="$TCL_LIBS -R $try"
7030		  fi
7031		  break 3
7032		fi
7033	      done
7034	    done
7035	  done
7036	  if test -z "$TCL_LIBS"; then
7037	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7038$as_echo "<not found>" >&6; }
7039	    SKIP_TCL=YES
7040	  fi
7041	fi
7042	if test -z "$SKIP_TCL"; then
7043	  $as_echo "#define FEAT_TCL 1" >>confdefs.h
7044
7045	  TCL_SRC=if_tcl.c
7046	  TCL_OBJ=objects/if_tcl.o
7047	  TCL_PRO=if_tcl.pro
7048	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
7049	fi
7050      fi
7051    else
7052      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5
7053$as_echo "too old; need Tcl version 8.0 or later" >&6; }
7054    fi
7055  fi
7056  if test "$enable_tclinterp" = "dynamic"; then
7057    if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then
7058      $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h
7059
7060      TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS"
7061    fi
7062  fi
7063  if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
7064    as_fn_error $? "could not configure Tcl" "$LINENO" 5
7065  fi
7066fi
7067
7068
7069
7070
7071
7072
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5
7074$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
7075# Check whether --enable-rubyinterp was given.
7076if test "${enable_rubyinterp+set}" = set; then :
7077  enableval=$enable_rubyinterp;
7078else
7079  enable_rubyinterp="no"
7080fi
7081
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
7083$as_echo "$enable_rubyinterp" >&6; }
7084if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
7085  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7086    as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5
7087  fi
7088
7089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
7090$as_echo_n "checking --with-ruby-command argument... " >&6; }
7091
7092
7093# Check whether --with-ruby-command was given.
7094if test "${with_ruby_command+set}" = set; then :
7095  withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
7096$as_echo "$RUBY_CMD" >&6; }
7097else
7098  RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
7099$as_echo "defaulting to $RUBY_CMD" >&6; }
7100fi
7101
7102  # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
7103set dummy $RUBY_CMD; ac_word=$2
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7105$as_echo_n "checking for $ac_word... " >&6; }
7106if ${ac_cv_path_vi_cv_path_ruby+:} false; then :
7107  $as_echo_n "(cached) " >&6
7108else
7109  case $vi_cv_path_ruby in
7110  [\\/]* | ?:[\\/]*)
7111  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
7112  ;;
7113  *)
7114  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117  IFS=$as_save_IFS
7118  test -z "$as_dir" && as_dir=.
7119    for ac_exec_ext in '' $ac_executable_extensions; do
7120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
7122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123    break 2
7124  fi
7125done
7126  done
7127IFS=$as_save_IFS
7128
7129  ;;
7130esac
7131fi
7132vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
7133if test -n "$vi_cv_path_ruby"; then
7134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5
7135$as_echo "$vi_cv_path_ruby" >&6; }
7136else
7137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138$as_echo "no" >&6; }
7139fi
7140
7141
7142  if test "X$vi_cv_path_ruby" != "X"; then
7143    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5
7144$as_echo_n "checking Ruby version... " >&6; }
7145    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
7146      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
7147$as_echo "OK" >&6; }
7148      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5
7149$as_echo_n "checking Ruby rbconfig... " >&6; }
7150      ruby_rbconfig="RbConfig"
7151      if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then
7152	ruby_rbconfig="Config"
7153      fi
7154      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5
7155$as_echo "$ruby_rbconfig" >&6; }
7156      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
7157$as_echo_n "checking Ruby header files... " >&6; }
7158      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null`
7159      if test "X$rubyhdrdir" != "X"; then
7160	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
7161$as_echo "$rubyhdrdir" >&6; }
7162	RUBY_CFLAGS="-I$rubyhdrdir"
7163        rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"`
7164        if test -d "$rubyarchdir"; then
7165          RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir"
7166        fi
7167        rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"`
7168	if test "X$rubyversion" = "X"; then
7169	  rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"`
7170	fi
7171        RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
7172	rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"`
7173	if test "X$rubylibs" != "X"; then
7174	  RUBY_LIBS="$rubylibs"
7175	fi
7176	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"`
7177	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"`
7178	rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"`
7179	if test -f "$rubylibdir/$librubya"; then
7180	  librubyarg="$librubyarg"
7181	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7182	elif test "$librubyarg" = "libruby.a"; then
7183	  	  librubyarg="-lruby"
7184	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7185	fi
7186
7187	if test "X$librubyarg" != "X"; then
7188	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
7189	fi
7190	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"`
7191	if test "X$rubyldflags" != "X"; then
7192	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
7193	  if test "X$rubyldflags" != "X"; then
7194	    if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then
7195	      LDFLAGS="$rubyldflags $LDFLAGS"
7196	    fi
7197	  fi
7198	fi
7199	RUBY_SRC="if_ruby.c"
7200	RUBY_OBJ="objects/if_ruby.o"
7201	RUBY_PRO="if_ruby.pro"
7202	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
7203
7204	if test "$enable_rubyinterp" = "dynamic"; then
7205	  libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_ALIASES'].split[0]"`
7206	  $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h
7207
7208	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS"
7209	  RUBY_LIBS=
7210	fi
7211      else
7212	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
7213$as_echo "not found; disabling Ruby" >&6; }
7214      fi
7215    else
7216      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5
7217$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
7218    fi
7219  fi
7220
7221  if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
7222    as_fn_error $? "could not configure Ruby" "$LINENO" 5
7223  fi
7224fi
7225
7226
7227
7228
7229
7230
7231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5
7232$as_echo_n "checking --enable-cscope argument... " >&6; }
7233# Check whether --enable-cscope was given.
7234if test "${enable_cscope+set}" = set; then :
7235  enableval=$enable_cscope;
7236else
7237  enable_cscope="no"
7238fi
7239
7240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
7241$as_echo "$enable_cscope" >&6; }
7242if test "$enable_cscope" = "yes"; then
7243  $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h
7244
7245fi
7246
7247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5
7248$as_echo_n "checking --enable-workshop argument... " >&6; }
7249# Check whether --enable-workshop was given.
7250if test "${enable_workshop+set}" = set; then :
7251  enableval=$enable_workshop;
7252else
7253  enable_workshop="no"
7254fi
7255
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5
7257$as_echo "$enable_workshop" >&6; }
7258if test "$enable_workshop" = "yes"; then
7259  $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h
7260
7261  WORKSHOP_SRC="workshop.c integration.c"
7262
7263  WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
7264
7265  if test "${enable_gui-xxx}" = xxx; then
7266    enable_gui=motif
7267  fi
7268fi
7269
7270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5
7271$as_echo_n "checking --disable-netbeans argument... " >&6; }
7272# Check whether --enable-netbeans was given.
7273if test "${enable_netbeans+set}" = set; then :
7274  enableval=$enable_netbeans;
7275else
7276  enable_netbeans="yes"
7277fi
7278
7279if test "$enable_netbeans" = "yes"; then
7280  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7281    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5
7282$as_echo "cannot use NetBeans with tiny or small features" >&6; }
7283    enable_netbeans="no"
7284  else
7285    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286$as_echo "no" >&6; }
7287  fi
7288else
7289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7290$as_echo "yes" >&6; }
7291fi
7292
7293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5
7294$as_echo_n "checking --disable-channel argument... " >&6; }
7295# Check whether --enable-channel was given.
7296if test "${enable_channel+set}" = set; then :
7297  enableval=$enable_channel;
7298else
7299  enable_channel="yes"
7300fi
7301
7302if test "$enable_channel" = "yes"; then
7303  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7304    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5
7305$as_echo "cannot use channels with tiny or small features" >&6; }
7306    enable_channel="no"
7307  else
7308    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309$as_echo "no" >&6; }
7310  fi
7311else
7312  if test "$enable_netbeans" = "yes"; then
7313    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5
7314$as_echo "yes, netbeans also disabled" >&6; }
7315    enable_netbeans="no"
7316  else
7317    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7318$as_echo "yes" >&6; }
7319  fi
7320fi
7321
7322if test "$enable_channel" = "yes"; then
7323    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
7324$as_echo_n "checking for socket in -lsocket... " >&6; }
7325if ${ac_cv_lib_socket_socket+:} false; then :
7326  $as_echo_n "(cached) " >&6
7327else
7328  ac_check_lib_save_LIBS=$LIBS
7329LIBS="-lsocket  $LIBS"
7330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331/* end confdefs.h.  */
7332
7333/* Override any GCC internal prototype to avoid an error.
7334   Use char because int might match the return type of a GCC
7335   builtin and then its argument prototype would still apply.  */
7336#ifdef __cplusplus
7337extern "C"
7338#endif
7339char socket ();
7340int
7341main ()
7342{
7343return socket ();
7344  ;
7345  return 0;
7346}
7347_ACEOF
7348if ac_fn_c_try_link "$LINENO"; then :
7349  ac_cv_lib_socket_socket=yes
7350else
7351  ac_cv_lib_socket_socket=no
7352fi
7353rm -f core conftest.err conftest.$ac_objext \
7354    conftest$ac_exeext conftest.$ac_ext
7355LIBS=$ac_check_lib_save_LIBS
7356fi
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
7358$as_echo "$ac_cv_lib_socket_socket" >&6; }
7359if test "x$ac_cv_lib_socket_socket" = xyes; then :
7360  cat >>confdefs.h <<_ACEOF
7361#define HAVE_LIBSOCKET 1
7362_ACEOF
7363
7364  LIBS="-lsocket $LIBS"
7365
7366fi
7367
7368  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7369$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7370if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7371  $as_echo_n "(cached) " >&6
7372else
7373  ac_check_lib_save_LIBS=$LIBS
7374LIBS="-lnsl  $LIBS"
7375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376/* end confdefs.h.  */
7377
7378/* Override any GCC internal prototype to avoid an error.
7379   Use char because int might match the return type of a GCC
7380   builtin and then its argument prototype would still apply.  */
7381#ifdef __cplusplus
7382extern "C"
7383#endif
7384char gethostbyname ();
7385int
7386main ()
7387{
7388return gethostbyname ();
7389  ;
7390  return 0;
7391}
7392_ACEOF
7393if ac_fn_c_try_link "$LINENO"; then :
7394  ac_cv_lib_nsl_gethostbyname=yes
7395else
7396  ac_cv_lib_nsl_gethostbyname=no
7397fi
7398rm -f core conftest.err conftest.$ac_objext \
7399    conftest$ac_exeext conftest.$ac_ext
7400LIBS=$ac_check_lib_save_LIBS
7401fi
7402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7403$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7404if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7405  cat >>confdefs.h <<_ACEOF
7406#define HAVE_LIBNSL 1
7407_ACEOF
7408
7409  LIBS="-lnsl $LIBS"
7410
7411fi
7412
7413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5
7414$as_echo_n "checking whether compiling with process communication is possible... " >&6; }
7415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416/* end confdefs.h.  */
7417
7418#include <stdio.h>
7419#include <stdlib.h>
7420#include <stdarg.h>
7421#include <fcntl.h>
7422#include <netdb.h>
7423#include <netinet/in.h>
7424#include <errno.h>
7425#include <sys/types.h>
7426#include <sys/socket.h>
7427	/* Check bitfields */
7428	struct nbbuf {
7429	unsigned int  initDone:1;
7430	unsigned short signmaplen;
7431	};
7432
7433int
7434main ()
7435{
7436
7437		/* Check creating a socket. */
7438		struct sockaddr_in server;
7439		(void)socket(AF_INET, SOCK_STREAM, 0);
7440		(void)htons(100);
7441		(void)gethostbyname("microsoft.com");
7442		if (errno == ECONNREFUSED)
7443		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
7444
7445  ;
7446  return 0;
7447}
7448_ACEOF
7449if ac_fn_c_try_link "$LINENO"; then :
7450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7451$as_echo "yes" >&6; }
7452else
7453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no"
7455fi
7456rm -f core conftest.err conftest.$ac_objext \
7457    conftest$ac_exeext conftest.$ac_ext
7458fi
7459if test "$enable_netbeans" = "yes"; then
7460  $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h
7461
7462  NETBEANS_SRC="netbeans.c"
7463
7464  NETBEANS_OBJ="objects/netbeans.o"
7465
7466fi
7467if test "$enable_channel" = "yes"; then
7468  $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h
7469
7470  CHANNEL_SRC="channel.c"
7471
7472  CHANNEL_OBJ="objects/channel.o"
7473
7474fi
7475
7476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5
7477$as_echo_n "checking --enable-terminal argument... " >&6; }
7478# Check whether --enable-terminal was given.
7479if test "${enable_terminal+set}" = set; then :
7480  enableval=$enable_terminal;
7481else
7482  enable_terminal="auto"
7483fi
7484
7485if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then
7486  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7487    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5
7488$as_echo "cannot use terminal emulator with tiny or small features" >&6; }
7489    enable_terminal="no"
7490  else
7491    if test "$enable_terminal" = "auto"; then
7492      enable_terminal="yes"
7493      { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5
7494$as_echo "defaulting to yes" >&6; }
7495    else
7496      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7497$as_echo "yes" >&6; }
7498    fi
7499  fi
7500else
7501  if test "$enable_terminal" = "auto"; then
7502    enable_terminal="no"
7503    { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5
7504$as_echo "defaulting to no" >&6; }
7505  else
7506    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507$as_echo "no" >&6; }
7508  fi
7509fi
7510if test "$enable_terminal" = "yes"; then
7511  $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h
7512
7513  TERM_SRC="libvterm/src/encoding.c libvterm/src/keyboard.c libvterm/src/mouse.c libvterm/src/parser.c libvterm/src/pen.c libvterm/src/screen.c libvterm/src/state.c libvterm/src/unicode.c libvterm/src/vterm.c"
7514
7515  TERM_OBJ="objects/term_encoding.o objects/term_keyboard.o objects/term_mouse.o objects/term_parser.o objects/term_pen.o objects/term_screen.o objects/term_state.o objects/term_unicode.o objects/term_vterm.o"
7516
7517fi
7518
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5
7520$as_echo_n "checking --enable-multibyte argument... " >&6; }
7521# Check whether --enable-multibyte was given.
7522if test "${enable_multibyte+set}" = set; then :
7523  enableval=$enable_multibyte;
7524else
7525  enable_multibyte="no"
7526fi
7527
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
7529$as_echo "$enable_multibyte" >&6; }
7530if test "$enable_multibyte" = "yes"; then
7531  $as_echo "#define FEAT_MBYTE 1" >>confdefs.h
7532
7533fi
7534
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5
7536$as_echo_n "checking --enable-hangulinput argument... " >&6; }
7537# Check whether --enable-hangulinput was given.
7538if test "${enable_hangulinput+set}" = set; then :
7539  enableval=$enable_hangulinput;
7540else
7541  enable_hangulinput="no"
7542fi
7543
7544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5
7545$as_echo "$enable_hangulinput" >&6; }
7546
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5
7548$as_echo_n "checking --enable-xim argument... " >&6; }
7549# Check whether --enable-xim was given.
7550if test "${enable_xim+set}" = set; then :
7551  enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5
7552$as_echo "$enable_xim" >&6; }
7553else
7554  enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5
7555$as_echo "defaulting to auto" >&6; }
7556fi
7557
7558
7559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5
7560$as_echo_n "checking --enable-fontset argument... " >&6; }
7561# Check whether --enable-fontset was given.
7562if test "${enable_fontset+set}" = set; then :
7563  enableval=$enable_fontset;
7564else
7565  enable_fontset="no"
7566fi
7567
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5
7569$as_echo "$enable_fontset" >&6; }
7570
7571test -z "$with_x" && with_x=yes
7572test "${enable_gui-yes}" != no -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
7573if test "$with_x" = no; then
7574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5
7575$as_echo "defaulting to: don't HAVE_X11" >&6; }
7576else
7577
7578  # Extract the first word of "xmkmf", so it can be a program name with args.
7579set dummy xmkmf; ac_word=$2
7580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581$as_echo_n "checking for $ac_word... " >&6; }
7582if ${ac_cv_path_xmkmfpath+:} false; then :
7583  $as_echo_n "(cached) " >&6
7584else
7585  case $xmkmfpath in
7586  [\\/]* | ?:[\\/]*)
7587  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
7588  ;;
7589  *)
7590  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591for as_dir in $PATH
7592do
7593  IFS=$as_save_IFS
7594  test -z "$as_dir" && as_dir=.
7595    for ac_exec_ext in '' $ac_executable_extensions; do
7596  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7597    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
7598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7599    break 2
7600  fi
7601done
7602  done
7603IFS=$as_save_IFS
7604
7605  ;;
7606esac
7607fi
7608xmkmfpath=$ac_cv_path_xmkmfpath
7609if test -n "$xmkmfpath"; then
7610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5
7611$as_echo "$xmkmfpath" >&6; }
7612else
7613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614$as_echo "no" >&6; }
7615fi
7616
7617
7618
7619  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7620$as_echo_n "checking for X... " >&6; }
7621
7622
7623# Check whether --with-x was given.
7624if test "${with_x+set}" = set; then :
7625  withval=$with_x;
7626fi
7627
7628# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7629if test "x$with_x" = xno; then
7630  # The user explicitly disabled X.
7631  have_x=disabled
7632else
7633  case $x_includes,$x_libraries in #(
7634    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7635    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7636  $as_echo_n "(cached) " >&6
7637else
7638  # One or both of the vars are not set, and there is no cached value.
7639ac_x_includes=no ac_x_libraries=no
7640rm -f -r conftest.dir
7641if mkdir conftest.dir; then
7642  cd conftest.dir
7643  cat >Imakefile <<'_ACEOF'
7644incroot:
7645	@echo incroot='${INCROOT}'
7646usrlibdir:
7647	@echo usrlibdir='${USRLIBDIR}'
7648libdir:
7649	@echo libdir='${LIBDIR}'
7650_ACEOF
7651  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7652    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7653    for ac_var in incroot usrlibdir libdir; do
7654      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7655    done
7656    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7657    for ac_extension in a so sl dylib la dll; do
7658      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7659	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7660	ac_im_usrlibdir=$ac_im_libdir; break
7661      fi
7662    done
7663    # Screen out bogus values from the imake configuration.  They are
7664    # bogus both because they are the default anyway, and because
7665    # using them would break gcc on systems where it needs fixed includes.
7666    case $ac_im_incroot in
7667	/usr/include) ac_x_includes= ;;
7668	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7669    esac
7670    case $ac_im_usrlibdir in
7671	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
7672	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7673    esac
7674  fi
7675  cd ..
7676  rm -f -r conftest.dir
7677fi
7678
7679# Standard set of common directories for X headers.
7680# Check X11 before X11Rn because it is often a symlink to the current release.
7681ac_x_header_dirs='
7682/usr/X11/include
7683/usr/X11R7/include
7684/usr/X11R6/include
7685/usr/X11R5/include
7686/usr/X11R4/include
7687
7688/usr/include/X11
7689/usr/include/X11R7
7690/usr/include/X11R6
7691/usr/include/X11R5
7692/usr/include/X11R4
7693
7694/usr/local/X11/include
7695/usr/local/X11R7/include
7696/usr/local/X11R6/include
7697/usr/local/X11R5/include
7698/usr/local/X11R4/include
7699
7700/usr/local/include/X11
7701/usr/local/include/X11R7
7702/usr/local/include/X11R6
7703/usr/local/include/X11R5
7704/usr/local/include/X11R4
7705
7706/usr/X386/include
7707/usr/x386/include
7708/usr/XFree86/include/X11
7709
7710/usr/include
7711/usr/local/include
7712/usr/unsupported/include
7713/usr/athena/include
7714/usr/local/x11r5/include
7715/usr/lpp/Xamples/include
7716
7717/usr/openwin/include
7718/usr/openwin/share/include'
7719
7720if test "$ac_x_includes" = no; then
7721  # Guess where to find include files, by looking for Xlib.h.
7722  # First, try using that file with no special directory specified.
7723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724/* end confdefs.h.  */
7725#include <X11/Xlib.h>
7726_ACEOF
7727if ac_fn_c_try_cpp "$LINENO"; then :
7728  # We can compile using X headers with no special include directory.
7729ac_x_includes=
7730else
7731  for ac_dir in $ac_x_header_dirs; do
7732  if test -r "$ac_dir/X11/Xlib.h"; then
7733    ac_x_includes=$ac_dir
7734    break
7735  fi
7736done
7737fi
7738rm -f conftest.err conftest.i conftest.$ac_ext
7739fi # $ac_x_includes = no
7740
7741if test "$ac_x_libraries" = no; then
7742  # Check for the libraries.
7743  # See if we find them without any special options.
7744  # Don't add to $LIBS permanently.
7745  ac_save_LIBS=$LIBS
7746  LIBS="-lX11 $LIBS"
7747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748/* end confdefs.h.  */
7749#include <X11/Xlib.h>
7750int
7751main ()
7752{
7753XrmInitialize ()
7754  ;
7755  return 0;
7756}
7757_ACEOF
7758if ac_fn_c_try_link "$LINENO"; then :
7759  LIBS=$ac_save_LIBS
7760# We can link X programs with no special library path.
7761ac_x_libraries=
7762else
7763  LIBS=$ac_save_LIBS
7764for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7765do
7766  # Don't even attempt the hair of trying to link an X program!
7767  for ac_extension in a so sl dylib la dll; do
7768    if test -r "$ac_dir/libX11.$ac_extension"; then
7769      ac_x_libraries=$ac_dir
7770      break 2
7771    fi
7772  done
7773done
7774fi
7775rm -f core conftest.err conftest.$ac_objext \
7776    conftest$ac_exeext conftest.$ac_ext
7777fi # $ac_x_libraries = no
7778
7779case $ac_x_includes,$ac_x_libraries in #(
7780  no,* | *,no | *\'*)
7781    # Didn't find X, or a directory has "'" in its name.
7782    ac_cv_have_x="have_x=no";; #(
7783  *)
7784    # Record where we found X for the cache.
7785    ac_cv_have_x="have_x=yes\
7786	ac_x_includes='$ac_x_includes'\
7787	ac_x_libraries='$ac_x_libraries'"
7788esac
7789fi
7790;; #(
7791    *) have_x=yes;;
7792  esac
7793  eval "$ac_cv_have_x"
7794fi # $with_x != no
7795
7796if test "$have_x" != yes; then
7797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7798$as_echo "$have_x" >&6; }
7799  no_x=yes
7800else
7801  # If each of the values was on the command line, it overrides each guess.
7802  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7803  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7804  # Update the cache value to reflect the command line values.
7805  ac_cv_have_x="have_x=yes\
7806	ac_x_includes='$x_includes'\
7807	ac_x_libraries='$x_libraries'"
7808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7809$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7810fi
7811
7812if test "$no_x" = yes; then
7813  # Not all programs may use this symbol, but it does not hurt to define it.
7814
7815$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7816
7817  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7818else
7819  if test -n "$x_includes"; then
7820    X_CFLAGS="$X_CFLAGS -I$x_includes"
7821  fi
7822
7823  # It would also be nice to do this for all -L options, not just this one.
7824  if test -n "$x_libraries"; then
7825    X_LIBS="$X_LIBS -L$x_libraries"
7826    # For Solaris; some versions of Sun CC require a space after -R and
7827    # others require no space.  Words are not sufficient . . . .
7828    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7829$as_echo_n "checking whether -R must be followed by a space... " >&6; }
7830    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7831    ac_xsave_c_werror_flag=$ac_c_werror_flag
7832    ac_c_werror_flag=yes
7833    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834/* end confdefs.h.  */
7835
7836int
7837main ()
7838{
7839
7840  ;
7841  return 0;
7842}
7843_ACEOF
7844if ac_fn_c_try_link "$LINENO"; then :
7845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846$as_echo "no" >&6; }
7847       X_LIBS="$X_LIBS -R$x_libraries"
7848else
7849  LIBS="$ac_xsave_LIBS -R $x_libraries"
7850       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851/* end confdefs.h.  */
7852
7853int
7854main ()
7855{
7856
7857  ;
7858  return 0;
7859}
7860_ACEOF
7861if ac_fn_c_try_link "$LINENO"; then :
7862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7863$as_echo "yes" >&6; }
7864	  X_LIBS="$X_LIBS -R $x_libraries"
7865else
7866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7867$as_echo "neither works" >&6; }
7868fi
7869rm -f core conftest.err conftest.$ac_objext \
7870    conftest$ac_exeext conftest.$ac_ext
7871fi
7872rm -f core conftest.err conftest.$ac_objext \
7873    conftest$ac_exeext conftest.$ac_ext
7874    ac_c_werror_flag=$ac_xsave_c_werror_flag
7875    LIBS=$ac_xsave_LIBS
7876  fi
7877
7878  # Check for system-dependent libraries X programs must link with.
7879  # Do this before checking for the system-independent R6 libraries
7880  # (-lICE), since we may need -lsocket or whatever for X linking.
7881
7882  if test "$ISC" = yes; then
7883    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7884  else
7885    # Martyn Johnson says this is needed for Ultrix, if the X
7886    # libraries were built with DECnet support.  And Karl Berry says
7887    # the Alpha needs dnet_stub (dnet does not exist).
7888    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7889    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890/* end confdefs.h.  */
7891
7892/* Override any GCC internal prototype to avoid an error.
7893   Use char because int might match the return type of a GCC
7894   builtin and then its argument prototype would still apply.  */
7895#ifdef __cplusplus
7896extern "C"
7897#endif
7898char XOpenDisplay ();
7899int
7900main ()
7901{
7902return XOpenDisplay ();
7903  ;
7904  return 0;
7905}
7906_ACEOF
7907if ac_fn_c_try_link "$LINENO"; then :
7908
7909else
7910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7911$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7912if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7913  $as_echo_n "(cached) " >&6
7914else
7915  ac_check_lib_save_LIBS=$LIBS
7916LIBS="-ldnet  $LIBS"
7917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918/* end confdefs.h.  */
7919
7920/* Override any GCC internal prototype to avoid an error.
7921   Use char because int might match the return type of a GCC
7922   builtin and then its argument prototype would still apply.  */
7923#ifdef __cplusplus
7924extern "C"
7925#endif
7926char dnet_ntoa ();
7927int
7928main ()
7929{
7930return dnet_ntoa ();
7931  ;
7932  return 0;
7933}
7934_ACEOF
7935if ac_fn_c_try_link "$LINENO"; then :
7936  ac_cv_lib_dnet_dnet_ntoa=yes
7937else
7938  ac_cv_lib_dnet_dnet_ntoa=no
7939fi
7940rm -f core conftest.err conftest.$ac_objext \
7941    conftest$ac_exeext conftest.$ac_ext
7942LIBS=$ac_check_lib_save_LIBS
7943fi
7944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7945$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7946if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7947  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7948fi
7949
7950    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7951      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7952$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7953if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7954  $as_echo_n "(cached) " >&6
7955else
7956  ac_check_lib_save_LIBS=$LIBS
7957LIBS="-ldnet_stub  $LIBS"
7958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959/* end confdefs.h.  */
7960
7961/* Override any GCC internal prototype to avoid an error.
7962   Use char because int might match the return type of a GCC
7963   builtin and then its argument prototype would still apply.  */
7964#ifdef __cplusplus
7965extern "C"
7966#endif
7967char dnet_ntoa ();
7968int
7969main ()
7970{
7971return dnet_ntoa ();
7972  ;
7973  return 0;
7974}
7975_ACEOF
7976if ac_fn_c_try_link "$LINENO"; then :
7977  ac_cv_lib_dnet_stub_dnet_ntoa=yes
7978else
7979  ac_cv_lib_dnet_stub_dnet_ntoa=no
7980fi
7981rm -f core conftest.err conftest.$ac_objext \
7982    conftest$ac_exeext conftest.$ac_ext
7983LIBS=$ac_check_lib_save_LIBS
7984fi
7985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7986$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7987if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7988  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7989fi
7990
7991    fi
7992fi
7993rm -f core conftest.err conftest.$ac_objext \
7994    conftest$ac_exeext conftest.$ac_ext
7995    LIBS="$ac_xsave_LIBS"
7996
7997    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
7998    # to get the SysV transport functions.
7999    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8000    # needs -lnsl.
8001    # The nsl library prevents programs from opening the X display
8002    # on Irix 5.2, according to T.E. Dickey.
8003    # The functions gethostbyname, getservbyname, and inet_addr are
8004    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8005    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8006if test "x$ac_cv_func_gethostbyname" = xyes; then :
8007
8008fi
8009
8010    if test $ac_cv_func_gethostbyname = no; then
8011      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8012$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8013if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8014  $as_echo_n "(cached) " >&6
8015else
8016  ac_check_lib_save_LIBS=$LIBS
8017LIBS="-lnsl  $LIBS"
8018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019/* end confdefs.h.  */
8020
8021/* Override any GCC internal prototype to avoid an error.
8022   Use char because int might match the return type of a GCC
8023   builtin and then its argument prototype would still apply.  */
8024#ifdef __cplusplus
8025extern "C"
8026#endif
8027char gethostbyname ();
8028int
8029main ()
8030{
8031return gethostbyname ();
8032  ;
8033  return 0;
8034}
8035_ACEOF
8036if ac_fn_c_try_link "$LINENO"; then :
8037  ac_cv_lib_nsl_gethostbyname=yes
8038else
8039  ac_cv_lib_nsl_gethostbyname=no
8040fi
8041rm -f core conftest.err conftest.$ac_objext \
8042    conftest$ac_exeext conftest.$ac_ext
8043LIBS=$ac_check_lib_save_LIBS
8044fi
8045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8046$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8047if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8048  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8049fi
8050
8051      if test $ac_cv_lib_nsl_gethostbyname = no; then
8052	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8053$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8054if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8055  $as_echo_n "(cached) " >&6
8056else
8057  ac_check_lib_save_LIBS=$LIBS
8058LIBS="-lbsd  $LIBS"
8059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060/* end confdefs.h.  */
8061
8062/* Override any GCC internal prototype to avoid an error.
8063   Use char because int might match the return type of a GCC
8064   builtin and then its argument prototype would still apply.  */
8065#ifdef __cplusplus
8066extern "C"
8067#endif
8068char gethostbyname ();
8069int
8070main ()
8071{
8072return gethostbyname ();
8073  ;
8074  return 0;
8075}
8076_ACEOF
8077if ac_fn_c_try_link "$LINENO"; then :
8078  ac_cv_lib_bsd_gethostbyname=yes
8079else
8080  ac_cv_lib_bsd_gethostbyname=no
8081fi
8082rm -f core conftest.err conftest.$ac_objext \
8083    conftest$ac_exeext conftest.$ac_ext
8084LIBS=$ac_check_lib_save_LIBS
8085fi
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8087$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8088if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8089  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8090fi
8091
8092      fi
8093    fi
8094
8095    # [email protected] says without -lsocket,
8096    # socket/setsockopt and other routines are undefined under SCO ODT
8097    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8098    # on later versions), says Simon Leinen: it contains gethostby*
8099    # variants that don't use the name server (or something).  -lsocket
8100    # must be given before -lnsl if both are needed.  We assume that
8101    # if connect needs -lnsl, so does gethostbyname.
8102    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8103if test "x$ac_cv_func_connect" = xyes; then :
8104
8105fi
8106
8107    if test $ac_cv_func_connect = no; then
8108      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8109$as_echo_n "checking for connect in -lsocket... " >&6; }
8110if ${ac_cv_lib_socket_connect+:} false; then :
8111  $as_echo_n "(cached) " >&6
8112else
8113  ac_check_lib_save_LIBS=$LIBS
8114LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116/* end confdefs.h.  */
8117
8118/* Override any GCC internal prototype to avoid an error.
8119   Use char because int might match the return type of a GCC
8120   builtin and then its argument prototype would still apply.  */
8121#ifdef __cplusplus
8122extern "C"
8123#endif
8124char connect ();
8125int
8126main ()
8127{
8128return connect ();
8129  ;
8130  return 0;
8131}
8132_ACEOF
8133if ac_fn_c_try_link "$LINENO"; then :
8134  ac_cv_lib_socket_connect=yes
8135else
8136  ac_cv_lib_socket_connect=no
8137fi
8138rm -f core conftest.err conftest.$ac_objext \
8139    conftest$ac_exeext conftest.$ac_ext
8140LIBS=$ac_check_lib_save_LIBS
8141fi
8142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8143$as_echo "$ac_cv_lib_socket_connect" >&6; }
8144if test "x$ac_cv_lib_socket_connect" = xyes; then :
8145  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8146fi
8147
8148    fi
8149
8150    # Guillermo Gomez says -lposix is necessary on A/UX.
8151    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8152if test "x$ac_cv_func_remove" = xyes; then :
8153
8154fi
8155
8156    if test $ac_cv_func_remove = no; then
8157      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8158$as_echo_n "checking for remove in -lposix... " >&6; }
8159if ${ac_cv_lib_posix_remove+:} false; then :
8160  $as_echo_n "(cached) " >&6
8161else
8162  ac_check_lib_save_LIBS=$LIBS
8163LIBS="-lposix  $LIBS"
8164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165/* end confdefs.h.  */
8166
8167/* Override any GCC internal prototype to avoid an error.
8168   Use char because int might match the return type of a GCC
8169   builtin and then its argument prototype would still apply.  */
8170#ifdef __cplusplus
8171extern "C"
8172#endif
8173char remove ();
8174int
8175main ()
8176{
8177return remove ();
8178  ;
8179  return 0;
8180}
8181_ACEOF
8182if ac_fn_c_try_link "$LINENO"; then :
8183  ac_cv_lib_posix_remove=yes
8184else
8185  ac_cv_lib_posix_remove=no
8186fi
8187rm -f core conftest.err conftest.$ac_objext \
8188    conftest$ac_exeext conftest.$ac_ext
8189LIBS=$ac_check_lib_save_LIBS
8190fi
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8192$as_echo "$ac_cv_lib_posix_remove" >&6; }
8193if test "x$ac_cv_lib_posix_remove" = xyes; then :
8194  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8195fi
8196
8197    fi
8198
8199    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8200    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8201if test "x$ac_cv_func_shmat" = xyes; then :
8202
8203fi
8204
8205    if test $ac_cv_func_shmat = no; then
8206      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8207$as_echo_n "checking for shmat in -lipc... " >&6; }
8208if ${ac_cv_lib_ipc_shmat+:} false; then :
8209  $as_echo_n "(cached) " >&6
8210else
8211  ac_check_lib_save_LIBS=$LIBS
8212LIBS="-lipc  $LIBS"
8213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214/* end confdefs.h.  */
8215
8216/* Override any GCC internal prototype to avoid an error.
8217   Use char because int might match the return type of a GCC
8218   builtin and then its argument prototype would still apply.  */
8219#ifdef __cplusplus
8220extern "C"
8221#endif
8222char shmat ();
8223int
8224main ()
8225{
8226return shmat ();
8227  ;
8228  return 0;
8229}
8230_ACEOF
8231if ac_fn_c_try_link "$LINENO"; then :
8232  ac_cv_lib_ipc_shmat=yes
8233else
8234  ac_cv_lib_ipc_shmat=no
8235fi
8236rm -f core conftest.err conftest.$ac_objext \
8237    conftest$ac_exeext conftest.$ac_ext
8238LIBS=$ac_check_lib_save_LIBS
8239fi
8240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8241$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8242if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8243  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8244fi
8245
8246    fi
8247  fi
8248
8249  # Check for libraries that X11R6 Xt/Xaw programs need.
8250  ac_save_LDFLAGS=$LDFLAGS
8251  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8252  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8253  # check for ICE first), but we must link in the order -lSM -lICE or
8254  # we get undefined symbols.  So assume we have SM if we have ICE.
8255  # These have to be linked with before -lX11, unlike the other
8256  # libraries we check for below, so use a different variable.
8257  # John Interrante, Karl Berry
8258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8259$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8260if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8261  $as_echo_n "(cached) " >&6
8262else
8263  ac_check_lib_save_LIBS=$LIBS
8264LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266/* end confdefs.h.  */
8267
8268/* Override any GCC internal prototype to avoid an error.
8269   Use char because int might match the return type of a GCC
8270   builtin and then its argument prototype would still apply.  */
8271#ifdef __cplusplus
8272extern "C"
8273#endif
8274char IceConnectionNumber ();
8275int
8276main ()
8277{
8278return IceConnectionNumber ();
8279  ;
8280  return 0;
8281}
8282_ACEOF
8283if ac_fn_c_try_link "$LINENO"; then :
8284  ac_cv_lib_ICE_IceConnectionNumber=yes
8285else
8286  ac_cv_lib_ICE_IceConnectionNumber=no
8287fi
8288rm -f core conftest.err conftest.$ac_objext \
8289    conftest$ac_exeext conftest.$ac_ext
8290LIBS=$ac_check_lib_save_LIBS
8291fi
8292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8293$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8294if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8295  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8296fi
8297
8298  LDFLAGS=$ac_save_LDFLAGS
8299
8300fi
8301
8302
8303        if test "$zOSUnix" = "yes"; then
8304    CFLAGS="$CFLAGS -W c,dll"
8305    LDFLAGS="$LDFLAGS -W l,dll"
8306    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
8307  fi
8308
8309
8310  if test -d "$x_includes" && test ! -d "$x_libraries"; then
8311    x_libraries=`echo "$x_includes" | sed s/include/lib/`
8312    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5
8313$as_echo "Corrected X libraries to $x_libraries" >&6; }
8314    X_LIBS="$X_LIBS -L$x_libraries"
8315    if test "`(uname) 2>/dev/null`" = SunOS &&
8316					 uname -r | grep '^5' >/dev/null; then
8317      X_LIBS="$X_LIBS -R $x_libraries"
8318    fi
8319  fi
8320
8321  if test -d "$x_libraries" && test ! -d "$x_includes"; then
8322    x_includes=`echo "$x_libraries" | sed s/lib/include/`
8323    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5
8324$as_echo "Corrected X includes to $x_includes" >&6; }
8325    X_CFLAGS="$X_CFLAGS -I$x_includes"
8326  fi
8327
8328    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
8329    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
8330    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
8331
8332
8333        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5
8334$as_echo_n "checking if X11 header files can be found... " >&6; }
8335  cflags_save=$CFLAGS
8336  CFLAGS="$CFLAGS $X_CFLAGS"
8337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338/* end confdefs.h.  */
8339#include <X11/Xlib.h>
8340#include <X11/Intrinsic.h>
8341int
8342main ()
8343{
8344
8345  ;
8346  return 0;
8347}
8348_ACEOF
8349if ac_fn_c_try_compile "$LINENO"; then :
8350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8351$as_echo "yes" >&6; }
8352else
8353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354$as_echo "no" >&6; }; no_x=yes
8355fi
8356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357  CFLAGS=$cflags_save
8358
8359  if test "${no_x-no}" = yes; then
8360    with_x=no
8361  else
8362    $as_echo "#define HAVE_X11 1" >>confdefs.h
8363
8364    X_LIB="-lXt -lX11";
8365
8366
8367    ac_save_LDFLAGS="$LDFLAGS"
8368    LDFLAGS="-L$x_libraries $LDFLAGS"
8369
8370            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
8371$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
8372if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then :
8373  $as_echo_n "(cached) " >&6
8374else
8375  ac_check_lib_save_LIBS=$LIBS
8376LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
8377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378/* end confdefs.h.  */
8379
8380/* Override any GCC internal prototype to avoid an error.
8381   Use char because int might match the return type of a GCC
8382   builtin and then its argument prototype would still apply.  */
8383#ifdef __cplusplus
8384extern "C"
8385#endif
8386char _XdmcpAuthDoIt ();
8387int
8388main ()
8389{
8390return _XdmcpAuthDoIt ();
8391  ;
8392  return 0;
8393}
8394_ACEOF
8395if ac_fn_c_try_link "$LINENO"; then :
8396  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
8397else
8398  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
8399fi
8400rm -f core conftest.err conftest.$ac_objext \
8401    conftest$ac_exeext conftest.$ac_ext
8402LIBS=$ac_check_lib_save_LIBS
8403fi
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
8405$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
8406if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then :
8407  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
8408fi
8409
8410
8411                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5
8412$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
8413if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then :
8414  $as_echo_n "(cached) " >&6
8415else
8416  ac_check_lib_save_LIBS=$LIBS
8417LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419/* end confdefs.h.  */
8420
8421/* Override any GCC internal prototype to avoid an error.
8422   Use char because int might match the return type of a GCC
8423   builtin and then its argument prototype would still apply.  */
8424#ifdef __cplusplus
8425extern "C"
8426#endif
8427char IceOpenConnection ();
8428int
8429main ()
8430{
8431return IceOpenConnection ();
8432  ;
8433  return 0;
8434}
8435_ACEOF
8436if ac_fn_c_try_link "$LINENO"; then :
8437  ac_cv_lib_ICE_IceOpenConnection=yes
8438else
8439  ac_cv_lib_ICE_IceOpenConnection=no
8440fi
8441rm -f core conftest.err conftest.$ac_objext \
8442    conftest$ac_exeext conftest.$ac_ext
8443LIBS=$ac_check_lib_save_LIBS
8444fi
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
8446$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
8447if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then :
8448  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
8449fi
8450
8451
8452        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
8453    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
8454$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
8455if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then :
8456  $as_echo_n "(cached) " >&6
8457else
8458  ac_check_lib_save_LIBS=$LIBS
8459LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
8460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461/* end confdefs.h.  */
8462
8463/* Override any GCC internal prototype to avoid an error.
8464   Use char because int might match the return type of a GCC
8465   builtin and then its argument prototype would still apply.  */
8466#ifdef __cplusplus
8467extern "C"
8468#endif
8469char XpmCreatePixmapFromData ();
8470int
8471main ()
8472{
8473return XpmCreatePixmapFromData ();
8474  ;
8475  return 0;
8476}
8477_ACEOF
8478if ac_fn_c_try_link "$LINENO"; then :
8479  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
8480else
8481  ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
8482fi
8483rm -f core conftest.err conftest.$ac_objext \
8484    conftest$ac_exeext conftest.$ac_ext
8485LIBS=$ac_check_lib_save_LIBS
8486fi
8487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
8488$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
8489if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then :
8490  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8491fi
8492
8493
8494        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5
8495$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8496    cflags_save=$CFLAGS
8497        if test "$GCC" = yes; then
8498      CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8499    else
8500      CFLAGS="$CFLAGS $X_CFLAGS"
8501    fi
8502    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503/* end confdefs.h.  */
8504#include <X11/Xlib.h>
8505int
8506main ()
8507{
8508
8509  ;
8510  return 0;
8511}
8512_ACEOF
8513if ac_fn_c_try_compile "$LINENO"; then :
8514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515$as_echo "no" >&6; }
8516else
8517  CFLAGS="$CFLAGS -Wno-implicit-int"
8518	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519/* end confdefs.h.  */
8520#include <X11/Xlib.h>
8521int
8522main ()
8523{
8524
8525  ;
8526  return 0;
8527}
8528_ACEOF
8529if ac_fn_c_try_compile "$LINENO"; then :
8530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8531$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8532else
8533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
8534$as_echo "test failed" >&6; }
8535
8536fi
8537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538
8539fi
8540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8541    CFLAGS=$cflags_save
8542
8543    LDFLAGS="$ac_save_LDFLAGS"
8544
8545    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5
8546$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8547    if ${ac_cv_small_wchar_t+:} false; then :
8548  $as_echo_n "(cached) " >&6
8549else
8550  if test "$cross_compiling" = yes; then :
8551  as_fn_error $? "failed to compile test program" "$LINENO" 5
8552else
8553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554/* end confdefs.h.  */
8555
8556#include <X11/Xlib.h>
8557#if STDC_HEADERS
8558# include <stdlib.h>
8559# include <stddef.h>
8560#endif
8561		main()
8562		{
8563		  if (sizeof(wchar_t) <= 2)
8564		    exit(1);
8565		  exit(0);
8566		}
8567_ACEOF
8568if ac_fn_c_try_run "$LINENO"; then :
8569  ac_cv_small_wchar_t="no"
8570else
8571  ac_cv_small_wchar_t="yes"
8572fi
8573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8574  conftest.$ac_objext conftest.beam conftest.$ac_ext
8575fi
8576
8577fi
8578
8579    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5
8580$as_echo "$ac_cv_small_wchar_t" >&6; }
8581    if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8582      $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h
8583
8584    fi
8585
8586  fi
8587fi
8588
8589test "x$with_x" = xno -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8590
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5
8592$as_echo_n "checking --enable-gui argument... " >&6; }
8593# Check whether --enable-gui was given.
8594if test "${enable_gui+set}" = set; then :
8595  enableval=$enable_gui;
8596else
8597  enable_gui="auto"
8598fi
8599
8600
8601enable_gui_canon=`echo "_$enable_gui" | \
8602	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8603
8604SKIP_GTK2=YES
8605SKIP_GTK3=YES
8606SKIP_GNOME=YES
8607SKIP_MOTIF=YES
8608SKIP_ATHENA=YES
8609SKIP_NEXTAW=YES
8610SKIP_PHOTON=YES
8611SKIP_CARBON=YES
8612GUITYPE=NONE
8613
8614if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8615  SKIP_PHOTON=
8616  case "$enable_gui_canon" in
8617    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
8618$as_echo "no GUI support" >&6; }
8619		SKIP_PHOTON=YES ;;
8620    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
8621$as_echo "yes - automatic GUI support" >&6; } ;;
8622    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5
8623$as_echo "auto - automatic GUI support" >&6; } ;;
8624    photon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5
8625$as_echo "Photon GUI support" >&6; } ;;
8626    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
8627$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8628		SKIP_PHOTON=YES ;;
8629  esac
8630
8631elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then
8632  SKIP_CARBON=
8633  case "$enable_gui_canon" in
8634    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
8635$as_echo "no GUI support" >&6; }
8636		SKIP_CARBON=YES ;;
8637    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
8638$as_echo "yes - automatic GUI support" >&6; } ;;
8639    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5
8640$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; }
8641		SKIP_CARBON=YES ;;
8642    carbon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5
8643$as_echo "Carbon GUI support" >&6; } ;;
8644    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
8645$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8646		SKIP_CARBON=YES ;;
8647  esac
8648
8649else
8650
8651  case "$enable_gui_canon" in
8652    no|none)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
8653$as_echo "no GUI support" >&6; } ;;
8654    yes|""|auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5
8655$as_echo "yes/auto - automatic GUI support" >&6; }
8656		SKIP_GTK2=
8657		SKIP_GNOME=
8658		SKIP_MOTIF=
8659		SKIP_ATHENA=
8660		SKIP_NEXTAW=
8661		SKIP_CARBON=;;
8662    gtk2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5
8663$as_echo "GTK+ 2.x GUI support" >&6; }
8664		SKIP_GTK2=;;
8665    gnome2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5
8666$as_echo "GNOME 2.x GUI support" >&6; }
8667		SKIP_GNOME=
8668		SKIP_GTK2=;;
8669    gtk3)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5
8670$as_echo "GTK+ 3.x GUI support" >&6; }
8671		SKIP_GTK3=;;
8672    motif)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5
8673$as_echo "Motif GUI support" >&6; }
8674		SKIP_MOTIF=;;
8675    athena)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5
8676$as_echo "Athena GUI support" >&6; }
8677		SKIP_ATHENA=;;
8678    nextaw)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5
8679$as_echo "neXtaw GUI support" >&6; }
8680		SKIP_NEXTAW=;;
8681    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
8682$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8683  esac
8684
8685fi
8686
8687if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8688				-a "$enable_gui_canon" != "gnome2"; then
8689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5
8690$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8691  # Check whether --enable-gtk2-check was given.
8692if test "${enable_gtk2_check+set}" = set; then :
8693  enableval=$enable_gtk2_check;
8694else
8695  enable_gtk2_check="yes"
8696fi
8697
8698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5
8699$as_echo "$enable_gtk2_check" >&6; }
8700  if test "x$enable_gtk2_check" = "xno"; then
8701    SKIP_GTK2=YES
8702    SKIP_GNOME=YES
8703  fi
8704fi
8705
8706if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then
8707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5
8708$as_echo_n "checking whether or not to look for GNOME... " >&6; }
8709  # Check whether --enable-gnome-check was given.
8710if test "${enable_gnome_check+set}" = set; then :
8711  enableval=$enable_gnome_check;
8712else
8713  enable_gnome_check="no"
8714fi
8715
8716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5
8717$as_echo "$enable_gnome_check" >&6; }
8718  if test "x$enable_gnome_check" = "xno"; then
8719    SKIP_GNOME=YES
8720  fi
8721fi
8722
8723if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then
8724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5
8725$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; }
8726  # Check whether --enable-gtk3-check was given.
8727if test "${enable_gtk3_check+set}" = set; then :
8728  enableval=$enable_gtk3_check;
8729else
8730  enable_gtk3_check="yes"
8731fi
8732
8733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5
8734$as_echo "$enable_gtk3_check" >&6; }
8735  if test "x$enable_gtk3_check" = "xno"; then
8736    SKIP_GTK3=YES
8737  fi
8738fi
8739
8740if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5
8742$as_echo_n "checking whether or not to look for Motif... " >&6; }
8743  # Check whether --enable-motif-check was given.
8744if test "${enable_motif_check+set}" = set; then :
8745  enableval=$enable_motif_check;
8746else
8747  enable_motif_check="yes"
8748fi
8749
8750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5
8751$as_echo "$enable_motif_check" >&6; }
8752  if test "x$enable_motif_check" = "xno"; then
8753    SKIP_MOTIF=YES
8754  fi
8755fi
8756
8757if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5
8759$as_echo_n "checking whether or not to look for Athena... " >&6; }
8760  # Check whether --enable-athena-check was given.
8761if test "${enable_athena_check+set}" = set; then :
8762  enableval=$enable_athena_check;
8763else
8764  enable_athena_check="yes"
8765fi
8766
8767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5
8768$as_echo "$enable_athena_check" >&6; }
8769  if test "x$enable_athena_check" = "xno"; then
8770    SKIP_ATHENA=YES
8771  fi
8772fi
8773
8774if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5
8776$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8777  # Check whether --enable-nextaw-check was given.
8778if test "${enable_nextaw_check+set}" = set; then :
8779  enableval=$enable_nextaw_check;
8780else
8781  enable_nextaw_check="yes"
8782fi
8783
8784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5
8785$as_echo "$enable_nextaw_check" >&6; };
8786  if test "x$enable_nextaw_check" = "xno"; then
8787    SKIP_NEXTAW=YES
8788  fi
8789fi
8790
8791if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5
8793$as_echo_n "checking whether or not to look for Carbon... " >&6; }
8794  # Check whether --enable-carbon-check was given.
8795if test "${enable_carbon_check+set}" = set; then :
8796  enableval=$enable_carbon_check;
8797else
8798  enable_carbon_check="yes"
8799fi
8800
8801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5
8802$as_echo "$enable_carbon_check" >&6; };
8803  if test "x$enable_carbon_check" = "xno"; then
8804    SKIP_CARBON=YES
8805  fi
8806fi
8807
8808
8809if test "x$MACOS_X" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5
8811$as_echo_n "checking for Carbon GUI... " >&6; }
8812    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8813$as_echo "yes" >&6; };
8814  GUITYPE=CARBONGUI
8815  if test "$VIMNAME" = "vim"; then
8816    VIMNAME=Vim
8817  fi
8818
8819  if test "x$MACARCH" = "xboth"; then
8820    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
8821  else
8822    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
8823  fi
8824
8825    if test x$prefix = xNONE; then
8826    prefix=/Applications
8827  fi
8828
8829    datadir='${prefix}/Vim.app/Contents/Resources'
8830
8831    SKIP_GTK2=YES;
8832  SKIP_GNOME=YES;
8833  SKIP_MOTIF=YES;
8834  SKIP_ATHENA=YES;
8835  SKIP_NEXTAW=YES;
8836  SKIP_PHOTON=YES;
8837  SKIP_CARBON=YES
8838fi
8839
8840
8841
8842
8843
8844
8845
8846
8847if test -z "$SKIP_GTK2"; then
8848
8849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
8850$as_echo_n "checking --disable-gtktest argument... " >&6; }
8851  # Check whether --enable-gtktest was given.
8852if test "${enable_gtktest+set}" = set; then :
8853  enableval=$enable_gtktest;
8854else
8855  enable_gtktest=yes
8856fi
8857
8858  if test "x$enable_gtktest" = "xyes" ; then
8859    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
8860$as_echo "gtk test enabled" >&6; }
8861  else
8862    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
8863$as_echo "gtk test disabled" >&6; }
8864  fi
8865
8866  if test "X$PKG_CONFIG" = "X"; then
8867    # Extract the first word of "pkg-config", so it can be a program name with args.
8868set dummy pkg-config; ac_word=$2
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8870$as_echo_n "checking for $ac_word... " >&6; }
8871if ${ac_cv_path_PKG_CONFIG+:} false; then :
8872  $as_echo_n "(cached) " >&6
8873else
8874  case $PKG_CONFIG in
8875  [\\/]* | ?:[\\/]*)
8876  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8877  ;;
8878  *)
8879  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8880for as_dir in $PATH
8881do
8882  IFS=$as_save_IFS
8883  test -z "$as_dir" && as_dir=.
8884    for ac_exec_ext in '' $ac_executable_extensions; do
8885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8886    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8888    break 2
8889  fi
8890done
8891  done
8892IFS=$as_save_IFS
8893
8894  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8895  ;;
8896esac
8897fi
8898PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8899if test -n "$PKG_CONFIG"; then
8900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8901$as_echo "$PKG_CONFIG" >&6; }
8902else
8903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904$as_echo "no" >&6; }
8905fi
8906
8907
8908  fi
8909
8910  if test "x$PKG_CONFIG" != "xno"; then
8911
8912  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8913  {
8914    no_gtk=""
8915    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8916	  && $PKG_CONFIG --exists gtk+-2.0; then
8917    {
8918      min_gtk_version=2.2.0
8919      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
8920$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8921                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8922      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8923      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8924      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8925	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8926      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8927	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8928      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8929	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8930    }
8931    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8932	  && $PKG_CONFIG --exists gtk+-3.0; then
8933    {
8934      min_gtk_version=2.2.0
8935      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
8936$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8937
8938      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
8939      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
8940      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
8941      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
8942	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8943      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
8944	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8945      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
8946	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8947    }
8948    else
8949      no_gtk=yes
8950    fi
8951
8952    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8953    {
8954      ac_save_CFLAGS="$CFLAGS"
8955      ac_save_LIBS="$LIBS"
8956      CFLAGS="$CFLAGS $GTK_CFLAGS"
8957      LIBS="$LIBS $GTK_LIBS"
8958
8959                        rm -f conf.gtktest
8960      if test "$cross_compiling" = yes; then :
8961  echo $ac_n "cross compiling; assumed OK... $ac_c"
8962else
8963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964/* end confdefs.h.  */
8965
8966#include <gtk/gtk.h>
8967#include <stdio.h>
8968#if STDC_HEADERS
8969# include <stdlib.h>
8970# include <stddef.h>
8971#endif
8972
8973int
8974main ()
8975{
8976int major, minor, micro;
8977char *tmp_version;
8978
8979system ("touch conf.gtktest");
8980
8981/* HP/UX 9 (%@#!) writes to sscanf strings */
8982tmp_version = g_strdup("$min_gtk_version");
8983if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8984   printf("%s, bad version string\n", "$min_gtk_version");
8985   exit(1);
8986 }
8987
8988if ((gtk_major_version > major) ||
8989    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8990    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8991				     (gtk_micro_version >= micro)))
8992{
8993    return 0;
8994}
8995return 1;
8996}
8997
8998_ACEOF
8999if ac_fn_c_try_run "$LINENO"; then :
9000
9001else
9002  no_gtk=yes
9003fi
9004rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9005  conftest.$ac_objext conftest.beam conftest.$ac_ext
9006fi
9007
9008      CFLAGS="$ac_save_CFLAGS"
9009      LIBS="$ac_save_LIBS"
9010    }
9011    fi
9012    if test "x$no_gtk" = x ; then
9013      if test "x$enable_gtktest" = "xyes"; then
9014	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9015$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9016      else
9017	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9018$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9019      fi
9020      GUI_LIB_LOC="$GTK_LIBDIR"
9021		 GTK_LIBNAME="$GTK_LIBS"
9022		GUI_INC_LOC="$GTK_CFLAGS"
9023    else
9024    {
9025      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026$as_echo "no" >&6; }
9027      GTK_CFLAGS=""
9028      GTK_LIBS=""
9029      :
9030    }
9031    fi
9032  }
9033  else
9034    GTK_CFLAGS=""
9035    GTK_LIBS=""
9036    :
9037  fi
9038
9039
9040  rm -f conf.gtktest
9041
9042    if test "x$GTK_CFLAGS" != "x"; then
9043      SKIP_GTK3=YES
9044      SKIP_ATHENA=YES
9045      SKIP_NEXTAW=YES
9046      SKIP_MOTIF=YES
9047      GUITYPE=GTK
9048
9049    fi
9050  fi
9051  if test "x$GUITYPE" = "xGTK"; then
9052                if test -z "$SKIP_GNOME"; then
9053    {
9054
9055
9056
9057
9058
9059
9060# Check whether --with-gnome-includes was given.
9061if test "${with_gnome_includes+set}" = set; then :
9062  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
9063
9064fi
9065
9066
9067
9068# Check whether --with-gnome-libs was given.
9069if test "${with_gnome_libs+set}" = set; then :
9070  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9071
9072fi
9073
9074
9075
9076# Check whether --with-gnome was given.
9077if test "${with_gnome+set}" = set; then :
9078  withval=$with_gnome; if test x$withval = xyes; then
9079      want_gnome=yes
9080      have_gnome=yes
9081    else
9082      if test "x$withval" = xno; then
9083	want_gnome=no
9084      else
9085	want_gnome=yes
9086	LDFLAGS="$LDFLAGS -L$withval/lib"
9087	CFLAGS="$CFLAGS -I$withval/include"
9088	gnome_prefix=$withval/lib
9089      fi
9090    fi
9091else
9092  want_gnome=yes
9093fi
9094
9095
9096  if test "x$want_gnome" = xyes; then
9097  {
9098    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5
9099$as_echo_n "checking for libgnomeui-2.0... " >&6; }
9100    if $PKG_CONFIG --exists libgnomeui-2.0; then
9101      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9102$as_echo "yes" >&6; }
9103      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
9104      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
9105      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
9106
9107                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5
9108$as_echo_n "checking for FreeBSD... " >&6; }
9109      if test "`(uname) 2>/dev/null`" = FreeBSD; then
9110	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9111$as_echo "yes" >&6; }
9112	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9113	GNOME_LIBS="$GNOME_LIBS -pthread"
9114      else
9115	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9116$as_echo "no" >&6; }
9117      fi
9118      have_gnome=yes
9119    else
9120      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9121$as_echo "not found" >&6; }
9122      if test "x" = xfail; then
9123	as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5
9124      fi
9125    fi
9126  }
9127  fi
9128
9129      if test "x$have_gnome" = xyes ; then
9130	$as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h
9131
9132	GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9133	GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9134      fi
9135    }
9136    fi
9137  fi
9138fi
9139
9140
9141if test -z "$SKIP_GTK3"; then
9142
9143  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9144$as_echo_n "checking --disable-gtktest argument... " >&6; }
9145  # Check whether --enable-gtktest was given.
9146if test "${enable_gtktest+set}" = set; then :
9147  enableval=$enable_gtktest;
9148else
9149  enable_gtktest=yes
9150fi
9151
9152  if test "x$enable_gtktest" = "xyes" ; then
9153    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9154$as_echo "gtk test enabled" >&6; }
9155  else
9156    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9157$as_echo "gtk test disabled" >&6; }
9158  fi
9159
9160  if test "X$PKG_CONFIG" = "X"; then
9161    # Extract the first word of "pkg-config", so it can be a program name with args.
9162set dummy pkg-config; ac_word=$2
9163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9164$as_echo_n "checking for $ac_word... " >&6; }
9165if ${ac_cv_path_PKG_CONFIG+:} false; then :
9166  $as_echo_n "(cached) " >&6
9167else
9168  case $PKG_CONFIG in
9169  [\\/]* | ?:[\\/]*)
9170  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9171  ;;
9172  *)
9173  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9174for as_dir in $PATH
9175do
9176  IFS=$as_save_IFS
9177  test -z "$as_dir" && as_dir=.
9178    for ac_exec_ext in '' $ac_executable_extensions; do
9179  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9180    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9181    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9182    break 2
9183  fi
9184done
9185  done
9186IFS=$as_save_IFS
9187
9188  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9189  ;;
9190esac
9191fi
9192PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9193if test -n "$PKG_CONFIG"; then
9194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9195$as_echo "$PKG_CONFIG" >&6; }
9196else
9197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9198$as_echo "no" >&6; }
9199fi
9200
9201
9202  fi
9203
9204  if test "x$PKG_CONFIG" != "xno"; then
9205
9206  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9207  {
9208    no_gtk=""
9209    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9210	  && $PKG_CONFIG --exists gtk+-2.0; then
9211    {
9212      min_gtk_version=3.0.0
9213      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9214$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9215                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9216      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9217      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9218      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9219	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9220      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9221	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9222      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9223	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9224    }
9225    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9226	  && $PKG_CONFIG --exists gtk+-3.0; then
9227    {
9228      min_gtk_version=3.0.0
9229      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9230$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9231
9232      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9233      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9234      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9235      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9236	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9237      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9238	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9239      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9240	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9241    }
9242    else
9243      no_gtk=yes
9244    fi
9245
9246    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9247    {
9248      ac_save_CFLAGS="$CFLAGS"
9249      ac_save_LIBS="$LIBS"
9250      CFLAGS="$CFLAGS $GTK_CFLAGS"
9251      LIBS="$LIBS $GTK_LIBS"
9252
9253                        rm -f conf.gtktest
9254      if test "$cross_compiling" = yes; then :
9255  echo $ac_n "cross compiling; assumed OK... $ac_c"
9256else
9257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258/* end confdefs.h.  */
9259
9260#include <gtk/gtk.h>
9261#include <stdio.h>
9262#if STDC_HEADERS
9263# include <stdlib.h>
9264# include <stddef.h>
9265#endif
9266
9267int
9268main ()
9269{
9270int major, minor, micro;
9271char *tmp_version;
9272
9273system ("touch conf.gtktest");
9274
9275/* HP/UX 9 (%@#!) writes to sscanf strings */
9276tmp_version = g_strdup("$min_gtk_version");
9277if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9278   printf("%s, bad version string\n", "$min_gtk_version");
9279   exit(1);
9280 }
9281
9282if ((gtk_major_version > major) ||
9283    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9284    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9285				     (gtk_micro_version >= micro)))
9286{
9287    return 0;
9288}
9289return 1;
9290}
9291
9292_ACEOF
9293if ac_fn_c_try_run "$LINENO"; then :
9294
9295else
9296  no_gtk=yes
9297fi
9298rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9299  conftest.$ac_objext conftest.beam conftest.$ac_ext
9300fi
9301
9302      CFLAGS="$ac_save_CFLAGS"
9303      LIBS="$ac_save_LIBS"
9304    }
9305    fi
9306    if test "x$no_gtk" = x ; then
9307      if test "x$enable_gtktest" = "xyes"; then
9308	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9309$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9310      else
9311	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9312$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9313      fi
9314      GUI_LIB_LOC="$GTK_LIBDIR"
9315		 GTK_LIBNAME="$GTK_LIBS"
9316		GUI_INC_LOC="$GTK_CFLAGS"
9317    else
9318    {
9319      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320$as_echo "no" >&6; }
9321      GTK_CFLAGS=""
9322      GTK_LIBS=""
9323      :
9324    }
9325    fi
9326  }
9327  else
9328    GTK_CFLAGS=""
9329    GTK_LIBS=""
9330    :
9331  fi
9332
9333
9334  rm -f conf.gtktest
9335
9336    if test "x$GTK_CFLAGS" != "x"; then
9337      SKIP_GTK2=YES
9338      SKIP_GNOME=YES
9339      SKIP_ATHENA=YES
9340      SKIP_NEXTAW=YES
9341      SKIP_MOTIF=YES
9342      GUITYPE=GTK
9343
9344      $as_echo "#define USE_GTK3 1" >>confdefs.h
9345
9346    fi
9347  fi
9348fi
9349
9350if test "x$GUITYPE" = "xGTK"; then
9351  { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5
9352$as_echo_n "checking version of Gdk-Pixbuf... " >&6; }
9353  gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0`
9354  if test "x$gdk_pixbuf_version" != x ; then
9355    gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \
9356      sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'`
9357    if test "x$gdk_pixbuf_version_minor" != x -a \
9358	$gdk_pixbuf_version_minor -ge 31 ; then
9359      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5
9360$as_echo "OK." >&6; }
9361      # Extract the first word of "glib-compile-resources", so it can be a program name with args.
9362set dummy glib-compile-resources; ac_word=$2
9363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9364$as_echo_n "checking for $ac_word... " >&6; }
9365if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then :
9366  $as_echo_n "(cached) " >&6
9367else
9368  case $GLIB_COMPILE_RESOURCES in
9369  [\\/]* | ?:[\\/]*)
9370  ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path.
9371  ;;
9372  *)
9373  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9374for as_dir in $PATH
9375do
9376  IFS=$as_save_IFS
9377  test -z "$as_dir" && as_dir=.
9378    for ac_exec_ext in '' $ac_executable_extensions; do
9379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9380    ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext"
9381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9382    break 2
9383  fi
9384done
9385  done
9386IFS=$as_save_IFS
9387
9388  test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no"
9389  ;;
9390esac
9391fi
9392GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES
9393if test -n "$GLIB_COMPILE_RESOURCES"; then
9394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
9395$as_echo "$GLIB_COMPILE_RESOURCES" >&6; }
9396else
9397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9398$as_echo "no" >&6; }
9399fi
9400
9401
9402      { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5
9403$as_echo_n "checking glib-compile-resources... " >&6; }
9404      if test "x$GLIB_COMPILE_RESOURCES" = xno ; then
9405	GLIB_COMPILE_RESOURCES=""
9406	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5
9407$as_echo "cannot be found in PATH." >&6; }
9408      else
9409	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5
9410$as_echo "usable." >&6; }
9411	$as_echo "#define USE_GRESOURCE 1" >>confdefs.h
9412
9413	GRESOURCE_SRC="auto/gui_gtk_gresources.c"
9414	GRESOURCE_OBJ="objects/gui_gtk_gresources.o"
9415      fi
9416    else
9417      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5
9418$as_echo "not usable." >&6; }
9419    fi
9420  else
9421    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5
9422$as_echo "cannot obtain from pkg_config." >&6; }
9423  fi
9424
9425  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5
9426$as_echo_n "checking --disable-icon-cache-update argument... " >&6; }
9427  # Check whether --enable-icon_cache_update was given.
9428if test "${enable_icon_cache_update+set}" = set; then :
9429  enableval=$enable_icon_cache_update;
9430else
9431  enable_icon_cache_update="yes"
9432fi
9433
9434  if test "$enable_icon_cache_update" = "yes"; then
9435    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
9436$as_echo "not set" >&6; }
9437    # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args.
9438set dummy gtk-update-icon-cache; ac_word=$2
9439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9440$as_echo_n "checking for $ac_word... " >&6; }
9441if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then :
9442  $as_echo_n "(cached) " >&6
9443else
9444  case $GTK_UPDATE_ICON_CACHE in
9445  [\\/]* | ?:[\\/]*)
9446  ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path.
9447  ;;
9448  *)
9449  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9450for as_dir in $PATH
9451do
9452  IFS=$as_save_IFS
9453  test -z "$as_dir" && as_dir=.
9454    for ac_exec_ext in '' $ac_executable_extensions; do
9455  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9456    ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext"
9457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9458    break 2
9459  fi
9460done
9461  done
9462IFS=$as_save_IFS
9463
9464  test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no"
9465  ;;
9466esac
9467fi
9468GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE
9469if test -n "$GTK_UPDATE_ICON_CACHE"; then
9470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5
9471$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; }
9472else
9473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9474$as_echo "no" >&6; }
9475fi
9476
9477
9478    if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then
9479      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
9480$as_echo "not found in PATH." >&6; }
9481    fi
9482  else
9483    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
9484$as_echo "update disabled" >&6; }
9485  fi
9486
9487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5
9488$as_echo_n "checking --disable-desktop-database-update argument... " >&6; }
9489  # Check whether --enable-desktop_database_update was given.
9490if test "${enable_desktop_database_update+set}" = set; then :
9491  enableval=$enable_desktop_database_update;
9492else
9493  enable_desktop_database_update="yes"
9494fi
9495
9496  if test "$enable_desktop_database_update" = "yes"; then
9497    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
9498$as_echo "not set" >&6; }
9499    # Extract the first word of "update-desktop-database", so it can be a program name with args.
9500set dummy update-desktop-database; ac_word=$2
9501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9502$as_echo_n "checking for $ac_word... " >&6; }
9503if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
9504  $as_echo_n "(cached) " >&6
9505else
9506  case $UPDATE_DESKTOP_DATABASE in
9507  [\\/]* | ?:[\\/]*)
9508  ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
9509  ;;
9510  *)
9511  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9512for as_dir in $PATH
9513do
9514  IFS=$as_save_IFS
9515  test -z "$as_dir" && as_dir=.
9516    for ac_exec_ext in '' $ac_executable_extensions; do
9517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9518    ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
9519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9520    break 2
9521  fi
9522done
9523  done
9524IFS=$as_save_IFS
9525
9526  test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
9527  ;;
9528esac
9529fi
9530UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
9531if test -n "$UPDATE_DESKTOP_DATABASE"; then
9532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
9533$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
9534else
9535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536$as_echo "no" >&6; }
9537fi
9538
9539
9540    if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then
9541      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
9542$as_echo "not found in PATH." >&6; }
9543    fi
9544  else
9545    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
9546$as_echo "update disabled" >&6; }
9547  fi
9548fi
9549
9550
9551
9552
9553
9554
9555
9556if test -z "$SKIP_MOTIF"; then
9557  gui_XXX="/usr/XXX/Motif* /usr/Motif*/XXX /usr/XXX /usr/shlib /usr/X11*/XXX /usr/XXX/X11* /usr/dt/XXX /local/Motif*/XXX /local/XXX/Motif* /usr/local/Motif*/XXX /usr/local/XXX/Motif* /usr/local/XXX /usr/local/X11*/XXX /usr/local/LessTif/Motif*/XXX $MOTIFHOME/XXX"
9558    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
9559
9560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5
9561$as_echo_n "checking for location of Motif GUI includes... " >&6; }
9562  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
9563  GUI_INC_LOC=
9564  for try in $gui_includes; do
9565    if test -f "$try/Xm/Xm.h"; then
9566      GUI_INC_LOC=$try
9567    fi
9568  done
9569  if test -n "$GUI_INC_LOC"; then
9570    if test "$GUI_INC_LOC" = /usr/include; then
9571      GUI_INC_LOC=
9572      { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
9573$as_echo "in default path" >&6; }
9574    else
9575      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5
9576$as_echo "$GUI_INC_LOC" >&6; }
9577    fi
9578  else
9579    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
9580$as_echo "<not found>" >&6; }
9581    SKIP_MOTIF=YES
9582  fi
9583fi
9584
9585
9586if test -z "$SKIP_MOTIF"; then
9587  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5
9588$as_echo_n "checking --with-motif-lib argument... " >&6; }
9589
9590# Check whether --with-motif-lib was given.
9591if test "${with_motif_lib+set}" = set; then :
9592  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
9593fi
9594
9595
9596  if test -n "$MOTIF_LIBNAME"; then
9597    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5
9598$as_echo "$MOTIF_LIBNAME" >&6; }
9599    GUI_LIB_LOC=
9600  else
9601    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602$as_echo "no" >&6; }
9603
9604        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9605
9606            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
9607$as_echo_n "checking for location of Motif GUI libs... " >&6; }
9608    gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` /usr/lib/i386-linux-gnu /usr/lib/x86_64-linux-gnu `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
9609    GUI_LIB_LOC=
9610    for try in $gui_libs; do
9611      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9612	if test -f "$libtry"; then
9613	  GUI_LIB_LOC=$try
9614	fi
9615      done
9616    done
9617    if test -n "$GUI_LIB_LOC"; then
9618            if test "$GUI_LIB_LOC" = /usr/lib \
9619	   -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \
9620	   -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then
9621	GUI_LIB_LOC=
9622	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
9623$as_echo "in default path" >&6; }
9624      else
9625	if test -n "$GUI_LIB_LOC"; then
9626	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5
9627$as_echo "$GUI_LIB_LOC" >&6; }
9628	  if test "`(uname) 2>/dev/null`" = SunOS &&
9629					 uname -r | grep '^5' >/dev/null; then
9630	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9631	  fi
9632	fi
9633      fi
9634      MOTIF_LIBNAME=-lXm
9635    else
9636      { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
9637$as_echo "<not found>" >&6; }
9638      SKIP_MOTIF=YES
9639    fi
9640  fi
9641fi
9642
9643if test -z "$SKIP_MOTIF"; then
9644  SKIP_ATHENA=YES
9645  SKIP_NEXTAW=YES
9646  GUITYPE=MOTIF
9647
9648fi
9649
9650
9651GUI_X_LIBS=
9652
9653if test -z "$SKIP_ATHENA"; then
9654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5
9655$as_echo_n "checking if Athena header files can be found... " >&6; }
9656  cflags_save=$CFLAGS
9657  CFLAGS="$CFLAGS $X_CFLAGS"
9658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9659/* end confdefs.h.  */
9660
9661#include <X11/Intrinsic.h>
9662#include <X11/Xaw/Paned.h>
9663int
9664main ()
9665{
9666
9667  ;
9668  return 0;
9669}
9670_ACEOF
9671if ac_fn_c_try_compile "$LINENO"; then :
9672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9673$as_echo "yes" >&6; }
9674else
9675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9676$as_echo "no" >&6; }; SKIP_ATHENA=YES
9677fi
9678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9679  CFLAGS=$cflags_save
9680fi
9681
9682if test -z "$SKIP_ATHENA"; then
9683  GUITYPE=ATHENA
9684fi
9685
9686if test -z "$SKIP_NEXTAW"; then
9687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5
9688$as_echo_n "checking if neXtaw header files can be found... " >&6; }
9689  cflags_save=$CFLAGS
9690  CFLAGS="$CFLAGS $X_CFLAGS"
9691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692/* end confdefs.h.  */
9693
9694#include <X11/Intrinsic.h>
9695#include <X11/neXtaw/Paned.h>
9696int
9697main ()
9698{
9699
9700  ;
9701  return 0;
9702}
9703_ACEOF
9704if ac_fn_c_try_compile "$LINENO"; then :
9705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9706$as_echo "yes" >&6; }
9707else
9708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9709$as_echo "no" >&6; }; SKIP_NEXTAW=YES
9710fi
9711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9712  CFLAGS=$cflags_save
9713fi
9714
9715if test -z "$SKIP_NEXTAW"; then
9716  GUITYPE=NEXTAW
9717fi
9718
9719if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9720      if test -n "$GUI_INC_LOC"; then
9721    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9722  fi
9723  if test -n "$GUI_LIB_LOC"; then
9724    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9725  fi
9726
9727    ldflags_save=$LDFLAGS
9728  LDFLAGS="$X_LIBS $LDFLAGS"
9729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9730$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9731if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9732  $as_echo_n "(cached) " >&6
9733else
9734  ac_check_lib_save_LIBS=$LIBS
9735LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737/* end confdefs.h.  */
9738
9739/* Override any GCC internal prototype to avoid an error.
9740   Use char because int might match the return type of a GCC
9741   builtin and then its argument prototype would still apply.  */
9742#ifdef __cplusplus
9743extern "C"
9744#endif
9745char XShapeQueryExtension ();
9746int
9747main ()
9748{
9749return XShapeQueryExtension ();
9750  ;
9751  return 0;
9752}
9753_ACEOF
9754if ac_fn_c_try_link "$LINENO"; then :
9755  ac_cv_lib_Xext_XShapeQueryExtension=yes
9756else
9757  ac_cv_lib_Xext_XShapeQueryExtension=no
9758fi
9759rm -f core conftest.err conftest.$ac_objext \
9760    conftest$ac_exeext conftest.$ac_ext
9761LIBS=$ac_check_lib_save_LIBS
9762fi
9763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9764$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9765if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9766  GUI_X_LIBS="-lXext"
9767fi
9768
9769    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5
9770$as_echo_n "checking for wslen in -lw... " >&6; }
9771if ${ac_cv_lib_w_wslen+:} false; then :
9772  $as_echo_n "(cached) " >&6
9773else
9774  ac_check_lib_save_LIBS=$LIBS
9775LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777/* end confdefs.h.  */
9778
9779/* Override any GCC internal prototype to avoid an error.
9780   Use char because int might match the return type of a GCC
9781   builtin and then its argument prototype would still apply.  */
9782#ifdef __cplusplus
9783extern "C"
9784#endif
9785char wslen ();
9786int
9787main ()
9788{
9789return wslen ();
9790  ;
9791  return 0;
9792}
9793_ACEOF
9794if ac_fn_c_try_link "$LINENO"; then :
9795  ac_cv_lib_w_wslen=yes
9796else
9797  ac_cv_lib_w_wslen=no
9798fi
9799rm -f core conftest.err conftest.$ac_objext \
9800    conftest$ac_exeext conftest.$ac_ext
9801LIBS=$ac_check_lib_save_LIBS
9802fi
9803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5
9804$as_echo "$ac_cv_lib_w_wslen" >&6; }
9805if test "x$ac_cv_lib_w_wslen" = xyes; then :
9806  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9807fi
9808
9809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
9810$as_echo_n "checking for dlsym in -ldl... " >&6; }
9811if ${ac_cv_lib_dl_dlsym+:} false; then :
9812  $as_echo_n "(cached) " >&6
9813else
9814  ac_check_lib_save_LIBS=$LIBS
9815LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817/* end confdefs.h.  */
9818
9819/* Override any GCC internal prototype to avoid an error.
9820   Use char because int might match the return type of a GCC
9821   builtin and then its argument prototype would still apply.  */
9822#ifdef __cplusplus
9823extern "C"
9824#endif
9825char dlsym ();
9826int
9827main ()
9828{
9829return dlsym ();
9830  ;
9831  return 0;
9832}
9833_ACEOF
9834if ac_fn_c_try_link "$LINENO"; then :
9835  ac_cv_lib_dl_dlsym=yes
9836else
9837  ac_cv_lib_dl_dlsym=no
9838fi
9839rm -f core conftest.err conftest.$ac_objext \
9840    conftest$ac_exeext conftest.$ac_ext
9841LIBS=$ac_check_lib_save_LIBS
9842fi
9843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
9844$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9845if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
9846  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9847fi
9848
9849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5
9850$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9851if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then :
9852  $as_echo_n "(cached) " >&6
9853else
9854  ac_check_lib_save_LIBS=$LIBS
9855LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857/* end confdefs.h.  */
9858
9859/* Override any GCC internal prototype to avoid an error.
9860   Use char because int might match the return type of a GCC
9861   builtin and then its argument prototype would still apply.  */
9862#ifdef __cplusplus
9863extern "C"
9864#endif
9865char XmuCreateStippledPixmap ();
9866int
9867main ()
9868{
9869return XmuCreateStippledPixmap ();
9870  ;
9871  return 0;
9872}
9873_ACEOF
9874if ac_fn_c_try_link "$LINENO"; then :
9875  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9876else
9877  ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9878fi
9879rm -f core conftest.err conftest.$ac_objext \
9880    conftest$ac_exeext conftest.$ac_ext
9881LIBS=$ac_check_lib_save_LIBS
9882fi
9883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9884$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9885if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then :
9886  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9887fi
9888
9889  if test -z "$SKIP_MOTIF"; then
9890    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5
9891$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9892if ${ac_cv_lib_Xp_XpEndJob+:} false; then :
9893  $as_echo_n "(cached) " >&6
9894else
9895  ac_check_lib_save_LIBS=$LIBS
9896LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898/* end confdefs.h.  */
9899
9900/* Override any GCC internal prototype to avoid an error.
9901   Use char because int might match the return type of a GCC
9902   builtin and then its argument prototype would still apply.  */
9903#ifdef __cplusplus
9904extern "C"
9905#endif
9906char XpEndJob ();
9907int
9908main ()
9909{
9910return XpEndJob ();
9911  ;
9912  return 0;
9913}
9914_ACEOF
9915if ac_fn_c_try_link "$LINENO"; then :
9916  ac_cv_lib_Xp_XpEndJob=yes
9917else
9918  ac_cv_lib_Xp_XpEndJob=no
9919fi
9920rm -f core conftest.err conftest.$ac_objext \
9921    conftest$ac_exeext conftest.$ac_ext
9922LIBS=$ac_check_lib_save_LIBS
9923fi
9924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5
9925$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9926if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then :
9927  GUI_X_LIBS="-lXp $GUI_X_LIBS"
9928fi
9929
9930  fi
9931  LDFLAGS=$ldflags_save
9932
9933    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5
9934$as_echo_n "checking for extra X11 defines... " >&6; }
9935  NARROW_PROTO=
9936  rm -fr conftestdir
9937  if mkdir conftestdir; then
9938    cd conftestdir
9939    cat > Imakefile <<'EOF'
9940acfindx:
9941	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9942EOF
9943    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9944      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9945    fi
9946    cd ..
9947    rm -fr conftestdir
9948  fi
9949  if test -z "$NARROW_PROTO"; then
9950    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951$as_echo "no" >&6; }
9952  else
9953    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5
9954$as_echo "$NARROW_PROTO" >&6; }
9955  fi
9956
9957fi
9958
9959if test "$enable_xsmp" = "yes"; then
9960  cppflags_save=$CPPFLAGS
9961  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9962  for ac_header in X11/SM/SMlib.h
9963do :
9964  ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
9965if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
9966  cat >>confdefs.h <<_ACEOF
9967#define HAVE_X11_SM_SMLIB_H 1
9968_ACEOF
9969
9970fi
9971
9972done
9973
9974  CPPFLAGS=$cppflags_save
9975fi
9976
9977
9978if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then
9979    cppflags_save=$CPPFLAGS
9980  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9981  for ac_header in X11/xpm.h X11/Sunkeysym.h
9982do :
9983  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9984ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9985if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9986  cat >>confdefs.h <<_ACEOF
9987#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9988_ACEOF
9989
9990fi
9991
9992done
9993
9994
9995    if test ! "$enable_xim" = "no"; then
9996    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5
9997$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
9998    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999/* end confdefs.h.  */
10000#include <X11/Xlib.h>
10001_ACEOF
10002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10003  $EGREP "XIMText" >/dev/null 2>&1; then :
10004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10005$as_echo "yes" >&6; }
10006else
10007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5
10008$as_echo "no; xim has been disabled" >&6; }; enable_xim="no"
10009fi
10010rm -f conftest*
10011
10012  fi
10013  CPPFLAGS=$cppflags_save
10014
10015    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10016		-a "x$GUITYPE" != "xNONE" ; then
10017    { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5
10018$as_echo "X GUI selected; xim has been enabled" >&6; }
10019    enable_xim="yes"
10020  fi
10021fi
10022
10023if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10024  cppflags_save=$CPPFLAGS
10025  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10026  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5
10027$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029/* end confdefs.h.  */
10030
10031#include <X11/Intrinsic.h>
10032#include <X11/Xmu/Editres.h>
10033int
10034main ()
10035{
10036int i; i = 0;
10037  ;
10038  return 0;
10039}
10040_ACEOF
10041if ac_fn_c_try_compile "$LINENO"; then :
10042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10043$as_echo "yes" >&6; }
10044		      $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h
10045
10046else
10047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10048$as_echo "no" >&6; }
10049fi
10050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10051  CPPFLAGS=$cppflags_save
10052fi
10053
10054if test -z "$SKIP_MOTIF"; then
10055  cppflags_save=$CPPFLAGS
10056  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10057  if test "$zOSUnix" = "yes"; then
10058	xmheader="Xm/Xm.h"
10059  else
10060	xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h
10061	   Xm/UnhighlightT.h Xm/Notebook.h"
10062  fi
10063  for ac_header in $xmheader
10064do :
10065  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10066ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10067if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10068  cat >>confdefs.h <<_ACEOF
10069#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10070_ACEOF
10071
10072fi
10073
10074done
10075
10076
10077  if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then
10078        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10079$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10080    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081/* end confdefs.h.  */
10082#include <Xm/XpmP.h>
10083int
10084main ()
10085{
10086XpmAttributes_21 attr;
10087  ;
10088  return 0;
10089}
10090_ACEOF
10091if ac_fn_c_try_compile "$LINENO"; then :
10092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10093$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h
10094
10095else
10096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10098
10099
10100fi
10101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10102  else
10103    $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10104
10105  fi
10106  CPPFLAGS=$cppflags_save
10107fi
10108
10109if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5
10111$as_echo "no GUI selected; xim has been disabled" >&6; }
10112  enable_xim="no"
10113fi
10114if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5
10116$as_echo "no GUI selected; fontset has been disabled" >&6; }
10117  enable_fontset="no"
10118fi
10119if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then
10120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10121$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10122  enable_fontset="no"
10123fi
10124
10125if test -z "$SKIP_PHOTON"; then
10126  GUITYPE=PHOTONGUI
10127fi
10128
10129
10130
10131
10132
10133
10134if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10135  as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5
10136fi
10137
10138if test "$enable_xim" = "yes"; then
10139  $as_echo "#define FEAT_XIM 1" >>confdefs.h
10140
10141fi
10142if test "$enable_fontset" = "yes"; then
10143  $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h
10144
10145fi
10146
10147
10148
10149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5
10150$as_echo_n "checking for /proc link to executable... " >&6; }
10151if test -L "/proc/self/exe"; then
10152    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5
10153$as_echo "/proc/self/exe" >&6; }
10154  $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h
10155
10156elif test -L "/proc/self/path/a.out"; then
10157    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5
10158$as_echo "/proc/self/path/a.out" >&6; }
10159  $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h
10160
10161elif test -L "/proc/curproc/file"; then
10162    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5
10163$as_echo "/proc/curproc/file" >&6; }
10164  $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h
10165
10166else
10167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168$as_echo "no" >&6; }
10169fi
10170
10171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5
10172$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; }
10173case `uname` in
10174    CYGWIN*|MSYS*)    CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10175$as_echo "yes" >&6; }
10176                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5
10177$as_echo_n "checking for CYGWIN clipboard support... " >&6; }
10178                if test "x$with_x" = "xno" ; then
10179                  OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o
10180                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10181$as_echo "yes" >&6; }
10182                  $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h
10183
10184                else
10185                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5
10186$as_echo "no - using X11" >&6; }
10187                fi ;;
10188
10189    *)          CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10190$as_echo "no" >&6; };;
10191esac
10192
10193if test "$enable_hangulinput" = "yes"; then
10194  if test "x$GUITYPE" = "xNONE"; then
10195    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5
10196$as_echo "no GUI selected; hangul input has been disabled" >&6; }
10197    enable_hangulinput=no
10198  else
10199    $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h
10200
10201    HANGULIN_SRC=hangulin.c
10202
10203    HANGULIN_OBJ=objects/hangulin.o
10204
10205  fi
10206fi
10207
10208
10209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5
10210$as_echo_n "checking whether toupper is broken... " >&6; }
10211if ${vim_cv_toupper_broken+:} false; then :
10212  $as_echo_n "(cached) " >&6
10213else
10214
10215    if test "$cross_compiling" = yes; then :
10216
10217    as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5
10218
10219else
10220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10221/* end confdefs.h.  */
10222
10223#include "confdefs.h"
10224#include <ctype.h>
10225#if STDC_HEADERS
10226# include <stdlib.h>
10227# include <stddef.h>
10228#endif
10229main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10230
10231_ACEOF
10232if ac_fn_c_try_run "$LINENO"; then :
10233
10234    vim_cv_toupper_broken=yes
10235
10236else
10237
10238    vim_cv_toupper_broken=no
10239
10240fi
10241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10242  conftest.$ac_objext conftest.beam conftest.$ac_ext
10243fi
10244
10245fi
10246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5
10247$as_echo "$vim_cv_toupper_broken" >&6; }
10248
10249if test "x$vim_cv_toupper_broken" = "xyes" ; then
10250  $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h
10251
10252fi
10253
10254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5
10255$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257/* end confdefs.h.  */
10258#include <stdio.h>
10259int
10260main ()
10261{
10262printf("(" __DATE__ " " __TIME__ ")");
10263  ;
10264  return 0;
10265}
10266_ACEOF
10267if ac_fn_c_try_compile "$LINENO"; then :
10268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10269$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h
10270
10271else
10272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273$as_echo "no" >&6; }
10274fi
10275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10276
10277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5
10278$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280/* end confdefs.h.  */
10281#include <stdio.h>
10282int
10283main ()
10284{
10285int x __attribute__((unused));
10286  ;
10287  return 0;
10288}
10289_ACEOF
10290if ac_fn_c_try_compile "$LINENO"; then :
10291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10292$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
10293
10294else
10295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296$as_echo "no" >&6; }
10297fi
10298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10299
10300ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
10301if test "x$ac_cv_header_elf_h" = xyes; then :
10302  HAS_ELF=1
10303fi
10304
10305
10306if test "$HAS_ELF" = 1; then
10307  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5
10308$as_echo_n "checking for main in -lelf... " >&6; }
10309if ${ac_cv_lib_elf_main+:} false; then :
10310  $as_echo_n "(cached) " >&6
10311else
10312  ac_check_lib_save_LIBS=$LIBS
10313LIBS="-lelf  $LIBS"
10314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10315/* end confdefs.h.  */
10316
10317
10318int
10319main ()
10320{
10321return main ();
10322  ;
10323  return 0;
10324}
10325_ACEOF
10326if ac_fn_c_try_link "$LINENO"; then :
10327  ac_cv_lib_elf_main=yes
10328else
10329  ac_cv_lib_elf_main=no
10330fi
10331rm -f core conftest.err conftest.$ac_objext \
10332    conftest$ac_exeext conftest.$ac_ext
10333LIBS=$ac_check_lib_save_LIBS
10334fi
10335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5
10336$as_echo "$ac_cv_lib_elf_main" >&6; }
10337if test "x$ac_cv_lib_elf_main" = xyes; then :
10338  cat >>confdefs.h <<_ACEOF
10339#define HAVE_LIBELF 1
10340_ACEOF
10341
10342  LIBS="-lelf $LIBS"
10343
10344fi
10345
10346fi
10347
10348ac_header_dirent=no
10349for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10350  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10352$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10353if eval \${$as_ac_Header+:} false; then :
10354  $as_echo_n "(cached) " >&6
10355else
10356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357/* end confdefs.h.  */
10358#include <sys/types.h>
10359#include <$ac_hdr>
10360
10361int
10362main ()
10363{
10364if ((DIR *) 0)
10365return 0;
10366  ;
10367  return 0;
10368}
10369_ACEOF
10370if ac_fn_c_try_compile "$LINENO"; then :
10371  eval "$as_ac_Header=yes"
10372else
10373  eval "$as_ac_Header=no"
10374fi
10375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10376fi
10377eval ac_res=\$$as_ac_Header
10378	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10379$as_echo "$ac_res" >&6; }
10380if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10381  cat >>confdefs.h <<_ACEOF
10382#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10383_ACEOF
10384
10385ac_header_dirent=$ac_hdr; break
10386fi
10387
10388done
10389# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10390if test $ac_header_dirent = dirent.h; then
10391  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10392$as_echo_n "checking for library containing opendir... " >&6; }
10393if ${ac_cv_search_opendir+:} false; then :
10394  $as_echo_n "(cached) " >&6
10395else
10396  ac_func_search_save_LIBS=$LIBS
10397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398/* end confdefs.h.  */
10399
10400/* Override any GCC internal prototype to avoid an error.
10401   Use char because int might match the return type of a GCC
10402   builtin and then its argument prototype would still apply.  */
10403#ifdef __cplusplus
10404extern "C"
10405#endif
10406char opendir ();
10407int
10408main ()
10409{
10410return opendir ();
10411  ;
10412  return 0;
10413}
10414_ACEOF
10415for ac_lib in '' dir; do
10416  if test -z "$ac_lib"; then
10417    ac_res="none required"
10418  else
10419    ac_res=-l$ac_lib
10420    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10421  fi
10422  if ac_fn_c_try_link "$LINENO"; then :
10423  ac_cv_search_opendir=$ac_res
10424fi
10425rm -f core conftest.err conftest.$ac_objext \
10426    conftest$ac_exeext
10427  if ${ac_cv_search_opendir+:} false; then :
10428  break
10429fi
10430done
10431if ${ac_cv_search_opendir+:} false; then :
10432
10433else
10434  ac_cv_search_opendir=no
10435fi
10436rm conftest.$ac_ext
10437LIBS=$ac_func_search_save_LIBS
10438fi
10439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10440$as_echo "$ac_cv_search_opendir" >&6; }
10441ac_res=$ac_cv_search_opendir
10442if test "$ac_res" != no; then :
10443  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10444
10445fi
10446
10447else
10448  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10449$as_echo_n "checking for library containing opendir... " >&6; }
10450if ${ac_cv_search_opendir+:} false; then :
10451  $as_echo_n "(cached) " >&6
10452else
10453  ac_func_search_save_LIBS=$LIBS
10454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455/* end confdefs.h.  */
10456
10457/* Override any GCC internal prototype to avoid an error.
10458   Use char because int might match the return type of a GCC
10459   builtin and then its argument prototype would still apply.  */
10460#ifdef __cplusplus
10461extern "C"
10462#endif
10463char opendir ();
10464int
10465main ()
10466{
10467return opendir ();
10468  ;
10469  return 0;
10470}
10471_ACEOF
10472for ac_lib in '' x; do
10473  if test -z "$ac_lib"; then
10474    ac_res="none required"
10475  else
10476    ac_res=-l$ac_lib
10477    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10478  fi
10479  if ac_fn_c_try_link "$LINENO"; then :
10480  ac_cv_search_opendir=$ac_res
10481fi
10482rm -f core conftest.err conftest.$ac_objext \
10483    conftest$ac_exeext
10484  if ${ac_cv_search_opendir+:} false; then :
10485  break
10486fi
10487done
10488if ${ac_cv_search_opendir+:} false; then :
10489
10490else
10491  ac_cv_search_opendir=no
10492fi
10493rm conftest.$ac_ext
10494LIBS=$ac_func_search_save_LIBS
10495fi
10496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10497$as_echo "$ac_cv_search_opendir" >&6; }
10498ac_res=$ac_cv_search_opendir
10499if test "$ac_res" != no; then :
10500  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10501
10502fi
10503
10504fi
10505
10506
10507if test $ac_cv_header_sys_wait_h = no; then
10508  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5
10509$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
10510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511/* end confdefs.h.  */
10512#include <sys/wait.h>
10513int
10514main ()
10515{
10516union wait xx, yy; xx = yy
10517  ;
10518  return 0;
10519}
10520_ACEOF
10521if ac_fn_c_try_compile "$LINENO"; then :
10522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10523$as_echo "yes" >&6; }
10524			$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
10525
10526			$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
10527
10528else
10529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530$as_echo "no" >&6; }
10531fi
10532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10533fi
10534
10535for ac_header in stdint.h stdlib.h string.h \
10536	sys/select.h sys/utsname.h termcap.h fcntl.h \
10537	sgtty.h sys/ioctl.h sys/time.h sys/types.h \
10538	termio.h iconv.h inttypes.h langinfo.h math.h \
10539	unistd.h stropts.h errno.h sys/resource.h \
10540	sys/systeminfo.h locale.h sys/stream.h termios.h \
10541	libc.h sys/statfs.h poll.h sys/poll.h pwd.h \
10542	utime.h sys/param.h libintl.h libgen.h \
10543	util/debug.h util/msg18n.h frame.h sys/acl.h \
10544	sys/access.h sys/sysinfo.h wchar.h wctype.h
10545do :
10546  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10547ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10548if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10549  cat >>confdefs.h <<_ACEOF
10550#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10551_ACEOF
10552
10553fi
10554
10555done
10556
10557
10558for ac_header in sys/ptem.h
10559do :
10560  ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H
10561#  include <sys/stream.h>
10562#endif
10563"
10564if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
10565  cat >>confdefs.h <<_ACEOF
10566#define HAVE_SYS_PTEM_H 1
10567_ACEOF
10568
10569fi
10570
10571done
10572
10573
10574for ac_header in sys/sysctl.h
10575do :
10576  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
10577#  include <sys/param.h>
10578#endif
10579"
10580if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
10581  cat >>confdefs.h <<_ACEOF
10582#define HAVE_SYS_SYSCTL_H 1
10583_ACEOF
10584
10585fi
10586
10587done
10588
10589
10590
10591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5
10592$as_echo_n "checking for pthread_np.h... " >&6; }
10593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594/* end confdefs.h.  */
10595
10596#include <pthread.h>
10597#include <pthread_np.h>
10598int
10599main ()
10600{
10601int i; i = 0;
10602  ;
10603  return 0;
10604}
10605_ACEOF
10606if ac_fn_c_try_compile "$LINENO"; then :
10607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10608$as_echo "yes" >&6; }
10609		      $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
10610
10611else
10612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613$as_echo "no" >&6; }
10614fi
10615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10616
10617for ac_header in strings.h
10618do :
10619  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
10620if test "x$ac_cv_header_strings_h" = xyes; then :
10621  cat >>confdefs.h <<_ACEOF
10622#define HAVE_STRINGS_H 1
10623_ACEOF
10624
10625fi
10626
10627done
10628
10629if test "x$MACOS_X" = "xyes"; then
10630    $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
10631
10632else
10633
10634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5
10635$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
10636cppflags_save=$CPPFLAGS
10637CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639/* end confdefs.h.  */
10640
10641#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10642# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
10643			/* but don't do it on AIX 5.1 (Uribarri) */
10644#endif
10645#ifdef HAVE_XM_XM_H
10646# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
10647#endif
10648#ifdef HAVE_STRING_H
10649# include <string.h>
10650#endif
10651#if defined(HAVE_STRINGS_H)
10652# include <strings.h>
10653#endif
10654
10655int
10656main ()
10657{
10658int i; i = 0;
10659  ;
10660  return 0;
10661}
10662_ACEOF
10663if ac_fn_c_try_compile "$LINENO"; then :
10664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10665$as_echo "yes" >&6; }
10666else
10667  $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
10668
10669		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670$as_echo "no" >&6; }
10671fi
10672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10673CPPFLAGS=$cppflags_save
10674fi
10675
10676if test $ac_cv_c_compiler_gnu = yes; then
10677    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
10678$as_echo_n "checking whether $CC needs -traditional... " >&6; }
10679if ${ac_cv_prog_gcc_traditional+:} false; then :
10680  $as_echo_n "(cached) " >&6
10681else
10682    ac_pattern="Autoconf.*'x'"
10683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684/* end confdefs.h.  */
10685#include <sgtty.h>
10686Autoconf TIOCGETP
10687_ACEOF
10688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10689  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10690  ac_cv_prog_gcc_traditional=yes
10691else
10692  ac_cv_prog_gcc_traditional=no
10693fi
10694rm -f conftest*
10695
10696
10697  if test $ac_cv_prog_gcc_traditional = no; then
10698    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699/* end confdefs.h.  */
10700#include <termio.h>
10701Autoconf TCGETA
10702_ACEOF
10703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10704  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10705  ac_cv_prog_gcc_traditional=yes
10706fi
10707rm -f conftest*
10708
10709  fi
10710fi
10711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10712$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
10713  if test $ac_cv_prog_gcc_traditional = yes; then
10714    CC="$CC -traditional"
10715  fi
10716fi
10717
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10719$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10720if ${ac_cv_c_const+:} false; then :
10721  $as_echo_n "(cached) " >&6
10722else
10723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724/* end confdefs.h.  */
10725
10726int
10727main ()
10728{
10729
10730#ifndef __cplusplus
10731  /* Ultrix mips cc rejects this sort of thing.  */
10732  typedef int charset[2];
10733  const charset cs = { 0, 0 };
10734  /* SunOS 4.1.1 cc rejects this.  */
10735  char const *const *pcpcc;
10736  char **ppc;
10737  /* NEC SVR4.0.2 mips cc rejects this.  */
10738  struct point {int x, y;};
10739  static struct point const zero = {0,0};
10740  /* AIX XL C 1.02.0.0 rejects this.
10741     It does not let you subtract one const X* pointer from another in
10742     an arm of an if-expression whose if-part is not a constant
10743     expression */
10744  const char *g = "string";
10745  pcpcc = &g + (g ? g-g : 0);
10746  /* HPUX 7.0 cc rejects these. */
10747  ++pcpcc;
10748  ppc = (char**) pcpcc;
10749  pcpcc = (char const *const *) ppc;
10750  { /* SCO 3.2v4 cc rejects this sort of thing.  */
10751    char tx;
10752    char *t = &tx;
10753    char const *s = 0 ? (char *) 0 : (char const *) 0;
10754
10755    *t++ = 0;
10756    if (s) return 0;
10757  }
10758  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10759    int x[] = {25, 17};
10760    const int *foo = &x[0];
10761    ++foo;
10762  }
10763  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10764    typedef const int *iptr;
10765    iptr p = 0;
10766    ++p;
10767  }
10768  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
10769       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10770    struct s { int j; const int *ap[3]; } bx;
10771    struct s *b = &bx; b->j = 5;
10772  }
10773  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10774    const int foo = 10;
10775    if (!foo) return 0;
10776  }
10777  return !cs[0] && !zero.x;
10778#endif
10779
10780  ;
10781  return 0;
10782}
10783_ACEOF
10784if ac_fn_c_try_compile "$LINENO"; then :
10785  ac_cv_c_const=yes
10786else
10787  ac_cv_c_const=no
10788fi
10789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10790fi
10791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10792$as_echo "$ac_cv_c_const" >&6; }
10793if test $ac_cv_c_const = no; then
10794
10795$as_echo "#define const /**/" >>confdefs.h
10796
10797fi
10798
10799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
10800$as_echo_n "checking for working volatile... " >&6; }
10801if ${ac_cv_c_volatile+:} false; then :
10802  $as_echo_n "(cached) " >&6
10803else
10804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805/* end confdefs.h.  */
10806
10807int
10808main ()
10809{
10810
10811volatile int x;
10812int * volatile y = (int *) 0;
10813return !x && !y;
10814  ;
10815  return 0;
10816}
10817_ACEOF
10818if ac_fn_c_try_compile "$LINENO"; then :
10819  ac_cv_c_volatile=yes
10820else
10821  ac_cv_c_volatile=no
10822fi
10823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10824fi
10825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
10826$as_echo "$ac_cv_c_volatile" >&6; }
10827if test $ac_cv_c_volatile = no; then
10828
10829$as_echo "#define volatile /**/" >>confdefs.h
10830
10831fi
10832
10833ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10834if test "x$ac_cv_type_mode_t" = xyes; then :
10835
10836else
10837
10838cat >>confdefs.h <<_ACEOF
10839#define mode_t int
10840_ACEOF
10841
10842fi
10843
10844ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
10845if test "x$ac_cv_type_off_t" = xyes; then :
10846
10847else
10848
10849cat >>confdefs.h <<_ACEOF
10850#define off_t long int
10851_ACEOF
10852
10853fi
10854
10855ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10856if test "x$ac_cv_type_pid_t" = xyes; then :
10857
10858else
10859
10860cat >>confdefs.h <<_ACEOF
10861#define pid_t int
10862_ACEOF
10863
10864fi
10865
10866ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10867if test "x$ac_cv_type_size_t" = xyes; then :
10868
10869else
10870
10871cat >>confdefs.h <<_ACEOF
10872#define size_t unsigned int
10873_ACEOF
10874
10875fi
10876
10877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
10878$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
10879if ${ac_cv_type_uid_t+:} false; then :
10880  $as_echo_n "(cached) " >&6
10881else
10882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883/* end confdefs.h.  */
10884#include <sys/types.h>
10885
10886_ACEOF
10887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10888  $EGREP "uid_t" >/dev/null 2>&1; then :
10889  ac_cv_type_uid_t=yes
10890else
10891  ac_cv_type_uid_t=no
10892fi
10893rm -f conftest*
10894
10895fi
10896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
10897$as_echo "$ac_cv_type_uid_t" >&6; }
10898if test $ac_cv_type_uid_t = no; then
10899
10900$as_echo "#define uid_t int" >>confdefs.h
10901
10902
10903$as_echo "#define gid_t int" >>confdefs.h
10904
10905fi
10906
10907ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
10908case $ac_cv_c_uint32_t in #(
10909  no|yes) ;; #(
10910  *)
10911
10912$as_echo "#define _UINT32_T 1" >>confdefs.h
10913
10914
10915cat >>confdefs.h <<_ACEOF
10916#define uint32_t $ac_cv_c_uint32_t
10917_ACEOF
10918;;
10919  esac
10920
10921
10922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
10923$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10924if ${ac_cv_header_time+:} false; then :
10925  $as_echo_n "(cached) " >&6
10926else
10927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928/* end confdefs.h.  */
10929#include <sys/types.h>
10930#include <sys/time.h>
10931#include <time.h>
10932
10933int
10934main ()
10935{
10936if ((struct tm *) 0)
10937return 0;
10938  ;
10939  return 0;
10940}
10941_ACEOF
10942if ac_fn_c_try_compile "$LINENO"; then :
10943  ac_cv_header_time=yes
10944else
10945  ac_cv_header_time=no
10946fi
10947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10948fi
10949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
10950$as_echo "$ac_cv_header_time" >&6; }
10951if test $ac_cv_header_time = yes; then
10952
10953$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
10954
10955fi
10956
10957ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
10958if test "x$ac_cv_type_ino_t" = xyes; then :
10959
10960else
10961
10962cat >>confdefs.h <<_ACEOF
10963#define ino_t long
10964_ACEOF
10965
10966fi
10967
10968ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
10969if test "x$ac_cv_type_dev_t" = xyes; then :
10970
10971else
10972
10973cat >>confdefs.h <<_ACEOF
10974#define dev_t unsigned
10975_ACEOF
10976
10977fi
10978
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10980$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10981if ${ac_cv_c_bigendian+:} false; then :
10982  $as_echo_n "(cached) " >&6
10983else
10984  ac_cv_c_bigendian=unknown
10985    # See if we're dealing with a universal compiler.
10986    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987/* end confdefs.h.  */
10988#ifndef __APPLE_CC__
10989	       not a universal capable compiler
10990	     #endif
10991	     typedef int dummy;
10992
10993_ACEOF
10994if ac_fn_c_try_compile "$LINENO"; then :
10995
10996	# Check for potential -arch flags.  It is not universal unless
10997	# there are at least two -arch flags with different values.
10998	ac_arch=
10999	ac_prev=
11000	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11001	 if test -n "$ac_prev"; then
11002	   case $ac_word in
11003	     i?86 | x86_64 | ppc | ppc64)
11004	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11005		 ac_arch=$ac_word
11006	       else
11007		 ac_cv_c_bigendian=universal
11008		 break
11009	       fi
11010	       ;;
11011	   esac
11012	   ac_prev=
11013	 elif test "x$ac_word" = "x-arch"; then
11014	   ac_prev=arch
11015	 fi
11016       done
11017fi
11018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11019    if test $ac_cv_c_bigendian = unknown; then
11020      # See if sys/param.h defines the BYTE_ORDER macro.
11021      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022/* end confdefs.h.  */
11023#include <sys/types.h>
11024	     #include <sys/param.h>
11025
11026int
11027main ()
11028{
11029#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11030		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11031		     && LITTLE_ENDIAN)
11032	      bogus endian macros
11033	     #endif
11034
11035  ;
11036  return 0;
11037}
11038_ACEOF
11039if ac_fn_c_try_compile "$LINENO"; then :
11040  # It does; now see whether it defined to BIG_ENDIAN or not.
11041	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042/* end confdefs.h.  */
11043#include <sys/types.h>
11044		#include <sys/param.h>
11045
11046int
11047main ()
11048{
11049#if BYTE_ORDER != BIG_ENDIAN
11050		 not big endian
11051		#endif
11052
11053  ;
11054  return 0;
11055}
11056_ACEOF
11057if ac_fn_c_try_compile "$LINENO"; then :
11058  ac_cv_c_bigendian=yes
11059else
11060  ac_cv_c_bigendian=no
11061fi
11062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063fi
11064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11065    fi
11066    if test $ac_cv_c_bigendian = unknown; then
11067      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11068      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069/* end confdefs.h.  */
11070#include <limits.h>
11071
11072int
11073main ()
11074{
11075#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11076	      bogus endian macros
11077	     #endif
11078
11079  ;
11080  return 0;
11081}
11082_ACEOF
11083if ac_fn_c_try_compile "$LINENO"; then :
11084  # It does; now see whether it defined to _BIG_ENDIAN or not.
11085	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086/* end confdefs.h.  */
11087#include <limits.h>
11088
11089int
11090main ()
11091{
11092#ifndef _BIG_ENDIAN
11093		 not big endian
11094		#endif
11095
11096  ;
11097  return 0;
11098}
11099_ACEOF
11100if ac_fn_c_try_compile "$LINENO"; then :
11101  ac_cv_c_bigendian=yes
11102else
11103  ac_cv_c_bigendian=no
11104fi
11105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106fi
11107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11108    fi
11109    if test $ac_cv_c_bigendian = unknown; then
11110      # Compile a test program.
11111      if test "$cross_compiling" = yes; then :
11112  # Try to guess by grepping values from an object file.
11113	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114/* end confdefs.h.  */
11115short int ascii_mm[] =
11116		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11117		short int ascii_ii[] =
11118		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11119		int use_ascii (int i) {
11120		  return ascii_mm[i] + ascii_ii[i];
11121		}
11122		short int ebcdic_ii[] =
11123		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11124		short int ebcdic_mm[] =
11125		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11126		int use_ebcdic (int i) {
11127		  return ebcdic_mm[i] + ebcdic_ii[i];
11128		}
11129		extern int foo;
11130
11131int
11132main ()
11133{
11134return use_ascii (foo) == use_ebcdic (foo);
11135  ;
11136  return 0;
11137}
11138_ACEOF
11139if ac_fn_c_try_compile "$LINENO"; then :
11140  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11141	      ac_cv_c_bigendian=yes
11142	    fi
11143	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11144	      if test "$ac_cv_c_bigendian" = unknown; then
11145		ac_cv_c_bigendian=no
11146	      else
11147		# finding both strings is unlikely to happen, but who knows?
11148		ac_cv_c_bigendian=unknown
11149	      fi
11150	    fi
11151fi
11152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11153else
11154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155/* end confdefs.h.  */
11156$ac_includes_default
11157int
11158main ()
11159{
11160
11161	     /* Are we little or big endian?  From Harbison&Steele.  */
11162	     union
11163	     {
11164	       long int l;
11165	       char c[sizeof (long int)];
11166	     } u;
11167	     u.l = 1;
11168	     return u.c[sizeof (long int) - 1] == 1;
11169
11170  ;
11171  return 0;
11172}
11173_ACEOF
11174if ac_fn_c_try_run "$LINENO"; then :
11175  ac_cv_c_bigendian=no
11176else
11177  ac_cv_c_bigendian=yes
11178fi
11179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11180  conftest.$ac_objext conftest.beam conftest.$ac_ext
11181fi
11182
11183    fi
11184fi
11185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11186$as_echo "$ac_cv_c_bigendian" >&6; }
11187 case $ac_cv_c_bigendian in #(
11188   yes)
11189     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11190;; #(
11191   no)
11192      ;; #(
11193   universal)
11194
11195$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11196
11197     ;; #(
11198   *)
11199     as_fn_error $? "unknown endianness
11200 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11201 esac
11202
11203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11204$as_echo_n "checking for inline... " >&6; }
11205if ${ac_cv_c_inline+:} false; then :
11206  $as_echo_n "(cached) " >&6
11207else
11208  ac_cv_c_inline=no
11209for ac_kw in inline __inline__ __inline; do
11210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211/* end confdefs.h.  */
11212#ifndef __cplusplus
11213typedef int foo_t;
11214static $ac_kw foo_t static_foo () {return 0; }
11215$ac_kw foo_t foo () {return 0; }
11216#endif
11217
11218_ACEOF
11219if ac_fn_c_try_compile "$LINENO"; then :
11220  ac_cv_c_inline=$ac_kw
11221fi
11222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11223  test "$ac_cv_c_inline" != no && break
11224done
11225
11226fi
11227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11228$as_echo "$ac_cv_c_inline" >&6; }
11229
11230case $ac_cv_c_inline in
11231  inline | yes) ;;
11232  *)
11233    case $ac_cv_c_inline in
11234      no) ac_val=;;
11235      *) ac_val=$ac_cv_c_inline;;
11236    esac
11237    cat >>confdefs.h <<_ACEOF
11238#ifndef __cplusplus
11239#define inline $ac_val
11240#endif
11241_ACEOF
11242    ;;
11243esac
11244
11245
11246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
11247$as_echo_n "checking for rlim_t... " >&6; }
11248if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5
11250$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
11251else
11252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11253/* end confdefs.h.  */
11254
11255#include <sys/types.h>
11256#if STDC_HEADERS
11257# include <stdlib.h>
11258# include <stddef.h>
11259#endif
11260#ifdef HAVE_SYS_RESOURCE_H
11261# include <sys/resource.h>
11262#endif
11263
11264_ACEOF
11265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11266  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
11267  ac_cv_type_rlim_t=yes
11268else
11269  ac_cv_type_rlim_t=no
11270fi
11271rm -f conftest*
11272
11273	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
11274$as_echo "$ac_cv_type_rlim_t" >&6; }
11275fi
11276if test $ac_cv_type_rlim_t = no; then
11277  cat >> confdefs.h <<\EOF
11278#define rlim_t unsigned long
11279EOF
11280fi
11281
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5
11283$as_echo_n "checking for stack_t... " >&6; }
11284if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5
11286$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
11287else
11288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289/* end confdefs.h.  */
11290
11291#include <sys/types.h>
11292#if STDC_HEADERS
11293# include <stdlib.h>
11294# include <stddef.h>
11295#endif
11296#include <signal.h>
11297
11298_ACEOF
11299if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11300  $EGREP "stack_t" >/dev/null 2>&1; then :
11301  ac_cv_type_stack_t=yes
11302else
11303  ac_cv_type_stack_t=no
11304fi
11305rm -f conftest*
11306
11307	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5
11308$as_echo "$ac_cv_type_stack_t" >&6; }
11309fi
11310if test $ac_cv_type_stack_t = no; then
11311  cat >> confdefs.h <<\EOF
11312#define stack_t struct sigaltstack
11313EOF
11314fi
11315
11316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5
11317$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
11318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319/* end confdefs.h.  */
11320
11321#include <sys/types.h>
11322#if STDC_HEADERS
11323# include <stdlib.h>
11324# include <stddef.h>
11325#endif
11326#include <signal.h>
11327#include "confdefs.h"
11328
11329int
11330main ()
11331{
11332stack_t sigstk; sigstk.ss_base = 0;
11333  ;
11334  return 0;
11335}
11336_ACEOF
11337if ac_fn_c_try_compile "$LINENO"; then :
11338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11339$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h
11340
11341else
11342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343$as_echo "no" >&6; }
11344fi
11345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11346
11347olibs="$LIBS"
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5
11349$as_echo_n "checking --with-tlib argument... " >&6; }
11350
11351# Check whether --with-tlib was given.
11352if test "${with_tlib+set}" = set; then :
11353  withval=$with_tlib;
11354fi
11355
11356if test -n "$with_tlib"; then
11357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5
11358$as_echo "$with_tlib" >&6; }
11359  LIBS="$LIBS -l$with_tlib"
11360  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5
11361$as_echo_n "checking for linking with $with_tlib library... " >&6; }
11362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11363/* end confdefs.h.  */
11364
11365int
11366main ()
11367{
11368
11369  ;
11370  return 0;
11371}
11372_ACEOF
11373if ac_fn_c_try_link "$LINENO"; then :
11374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
11375$as_echo "OK" >&6; }
11376else
11377  as_fn_error $? "FAILED" "$LINENO" 5
11378fi
11379rm -f core conftest.err conftest.$ac_objext \
11380    conftest$ac_exeext conftest.$ac_ext
11381    olibs="$LIBS"
11382else
11383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5
11384$as_echo "empty: automatic terminal library selection" >&6; }
11385                case "`uname -s 2>/dev/null`" in
11386	OSF1|SCO_SV)	tlibs="tinfo ncurses curses termlib termcap";;
11387	*)	tlibs="tinfo ncurses termlib termcap curses";;
11388  esac
11389  for libname in $tlibs; do
11390    as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5
11392$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
11393if eval \${$as_ac_Lib+:} false; then :
11394  $as_echo_n "(cached) " >&6
11395else
11396  ac_check_lib_save_LIBS=$LIBS
11397LIBS="-l${libname}  $LIBS"
11398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399/* end confdefs.h.  */
11400
11401/* Override any GCC internal prototype to avoid an error.
11402   Use char because int might match the return type of a GCC
11403   builtin and then its argument prototype would still apply.  */
11404#ifdef __cplusplus
11405extern "C"
11406#endif
11407char tgetent ();
11408int
11409main ()
11410{
11411return tgetent ();
11412  ;
11413  return 0;
11414}
11415_ACEOF
11416if ac_fn_c_try_link "$LINENO"; then :
11417  eval "$as_ac_Lib=yes"
11418else
11419  eval "$as_ac_Lib=no"
11420fi
11421rm -f core conftest.err conftest.$ac_objext \
11422    conftest$ac_exeext conftest.$ac_ext
11423LIBS=$ac_check_lib_save_LIBS
11424fi
11425eval ac_res=\$$as_ac_Lib
11426	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11427$as_echo "$ac_res" >&6; }
11428if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11429  cat >>confdefs.h <<_ACEOF
11430#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11431_ACEOF
11432
11433  LIBS="-l${libname} $LIBS"
11434
11435fi
11436
11437    if test "x$olibs" != "x$LIBS"; then
11438                        if test "$cross_compiling" = yes; then :
11439  res="FAIL"
11440else
11441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11442/* end confdefs.h.  */
11443
11444#ifdef HAVE_TERMCAP_H
11445# include <termcap.h>
11446#endif
11447#if STDC_HEADERS
11448# include <stdlib.h>
11449# include <stddef.h>
11450#endif
11451main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
11452_ACEOF
11453if ac_fn_c_try_run "$LINENO"; then :
11454  res="OK"
11455else
11456  res="FAIL"
11457fi
11458rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11459  conftest.$ac_objext conftest.beam conftest.$ac_ext
11460fi
11461
11462      if test "$res" = "OK"; then
11463	break
11464      fi
11465      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5
11466$as_echo "$libname library is not usable" >&6; }
11467      LIBS="$olibs"
11468    fi
11469  done
11470  if test "x$olibs" = "x$LIBS"; then
11471    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5
11472$as_echo "no terminal library found" >&6; }
11473  fi
11474fi
11475
11476if test "x$olibs" = "x$LIBS"; then
11477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5
11478$as_echo_n "checking for tgetent()... " >&6; }
11479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11480/* end confdefs.h.  */
11481
11482int
11483main ()
11484{
11485char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
11486  ;
11487  return 0;
11488}
11489_ACEOF
11490if ac_fn_c_try_link "$LINENO"; then :
11491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11492$as_echo "yes" >&6; }
11493else
11494  as_fn_error $? "NOT FOUND!
11495      You need to install a terminal library; for example ncurses.
11496      Or specify the name of the library with --with-tlib." "$LINENO" 5
11497fi
11498rm -f core conftest.err conftest.$ac_objext \
11499    conftest$ac_exeext conftest.$ac_ext
11500fi
11501
11502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5
11503$as_echo_n "checking whether we talk terminfo... " >&6; }
11504if ${vim_cv_terminfo+:} false; then :
11505  $as_echo_n "(cached) " >&6
11506else
11507
11508    if test "$cross_compiling" = yes; then :
11509
11510      as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5
11511
11512else
11513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514/* end confdefs.h.  */
11515
11516#include "confdefs.h"
11517#ifdef HAVE_TERMCAP_H
11518# include <termcap.h>
11519#endif
11520#ifdef HAVE_STRING_H
11521# include <string.h>
11522#endif
11523#if STDC_HEADERS
11524# include <stdlib.h>
11525# include <stddef.h>
11526#endif
11527main()
11528{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
11529
11530_ACEOF
11531if ac_fn_c_try_run "$LINENO"; then :
11532
11533      vim_cv_terminfo=no
11534
11535else
11536
11537      vim_cv_terminfo=yes
11538
11539fi
11540rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11541  conftest.$ac_objext conftest.beam conftest.$ac_ext
11542fi
11543
11544
11545fi
11546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5
11547$as_echo "$vim_cv_terminfo" >&6; }
11548
11549if test "x$vim_cv_terminfo" = "xyes" ; then
11550  $as_echo "#define TERMINFO 1" >>confdefs.h
11551
11552fi
11553
11554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
11555$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
11556if ${vim_cv_tgetent+:} false; then :
11557  $as_echo_n "(cached) " >&6
11558else
11559
11560    if test "$cross_compiling" = yes; then :
11561
11562      as_fn_error $? "failed to compile test program." "$LINENO" 5
11563
11564else
11565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11566/* end confdefs.h.  */
11567
11568#include "confdefs.h"
11569#ifdef HAVE_TERMCAP_H
11570# include <termcap.h>
11571#endif
11572#if STDC_HEADERS
11573# include <stdlib.h>
11574# include <stddef.h>
11575#endif
11576main()
11577{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
11578
11579_ACEOF
11580if ac_fn_c_try_run "$LINENO"; then :
11581
11582      vim_cv_tgetent=zero
11583
11584else
11585
11586      vim_cv_tgetent=non-zero
11587
11588fi
11589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11590  conftest.$ac_objext conftest.beam conftest.$ac_ext
11591fi
11592
11593
11594fi
11595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgetent" >&5
11596$as_echo "$vim_cv_tgetent" >&6; }
11597
11598if test "x$vim_cv_tgetent" = "xzero" ; then
11599  $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
11600
11601fi
11602
11603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5
11604$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
11605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606/* end confdefs.h.  */
11607
11608#ifdef HAVE_TERMCAP_H
11609# include <termcap.h>
11610#endif
11611
11612int
11613main ()
11614{
11615ospeed = 20000
11616  ;
11617  return 0;
11618}
11619_ACEOF
11620if ac_fn_c_try_link "$LINENO"; then :
11621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11622$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
11623
11624else
11625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11626$as_echo "no" >&6; }
11627	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5
11628$as_echo_n "checking whether ospeed can be extern... " >&6; }
11629	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630/* end confdefs.h.  */
11631
11632#ifdef HAVE_TERMCAP_H
11633# include <termcap.h>
11634#endif
11635extern short ospeed;
11636
11637int
11638main ()
11639{
11640ospeed = 20000
11641  ;
11642  return 0;
11643}
11644_ACEOF
11645if ac_fn_c_try_link "$LINENO"; then :
11646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11647$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h
11648
11649else
11650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651$as_echo "no" >&6; }
11652fi
11653rm -f core conftest.err conftest.$ac_objext \
11654    conftest$ac_exeext conftest.$ac_ext
11655
11656fi
11657rm -f core conftest.err conftest.$ac_objext \
11658    conftest$ac_exeext conftest.$ac_ext
11659
11660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5
11661$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
11662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663/* end confdefs.h.  */
11664
11665#ifdef HAVE_TERMCAP_H
11666# include <termcap.h>
11667#endif
11668
11669int
11670main ()
11671{
11672if (UP == 0 && BC == 0) PC = 1
11673  ;
11674  return 0;
11675}
11676_ACEOF
11677if ac_fn_c_try_link "$LINENO"; then :
11678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11679$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h
11680
11681else
11682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683$as_echo "no" >&6; }
11684	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5
11685$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
11686	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11687/* end confdefs.h.  */
11688
11689#ifdef HAVE_TERMCAP_H
11690# include <termcap.h>
11691#endif
11692extern char *UP, *BC, PC;
11693
11694int
11695main ()
11696{
11697if (UP == 0 && BC == 0) PC = 1
11698  ;
11699  return 0;
11700}
11701_ACEOF
11702if ac_fn_c_try_link "$LINENO"; then :
11703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11704$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h
11705
11706else
11707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708$as_echo "no" >&6; }
11709fi
11710rm -f core conftest.err conftest.$ac_objext \
11711    conftest$ac_exeext conftest.$ac_ext
11712
11713fi
11714rm -f core conftest.err conftest.$ac_objext \
11715    conftest$ac_exeext conftest.$ac_ext
11716
11717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5
11718$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
11719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720/* end confdefs.h.  */
11721
11722#ifdef HAVE_TERMCAP_H
11723# include <termcap.h>
11724#endif
11725
11726int
11727main ()
11728{
11729extern int xx(); tputs("test", 1, (outfuntype)xx)
11730  ;
11731  return 0;
11732}
11733_ACEOF
11734if ac_fn_c_try_compile "$LINENO"; then :
11735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11736$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h
11737
11738else
11739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740$as_echo "no" >&6; }
11741fi
11742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11743
11744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
11745$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
11746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11747/* end confdefs.h.  */
11748
11749#include <sys/types.h>
11750#include <sys/time.h>
11751#include <sys/select.h>
11752int
11753main ()
11754{
11755
11756  ;
11757  return 0;
11758}
11759_ACEOF
11760if ac_fn_c_try_compile "$LINENO"; then :
11761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11762$as_echo "yes" >&6; }
11763			$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
11764
11765else
11766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767$as_echo "no" >&6; }
11768fi
11769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11770
11771
11772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
11773$as_echo_n "checking for /dev/ptc... " >&6; }
11774if test -r /dev/ptc; then
11775  $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
11776
11777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11778$as_echo "yes" >&6; }
11779else
11780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781$as_echo "no" >&6; }
11782fi
11783
11784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5
11785$as_echo_n "checking for SVR4 ptys... " >&6; }
11786if test -c /dev/ptmx ; then
11787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788/* end confdefs.h.  */
11789
11790int
11791main ()
11792{
11793ptsname(0);grantpt(0);unlockpt(0);
11794  ;
11795  return 0;
11796}
11797_ACEOF
11798if ac_fn_c_try_link "$LINENO"; then :
11799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11800$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
11801
11802else
11803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804$as_echo "no" >&6; }
11805fi
11806rm -f core conftest.err conftest.$ac_objext \
11807    conftest$ac_exeext conftest.$ac_ext
11808else
11809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810$as_echo "no" >&6; }
11811fi
11812
11813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5
11814$as_echo_n "checking for ptyranges... " >&6; }
11815if test -d /dev/ptym ; then
11816  pdir='/dev/ptym'
11817else
11818  pdir='/dev'
11819fi
11820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11821/* end confdefs.h.  */
11822#ifdef M_UNIX
11823   yes;
11824#endif
11825
11826_ACEOF
11827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11828  $EGREP "yes" >/dev/null 2>&1; then :
11829  ptys=`echo /dev/ptyp??`
11830else
11831  ptys=`echo $pdir/pty??`
11832fi
11833rm -f conftest*
11834
11835if test "$ptys" != "$pdir/pty??" ; then
11836  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
11837  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
11838  cat >>confdefs.h <<_ACEOF
11839#define PTYRANGE0 "$p0"
11840_ACEOF
11841
11842  cat >>confdefs.h <<_ACEOF
11843#define PTYRANGE1 "$p1"
11844_ACEOF
11845
11846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5
11847$as_echo "$p0 / $p1" >&6; }
11848else
11849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5
11850$as_echo "don't know" >&6; }
11851fi
11852
11853rm -f conftest_grp
11854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5
11855$as_echo_n "checking default tty permissions/group... " >&6; }
11856if ${vim_cv_tty_group+:} false; then :
11857  $as_echo_n "(cached) " >&6
11858else
11859
11860    if test "$cross_compiling" = yes; then :
11861
11862      as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5
11863
11864else
11865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866/* end confdefs.h.  */
11867
11868#include "confdefs.h"
11869#include <sys/types.h>
11870#if STDC_HEADERS
11871# include <stdlib.h>
11872# include <stddef.h>
11873#endif
11874#ifdef HAVE_UNISTD_H
11875#include <unistd.h>
11876#endif
11877#include <sys/stat.h>
11878#include <stdio.h>
11879main()
11880{
11881  struct stat sb;
11882  char *x,*ttyname();
11883  int om, m;
11884  FILE *fp;
11885
11886  if (!(x = ttyname(0))) exit(1);
11887  if (stat(x, &sb)) exit(1);
11888  om = sb.st_mode;
11889  if (om & 002) exit(0);
11890  m = system("mesg y");
11891  if (m == -1 || m == 127) exit(1);
11892  if (stat(x, &sb)) exit(1);
11893  m = sb.st_mode;
11894  if (chmod(x, om)) exit(1);
11895  if (m & 002) exit(0);
11896  if (sb.st_gid == getgid()) exit(1);
11897  if (!(fp=fopen("conftest_grp", "w")))
11898    exit(1);
11899  fprintf(fp, "%d\n", sb.st_gid);
11900  fclose(fp);
11901  exit(0);
11902}
11903
11904_ACEOF
11905if ac_fn_c_try_run "$LINENO"; then :
11906
11907      if test -f conftest_grp; then
11908	vim_cv_tty_group=`cat conftest_grp`
11909	if test "x$vim_cv_tty_mode" = "x" ; then
11910	  vim_cv_tty_mode=0620
11911	fi
11912	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
11913$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
11914      else
11915	vim_cv_tty_group=world
11916	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5
11917$as_echo "ptys are world accessible" >&6; }
11918      fi
11919
11920else
11921
11922      vim_cv_tty_group=world
11923      { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5
11924$as_echo "can't determine - assume ptys are world accessible" >&6; }
11925
11926fi
11927rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11928  conftest.$ac_objext conftest.beam conftest.$ac_ext
11929fi
11930
11931
11932fi
11933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5
11934$as_echo "$vim_cv_tty_group" >&6; }
11935rm -f conftest_grp
11936
11937if test "x$vim_cv_tty_group" != "xworld" ; then
11938  cat >>confdefs.h <<_ACEOF
11939#define PTYGROUP $vim_cv_tty_group
11940_ACEOF
11941
11942  if test "x$vim_cv_tty_mode" = "x" ; then
11943    as_fn_error $? "It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (probably 0620)" "$LINENO" 5
11944  else
11945    $as_echo "#define PTYMODE 0620" >>confdefs.h
11946
11947  fi
11948fi
11949
11950
11951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11952$as_echo_n "checking return type of signal handlers... " >&6; }
11953if ${ac_cv_type_signal+:} false; then :
11954  $as_echo_n "(cached) " >&6
11955else
11956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957/* end confdefs.h.  */
11958#include <sys/types.h>
11959#include <signal.h>
11960
11961int
11962main ()
11963{
11964return *(signal (0, 0)) (0) == 1;
11965  ;
11966  return 0;
11967}
11968_ACEOF
11969if ac_fn_c_try_compile "$LINENO"; then :
11970  ac_cv_type_signal=int
11971else
11972  ac_cv_type_signal=void
11973fi
11974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11975fi
11976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11977$as_echo "$ac_cv_type_signal" >&6; }
11978
11979cat >>confdefs.h <<_ACEOF
11980#define RETSIGTYPE $ac_cv_type_signal
11981_ACEOF
11982
11983
11984
11985if test $ac_cv_type_signal = void; then
11986  $as_echo "#define SIGRETURN return" >>confdefs.h
11987
11988else
11989  $as_echo "#define SIGRETURN return 0" >>confdefs.h
11990
11991fi
11992
11993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5
11994$as_echo_n "checking for struct sigcontext... " >&6; }
11995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996/* end confdefs.h.  */
11997
11998#include <signal.h>
11999test_sig()
12000{
12001    struct sigcontext *scont;
12002    scont = (struct sigcontext *)0;
12003    return 1;
12004}
12005int
12006main ()
12007{
12008
12009  ;
12010  return 0;
12011}
12012_ACEOF
12013if ac_fn_c_try_compile "$LINENO"; then :
12014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12015$as_echo "yes" >&6; }
12016		$as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h
12017
12018else
12019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020$as_echo "no" >&6; }
12021fi
12022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12023
12024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5
12025$as_echo_n "checking getcwd implementation is broken... " >&6; }
12026if ${vim_cv_getcwd_broken+:} false; then :
12027  $as_echo_n "(cached) " >&6
12028else
12029
12030    if test "$cross_compiling" = yes; then :
12031
12032      as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5
12033
12034else
12035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036/* end confdefs.h.  */
12037
12038#include "confdefs.h"
12039#ifdef HAVE_UNISTD_H
12040#include <unistd.h>
12041#endif
12042char *dagger[] = { "IFS=pwd", 0 };
12043main()
12044{
12045  char buffer[500];
12046  extern char **environ;
12047  environ = dagger;
12048  return getcwd(buffer, 500) ? 0 : 1;
12049}
12050
12051_ACEOF
12052if ac_fn_c_try_run "$LINENO"; then :
12053
12054      vim_cv_getcwd_broken=no
12055
12056else
12057
12058      vim_cv_getcwd_broken=yes
12059
12060fi
12061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12062  conftest.$ac_objext conftest.beam conftest.$ac_ext
12063fi
12064
12065
12066fi
12067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5
12068$as_echo "$vim_cv_getcwd_broken" >&6; }
12069
12070if test "x$vim_cv_getcwd_broken" = "xyes" ; then
12071  $as_echo "#define BAD_GETCWD 1" >>confdefs.h
12072
12073fi
12074
12075for ac_func in fchdir fchown fsync getcwd getpseudotty \
12076	getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat \
12077	memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
12078	getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12079	sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \
12080	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12081	usleep utime utimes mblen
12082do :
12083  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12084ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12085if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12086  cat >>confdefs.h <<_ACEOF
12087#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12088_ACEOF
12089
12090fi
12091done
12092
12093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12094$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12095if ${ac_cv_sys_largefile_source+:} false; then :
12096  $as_echo_n "(cached) " >&6
12097else
12098  while :; do
12099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100/* end confdefs.h.  */
12101#include <sys/types.h> /* for off_t */
12102     #include <stdio.h>
12103int
12104main ()
12105{
12106int (*fp) (FILE *, off_t, int) = fseeko;
12107     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12108  ;
12109  return 0;
12110}
12111_ACEOF
12112if ac_fn_c_try_link "$LINENO"; then :
12113  ac_cv_sys_largefile_source=no; break
12114fi
12115rm -f core conftest.err conftest.$ac_objext \
12116    conftest$ac_exeext conftest.$ac_ext
12117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118/* end confdefs.h.  */
12119#define _LARGEFILE_SOURCE 1
12120#include <sys/types.h> /* for off_t */
12121     #include <stdio.h>
12122int
12123main ()
12124{
12125int (*fp) (FILE *, off_t, int) = fseeko;
12126     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12127  ;
12128  return 0;
12129}
12130_ACEOF
12131if ac_fn_c_try_link "$LINENO"; then :
12132  ac_cv_sys_largefile_source=1; break
12133fi
12134rm -f core conftest.err conftest.$ac_objext \
12135    conftest$ac_exeext conftest.$ac_ext
12136  ac_cv_sys_largefile_source=unknown
12137  break
12138done
12139fi
12140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12141$as_echo "$ac_cv_sys_largefile_source" >&6; }
12142case $ac_cv_sys_largefile_source in #(
12143  no | unknown) ;;
12144  *)
12145cat >>confdefs.h <<_ACEOF
12146#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12147_ACEOF
12148;;
12149esac
12150rm -rf conftest*
12151
12152# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12153# in glibc 2.1.3, but that breaks too many other things.
12154# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12155if test $ac_cv_sys_largefile_source != unknown; then
12156
12157$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12158
12159fi
12160
12161
12162# Check whether --enable-largefile was given.
12163if test "${enable_largefile+set}" = set; then :
12164  enableval=$enable_largefile;
12165fi
12166
12167if test "$enable_largefile" != no; then
12168
12169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12170$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12171if ${ac_cv_sys_largefile_CC+:} false; then :
12172  $as_echo_n "(cached) " >&6
12173else
12174  ac_cv_sys_largefile_CC=no
12175     if test "$GCC" != yes; then
12176       ac_save_CC=$CC
12177       while :; do
12178	 # IRIX 6.2 and later do not support large files by default,
12179	 # so use the C compiler's -n32 option if that helps.
12180	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181/* end confdefs.h.  */
12182#include <sys/types.h>
12183 /* Check that off_t can represent 2**63 - 1 correctly.
12184    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12185    since some C++ compilers masquerading as C compilers
12186    incorrectly reject 9223372036854775807.  */
12187#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12188  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12189		       && LARGE_OFF_T % 2147483647 == 1)
12190		      ? 1 : -1];
12191int
12192main ()
12193{
12194
12195  ;
12196  return 0;
12197}
12198_ACEOF
12199	 if ac_fn_c_try_compile "$LINENO"; then :
12200  break
12201fi
12202rm -f core conftest.err conftest.$ac_objext
12203	 CC="$CC -n32"
12204	 if ac_fn_c_try_compile "$LINENO"; then :
12205  ac_cv_sys_largefile_CC=' -n32'; break
12206fi
12207rm -f core conftest.err conftest.$ac_objext
12208	 break
12209       done
12210       CC=$ac_save_CC
12211       rm -f conftest.$ac_ext
12212    fi
12213fi
12214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12215$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12216  if test "$ac_cv_sys_largefile_CC" != no; then
12217    CC=$CC$ac_cv_sys_largefile_CC
12218  fi
12219
12220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12221$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12222if ${ac_cv_sys_file_offset_bits+:} false; then :
12223  $as_echo_n "(cached) " >&6
12224else
12225  while :; do
12226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12227/* end confdefs.h.  */
12228#include <sys/types.h>
12229 /* Check that off_t can represent 2**63 - 1 correctly.
12230    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12231    since some C++ compilers masquerading as C compilers
12232    incorrectly reject 9223372036854775807.  */
12233#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12234  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12235		       && LARGE_OFF_T % 2147483647 == 1)
12236		      ? 1 : -1];
12237int
12238main ()
12239{
12240
12241  ;
12242  return 0;
12243}
12244_ACEOF
12245if ac_fn_c_try_compile "$LINENO"; then :
12246  ac_cv_sys_file_offset_bits=no; break
12247fi
12248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250/* end confdefs.h.  */
12251#define _FILE_OFFSET_BITS 64
12252#include <sys/types.h>
12253 /* Check that off_t can represent 2**63 - 1 correctly.
12254    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12255    since some C++ compilers masquerading as C compilers
12256    incorrectly reject 9223372036854775807.  */
12257#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12258  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12259		       && LARGE_OFF_T % 2147483647 == 1)
12260		      ? 1 : -1];
12261int
12262main ()
12263{
12264
12265  ;
12266  return 0;
12267}
12268_ACEOF
12269if ac_fn_c_try_compile "$LINENO"; then :
12270  ac_cv_sys_file_offset_bits=64; break
12271fi
12272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12273  ac_cv_sys_file_offset_bits=unknown
12274  break
12275done
12276fi
12277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12278$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12279case $ac_cv_sys_file_offset_bits in #(
12280  no | unknown) ;;
12281  *)
12282cat >>confdefs.h <<_ACEOF
12283#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12284_ACEOF
12285;;
12286esac
12287rm -rf conftest*
12288  if test $ac_cv_sys_file_offset_bits = unknown; then
12289    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12290$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12291if ${ac_cv_sys_large_files+:} false; then :
12292  $as_echo_n "(cached) " >&6
12293else
12294  while :; do
12295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296/* end confdefs.h.  */
12297#include <sys/types.h>
12298 /* Check that off_t can represent 2**63 - 1 correctly.
12299    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12300    since some C++ compilers masquerading as C compilers
12301    incorrectly reject 9223372036854775807.  */
12302#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12303  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12304		       && LARGE_OFF_T % 2147483647 == 1)
12305		      ? 1 : -1];
12306int
12307main ()
12308{
12309
12310  ;
12311  return 0;
12312}
12313_ACEOF
12314if ac_fn_c_try_compile "$LINENO"; then :
12315  ac_cv_sys_large_files=no; break
12316fi
12317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319/* end confdefs.h.  */
12320#define _LARGE_FILES 1
12321#include <sys/types.h>
12322 /* Check that off_t can represent 2**63 - 1 correctly.
12323    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12324    since some C++ compilers masquerading as C compilers
12325    incorrectly reject 9223372036854775807.  */
12326#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12327  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12328		       && LARGE_OFF_T % 2147483647 == 1)
12329		      ? 1 : -1];
12330int
12331main ()
12332{
12333
12334  ;
12335  return 0;
12336}
12337_ACEOF
12338if ac_fn_c_try_compile "$LINENO"; then :
12339  ac_cv_sys_large_files=1; break
12340fi
12341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342  ac_cv_sys_large_files=unknown
12343  break
12344done
12345fi
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12347$as_echo "$ac_cv_sys_large_files" >&6; }
12348case $ac_cv_sys_large_files in #(
12349  no | unknown) ;;
12350  *)
12351cat >>confdefs.h <<_ACEOF
12352#define _LARGE_FILES $ac_cv_sys_large_files
12353_ACEOF
12354;;
12355esac
12356rm -rf conftest*
12357  fi
12358
12359
12360fi
12361
12362
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5
12364$as_echo_n "checking for st_blksize... " >&6; }
12365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366/* end confdefs.h.  */
12367#include <sys/types.h>
12368#include <sys/stat.h>
12369int
12370main ()
12371{
12372	struct stat st;
12373	int n;
12374
12375	stat("/", &st);
12376	n = (int)st.st_blksize;
12377  ;
12378  return 0;
12379}
12380_ACEOF
12381if ac_fn_c_try_compile "$LINENO"; then :
12382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12383$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
12384
12385else
12386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387$as_echo "no" >&6; }
12388fi
12389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12390
12391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5
12392$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
12393if ${vim_cv_stat_ignores_slash+:} false; then :
12394  $as_echo_n "(cached) " >&6
12395else
12396
12397    if test "$cross_compiling" = yes; then :
12398
12399      as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5
12400
12401else
12402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403/* end confdefs.h.  */
12404
12405#include "confdefs.h"
12406#if STDC_HEADERS
12407# include <stdlib.h>
12408# include <stddef.h>
12409#endif
12410#include <sys/types.h>
12411#include <sys/stat.h>
12412main() {struct stat st;  exit(stat("configure/", &st) != 0); }
12413
12414_ACEOF
12415if ac_fn_c_try_run "$LINENO"; then :
12416
12417      vim_cv_stat_ignores_slash=yes
12418
12419else
12420
12421      vim_cv_stat_ignores_slash=no
12422
12423fi
12424rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12425  conftest.$ac_objext conftest.beam conftest.$ac_ext
12426fi
12427
12428
12429fi
12430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5
12431$as_echo "$vim_cv_stat_ignores_slash" >&6; }
12432
12433if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
12434  $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h
12435
12436fi
12437
12438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5
12439$as_echo_n "checking for iconv_open()... " >&6; }
12440save_LIBS="$LIBS"
12441LIBS="$LIBS -liconv"
12442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12443/* end confdefs.h.  */
12444
12445#ifdef HAVE_ICONV_H
12446# include <iconv.h>
12447#endif
12448
12449int
12450main ()
12451{
12452iconv_open("fr", "to");
12453  ;
12454  return 0;
12455}
12456_ACEOF
12457if ac_fn_c_try_link "$LINENO"; then :
12458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5
12459$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12460
12461else
12462  LIBS="$save_LIBS"
12463    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464/* end confdefs.h.  */
12465
12466#ifdef HAVE_ICONV_H
12467# include <iconv.h>
12468#endif
12469
12470int
12471main ()
12472{
12473iconv_open("fr", "to");
12474  ;
12475  return 0;
12476}
12477_ACEOF
12478if ac_fn_c_try_link "$LINENO"; then :
12479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12480$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12481
12482else
12483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484$as_echo "no" >&6; }
12485fi
12486rm -f core conftest.err conftest.$ac_objext \
12487    conftest$ac_exeext conftest.$ac_ext
12488fi
12489rm -f core conftest.err conftest.$ac_objext \
12490    conftest$ac_exeext conftest.$ac_ext
12491
12492
12493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
12494$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
12495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496/* end confdefs.h.  */
12497
12498#ifdef HAVE_LANGINFO_H
12499# include <langinfo.h>
12500#endif
12501
12502int
12503main ()
12504{
12505char *cs = nl_langinfo(CODESET);
12506  ;
12507  return 0;
12508}
12509_ACEOF
12510if ac_fn_c_try_link "$LINENO"; then :
12511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12512$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
12513
12514else
12515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516$as_echo "no" >&6; }
12517fi
12518rm -f core conftest.err conftest.$ac_objext \
12519    conftest$ac_exeext conftest.$ac_ext
12520
12521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5
12522$as_echo_n "checking for strtod in -lm... " >&6; }
12523if ${ac_cv_lib_m_strtod+:} false; then :
12524  $as_echo_n "(cached) " >&6
12525else
12526  ac_check_lib_save_LIBS=$LIBS
12527LIBS="-lm  $LIBS"
12528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529/* end confdefs.h.  */
12530
12531/* Override any GCC internal prototype to avoid an error.
12532   Use char because int might match the return type of a GCC
12533   builtin and then its argument prototype would still apply.  */
12534#ifdef __cplusplus
12535extern "C"
12536#endif
12537char strtod ();
12538int
12539main ()
12540{
12541return strtod ();
12542  ;
12543  return 0;
12544}
12545_ACEOF
12546if ac_fn_c_try_link "$LINENO"; then :
12547  ac_cv_lib_m_strtod=yes
12548else
12549  ac_cv_lib_m_strtod=no
12550fi
12551rm -f core conftest.err conftest.$ac_objext \
12552    conftest$ac_exeext conftest.$ac_ext
12553LIBS=$ac_check_lib_save_LIBS
12554fi
12555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5
12556$as_echo "$ac_cv_lib_m_strtod" >&6; }
12557if test "x$ac_cv_lib_m_strtod" = xyes; then :
12558  cat >>confdefs.h <<_ACEOF
12559#define HAVE_LIBM 1
12560_ACEOF
12561
12562  LIBS="-lm $LIBS"
12563
12564fi
12565
12566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5
12567$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
12568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569/* end confdefs.h.  */
12570
12571#ifdef HAVE_MATH_H
12572# include <math.h>
12573#endif
12574#if STDC_HEADERS
12575# include <stdlib.h>
12576# include <stddef.h>
12577#endif
12578
12579int
12580main ()
12581{
12582char *s; double d;
12583    d = strtod("1.1", &s);
12584    d = fabs(1.11);
12585    d = ceil(1.11);
12586    d = floor(1.11);
12587    d = log10(1.11);
12588    d = pow(1.11, 2.22);
12589    d = sqrt(1.11);
12590    d = sin(1.11);
12591    d = cos(1.11);
12592    d = atan(1.11);
12593
12594  ;
12595  return 0;
12596}
12597_ACEOF
12598if ac_fn_c_try_link "$LINENO"; then :
12599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12600$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h
12601
12602else
12603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604$as_echo "no" >&6; }
12605fi
12606rm -f core conftest.err conftest.$ac_objext \
12607    conftest$ac_exeext conftest.$ac_ext
12608
12609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5
12610$as_echo_n "checking for isinf()... " >&6; }
12611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612/* end confdefs.h.  */
12613
12614#ifdef HAVE_MATH_H
12615# include <math.h>
12616#endif
12617#if STDC_HEADERS
12618# include <stdlib.h>
12619# include <stddef.h>
12620#endif
12621
12622int
12623main ()
12624{
12625int r = isinf(1.11);
12626  ;
12627  return 0;
12628}
12629_ACEOF
12630if ac_fn_c_try_link "$LINENO"; then :
12631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12632$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h
12633
12634else
12635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636$as_echo "no" >&6; }
12637fi
12638rm -f core conftest.err conftest.$ac_objext \
12639    conftest$ac_exeext conftest.$ac_ext
12640
12641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5
12642$as_echo_n "checking for isnan()... " >&6; }
12643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644/* end confdefs.h.  */
12645
12646#ifdef HAVE_MATH_H
12647# include <math.h>
12648#endif
12649#if STDC_HEADERS
12650# include <stdlib.h>
12651# include <stddef.h>
12652#endif
12653
12654int
12655main ()
12656{
12657int r = isnan(1.11);
12658  ;
12659  return 0;
12660}
12661_ACEOF
12662if ac_fn_c_try_link "$LINENO"; then :
12663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12664$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
12665
12666else
12667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668$as_echo "no" >&6; }
12669fi
12670rm -f core conftest.err conftest.$ac_objext \
12671    conftest$ac_exeext conftest.$ac_ext
12672
12673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5
12674$as_echo_n "checking --disable-acl argument... " >&6; }
12675# Check whether --enable-acl was given.
12676if test "${enable_acl+set}" = set; then :
12677  enableval=$enable_acl;
12678else
12679  enable_acl="yes"
12680fi
12681
12682if test "$enable_acl" = "yes"; then
12683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12684$as_echo "no" >&6; }
12685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5
12686$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
12687if ${ac_cv_lib_posix1e_acl_get_file+:} false; then :
12688  $as_echo_n "(cached) " >&6
12689else
12690  ac_check_lib_save_LIBS=$LIBS
12691LIBS="-lposix1e  $LIBS"
12692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693/* end confdefs.h.  */
12694
12695/* Override any GCC internal prototype to avoid an error.
12696   Use char because int might match the return type of a GCC
12697   builtin and then its argument prototype would still apply.  */
12698#ifdef __cplusplus
12699extern "C"
12700#endif
12701char acl_get_file ();
12702int
12703main ()
12704{
12705return acl_get_file ();
12706  ;
12707  return 0;
12708}
12709_ACEOF
12710if ac_fn_c_try_link "$LINENO"; then :
12711  ac_cv_lib_posix1e_acl_get_file=yes
12712else
12713  ac_cv_lib_posix1e_acl_get_file=no
12714fi
12715rm -f core conftest.err conftest.$ac_objext \
12716    conftest$ac_exeext conftest.$ac_ext
12717LIBS=$ac_check_lib_save_LIBS
12718fi
12719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5
12720$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
12721if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then :
12722  LIBS="$LIBS -lposix1e"
12723else
12724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
12725$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
12726if ${ac_cv_lib_acl_acl_get_file+:} false; then :
12727  $as_echo_n "(cached) " >&6
12728else
12729  ac_check_lib_save_LIBS=$LIBS
12730LIBS="-lacl  $LIBS"
12731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732/* end confdefs.h.  */
12733
12734/* Override any GCC internal prototype to avoid an error.
12735   Use char because int might match the return type of a GCC
12736   builtin and then its argument prototype would still apply.  */
12737#ifdef __cplusplus
12738extern "C"
12739#endif
12740char acl_get_file ();
12741int
12742main ()
12743{
12744return acl_get_file ();
12745  ;
12746  return 0;
12747}
12748_ACEOF
12749if ac_fn_c_try_link "$LINENO"; then :
12750  ac_cv_lib_acl_acl_get_file=yes
12751else
12752  ac_cv_lib_acl_acl_get_file=no
12753fi
12754rm -f core conftest.err conftest.$ac_objext \
12755    conftest$ac_exeext conftest.$ac_ext
12756LIBS=$ac_check_lib_save_LIBS
12757fi
12758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
12759$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
12760if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
12761  LIBS="$LIBS -lacl"
12762		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5
12763$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
12764if ${ac_cv_lib_attr_fgetxattr+:} false; then :
12765  $as_echo_n "(cached) " >&6
12766else
12767  ac_check_lib_save_LIBS=$LIBS
12768LIBS="-lattr  $LIBS"
12769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770/* end confdefs.h.  */
12771
12772/* Override any GCC internal prototype to avoid an error.
12773   Use char because int might match the return type of a GCC
12774   builtin and then its argument prototype would still apply.  */
12775#ifdef __cplusplus
12776extern "C"
12777#endif
12778char fgetxattr ();
12779int
12780main ()
12781{
12782return fgetxattr ();
12783  ;
12784  return 0;
12785}
12786_ACEOF
12787if ac_fn_c_try_link "$LINENO"; then :
12788  ac_cv_lib_attr_fgetxattr=yes
12789else
12790  ac_cv_lib_attr_fgetxattr=no
12791fi
12792rm -f core conftest.err conftest.$ac_objext \
12793    conftest$ac_exeext conftest.$ac_ext
12794LIBS=$ac_check_lib_save_LIBS
12795fi
12796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5
12797$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
12798if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then :
12799  LIBS="$LIBS -lattr"
12800fi
12801
12802fi
12803
12804fi
12805
12806
12807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
12808$as_echo_n "checking for POSIX ACL support... " >&6; }
12809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810/* end confdefs.h.  */
12811
12812#include <sys/types.h>
12813#ifdef HAVE_SYS_ACL_H
12814# include <sys/acl.h>
12815#endif
12816acl_t acl;
12817int
12818main ()
12819{
12820acl = acl_get_file("foo", ACL_TYPE_ACCESS);
12821	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
12822	acl_free(acl);
12823  ;
12824  return 0;
12825}
12826_ACEOF
12827if ac_fn_c_try_link "$LINENO"; then :
12828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12829$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
12830
12831else
12832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833$as_echo "no" >&6; }
12834fi
12835rm -f core conftest.err conftest.$ac_objext \
12836    conftest$ac_exeext conftest.$ac_ext
12837
12838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5
12839$as_echo_n "checking for acl_get in -lsec... " >&6; }
12840if ${ac_cv_lib_sec_acl_get+:} false; then :
12841  $as_echo_n "(cached) " >&6
12842else
12843  ac_check_lib_save_LIBS=$LIBS
12844LIBS="-lsec  $LIBS"
12845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846/* end confdefs.h.  */
12847
12848/* Override any GCC internal prototype to avoid an error.
12849   Use char because int might match the return type of a GCC
12850   builtin and then its argument prototype would still apply.  */
12851#ifdef __cplusplus
12852extern "C"
12853#endif
12854char acl_get ();
12855int
12856main ()
12857{
12858return acl_get ();
12859  ;
12860  return 0;
12861}
12862_ACEOF
12863if ac_fn_c_try_link "$LINENO"; then :
12864  ac_cv_lib_sec_acl_get=yes
12865else
12866  ac_cv_lib_sec_acl_get=no
12867fi
12868rm -f core conftest.err conftest.$ac_objext \
12869    conftest$ac_exeext conftest.$ac_ext
12870LIBS=$ac_check_lib_save_LIBS
12871fi
12872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5
12873$as_echo "$ac_cv_lib_sec_acl_get" >&6; }
12874if test "x$ac_cv_lib_sec_acl_get" = xyes; then :
12875  LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h
12876
12877else
12878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5
12879$as_echo_n "checking for Solaris ACL support... " >&6; }
12880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881/* end confdefs.h.  */
12882
12883#ifdef HAVE_SYS_ACL_H
12884# include <sys/acl.h>
12885#endif
12886int
12887main ()
12888{
12889acl("foo", GETACLCNT, 0, NULL);
12890
12891  ;
12892  return 0;
12893}
12894_ACEOF
12895if ac_fn_c_try_link "$LINENO"; then :
12896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12897$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h
12898
12899else
12900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12901$as_echo "no" >&6; }
12902fi
12903rm -f core conftest.err conftest.$ac_objext \
12904    conftest$ac_exeext conftest.$ac_ext
12905fi
12906
12907
12908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5
12909$as_echo_n "checking for AIX ACL support... " >&6; }
12910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911/* end confdefs.h.  */
12912
12913#if STDC_HEADERS
12914# include <stdlib.h>
12915# include <stddef.h>
12916#endif
12917#ifdef HAVE_SYS_ACL_H
12918# include <sys/acl.h>
12919#endif
12920#ifdef HAVE_SYS_ACCESS_H
12921# include <sys/access.h>
12922#endif
12923#define _ALL_SOURCE
12924
12925#include <sys/stat.h>
12926
12927int aclsize;
12928struct acl *aclent;
12929int
12930main ()
12931{
12932aclsize = sizeof(struct acl);
12933	aclent = (void *)malloc(aclsize);
12934	statacl("foo", STX_NORMAL, aclent, aclsize);
12935
12936  ;
12937  return 0;
12938}
12939_ACEOF
12940if ac_fn_c_try_link "$LINENO"; then :
12941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12942$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h
12943
12944else
12945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946$as_echo "no" >&6; }
12947fi
12948rm -f core conftest.err conftest.$ac_objext \
12949    conftest$ac_exeext conftest.$ac_ext
12950else
12951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12952$as_echo "yes" >&6; }
12953fi
12954
12955if test "x$GTK_CFLAGS" != "x"; then
12956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5
12957$as_echo_n "checking for pango_shape_full... " >&6; }
12958  ac_save_CFLAGS="$CFLAGS"
12959  ac_save_LIBS="$LIBS"
12960  CFLAGS="$CFLAGS $GTK_CFLAGS"
12961  LIBS="$LIBS $GTK_LIBS"
12962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963/* end confdefs.h.  */
12964#include <gtk/gtk.h>
12965int
12966main ()
12967{
12968 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL);
12969  ;
12970  return 0;
12971}
12972_ACEOF
12973if ac_fn_c_try_link "$LINENO"; then :
12974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12975$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h
12976
12977else
12978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979$as_echo "no" >&6; }
12980fi
12981rm -f core conftest.err conftest.$ac_objext \
12982    conftest$ac_exeext conftest.$ac_ext
12983  CFLAGS="$ac_save_CFLAGS"
12984  LIBS="$ac_save_LIBS"
12985fi
12986
12987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5
12988$as_echo_n "checking --disable-gpm argument... " >&6; }
12989# Check whether --enable-gpm was given.
12990if test "${enable_gpm+set}" = set; then :
12991  enableval=$enable_gpm;
12992else
12993  enable_gpm="yes"
12994fi
12995
12996
12997if test "$enable_gpm" = "yes"; then
12998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999$as_echo "no" >&6; }
13000    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5
13001$as_echo_n "checking for gpm... " >&6; }
13002if ${vi_cv_have_gpm+:} false; then :
13003  $as_echo_n "(cached) " >&6
13004else
13005  olibs="$LIBS" ; LIBS="-lgpm"
13006	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007/* end confdefs.h.  */
13008#include <gpm.h>
13009	    #include <linux/keyboard.h>
13010int
13011main ()
13012{
13013Gpm_GetLibVersion(NULL);
13014  ;
13015  return 0;
13016}
13017_ACEOF
13018if ac_fn_c_try_link "$LINENO"; then :
13019  	    	    vi_cv_have_gpm=yes
13020else
13021  vi_cv_have_gpm=no
13022fi
13023rm -f core conftest.err conftest.$ac_objext \
13024    conftest$ac_exeext conftest.$ac_ext
13025	LIBS="$olibs"
13026
13027fi
13028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5
13029$as_echo "$vi_cv_have_gpm" >&6; }
13030  if test $vi_cv_have_gpm = yes; then
13031    LIBS="$LIBS -lgpm"
13032    $as_echo "#define HAVE_GPM 1" >>confdefs.h
13033
13034  fi
13035else
13036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13037$as_echo "yes" >&6; }
13038fi
13039
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5
13041$as_echo_n "checking --disable-sysmouse argument... " >&6; }
13042# Check whether --enable-sysmouse was given.
13043if test "${enable_sysmouse+set}" = set; then :
13044  enableval=$enable_sysmouse;
13045else
13046  enable_sysmouse="yes"
13047fi
13048
13049
13050if test "$enable_sysmouse" = "yes"; then
13051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052$as_echo "no" >&6; }
13053        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5
13054$as_echo_n "checking for sysmouse... " >&6; }
13055if ${vi_cv_have_sysmouse+:} false; then :
13056  $as_echo_n "(cached) " >&6
13057else
13058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059/* end confdefs.h.  */
13060#include <sys/consio.h>
13061	     #include <signal.h>
13062	     #include <sys/fbio.h>
13063int
13064main ()
13065{
13066struct mouse_info   mouse;
13067	     mouse.operation = MOUSE_MODE;
13068	     mouse.operation = MOUSE_SHOW;
13069	     mouse.u.mode.mode = 0;
13070	     mouse.u.mode.signal = SIGUSR2;
13071  ;
13072  return 0;
13073}
13074_ACEOF
13075if ac_fn_c_try_link "$LINENO"; then :
13076  vi_cv_have_sysmouse=yes
13077else
13078  vi_cv_have_sysmouse=no
13079fi
13080rm -f core conftest.err conftest.$ac_objext \
13081    conftest$ac_exeext conftest.$ac_ext
13082
13083fi
13084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5
13085$as_echo "$vi_cv_have_sysmouse" >&6; }
13086  if test $vi_cv_have_sysmouse = yes; then
13087    $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h
13088
13089  fi
13090else
13091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13092$as_echo "yes" >&6; }
13093fi
13094
13095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5
13096$as_echo_n "checking for FD_CLOEXEC... " >&6; }
13097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098/* end confdefs.h.  */
13099#if HAVE_FCNTL_H
13100# include <fcntl.h>
13101#endif
13102int
13103main ()
13104{
13105	int flag = FD_CLOEXEC;
13106  ;
13107  return 0;
13108}
13109_ACEOF
13110if ac_fn_c_try_compile "$LINENO"; then :
13111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13112$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h
13113
13114else
13115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13116$as_echo "not usable" >&6; }
13117fi
13118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13119
13120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5
13121$as_echo_n "checking for rename... " >&6; }
13122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123/* end confdefs.h.  */
13124#include <stdio.h>
13125int
13126main ()
13127{
13128rename("this", "that")
13129  ;
13130  return 0;
13131}
13132_ACEOF
13133if ac_fn_c_try_link "$LINENO"; then :
13134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13135$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h
13136
13137else
13138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13139$as_echo "no" >&6; }
13140fi
13141rm -f core conftest.err conftest.$ac_objext \
13142    conftest$ac_exeext conftest.$ac_ext
13143
13144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
13145$as_echo_n "checking for sysctl... " >&6; }
13146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147/* end confdefs.h.  */
13148#include <sys/types.h>
13149#include <sys/sysctl.h>
13150int
13151main ()
13152{
13153	int mib[2], r;
13154	size_t len;
13155
13156	mib[0] = CTL_HW;
13157	mib[1] = HW_USERMEM;
13158	len = sizeof(r);
13159	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13160
13161  ;
13162  return 0;
13163}
13164_ACEOF
13165if ac_fn_c_try_compile "$LINENO"; then :
13166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13167$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h
13168
13169else
13170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13171$as_echo "not usable" >&6; }
13172fi
13173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13174
13175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
13176$as_echo_n "checking for sysinfo... " >&6; }
13177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178/* end confdefs.h.  */
13179#include <sys/types.h>
13180#include <sys/sysinfo.h>
13181int
13182main ()
13183{
13184	struct sysinfo sinfo;
13185	int t;
13186
13187	(void)sysinfo(&sinfo);
13188	t = sinfo.totalram;
13189
13190  ;
13191  return 0;
13192}
13193_ACEOF
13194if ac_fn_c_try_compile "$LINENO"; then :
13195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13196$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
13197
13198else
13199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13200$as_echo "not usable" >&6; }
13201fi
13202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13203
13204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5
13205$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
13206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207/* end confdefs.h.  */
13208#include <sys/types.h>
13209#include <sys/sysinfo.h>
13210int
13211main ()
13212{
13213	struct sysinfo sinfo;
13214	sinfo.mem_unit = 1;
13215
13216  ;
13217  return 0;
13218}
13219_ACEOF
13220if ac_fn_c_try_compile "$LINENO"; then :
13221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13222$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h
13223
13224else
13225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226$as_echo "no" >&6; }
13227fi
13228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13229
13230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
13231$as_echo_n "checking for sysconf... " >&6; }
13232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233/* end confdefs.h.  */
13234#include <unistd.h>
13235int
13236main ()
13237{
13238	(void)sysconf(_SC_PAGESIZE);
13239	(void)sysconf(_SC_PHYS_PAGES);
13240
13241  ;
13242  return 0;
13243}
13244_ACEOF
13245if ac_fn_c_try_compile "$LINENO"; then :
13246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13247$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
13248
13249else
13250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13251$as_echo "not usable" >&6; }
13252fi
13253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13254
13255# The cast to long int works around a bug in the HP C Compiler
13256# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13257# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13258# This bug is HP SR number 8606223364.
13259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13260$as_echo_n "checking size of int... " >&6; }
13261if ${ac_cv_sizeof_int+:} false; then :
13262  $as_echo_n "(cached) " >&6
13263else
13264  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13265
13266else
13267  if test "$ac_cv_type_int" = yes; then
13268     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13270as_fn_error 77 "cannot compute sizeof (int)
13271See \`config.log' for more details" "$LINENO" 5; }
13272   else
13273     ac_cv_sizeof_int=0
13274   fi
13275fi
13276
13277fi
13278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13279$as_echo "$ac_cv_sizeof_int" >&6; }
13280
13281
13282
13283cat >>confdefs.h <<_ACEOF
13284#define SIZEOF_INT $ac_cv_sizeof_int
13285_ACEOF
13286
13287
13288# The cast to long int works around a bug in the HP C Compiler
13289# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13290# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13291# This bug is HP SR number 8606223364.
13292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13293$as_echo_n "checking size of long... " >&6; }
13294if ${ac_cv_sizeof_long+:} false; then :
13295  $as_echo_n "(cached) " >&6
13296else
13297  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13298
13299else
13300  if test "$ac_cv_type_long" = yes; then
13301     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13303as_fn_error 77 "cannot compute sizeof (long)
13304See \`config.log' for more details" "$LINENO" 5; }
13305   else
13306     ac_cv_sizeof_long=0
13307   fi
13308fi
13309
13310fi
13311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13312$as_echo "$ac_cv_sizeof_long" >&6; }
13313
13314
13315
13316cat >>confdefs.h <<_ACEOF
13317#define SIZEOF_LONG $ac_cv_sizeof_long
13318_ACEOF
13319
13320
13321# The cast to long int works around a bug in the HP C Compiler
13322# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13323# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13324# This bug is HP SR number 8606223364.
13325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
13326$as_echo_n "checking size of time_t... " >&6; }
13327if ${ac_cv_sizeof_time_t+:} false; then :
13328  $as_echo_n "(cached) " >&6
13329else
13330  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
13331
13332else
13333  if test "$ac_cv_type_time_t" = yes; then
13334     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13336as_fn_error 77 "cannot compute sizeof (time_t)
13337See \`config.log' for more details" "$LINENO" 5; }
13338   else
13339     ac_cv_sizeof_time_t=0
13340   fi
13341fi
13342
13343fi
13344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
13345$as_echo "$ac_cv_sizeof_time_t" >&6; }
13346
13347
13348
13349cat >>confdefs.h <<_ACEOF
13350#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13351_ACEOF
13352
13353
13354# The cast to long int works around a bug in the HP C Compiler
13355# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13356# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13357# This bug is HP SR number 8606223364.
13358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
13359$as_echo_n "checking size of off_t... " >&6; }
13360if ${ac_cv_sizeof_off_t+:} false; then :
13361  $as_echo_n "(cached) " >&6
13362else
13363  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
13364
13365else
13366  if test "$ac_cv_type_off_t" = yes; then
13367     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13369as_fn_error 77 "cannot compute sizeof (off_t)
13370See \`config.log' for more details" "$LINENO" 5; }
13371   else
13372     ac_cv_sizeof_off_t=0
13373   fi
13374fi
13375
13376fi
13377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
13378$as_echo "$ac_cv_sizeof_off_t" >&6; }
13379
13380
13381
13382cat >>confdefs.h <<_ACEOF
13383#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13384_ACEOF
13385
13386
13387
13388cat >>confdefs.h <<_ACEOF
13389#define VIM_SIZEOF_INT $ac_cv_sizeof_int
13390_ACEOF
13391
13392cat >>confdefs.h <<_ACEOF
13393#define VIM_SIZEOF_LONG $ac_cv_sizeof_long
13394_ACEOF
13395
13396
13397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
13398$as_echo_n "checking uint32_t is 32 bits... " >&6; }
13399if test "$cross_compiling" = yes; then :
13400  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5
13401$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;}
13402else
13403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13404/* end confdefs.h.  */
13405
13406#ifdef HAVE_STDINT_H
13407# include <stdint.h>
13408#endif
13409#ifdef HAVE_INTTYPES_H
13410# include <inttypes.h>
13411#endif
13412main() {
13413  uint32_t nr1 = (uint32_t)-1;
13414  uint32_t nr2 = (uint32_t)0xffffffffUL;
13415  if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
13416  exit(0);
13417}
13418_ACEOF
13419if ac_fn_c_try_run "$LINENO"; then :
13420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13421$as_echo "ok" >&6; }
13422else
13423  as_fn_error $? "WRONG!  uint32_t not defined correctly." "$LINENO" 5
13424fi
13425rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13426  conftest.$ac_objext conftest.beam conftest.$ac_ext
13427fi
13428
13429
13430
13431bcopy_test_prog='
13432#include "confdefs.h"
13433#ifdef HAVE_STRING_H
13434# include <string.h>
13435#endif
13436#if STDC_HEADERS
13437# include <stdlib.h>
13438# include <stddef.h>
13439#endif
13440main() {
13441  char buf[10];
13442  strcpy(buf, "abcdefghi");
13443  mch_memmove(buf, buf + 2, 3);
13444  if (strncmp(buf, "ababcf", 6))
13445    exit(1);
13446  strcpy(buf, "abcdefghi");
13447  mch_memmove(buf + 2, buf, 3);
13448  if (strncmp(buf, "cdedef", 6))
13449    exit(1);
13450  exit(0); /* libc version works properly.  */
13451}'
13452
13453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5
13454$as_echo_n "checking whether memmove handles overlaps... " >&6; }
13455if ${vim_cv_memmove_handles_overlap+:} false; then :
13456  $as_echo_n "(cached) " >&6
13457else
13458
13459    if test "$cross_compiling" = yes; then :
13460
13461	as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5
13462
13463else
13464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465/* end confdefs.h.  */
13466#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
13467_ACEOF
13468if ac_fn_c_try_run "$LINENO"; then :
13469
13470	vim_cv_memmove_handles_overlap=yes
13471
13472else
13473
13474	vim_cv_memmove_handles_overlap=no
13475
13476fi
13477rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13478  conftest.$ac_objext conftest.beam conftest.$ac_ext
13479fi
13480
13481
13482fi
13483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5
13484$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
13485
13486if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
13487  $as_echo "#define USEMEMMOVE 1" >>confdefs.h
13488
13489else
13490  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5
13491$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
13492if ${vim_cv_bcopy_handles_overlap+:} false; then :
13493  $as_echo_n "(cached) " >&6
13494else
13495
13496      if test "$cross_compiling" = yes; then :
13497
13498	as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5
13499
13500else
13501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502/* end confdefs.h.  */
13503#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
13504_ACEOF
13505if ac_fn_c_try_run "$LINENO"; then :
13506
13507	vim_cv_bcopy_handles_overlap=yes
13508
13509else
13510
13511	vim_cv_bcopy_handles_overlap=no
13512
13513fi
13514rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13515  conftest.$ac_objext conftest.beam conftest.$ac_ext
13516fi
13517
13518
13519fi
13520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5
13521$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
13522
13523  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
13524    $as_echo "#define USEBCOPY 1" >>confdefs.h
13525
13526  else
13527    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5
13528$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
13529if ${vim_cv_memcpy_handles_overlap+:} false; then :
13530  $as_echo_n "(cached) " >&6
13531else
13532
13533	if test "$cross_compiling" = yes; then :
13534
13535	    as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5
13536
13537else
13538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539/* end confdefs.h.  */
13540#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
13541_ACEOF
13542if ac_fn_c_try_run "$LINENO"; then :
13543
13544	    vim_cv_memcpy_handles_overlap=yes
13545
13546else
13547
13548	    vim_cv_memcpy_handles_overlap=no
13549
13550fi
13551rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13552  conftest.$ac_objext conftest.beam conftest.$ac_ext
13553fi
13554
13555
13556fi
13557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5
13558$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
13559
13560    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
13561      $as_echo "#define USEMEMCPY 1" >>confdefs.h
13562
13563    fi
13564  fi
13565fi
13566
13567
13568if test "x$with_x" = "xyes"; then
13569  cflags_save=$CFLAGS
13570  libs_save=$LIBS
13571  LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS"
13572  CFLAGS="$CFLAGS $X_CFLAGS"
13573
13574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
13575$as_echo_n "checking whether X_LOCALE needed... " >&6; }
13576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577/* end confdefs.h.  */
13578#include <X11/Xlocale.h>
13579int
13580main ()
13581{
13582
13583  ;
13584  return 0;
13585}
13586_ACEOF
13587if ac_fn_c_try_compile "$LINENO"; then :
13588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589/* end confdefs.h.  */
13590
13591/* Override any GCC internal prototype to avoid an error.
13592   Use char because int might match the return type of a GCC
13593   builtin and then its argument prototype would still apply.  */
13594#ifdef __cplusplus
13595extern "C"
13596#endif
13597char _Xsetlocale ();
13598int
13599main ()
13600{
13601return _Xsetlocale ();
13602  ;
13603  return 0;
13604}
13605_ACEOF
13606if ac_fn_c_try_link "$LINENO"; then :
13607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13608$as_echo "yes" >&6; }
13609	      $as_echo "#define X_LOCALE 1" >>confdefs.h
13610
13611else
13612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13613$as_echo "no" >&6; }
13614fi
13615rm -f core conftest.err conftest.$ac_objext \
13616    conftest$ac_exeext conftest.$ac_ext
13617else
13618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13619$as_echo "no" >&6; }
13620fi
13621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13622
13623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5
13624$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; }
13625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626/* end confdefs.h.  */
13627
13628/* Override any GCC internal prototype to avoid an error.
13629   Use char because int might match the return type of a GCC
13630   builtin and then its argument prototype would still apply.  */
13631#ifdef __cplusplus
13632extern "C"
13633#endif
13634char Xutf8SetWMProperties ();
13635int
13636main ()
13637{
13638return Xutf8SetWMProperties ();
13639  ;
13640  return 0;
13641}
13642_ACEOF
13643if ac_fn_c_try_link "$LINENO"; then :
13644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13645$as_echo "yes" >&6; }
13646	      $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h
13647
13648else
13649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650$as_echo "no" >&6; }
13651fi
13652rm -f core conftest.err conftest.$ac_objext \
13653    conftest$ac_exeext conftest.$ac_ext
13654
13655  CFLAGS=$cflags_save
13656  LIBS=$libs_save
13657fi
13658
13659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
13660$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
13661if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then :
13662  $as_echo_n "(cached) " >&6
13663else
13664  ac_check_lib_save_LIBS=$LIBS
13665LIBS="-lxpg4  $LIBS"
13666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13667/* end confdefs.h.  */
13668
13669/* Override any GCC internal prototype to avoid an error.
13670   Use char because int might match the return type of a GCC
13671   builtin and then its argument prototype would still apply.  */
13672#ifdef __cplusplus
13673extern "C"
13674#endif
13675char _xpg4_setrunelocale ();
13676int
13677main ()
13678{
13679return _xpg4_setrunelocale ();
13680  ;
13681  return 0;
13682}
13683_ACEOF
13684if ac_fn_c_try_link "$LINENO"; then :
13685  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
13686else
13687  ac_cv_lib_xpg4__xpg4_setrunelocale=no
13688fi
13689rm -f core conftest.err conftest.$ac_objext \
13690    conftest$ac_exeext conftest.$ac_ext
13691LIBS=$ac_check_lib_save_LIBS
13692fi
13693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
13694$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
13695if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then :
13696  LIBS="$LIBS -lxpg4"
13697fi
13698
13699
13700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5
13701$as_echo_n "checking how to create tags... " >&6; }
13702test -f tags && mv tags tags.save
13703if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
13704  TAGPRG="ctags -I INIT+ --fields=+S"
13705elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
13706  TAGPRG="exctags -I INIT+ --fields=+S"
13707elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
13708  TAGPRG="exuberant-ctags -I INIT+ --fields=+S"
13709else
13710  TAGPRG="ctags"
13711  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
13712  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
13713  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
13714  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
13715  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
13716  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
13717  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
13718fi
13719test -f tags.save && mv tags.save tags
13720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5
13721$as_echo "$TAGPRG" >&6; }
13722
13723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5
13724$as_echo_n "checking how to run man with a section nr... " >&6; }
13725MANDEF="man"
13726(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
13727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5
13728$as_echo "$MANDEF" >&6; }
13729if test "$MANDEF" = "man -s"; then
13730  $as_echo "#define USEMAN_S 1" >>confdefs.h
13731
13732fi
13733
13734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5
13735$as_echo_n "checking --disable-nls argument... " >&6; }
13736# Check whether --enable-nls was given.
13737if test "${enable_nls+set}" = set; then :
13738  enableval=$enable_nls;
13739else
13740  enable_nls="yes"
13741fi
13742
13743
13744if test "$enable_nls" = "yes"; then
13745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746$as_echo "no" >&6; }
13747
13748  INSTALL_LANGS=install-languages
13749
13750  INSTALL_TOOL_LANGS=install-tool-languages
13751
13752
13753  # Extract the first word of "msgfmt", so it can be a program name with args.
13754set dummy msgfmt; ac_word=$2
13755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13756$as_echo_n "checking for $ac_word... " >&6; }
13757if ${ac_cv_prog_MSGFMT+:} false; then :
13758  $as_echo_n "(cached) " >&6
13759else
13760  if test -n "$MSGFMT"; then
13761  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
13762else
13763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13764for as_dir in $PATH
13765do
13766  IFS=$as_save_IFS
13767  test -z "$as_dir" && as_dir=.
13768    for ac_exec_ext in '' $ac_executable_extensions; do
13769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13770    ac_cv_prog_MSGFMT="msgfmt"
13771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13772    break 2
13773  fi
13774done
13775  done
13776IFS=$as_save_IFS
13777
13778fi
13779fi
13780MSGFMT=$ac_cv_prog_MSGFMT
13781if test -n "$MSGFMT"; then
13782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13783$as_echo "$MSGFMT" >&6; }
13784else
13785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13786$as_echo "no" >&6; }
13787fi
13788
13789
13790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5
13791$as_echo_n "checking for NLS... " >&6; }
13792  if test -f po/Makefile; then
13793    have_gettext="no"
13794    if test -n "$MSGFMT"; then
13795      olibs=$LIBS
13796      LIBS=""
13797      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798/* end confdefs.h.  */
13799#include <libintl.h>
13800int
13801main ()
13802{
13803gettext("Test");
13804  ;
13805  return 0;
13806}
13807_ACEOF
13808if ac_fn_c_try_link "$LINENO"; then :
13809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
13810$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs
13811else
13812  LIBS="-lintl"
13813	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13814/* end confdefs.h.  */
13815#include <libintl.h>
13816int
13817main ()
13818{
13819gettext("Test");
13820  ;
13821  return 0;
13822}
13823_ACEOF
13824if ac_fn_c_try_link "$LINENO"; then :
13825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
13826$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes";
13827	      LIBS="$olibs -lintl"
13828else
13829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
13830$as_echo "gettext() doesn't work" >&6; };
13831	      LIBS=$olibs
13832fi
13833rm -f core conftest.err conftest.$ac_objext \
13834    conftest$ac_exeext conftest.$ac_ext
13835fi
13836rm -f core conftest.err conftest.$ac_objext \
13837    conftest$ac_exeext conftest.$ac_ext
13838    else
13839      { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5
13840$as_echo "msgfmt not found - disabled" >&6; };
13841    fi
13842    if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then
13843      $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13844
13845      MAKEMO=yes
13846
13847            for ac_func in bind_textdomain_codeset
13848do :
13849  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
13850if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
13851  cat >>confdefs.h <<_ACEOF
13852#define HAVE_BIND_TEXTDOMAIN_CODESET 1
13853_ACEOF
13854
13855fi
13856done
13857
13858            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5
13859$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
13860      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861/* end confdefs.h.  */
13862#include <libintl.h>
13863		extern int _nl_msg_cat_cntr;
13864int
13865main ()
13866{
13867++_nl_msg_cat_cntr;
13868  ;
13869  return 0;
13870}
13871_ACEOF
13872if ac_fn_c_try_link "$LINENO"; then :
13873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13874$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h
13875
13876else
13877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13878$as_echo "no" >&6; }
13879fi
13880rm -f core conftest.err conftest.$ac_objext \
13881    conftest$ac_exeext conftest.$ac_ext
13882    fi
13883  else
13884    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5
13885$as_echo "no \"po/Makefile\" - disabled" >&6; };
13886  fi
13887else
13888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13889$as_echo "yes" >&6; }
13890fi
13891
13892ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
13893if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13894  DLL=dlfcn.h
13895else
13896  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
13897if test "x$ac_cv_header_dl_h" = xyes; then :
13898  DLL=dl.h
13899fi
13900
13901
13902fi
13903
13904
13905if test x${DLL} = xdlfcn.h; then
13906
13907$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
13908
13909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5
13910$as_echo_n "checking for dlopen()... " >&6; }
13911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13912/* end confdefs.h.  */
13913
13914int
13915main ()
13916{
13917
13918		extern void* dlopen();
13919		dlopen();
13920
13921  ;
13922  return 0;
13923}
13924_ACEOF
13925if ac_fn_c_try_link "$LINENO"; then :
13926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13927$as_echo "yes" >&6; };
13928
13929$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13930
13931else
13932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13933$as_echo "no" >&6; };
13934	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5
13935$as_echo_n "checking for dlopen() in -ldl... " >&6; }
13936	      olibs=$LIBS
13937	      LIBS="$LIBS -ldl"
13938	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939/* end confdefs.h.  */
13940
13941int
13942main ()
13943{
13944
13945				extern void* dlopen();
13946				dlopen();
13947
13948  ;
13949  return 0;
13950}
13951_ACEOF
13952if ac_fn_c_try_link "$LINENO"; then :
13953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13954$as_echo "yes" >&6; };
13955
13956$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13957
13958else
13959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13960$as_echo "no" >&6; };
13961			  LIBS=$olibs
13962fi
13963rm -f core conftest.err conftest.$ac_objext \
13964    conftest$ac_exeext conftest.$ac_ext
13965fi
13966rm -f core conftest.err conftest.$ac_objext \
13967    conftest$ac_exeext conftest.$ac_ext
13968      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5
13969$as_echo_n "checking for dlsym()... " >&6; }
13970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971/* end confdefs.h.  */
13972
13973int
13974main ()
13975{
13976
13977		extern void* dlsym();
13978		dlsym();
13979
13980  ;
13981  return 0;
13982}
13983_ACEOF
13984if ac_fn_c_try_link "$LINENO"; then :
13985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13986$as_echo "yes" >&6; };
13987
13988$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
13989
13990else
13991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13992$as_echo "no" >&6; };
13993	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5
13994$as_echo_n "checking for dlsym() in -ldl... " >&6; }
13995	      olibs=$LIBS
13996	      LIBS="$LIBS -ldl"
13997	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998/* end confdefs.h.  */
13999
14000int
14001main ()
14002{
14003
14004				extern void* dlsym();
14005				dlsym();
14006
14007  ;
14008  return 0;
14009}
14010_ACEOF
14011if ac_fn_c_try_link "$LINENO"; then :
14012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14013$as_echo "yes" >&6; };
14014
14015$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
14016
14017else
14018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14019$as_echo "no" >&6; };
14020			  LIBS=$olibs
14021fi
14022rm -f core conftest.err conftest.$ac_objext \
14023    conftest$ac_exeext conftest.$ac_ext
14024fi
14025rm -f core conftest.err conftest.$ac_objext \
14026    conftest$ac_exeext conftest.$ac_ext
14027elif test x${DLL} = xdl.h; then
14028
14029$as_echo "#define HAVE_DL_H 1" >>confdefs.h
14030
14031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5
14032$as_echo_n "checking for shl_load()... " >&6; }
14033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034/* end confdefs.h.  */
14035
14036int
14037main ()
14038{
14039
14040		extern void* shl_load();
14041		shl_load();
14042
14043  ;
14044  return 0;
14045}
14046_ACEOF
14047if ac_fn_c_try_link "$LINENO"; then :
14048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14049$as_echo "yes" >&6; };
14050
14051$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14052
14053else
14054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14055$as_echo "no" >&6; };
14056	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5
14057$as_echo_n "checking for shl_load() in -ldld... " >&6; }
14058	  olibs=$LIBS
14059	  LIBS="$LIBS -ldld"
14060	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061/* end confdefs.h.  */
14062
14063int
14064main ()
14065{
14066
14067			extern void* shl_load();
14068			shl_load();
14069
14070  ;
14071  return 0;
14072}
14073_ACEOF
14074if ac_fn_c_try_link "$LINENO"; then :
14075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14076$as_echo "yes" >&6; };
14077
14078$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14079
14080else
14081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14082$as_echo "no" >&6; };
14083		  LIBS=$olibs
14084fi
14085rm -f core conftest.err conftest.$ac_objext \
14086    conftest$ac_exeext conftest.$ac_ext
14087fi
14088rm -f core conftest.err conftest.$ac_objext \
14089    conftest$ac_exeext conftest.$ac_ext
14090fi
14091for ac_header in setjmp.h
14092do :
14093  ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
14094if test "x$ac_cv_header_setjmp_h" = xyes; then :
14095  cat >>confdefs.h <<_ACEOF
14096#define HAVE_SETJMP_H 1
14097_ACEOF
14098
14099fi
14100
14101done
14102
14103
14104if test "x$MACOS_X" = "xyes" -a -n "$PERL"; then
14105    if echo $LIBS | grep -e '-ldl' >/dev/null; then
14106    LIBS=`echo $LIBS | sed s/-ldl//`
14107    PERL_LIBS="$PERL_LIBS -ldl"
14108  fi
14109fi
14110
14111if test "$MACOS_X" = "yes"; then
14112  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need macOS frameworks" >&5
14113$as_echo_n "checking whether we need macOS frameworks... " >&6; }
14114  if test "$GUITYPE" = "CARBONGUI"; then
14115    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need Carbon" >&5
14116$as_echo "yes, we need Carbon" >&6; }
14117    LIBS="$LIBS -framework Carbon"
14118  elif test "$MACOS_X_DARWIN" = "yes"; then
14119    if test "$features" = "tiny"; then
14120            OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'`
14121      OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'`
14122      if test "$enable_multibyte" = "yes"; then
14123        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5
14124$as_echo "yes, we need CoreServices" >&6; }
14125        LIBS="$LIBS -framework CoreServices"
14126      else
14127                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128$as_echo "no" >&6; }
14129        OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_mac_conv.c++'`
14130        OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_mac_conv.o++'`
14131        CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's+-DMACOS_X_DARWIN++'`
14132      fi
14133    else
14134      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5
14135$as_echo "yes, we need AppKit" >&6; }
14136      LIBS="$LIBS -framework AppKit"
14137      if test "$features" = "small" -a "$enable_multibyte" = "no"; then
14138                                { $as_echo "$as_me:${as_lineno-$LINENO}: +multi_byte will be set in favor of +clipboard" >&5
14139$as_echo "$as_me: +multi_byte will be set in favor of +clipboard" >&6;}
14140        enable_multibyte=yes
14141        $as_echo "#define FEAT_MBYTE 1" >>confdefs.h
14142
14143      fi
14144    fi
14145  else
14146    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14147$as_echo "no" >&6; }
14148  fi
14149fi
14150if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then
14151  LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
14152fi
14153
14154DEPEND_CFLAGS_FILTER=
14155if test "$GCC" = yes; then
14156  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5
14157$as_echo_n "checking for GCC 3 or later... " >&6; }
14158  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
14159  if test "$gccmajor" -gt "2"; then
14160    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
14161    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14162$as_echo "yes" >&6; }
14163  else
14164    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14165$as_echo "no" >&6; }
14166  fi
14167          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
14168$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
14169  if test "$gccmajor" -gt "3"; then
14170    CFLAGS=`echo "$CFLAGS" | sed -e 's/ *-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g' -e 's/$/ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1/'`
14171    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14172$as_echo "yes" >&6; }
14173  else
14174    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14175$as_echo "no" >&6; }
14176  fi
14177fi
14178
14179
14180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14181$as_echo_n "checking linker --as-needed support... " >&6; }
14182LINK_AS_NEEDED=
14183# Check if linker supports --as-needed and --no-as-needed options
14184if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
14185  LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
14186  LINK_AS_NEEDED=yes
14187fi
14188if test "$LINK_AS_NEEDED" = yes; then
14189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14190$as_echo "yes" >&6; }
14191else
14192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14193$as_echo "no" >&6; }
14194fi
14195
14196
14197# IBM z/OS reset CFLAGS for config.mk
14198if test "$zOSUnix" = "yes"; then
14199	CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
14200fi
14201
14202ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
14203
14204cat >confcache <<\_ACEOF
14205# This file is a shell script that caches the results of configure
14206# tests run on this system so they can be shared between configure
14207# scripts and configure runs, see configure's option --config-cache.
14208# It is not useful on other systems.  If it contains results you don't
14209# want to keep, you may remove or edit it.
14210#
14211# config.status only pays attention to the cache file if you give it
14212# the --recheck option to rerun configure.
14213#
14214# `ac_cv_env_foo' variables (set or unset) will be overridden when
14215# loading this file, other *unset* `ac_cv_foo' will be assigned the
14216# following values.
14217
14218_ACEOF
14219
14220# The following way of writing the cache mishandles newlines in values,
14221# but we know of no workaround that is simple, portable, and efficient.
14222# So, we kill variables containing newlines.
14223# Ultrix sh set writes to stderr and can't be redirected directly,
14224# and sets the high bit in the cache file unless we assign to the vars.
14225(
14226  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14227    eval ac_val=\$$ac_var
14228    case $ac_val in #(
14229    *${as_nl}*)
14230      case $ac_var in #(
14231      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14232$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14233      esac
14234      case $ac_var in #(
14235      _ | IFS | as_nl) ;; #(
14236      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14237      *) { eval $ac_var=; unset $ac_var;} ;;
14238      esac ;;
14239    esac
14240  done
14241
14242  (set) 2>&1 |
14243    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14244    *${as_nl}ac_space=\ *)
14245      # `set' does not quote correctly, so add quotes: double-quote
14246      # substitution turns \\\\ into \\, and sed turns \\ into \.
14247      sed -n \
14248	"s/'/'\\\\''/g;
14249	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14250      ;; #(
14251    *)
14252      # `set' quotes correctly as required by POSIX, so do not add quotes.
14253      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14254      ;;
14255    esac |
14256    sort
14257) |
14258  sed '
14259     /^ac_cv_env_/b end
14260     t clear
14261     :clear
14262     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14263     t end
14264     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14265     :end' >>confcache
14266if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14267  if test -w "$cache_file"; then
14268    if test "x$cache_file" != "x/dev/null"; then
14269      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14270$as_echo "$as_me: updating cache $cache_file" >&6;}
14271      if test ! -f "$cache_file" || test -h "$cache_file"; then
14272	cat confcache >"$cache_file"
14273      else
14274        case $cache_file in #(
14275        */* | ?:*)
14276	  mv -f confcache "$cache_file"$$ &&
14277	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14278        *)
14279	  mv -f confcache "$cache_file" ;;
14280	esac
14281      fi
14282    fi
14283  else
14284    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14285$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14286  fi
14287fi
14288rm -f confcache
14289
14290test "x$prefix" = xNONE && prefix=$ac_default_prefix
14291# Let make expand exec_prefix.
14292test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14293
14294DEFS=-DHAVE_CONFIG_H
14295
14296ac_libobjs=
14297ac_ltlibobjs=
14298U=
14299for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14300  # 1. Remove the extension, and $U if already installed.
14301  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14302  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14303  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14304  #    will be set to the directory where LIBOBJS objects are built.
14305  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14306  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14307done
14308LIBOBJS=$ac_libobjs
14309
14310LTLIBOBJS=$ac_ltlibobjs
14311
14312
14313
14314
14315: "${CONFIG_STATUS=./config.status}"
14316ac_write_fail=0
14317ac_clean_files_save=$ac_clean_files
14318ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14319{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14320$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14321as_write_fail=0
14322cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14323#! $SHELL
14324# Generated by $as_me.
14325# Run this file to recreate the current configuration.
14326# Compiler output produced by configure, useful for debugging
14327# configure, is in config.log if it exists.
14328
14329debug=false
14330ac_cs_recheck=false
14331ac_cs_silent=false
14332
14333SHELL=\${CONFIG_SHELL-$SHELL}
14334export SHELL
14335_ASEOF
14336cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14337## -------------------- ##
14338## M4sh Initialization. ##
14339## -------------------- ##
14340
14341# Be more Bourne compatible
14342DUALCASE=1; export DUALCASE # for MKS sh
14343if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14344  emulate sh
14345  NULLCMD=:
14346  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14347  # is contrary to our usage.  Disable this feature.
14348  alias -g '${1+"$@"}'='"$@"'
14349  setopt NO_GLOB_SUBST
14350else
14351  case `(set -o) 2>/dev/null` in #(
14352  *posix*) :
14353    set -o posix ;; #(
14354  *) :
14355     ;;
14356esac
14357fi
14358
14359
14360as_nl='
14361'
14362export as_nl
14363# Printing a long string crashes Solaris 7 /usr/bin/printf.
14364as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14365as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14366as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14367# Prefer a ksh shell builtin over an external printf program on Solaris,
14368# but without wasting forks for bash or zsh.
14369if test -z "$BASH_VERSION$ZSH_VERSION" \
14370    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14371  as_echo='print -r --'
14372  as_echo_n='print -rn --'
14373elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14374  as_echo='printf %s\n'
14375  as_echo_n='printf %s'
14376else
14377  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14378    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14379    as_echo_n='/usr/ucb/echo -n'
14380  else
14381    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14382    as_echo_n_body='eval
14383      arg=$1;
14384      case $arg in #(
14385      *"$as_nl"*)
14386	expr "X$arg" : "X\\(.*\\)$as_nl";
14387	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14388      esac;
14389      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14390    '
14391    export as_echo_n_body
14392    as_echo_n='sh -c $as_echo_n_body as_echo'
14393  fi
14394  export as_echo_body
14395  as_echo='sh -c $as_echo_body as_echo'
14396fi
14397
14398# The user is always right.
14399if test "${PATH_SEPARATOR+set}" != set; then
14400  PATH_SEPARATOR=:
14401  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14402    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14403      PATH_SEPARATOR=';'
14404  }
14405fi
14406
14407
14408# IFS
14409# We need space, tab and new line, in precisely that order.  Quoting is
14410# there to prevent editors from complaining about space-tab.
14411# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14412# splitting by setting IFS to empty value.)
14413IFS=" ""	$as_nl"
14414
14415# Find who we are.  Look in the path if we contain no directory separator.
14416as_myself=
14417case $0 in #((
14418  *[\\/]* ) as_myself=$0 ;;
14419  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14420for as_dir in $PATH
14421do
14422  IFS=$as_save_IFS
14423  test -z "$as_dir" && as_dir=.
14424    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14425  done
14426IFS=$as_save_IFS
14427
14428     ;;
14429esac
14430# We did not find ourselves, most probably we were run as `sh COMMAND'
14431# in which case we are not to be found in the path.
14432if test "x$as_myself" = x; then
14433  as_myself=$0
14434fi
14435if test ! -f "$as_myself"; then
14436  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14437  exit 1
14438fi
14439
14440# Unset variables that we do not need and which cause bugs (e.g. in
14441# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14442# suppresses any "Segmentation fault" message there.  '((' could
14443# trigger a bug in pdksh 5.2.14.
14444for as_var in BASH_ENV ENV MAIL MAILPATH
14445do eval test x\${$as_var+set} = xset \
14446  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14447done
14448PS1='$ '
14449PS2='> '
14450PS4='+ '
14451
14452# NLS nuisances.
14453LC_ALL=C
14454export LC_ALL
14455LANGUAGE=C
14456export LANGUAGE
14457
14458# CDPATH.
14459(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14460
14461
14462# as_fn_error STATUS ERROR [LINENO LOG_FD]
14463# ----------------------------------------
14464# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14465# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14466# script with STATUS, using 1 if that was 0.
14467as_fn_error ()
14468{
14469  as_status=$1; test $as_status -eq 0 && as_status=1
14470  if test "$4"; then
14471    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14472    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14473  fi
14474  $as_echo "$as_me: error: $2" >&2
14475  as_fn_exit $as_status
14476} # as_fn_error
14477
14478
14479# as_fn_set_status STATUS
14480# -----------------------
14481# Set $? to STATUS, without forking.
14482as_fn_set_status ()
14483{
14484  return $1
14485} # as_fn_set_status
14486
14487# as_fn_exit STATUS
14488# -----------------
14489# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14490as_fn_exit ()
14491{
14492  set +e
14493  as_fn_set_status $1
14494  exit $1
14495} # as_fn_exit
14496
14497# as_fn_unset VAR
14498# ---------------
14499# Portably unset VAR.
14500as_fn_unset ()
14501{
14502  { eval $1=; unset $1;}
14503}
14504as_unset=as_fn_unset
14505# as_fn_append VAR VALUE
14506# ----------------------
14507# Append the text in VALUE to the end of the definition contained in VAR. Take
14508# advantage of any shell optimizations that allow amortized linear growth over
14509# repeated appends, instead of the typical quadratic growth present in naive
14510# implementations.
14511if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14512  eval 'as_fn_append ()
14513  {
14514    eval $1+=\$2
14515  }'
14516else
14517  as_fn_append ()
14518  {
14519    eval $1=\$$1\$2
14520  }
14521fi # as_fn_append
14522
14523# as_fn_arith ARG...
14524# ------------------
14525# Perform arithmetic evaluation on the ARGs, and store the result in the
14526# global $as_val. Take advantage of shells that can avoid forks. The arguments
14527# must be portable across $(()) and expr.
14528if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14529  eval 'as_fn_arith ()
14530  {
14531    as_val=$(( $* ))
14532  }'
14533else
14534  as_fn_arith ()
14535  {
14536    as_val=`expr "$@" || test $? -eq 1`
14537  }
14538fi # as_fn_arith
14539
14540
14541if expr a : '\(a\)' >/dev/null 2>&1 &&
14542   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14543  as_expr=expr
14544else
14545  as_expr=false
14546fi
14547
14548if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14549  as_basename=basename
14550else
14551  as_basename=false
14552fi
14553
14554if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14555  as_dirname=dirname
14556else
14557  as_dirname=false
14558fi
14559
14560as_me=`$as_basename -- "$0" ||
14561$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14562	 X"$0" : 'X\(//\)$' \| \
14563	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14564$as_echo X/"$0" |
14565    sed '/^.*\/\([^/][^/]*\)\/*$/{
14566	    s//\1/
14567	    q
14568	  }
14569	  /^X\/\(\/\/\)$/{
14570	    s//\1/
14571	    q
14572	  }
14573	  /^X\/\(\/\).*/{
14574	    s//\1/
14575	    q
14576	  }
14577	  s/.*/./; q'`
14578
14579# Avoid depending upon Character Ranges.
14580as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14581as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14582as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14583as_cr_digits='0123456789'
14584as_cr_alnum=$as_cr_Letters$as_cr_digits
14585
14586ECHO_C= ECHO_N= ECHO_T=
14587case `echo -n x` in #(((((
14588-n*)
14589  case `echo 'xy\c'` in
14590  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14591  xy)  ECHO_C='\c';;
14592  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14593       ECHO_T='	';;
14594  esac;;
14595*)
14596  ECHO_N='-n';;
14597esac
14598
14599rm -f conf$$ conf$$.exe conf$$.file
14600if test -d conf$$.dir; then
14601  rm -f conf$$.dir/conf$$.file
14602else
14603  rm -f conf$$.dir
14604  mkdir conf$$.dir 2>/dev/null
14605fi
14606if (echo >conf$$.file) 2>/dev/null; then
14607  if ln -s conf$$.file conf$$ 2>/dev/null; then
14608    as_ln_s='ln -s'
14609    # ... but there are two gotchas:
14610    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14611    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14612    # In both cases, we have to default to `cp -pR'.
14613    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14614      as_ln_s='cp -pR'
14615  elif ln conf$$.file conf$$ 2>/dev/null; then
14616    as_ln_s=ln
14617  else
14618    as_ln_s='cp -pR'
14619  fi
14620else
14621  as_ln_s='cp -pR'
14622fi
14623rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14624rmdir conf$$.dir 2>/dev/null
14625
14626
14627# as_fn_mkdir_p
14628# -------------
14629# Create "$as_dir" as a directory, including parents if necessary.
14630as_fn_mkdir_p ()
14631{
14632
14633  case $as_dir in #(
14634  -*) as_dir=./$as_dir;;
14635  esac
14636  test -d "$as_dir" || eval $as_mkdir_p || {
14637    as_dirs=
14638    while :; do
14639      case $as_dir in #(
14640      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14641      *) as_qdir=$as_dir;;
14642      esac
14643      as_dirs="'$as_qdir' $as_dirs"
14644      as_dir=`$as_dirname -- "$as_dir" ||
14645$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14646	 X"$as_dir" : 'X\(//\)[^/]' \| \
14647	 X"$as_dir" : 'X\(//\)$' \| \
14648	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14649$as_echo X"$as_dir" |
14650    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14651	    s//\1/
14652	    q
14653	  }
14654	  /^X\(\/\/\)[^/].*/{
14655	    s//\1/
14656	    q
14657	  }
14658	  /^X\(\/\/\)$/{
14659	    s//\1/
14660	    q
14661	  }
14662	  /^X\(\/\).*/{
14663	    s//\1/
14664	    q
14665	  }
14666	  s/.*/./; q'`
14667      test -d "$as_dir" && break
14668    done
14669    test -z "$as_dirs" || eval "mkdir $as_dirs"
14670  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14671
14672
14673} # as_fn_mkdir_p
14674if mkdir -p . 2>/dev/null; then
14675  as_mkdir_p='mkdir -p "$as_dir"'
14676else
14677  test -d ./-p && rmdir ./-p
14678  as_mkdir_p=false
14679fi
14680
14681
14682# as_fn_executable_p FILE
14683# -----------------------
14684# Test if FILE is an executable regular file.
14685as_fn_executable_p ()
14686{
14687  test -f "$1" && test -x "$1"
14688} # as_fn_executable_p
14689as_test_x='test -x'
14690as_executable_p=as_fn_executable_p
14691
14692# Sed expression to map a string onto a valid CPP name.
14693as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14694
14695# Sed expression to map a string onto a valid variable name.
14696as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14697
14698
14699exec 6>&1
14700## ----------------------------------- ##
14701## Main body of $CONFIG_STATUS script. ##
14702## ----------------------------------- ##
14703_ASEOF
14704test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14705
14706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14707# Save the log message, to keep $0 and so on meaningful, and to
14708# report actual input values of CONFIG_FILES etc. instead of their
14709# values after options handling.
14710ac_log="
14711This file was extended by $as_me, which was
14712generated by GNU Autoconf 2.69.  Invocation command line was
14713
14714  CONFIG_FILES    = $CONFIG_FILES
14715  CONFIG_HEADERS  = $CONFIG_HEADERS
14716  CONFIG_LINKS    = $CONFIG_LINKS
14717  CONFIG_COMMANDS = $CONFIG_COMMANDS
14718  $ $0 $@
14719
14720on `(hostname || uname -n) 2>/dev/null | sed 1q`
14721"
14722
14723_ACEOF
14724
14725case $ac_config_files in *"
14726"*) set x $ac_config_files; shift; ac_config_files=$*;;
14727esac
14728
14729case $ac_config_headers in *"
14730"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14731esac
14732
14733
14734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14735# Files that config.status was made for.
14736config_files="$ac_config_files"
14737config_headers="$ac_config_headers"
14738
14739_ACEOF
14740
14741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14742ac_cs_usage="\
14743\`$as_me' instantiates files and other configuration actions
14744from templates according to the current configuration.  Unless the files
14745and actions are specified as TAGs, all are instantiated by default.
14746
14747Usage: $0 [OPTION]... [TAG]...
14748
14749  -h, --help       print this help, then exit
14750  -V, --version    print version number and configuration settings, then exit
14751      --config     print configuration, then exit
14752  -q, --quiet, --silent
14753                   do not print progress messages
14754  -d, --debug      don't remove temporary files
14755      --recheck    update $as_me by reconfiguring in the same conditions
14756      --file=FILE[:TEMPLATE]
14757                   instantiate the configuration file FILE
14758      --header=FILE[:TEMPLATE]
14759                   instantiate the configuration header FILE
14760
14761Configuration files:
14762$config_files
14763
14764Configuration headers:
14765$config_headers
14766
14767Report bugs to the package provider."
14768
14769_ACEOF
14770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14771ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14772ac_cs_version="\\
14773config.status
14774configured by $0, generated by GNU Autoconf 2.69,
14775  with options \\"\$ac_cs_config\\"
14776
14777Copyright (C) 2012 Free Software Foundation, Inc.
14778This config.status script is free software; the Free Software Foundation
14779gives unlimited permission to copy, distribute and modify it."
14780
14781ac_pwd='$ac_pwd'
14782srcdir='$srcdir'
14783AWK='$AWK'
14784test -n "\$AWK" || AWK=awk
14785_ACEOF
14786
14787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14788# The default lists apply if the user does not specify any file.
14789ac_need_defaults=:
14790while test $# != 0
14791do
14792  case $1 in
14793  --*=?*)
14794    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14795    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14796    ac_shift=:
14797    ;;
14798  --*=)
14799    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14800    ac_optarg=
14801    ac_shift=:
14802    ;;
14803  *)
14804    ac_option=$1
14805    ac_optarg=$2
14806    ac_shift=shift
14807    ;;
14808  esac
14809
14810  case $ac_option in
14811  # Handling of the options.
14812  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14813    ac_cs_recheck=: ;;
14814  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14815    $as_echo "$ac_cs_version"; exit ;;
14816  --config | --confi | --conf | --con | --co | --c )
14817    $as_echo "$ac_cs_config"; exit ;;
14818  --debug | --debu | --deb | --de | --d | -d )
14819    debug=: ;;
14820  --file | --fil | --fi | --f )
14821    $ac_shift
14822    case $ac_optarg in
14823    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14824    '') as_fn_error $? "missing file argument" ;;
14825    esac
14826    as_fn_append CONFIG_FILES " '$ac_optarg'"
14827    ac_need_defaults=false;;
14828  --header | --heade | --head | --hea )
14829    $ac_shift
14830    case $ac_optarg in
14831    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14832    esac
14833    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14834    ac_need_defaults=false;;
14835  --he | --h)
14836    # Conflict between --help and --header
14837    as_fn_error $? "ambiguous option: \`$1'
14838Try \`$0 --help' for more information.";;
14839  --help | --hel | -h )
14840    $as_echo "$ac_cs_usage"; exit ;;
14841  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14842  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14843    ac_cs_silent=: ;;
14844
14845  # This is an error.
14846  -*) as_fn_error $? "unrecognized option: \`$1'
14847Try \`$0 --help' for more information." ;;
14848
14849  *) as_fn_append ac_config_targets " $1"
14850     ac_need_defaults=false ;;
14851
14852  esac
14853  shift
14854done
14855
14856ac_configure_extra_args=
14857
14858if $ac_cs_silent; then
14859  exec 6>/dev/null
14860  ac_configure_extra_args="$ac_configure_extra_args --silent"
14861fi
14862
14863_ACEOF
14864cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14865if \$ac_cs_recheck; then
14866  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14867  shift
14868  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14869  CONFIG_SHELL='$SHELL'
14870  export CONFIG_SHELL
14871  exec "\$@"
14872fi
14873
14874_ACEOF
14875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14876exec 5>>auto/config.log
14877{
14878  echo
14879  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14880## Running $as_me. ##
14881_ASBOX
14882  $as_echo "$ac_log"
14883} >&5
14884
14885_ACEOF
14886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14887_ACEOF
14888
14889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14890
14891# Handling of arguments.
14892for ac_config_target in $ac_config_targets
14893do
14894  case $ac_config_target in
14895    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
14896    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
14897
14898  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14899  esac
14900done
14901
14902
14903# If the user did not use the arguments to specify the items to instantiate,
14904# then the envvar interface is used.  Set only those that are not.
14905# We use the long form for the default assignment because of an extremely
14906# bizarre bug on SunOS 4.1.3.
14907if $ac_need_defaults; then
14908  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14909  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14910fi
14911
14912# Have a temporary directory for convenience.  Make it in the build tree
14913# simply because there is no reason against having it here, and in addition,
14914# creating and moving files from /tmp can sometimes cause problems.
14915# Hook for its removal unless debugging.
14916# Note that there is a small window in which the directory will not be cleaned:
14917# after its creation but before its name has been assigned to `$tmp'.
14918$debug ||
14919{
14920  tmp= ac_tmp=
14921  trap 'exit_status=$?
14922  : "${ac_tmp:=$tmp}"
14923  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14924' 0
14925  trap 'as_fn_exit 1' 1 2 13 15
14926}
14927# Create a (secure) tmp directory for tmp files.
14928
14929{
14930  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14931  test -d "$tmp"
14932}  ||
14933{
14934  tmp=./conf$$-$RANDOM
14935  (umask 077 && mkdir "$tmp")
14936} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14937ac_tmp=$tmp
14938
14939# Set up the scripts for CONFIG_FILES section.
14940# No need to generate them if there are no CONFIG_FILES.
14941# This happens for instance with `./config.status config.h'.
14942if test -n "$CONFIG_FILES"; then
14943
14944
14945ac_cr=`echo X | tr X '\015'`
14946# On cygwin, bash can eat \r inside `` if the user requested igncr.
14947# But we know of no other shell where ac_cr would be empty at this
14948# point, so we can use a bashism as a fallback.
14949if test "x$ac_cr" = x; then
14950  eval ac_cr=\$\'\\r\'
14951fi
14952ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14953if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14954  ac_cs_awk_cr='\\r'
14955else
14956  ac_cs_awk_cr=$ac_cr
14957fi
14958
14959echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14960_ACEOF
14961
14962
14963{
14964  echo "cat >conf$$subs.awk <<_ACEOF" &&
14965  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14966  echo "_ACEOF"
14967} >conf$$subs.sh ||
14968  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14969ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14970ac_delim='%!_!# '
14971for ac_last_try in false false false false false :; do
14972  . ./conf$$subs.sh ||
14973    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14974
14975  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14976  if test $ac_delim_n = $ac_delim_num; then
14977    break
14978  elif $ac_last_try; then
14979    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14980  else
14981    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14982  fi
14983done
14984rm -f conf$$subs.sh
14985
14986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14987cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14988_ACEOF
14989sed -n '
14990h
14991s/^/S["/; s/!.*/"]=/
14992p
14993g
14994s/^[^!]*!//
14995:repl
14996t repl
14997s/'"$ac_delim"'$//
14998t delim
14999:nl
15000h
15001s/\(.\{148\}\)..*/\1/
15002t more1
15003s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15004p
15005n
15006b repl
15007:more1
15008s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15009p
15010g
15011s/.\{148\}//
15012t nl
15013:delim
15014h
15015s/\(.\{148\}\)..*/\1/
15016t more2
15017s/["\\]/\\&/g; s/^/"/; s/$/"/
15018p
15019b
15020:more2
15021s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15022p
15023g
15024s/.\{148\}//
15025t delim
15026' <conf$$subs.awk | sed '
15027/^[^""]/{
15028  N
15029  s/\n//
15030}
15031' >>$CONFIG_STATUS || ac_write_fail=1
15032rm -f conf$$subs.awk
15033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15034_ACAWK
15035cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15036  for (key in S) S_is_set[key] = 1
15037  FS = ""
15038
15039}
15040{
15041  line = $ 0
15042  nfields = split(line, field, "@")
15043  substed = 0
15044  len = length(field[1])
15045  for (i = 2; i < nfields; i++) {
15046    key = field[i]
15047    keylen = length(key)
15048    if (S_is_set[key]) {
15049      value = S[key]
15050      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15051      len += length(value) + length(field[++i])
15052      substed = 1
15053    } else
15054      len += 1 + keylen
15055  }
15056
15057  print line
15058}
15059
15060_ACAWK
15061_ACEOF
15062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15063if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15064  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15065else
15066  cat
15067fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15068  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15069_ACEOF
15070
15071# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15072# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15073# trailing colons and then remove the whole line if VPATH becomes empty
15074# (actually we leave an empty line to preserve line numbers).
15075if test "x$srcdir" = x.; then
15076  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15077h
15078s///
15079s/^/:/
15080s/[	 ]*$/:/
15081s/:\$(srcdir):/:/g
15082s/:\${srcdir}:/:/g
15083s/:@srcdir@:/:/g
15084s/^:*//
15085s/:*$//
15086x
15087s/\(=[	 ]*\).*/\1/
15088G
15089s/\n//
15090s/^[^=]*=[	 ]*$//
15091}'
15092fi
15093
15094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15095fi # test -n "$CONFIG_FILES"
15096
15097# Set up the scripts for CONFIG_HEADERS section.
15098# No need to generate them if there are no CONFIG_HEADERS.
15099# This happens for instance with `./config.status Makefile'.
15100if test -n "$CONFIG_HEADERS"; then
15101cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15102BEGIN {
15103_ACEOF
15104
15105# Transform confdefs.h into an awk script `defines.awk', embedded as
15106# here-document in config.status, that substitutes the proper values into
15107# config.h.in to produce config.h.
15108
15109# Create a delimiter string that does not exist in confdefs.h, to ease
15110# handling of long lines.
15111ac_delim='%!_!# '
15112for ac_last_try in false false :; do
15113  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15114  if test -z "$ac_tt"; then
15115    break
15116  elif $ac_last_try; then
15117    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15118  else
15119    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15120  fi
15121done
15122
15123# For the awk script, D is an array of macro values keyed by name,
15124# likewise P contains macro parameters if any.  Preserve backslash
15125# newline sequences.
15126
15127ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15128sed -n '
15129s/.\{148\}/&'"$ac_delim"'/g
15130t rset
15131:rset
15132s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15133t def
15134d
15135:def
15136s/\\$//
15137t bsnl
15138s/["\\]/\\&/g
15139s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15140D["\1"]=" \3"/p
15141s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15142d
15143:bsnl
15144s/["\\]/\\&/g
15145s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15146D["\1"]=" \3\\\\\\n"\\/p
15147t cont
15148s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15149t cont
15150d
15151:cont
15152n
15153s/.\{148\}/&'"$ac_delim"'/g
15154t clear
15155:clear
15156s/\\$//
15157t bsnlc
15158s/["\\]/\\&/g; s/^/"/; s/$/"/p
15159d
15160:bsnlc
15161s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15162b cont
15163' <confdefs.h | sed '
15164s/'"$ac_delim"'/"\\\
15165"/g' >>$CONFIG_STATUS || ac_write_fail=1
15166
15167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15168  for (key in D) D_is_set[key] = 1
15169  FS = ""
15170}
15171/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15172  line = \$ 0
15173  split(line, arg, " ")
15174  if (arg[1] == "#") {
15175    defundef = arg[2]
15176    mac1 = arg[3]
15177  } else {
15178    defundef = substr(arg[1], 2)
15179    mac1 = arg[2]
15180  }
15181  split(mac1, mac2, "(") #)
15182  macro = mac2[1]
15183  prefix = substr(line, 1, index(line, defundef) - 1)
15184  if (D_is_set[macro]) {
15185    # Preserve the white space surrounding the "#".
15186    print prefix "define", macro P[macro] D[macro]
15187    next
15188  } else {
15189    # Replace #undef with comments.  This is necessary, for example,
15190    # in the case of _POSIX_SOURCE, which is predefined and required
15191    # on some systems where configure will not decide to define it.
15192    if (defundef == "undef") {
15193      print "/*", prefix defundef, macro, "*/"
15194      next
15195    }
15196  }
15197}
15198{ print }
15199_ACAWK
15200_ACEOF
15201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15202  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15203fi # test -n "$CONFIG_HEADERS"
15204
15205
15206eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
15207shift
15208for ac_tag
15209do
15210  case $ac_tag in
15211  :[FHLC]) ac_mode=$ac_tag; continue;;
15212  esac
15213  case $ac_mode$ac_tag in
15214  :[FHL]*:*);;
15215  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15216  :[FH]-) ac_tag=-:-;;
15217  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15218  esac
15219  ac_save_IFS=$IFS
15220  IFS=:
15221  set x $ac_tag
15222  IFS=$ac_save_IFS
15223  shift
15224  ac_file=$1
15225  shift
15226
15227  case $ac_mode in
15228  :L) ac_source=$1;;
15229  :[FH])
15230    ac_file_inputs=
15231    for ac_f
15232    do
15233      case $ac_f in
15234      -) ac_f="$ac_tmp/stdin";;
15235      *) # Look for the file first in the build tree, then in the source tree
15236	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15237	 # because $ac_f cannot contain `:'.
15238	 test -f "$ac_f" ||
15239	   case $ac_f in
15240	   [\\/$]*) false;;
15241	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15242	   esac ||
15243	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15244      esac
15245      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15246      as_fn_append ac_file_inputs " '$ac_f'"
15247    done
15248
15249    # Let's still pretend it is `configure' which instantiates (i.e., don't
15250    # use $as_me), people would be surprised to read:
15251    #    /* config.h.  Generated by config.status.  */
15252    configure_input='Generated from '`
15253	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15254	`' by configure.'
15255    if test x"$ac_file" != x-; then
15256      configure_input="$ac_file.  $configure_input"
15257      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15258$as_echo "$as_me: creating $ac_file" >&6;}
15259    fi
15260    # Neutralize special characters interpreted by sed in replacement strings.
15261    case $configure_input in #(
15262    *\&* | *\|* | *\\* )
15263       ac_sed_conf_input=`$as_echo "$configure_input" |
15264       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15265    *) ac_sed_conf_input=$configure_input;;
15266    esac
15267
15268    case $ac_tag in
15269    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15270      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15271    esac
15272    ;;
15273  esac
15274
15275  ac_dir=`$as_dirname -- "$ac_file" ||
15276$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15277	 X"$ac_file" : 'X\(//\)[^/]' \| \
15278	 X"$ac_file" : 'X\(//\)$' \| \
15279	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15280$as_echo X"$ac_file" |
15281    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15282	    s//\1/
15283	    q
15284	  }
15285	  /^X\(\/\/\)[^/].*/{
15286	    s//\1/
15287	    q
15288	  }
15289	  /^X\(\/\/\)$/{
15290	    s//\1/
15291	    q
15292	  }
15293	  /^X\(\/\).*/{
15294	    s//\1/
15295	    q
15296	  }
15297	  s/.*/./; q'`
15298  as_dir="$ac_dir"; as_fn_mkdir_p
15299  ac_builddir=.
15300
15301case "$ac_dir" in
15302.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15303*)
15304  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15305  # A ".." for each directory in $ac_dir_suffix.
15306  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15307  case $ac_top_builddir_sub in
15308  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15309  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15310  esac ;;
15311esac
15312ac_abs_top_builddir=$ac_pwd
15313ac_abs_builddir=$ac_pwd$ac_dir_suffix
15314# for backward compatibility:
15315ac_top_builddir=$ac_top_build_prefix
15316
15317case $srcdir in
15318  .)  # We are building in place.
15319    ac_srcdir=.
15320    ac_top_srcdir=$ac_top_builddir_sub
15321    ac_abs_top_srcdir=$ac_pwd ;;
15322  [\\/]* | ?:[\\/]* )  # Absolute name.
15323    ac_srcdir=$srcdir$ac_dir_suffix;
15324    ac_top_srcdir=$srcdir
15325    ac_abs_top_srcdir=$srcdir ;;
15326  *) # Relative name.
15327    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15328    ac_top_srcdir=$ac_top_build_prefix$srcdir
15329    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15330esac
15331ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15332
15333
15334  case $ac_mode in
15335  :F)
15336  #
15337  # CONFIG_FILE
15338  #
15339
15340_ACEOF
15341
15342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15343# If the template does not know about datarootdir, expand it.
15344# FIXME: This hack should be removed a few years after 2.60.
15345ac_datarootdir_hack=; ac_datarootdir_seen=
15346ac_sed_dataroot='
15347/datarootdir/ {
15348  p
15349  q
15350}
15351/@datadir@/p
15352/@docdir@/p
15353/@infodir@/p
15354/@localedir@/p
15355/@mandir@/p'
15356case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15357*datarootdir*) ac_datarootdir_seen=yes;;
15358*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15359  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15360$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15361_ACEOF
15362cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15363  ac_datarootdir_hack='
15364  s&@datadir@&$datadir&g
15365  s&@docdir@&$docdir&g
15366  s&@infodir@&$infodir&g
15367  s&@localedir@&$localedir&g
15368  s&@mandir@&$mandir&g
15369  s&\\\${datarootdir}&$datarootdir&g' ;;
15370esac
15371_ACEOF
15372
15373# Neutralize VPATH when `$srcdir' = `.'.
15374# Shell code in configure.ac might set extrasub.
15375# FIXME: do we really want to maintain this feature?
15376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15377ac_sed_extra="$ac_vpsub
15378$extrasub
15379_ACEOF
15380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15381:t
15382/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15383s|@configure_input@|$ac_sed_conf_input|;t t
15384s&@top_builddir@&$ac_top_builddir_sub&;t t
15385s&@top_build_prefix@&$ac_top_build_prefix&;t t
15386s&@srcdir@&$ac_srcdir&;t t
15387s&@abs_srcdir@&$ac_abs_srcdir&;t t
15388s&@top_srcdir@&$ac_top_srcdir&;t t
15389s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15390s&@builddir@&$ac_builddir&;t t
15391s&@abs_builddir@&$ac_abs_builddir&;t t
15392s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15393$ac_datarootdir_hack
15394"
15395eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15396  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15397
15398test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15399  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15400  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15401      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15402  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15403which seems to be undefined.  Please make sure it is defined" >&5
15404$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15405which seems to be undefined.  Please make sure it is defined" >&2;}
15406
15407  rm -f "$ac_tmp/stdin"
15408  case $ac_file in
15409  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15410  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15411  esac \
15412  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15413 ;;
15414  :H)
15415  #
15416  # CONFIG_HEADER
15417  #
15418  if test x"$ac_file" != x-; then
15419    {
15420      $as_echo "/* $configure_input  */" \
15421      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15422    } >"$ac_tmp/config.h" \
15423      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15424    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15425      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15426$as_echo "$as_me: $ac_file is unchanged" >&6;}
15427    else
15428      rm -f "$ac_file"
15429      mv "$ac_tmp/config.h" "$ac_file" \
15430	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15431    fi
15432  else
15433    $as_echo "/* $configure_input  */" \
15434      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15435      || as_fn_error $? "could not create -" "$LINENO" 5
15436  fi
15437 ;;
15438
15439
15440  esac
15441
15442done # for ac_tag
15443
15444
15445as_fn_exit 0
15446_ACEOF
15447ac_clean_files=$ac_clean_files_save
15448
15449test $ac_write_fail = 0 ||
15450  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15451
15452
15453# configure is writing to config.log, and then calls config.status.
15454# config.status does its own redirection, appending to config.log.
15455# Unfortunately, on DOS this fails, as config.log is still kept open
15456# by configure, so config.status won't be able to write to it; its
15457# output is simply discarded.  So we exec the FD to /dev/null,
15458# effectively closing config.log, so it can be properly (re)opened and
15459# appended to by config.status.  When coming back to configure, we
15460# need to make the FD available again.
15461if test "$no_create" != yes; then
15462  ac_cs_success=:
15463  ac_config_status_args=
15464  test "$silent" = yes &&
15465    ac_config_status_args="$ac_config_status_args --quiet"
15466  exec 5>/dev/null
15467  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15468  exec 5>>auto/config.log
15469  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15470  # would make configure fail if this is the last instruction.
15471  $ac_cs_success || as_fn_exit 1
15472fi
15473if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15474  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15475$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15476fi
15477
15478
15479