xref: /vim-8.2.3635/src/auto/configure (revision e4f25e4a)
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     Disable 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
4191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5
4192$as_echo_n "checking --disable-darwin argument... " >&6; }
4193  # Check whether --enable-darwin was given.
4194if test "${enable_darwin+set}" = set; then :
4195  enableval=$enable_darwin;
4196else
4197  enable_darwin="yes"
4198fi
4199
4200  if test "$enable_darwin" = "yes"; then
4201    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202$as_echo "no" >&6; }
4203    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5
4204$as_echo_n "checking if Darwin files are there... " >&6; }
4205    if test -f os_macosx.m; then
4206      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4207$as_echo "yes" >&6; }
4208    else
4209      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5
4210$as_echo "no, Darwin support disabled" >&6; }
4211      enable_darwin=no
4212    fi
4213  else
4214    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5
4215$as_echo "yes, Darwin support excluded" >&6; }
4216  fi
4217
4218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5
4219$as_echo_n "checking --with-mac-arch argument... " >&6; }
4220
4221# Check whether --with-mac-arch was given.
4222if test "${with_mac_arch+set}" = set; then :
4223  withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5
4224$as_echo "$MACARCH" >&6; }
4225else
4226  MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5
4227$as_echo "defaulting to $MACARCH" >&6; }
4228fi
4229
4230
4231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5
4232$as_echo_n "checking --with-developer-dir argument... " >&6; }
4233
4234# Check whether --with-developer-dir was given.
4235if test "${with_developer_dir+set}" = set; then :
4236  withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4237$as_echo "$DEVELOPER_DIR" >&6; }
4238else
4239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
4240$as_echo "not present" >&6; }
4241fi
4242
4243
4244  if test "x$DEVELOPER_DIR" = "x"; then
4245    # Extract the first word of "xcode-select", so it can be a program name with args.
4246set dummy xcode-select; ac_word=$2
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248$as_echo_n "checking for $ac_word... " >&6; }
4249if ${ac_cv_path_XCODE_SELECT+:} false; then :
4250  $as_echo_n "(cached) " >&6
4251else
4252  case $XCODE_SELECT in
4253  [\\/]* | ?:[\\/]*)
4254  ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
4255  ;;
4256  *)
4257  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258for as_dir in $PATH
4259do
4260  IFS=$as_save_IFS
4261  test -z "$as_dir" && as_dir=.
4262    for ac_exec_ext in '' $ac_executable_extensions; do
4263  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4264    ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
4265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266    break 2
4267  fi
4268done
4269  done
4270IFS=$as_save_IFS
4271
4272  ;;
4273esac
4274fi
4275XCODE_SELECT=$ac_cv_path_XCODE_SELECT
4276if test -n "$XCODE_SELECT"; then
4277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5
4278$as_echo "$XCODE_SELECT" >&6; }
4279else
4280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281$as_echo "no" >&6; }
4282fi
4283
4284
4285    if test "x$XCODE_SELECT" != "x"; then
4286      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5
4287$as_echo_n "checking for developer dir using xcode-select... " >&6; }
4288      DEVELOPER_DIR=`$XCODE_SELECT -print-path`
4289      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4290$as_echo "$DEVELOPER_DIR" >&6; }
4291    else
4292      DEVELOPER_DIR=/Developer
4293    fi
4294  fi
4295
4296  if test "x$MACARCH" = "xboth"; then
4297    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5
4298$as_echo_n "checking for 10.4 universal SDK... " >&6; }
4299                            save_cppflags="$CPPFLAGS"
4300    save_cflags="$CFLAGS"
4301    save_ldflags="$LDFLAGS"
4302    CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
4303    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304/* end confdefs.h.  */
4305
4306int
4307main ()
4308{
4309
4310  ;
4311  return 0;
4312}
4313_ACEOF
4314if ac_fn_c_try_link "$LINENO"; then :
4315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
4316$as_echo "found" >&6; }
4317else
4318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4319$as_echo "not found" >&6; }
4320	CFLAGS="$save_cflags"
4321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5
4322$as_echo_n "checking if Intel architecture is supported... " >&6; }
4323	CPPFLAGS="$CPPFLAGS -arch i386"
4324	LDFLAGS="$save_ldflags -arch i386"
4325	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326/* end confdefs.h.  */
4327
4328int
4329main ()
4330{
4331
4332  ;
4333  return 0;
4334}
4335_ACEOF
4336if ac_fn_c_try_link "$LINENO"; then :
4337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4338$as_echo "yes" >&6; }; MACARCH="intel"
4339else
4340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341$as_echo "no" >&6; }
4342		MACARCH="ppc"
4343		CPPFLAGS="$save_cppflags -arch ppc"
4344		LDFLAGS="$save_ldflags -arch ppc"
4345fi
4346rm -f core conftest.err conftest.$ac_objext \
4347    conftest$ac_exeext conftest.$ac_ext
4348fi
4349rm -f core conftest.err conftest.$ac_objext \
4350    conftest$ac_exeext conftest.$ac_ext
4351  elif test "x$MACARCH" = "xintel"; then
4352    CPPFLAGS="$CPPFLAGS -arch intel"
4353    LDFLAGS="$LDFLAGS -arch intel"
4354  elif test "x$MACARCH" = "xppc"; then
4355    CPPFLAGS="$CPPFLAGS -arch ppc"
4356    LDFLAGS="$LDFLAGS -arch ppc"
4357  fi
4358
4359  if test "$enable_darwin" = "yes"; then
4360    MACOSX=yes
4361    OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
4362    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4363            CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX"
4364
4365                # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4366for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4367		  inttypes.h stdint.h unistd.h
4368do :
4369  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4370ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4371"
4372if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4373  cat >>confdefs.h <<_ACEOF
4374#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4375_ACEOF
4376
4377fi
4378
4379done
4380
4381
4382ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
4383if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then :
4384  CARBON=yes
4385fi
4386
4387
4388    if test "x$CARBON" = "xyes"; then
4389      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
4390	with_x=no
4391      fi
4392    fi
4393  fi
4394
4395        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4396    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4397  fi
4398
4399else
4400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401$as_echo "no" >&6; }
4402fi
4403
4404for ac_header in AvailabilityMacros.h
4405do :
4406  ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
4407if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then :
4408  cat >>confdefs.h <<_ACEOF
4409#define HAVE_AVAILABILITYMACROS_H 1
4410_ACEOF
4411
4412fi
4413
4414done
4415
4416
4417
4418
4419
4420if test "$cross_compiling" = no; then
4421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5
4422$as_echo_n "checking --with-local-dir argument... " >&6; }
4423  have_local_include=''
4424  have_local_lib=''
4425
4426# Check whether --with-local-dir was given.
4427if test "${with_local_dir+set}" = set; then :
4428  withval=$with_local_dir;
4429    local_dir="$withval"
4430    case "$withval" in
4431    */*) ;;
4432    no)
4433      # avoid adding local dir to LDFLAGS and CPPFLAGS
4434      have_local_include=yes
4435      have_local_lib=yes
4436      ;;
4437    *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;;
4438    esac
4439	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5
4440$as_echo "$local_dir" >&6; }
4441
4442else
4443
4444    local_dir=/usr/local
4445    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5
4446$as_echo "Defaulting to $local_dir" >&6; }
4447
4448fi
4449
4450  if test "$GCC" = yes -a "$local_dir" != no; then
4451    echo 'void f(){}' > conftest.c
4452        have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4453    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4454    rm -f conftest.c conftest.o
4455  fi
4456  if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4457    tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4458    if test "$tt" = "$LDFLAGS"; then
4459      LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4460    fi
4461  fi
4462  if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4463    tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4464    if test "$tt" = "$CPPFLAGS"; then
4465      CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4466    fi
4467  fi
4468fi
4469
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5
4471$as_echo_n "checking --with-vim-name argument... " >&6; }
4472
4473# Check whether --with-vim-name was given.
4474if test "${with_vim_name+set}" = set; then :
4475  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5
4476$as_echo "$VIMNAME" >&6; }
4477else
4478  VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5
4479$as_echo "Defaulting to $VIMNAME" >&6; }
4480fi
4481
4482
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5
4484$as_echo_n "checking --with-ex-name argument... " >&6; }
4485
4486# Check whether --with-ex-name was given.
4487if test "${with_ex_name+set}" = set; then :
4488  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5
4489$as_echo "$EXNAME" >&6; }
4490else
4491  EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5
4492$as_echo "Defaulting to ex" >&6; }
4493fi
4494
4495
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5
4497$as_echo_n "checking --with-view-name argument... " >&6; }
4498
4499# Check whether --with-view-name was given.
4500if test "${with_view_name+set}" = set; then :
4501  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5
4502$as_echo "$VIEWNAME" >&6; }
4503else
4504  VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5
4505$as_echo "Defaulting to view" >&6; }
4506fi
4507
4508
4509
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5
4511$as_echo_n "checking --with-global-runtime argument... " >&6; }
4512
4513# Check whether --with-global-runtime was given.
4514if test "${with_global_runtime+set}" = set; then :
4515  withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4516$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4517#define RUNTIME_GLOBAL "$withval"
4518_ACEOF
4519
4520else
4521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522$as_echo "no" >&6; }
4523fi
4524
4525
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5
4527$as_echo_n "checking --with-modified-by argument... " >&6; }
4528
4529# Check whether --with-modified-by was given.
4530if test "${with_modified_by+set}" = set; then :
4531  withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4532$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4533#define MODIFIED_BY "$withval"
4534_ACEOF
4535
4536else
4537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538$as_echo "no" >&6; }
4539fi
4540
4541
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5
4543$as_echo_n "checking if character set is EBCDIC... " >&6; }
4544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545/* end confdefs.h.  */
4546
4547int
4548main ()
4549{
4550 /* TryCompile function for CharSet.
4551   Treat any failure as ASCII for compatibility with existing art.
4552   Use compile-time rather than run-time tests for cross-compiler
4553   tolerance.  */
4554#if '0'!=240
4555make an error "Character set is not EBCDIC"
4556#endif
4557  ;
4558  return 0;
4559}
4560_ACEOF
4561if ac_fn_c_try_compile "$LINENO"; then :
4562   # TryCompile action if true
4563cf_cv_ebcdic=yes
4564else
4565   # TryCompile action if false
4566cf_cv_ebcdic=no
4567fi
4568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569# end of TryCompile ])
4570# end of CacheVal CvEbcdic
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5
4572$as_echo "$cf_cv_ebcdic" >&6; }
4573case "$cf_cv_ebcdic" in  #(vi
4574    yes)	$as_echo "#define EBCDIC 1" >>confdefs.h
4575
4576		line_break='"\\n"'
4577		;;
4578    *)		line_break='"\\012"';;
4579esac
4580
4581
4582if test "$cf_cv_ebcdic" = "yes"; then
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5
4584$as_echo_n "checking for z/OS Unix... " >&6; }
4585case `uname` in
4586    OS/390)	zOSUnix="yes";
4587										if test "$CC" = "cc"; then
4588		  ccm="$_CC_CCMODE"
4589		  ccn="CC"
4590		else
4591		  if test "$CC" = "c89"; then
4592		    ccm="$_CC_C89MODE"
4593		    ccn="C89"
4594		  else
4595		    ccm=1
4596		  fi
4597		fi
4598		if test "$ccm" != "1"; then
4599		  echo ""
4600		  echo "------------------------------------------"
4601		  echo " On z/OS Unix, the environment variable"
4602		  echo " _CC_${ccn}MODE must be set to \"1\"!"
4603		  echo " Do:"
4604		  echo "    export _CC_${ccn}MODE=1"
4605		  echo " and then call configure again."
4606		  echo "------------------------------------------"
4607		  exit 1
4608		fi
4609		# Set CFLAGS for configure process.
4610		# This will be reset later for config.mk.
4611		# Use haltonmsg to force error for missing H files.
4612		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)";
4613		LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4614		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4615$as_echo "yes" >&6; }
4616		;;
4617    *)		zOSUnix="no";
4618		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619$as_echo "no" >&6; }
4620		;;
4621esac
4622fi
4623
4624if test "$zOSUnix" = "yes"; then
4625    QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'"
4626else
4627    QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'"
4628fi
4629
4630
4631
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5
4633$as_echo_n "checking --disable-smack argument... " >&6; }
4634# Check whether --enable-smack was given.
4635if test "${enable_smack+set}" = set; then :
4636  enableval=$enable_smack;
4637else
4638  enable_smack="yes"
4639fi
4640
4641if test "$enable_smack" = "yes"; then
4642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643$as_echo "no" >&6; }
4644  ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default"
4645if test "x$ac_cv_header_linux_xattr_h" = xyes; then :
4646  true
4647else
4648  enable_smack="no"
4649fi
4650
4651
4652else
4653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4654$as_echo "yes" >&6; }
4655fi
4656if test "$enable_smack" = "yes"; then
4657  ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
4658if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
4659  true
4660else
4661  enable_smack="no"
4662fi
4663
4664
4665fi
4666if test "$enable_smack" = "yes"; then
4667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5
4668$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; }
4669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670/* end confdefs.h.  */
4671#include <linux/xattr.h>
4672_ACEOF
4673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4674  $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then :
4675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4676$as_echo "yes" >&6; }
4677else
4678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679$as_echo "no" >&6; }; enable_smack="no"
4680fi
4681rm -f conftest*
4682
4683fi
4684if test "$enable_smack" = "yes"; then
4685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
4686$as_echo_n "checking for setxattr in -lattr... " >&6; }
4687if ${ac_cv_lib_attr_setxattr+:} false; then :
4688  $as_echo_n "(cached) " >&6
4689else
4690  ac_check_lib_save_LIBS=$LIBS
4691LIBS="-lattr  $LIBS"
4692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693/* end confdefs.h.  */
4694
4695/* Override any GCC internal prototype to avoid an error.
4696   Use char because int might match the return type of a GCC
4697   builtin and then its argument prototype would still apply.  */
4698#ifdef __cplusplus
4699extern "C"
4700#endif
4701char setxattr ();
4702int
4703main ()
4704{
4705return setxattr ();
4706  ;
4707  return 0;
4708}
4709_ACEOF
4710if ac_fn_c_try_link "$LINENO"; then :
4711  ac_cv_lib_attr_setxattr=yes
4712else
4713  ac_cv_lib_attr_setxattr=no
4714fi
4715rm -f core conftest.err conftest.$ac_objext \
4716    conftest$ac_exeext conftest.$ac_ext
4717LIBS=$ac_check_lib_save_LIBS
4718fi
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
4720$as_echo "$ac_cv_lib_attr_setxattr" >&6; }
4721if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
4722  LIBS="$LIBS -lattr"
4723	   found_smack="yes"
4724	   $as_echo "#define HAVE_SMACK 1" >>confdefs.h
4725
4726fi
4727
4728fi
4729
4730if test "x$found_smack" = "x"; then
4731    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5
4732$as_echo_n "checking --disable-selinux argument... " >&6; }
4733  # Check whether --enable-selinux was given.
4734if test "${enable_selinux+set}" = set; then :
4735  enableval=$enable_selinux;
4736else
4737  enable_selinux="yes"
4738fi
4739
4740  if test "$enable_selinux" = "yes"; then
4741    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742$as_echo "no" >&6; }
4743    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
4744$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4745if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
4746  $as_echo_n "(cached) " >&6
4747else
4748  ac_check_lib_save_LIBS=$LIBS
4749LIBS="-lselinux  $LIBS"
4750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751/* end confdefs.h.  */
4752
4753/* Override any GCC internal prototype to avoid an error.
4754   Use char because int might match the return type of a GCC
4755   builtin and then its argument prototype would still apply.  */
4756#ifdef __cplusplus
4757extern "C"
4758#endif
4759char is_selinux_enabled ();
4760int
4761main ()
4762{
4763return is_selinux_enabled ();
4764  ;
4765  return 0;
4766}
4767_ACEOF
4768if ac_fn_c_try_link "$LINENO"; then :
4769  ac_cv_lib_selinux_is_selinux_enabled=yes
4770else
4771  ac_cv_lib_selinux_is_selinux_enabled=no
4772fi
4773rm -f core conftest.err conftest.$ac_objext \
4774    conftest$ac_exeext conftest.$ac_ext
4775LIBS=$ac_check_lib_save_LIBS
4776fi
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4778$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4779if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
4780  LIBS="$LIBS -lselinux"
4781	     $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
4782
4783fi
4784
4785  else
4786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4787$as_echo "yes" >&6; }
4788  fi
4789fi
4790
4791
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5
4793$as_echo_n "checking --with-features argument... " >&6; }
4794
4795# Check whether --with-features was given.
4796if test "${with_features+set}" = set; then :
4797  withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5
4798$as_echo "$features" >&6; }
4799else
4800  features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5
4801$as_echo "Defaulting to huge" >&6; }
4802fi
4803
4804
4805dovimdiff=""
4806dogvimdiff=""
4807case "$features" in
4808  tiny)		$as_echo "#define FEAT_TINY 1" >>confdefs.h
4809 ;;
4810  small)	$as_echo "#define FEAT_SMALL 1" >>confdefs.h
4811 ;;
4812  normal)	$as_echo "#define FEAT_NORMAL 1" >>confdefs.h
4813 dovimdiff="installvimdiff";
4814			dogvimdiff="installgvimdiff" ;;
4815  big)		$as_echo "#define FEAT_BIG 1" >>confdefs.h
4816 dovimdiff="installvimdiff";
4817			dogvimdiff="installgvimdiff" ;;
4818  huge)		$as_echo "#define FEAT_HUGE 1" >>confdefs.h
4819 dovimdiff="installvimdiff";
4820			dogvimdiff="installgvimdiff" ;;
4821  *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5
4822$as_echo "Sorry, $features is not supported" >&6; } ;;
4823esac
4824
4825
4826
4827
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5
4829$as_echo_n "checking --with-compiledby argument... " >&6; }
4830
4831# Check whether --with-compiledby was given.
4832if test "${with_compiledby+set}" = set; then :
4833  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4834$as_echo "$withval" >&6; }
4835else
4836  compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837$as_echo "no" >&6; }
4838fi
4839
4840
4841
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5
4843$as_echo_n "checking --disable-xsmp argument... " >&6; }
4844# Check whether --enable-xsmp was given.
4845if test "${enable_xsmp+set}" = set; then :
4846  enableval=$enable_xsmp;
4847else
4848  enable_xsmp="yes"
4849fi
4850
4851
4852if test "$enable_xsmp" = "yes"; then
4853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854$as_echo "no" >&6; }
4855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5
4856$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4857  # Check whether --enable-xsmp-interact was given.
4858if test "${enable_xsmp_interact+set}" = set; then :
4859  enableval=$enable_xsmp_interact;
4860else
4861  enable_xsmp_interact="yes"
4862fi
4863
4864  if test "$enable_xsmp_interact" = "yes"; then
4865    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866$as_echo "no" >&6; }
4867    $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h
4868
4869  else
4870    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4871$as_echo "yes" >&6; }
4872  fi
4873else
4874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4875$as_echo "yes" >&6; }
4876fi
4877
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5
4879$as_echo_n "checking --enable-luainterp argument... " >&6; }
4880# Check whether --enable-luainterp was given.
4881if test "${enable_luainterp+set}" = set; then :
4882  enableval=$enable_luainterp;
4883else
4884  enable_luainterp="no"
4885fi
4886
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5
4888$as_echo "$enable_luainterp" >&6; }
4889
4890if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
4891  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
4892    as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5
4893  fi
4894
4895
4896
4897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5
4898$as_echo_n "checking --with-lua-prefix argument... " >&6; }
4899
4900# Check whether --with-lua_prefix was given.
4901if test "${with_lua_prefix+set}" = set; then :
4902  withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5
4903$as_echo "$with_lua_prefix" >&6; }
4904else
4905  with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906$as_echo "no" >&6; }
4907fi
4908
4909
4910  if test "X$with_lua_prefix" != "X"; then
4911       vi_cv_path_lua_pfx="$with_lua_prefix"
4912  else
4913    { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5
4914$as_echo_n "checking LUA_PREFIX environment var... " >&6; }
4915    if test "X$LUA_PREFIX" != "X"; then
4916	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5
4917$as_echo "\"$LUA_PREFIX\"" >&6; }
4918	vi_cv_path_lua_pfx="$LUA_PREFIX"
4919    else
4920	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5
4921$as_echo "not set, default to /usr" >&6; }
4922	vi_cv_path_lua_pfx="/usr"
4923    fi
4924  fi
4925
4926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5
4927$as_echo_n "checking --with-luajit... " >&6; }
4928
4929# Check whether --with-luajit was given.
4930if test "${with_luajit+set}" = set; then :
4931  withval=$with_luajit; vi_cv_with_luajit="$withval"
4932else
4933  vi_cv_with_luajit="no"
4934fi
4935
4936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5
4937$as_echo "$vi_cv_with_luajit" >&6; }
4938
4939  LUA_INC=
4940  if test "X$vi_cv_path_lua_pfx" != "X"; then
4941    if test "x$vi_cv_with_luajit" != "xno"; then
4942            # Extract the first word of "luajit", so it can be a program name with args.
4943set dummy luajit; ac_word=$2
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945$as_echo_n "checking for $ac_word... " >&6; }
4946if ${ac_cv_path_vi_cv_path_luajit+:} false; then :
4947  $as_echo_n "(cached) " >&6
4948else
4949  case $vi_cv_path_luajit in
4950  [\\/]* | ?:[\\/]*)
4951  ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path.
4952  ;;
4953  *)
4954  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955for as_dir in $PATH
4956do
4957  IFS=$as_save_IFS
4958  test -z "$as_dir" && as_dir=.
4959    for ac_exec_ext in '' $ac_executable_extensions; do
4960  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961    ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext"
4962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963    break 2
4964  fi
4965done
4966  done
4967IFS=$as_save_IFS
4968
4969  ;;
4970esac
4971fi
4972vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit
4973if test -n "$vi_cv_path_luajit"; then
4974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5
4975$as_echo "$vi_cv_path_luajit" >&6; }
4976else
4977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978$as_echo "no" >&6; }
4979fi
4980
4981
4982      if test "X$vi_cv_path_luajit" != "X"; then
4983		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5
4984$as_echo_n "checking LuaJIT version... " >&6; }
4985if ${vi_cv_version_luajit+:} false; then :
4986  $as_echo_n "(cached) " >&6
4987else
4988   vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'`
4989fi
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5
4991$as_echo "$vi_cv_version_luajit" >&6; }
4992	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5
4993$as_echo_n "checking Lua version of LuaJIT... " >&6; }
4994if ${vi_cv_version_lua_luajit+:} false; then :
4995  $as_echo_n "(cached) " >&6
4996else
4997   vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'`
4998fi
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5
5000$as_echo "$vi_cv_version_lua_luajit" >&6; }
5001	vi_cv_path_lua="$vi_cv_path_luajit"
5002	vi_cv_version_lua="$vi_cv_version_lua_luajit"
5003      fi
5004    else
5005            # Extract the first word of "lua", so it can be a program name with args.
5006set dummy lua; ac_word=$2
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008$as_echo_n "checking for $ac_word... " >&6; }
5009if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then :
5010  $as_echo_n "(cached) " >&6
5011else
5012  case $vi_cv_path_plain_lua in
5013  [\\/]* | ?:[\\/]*)
5014  ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path.
5015  ;;
5016  *)
5017  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018for as_dir in $PATH
5019do
5020  IFS=$as_save_IFS
5021  test -z "$as_dir" && as_dir=.
5022    for ac_exec_ext in '' $ac_executable_extensions; do
5023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5024    ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext"
5025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026    break 2
5027  fi
5028done
5029  done
5030IFS=$as_save_IFS
5031
5032  ;;
5033esac
5034fi
5035vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua
5036if test -n "$vi_cv_path_plain_lua"; then
5037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5
5038$as_echo "$vi_cv_path_plain_lua" >&6; }
5039else
5040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041$as_echo "no" >&6; }
5042fi
5043
5044
5045      if test "X$vi_cv_path_plain_lua" != "X"; then
5046		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5
5047$as_echo_n "checking Lua version... " >&6; }
5048if ${vi_cv_version_plain_lua+:} false; then :
5049  $as_echo_n "(cached) " >&6
5050else
5051   vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'`
5052fi
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5
5054$as_echo "$vi_cv_version_plain_lua" >&6; }
5055      fi
5056      vi_cv_path_lua="$vi_cv_path_plain_lua"
5057      vi_cv_version_lua="$vi_cv_version_plain_lua"
5058    fi
5059    if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then
5060      { $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
5061$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; }
5062      if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then
5063	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5064$as_echo "yes" >&6; }
5065	LUA_INC=/luajit-$vi_cv_version_luajit
5066      fi
5067    fi
5068    if test "X$LUA_INC" = "X"; then
5069      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5
5070$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; }
5071      if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then
5072	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5073$as_echo "yes" >&6; }
5074      else
5075	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076$as_echo "no" >&6; }
5077	{ $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
5078$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; }
5079	if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then
5080	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5081$as_echo "yes" >&6; }
5082	  LUA_INC=/lua$vi_cv_version_lua
5083	else
5084	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085$as_echo "no" >&6; }
5086	  vi_cv_path_lua_pfx=
5087	fi
5088      fi
5089    fi
5090  fi
5091
5092  if test "X$vi_cv_path_lua_pfx" != "X"; then
5093    if test "x$vi_cv_with_luajit" != "xno"; then
5094      multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5095      if test "X$multiarch" != "X"; then
5096	lib_multiarch="lib/${multiarch}"
5097      else
5098	lib_multiarch="lib"
5099      fi
5100      if test "X$vi_cv_version_lua" = "X"; then
5101	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit"
5102      else
5103	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua"
5104      fi
5105    else
5106      if test "X$LUA_INC" != "X"; then
5107		LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua"
5108      else
5109	LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua"
5110      fi
5111    fi
5112    if test "$enable_luainterp" = "dynamic"; then
5113      lua_ok="yes"
5114    else
5115      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5
5116$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; }
5117      libs_save=$LIBS
5118      LIBS="$LIBS $LUA_LIBS"
5119      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120/* end confdefs.h.  */
5121
5122int
5123main ()
5124{
5125
5126  ;
5127  return 0;
5128}
5129_ACEOF
5130if ac_fn_c_try_link "$LINENO"; then :
5131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5132$as_echo "yes" >&6; }; lua_ok="yes"
5133else
5134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS=""
5136fi
5137rm -f core conftest.err conftest.$ac_objext \
5138    conftest$ac_exeext conftest.$ac_ext
5139      LIBS=$libs_save
5140    fi
5141    if test "x$lua_ok" = "xyes"; then
5142      LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}"
5143      LUA_SRC="if_lua.c"
5144      LUA_OBJ="objects/if_lua.o"
5145      LUA_PRO="if_lua.pro"
5146      $as_echo "#define FEAT_LUA 1" >>confdefs.h
5147
5148    fi
5149    if test "$enable_luainterp" = "dynamic"; then
5150      if test "x$vi_cv_with_luajit" != "xno"; then
5151	luajit="jit"
5152      fi
5153      if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
5154	vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
5155      else
5156	if test "x$MACOSX" = "xyes"; then
5157	  ext="dylib"
5158	  indexes=""
5159	else
5160	  ext="so"
5161	  indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9"
5162	  multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5163	  if test "X$multiarch" != "X"; then
5164	    lib_multiarch="lib/${multiarch}"
5165	  fi
5166	fi
5167			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5
5168$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; }
5169	for subdir in "${lib_multiarch}" lib64 lib; do
5170	  if test -z "$subdir"; then
5171	    continue
5172	  fi
5173	  for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \
5174	    ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do
5175	    for i in $indexes ""; do
5176	      if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then
5177		sover2="$i"
5178		break 3
5179	      fi
5180	    done
5181	  done
5182	  sover=""
5183	done
5184	if test "X$sover" = "X"; then
5185	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186$as_echo "no" >&6; }
5187	  lua_ok="no"
5188	  vi_cv_dll_name_lua="liblua${luajit}.${ext}"
5189	else
5190	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5191$as_echo "yes" >&6; }
5192	  lua_ok="yes"
5193	  vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2"
5194	fi
5195      fi
5196      $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h
5197
5198      LUA_LIBS=""
5199      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS"
5200    fi
5201    if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \
5202       test "x$MACOSX" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \
5203       test "`(uname -m) 2>/dev/null`" = "x86_64"; then
5204            LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS"
5205    fi
5206  fi
5207  if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then
5208    as_fn_error $? "could not configure lua" "$LINENO" 5
5209  fi
5210
5211
5212
5213
5214
5215fi
5216
5217
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5
5219$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
5220# Check whether --enable-mzschemeinterp was given.
5221if test "${enable_mzschemeinterp+set}" = set; then :
5222  enableval=$enable_mzschemeinterp;
5223else
5224  enable_mzschemeinterp="no"
5225fi
5226
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5
5228$as_echo "$enable_mzschemeinterp" >&6; }
5229
5230if test "$enable_mzschemeinterp" = "yes"; then
5231
5232
5233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5
5234$as_echo_n "checking --with-plthome argument... " >&6; }
5235
5236# Check whether --with-plthome was given.
5237if test "${with_plthome+set}" = set; then :
5238  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5
5239$as_echo "$with_plthome" >&6; }
5240else
5241  with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5242$as_echo "\"no\"" >&6; }
5243fi
5244
5245
5246  if test "X$with_plthome" != "X"; then
5247       vi_cv_path_mzscheme_pfx="$with_plthome"
5248       vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5249  else
5250    { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5
5251$as_echo_n "checking PLTHOME environment var... " >&6; }
5252    if test "X$PLTHOME" != "X"; then
5253	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5
5254$as_echo "\"$PLTHOME\"" >&6; }
5255	vi_cv_path_mzscheme_pfx="$PLTHOME"
5256	vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5257    else
5258	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
5259$as_echo "not set" >&6; }
5260		# Extract the first word of "mzscheme", so it can be a program name with args.
5261set dummy mzscheme; ac_word=$2
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263$as_echo_n "checking for $ac_word... " >&6; }
5264if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then :
5265  $as_echo_n "(cached) " >&6
5266else
5267  case $vi_cv_path_mzscheme in
5268  [\\/]* | ?:[\\/]*)
5269  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
5270  ;;
5271  *)
5272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273for as_dir in $PATH
5274do
5275  IFS=$as_save_IFS
5276  test -z "$as_dir" && as_dir=.
5277    for ac_exec_ext in '' $ac_executable_extensions; do
5278  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5279    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
5280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281    break 2
5282  fi
5283done
5284  done
5285IFS=$as_save_IFS
5286
5287  ;;
5288esac
5289fi
5290vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
5291if test -n "$vi_cv_path_mzscheme"; then
5292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5
5293$as_echo "$vi_cv_path_mzscheme" >&6; }
5294else
5295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296$as_echo "no" >&6; }
5297fi
5298
5299
5300
5301			if test "X$vi_cv_path_mzscheme" != "X"; then
5302	  lsout=`ls -l $vi_cv_path_mzscheme`
5303	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
5304	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
5305	  fi
5306	fi
5307
5308	if test "X$vi_cv_path_mzscheme" != "X"; then
5309	    	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5
5310$as_echo_n "checking MzScheme install prefix... " >&6; }
5311if ${vi_cv_path_mzscheme_pfx+:} false; then :
5312  $as_echo_n "(cached) " >&6
5313else
5314  	    	    echo "(display (simplify-path		\
5315	       (build-path (call-with-values	\
5316		(lambda () (split-path (find-system-path (quote exec-file)))) \
5317		(lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
5318	    	     vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
5319		sed -e 's+/$++'`
5320fi
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5
5322$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
5323	    rm -f mzdirs.scm
5324	fi
5325    fi
5326  fi
5327
5328  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5329    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5
5330$as_echo_n "checking for racket include directory... " >&6; }
5331    SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'`
5332    if test "X$SCHEME_INC" != "X"; then
5333      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5
5334$as_echo "${SCHEME_INC}" >&6; }
5335    else
5336      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5337$as_echo "not found" >&6; }
5338      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
5339$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
5340      if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then
5341	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
5342	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5343$as_echo "yes" >&6; }
5344      else
5345	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346$as_echo "no" >&6; }
5347	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
5348$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
5349	if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then
5350	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351$as_echo "yes" >&6; }
5352	  SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
5353	else
5354	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355$as_echo "no" >&6; }
5356	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5
5357$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; }
5358	  if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then
5359	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5360$as_echo "yes" >&6; }
5361	    SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket
5362	  else
5363	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364$as_echo "no" >&6; }
5365	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5
5366$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
5367	    if test -f /usr/include/plt/scheme.h; then
5368	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5369$as_echo "yes" >&6; }
5370	      SCHEME_INC=/usr/include/plt
5371	    else
5372	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373$as_echo "no" >&6; }
5374	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5
5375$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; }
5376	      if test -f /usr/include/racket/scheme.h; then
5377		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5378$as_echo "yes" >&6; }
5379		SCHEME_INC=/usr/include/racket
5380	      else
5381		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382$as_echo "no" >&6; }
5383		vi_cv_path_mzscheme_pfx=
5384	      fi
5385	    fi
5386	  fi
5387	fi
5388      fi
5389    fi
5390  fi
5391
5392  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5393
5394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5
5395$as_echo_n "checking for racket lib directory... " >&6; }
5396    SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'`
5397    if test "X$SCHEME_LIB" != "X"; then
5398      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5
5399$as_echo "${SCHEME_LIB}" >&6; }
5400    else
5401      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5402$as_echo "not found" >&6; }
5403    fi
5404
5405    for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do
5406      if test "X$path" != "X"; then
5407	if test "x$MACOSX" = "xyes"; then
5408	  MZSCHEME_LIBS="-framework Racket"
5409	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5410	elif test -f "${path}/libmzscheme3m.a"; then
5411	  MZSCHEME_LIBS="${path}/libmzscheme3m.a"
5412	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5413	elif test -f "${path}/libracket3m.a"; then
5414	  MZSCHEME_LIBS="${path}/libracket3m.a"
5415	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5416	elif test -f "${path}/libracket.a"; then
5417	  MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a"
5418	elif test -f "${path}/libmzscheme.a"; then
5419	  MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a"
5420	else
5421	  	  if test -f "${path}/libmzscheme3m.so"; then
5422	    MZSCHEME_LIBS="-L${path} -lmzscheme3m"
5423	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5424	  elif test -f "${path}/libracket3m.so"; then
5425	    MZSCHEME_LIBS="-L${path} -lracket3m"
5426	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5427	  elif test -f "${path}/libracket.so"; then
5428	    MZSCHEME_LIBS="-L${path} -lracket -lmzgc"
5429	  else
5430	    	    if test "$path" != "$SCHEME_LIB"; then
5431	      continue
5432	    fi
5433	    MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc"
5434	  fi
5435	  if test "$GCC" = yes; then
5436	    	    	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}"
5437	  elif test "`(uname) 2>/dev/null`" = SunOS &&
5438				   uname -r | grep '^5' >/dev/null; then
5439	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}"
5440	  fi
5441	fi
5442      fi
5443      if test "X$MZSCHEME_LIBS" != "X"; then
5444	break
5445      fi
5446    done
5447
5448    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5
5449$as_echo_n "checking if racket requires -pthread... " >&6; }
5450    if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then
5451      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5452$as_echo "yes" >&6; }
5453      MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread"
5454      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread"
5455    else
5456      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457$as_echo "no" >&6; }
5458    fi
5459
5460    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5
5461$as_echo_n "checking for racket config directory... " >&6; }
5462    SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'`
5463    if test "X$SCHEME_CONFIGDIR" != "X"; then
5464      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'"
5465      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5
5466$as_echo "${SCHEME_CONFIGDIR}" >&6; }
5467    else
5468      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5469$as_echo "not found" >&6; }
5470    fi
5471
5472    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5
5473$as_echo_n "checking for racket collects directory... " >&6; }
5474    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))))'`
5475    if test "X$SCHEME_COLLECTS" = "X"; then
5476      if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then
5477	SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/
5478      else
5479	if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then
5480	  SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/
5481	else
5482	  if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then
5483	    SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/
5484	  else
5485	    if test -d "$vi_cv_path_mzscheme_pfx/collects"; then
5486	      SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/
5487	    fi
5488	  fi
5489	fi
5490      fi
5491    fi
5492    if test "X$SCHEME_COLLECTS" != "X" ; then
5493      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5
5494$as_echo "${SCHEME_COLLECTS}" >&6; }
5495    else
5496      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5497$as_echo "not found" >&6; }
5498    fi
5499
5500    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5
5501$as_echo_n "checking for mzscheme_base.c... " >&6; }
5502    if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
5503      MZSCHEME_EXTRA="mzscheme_base.c"
5504      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5505      MZSCHEME_MOD="++lib scheme/base"
5506    else
5507      if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then
5508	MZSCHEME_EXTRA="mzscheme_base.c"
5509	MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5510	MZSCHEME_MOD="++lib scheme/base"
5511      else
5512	if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then
5513	  MZSCHEME_EXTRA="mzscheme_base.c"
5514	  MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool"
5515	  MZSCHEME_MOD=""
5516	fi
5517      fi
5518    fi
5519    if test "X$MZSCHEME_EXTRA" != "X" ; then
5520            MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
5521      { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5
5522$as_echo "needed" >&6; }
5523    else
5524      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
5525$as_echo "not needed" >&6; }
5526    fi
5527
5528        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5
5529$as_echo_n "checking for ffi_type_void in -lffi... " >&6; }
5530if ${ac_cv_lib_ffi_ffi_type_void+:} false; then :
5531  $as_echo_n "(cached) " >&6
5532else
5533  ac_check_lib_save_LIBS=$LIBS
5534LIBS="-lffi  $LIBS"
5535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536/* end confdefs.h.  */
5537
5538/* Override any GCC internal prototype to avoid an error.
5539   Use char because int might match the return type of a GCC
5540   builtin and then its argument prototype would still apply.  */
5541#ifdef __cplusplus
5542extern "C"
5543#endif
5544char ffi_type_void ();
5545int
5546main ()
5547{
5548return ffi_type_void ();
5549  ;
5550  return 0;
5551}
5552_ACEOF
5553if ac_fn_c_try_link "$LINENO"; then :
5554  ac_cv_lib_ffi_ffi_type_void=yes
5555else
5556  ac_cv_lib_ffi_ffi_type_void=no
5557fi
5558rm -f core conftest.err conftest.$ac_objext \
5559    conftest$ac_exeext conftest.$ac_ext
5560LIBS=$ac_check_lib_save_LIBS
5561fi
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5
5563$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; }
5564if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then :
5565  MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi"
5566fi
5567
5568
5569    MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
5570      -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'"
5571
5572        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5
5573$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; }
5574    cflags_save=$CFLAGS
5575    libs_save=$LIBS
5576    CFLAGS="$CFLAGS $MZSCHEME_CFLAGS"
5577    LIBS="$LIBS $MZSCHEME_LIBS"
5578    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579/* end confdefs.h.  */
5580
5581int
5582main ()
5583{
5584
5585  ;
5586  return 0;
5587}
5588_ACEOF
5589if ac_fn_c_try_link "$LINENO"; then :
5590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5591$as_echo "yes" >&6; }; mzs_ok=yes
5592else
5593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5
5594$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no
5595fi
5596rm -f core conftest.err conftest.$ac_objext \
5597    conftest$ac_exeext conftest.$ac_ext
5598    CFLAGS=$cflags_save
5599    LIBS=$libs_save
5600    if test $mzs_ok = yes; then
5601      MZSCHEME_SRC="if_mzsch.c"
5602      MZSCHEME_OBJ="objects/if_mzsch.o"
5603      MZSCHEME_PRO="if_mzsch.pro"
5604      $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h
5605
5606    else
5607      MZSCHEME_CFLAGS=
5608      MZSCHEME_LIBS=
5609      MZSCHEME_EXTRA=
5610      MZSCHEME_MZC=
5611    fi
5612  fi
5613
5614
5615
5616
5617
5618
5619
5620fi
5621
5622
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5
5624$as_echo_n "checking --enable-perlinterp argument... " >&6; }
5625# Check whether --enable-perlinterp was given.
5626if test "${enable_perlinterp+set}" = set; then :
5627  enableval=$enable_perlinterp;
5628else
5629  enable_perlinterp="no"
5630fi
5631
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5
5633$as_echo "$enable_perlinterp" >&6; }
5634if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
5635  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
5636    as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5
5637  fi
5638
5639  # Extract the first word of "perl", so it can be a program name with args.
5640set dummy perl; ac_word=$2
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642$as_echo_n "checking for $ac_word... " >&6; }
5643if ${ac_cv_path_vi_cv_path_perl+:} false; then :
5644  $as_echo_n "(cached) " >&6
5645else
5646  case $vi_cv_path_perl in
5647  [\\/]* | ?:[\\/]*)
5648  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
5649  ;;
5650  *)
5651  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652for as_dir in $PATH
5653do
5654  IFS=$as_save_IFS
5655  test -z "$as_dir" && as_dir=.
5656    for ac_exec_ext in '' $ac_executable_extensions; do
5657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
5659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660    break 2
5661  fi
5662done
5663  done
5664IFS=$as_save_IFS
5665
5666  ;;
5667esac
5668fi
5669vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
5670if test -n "$vi_cv_path_perl"; then
5671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5
5672$as_echo "$vi_cv_path_perl" >&6; }
5673else
5674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675$as_echo "no" >&6; }
5676fi
5677
5678
5679  if test "X$vi_cv_path_perl" != "X"; then
5680    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5
5681$as_echo_n "checking Perl version... " >&6; }
5682    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
5683     eval `$vi_cv_path_perl -V:usethreads`
5684     eval `$vi_cv_path_perl -V:libperl`
5685     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
5686       badthreads=no
5687     else
5688       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
5689	 eval `$vi_cv_path_perl -V:use5005threads`
5690	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
5691	   badthreads=no
5692	 else
5693	   badthreads=yes
5694	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
5695$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
5696	 fi
5697       else
5698	 badthreads=yes
5699	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
5700$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
5701       fi
5702     fi
5703     if test $badthreads = no; then
5704      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
5705$as_echo "OK" >&6; }
5706      eval `$vi_cv_path_perl -V:shrpenv`
5707      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
5708	shrpenv=""
5709      fi
5710      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
5711
5712      vi_cv_perl_extutils=unknown_perl_extutils_path
5713      for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do
5714	xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp"
5715	if test -f "$xsubpp_path"; then
5716	  vi_cv_perl_xsubpp="$xsubpp_path"
5717	fi
5718      done
5719
5720                  perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
5721	      -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \
5722			-e 's/-fdebug-prefix-map[^ ]*//g'`
5723            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
5724		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
5725			-e 's/-bE:perl.exp//' -e 's/-lc //'`
5726                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
5727		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
5728
5729                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5
5730$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
5731      cflags_save=$CFLAGS
5732      libs_save=$LIBS
5733      ldflags_save=$LDFLAGS
5734      CFLAGS="$CFLAGS $perlcppflags"
5735      LIBS="$LIBS $perllibs"
5736      perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'`
5737      LDFLAGS="$perlldflags $LDFLAGS"
5738      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739/* end confdefs.h.  */
5740
5741int
5742main ()
5743{
5744
5745  ;
5746  return 0;
5747}
5748_ACEOF
5749if ac_fn_c_try_link "$LINENO"; then :
5750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5751$as_echo "yes" >&6; }; perl_ok=yes
5752else
5753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5
5754$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
5755fi
5756rm -f core conftest.err conftest.$ac_objext \
5757    conftest$ac_exeext conftest.$ac_ext
5758      CFLAGS=$cflags_save
5759      LIBS=$libs_save
5760      LDFLAGS=$ldflags_save
5761      if test $perl_ok = yes; then
5762	if test "X$perlcppflags" != "X"; then
5763	  	  PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
5764	fi
5765	if test "X$perlldflags" != "X"; then
5766	  if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then
5767	    LDFLAGS="$perlldflags $LDFLAGS"
5768	  fi
5769	fi
5770	PERL_LIBS=$perllibs
5771	PERL_SRC="auto/if_perl.c if_perlsfio.c"
5772	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
5773	PERL_PRO="if_perl.pro if_perlsfio.pro"
5774	$as_echo "#define FEAT_PERL 1" >>confdefs.h
5775
5776      fi
5777     fi
5778    else
5779      { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
5780$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
5781    fi
5782  fi
5783
5784  if test "x$MACOSX" = "xyes"; then
5785        dir=/System/Library/Perl
5786    darwindir=$dir/darwin
5787    if test -d $darwindir; then
5788      PERL=/usr/bin/perl
5789    else
5790            dir=/System/Library/Perl/5.8.1
5791      darwindir=$dir/darwin-thread-multi-2level
5792      if test -d $darwindir; then
5793	PERL=/usr/bin/perl
5794      fi
5795    fi
5796    if test -n "$PERL"; then
5797      PERL_DIR="$dir"
5798      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
5799      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
5800      PERL_LIBS="-L$darwindir/CORE -lperl"
5801    fi
5802                PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
5803    PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
5804  fi
5805  if test "$enable_perlinterp" = "dynamic"; then
5806    if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then
5807      $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h
5808
5809      PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
5810    fi
5811  fi
5812
5813  if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
5814    as_fn_error $? "could not configure perl" "$LINENO" 5
5815  fi
5816fi
5817
5818
5819
5820
5821
5822
5823
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5
5825$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5826# Check whether --enable-pythoninterp was given.
5827if test "${enable_pythoninterp+set}" = set; then :
5828  enableval=$enable_pythoninterp;
5829else
5830  enable_pythoninterp="no"
5831fi
5832
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
5834$as_echo "$enable_pythoninterp" >&6; }
5835if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
5836  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
5837    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
5838  fi
5839
5840    for ac_prog in python2 python
5841do
5842  # Extract the first word of "$ac_prog", so it can be a program name with args.
5843set dummy $ac_prog; ac_word=$2
5844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5845$as_echo_n "checking for $ac_word... " >&6; }
5846if ${ac_cv_path_vi_cv_path_python+:} false; then :
5847  $as_echo_n "(cached) " >&6
5848else
5849  case $vi_cv_path_python in
5850  [\\/]* | ?:[\\/]*)
5851  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5852  ;;
5853  *)
5854  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855for as_dir in $PATH
5856do
5857  IFS=$as_save_IFS
5858  test -z "$as_dir" && as_dir=.
5859    for ac_exec_ext in '' $ac_executable_extensions; do
5860  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863    break 2
5864  fi
5865done
5866  done
5867IFS=$as_save_IFS
5868
5869  ;;
5870esac
5871fi
5872vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5873if test -n "$vi_cv_path_python"; then
5874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
5875$as_echo "$vi_cv_path_python" >&6; }
5876else
5877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878$as_echo "no" >&6; }
5879fi
5880
5881
5882  test -n "$vi_cv_path_python" && break
5883done
5884
5885  if test "X$vi_cv_path_python" != "X"; then
5886
5887        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
5888$as_echo_n "checking Python version... " >&6; }
5889if ${vi_cv_var_python_version+:} false; then :
5890  $as_echo_n "(cached) " >&6
5891else
5892  vi_cv_var_python_version=`
5893	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5894
5895fi
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5
5897$as_echo "$vi_cv_var_python_version" >&6; }
5898
5899        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5
5900$as_echo_n "checking Python is 2.3 or better... " >&6; }
5901    if ${vi_cv_path_python} -c \
5902	"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"
5903    then
5904      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
5905$as_echo "yep" >&6; }
5906
5907            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
5908$as_echo_n "checking Python's install prefix... " >&6; }
5909if ${vi_cv_path_python_pfx+:} false; then :
5910  $as_echo_n "(cached) " >&6
5911else
5912   vi_cv_path_python_pfx=`
5913	    ${vi_cv_path_python} -c \
5914		"import sys; print sys.prefix"`
5915fi
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5
5917$as_echo "$vi_cv_path_python_pfx" >&6; }
5918
5919            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
5920$as_echo_n "checking Python's execution prefix... " >&6; }
5921if ${vi_cv_path_python_epfx+:} false; then :
5922  $as_echo_n "(cached) " >&6
5923else
5924   vi_cv_path_python_epfx=`
5925	    ${vi_cv_path_python} -c \
5926		"import sys; print sys.exec_prefix"`
5927fi
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5
5929$as_echo "$vi_cv_path_python_epfx" >&6; }
5930
5931
5932      if ${vi_cv_path_pythonpath+:} false; then :
5933  $as_echo_n "(cached) " >&6
5934else
5935   vi_cv_path_pythonpath=`
5936	    unset PYTHONPATH;
5937	    ${vi_cv_path_python} -c \
5938		"import sys, string; print string.join(sys.path,':')"`
5939fi
5940
5941
5942
5943
5944# Check whether --with-python-config-dir was given.
5945if test "${with_python_config_dir+set}" = set; then :
5946  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"
5947fi
5948
5949
5950      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
5951$as_echo_n "checking Python's configuration directory... " >&6; }
5952if ${vi_cv_path_python_conf+:} false; then :
5953  $as_echo_n "(cached) " >&6
5954else
5955
5956	vi_cv_path_python_conf=
5957	d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"`
5958	if test -d "$d" && test -f "$d/config.c"; then
5959	  vi_cv_path_python_conf="$d"
5960	else
5961	  for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5962	    for subdir in lib64 lib share; do
5963	      d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5964	      if test -d "$d" && test -f "$d/config.c"; then
5965		vi_cv_path_python_conf="$d"
5966	      fi
5967	    done
5968	  done
5969	fi
5970
5971fi
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5
5973$as_echo "$vi_cv_path_python_conf" >&6; }
5974
5975      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5976
5977      if test "X$PYTHON_CONFDIR" = "X"; then
5978	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
5979$as_echo "can't find it!" >&6; }
5980      else
5981
5982			if ${vi_cv_path_python_plibs+:} false; then :
5983  $as_echo_n "(cached) " >&6
5984else
5985
5986	    pwd=`pwd`
5987	    tmp_mkf="$pwd/config-PyMake$$"
5988	    cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5989__:
5990	@echo "python_BASEMODLIBS='$(BASEMODLIBS)'"
5991	@echo "python_LIBS='$(LIBS)'"
5992	@echo "python_SYSLIBS='$(SYSLIBS)'"
5993	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5994	@echo "python_DLLLIBRARY='$(DLLLIBRARY)'"
5995	@echo "python_INSTSONAME='$(INSTSONAME)'"
5996	@echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'"
5997	@echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'"
5998	@echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'"
5999eof
6000	    	    eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6001	    rm -f -- "${tmp_mkf}"
6002	    if test "x$MACOSX" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \
6003		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
6004	      vi_cv_path_python_plibs="-framework Python"
6005	      if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6006		  vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python"
6007	      fi
6008	    else
6009	      if test "${vi_cv_var_python_version}" = "1.4"; then
6010		  vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
6011	      else
6012		  vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
6013	      fi
6014	      	      	      	      if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6015	        python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'`
6016		python_link_path=`echo ${python_LINKFORSHARED} |   sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'`
6017	        if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6018	          		  	          python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}"
6019		  if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6020		    		    python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}"
6021	            	            		  fi
6022	          python_LINKFORSHARED="${python_link_symbol} ${python_link_path}"
6023	        fi
6024	      fi
6025	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
6026	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
6027	    fi
6028
6029fi
6030
6031	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5
6032$as_echo_n "checking Python's dll name... " >&6; }
6033if ${vi_cv_dll_name_python+:} false; then :
6034  $as_echo_n "(cached) " >&6
6035else
6036
6037	  if test "X$python_DLLLIBRARY" != "X"; then
6038	    vi_cv_dll_name_python="$python_DLLLIBRARY"
6039	  else
6040	    vi_cv_dll_name_python="$python_INSTSONAME"
6041	  fi
6042
6043fi
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5
6045$as_echo "$vi_cv_dll_name_python" >&6; }
6046
6047	PYTHON_LIBS="${vi_cv_path_python_plibs}"
6048	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
6049	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'"
6050	else
6051	  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}\"'"
6052	fi
6053	PYTHON_SRC="if_python.c"
6054	PYTHON_OBJ="objects/if_python.o"
6055	if test "${vi_cv_var_python_version}" = "1.4"; then
6056	   PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
6057	fi
6058    PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
6059
6060								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6061$as_echo_n "checking if -pthread should be used... " >&6; }
6062	threadsafe_flag=
6063	thread_lib=
6064	        if test "`(uname) 2>/dev/null`" != Darwin; then
6065	  test "$GCC" = yes && threadsafe_flag="-pthread"
6066	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
6067	    threadsafe_flag="-D_THREAD_SAFE"
6068	    thread_lib="-pthread"
6069	  fi
6070	  if test "`(uname) 2>/dev/null`" = SunOS; then
6071	    threadsafe_flag="-pthreads"
6072	  fi
6073	fi
6074	libs_save_old=$LIBS
6075	if test -n "$threadsafe_flag"; then
6076	  cflags_save=$CFLAGS
6077	  CFLAGS="$CFLAGS $threadsafe_flag"
6078	  LIBS="$LIBS $thread_lib"
6079	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080/* end confdefs.h.  */
6081
6082int
6083main ()
6084{
6085
6086  ;
6087  return 0;
6088}
6089_ACEOF
6090if ac_fn_c_try_link "$LINENO"; then :
6091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6092$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
6093else
6094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095$as_echo "no" >&6; }; LIBS=$libs_save_old
6096
6097fi
6098rm -f core conftest.err conftest.$ac_objext \
6099    conftest$ac_exeext conftest.$ac_ext
6100	  CFLAGS=$cflags_save
6101	else
6102	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6103$as_echo "no" >&6; }
6104	fi
6105
6106			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5
6107$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
6108	cflags_save=$CFLAGS
6109	libs_save=$LIBS
6110	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6111	LIBS="$LIBS $PYTHON_LIBS"
6112	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113/* end confdefs.h.  */
6114
6115int
6116main ()
6117{
6118
6119  ;
6120  return 0;
6121}
6122_ACEOF
6123if ac_fn_c_try_link "$LINENO"; then :
6124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6125$as_echo "yes" >&6; }; python_ok=yes
6126else
6127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5
6128$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
6129fi
6130rm -f core conftest.err conftest.$ac_objext \
6131    conftest$ac_exeext conftest.$ac_ext
6132	CFLAGS=$cflags_save
6133	LIBS=$libs_save
6134	if test $python_ok = yes; then
6135	  $as_echo "#define FEAT_PYTHON 1" >>confdefs.h
6136
6137	else
6138	  LIBS=$libs_save_old
6139	  PYTHON_SRC=
6140	  PYTHON_OBJ=
6141	  PYTHON_LIBS=
6142	  PYTHON_CFLAGS=
6143	fi
6144      fi
6145    else
6146      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6147$as_echo "too old" >&6; }
6148    fi
6149  fi
6150
6151  if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
6152    as_fn_error $? "could not configure python" "$LINENO" 5
6153  fi
6154fi
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5
6165$as_echo_n "checking --enable-python3interp argument... " >&6; }
6166# Check whether --enable-python3interp was given.
6167if test "${enable_python3interp+set}" = set; then :
6168  enableval=$enable_python3interp;
6169else
6170  enable_python3interp="no"
6171fi
6172
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5
6174$as_echo "$enable_python3interp" >&6; }
6175if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
6176  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6177    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6178  fi
6179
6180    for ac_prog in python3 python
6181do
6182  # Extract the first word of "$ac_prog", so it can be a program name with args.
6183set dummy $ac_prog; ac_word=$2
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185$as_echo_n "checking for $ac_word... " >&6; }
6186if ${ac_cv_path_vi_cv_path_python3+:} false; then :
6187  $as_echo_n "(cached) " >&6
6188else
6189  case $vi_cv_path_python3 in
6190  [\\/]* | ?:[\\/]*)
6191  ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path.
6192  ;;
6193  *)
6194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195for as_dir in $PATH
6196do
6197  IFS=$as_save_IFS
6198  test -z "$as_dir" && as_dir=.
6199    for ac_exec_ext in '' $ac_executable_extensions; do
6200  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201    ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext"
6202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203    break 2
6204  fi
6205done
6206  done
6207IFS=$as_save_IFS
6208
6209  ;;
6210esac
6211fi
6212vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3
6213if test -n "$vi_cv_path_python3"; then
6214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6215$as_echo "$vi_cv_path_python3" >&6; }
6216else
6217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218$as_echo "no" >&6; }
6219fi
6220
6221
6222  test -n "$vi_cv_path_python3" && break
6223done
6224
6225  if test "X$vi_cv_path_python3" != "X"; then
6226
6227        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6228$as_echo_n "checking Python version... " >&6; }
6229if ${vi_cv_var_python3_version+:} false; then :
6230  $as_echo_n "(cached) " >&6
6231else
6232  vi_cv_var_python3_version=`
6233          ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'`
6234
6235fi
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5
6237$as_echo "$vi_cv_var_python3_version" >&6; }
6238
6239        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5
6240$as_echo_n "checking Python is 3.0 or better... " >&6; }
6241    if ${vi_cv_path_python3} -c \
6242      "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)"
6243    then
6244      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6245$as_echo "yep" >&6; }
6246
6247            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5
6248$as_echo_n "checking Python's abiflags... " >&6; }
6249if ${vi_cv_var_python3_abiflags+:} false; then :
6250  $as_echo_n "(cached) " >&6
6251else
6252
6253       vi_cv_var_python3_abiflags=
6254       if ${vi_cv_path_python3} -c \
6255           "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)"
6256       then
6257         vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \
6258           "import sys; print(sys.abiflags)"`
6259       fi
6260fi
6261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5
6262$as_echo "$vi_cv_var_python3_abiflags" >&6; }
6263
6264            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6265$as_echo_n "checking Python's install prefix... " >&6; }
6266if ${vi_cv_path_python3_pfx+:} false; then :
6267  $as_echo_n "(cached) " >&6
6268else
6269   vi_cv_path_python3_pfx=`
6270       ${vi_cv_path_python3} -c \
6271       "import sys; print(sys.prefix)"`
6272fi
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5
6274$as_echo "$vi_cv_path_python3_pfx" >&6; }
6275
6276            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6277$as_echo_n "checking Python's execution prefix... " >&6; }
6278if ${vi_cv_path_python3_epfx+:} false; then :
6279  $as_echo_n "(cached) " >&6
6280else
6281   vi_cv_path_python3_epfx=`
6282       ${vi_cv_path_python3} -c \
6283       "import sys; print(sys.exec_prefix)"`
6284fi
6285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5
6286$as_echo "$vi_cv_path_python3_epfx" >&6; }
6287
6288
6289      if ${vi_cv_path_python3path+:} false; then :
6290  $as_echo_n "(cached) " >&6
6291else
6292   vi_cv_path_python3path=`
6293       unset PYTHONPATH;
6294       ${vi_cv_path_python3} -c \
6295       "import sys, string; print(':'.join(sys.path))"`
6296fi
6297
6298
6299
6300
6301# Check whether --with-python3-config-dir was given.
6302if test "${with_python3_config_dir+set}" = set; then :
6303  withval=$with_python3_config_dir;  vi_cv_path_python3_conf="${withval}"
6304fi
6305
6306
6307      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6308$as_echo_n "checking Python's configuration directory... " >&6; }
6309if ${vi_cv_path_python3_conf+:} false; then :
6310  $as_echo_n "(cached) " >&6
6311else
6312
6313       vi_cv_path_python3_conf=
6314       config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6315       d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"`
6316       if test -d "$d" && test -f "$d/config.c"; then
6317         vi_cv_path_python3_conf="$d"
6318       else
6319         for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do
6320	   for subdir in lib64 lib share; do
6321	     d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}"
6322	     if test -d "$d" && test -f "$d/config.c"; then
6323	       vi_cv_path_python3_conf="$d"
6324	     fi
6325	   done
6326         done
6327       fi
6328
6329fi
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5
6331$as_echo "$vi_cv_path_python3_conf" >&6; }
6332
6333      PYTHON3_CONFDIR="${vi_cv_path_python3_conf}"
6334
6335      if test "X$PYTHON3_CONFDIR" = "X"; then
6336        { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6337$as_echo "can't find it!" >&6; }
6338      else
6339
6340                        if ${vi_cv_path_python3_plibs+:} false; then :
6341  $as_echo_n "(cached) " >&6
6342else
6343
6344            pwd=`pwd`
6345            tmp_mkf="$pwd/config-PyMake$$"
6346            cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6347__:
6348	@echo "python3_BASEMODLIBS='$(BASEMODLIBS)'"
6349	@echo "python3_LIBS='$(LIBS)'"
6350	@echo "python3_SYSLIBS='$(SYSLIBS)'"
6351	@echo "python3_DLLLIBRARY='$(DLLLIBRARY)'"
6352	@echo "python3_INSTSONAME='$(INSTSONAME)'"
6353eof
6354	    	    eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6355	    rm -f -- "${tmp_mkf}"
6356	    vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6357	    vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
6358	    	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
6359	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
6360
6361fi
6362
6363	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5
6364$as_echo_n "checking Python3's dll name... " >&6; }
6365if ${vi_cv_dll_name_python3+:} false; then :
6366  $as_echo_n "(cached) " >&6
6367else
6368
6369	  if test "X$python3_DLLLIBRARY" != "X"; then
6370	    vi_cv_dll_name_python3="$python3_DLLLIBRARY"
6371	  else
6372	    vi_cv_dll_name_python3="$python3_INSTSONAME"
6373	  fi
6374
6375fi
6376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5
6377$as_echo "$vi_cv_dll_name_python3" >&6; }
6378
6379        PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
6380        if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
6381          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}\"'"
6382        else
6383          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}\"'"
6384        fi
6385        PYTHON3_SRC="if_python3.c"
6386        PYTHON3_OBJ="objects/if_python3.o"
6387
6388                                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6389$as_echo_n "checking if -pthread should be used... " >&6; }
6390        threadsafe_flag=
6391        thread_lib=
6392                if test "`(uname) 2>/dev/null`" != Darwin; then
6393          test "$GCC" = yes && threadsafe_flag="-pthread"
6394          if test "`(uname) 2>/dev/null`" = FreeBSD; then
6395            threadsafe_flag="-D_THREAD_SAFE"
6396            thread_lib="-pthread"
6397          fi
6398          if test "`(uname) 2>/dev/null`" = SunOS; then
6399            threadsafe_flag="-pthreads"
6400          fi
6401        fi
6402        libs_save_old=$LIBS
6403        if test -n "$threadsafe_flag"; then
6404          cflags_save=$CFLAGS
6405          CFLAGS="$CFLAGS $threadsafe_flag"
6406          LIBS="$LIBS $thread_lib"
6407          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408/* end confdefs.h.  */
6409
6410int
6411main ()
6412{
6413
6414  ;
6415  return 0;
6416}
6417_ACEOF
6418if ac_fn_c_try_link "$LINENO"; then :
6419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6420$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag"
6421else
6422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423$as_echo "no" >&6; }; LIBS=$libs_save_old
6424
6425fi
6426rm -f core conftest.err conftest.$ac_objext \
6427    conftest$ac_exeext conftest.$ac_ext
6428          CFLAGS=$cflags_save
6429        else
6430          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431$as_echo "no" >&6; }
6432        fi
6433
6434                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5
6435$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; }
6436        cflags_save=$CFLAGS
6437        libs_save=$LIBS
6438        CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6439        LIBS="$LIBS $PYTHON3_LIBS"
6440        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441/* end confdefs.h.  */
6442
6443int
6444main ()
6445{
6446
6447  ;
6448  return 0;
6449}
6450_ACEOF
6451if ac_fn_c_try_link "$LINENO"; then :
6452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6453$as_echo "yes" >&6; }; python3_ok=yes
6454else
6455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5
6456$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no
6457fi
6458rm -f core conftest.err conftest.$ac_objext \
6459    conftest$ac_exeext conftest.$ac_ext
6460        CFLAGS=$cflags_save
6461        LIBS=$libs_save
6462        if test "$python3_ok" = yes; then
6463          $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h
6464
6465        else
6466          LIBS=$libs_save_old
6467          PYTHON3_SRC=
6468          PYTHON3_OBJ=
6469          PYTHON3_LIBS=
6470          PYTHON3_CFLAGS=
6471        fi
6472      fi
6473    else
6474      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6475$as_echo "too old" >&6; }
6476    fi
6477  fi
6478  if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then
6479    as_fn_error $? "could not configure python3" "$LINENO" 5
6480  fi
6481fi
6482
6483
6484
6485
6486
6487
6488
6489if test "$python_ok" = yes && test "$python3_ok" = yes; then
6490  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
6491
6492  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
6493
6494  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5
6495$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; }
6496  cflags_save=$CFLAGS
6497  CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6498  libs_save=$LIBS
6499    LIBS="-ldl $LIBS"
6500  if test "$cross_compiling" = yes; then :
6501  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6503as_fn_error $? "cannot run test program while cross compiling
6504See \`config.log' for more details" "$LINENO" 5; }
6505else
6506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507/* end confdefs.h.  */
6508
6509    #include <dlfcn.h>
6510    /* If this program fails, then RTLD_GLOBAL is needed.
6511     * RTLD_GLOBAL will be used and then it is not possible to
6512     * have both python versions enabled in the same vim instance.
6513     * Only the first python version used will be switched on.
6514     */
6515
6516    int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
6517    {
6518      int needed = 0;
6519      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
6520      if (pylib != 0)
6521      {
6522          void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome");
6523          void (*init)(void) = dlsym(pylib, "Py_Initialize");
6524          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
6525          void (*final)(void) = dlsym(pylib, "Py_Finalize");
6526          (*pfx)(prefix);
6527          (*init)();
6528          needed = (*simple)("import termios") == -1;
6529          (*final)();
6530          dlclose(pylib);
6531      }
6532      return !needed;
6533    }
6534
6535    int main(int argc, char** argv)
6536    {
6537      int not_needed = 0;
6538      if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}"))
6539            not_needed = 1;
6540      return !not_needed;
6541    }
6542_ACEOF
6543if ac_fn_c_try_run "$LINENO"; then :
6544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6545$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h
6546
6547else
6548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6549$as_echo "no" >&6; }
6550fi
6551rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6552  conftest.$ac_objext conftest.beam conftest.$ac_ext
6553fi
6554
6555
6556  CFLAGS=$cflags_save
6557  LIBS=$libs_save
6558
6559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5
6560$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; }
6561  cflags_save=$CFLAGS
6562  CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6563  libs_save=$LIBS
6564    LIBS="-ldl $LIBS"
6565  if test "$cross_compiling" = yes; then :
6566  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6568as_fn_error $? "cannot run test program while cross compiling
6569See \`config.log' for more details" "$LINENO" 5; }
6570else
6571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572/* end confdefs.h.  */
6573
6574    #include <dlfcn.h>
6575    #include <wchar.h>
6576    /* If this program fails, then RTLD_GLOBAL is needed.
6577     * RTLD_GLOBAL will be used and then it is not possible to
6578     * have both python versions enabled in the same vim instance.
6579     * Only the first python version used will be switched on.
6580     */
6581
6582    int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
6583    {
6584      int needed = 0;
6585      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
6586      if (pylib != 0)
6587      {
6588          void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome");
6589          void (*init)(void) = dlsym(pylib, "Py_Initialize");
6590          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
6591          void (*final)(void) = dlsym(pylib, "Py_Finalize");
6592          (*pfx)(prefix);
6593          (*init)();
6594          needed = (*simple)("import termios") == -1;
6595          (*final)();
6596          dlclose(pylib);
6597      }
6598      return !needed;
6599    }
6600
6601    int main(int argc, char** argv)
6602    {
6603      int not_needed = 0;
6604      if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}"))
6605            not_needed = 1;
6606      return !not_needed;
6607    }
6608_ACEOF
6609if ac_fn_c_try_run "$LINENO"; then :
6610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6611$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h
6612
6613else
6614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615$as_echo "no" >&6; }
6616fi
6617rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6618  conftest.$ac_objext conftest.beam conftest.$ac_ext
6619fi
6620
6621
6622  CFLAGS=$cflags_save
6623  LIBS=$libs_save
6624
6625  PYTHON_SRC="if_python.c"
6626  PYTHON_OBJ="objects/if_python.o"
6627  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
6628  PYTHON_LIBS=
6629  PYTHON3_SRC="if_python3.c"
6630  PYTHON3_OBJ="objects/if_python3.o"
6631  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
6632  PYTHON3_LIBS=
6633elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then
6634  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
6635
6636  PYTHON_SRC="if_python.c"
6637  PYTHON_OBJ="objects/if_python.o"
6638  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
6639  PYTHON_LIBS=
6640elif test "$python_ok" = yes; then
6641      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5
6642$as_echo_n "checking if -fPIE can be added for Python... " >&6; }
6643  cflags_save=$CFLAGS
6644  libs_save=$LIBS
6645  CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE"
6646  LIBS="$LIBS $PYTHON_LIBS"
6647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648/* end confdefs.h.  */
6649
6650int
6651main ()
6652{
6653
6654  ;
6655  return 0;
6656}
6657_ACEOF
6658if ac_fn_c_try_link "$LINENO"; then :
6659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6660$as_echo "yes" >&6; }; fpie_ok=yes
6661else
6662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663$as_echo "no" >&6; }; fpie_ok=no
6664fi
6665rm -f core conftest.err conftest.$ac_objext \
6666    conftest$ac_exeext conftest.$ac_ext
6667  CFLAGS=$cflags_save
6668  LIBS=$libs_save
6669  if test $fpie_ok = yes; then
6670    PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE"
6671  fi
6672elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then
6673  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
6674
6675  PYTHON3_SRC="if_python3.c"
6676  PYTHON3_OBJ="objects/if_python3.o"
6677  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
6678  PYTHON3_LIBS=
6679elif test "$python3_ok" = yes; then
6680      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5
6681$as_echo_n "checking if -fPIE can be added for Python3... " >&6; }
6682  cflags_save=$CFLAGS
6683  libs_save=$LIBS
6684  CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE"
6685  LIBS="$LIBS $PYTHON3_LIBS"
6686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687/* end confdefs.h.  */
6688
6689int
6690main ()
6691{
6692
6693  ;
6694  return 0;
6695}
6696_ACEOF
6697if ac_fn_c_try_link "$LINENO"; then :
6698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6699$as_echo "yes" >&6; }; fpie_ok=yes
6700else
6701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702$as_echo "no" >&6; }; fpie_ok=no
6703fi
6704rm -f core conftest.err conftest.$ac_objext \
6705    conftest$ac_exeext conftest.$ac_ext
6706  CFLAGS=$cflags_save
6707  LIBS=$libs_save
6708  if test $fpie_ok = yes; then
6709    PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE"
6710  fi
6711fi
6712
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5
6714$as_echo_n "checking --enable-tclinterp argument... " >&6; }
6715# Check whether --enable-tclinterp was given.
6716if test "${enable_tclinterp+set}" = set; then :
6717  enableval=$enable_tclinterp;
6718else
6719  enable_tclinterp="no"
6720fi
6721
6722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5
6723$as_echo "$enable_tclinterp" >&6; }
6724
6725if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then
6726
6727    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5
6728$as_echo_n "checking --with-tclsh argument... " >&6; }
6729
6730# Check whether --with-tclsh was given.
6731if test "${with_tclsh+set}" = set; then :
6732  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5
6733$as_echo "$tclsh_name" >&6; }
6734else
6735  tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736$as_echo "no" >&6; }
6737fi
6738
6739  # Extract the first word of "$tclsh_name", so it can be a program name with args.
6740set dummy $tclsh_name; ac_word=$2
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742$as_echo_n "checking for $ac_word... " >&6; }
6743if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6744  $as_echo_n "(cached) " >&6
6745else
6746  case $vi_cv_path_tcl in
6747  [\\/]* | ?:[\\/]*)
6748  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6749  ;;
6750  *)
6751  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752for as_dir in $PATH
6753do
6754  IFS=$as_save_IFS
6755  test -z "$as_dir" && as_dir=.
6756    for ac_exec_ext in '' $ac_executable_extensions; do
6757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6758    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760    break 2
6761  fi
6762done
6763  done
6764IFS=$as_save_IFS
6765
6766  ;;
6767esac
6768fi
6769vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6770if test -n "$vi_cv_path_tcl"; then
6771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6772$as_echo "$vi_cv_path_tcl" >&6; }
6773else
6774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775$as_echo "no" >&6; }
6776fi
6777
6778
6779
6780
6781    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
6782    tclsh_name="tclsh8.4"
6783    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6784set dummy $tclsh_name; ac_word=$2
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786$as_echo_n "checking for $ac_word... " >&6; }
6787if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6788  $as_echo_n "(cached) " >&6
6789else
6790  case $vi_cv_path_tcl in
6791  [\\/]* | ?:[\\/]*)
6792  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6793  ;;
6794  *)
6795  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796for as_dir in $PATH
6797do
6798  IFS=$as_save_IFS
6799  test -z "$as_dir" && as_dir=.
6800    for ac_exec_ext in '' $ac_executable_extensions; do
6801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6802    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6804    break 2
6805  fi
6806done
6807  done
6808IFS=$as_save_IFS
6809
6810  ;;
6811esac
6812fi
6813vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6814if test -n "$vi_cv_path_tcl"; then
6815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6816$as_echo "$vi_cv_path_tcl" >&6; }
6817else
6818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819$as_echo "no" >&6; }
6820fi
6821
6822
6823  fi
6824  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
6825    tclsh_name="tclsh8.2"
6826    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6827set dummy $tclsh_name; ac_word=$2
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829$as_echo_n "checking for $ac_word... " >&6; }
6830if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6831  $as_echo_n "(cached) " >&6
6832else
6833  case $vi_cv_path_tcl in
6834  [\\/]* | ?:[\\/]*)
6835  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6836  ;;
6837  *)
6838  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839for as_dir in $PATH
6840do
6841  IFS=$as_save_IFS
6842  test -z "$as_dir" && as_dir=.
6843    for ac_exec_ext in '' $ac_executable_extensions; do
6844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6845    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847    break 2
6848  fi
6849done
6850  done
6851IFS=$as_save_IFS
6852
6853  ;;
6854esac
6855fi
6856vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6857if test -n "$vi_cv_path_tcl"; then
6858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6859$as_echo "$vi_cv_path_tcl" >&6; }
6860else
6861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862$as_echo "no" >&6; }
6863fi
6864
6865
6866  fi
6867  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
6868    tclsh_name="tclsh8.0"
6869    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6870set dummy $tclsh_name; ac_word=$2
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872$as_echo_n "checking for $ac_word... " >&6; }
6873if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6874  $as_echo_n "(cached) " >&6
6875else
6876  case $vi_cv_path_tcl in
6877  [\\/]* | ?:[\\/]*)
6878  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6879  ;;
6880  *)
6881  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882for as_dir in $PATH
6883do
6884  IFS=$as_save_IFS
6885  test -z "$as_dir" && as_dir=.
6886    for ac_exec_ext in '' $ac_executable_extensions; do
6887  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6888    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6889    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890    break 2
6891  fi
6892done
6893  done
6894IFS=$as_save_IFS
6895
6896  ;;
6897esac
6898fi
6899vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6900if test -n "$vi_cv_path_tcl"; then
6901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6902$as_echo "$vi_cv_path_tcl" >&6; }
6903else
6904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905$as_echo "no" >&6; }
6906fi
6907
6908
6909  fi
6910    if test "X$vi_cv_path_tcl" = "X"; then
6911    tclsh_name="tclsh"
6912    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6913set dummy $tclsh_name; ac_word=$2
6914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915$as_echo_n "checking for $ac_word... " >&6; }
6916if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6917  $as_echo_n "(cached) " >&6
6918else
6919  case $vi_cv_path_tcl in
6920  [\\/]* | ?:[\\/]*)
6921  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6922  ;;
6923  *)
6924  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925for as_dir in $PATH
6926do
6927  IFS=$as_save_IFS
6928  test -z "$as_dir" && as_dir=.
6929    for ac_exec_ext in '' $ac_executable_extensions; do
6930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6931    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933    break 2
6934  fi
6935done
6936  done
6937IFS=$as_save_IFS
6938
6939  ;;
6940esac
6941fi
6942vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6943if test -n "$vi_cv_path_tcl"; then
6944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6945$as_echo "$vi_cv_path_tcl" >&6; }
6946else
6947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948$as_echo "no" >&6; }
6949fi
6950
6951
6952  fi
6953  if test "X$vi_cv_path_tcl" != "X"; then
6954    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5
6955$as_echo_n "checking Tcl version... " >&6; }
6956    if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then
6957      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
6958      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5
6959$as_echo "$tclver - OK" >&6; };
6960      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 -`
6961      tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -`
6962
6963      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5
6964$as_echo_n "checking for location of Tcl include... " >&6; }
6965      if test "x$MACOSX" != "xyes"; then
6966	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
6967      else
6968		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
6969      fi
6970      TCL_INC=
6971      for try in $tclinc; do
6972	if test -f "$try/tcl.h"; then
6973	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5
6974$as_echo "$try/tcl.h" >&6; }
6975	  TCL_INC=$try
6976	  break
6977	fi
6978      done
6979      if test -z "$TCL_INC"; then
6980	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
6981$as_echo "<not found>" >&6; }
6982	SKIP_TCL=YES
6983      fi
6984      if test -z "$SKIP_TCL"; then
6985	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5
6986$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
6987	if test "x$MACOSX" != "xyes"; then
6988	  tclcnf=`echo $tclinc | sed s/include/lib/g`
6989	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
6990	else
6991	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
6992	fi
6993	for try in $tclcnf; do
6994	  if test -f "$try/tclConfig.sh"; then
6995	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5
6996$as_echo "$try/tclConfig.sh" >&6; }
6997	    . "$try/tclConfig.sh"
6998	    	    if test "$enable_tclinterp" = "dynamic"; then
6999	      TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"`
7000	    else
7001	      TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
7002	    fi
7003	    	    	    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'`
7004	    break
7005	  fi
7006	done
7007	if test -z "$TCL_LIBS"; then
7008	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7009$as_echo "<not found>" >&6; }
7010	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5
7011$as_echo_n "checking for Tcl library by myself... " >&6; }
7012	  tcllib=`echo $tclinc | sed s/include/lib/g`
7013	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
7014	  for ext in .so .a ; do
7015	    for ver in "" $tclver ; do
7016	      for try in $tcllib ; do
7017		trylib=tcl$ver$ext
7018		if test -f "$try/lib$trylib" ; then
7019		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5
7020$as_echo "$try/lib$trylib" >&6; }
7021		  TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm"
7022		  if test "`(uname) 2>/dev/null`" = SunOS &&
7023					 uname -r | grep '^5' >/dev/null; then
7024		    TCL_LIBS="$TCL_LIBS -R $try"
7025		  fi
7026		  break 3
7027		fi
7028	      done
7029	    done
7030	  done
7031	  if test -z "$TCL_LIBS"; then
7032	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7033$as_echo "<not found>" >&6; }
7034	    SKIP_TCL=YES
7035	  fi
7036	fi
7037	if test -z "$SKIP_TCL"; then
7038	  $as_echo "#define FEAT_TCL 1" >>confdefs.h
7039
7040	  TCL_SRC=if_tcl.c
7041	  TCL_OBJ=objects/if_tcl.o
7042	  TCL_PRO=if_tcl.pro
7043	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
7044	fi
7045      fi
7046    else
7047      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5
7048$as_echo "too old; need Tcl version 8.0 or later" >&6; }
7049    fi
7050  fi
7051  if test "$enable_tclinterp" = "dynamic"; then
7052    if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then
7053      $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h
7054
7055      TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS"
7056    fi
7057  fi
7058  if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
7059    as_fn_error $? "could not configure Tcl" "$LINENO" 5
7060  fi
7061fi
7062
7063
7064
7065
7066
7067
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5
7069$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
7070# Check whether --enable-rubyinterp was given.
7071if test "${enable_rubyinterp+set}" = set; then :
7072  enableval=$enable_rubyinterp;
7073else
7074  enable_rubyinterp="no"
7075fi
7076
7077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
7078$as_echo "$enable_rubyinterp" >&6; }
7079if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
7080  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7081    as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5
7082  fi
7083
7084  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
7085$as_echo_n "checking --with-ruby-command argument... " >&6; }
7086
7087
7088# Check whether --with-ruby-command was given.
7089if test "${with_ruby_command+set}" = set; then :
7090  withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
7091$as_echo "$RUBY_CMD" >&6; }
7092else
7093  RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
7094$as_echo "defaulting to $RUBY_CMD" >&6; }
7095fi
7096
7097  # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
7098set dummy $RUBY_CMD; ac_word=$2
7099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100$as_echo_n "checking for $ac_word... " >&6; }
7101if ${ac_cv_path_vi_cv_path_ruby+:} false; then :
7102  $as_echo_n "(cached) " >&6
7103else
7104  case $vi_cv_path_ruby in
7105  [\\/]* | ?:[\\/]*)
7106  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
7107  ;;
7108  *)
7109  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110for as_dir in $PATH
7111do
7112  IFS=$as_save_IFS
7113  test -z "$as_dir" && as_dir=.
7114    for ac_exec_ext in '' $ac_executable_extensions; do
7115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7116    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
7117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7118    break 2
7119  fi
7120done
7121  done
7122IFS=$as_save_IFS
7123
7124  ;;
7125esac
7126fi
7127vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
7128if test -n "$vi_cv_path_ruby"; then
7129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5
7130$as_echo "$vi_cv_path_ruby" >&6; }
7131else
7132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133$as_echo "no" >&6; }
7134fi
7135
7136
7137  if test "X$vi_cv_path_ruby" != "X"; then
7138    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5
7139$as_echo_n "checking Ruby version... " >&6; }
7140    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
7141      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
7142$as_echo "OK" >&6; }
7143      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5
7144$as_echo_n "checking Ruby rbconfig... " >&6; }
7145      ruby_rbconfig="RbConfig"
7146      if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then
7147	ruby_rbconfig="Config"
7148      fi
7149      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5
7150$as_echo "$ruby_rbconfig" >&6; }
7151      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
7152$as_echo_n "checking Ruby header files... " >&6; }
7153      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null`
7154      if test "X$rubyhdrdir" != "X"; then
7155	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
7156$as_echo "$rubyhdrdir" >&6; }
7157	RUBY_CFLAGS="-I$rubyhdrdir"
7158        rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"`
7159        if test -d "$rubyarchdir"; then
7160          RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir"
7161        fi
7162        rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"`
7163	if test "X$rubyversion" = "X"; then
7164	  rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"`
7165	fi
7166        RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
7167	rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"`
7168	if test "X$rubylibs" != "X"; then
7169	  RUBY_LIBS="$rubylibs"
7170	fi
7171	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"`
7172	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"`
7173	rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"`
7174	if test -f "$rubylibdir/$librubya"; then
7175	  librubyarg="$librubyarg"
7176	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7177	elif test "$librubyarg" = "libruby.a"; then
7178	  	  librubyarg="-lruby"
7179	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7180	fi
7181
7182	if test "X$librubyarg" != "X"; then
7183	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
7184	fi
7185	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"`
7186	if test "X$rubyldflags" != "X"; then
7187	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
7188	  if test "X$rubyldflags" != "X"; then
7189	    if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then
7190	      LDFLAGS="$rubyldflags $LDFLAGS"
7191	    fi
7192	  fi
7193	fi
7194	RUBY_SRC="if_ruby.c"
7195	RUBY_OBJ="objects/if_ruby.o"
7196	RUBY_PRO="if_ruby.pro"
7197	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
7198
7199	if test "$enable_rubyinterp" = "dynamic"; then
7200	  libruby=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"`
7201	  $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h
7202
7203	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS"
7204	  RUBY_LIBS=
7205	fi
7206      else
7207	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
7208$as_echo "not found; disabling Ruby" >&6; }
7209      fi
7210    else
7211      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5
7212$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
7213    fi
7214  fi
7215
7216  if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
7217    as_fn_error $? "could not configure Ruby" "$LINENO" 5
7218  fi
7219fi
7220
7221
7222
7223
7224
7225
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5
7227$as_echo_n "checking --enable-cscope argument... " >&6; }
7228# Check whether --enable-cscope was given.
7229if test "${enable_cscope+set}" = set; then :
7230  enableval=$enable_cscope;
7231else
7232  enable_cscope="no"
7233fi
7234
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
7236$as_echo "$enable_cscope" >&6; }
7237if test "$enable_cscope" = "yes"; then
7238  $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h
7239
7240fi
7241
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5
7243$as_echo_n "checking --enable-workshop argument... " >&6; }
7244# Check whether --enable-workshop was given.
7245if test "${enable_workshop+set}" = set; then :
7246  enableval=$enable_workshop;
7247else
7248  enable_workshop="no"
7249fi
7250
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5
7252$as_echo "$enable_workshop" >&6; }
7253if test "$enable_workshop" = "yes"; then
7254  $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h
7255
7256  WORKSHOP_SRC="workshop.c integration.c"
7257
7258  WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
7259
7260  if test "${enable_gui-xxx}" = xxx; then
7261    enable_gui=motif
7262  fi
7263fi
7264
7265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5
7266$as_echo_n "checking --disable-netbeans argument... " >&6; }
7267# Check whether --enable-netbeans was given.
7268if test "${enable_netbeans+set}" = set; then :
7269  enableval=$enable_netbeans;
7270else
7271  enable_netbeans="yes"
7272fi
7273
7274if test "$enable_netbeans" = "yes"; then
7275  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7276    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5
7277$as_echo "cannot use NetBeans with tiny or small features" >&6; }
7278    enable_netbeans="no"
7279  else
7280    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281$as_echo "no" >&6; }
7282  fi
7283else
7284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7285$as_echo "yes" >&6; }
7286fi
7287
7288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5
7289$as_echo_n "checking --disable-channel argument... " >&6; }
7290# Check whether --enable-channel was given.
7291if test "${enable_channel+set}" = set; then :
7292  enableval=$enable_channel;
7293else
7294  enable_channel="yes"
7295fi
7296
7297if test "$enable_channel" = "yes"; then
7298  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7299    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5
7300$as_echo "cannot use channels with tiny or small features" >&6; }
7301    enable_channel="no"
7302  else
7303    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304$as_echo "no" >&6; }
7305  fi
7306else
7307  if test "$enable_netbeans" = "yes"; then
7308    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5
7309$as_echo "yes, netbeans also disabled" >&6; }
7310    enable_netbeans="no"
7311  else
7312    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7313$as_echo "yes" >&6; }
7314  fi
7315fi
7316
7317if test "$enable_channel" = "yes"; then
7318    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
7319$as_echo_n "checking for socket in -lsocket... " >&6; }
7320if ${ac_cv_lib_socket_socket+:} false; then :
7321  $as_echo_n "(cached) " >&6
7322else
7323  ac_check_lib_save_LIBS=$LIBS
7324LIBS="-lsocket  $LIBS"
7325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326/* end confdefs.h.  */
7327
7328/* Override any GCC internal prototype to avoid an error.
7329   Use char because int might match the return type of a GCC
7330   builtin and then its argument prototype would still apply.  */
7331#ifdef __cplusplus
7332extern "C"
7333#endif
7334char socket ();
7335int
7336main ()
7337{
7338return socket ();
7339  ;
7340  return 0;
7341}
7342_ACEOF
7343if ac_fn_c_try_link "$LINENO"; then :
7344  ac_cv_lib_socket_socket=yes
7345else
7346  ac_cv_lib_socket_socket=no
7347fi
7348rm -f core conftest.err conftest.$ac_objext \
7349    conftest$ac_exeext conftest.$ac_ext
7350LIBS=$ac_check_lib_save_LIBS
7351fi
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
7353$as_echo "$ac_cv_lib_socket_socket" >&6; }
7354if test "x$ac_cv_lib_socket_socket" = xyes; then :
7355  cat >>confdefs.h <<_ACEOF
7356#define HAVE_LIBSOCKET 1
7357_ACEOF
7358
7359  LIBS="-lsocket $LIBS"
7360
7361fi
7362
7363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7364$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7365if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7366  $as_echo_n "(cached) " >&6
7367else
7368  ac_check_lib_save_LIBS=$LIBS
7369LIBS="-lnsl  $LIBS"
7370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371/* end confdefs.h.  */
7372
7373/* Override any GCC internal prototype to avoid an error.
7374   Use char because int might match the return type of a GCC
7375   builtin and then its argument prototype would still apply.  */
7376#ifdef __cplusplus
7377extern "C"
7378#endif
7379char gethostbyname ();
7380int
7381main ()
7382{
7383return gethostbyname ();
7384  ;
7385  return 0;
7386}
7387_ACEOF
7388if ac_fn_c_try_link "$LINENO"; then :
7389  ac_cv_lib_nsl_gethostbyname=yes
7390else
7391  ac_cv_lib_nsl_gethostbyname=no
7392fi
7393rm -f core conftest.err conftest.$ac_objext \
7394    conftest$ac_exeext conftest.$ac_ext
7395LIBS=$ac_check_lib_save_LIBS
7396fi
7397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7398$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7399if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7400  cat >>confdefs.h <<_ACEOF
7401#define HAVE_LIBNSL 1
7402_ACEOF
7403
7404  LIBS="-lnsl $LIBS"
7405
7406fi
7407
7408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5
7409$as_echo_n "checking whether compiling with process communication is possible... " >&6; }
7410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411/* end confdefs.h.  */
7412
7413#include <stdio.h>
7414#include <stdlib.h>
7415#include <stdarg.h>
7416#include <fcntl.h>
7417#include <netdb.h>
7418#include <netinet/in.h>
7419#include <errno.h>
7420#include <sys/types.h>
7421#include <sys/socket.h>
7422	/* Check bitfields */
7423	struct nbbuf {
7424	unsigned int  initDone:1;
7425	unsigned short signmaplen;
7426	};
7427
7428int
7429main ()
7430{
7431
7432		/* Check creating a socket. */
7433		struct sockaddr_in server;
7434		(void)socket(AF_INET, SOCK_STREAM, 0);
7435		(void)htons(100);
7436		(void)gethostbyname("microsoft.com");
7437		if (errno == ECONNREFUSED)
7438		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
7439
7440  ;
7441  return 0;
7442}
7443_ACEOF
7444if ac_fn_c_try_link "$LINENO"; then :
7445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7446$as_echo "yes" >&6; }
7447else
7448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no"
7450fi
7451rm -f core conftest.err conftest.$ac_objext \
7452    conftest$ac_exeext conftest.$ac_ext
7453fi
7454if test "$enable_netbeans" = "yes"; then
7455  $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h
7456
7457  NETBEANS_SRC="netbeans.c"
7458
7459  NETBEANS_OBJ="objects/netbeans.o"
7460
7461fi
7462if test "$enable_channel" = "yes"; then
7463  $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h
7464
7465  CHANNEL_SRC="channel.c"
7466
7467  CHANNEL_OBJ="objects/channel.o"
7468
7469fi
7470
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5
7472$as_echo_n "checking --enable-terminal argument... " >&6; }
7473# Check whether --enable-terminal was given.
7474if test "${enable_terminal+set}" = set; then :
7475  enableval=$enable_terminal; enable_terminal="yes"
7476fi
7477
7478if test "$enable_terminal" = "yes"; then
7479  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7480    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5
7481$as_echo "cannot use terminal emulator with tiny or small features" >&6; }
7482    enable_terminal="no"
7483  else
7484    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7485$as_echo "yes" >&6; }
7486  fi
7487else
7488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489$as_echo "no" >&6; }
7490fi
7491if test "$enable_terminal" = "yes"; then
7492  $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h
7493
7494  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"
7495
7496  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"
7497
7498fi
7499
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5
7501$as_echo_n "checking --enable-multibyte argument... " >&6; }
7502# Check whether --enable-multibyte was given.
7503if test "${enable_multibyte+set}" = set; then :
7504  enableval=$enable_multibyte;
7505else
7506  enable_multibyte="no"
7507fi
7508
7509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
7510$as_echo "$enable_multibyte" >&6; }
7511if test "$enable_multibyte" = "yes"; then
7512  $as_echo "#define FEAT_MBYTE 1" >>confdefs.h
7513
7514fi
7515
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5
7517$as_echo_n "checking --enable-hangulinput argument... " >&6; }
7518# Check whether --enable-hangulinput was given.
7519if test "${enable_hangulinput+set}" = set; then :
7520  enableval=$enable_hangulinput;
7521else
7522  enable_hangulinput="no"
7523fi
7524
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5
7526$as_echo "$enable_hangulinput" >&6; }
7527
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5
7529$as_echo_n "checking --enable-xim argument... " >&6; }
7530# Check whether --enable-xim was given.
7531if test "${enable_xim+set}" = set; then :
7532  enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5
7533$as_echo "$enable_xim" >&6; }
7534else
7535  enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5
7536$as_echo "defaulting to auto" >&6; }
7537fi
7538
7539
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5
7541$as_echo_n "checking --enable-fontset argument... " >&6; }
7542# Check whether --enable-fontset was given.
7543if test "${enable_fontset+set}" = set; then :
7544  enableval=$enable_fontset;
7545else
7546  enable_fontset="no"
7547fi
7548
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5
7550$as_echo "$enable_fontset" >&6; }
7551
7552test -z "$with_x" && with_x=yes
7553test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
7554if test "$with_x" = no; then
7555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5
7556$as_echo "defaulting to: don't HAVE_X11" >&6; }
7557else
7558
7559  # Extract the first word of "xmkmf", so it can be a program name with args.
7560set dummy xmkmf; ac_word=$2
7561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562$as_echo_n "checking for $ac_word... " >&6; }
7563if ${ac_cv_path_xmkmfpath+:} false; then :
7564  $as_echo_n "(cached) " >&6
7565else
7566  case $xmkmfpath in
7567  [\\/]* | ?:[\\/]*)
7568  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
7569  ;;
7570  *)
7571  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572for as_dir in $PATH
7573do
7574  IFS=$as_save_IFS
7575  test -z "$as_dir" && as_dir=.
7576    for ac_exec_ext in '' $ac_executable_extensions; do
7577  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7578    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
7579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580    break 2
7581  fi
7582done
7583  done
7584IFS=$as_save_IFS
7585
7586  ;;
7587esac
7588fi
7589xmkmfpath=$ac_cv_path_xmkmfpath
7590if test -n "$xmkmfpath"; then
7591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5
7592$as_echo "$xmkmfpath" >&6; }
7593else
7594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595$as_echo "no" >&6; }
7596fi
7597
7598
7599
7600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7601$as_echo_n "checking for X... " >&6; }
7602
7603
7604# Check whether --with-x was given.
7605if test "${with_x+set}" = set; then :
7606  withval=$with_x;
7607fi
7608
7609# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7610if test "x$with_x" = xno; then
7611  # The user explicitly disabled X.
7612  have_x=disabled
7613else
7614  case $x_includes,$x_libraries in #(
7615    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7616    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7617  $as_echo_n "(cached) " >&6
7618else
7619  # One or both of the vars are not set, and there is no cached value.
7620ac_x_includes=no ac_x_libraries=no
7621rm -f -r conftest.dir
7622if mkdir conftest.dir; then
7623  cd conftest.dir
7624  cat >Imakefile <<'_ACEOF'
7625incroot:
7626	@echo incroot='${INCROOT}'
7627usrlibdir:
7628	@echo usrlibdir='${USRLIBDIR}'
7629libdir:
7630	@echo libdir='${LIBDIR}'
7631_ACEOF
7632  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7633    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7634    for ac_var in incroot usrlibdir libdir; do
7635      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7636    done
7637    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7638    for ac_extension in a so sl dylib la dll; do
7639      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7640	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7641	ac_im_usrlibdir=$ac_im_libdir; break
7642      fi
7643    done
7644    # Screen out bogus values from the imake configuration.  They are
7645    # bogus both because they are the default anyway, and because
7646    # using them would break gcc on systems where it needs fixed includes.
7647    case $ac_im_incroot in
7648	/usr/include) ac_x_includes= ;;
7649	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7650    esac
7651    case $ac_im_usrlibdir in
7652	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
7653	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7654    esac
7655  fi
7656  cd ..
7657  rm -f -r conftest.dir
7658fi
7659
7660# Standard set of common directories for X headers.
7661# Check X11 before X11Rn because it is often a symlink to the current release.
7662ac_x_header_dirs='
7663/usr/X11/include
7664/usr/X11R7/include
7665/usr/X11R6/include
7666/usr/X11R5/include
7667/usr/X11R4/include
7668
7669/usr/include/X11
7670/usr/include/X11R7
7671/usr/include/X11R6
7672/usr/include/X11R5
7673/usr/include/X11R4
7674
7675/usr/local/X11/include
7676/usr/local/X11R7/include
7677/usr/local/X11R6/include
7678/usr/local/X11R5/include
7679/usr/local/X11R4/include
7680
7681/usr/local/include/X11
7682/usr/local/include/X11R7
7683/usr/local/include/X11R6
7684/usr/local/include/X11R5
7685/usr/local/include/X11R4
7686
7687/usr/X386/include
7688/usr/x386/include
7689/usr/XFree86/include/X11
7690
7691/usr/include
7692/usr/local/include
7693/usr/unsupported/include
7694/usr/athena/include
7695/usr/local/x11r5/include
7696/usr/lpp/Xamples/include
7697
7698/usr/openwin/include
7699/usr/openwin/share/include'
7700
7701if test "$ac_x_includes" = no; then
7702  # Guess where to find include files, by looking for Xlib.h.
7703  # First, try using that file with no special directory specified.
7704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7705/* end confdefs.h.  */
7706#include <X11/Xlib.h>
7707_ACEOF
7708if ac_fn_c_try_cpp "$LINENO"; then :
7709  # We can compile using X headers with no special include directory.
7710ac_x_includes=
7711else
7712  for ac_dir in $ac_x_header_dirs; do
7713  if test -r "$ac_dir/X11/Xlib.h"; then
7714    ac_x_includes=$ac_dir
7715    break
7716  fi
7717done
7718fi
7719rm -f conftest.err conftest.i conftest.$ac_ext
7720fi # $ac_x_includes = no
7721
7722if test "$ac_x_libraries" = no; then
7723  # Check for the libraries.
7724  # See if we find them without any special options.
7725  # Don't add to $LIBS permanently.
7726  ac_save_LIBS=$LIBS
7727  LIBS="-lX11 $LIBS"
7728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729/* end confdefs.h.  */
7730#include <X11/Xlib.h>
7731int
7732main ()
7733{
7734XrmInitialize ()
7735  ;
7736  return 0;
7737}
7738_ACEOF
7739if ac_fn_c_try_link "$LINENO"; then :
7740  LIBS=$ac_save_LIBS
7741# We can link X programs with no special library path.
7742ac_x_libraries=
7743else
7744  LIBS=$ac_save_LIBS
7745for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7746do
7747  # Don't even attempt the hair of trying to link an X program!
7748  for ac_extension in a so sl dylib la dll; do
7749    if test -r "$ac_dir/libX11.$ac_extension"; then
7750      ac_x_libraries=$ac_dir
7751      break 2
7752    fi
7753  done
7754done
7755fi
7756rm -f core conftest.err conftest.$ac_objext \
7757    conftest$ac_exeext conftest.$ac_ext
7758fi # $ac_x_libraries = no
7759
7760case $ac_x_includes,$ac_x_libraries in #(
7761  no,* | *,no | *\'*)
7762    # Didn't find X, or a directory has "'" in its name.
7763    ac_cv_have_x="have_x=no";; #(
7764  *)
7765    # Record where we found X for the cache.
7766    ac_cv_have_x="have_x=yes\
7767	ac_x_includes='$ac_x_includes'\
7768	ac_x_libraries='$ac_x_libraries'"
7769esac
7770fi
7771;; #(
7772    *) have_x=yes;;
7773  esac
7774  eval "$ac_cv_have_x"
7775fi # $with_x != no
7776
7777if test "$have_x" != yes; then
7778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7779$as_echo "$have_x" >&6; }
7780  no_x=yes
7781else
7782  # If each of the values was on the command line, it overrides each guess.
7783  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7784  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7785  # Update the cache value to reflect the command line values.
7786  ac_cv_have_x="have_x=yes\
7787	ac_x_includes='$x_includes'\
7788	ac_x_libraries='$x_libraries'"
7789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7790$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7791fi
7792
7793if test "$no_x" = yes; then
7794  # Not all programs may use this symbol, but it does not hurt to define it.
7795
7796$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7797
7798  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7799else
7800  if test -n "$x_includes"; then
7801    X_CFLAGS="$X_CFLAGS -I$x_includes"
7802  fi
7803
7804  # It would also be nice to do this for all -L options, not just this one.
7805  if test -n "$x_libraries"; then
7806    X_LIBS="$X_LIBS -L$x_libraries"
7807    # For Solaris; some versions of Sun CC require a space after -R and
7808    # others require no space.  Words are not sufficient . . . .
7809    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7810$as_echo_n "checking whether -R must be followed by a space... " >&6; }
7811    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7812    ac_xsave_c_werror_flag=$ac_c_werror_flag
7813    ac_c_werror_flag=yes
7814    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815/* end confdefs.h.  */
7816
7817int
7818main ()
7819{
7820
7821  ;
7822  return 0;
7823}
7824_ACEOF
7825if ac_fn_c_try_link "$LINENO"; then :
7826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827$as_echo "no" >&6; }
7828       X_LIBS="$X_LIBS -R$x_libraries"
7829else
7830  LIBS="$ac_xsave_LIBS -R $x_libraries"
7831       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832/* end confdefs.h.  */
7833
7834int
7835main ()
7836{
7837
7838  ;
7839  return 0;
7840}
7841_ACEOF
7842if ac_fn_c_try_link "$LINENO"; then :
7843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7844$as_echo "yes" >&6; }
7845	  X_LIBS="$X_LIBS -R $x_libraries"
7846else
7847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7848$as_echo "neither works" >&6; }
7849fi
7850rm -f core conftest.err conftest.$ac_objext \
7851    conftest$ac_exeext conftest.$ac_ext
7852fi
7853rm -f core conftest.err conftest.$ac_objext \
7854    conftest$ac_exeext conftest.$ac_ext
7855    ac_c_werror_flag=$ac_xsave_c_werror_flag
7856    LIBS=$ac_xsave_LIBS
7857  fi
7858
7859  # Check for system-dependent libraries X programs must link with.
7860  # Do this before checking for the system-independent R6 libraries
7861  # (-lICE), since we may need -lsocket or whatever for X linking.
7862
7863  if test "$ISC" = yes; then
7864    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7865  else
7866    # Martyn Johnson says this is needed for Ultrix, if the X
7867    # libraries were built with DECnet support.  And Karl Berry says
7868    # the Alpha needs dnet_stub (dnet does not exist).
7869    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7870    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871/* end confdefs.h.  */
7872
7873/* Override any GCC internal prototype to avoid an error.
7874   Use char because int might match the return type of a GCC
7875   builtin and then its argument prototype would still apply.  */
7876#ifdef __cplusplus
7877extern "C"
7878#endif
7879char XOpenDisplay ();
7880int
7881main ()
7882{
7883return XOpenDisplay ();
7884  ;
7885  return 0;
7886}
7887_ACEOF
7888if ac_fn_c_try_link "$LINENO"; then :
7889
7890else
7891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7892$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7893if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7894  $as_echo_n "(cached) " >&6
7895else
7896  ac_check_lib_save_LIBS=$LIBS
7897LIBS="-ldnet  $LIBS"
7898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899/* end confdefs.h.  */
7900
7901/* Override any GCC internal prototype to avoid an error.
7902   Use char because int might match the return type of a GCC
7903   builtin and then its argument prototype would still apply.  */
7904#ifdef __cplusplus
7905extern "C"
7906#endif
7907char dnet_ntoa ();
7908int
7909main ()
7910{
7911return dnet_ntoa ();
7912  ;
7913  return 0;
7914}
7915_ACEOF
7916if ac_fn_c_try_link "$LINENO"; then :
7917  ac_cv_lib_dnet_dnet_ntoa=yes
7918else
7919  ac_cv_lib_dnet_dnet_ntoa=no
7920fi
7921rm -f core conftest.err conftest.$ac_objext \
7922    conftest$ac_exeext conftest.$ac_ext
7923LIBS=$ac_check_lib_save_LIBS
7924fi
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7926$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7927if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7928  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7929fi
7930
7931    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7932      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7933$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7934if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7935  $as_echo_n "(cached) " >&6
7936else
7937  ac_check_lib_save_LIBS=$LIBS
7938LIBS="-ldnet_stub  $LIBS"
7939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940/* end confdefs.h.  */
7941
7942/* Override any GCC internal prototype to avoid an error.
7943   Use char because int might match the return type of a GCC
7944   builtin and then its argument prototype would still apply.  */
7945#ifdef __cplusplus
7946extern "C"
7947#endif
7948char dnet_ntoa ();
7949int
7950main ()
7951{
7952return dnet_ntoa ();
7953  ;
7954  return 0;
7955}
7956_ACEOF
7957if ac_fn_c_try_link "$LINENO"; then :
7958  ac_cv_lib_dnet_stub_dnet_ntoa=yes
7959else
7960  ac_cv_lib_dnet_stub_dnet_ntoa=no
7961fi
7962rm -f core conftest.err conftest.$ac_objext \
7963    conftest$ac_exeext conftest.$ac_ext
7964LIBS=$ac_check_lib_save_LIBS
7965fi
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7967$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7968if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7969  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7970fi
7971
7972    fi
7973fi
7974rm -f core conftest.err conftest.$ac_objext \
7975    conftest$ac_exeext conftest.$ac_ext
7976    LIBS="$ac_xsave_LIBS"
7977
7978    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
7979    # to get the SysV transport functions.
7980    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7981    # needs -lnsl.
7982    # The nsl library prevents programs from opening the X display
7983    # on Irix 5.2, according to T.E. Dickey.
7984    # The functions gethostbyname, getservbyname, and inet_addr are
7985    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7986    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7987if test "x$ac_cv_func_gethostbyname" = xyes; then :
7988
7989fi
7990
7991    if test $ac_cv_func_gethostbyname = no; then
7992      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7993$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7994if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7995  $as_echo_n "(cached) " >&6
7996else
7997  ac_check_lib_save_LIBS=$LIBS
7998LIBS="-lnsl  $LIBS"
7999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000/* end confdefs.h.  */
8001
8002/* Override any GCC internal prototype to avoid an error.
8003   Use char because int might match the return type of a GCC
8004   builtin and then its argument prototype would still apply.  */
8005#ifdef __cplusplus
8006extern "C"
8007#endif
8008char gethostbyname ();
8009int
8010main ()
8011{
8012return gethostbyname ();
8013  ;
8014  return 0;
8015}
8016_ACEOF
8017if ac_fn_c_try_link "$LINENO"; then :
8018  ac_cv_lib_nsl_gethostbyname=yes
8019else
8020  ac_cv_lib_nsl_gethostbyname=no
8021fi
8022rm -f core conftest.err conftest.$ac_objext \
8023    conftest$ac_exeext conftest.$ac_ext
8024LIBS=$ac_check_lib_save_LIBS
8025fi
8026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8027$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8028if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8029  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8030fi
8031
8032      if test $ac_cv_lib_nsl_gethostbyname = no; then
8033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8034$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8035if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8036  $as_echo_n "(cached) " >&6
8037else
8038  ac_check_lib_save_LIBS=$LIBS
8039LIBS="-lbsd  $LIBS"
8040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041/* end confdefs.h.  */
8042
8043/* Override any GCC internal prototype to avoid an error.
8044   Use char because int might match the return type of a GCC
8045   builtin and then its argument prototype would still apply.  */
8046#ifdef __cplusplus
8047extern "C"
8048#endif
8049char gethostbyname ();
8050int
8051main ()
8052{
8053return gethostbyname ();
8054  ;
8055  return 0;
8056}
8057_ACEOF
8058if ac_fn_c_try_link "$LINENO"; then :
8059  ac_cv_lib_bsd_gethostbyname=yes
8060else
8061  ac_cv_lib_bsd_gethostbyname=no
8062fi
8063rm -f core conftest.err conftest.$ac_objext \
8064    conftest$ac_exeext conftest.$ac_ext
8065LIBS=$ac_check_lib_save_LIBS
8066fi
8067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8068$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8069if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8070  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8071fi
8072
8073      fi
8074    fi
8075
8076    # [email protected] says without -lsocket,
8077    # socket/setsockopt and other routines are undefined under SCO ODT
8078    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8079    # on later versions), says Simon Leinen: it contains gethostby*
8080    # variants that don't use the name server (or something).  -lsocket
8081    # must be given before -lnsl if both are needed.  We assume that
8082    # if connect needs -lnsl, so does gethostbyname.
8083    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8084if test "x$ac_cv_func_connect" = xyes; then :
8085
8086fi
8087
8088    if test $ac_cv_func_connect = no; then
8089      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8090$as_echo_n "checking for connect in -lsocket... " >&6; }
8091if ${ac_cv_lib_socket_connect+:} false; then :
8092  $as_echo_n "(cached) " >&6
8093else
8094  ac_check_lib_save_LIBS=$LIBS
8095LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097/* end confdefs.h.  */
8098
8099/* Override any GCC internal prototype to avoid an error.
8100   Use char because int might match the return type of a GCC
8101   builtin and then its argument prototype would still apply.  */
8102#ifdef __cplusplus
8103extern "C"
8104#endif
8105char connect ();
8106int
8107main ()
8108{
8109return connect ();
8110  ;
8111  return 0;
8112}
8113_ACEOF
8114if ac_fn_c_try_link "$LINENO"; then :
8115  ac_cv_lib_socket_connect=yes
8116else
8117  ac_cv_lib_socket_connect=no
8118fi
8119rm -f core conftest.err conftest.$ac_objext \
8120    conftest$ac_exeext conftest.$ac_ext
8121LIBS=$ac_check_lib_save_LIBS
8122fi
8123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8124$as_echo "$ac_cv_lib_socket_connect" >&6; }
8125if test "x$ac_cv_lib_socket_connect" = xyes; then :
8126  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8127fi
8128
8129    fi
8130
8131    # Guillermo Gomez says -lposix is necessary on A/UX.
8132    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8133if test "x$ac_cv_func_remove" = xyes; then :
8134
8135fi
8136
8137    if test $ac_cv_func_remove = no; then
8138      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8139$as_echo_n "checking for remove in -lposix... " >&6; }
8140if ${ac_cv_lib_posix_remove+:} false; then :
8141  $as_echo_n "(cached) " >&6
8142else
8143  ac_check_lib_save_LIBS=$LIBS
8144LIBS="-lposix  $LIBS"
8145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146/* end confdefs.h.  */
8147
8148/* Override any GCC internal prototype to avoid an error.
8149   Use char because int might match the return type of a GCC
8150   builtin and then its argument prototype would still apply.  */
8151#ifdef __cplusplus
8152extern "C"
8153#endif
8154char remove ();
8155int
8156main ()
8157{
8158return remove ();
8159  ;
8160  return 0;
8161}
8162_ACEOF
8163if ac_fn_c_try_link "$LINENO"; then :
8164  ac_cv_lib_posix_remove=yes
8165else
8166  ac_cv_lib_posix_remove=no
8167fi
8168rm -f core conftest.err conftest.$ac_objext \
8169    conftest$ac_exeext conftest.$ac_ext
8170LIBS=$ac_check_lib_save_LIBS
8171fi
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8173$as_echo "$ac_cv_lib_posix_remove" >&6; }
8174if test "x$ac_cv_lib_posix_remove" = xyes; then :
8175  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8176fi
8177
8178    fi
8179
8180    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8181    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8182if test "x$ac_cv_func_shmat" = xyes; then :
8183
8184fi
8185
8186    if test $ac_cv_func_shmat = no; then
8187      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8188$as_echo_n "checking for shmat in -lipc... " >&6; }
8189if ${ac_cv_lib_ipc_shmat+:} false; then :
8190  $as_echo_n "(cached) " >&6
8191else
8192  ac_check_lib_save_LIBS=$LIBS
8193LIBS="-lipc  $LIBS"
8194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195/* end confdefs.h.  */
8196
8197/* Override any GCC internal prototype to avoid an error.
8198   Use char because int might match the return type of a GCC
8199   builtin and then its argument prototype would still apply.  */
8200#ifdef __cplusplus
8201extern "C"
8202#endif
8203char shmat ();
8204int
8205main ()
8206{
8207return shmat ();
8208  ;
8209  return 0;
8210}
8211_ACEOF
8212if ac_fn_c_try_link "$LINENO"; then :
8213  ac_cv_lib_ipc_shmat=yes
8214else
8215  ac_cv_lib_ipc_shmat=no
8216fi
8217rm -f core conftest.err conftest.$ac_objext \
8218    conftest$ac_exeext conftest.$ac_ext
8219LIBS=$ac_check_lib_save_LIBS
8220fi
8221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8222$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8223if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8224  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8225fi
8226
8227    fi
8228  fi
8229
8230  # Check for libraries that X11R6 Xt/Xaw programs need.
8231  ac_save_LDFLAGS=$LDFLAGS
8232  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8233  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8234  # check for ICE first), but we must link in the order -lSM -lICE or
8235  # we get undefined symbols.  So assume we have SM if we have ICE.
8236  # These have to be linked with before -lX11, unlike the other
8237  # libraries we check for below, so use a different variable.
8238  # John Interrante, Karl Berry
8239  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8240$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8241if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8242  $as_echo_n "(cached) " >&6
8243else
8244  ac_check_lib_save_LIBS=$LIBS
8245LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247/* end confdefs.h.  */
8248
8249/* Override any GCC internal prototype to avoid an error.
8250   Use char because int might match the return type of a GCC
8251   builtin and then its argument prototype would still apply.  */
8252#ifdef __cplusplus
8253extern "C"
8254#endif
8255char IceConnectionNumber ();
8256int
8257main ()
8258{
8259return IceConnectionNumber ();
8260  ;
8261  return 0;
8262}
8263_ACEOF
8264if ac_fn_c_try_link "$LINENO"; then :
8265  ac_cv_lib_ICE_IceConnectionNumber=yes
8266else
8267  ac_cv_lib_ICE_IceConnectionNumber=no
8268fi
8269rm -f core conftest.err conftest.$ac_objext \
8270    conftest$ac_exeext conftest.$ac_ext
8271LIBS=$ac_check_lib_save_LIBS
8272fi
8273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8274$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8275if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8276  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8277fi
8278
8279  LDFLAGS=$ac_save_LDFLAGS
8280
8281fi
8282
8283
8284        if test "$zOSUnix" = "yes"; then
8285    CFLAGS="$CFLAGS -W c,dll"
8286    LDFLAGS="$LDFLAGS -W l,dll"
8287    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
8288  fi
8289
8290
8291  if test -d "$x_includes" && test ! -d "$x_libraries"; then
8292    x_libraries=`echo "$x_includes" | sed s/include/lib/`
8293    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5
8294$as_echo "Corrected X libraries to $x_libraries" >&6; }
8295    X_LIBS="$X_LIBS -L$x_libraries"
8296    if test "`(uname) 2>/dev/null`" = SunOS &&
8297					 uname -r | grep '^5' >/dev/null; then
8298      X_LIBS="$X_LIBS -R $x_libraries"
8299    fi
8300  fi
8301
8302  if test -d "$x_libraries" && test ! -d "$x_includes"; then
8303    x_includes=`echo "$x_libraries" | sed s/lib/include/`
8304    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5
8305$as_echo "Corrected X includes to $x_includes" >&6; }
8306    X_CFLAGS="$X_CFLAGS -I$x_includes"
8307  fi
8308
8309    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
8310    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
8311    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
8312
8313
8314        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5
8315$as_echo_n "checking if X11 header files can be found... " >&6; }
8316  cflags_save=$CFLAGS
8317  CFLAGS="$CFLAGS $X_CFLAGS"
8318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319/* end confdefs.h.  */
8320#include <X11/Xlib.h>
8321#include <X11/Intrinsic.h>
8322int
8323main ()
8324{
8325
8326  ;
8327  return 0;
8328}
8329_ACEOF
8330if ac_fn_c_try_compile "$LINENO"; then :
8331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8332$as_echo "yes" >&6; }
8333else
8334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335$as_echo "no" >&6; }; no_x=yes
8336fi
8337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8338  CFLAGS=$cflags_save
8339
8340  if test "${no_x-no}" = yes; then
8341    with_x=no
8342  else
8343    $as_echo "#define HAVE_X11 1" >>confdefs.h
8344
8345    X_LIB="-lXt -lX11";
8346
8347
8348    ac_save_LDFLAGS="$LDFLAGS"
8349    LDFLAGS="-L$x_libraries $LDFLAGS"
8350
8351            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
8352$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
8353if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then :
8354  $as_echo_n "(cached) " >&6
8355else
8356  ac_check_lib_save_LIBS=$LIBS
8357LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
8358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359/* end confdefs.h.  */
8360
8361/* Override any GCC internal prototype to avoid an error.
8362   Use char because int might match the return type of a GCC
8363   builtin and then its argument prototype would still apply.  */
8364#ifdef __cplusplus
8365extern "C"
8366#endif
8367char _XdmcpAuthDoIt ();
8368int
8369main ()
8370{
8371return _XdmcpAuthDoIt ();
8372  ;
8373  return 0;
8374}
8375_ACEOF
8376if ac_fn_c_try_link "$LINENO"; then :
8377  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
8378else
8379  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
8380fi
8381rm -f core conftest.err conftest.$ac_objext \
8382    conftest$ac_exeext conftest.$ac_ext
8383LIBS=$ac_check_lib_save_LIBS
8384fi
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
8386$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
8387if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then :
8388  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
8389fi
8390
8391
8392                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5
8393$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
8394if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then :
8395  $as_echo_n "(cached) " >&6
8396else
8397  ac_check_lib_save_LIBS=$LIBS
8398LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400/* end confdefs.h.  */
8401
8402/* Override any GCC internal prototype to avoid an error.
8403   Use char because int might match the return type of a GCC
8404   builtin and then its argument prototype would still apply.  */
8405#ifdef __cplusplus
8406extern "C"
8407#endif
8408char IceOpenConnection ();
8409int
8410main ()
8411{
8412return IceOpenConnection ();
8413  ;
8414  return 0;
8415}
8416_ACEOF
8417if ac_fn_c_try_link "$LINENO"; then :
8418  ac_cv_lib_ICE_IceOpenConnection=yes
8419else
8420  ac_cv_lib_ICE_IceOpenConnection=no
8421fi
8422rm -f core conftest.err conftest.$ac_objext \
8423    conftest$ac_exeext conftest.$ac_ext
8424LIBS=$ac_check_lib_save_LIBS
8425fi
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
8427$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
8428if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then :
8429  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
8430fi
8431
8432
8433        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
8434    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
8435$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
8436if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then :
8437  $as_echo_n "(cached) " >&6
8438else
8439  ac_check_lib_save_LIBS=$LIBS
8440LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
8441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442/* end confdefs.h.  */
8443
8444/* Override any GCC internal prototype to avoid an error.
8445   Use char because int might match the return type of a GCC
8446   builtin and then its argument prototype would still apply.  */
8447#ifdef __cplusplus
8448extern "C"
8449#endif
8450char XpmCreatePixmapFromData ();
8451int
8452main ()
8453{
8454return XpmCreatePixmapFromData ();
8455  ;
8456  return 0;
8457}
8458_ACEOF
8459if ac_fn_c_try_link "$LINENO"; then :
8460  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
8461else
8462  ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
8463fi
8464rm -f core conftest.err conftest.$ac_objext \
8465    conftest$ac_exeext conftest.$ac_ext
8466LIBS=$ac_check_lib_save_LIBS
8467fi
8468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
8469$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
8470if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then :
8471  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8472fi
8473
8474
8475        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5
8476$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8477    cflags_save=$CFLAGS
8478        if test "$GCC" = yes; then
8479      CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8480    else
8481      CFLAGS="$CFLAGS $X_CFLAGS"
8482    fi
8483    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484/* end confdefs.h.  */
8485#include <X11/Xlib.h>
8486int
8487main ()
8488{
8489
8490  ;
8491  return 0;
8492}
8493_ACEOF
8494if ac_fn_c_try_compile "$LINENO"; then :
8495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8496$as_echo "no" >&6; }
8497else
8498  CFLAGS="$CFLAGS -Wno-implicit-int"
8499	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500/* end confdefs.h.  */
8501#include <X11/Xlib.h>
8502int
8503main ()
8504{
8505
8506  ;
8507  return 0;
8508}
8509_ACEOF
8510if ac_fn_c_try_compile "$LINENO"; then :
8511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8512$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8513else
8514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
8515$as_echo "test failed" >&6; }
8516
8517fi
8518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519
8520fi
8521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8522    CFLAGS=$cflags_save
8523
8524    LDFLAGS="$ac_save_LDFLAGS"
8525
8526    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5
8527$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8528    if ${ac_cv_small_wchar_t+:} false; then :
8529  $as_echo_n "(cached) " >&6
8530else
8531  if test "$cross_compiling" = yes; then :
8532  as_fn_error $? "failed to compile test program" "$LINENO" 5
8533else
8534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535/* end confdefs.h.  */
8536
8537#include <X11/Xlib.h>
8538#if STDC_HEADERS
8539# include <stdlib.h>
8540# include <stddef.h>
8541#endif
8542		main()
8543		{
8544		  if (sizeof(wchar_t) <= 2)
8545		    exit(1);
8546		  exit(0);
8547		}
8548_ACEOF
8549if ac_fn_c_try_run "$LINENO"; then :
8550  ac_cv_small_wchar_t="no"
8551else
8552  ac_cv_small_wchar_t="yes"
8553fi
8554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8555  conftest.$ac_objext conftest.beam conftest.$ac_ext
8556fi
8557
8558fi
8559
8560    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5
8561$as_echo "$ac_cv_small_wchar_t" >&6; }
8562    if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8563      $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h
8564
8565    fi
8566
8567  fi
8568fi
8569
8570test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8571
8572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5
8573$as_echo_n "checking --enable-gui argument... " >&6; }
8574# Check whether --enable-gui was given.
8575if test "${enable_gui+set}" = set; then :
8576  enableval=$enable_gui;
8577else
8578  enable_gui="auto"
8579fi
8580
8581
8582enable_gui_canon=`echo "_$enable_gui" | \
8583	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8584
8585SKIP_GTK2=YES
8586SKIP_GTK3=YES
8587SKIP_GNOME=YES
8588SKIP_MOTIF=YES
8589SKIP_ATHENA=YES
8590SKIP_NEXTAW=YES
8591SKIP_PHOTON=YES
8592SKIP_CARBON=YES
8593GUITYPE=NONE
8594
8595if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8596  SKIP_PHOTON=
8597  case "$enable_gui_canon" in
8598    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
8599$as_echo "no GUI support" >&6; }
8600		SKIP_PHOTON=YES ;;
8601    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
8602$as_echo "yes - automatic GUI support" >&6; } ;;
8603    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5
8604$as_echo "auto - automatic GUI support" >&6; } ;;
8605    photon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5
8606$as_echo "Photon GUI support" >&6; } ;;
8607    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
8608$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8609		SKIP_PHOTON=YES ;;
8610  esac
8611
8612elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8613  SKIP_CARBON=
8614  case "$enable_gui_canon" in
8615    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
8616$as_echo "no GUI support" >&6; }
8617		SKIP_CARBON=YES ;;
8618    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
8619$as_echo "yes - automatic GUI support" >&6; } ;;
8620    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5
8621$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; }
8622		SKIP_CARBON=YES ;;
8623    carbon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5
8624$as_echo "Carbon GUI support" >&6; } ;;
8625    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
8626$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8627		SKIP_CARBON=YES ;;
8628  esac
8629
8630else
8631
8632  case "$enable_gui_canon" in
8633    no|none)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
8634$as_echo "no GUI support" >&6; } ;;
8635    yes|""|auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5
8636$as_echo "yes/auto - automatic GUI support" >&6; }
8637		SKIP_GTK2=
8638		SKIP_GNOME=
8639		SKIP_MOTIF=
8640		SKIP_ATHENA=
8641		SKIP_NEXTAW=
8642		SKIP_CARBON=;;
8643    gtk2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5
8644$as_echo "GTK+ 2.x GUI support" >&6; }
8645		SKIP_GTK2=;;
8646    gnome2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5
8647$as_echo "GNOME 2.x GUI support" >&6; }
8648		SKIP_GNOME=
8649		SKIP_GTK2=;;
8650    gtk3)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5
8651$as_echo "GTK+ 3.x GUI support" >&6; }
8652		SKIP_GTK3=;;
8653    motif)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5
8654$as_echo "Motif GUI support" >&6; }
8655		SKIP_MOTIF=;;
8656    athena)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5
8657$as_echo "Athena GUI support" >&6; }
8658		SKIP_ATHENA=;;
8659    nextaw)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5
8660$as_echo "neXtaw GUI support" >&6; }
8661		SKIP_NEXTAW=;;
8662    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
8663$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8664  esac
8665
8666fi
8667
8668if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8669				-a "$enable_gui_canon" != "gnome2"; then
8670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5
8671$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8672  # Check whether --enable-gtk2-check was given.
8673if test "${enable_gtk2_check+set}" = set; then :
8674  enableval=$enable_gtk2_check;
8675else
8676  enable_gtk2_check="yes"
8677fi
8678
8679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5
8680$as_echo "$enable_gtk2_check" >&6; }
8681  if test "x$enable_gtk2_check" = "xno"; then
8682    SKIP_GTK2=YES
8683    SKIP_GNOME=YES
8684  fi
8685fi
8686
8687if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then
8688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5
8689$as_echo_n "checking whether or not to look for GNOME... " >&6; }
8690  # Check whether --enable-gnome-check was given.
8691if test "${enable_gnome_check+set}" = set; then :
8692  enableval=$enable_gnome_check;
8693else
8694  enable_gnome_check="no"
8695fi
8696
8697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5
8698$as_echo "$enable_gnome_check" >&6; }
8699  if test "x$enable_gnome_check" = "xno"; then
8700    SKIP_GNOME=YES
8701  fi
8702fi
8703
8704if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then
8705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5
8706$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; }
8707  # Check whether --enable-gtk3-check was given.
8708if test "${enable_gtk3_check+set}" = set; then :
8709  enableval=$enable_gtk3_check;
8710else
8711  enable_gtk3_check="yes"
8712fi
8713
8714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5
8715$as_echo "$enable_gtk3_check" >&6; }
8716  if test "x$enable_gtk3_check" = "xno"; then
8717    SKIP_GTK3=YES
8718  fi
8719fi
8720
8721if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5
8723$as_echo_n "checking whether or not to look for Motif... " >&6; }
8724  # Check whether --enable-motif-check was given.
8725if test "${enable_motif_check+set}" = set; then :
8726  enableval=$enable_motif_check;
8727else
8728  enable_motif_check="yes"
8729fi
8730
8731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5
8732$as_echo "$enable_motif_check" >&6; }
8733  if test "x$enable_motif_check" = "xno"; then
8734    SKIP_MOTIF=YES
8735  fi
8736fi
8737
8738if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5
8740$as_echo_n "checking whether or not to look for Athena... " >&6; }
8741  # Check whether --enable-athena-check was given.
8742if test "${enable_athena_check+set}" = set; then :
8743  enableval=$enable_athena_check;
8744else
8745  enable_athena_check="yes"
8746fi
8747
8748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5
8749$as_echo "$enable_athena_check" >&6; }
8750  if test "x$enable_athena_check" = "xno"; then
8751    SKIP_ATHENA=YES
8752  fi
8753fi
8754
8755if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5
8757$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8758  # Check whether --enable-nextaw-check was given.
8759if test "${enable_nextaw_check+set}" = set; then :
8760  enableval=$enable_nextaw_check;
8761else
8762  enable_nextaw_check="yes"
8763fi
8764
8765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5
8766$as_echo "$enable_nextaw_check" >&6; };
8767  if test "x$enable_nextaw_check" = "xno"; then
8768    SKIP_NEXTAW=YES
8769  fi
8770fi
8771
8772if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5
8774$as_echo_n "checking whether or not to look for Carbon... " >&6; }
8775  # Check whether --enable-carbon-check was given.
8776if test "${enable_carbon_check+set}" = set; then :
8777  enableval=$enable_carbon_check;
8778else
8779  enable_carbon_check="yes"
8780fi
8781
8782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5
8783$as_echo "$enable_carbon_check" >&6; };
8784  if test "x$enable_carbon_check" = "xno"; then
8785    SKIP_CARBON=YES
8786  fi
8787fi
8788
8789
8790if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5
8792$as_echo_n "checking for Carbon GUI... " >&6; }
8793    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8794$as_echo "yes" >&6; };
8795  GUITYPE=CARBONGUI
8796  if test "$VIMNAME" = "vim"; then
8797    VIMNAME=Vim
8798  fi
8799
8800  if test "x$MACARCH" = "xboth"; then
8801    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
8802  else
8803    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
8804  fi
8805
8806    if test x$prefix = xNONE; then
8807    prefix=/Applications
8808  fi
8809
8810    datadir='${prefix}/Vim.app/Contents/Resources'
8811
8812    SKIP_GTK2=YES;
8813  SKIP_GNOME=YES;
8814  SKIP_MOTIF=YES;
8815  SKIP_ATHENA=YES;
8816  SKIP_NEXTAW=YES;
8817  SKIP_PHOTON=YES;
8818  SKIP_CARBON=YES
8819fi
8820
8821
8822
8823
8824
8825
8826
8827
8828if test -z "$SKIP_GTK2"; then
8829
8830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
8831$as_echo_n "checking --disable-gtktest argument... " >&6; }
8832  # Check whether --enable-gtktest was given.
8833if test "${enable_gtktest+set}" = set; then :
8834  enableval=$enable_gtktest;
8835else
8836  enable_gtktest=yes
8837fi
8838
8839  if test "x$enable_gtktest" = "xyes" ; then
8840    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
8841$as_echo "gtk test enabled" >&6; }
8842  else
8843    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
8844$as_echo "gtk test disabled" >&6; }
8845  fi
8846
8847  if test "X$PKG_CONFIG" = "X"; then
8848    # Extract the first word of "pkg-config", so it can be a program name with args.
8849set dummy pkg-config; ac_word=$2
8850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851$as_echo_n "checking for $ac_word... " >&6; }
8852if ${ac_cv_path_PKG_CONFIG+:} false; then :
8853  $as_echo_n "(cached) " >&6
8854else
8855  case $PKG_CONFIG in
8856  [\\/]* | ?:[\\/]*)
8857  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8858  ;;
8859  *)
8860  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861for as_dir in $PATH
8862do
8863  IFS=$as_save_IFS
8864  test -z "$as_dir" && as_dir=.
8865    for ac_exec_ext in '' $ac_executable_extensions; do
8866  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8867    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8869    break 2
8870  fi
8871done
8872  done
8873IFS=$as_save_IFS
8874
8875  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8876  ;;
8877esac
8878fi
8879PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8880if test -n "$PKG_CONFIG"; then
8881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8882$as_echo "$PKG_CONFIG" >&6; }
8883else
8884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8885$as_echo "no" >&6; }
8886fi
8887
8888
8889  fi
8890
8891  if test "x$PKG_CONFIG" != "xno"; then
8892
8893  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8894  {
8895    no_gtk=""
8896    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8897	  && $PKG_CONFIG --exists gtk+-2.0; then
8898    {
8899      min_gtk_version=2.2.0
8900      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
8901$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8902                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8903      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8904      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8905      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8906	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8907      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8908	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8909      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8910	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8911    }
8912    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8913	  && $PKG_CONFIG --exists gtk+-3.0; then
8914    {
8915      min_gtk_version=2.2.0
8916      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
8917$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8918
8919      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
8920      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
8921      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
8922      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
8923	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8924      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
8925	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8926      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
8927	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8928    }
8929    else
8930      no_gtk=yes
8931    fi
8932
8933    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8934    {
8935      ac_save_CFLAGS="$CFLAGS"
8936      ac_save_LIBS="$LIBS"
8937      CFLAGS="$CFLAGS $GTK_CFLAGS"
8938      LIBS="$LIBS $GTK_LIBS"
8939
8940                        rm -f conf.gtktest
8941      if test "$cross_compiling" = yes; then :
8942  echo $ac_n "cross compiling; assumed OK... $ac_c"
8943else
8944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945/* end confdefs.h.  */
8946
8947#include <gtk/gtk.h>
8948#include <stdio.h>
8949#if STDC_HEADERS
8950# include <stdlib.h>
8951# include <stddef.h>
8952#endif
8953
8954int
8955main ()
8956{
8957int major, minor, micro;
8958char *tmp_version;
8959
8960system ("touch conf.gtktest");
8961
8962/* HP/UX 9 (%@#!) writes to sscanf strings */
8963tmp_version = g_strdup("$min_gtk_version");
8964if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8965   printf("%s, bad version string\n", "$min_gtk_version");
8966   exit(1);
8967 }
8968
8969if ((gtk_major_version > major) ||
8970    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8971    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8972				     (gtk_micro_version >= micro)))
8973{
8974    return 0;
8975}
8976return 1;
8977}
8978
8979_ACEOF
8980if ac_fn_c_try_run "$LINENO"; then :
8981
8982else
8983  no_gtk=yes
8984fi
8985rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8986  conftest.$ac_objext conftest.beam conftest.$ac_ext
8987fi
8988
8989      CFLAGS="$ac_save_CFLAGS"
8990      LIBS="$ac_save_LIBS"
8991    }
8992    fi
8993    if test "x$no_gtk" = x ; then
8994      if test "x$enable_gtktest" = "xyes"; then
8995	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8996$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8997      else
8998	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8999$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9000      fi
9001      GUI_LIB_LOC="$GTK_LIBDIR"
9002		 GTK_LIBNAME="$GTK_LIBS"
9003		GUI_INC_LOC="$GTK_CFLAGS"
9004    else
9005    {
9006      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007$as_echo "no" >&6; }
9008      GTK_CFLAGS=""
9009      GTK_LIBS=""
9010      :
9011    }
9012    fi
9013  }
9014  else
9015    GTK_CFLAGS=""
9016    GTK_LIBS=""
9017    :
9018  fi
9019
9020
9021  rm -f conf.gtktest
9022
9023    if test "x$GTK_CFLAGS" != "x"; then
9024      SKIP_GTK3=YES
9025      SKIP_ATHENA=YES
9026      SKIP_NEXTAW=YES
9027      SKIP_MOTIF=YES
9028      GUITYPE=GTK
9029
9030    fi
9031  fi
9032  if test "x$GUITYPE" = "xGTK"; then
9033                if test -z "$SKIP_GNOME"; then
9034    {
9035
9036
9037
9038
9039
9040
9041# Check whether --with-gnome-includes was given.
9042if test "${with_gnome_includes+set}" = set; then :
9043  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
9044
9045fi
9046
9047
9048
9049# Check whether --with-gnome-libs was given.
9050if test "${with_gnome_libs+set}" = set; then :
9051  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9052
9053fi
9054
9055
9056
9057# Check whether --with-gnome was given.
9058if test "${with_gnome+set}" = set; then :
9059  withval=$with_gnome; if test x$withval = xyes; then
9060      want_gnome=yes
9061      have_gnome=yes
9062    else
9063      if test "x$withval" = xno; then
9064	want_gnome=no
9065      else
9066	want_gnome=yes
9067	LDFLAGS="$LDFLAGS -L$withval/lib"
9068	CFLAGS="$CFLAGS -I$withval/include"
9069	gnome_prefix=$withval/lib
9070      fi
9071    fi
9072else
9073  want_gnome=yes
9074fi
9075
9076
9077  if test "x$want_gnome" = xyes; then
9078  {
9079    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5
9080$as_echo_n "checking for libgnomeui-2.0... " >&6; }
9081    if $PKG_CONFIG --exists libgnomeui-2.0; then
9082      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9083$as_echo "yes" >&6; }
9084      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
9085      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
9086      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
9087
9088                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5
9089$as_echo_n "checking for FreeBSD... " >&6; }
9090      if test "`(uname) 2>/dev/null`" = FreeBSD; then
9091	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9092$as_echo "yes" >&6; }
9093	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9094	GNOME_LIBS="$GNOME_LIBS -pthread"
9095      else
9096	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097$as_echo "no" >&6; }
9098      fi
9099      have_gnome=yes
9100    else
9101      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9102$as_echo "not found" >&6; }
9103      if test "x" = xfail; then
9104	as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5
9105      fi
9106    fi
9107  }
9108  fi
9109
9110      if test "x$have_gnome" = xyes ; then
9111	$as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h
9112
9113	GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9114	GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9115      fi
9116    }
9117    fi
9118  fi
9119fi
9120
9121
9122if test -z "$SKIP_GTK3"; then
9123
9124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9125$as_echo_n "checking --disable-gtktest argument... " >&6; }
9126  # Check whether --enable-gtktest was given.
9127if test "${enable_gtktest+set}" = set; then :
9128  enableval=$enable_gtktest;
9129else
9130  enable_gtktest=yes
9131fi
9132
9133  if test "x$enable_gtktest" = "xyes" ; then
9134    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9135$as_echo "gtk test enabled" >&6; }
9136  else
9137    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9138$as_echo "gtk test disabled" >&6; }
9139  fi
9140
9141  if test "X$PKG_CONFIG" = "X"; then
9142    # Extract the first word of "pkg-config", so it can be a program name with args.
9143set dummy pkg-config; ac_word=$2
9144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9145$as_echo_n "checking for $ac_word... " >&6; }
9146if ${ac_cv_path_PKG_CONFIG+:} false; then :
9147  $as_echo_n "(cached) " >&6
9148else
9149  case $PKG_CONFIG in
9150  [\\/]* | ?:[\\/]*)
9151  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9152  ;;
9153  *)
9154  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9155for as_dir in $PATH
9156do
9157  IFS=$as_save_IFS
9158  test -z "$as_dir" && as_dir=.
9159    for ac_exec_ext in '' $ac_executable_extensions; do
9160  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9161    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9163    break 2
9164  fi
9165done
9166  done
9167IFS=$as_save_IFS
9168
9169  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9170  ;;
9171esac
9172fi
9173PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9174if test -n "$PKG_CONFIG"; then
9175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9176$as_echo "$PKG_CONFIG" >&6; }
9177else
9178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179$as_echo "no" >&6; }
9180fi
9181
9182
9183  fi
9184
9185  if test "x$PKG_CONFIG" != "xno"; then
9186
9187  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9188  {
9189    no_gtk=""
9190    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9191	  && $PKG_CONFIG --exists gtk+-2.0; then
9192    {
9193      min_gtk_version=3.0.0
9194      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9195$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9196                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9197      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9198      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9199      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9200	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9201      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9202	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9203      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9204	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9205    }
9206    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9207	  && $PKG_CONFIG --exists gtk+-3.0; then
9208    {
9209      min_gtk_version=3.0.0
9210      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9211$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9212
9213      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9214      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9215      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9216      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9217	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9218      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9219	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9220      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9221	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9222    }
9223    else
9224      no_gtk=yes
9225    fi
9226
9227    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9228    {
9229      ac_save_CFLAGS="$CFLAGS"
9230      ac_save_LIBS="$LIBS"
9231      CFLAGS="$CFLAGS $GTK_CFLAGS"
9232      LIBS="$LIBS $GTK_LIBS"
9233
9234                        rm -f conf.gtktest
9235      if test "$cross_compiling" = yes; then :
9236  echo $ac_n "cross compiling; assumed OK... $ac_c"
9237else
9238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239/* end confdefs.h.  */
9240
9241#include <gtk/gtk.h>
9242#include <stdio.h>
9243#if STDC_HEADERS
9244# include <stdlib.h>
9245# include <stddef.h>
9246#endif
9247
9248int
9249main ()
9250{
9251int major, minor, micro;
9252char *tmp_version;
9253
9254system ("touch conf.gtktest");
9255
9256/* HP/UX 9 (%@#!) writes to sscanf strings */
9257tmp_version = g_strdup("$min_gtk_version");
9258if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9259   printf("%s, bad version string\n", "$min_gtk_version");
9260   exit(1);
9261 }
9262
9263if ((gtk_major_version > major) ||
9264    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9265    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9266				     (gtk_micro_version >= micro)))
9267{
9268    return 0;
9269}
9270return 1;
9271}
9272
9273_ACEOF
9274if ac_fn_c_try_run "$LINENO"; then :
9275
9276else
9277  no_gtk=yes
9278fi
9279rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9280  conftest.$ac_objext conftest.beam conftest.$ac_ext
9281fi
9282
9283      CFLAGS="$ac_save_CFLAGS"
9284      LIBS="$ac_save_LIBS"
9285    }
9286    fi
9287    if test "x$no_gtk" = x ; then
9288      if test "x$enable_gtktest" = "xyes"; then
9289	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9290$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9291      else
9292	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9293$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9294      fi
9295      GUI_LIB_LOC="$GTK_LIBDIR"
9296		 GTK_LIBNAME="$GTK_LIBS"
9297		GUI_INC_LOC="$GTK_CFLAGS"
9298    else
9299    {
9300      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9301$as_echo "no" >&6; }
9302      GTK_CFLAGS=""
9303      GTK_LIBS=""
9304      :
9305    }
9306    fi
9307  }
9308  else
9309    GTK_CFLAGS=""
9310    GTK_LIBS=""
9311    :
9312  fi
9313
9314
9315  rm -f conf.gtktest
9316
9317    if test "x$GTK_CFLAGS" != "x"; then
9318      SKIP_GTK2=YES
9319      SKIP_GNOME=YES
9320      SKIP_ATHENA=YES
9321      SKIP_NEXTAW=YES
9322      SKIP_MOTIF=YES
9323      GUITYPE=GTK
9324
9325      $as_echo "#define USE_GTK3 1" >>confdefs.h
9326
9327    fi
9328  fi
9329fi
9330
9331if test "x$GUITYPE" = "xGTK"; then
9332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5
9333$as_echo_n "checking version of Gdk-Pixbuf... " >&6; }
9334  gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0`
9335  if test "x$gdk_pixbuf_version" != x ; then
9336    gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \
9337      sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'`
9338    if test "x$gdk_pixbuf_version_minor" != x -a \
9339	$gdk_pixbuf_version_minor -ge 31 ; then
9340      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5
9341$as_echo "OK." >&6; }
9342      # Extract the first word of "glib-compile-resources", so it can be a program name with args.
9343set dummy glib-compile-resources; ac_word=$2
9344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9345$as_echo_n "checking for $ac_word... " >&6; }
9346if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then :
9347  $as_echo_n "(cached) " >&6
9348else
9349  case $GLIB_COMPILE_RESOURCES in
9350  [\\/]* | ?:[\\/]*)
9351  ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path.
9352  ;;
9353  *)
9354  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9355for as_dir in $PATH
9356do
9357  IFS=$as_save_IFS
9358  test -z "$as_dir" && as_dir=.
9359    for ac_exec_ext in '' $ac_executable_extensions; do
9360  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9361    ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext"
9362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9363    break 2
9364  fi
9365done
9366  done
9367IFS=$as_save_IFS
9368
9369  test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no"
9370  ;;
9371esac
9372fi
9373GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES
9374if test -n "$GLIB_COMPILE_RESOURCES"; then
9375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
9376$as_echo "$GLIB_COMPILE_RESOURCES" >&6; }
9377else
9378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9379$as_echo "no" >&6; }
9380fi
9381
9382
9383      { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5
9384$as_echo_n "checking glib-compile-resources... " >&6; }
9385      if test "x$GLIB_COMPILE_RESOURCES" = xno ; then
9386	GLIB_COMPILE_RESOURCES=""
9387	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5
9388$as_echo "cannot be found in PATH." >&6; }
9389      else
9390	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5
9391$as_echo "usable." >&6; }
9392	$as_echo "#define USE_GRESOURCE 1" >>confdefs.h
9393
9394	GRESOURCE_SRC="auto/gui_gtk_gresources.c"
9395	GRESOURCE_OBJ="objects/gui_gtk_gresources.o"
9396      fi
9397    else
9398      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5
9399$as_echo "not usable." >&6; }
9400    fi
9401  else
9402    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5
9403$as_echo "cannot obtain from pkg_config." >&6; }
9404  fi
9405
9406  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5
9407$as_echo_n "checking --disable-icon-cache-update argument... " >&6; }
9408  # Check whether --enable-icon_cache_update was given.
9409if test "${enable_icon_cache_update+set}" = set; then :
9410  enableval=$enable_icon_cache_update;
9411else
9412  enable_icon_cache_update="yes"
9413fi
9414
9415  if test "$enable_icon_cache_update" = "yes"; then
9416    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
9417$as_echo "not set" >&6; }
9418    # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args.
9419set dummy gtk-update-icon-cache; ac_word=$2
9420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421$as_echo_n "checking for $ac_word... " >&6; }
9422if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then :
9423  $as_echo_n "(cached) " >&6
9424else
9425  case $GTK_UPDATE_ICON_CACHE in
9426  [\\/]* | ?:[\\/]*)
9427  ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path.
9428  ;;
9429  *)
9430  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431for as_dir in $PATH
9432do
9433  IFS=$as_save_IFS
9434  test -z "$as_dir" && as_dir=.
9435    for ac_exec_ext in '' $ac_executable_extensions; do
9436  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9437    ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext"
9438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9439    break 2
9440  fi
9441done
9442  done
9443IFS=$as_save_IFS
9444
9445  test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no"
9446  ;;
9447esac
9448fi
9449GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE
9450if test -n "$GTK_UPDATE_ICON_CACHE"; then
9451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5
9452$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; }
9453else
9454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455$as_echo "no" >&6; }
9456fi
9457
9458
9459    if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then
9460      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
9461$as_echo "not found in PATH." >&6; }
9462    fi
9463  else
9464    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
9465$as_echo "update disabled" >&6; }
9466  fi
9467
9468  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5
9469$as_echo_n "checking --disable-desktop-database-update argument... " >&6; }
9470  # Check whether --enable-desktop_database_update was given.
9471if test "${enable_desktop_database_update+set}" = set; then :
9472  enableval=$enable_desktop_database_update;
9473else
9474  enable_desktop_database_update="yes"
9475fi
9476
9477  if test "$enable_desktop_database_update" = "yes"; then
9478    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
9479$as_echo "not set" >&6; }
9480    # Extract the first word of "update-desktop-database", so it can be a program name with args.
9481set dummy update-desktop-database; ac_word=$2
9482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483$as_echo_n "checking for $ac_word... " >&6; }
9484if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
9485  $as_echo_n "(cached) " >&6
9486else
9487  case $UPDATE_DESKTOP_DATABASE in
9488  [\\/]* | ?:[\\/]*)
9489  ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
9490  ;;
9491  *)
9492  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9493for as_dir in $PATH
9494do
9495  IFS=$as_save_IFS
9496  test -z "$as_dir" && as_dir=.
9497    for ac_exec_ext in '' $ac_executable_extensions; do
9498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9499    ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
9500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9501    break 2
9502  fi
9503done
9504  done
9505IFS=$as_save_IFS
9506
9507  test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
9508  ;;
9509esac
9510fi
9511UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
9512if test -n "$UPDATE_DESKTOP_DATABASE"; then
9513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
9514$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
9515else
9516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517$as_echo "no" >&6; }
9518fi
9519
9520
9521    if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then
9522      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
9523$as_echo "not found in PATH." >&6; }
9524    fi
9525  else
9526    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
9527$as_echo "update disabled" >&6; }
9528  fi
9529fi
9530
9531
9532
9533
9534
9535
9536
9537if test -z "$SKIP_MOTIF"; then
9538  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"
9539    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
9540
9541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5
9542$as_echo_n "checking for location of Motif GUI includes... " >&6; }
9543  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
9544  GUI_INC_LOC=
9545  for try in $gui_includes; do
9546    if test -f "$try/Xm/Xm.h"; then
9547      GUI_INC_LOC=$try
9548    fi
9549  done
9550  if test -n "$GUI_INC_LOC"; then
9551    if test "$GUI_INC_LOC" = /usr/include; then
9552      GUI_INC_LOC=
9553      { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
9554$as_echo "in default path" >&6; }
9555    else
9556      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5
9557$as_echo "$GUI_INC_LOC" >&6; }
9558    fi
9559  else
9560    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
9561$as_echo "<not found>" >&6; }
9562    SKIP_MOTIF=YES
9563  fi
9564fi
9565
9566
9567if test -z "$SKIP_MOTIF"; then
9568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5
9569$as_echo_n "checking --with-motif-lib argument... " >&6; }
9570
9571# Check whether --with-motif-lib was given.
9572if test "${with_motif_lib+set}" = set; then :
9573  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
9574fi
9575
9576
9577  if test -n "$MOTIF_LIBNAME"; then
9578    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5
9579$as_echo "$MOTIF_LIBNAME" >&6; }
9580    GUI_LIB_LOC=
9581  else
9582    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9583$as_echo "no" >&6; }
9584
9585        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9586
9587            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
9588$as_echo_n "checking for location of Motif GUI libs... " >&6; }
9589    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"
9590    GUI_LIB_LOC=
9591    for try in $gui_libs; do
9592      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9593	if test -f "$libtry"; then
9594	  GUI_LIB_LOC=$try
9595	fi
9596      done
9597    done
9598    if test -n "$GUI_LIB_LOC"; then
9599            if test "$GUI_LIB_LOC" = /usr/lib \
9600	   -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \
9601	   -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then
9602	GUI_LIB_LOC=
9603	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
9604$as_echo "in default path" >&6; }
9605      else
9606	if test -n "$GUI_LIB_LOC"; then
9607	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5
9608$as_echo "$GUI_LIB_LOC" >&6; }
9609	  if test "`(uname) 2>/dev/null`" = SunOS &&
9610					 uname -r | grep '^5' >/dev/null; then
9611	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9612	  fi
9613	fi
9614      fi
9615      MOTIF_LIBNAME=-lXm
9616    else
9617      { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
9618$as_echo "<not found>" >&6; }
9619      SKIP_MOTIF=YES
9620    fi
9621  fi
9622fi
9623
9624if test -z "$SKIP_MOTIF"; then
9625  SKIP_ATHENA=YES
9626  SKIP_NEXTAW=YES
9627  GUITYPE=MOTIF
9628
9629fi
9630
9631
9632GUI_X_LIBS=
9633
9634if test -z "$SKIP_ATHENA"; then
9635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5
9636$as_echo_n "checking if Athena header files can be found... " >&6; }
9637  cflags_save=$CFLAGS
9638  CFLAGS="$CFLAGS $X_CFLAGS"
9639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640/* end confdefs.h.  */
9641
9642#include <X11/Intrinsic.h>
9643#include <X11/Xaw/Paned.h>
9644int
9645main ()
9646{
9647
9648  ;
9649  return 0;
9650}
9651_ACEOF
9652if ac_fn_c_try_compile "$LINENO"; then :
9653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9654$as_echo "yes" >&6; }
9655else
9656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9657$as_echo "no" >&6; }; SKIP_ATHENA=YES
9658fi
9659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9660  CFLAGS=$cflags_save
9661fi
9662
9663if test -z "$SKIP_ATHENA"; then
9664  GUITYPE=ATHENA
9665fi
9666
9667if test -z "$SKIP_NEXTAW"; then
9668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5
9669$as_echo_n "checking if neXtaw header files can be found... " >&6; }
9670  cflags_save=$CFLAGS
9671  CFLAGS="$CFLAGS $X_CFLAGS"
9672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673/* end confdefs.h.  */
9674
9675#include <X11/Intrinsic.h>
9676#include <X11/neXtaw/Paned.h>
9677int
9678main ()
9679{
9680
9681  ;
9682  return 0;
9683}
9684_ACEOF
9685if ac_fn_c_try_compile "$LINENO"; then :
9686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9687$as_echo "yes" >&6; }
9688else
9689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9690$as_echo "no" >&6; }; SKIP_NEXTAW=YES
9691fi
9692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9693  CFLAGS=$cflags_save
9694fi
9695
9696if test -z "$SKIP_NEXTAW"; then
9697  GUITYPE=NEXTAW
9698fi
9699
9700if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9701      if test -n "$GUI_INC_LOC"; then
9702    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9703  fi
9704  if test -n "$GUI_LIB_LOC"; then
9705    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9706  fi
9707
9708    ldflags_save=$LDFLAGS
9709  LDFLAGS="$X_LIBS $LDFLAGS"
9710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9711$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9712if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9713  $as_echo_n "(cached) " >&6
9714else
9715  ac_check_lib_save_LIBS=$LIBS
9716LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718/* end confdefs.h.  */
9719
9720/* Override any GCC internal prototype to avoid an error.
9721   Use char because int might match the return type of a GCC
9722   builtin and then its argument prototype would still apply.  */
9723#ifdef __cplusplus
9724extern "C"
9725#endif
9726char XShapeQueryExtension ();
9727int
9728main ()
9729{
9730return XShapeQueryExtension ();
9731  ;
9732  return 0;
9733}
9734_ACEOF
9735if ac_fn_c_try_link "$LINENO"; then :
9736  ac_cv_lib_Xext_XShapeQueryExtension=yes
9737else
9738  ac_cv_lib_Xext_XShapeQueryExtension=no
9739fi
9740rm -f core conftest.err conftest.$ac_objext \
9741    conftest$ac_exeext conftest.$ac_ext
9742LIBS=$ac_check_lib_save_LIBS
9743fi
9744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9745$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9746if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9747  GUI_X_LIBS="-lXext"
9748fi
9749
9750    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5
9751$as_echo_n "checking for wslen in -lw... " >&6; }
9752if ${ac_cv_lib_w_wslen+:} false; then :
9753  $as_echo_n "(cached) " >&6
9754else
9755  ac_check_lib_save_LIBS=$LIBS
9756LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758/* end confdefs.h.  */
9759
9760/* Override any GCC internal prototype to avoid an error.
9761   Use char because int might match the return type of a GCC
9762   builtin and then its argument prototype would still apply.  */
9763#ifdef __cplusplus
9764extern "C"
9765#endif
9766char wslen ();
9767int
9768main ()
9769{
9770return wslen ();
9771  ;
9772  return 0;
9773}
9774_ACEOF
9775if ac_fn_c_try_link "$LINENO"; then :
9776  ac_cv_lib_w_wslen=yes
9777else
9778  ac_cv_lib_w_wslen=no
9779fi
9780rm -f core conftest.err conftest.$ac_objext \
9781    conftest$ac_exeext conftest.$ac_ext
9782LIBS=$ac_check_lib_save_LIBS
9783fi
9784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5
9785$as_echo "$ac_cv_lib_w_wslen" >&6; }
9786if test "x$ac_cv_lib_w_wslen" = xyes; then :
9787  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9788fi
9789
9790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
9791$as_echo_n "checking for dlsym in -ldl... " >&6; }
9792if ${ac_cv_lib_dl_dlsym+:} false; then :
9793  $as_echo_n "(cached) " >&6
9794else
9795  ac_check_lib_save_LIBS=$LIBS
9796LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798/* end confdefs.h.  */
9799
9800/* Override any GCC internal prototype to avoid an error.
9801   Use char because int might match the return type of a GCC
9802   builtin and then its argument prototype would still apply.  */
9803#ifdef __cplusplus
9804extern "C"
9805#endif
9806char dlsym ();
9807int
9808main ()
9809{
9810return dlsym ();
9811  ;
9812  return 0;
9813}
9814_ACEOF
9815if ac_fn_c_try_link "$LINENO"; then :
9816  ac_cv_lib_dl_dlsym=yes
9817else
9818  ac_cv_lib_dl_dlsym=no
9819fi
9820rm -f core conftest.err conftest.$ac_objext \
9821    conftest$ac_exeext conftest.$ac_ext
9822LIBS=$ac_check_lib_save_LIBS
9823fi
9824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
9825$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9826if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
9827  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9828fi
9829
9830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5
9831$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9832if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then :
9833  $as_echo_n "(cached) " >&6
9834else
9835  ac_check_lib_save_LIBS=$LIBS
9836LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838/* end confdefs.h.  */
9839
9840/* Override any GCC internal prototype to avoid an error.
9841   Use char because int might match the return type of a GCC
9842   builtin and then its argument prototype would still apply.  */
9843#ifdef __cplusplus
9844extern "C"
9845#endif
9846char XmuCreateStippledPixmap ();
9847int
9848main ()
9849{
9850return XmuCreateStippledPixmap ();
9851  ;
9852  return 0;
9853}
9854_ACEOF
9855if ac_fn_c_try_link "$LINENO"; then :
9856  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9857else
9858  ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9859fi
9860rm -f core conftest.err conftest.$ac_objext \
9861    conftest$ac_exeext conftest.$ac_ext
9862LIBS=$ac_check_lib_save_LIBS
9863fi
9864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9865$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9866if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then :
9867  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9868fi
9869
9870  if test -z "$SKIP_MOTIF"; then
9871    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5
9872$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9873if ${ac_cv_lib_Xp_XpEndJob+:} false; then :
9874  $as_echo_n "(cached) " >&6
9875else
9876  ac_check_lib_save_LIBS=$LIBS
9877LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879/* end confdefs.h.  */
9880
9881/* Override any GCC internal prototype to avoid an error.
9882   Use char because int might match the return type of a GCC
9883   builtin and then its argument prototype would still apply.  */
9884#ifdef __cplusplus
9885extern "C"
9886#endif
9887char XpEndJob ();
9888int
9889main ()
9890{
9891return XpEndJob ();
9892  ;
9893  return 0;
9894}
9895_ACEOF
9896if ac_fn_c_try_link "$LINENO"; then :
9897  ac_cv_lib_Xp_XpEndJob=yes
9898else
9899  ac_cv_lib_Xp_XpEndJob=no
9900fi
9901rm -f core conftest.err conftest.$ac_objext \
9902    conftest$ac_exeext conftest.$ac_ext
9903LIBS=$ac_check_lib_save_LIBS
9904fi
9905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5
9906$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9907if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then :
9908  GUI_X_LIBS="-lXp $GUI_X_LIBS"
9909fi
9910
9911  fi
9912  LDFLAGS=$ldflags_save
9913
9914    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5
9915$as_echo_n "checking for extra X11 defines... " >&6; }
9916  NARROW_PROTO=
9917  rm -fr conftestdir
9918  if mkdir conftestdir; then
9919    cd conftestdir
9920    cat > Imakefile <<'EOF'
9921acfindx:
9922	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9923EOF
9924    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9925      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9926    fi
9927    cd ..
9928    rm -fr conftestdir
9929  fi
9930  if test -z "$NARROW_PROTO"; then
9931    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932$as_echo "no" >&6; }
9933  else
9934    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5
9935$as_echo "$NARROW_PROTO" >&6; }
9936  fi
9937
9938fi
9939
9940if test "$enable_xsmp" = "yes"; then
9941  cppflags_save=$CPPFLAGS
9942  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9943  for ac_header in X11/SM/SMlib.h
9944do :
9945  ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
9946if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
9947  cat >>confdefs.h <<_ACEOF
9948#define HAVE_X11_SM_SMLIB_H 1
9949_ACEOF
9950
9951fi
9952
9953done
9954
9955  CPPFLAGS=$cppflags_save
9956fi
9957
9958
9959if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then
9960    cppflags_save=$CPPFLAGS
9961  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9962  for ac_header in X11/xpm.h X11/Sunkeysym.h
9963do :
9964  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9965ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9966if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9967  cat >>confdefs.h <<_ACEOF
9968#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9969_ACEOF
9970
9971fi
9972
9973done
9974
9975
9976    if test ! "$enable_xim" = "no"; then
9977    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5
9978$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
9979    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980/* end confdefs.h.  */
9981#include <X11/Xlib.h>
9982_ACEOF
9983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9984  $EGREP "XIMText" >/dev/null 2>&1; then :
9985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9986$as_echo "yes" >&6; }
9987else
9988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5
9989$as_echo "no; xim has been disabled" >&6; }; enable_xim="no"
9990fi
9991rm -f conftest*
9992
9993  fi
9994  CPPFLAGS=$cppflags_save
9995
9996    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9997		-a "x$GUITYPE" != "xNONE" ; then
9998    { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5
9999$as_echo "X GUI selected; xim has been enabled" >&6; }
10000    enable_xim="yes"
10001  fi
10002fi
10003
10004if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10005  cppflags_save=$CPPFLAGS
10006  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5
10008$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010/* end confdefs.h.  */
10011
10012#include <X11/Intrinsic.h>
10013#include <X11/Xmu/Editres.h>
10014int
10015main ()
10016{
10017int i; i = 0;
10018  ;
10019  return 0;
10020}
10021_ACEOF
10022if ac_fn_c_try_compile "$LINENO"; then :
10023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10024$as_echo "yes" >&6; }
10025		      $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h
10026
10027else
10028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029$as_echo "no" >&6; }
10030fi
10031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10032  CPPFLAGS=$cppflags_save
10033fi
10034
10035if test -z "$SKIP_MOTIF"; then
10036  cppflags_save=$CPPFLAGS
10037  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10038  if test "$zOSUnix" = "yes"; then
10039	xmheader="Xm/Xm.h"
10040  else
10041	xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h
10042	   Xm/UnhighlightT.h Xm/Notebook.h"
10043  fi
10044  for ac_header in $xmheader
10045do :
10046  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10047ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10048if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10049  cat >>confdefs.h <<_ACEOF
10050#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10051_ACEOF
10052
10053fi
10054
10055done
10056
10057
10058  if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then
10059        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10060$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10061    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062/* end confdefs.h.  */
10063#include <Xm/XpmP.h>
10064int
10065main ()
10066{
10067XpmAttributes_21 attr;
10068  ;
10069  return 0;
10070}
10071_ACEOF
10072if ac_fn_c_try_compile "$LINENO"; then :
10073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10074$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h
10075
10076else
10077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10078$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10079
10080
10081fi
10082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10083  else
10084    $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10085
10086  fi
10087  CPPFLAGS=$cppflags_save
10088fi
10089
10090if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5
10092$as_echo "no GUI selected; xim has been disabled" >&6; }
10093  enable_xim="no"
10094fi
10095if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5
10097$as_echo "no GUI selected; fontset has been disabled" >&6; }
10098  enable_fontset="no"
10099fi
10100if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then
10101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10102$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10103  enable_fontset="no"
10104fi
10105
10106if test -z "$SKIP_PHOTON"; then
10107  GUITYPE=PHOTONGUI
10108fi
10109
10110
10111
10112
10113
10114
10115if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10116  as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5
10117fi
10118
10119if test "$enable_xim" = "yes"; then
10120  $as_echo "#define FEAT_XIM 1" >>confdefs.h
10121
10122fi
10123if test "$enable_fontset" = "yes"; then
10124  $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h
10125
10126fi
10127
10128
10129
10130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5
10131$as_echo_n "checking for /proc link to executable... " >&6; }
10132if test -L "/proc/self/exe"; then
10133    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5
10134$as_echo "/proc/self/exe" >&6; }
10135  $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h
10136
10137elif test -L "/proc/self/path/a.out"; then
10138    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5
10139$as_echo "/proc/self/path/a.out" >&6; }
10140  $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h
10141
10142elif test -L "/proc/curproc/file"; then
10143    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5
10144$as_echo "/proc/curproc/file" >&6; }
10145  $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h
10146
10147else
10148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10149$as_echo "no" >&6; }
10150fi
10151
10152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5
10153$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; }
10154case `uname` in
10155    CYGWIN*|MSYS*)    CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10156$as_echo "yes" >&6; }
10157                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5
10158$as_echo_n "checking for CYGWIN clipboard support... " >&6; }
10159                if test "x$with_x" = "xno" ; then
10160                  OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o
10161                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10162$as_echo "yes" >&6; }
10163                  $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h
10164
10165                else
10166                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5
10167$as_echo "no - using X11" >&6; }
10168                fi ;;
10169
10170    *)          CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10171$as_echo "no" >&6; };;
10172esac
10173
10174if test "$enable_hangulinput" = "yes"; then
10175  if test "x$GUITYPE" = "xNONE"; then
10176    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5
10177$as_echo "no GUI selected; hangul input has been disabled" >&6; }
10178    enable_hangulinput=no
10179  else
10180    $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h
10181
10182    HANGULIN_SRC=hangulin.c
10183
10184    HANGULIN_OBJ=objects/hangulin.o
10185
10186  fi
10187fi
10188
10189
10190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5
10191$as_echo_n "checking whether toupper is broken... " >&6; }
10192if ${vim_cv_toupper_broken+:} false; then :
10193  $as_echo_n "(cached) " >&6
10194else
10195
10196    if test "$cross_compiling" = yes; then :
10197
10198    as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5
10199
10200else
10201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202/* end confdefs.h.  */
10203
10204#include "confdefs.h"
10205#include <ctype.h>
10206#if STDC_HEADERS
10207# include <stdlib.h>
10208# include <stddef.h>
10209#endif
10210main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10211
10212_ACEOF
10213if ac_fn_c_try_run "$LINENO"; then :
10214
10215    vim_cv_toupper_broken=yes
10216
10217else
10218
10219    vim_cv_toupper_broken=no
10220
10221fi
10222rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10223  conftest.$ac_objext conftest.beam conftest.$ac_ext
10224fi
10225
10226fi
10227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5
10228$as_echo "$vim_cv_toupper_broken" >&6; }
10229
10230if test "x$vim_cv_toupper_broken" = "xyes" ; then
10231  $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h
10232
10233fi
10234
10235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5
10236$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238/* end confdefs.h.  */
10239#include <stdio.h>
10240int
10241main ()
10242{
10243printf("(" __DATE__ " " __TIME__ ")");
10244  ;
10245  return 0;
10246}
10247_ACEOF
10248if ac_fn_c_try_compile "$LINENO"; then :
10249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10250$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h
10251
10252else
10253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10254$as_echo "no" >&6; }
10255fi
10256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10257
10258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5
10259$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261/* end confdefs.h.  */
10262#include <stdio.h>
10263int
10264main ()
10265{
10266int x __attribute__((unused));
10267  ;
10268  return 0;
10269}
10270_ACEOF
10271if ac_fn_c_try_compile "$LINENO"; then :
10272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10273$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
10274
10275else
10276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277$as_echo "no" >&6; }
10278fi
10279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10280
10281ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
10282if test "x$ac_cv_header_elf_h" = xyes; then :
10283  HAS_ELF=1
10284fi
10285
10286
10287if test "$HAS_ELF" = 1; then
10288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5
10289$as_echo_n "checking for main in -lelf... " >&6; }
10290if ${ac_cv_lib_elf_main+:} false; then :
10291  $as_echo_n "(cached) " >&6
10292else
10293  ac_check_lib_save_LIBS=$LIBS
10294LIBS="-lelf  $LIBS"
10295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296/* end confdefs.h.  */
10297
10298
10299int
10300main ()
10301{
10302return main ();
10303  ;
10304  return 0;
10305}
10306_ACEOF
10307if ac_fn_c_try_link "$LINENO"; then :
10308  ac_cv_lib_elf_main=yes
10309else
10310  ac_cv_lib_elf_main=no
10311fi
10312rm -f core conftest.err conftest.$ac_objext \
10313    conftest$ac_exeext conftest.$ac_ext
10314LIBS=$ac_check_lib_save_LIBS
10315fi
10316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5
10317$as_echo "$ac_cv_lib_elf_main" >&6; }
10318if test "x$ac_cv_lib_elf_main" = xyes; then :
10319  cat >>confdefs.h <<_ACEOF
10320#define HAVE_LIBELF 1
10321_ACEOF
10322
10323  LIBS="-lelf $LIBS"
10324
10325fi
10326
10327fi
10328
10329ac_header_dirent=no
10330for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10331  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10333$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10334if eval \${$as_ac_Header+:} false; then :
10335  $as_echo_n "(cached) " >&6
10336else
10337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338/* end confdefs.h.  */
10339#include <sys/types.h>
10340#include <$ac_hdr>
10341
10342int
10343main ()
10344{
10345if ((DIR *) 0)
10346return 0;
10347  ;
10348  return 0;
10349}
10350_ACEOF
10351if ac_fn_c_try_compile "$LINENO"; then :
10352  eval "$as_ac_Header=yes"
10353else
10354  eval "$as_ac_Header=no"
10355fi
10356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10357fi
10358eval ac_res=\$$as_ac_Header
10359	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10360$as_echo "$ac_res" >&6; }
10361if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10362  cat >>confdefs.h <<_ACEOF
10363#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10364_ACEOF
10365
10366ac_header_dirent=$ac_hdr; break
10367fi
10368
10369done
10370# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10371if test $ac_header_dirent = dirent.h; then
10372  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10373$as_echo_n "checking for library containing opendir... " >&6; }
10374if ${ac_cv_search_opendir+:} false; then :
10375  $as_echo_n "(cached) " >&6
10376else
10377  ac_func_search_save_LIBS=$LIBS
10378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379/* end confdefs.h.  */
10380
10381/* Override any GCC internal prototype to avoid an error.
10382   Use char because int might match the return type of a GCC
10383   builtin and then its argument prototype would still apply.  */
10384#ifdef __cplusplus
10385extern "C"
10386#endif
10387char opendir ();
10388int
10389main ()
10390{
10391return opendir ();
10392  ;
10393  return 0;
10394}
10395_ACEOF
10396for ac_lib in '' dir; do
10397  if test -z "$ac_lib"; then
10398    ac_res="none required"
10399  else
10400    ac_res=-l$ac_lib
10401    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10402  fi
10403  if ac_fn_c_try_link "$LINENO"; then :
10404  ac_cv_search_opendir=$ac_res
10405fi
10406rm -f core conftest.err conftest.$ac_objext \
10407    conftest$ac_exeext
10408  if ${ac_cv_search_opendir+:} false; then :
10409  break
10410fi
10411done
10412if ${ac_cv_search_opendir+:} false; then :
10413
10414else
10415  ac_cv_search_opendir=no
10416fi
10417rm conftest.$ac_ext
10418LIBS=$ac_func_search_save_LIBS
10419fi
10420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10421$as_echo "$ac_cv_search_opendir" >&6; }
10422ac_res=$ac_cv_search_opendir
10423if test "$ac_res" != no; then :
10424  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10425
10426fi
10427
10428else
10429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10430$as_echo_n "checking for library containing opendir... " >&6; }
10431if ${ac_cv_search_opendir+:} false; then :
10432  $as_echo_n "(cached) " >&6
10433else
10434  ac_func_search_save_LIBS=$LIBS
10435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436/* end confdefs.h.  */
10437
10438/* Override any GCC internal prototype to avoid an error.
10439   Use char because int might match the return type of a GCC
10440   builtin and then its argument prototype would still apply.  */
10441#ifdef __cplusplus
10442extern "C"
10443#endif
10444char opendir ();
10445int
10446main ()
10447{
10448return opendir ();
10449  ;
10450  return 0;
10451}
10452_ACEOF
10453for ac_lib in '' x; do
10454  if test -z "$ac_lib"; then
10455    ac_res="none required"
10456  else
10457    ac_res=-l$ac_lib
10458    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10459  fi
10460  if ac_fn_c_try_link "$LINENO"; then :
10461  ac_cv_search_opendir=$ac_res
10462fi
10463rm -f core conftest.err conftest.$ac_objext \
10464    conftest$ac_exeext
10465  if ${ac_cv_search_opendir+:} false; then :
10466  break
10467fi
10468done
10469if ${ac_cv_search_opendir+:} false; then :
10470
10471else
10472  ac_cv_search_opendir=no
10473fi
10474rm conftest.$ac_ext
10475LIBS=$ac_func_search_save_LIBS
10476fi
10477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10478$as_echo "$ac_cv_search_opendir" >&6; }
10479ac_res=$ac_cv_search_opendir
10480if test "$ac_res" != no; then :
10481  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10482
10483fi
10484
10485fi
10486
10487
10488if test $ac_cv_header_sys_wait_h = no; then
10489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5
10490$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
10491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492/* end confdefs.h.  */
10493#include <sys/wait.h>
10494int
10495main ()
10496{
10497union wait xx, yy; xx = yy
10498  ;
10499  return 0;
10500}
10501_ACEOF
10502if ac_fn_c_try_compile "$LINENO"; then :
10503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10504$as_echo "yes" >&6; }
10505			$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
10506
10507			$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
10508
10509else
10510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511$as_echo "no" >&6; }
10512fi
10513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10514fi
10515
10516for ac_header in stdint.h stdlib.h string.h \
10517	sys/select.h sys/utsname.h termcap.h fcntl.h \
10518	sgtty.h sys/ioctl.h sys/time.h sys/types.h \
10519	termio.h iconv.h inttypes.h langinfo.h math.h \
10520	unistd.h stropts.h errno.h sys/resource.h \
10521	sys/systeminfo.h locale.h sys/stream.h termios.h \
10522	libc.h sys/statfs.h poll.h sys/poll.h pwd.h \
10523	utime.h sys/param.h libintl.h libgen.h \
10524	util/debug.h util/msg18n.h frame.h sys/acl.h \
10525	sys/access.h sys/sysinfo.h wchar.h wctype.h
10526do :
10527  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10528ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10529if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10530  cat >>confdefs.h <<_ACEOF
10531#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10532_ACEOF
10533
10534fi
10535
10536done
10537
10538
10539for ac_header in sys/ptem.h
10540do :
10541  ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H
10542#  include <sys/stream.h>
10543#endif
10544"
10545if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
10546  cat >>confdefs.h <<_ACEOF
10547#define HAVE_SYS_PTEM_H 1
10548_ACEOF
10549
10550fi
10551
10552done
10553
10554
10555for ac_header in sys/sysctl.h
10556do :
10557  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
10558#  include <sys/param.h>
10559#endif
10560"
10561if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
10562  cat >>confdefs.h <<_ACEOF
10563#define HAVE_SYS_SYSCTL_H 1
10564_ACEOF
10565
10566fi
10567
10568done
10569
10570
10571
10572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5
10573$as_echo_n "checking for pthread_np.h... " >&6; }
10574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10575/* end confdefs.h.  */
10576
10577#include <pthread.h>
10578#include <pthread_np.h>
10579int
10580main ()
10581{
10582int i; i = 0;
10583  ;
10584  return 0;
10585}
10586_ACEOF
10587if ac_fn_c_try_compile "$LINENO"; then :
10588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10589$as_echo "yes" >&6; }
10590		      $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
10591
10592else
10593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594$as_echo "no" >&6; }
10595fi
10596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10597
10598for ac_header in strings.h
10599do :
10600  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
10601if test "x$ac_cv_header_strings_h" = xyes; then :
10602  cat >>confdefs.h <<_ACEOF
10603#define HAVE_STRINGS_H 1
10604_ACEOF
10605
10606fi
10607
10608done
10609
10610if test "x$MACOSX" = "xyes"; then
10611    $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
10612
10613else
10614
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5
10616$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
10617cppflags_save=$CPPFLAGS
10618CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620/* end confdefs.h.  */
10621
10622#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10623# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
10624			/* but don't do it on AIX 5.1 (Uribarri) */
10625#endif
10626#ifdef HAVE_XM_XM_H
10627# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
10628#endif
10629#ifdef HAVE_STRING_H
10630# include <string.h>
10631#endif
10632#if defined(HAVE_STRINGS_H)
10633# include <strings.h>
10634#endif
10635
10636int
10637main ()
10638{
10639int i; i = 0;
10640  ;
10641  return 0;
10642}
10643_ACEOF
10644if ac_fn_c_try_compile "$LINENO"; then :
10645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10646$as_echo "yes" >&6; }
10647else
10648  $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
10649
10650		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651$as_echo "no" >&6; }
10652fi
10653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10654CPPFLAGS=$cppflags_save
10655fi
10656
10657if test $ac_cv_c_compiler_gnu = yes; then
10658    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
10659$as_echo_n "checking whether $CC needs -traditional... " >&6; }
10660if ${ac_cv_prog_gcc_traditional+:} false; then :
10661  $as_echo_n "(cached) " >&6
10662else
10663    ac_pattern="Autoconf.*'x'"
10664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665/* end confdefs.h.  */
10666#include <sgtty.h>
10667Autoconf TIOCGETP
10668_ACEOF
10669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10670  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10671  ac_cv_prog_gcc_traditional=yes
10672else
10673  ac_cv_prog_gcc_traditional=no
10674fi
10675rm -f conftest*
10676
10677
10678  if test $ac_cv_prog_gcc_traditional = no; then
10679    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680/* end confdefs.h.  */
10681#include <termio.h>
10682Autoconf TCGETA
10683_ACEOF
10684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10685  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10686  ac_cv_prog_gcc_traditional=yes
10687fi
10688rm -f conftest*
10689
10690  fi
10691fi
10692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10693$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
10694  if test $ac_cv_prog_gcc_traditional = yes; then
10695    CC="$CC -traditional"
10696  fi
10697fi
10698
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10700$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10701if ${ac_cv_c_const+:} false; then :
10702  $as_echo_n "(cached) " >&6
10703else
10704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705/* end confdefs.h.  */
10706
10707int
10708main ()
10709{
10710
10711#ifndef __cplusplus
10712  /* Ultrix mips cc rejects this sort of thing.  */
10713  typedef int charset[2];
10714  const charset cs = { 0, 0 };
10715  /* SunOS 4.1.1 cc rejects this.  */
10716  char const *const *pcpcc;
10717  char **ppc;
10718  /* NEC SVR4.0.2 mips cc rejects this.  */
10719  struct point {int x, y;};
10720  static struct point const zero = {0,0};
10721  /* AIX XL C 1.02.0.0 rejects this.
10722     It does not let you subtract one const X* pointer from another in
10723     an arm of an if-expression whose if-part is not a constant
10724     expression */
10725  const char *g = "string";
10726  pcpcc = &g + (g ? g-g : 0);
10727  /* HPUX 7.0 cc rejects these. */
10728  ++pcpcc;
10729  ppc = (char**) pcpcc;
10730  pcpcc = (char const *const *) ppc;
10731  { /* SCO 3.2v4 cc rejects this sort of thing.  */
10732    char tx;
10733    char *t = &tx;
10734    char const *s = 0 ? (char *) 0 : (char const *) 0;
10735
10736    *t++ = 0;
10737    if (s) return 0;
10738  }
10739  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10740    int x[] = {25, 17};
10741    const int *foo = &x[0];
10742    ++foo;
10743  }
10744  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10745    typedef const int *iptr;
10746    iptr p = 0;
10747    ++p;
10748  }
10749  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
10750       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10751    struct s { int j; const int *ap[3]; } bx;
10752    struct s *b = &bx; b->j = 5;
10753  }
10754  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10755    const int foo = 10;
10756    if (!foo) return 0;
10757  }
10758  return !cs[0] && !zero.x;
10759#endif
10760
10761  ;
10762  return 0;
10763}
10764_ACEOF
10765if ac_fn_c_try_compile "$LINENO"; then :
10766  ac_cv_c_const=yes
10767else
10768  ac_cv_c_const=no
10769fi
10770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10771fi
10772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10773$as_echo "$ac_cv_c_const" >&6; }
10774if test $ac_cv_c_const = no; then
10775
10776$as_echo "#define const /**/" >>confdefs.h
10777
10778fi
10779
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
10781$as_echo_n "checking for working volatile... " >&6; }
10782if ${ac_cv_c_volatile+:} false; then :
10783  $as_echo_n "(cached) " >&6
10784else
10785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786/* end confdefs.h.  */
10787
10788int
10789main ()
10790{
10791
10792volatile int x;
10793int * volatile y = (int *) 0;
10794return !x && !y;
10795  ;
10796  return 0;
10797}
10798_ACEOF
10799if ac_fn_c_try_compile "$LINENO"; then :
10800  ac_cv_c_volatile=yes
10801else
10802  ac_cv_c_volatile=no
10803fi
10804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10805fi
10806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
10807$as_echo "$ac_cv_c_volatile" >&6; }
10808if test $ac_cv_c_volatile = no; then
10809
10810$as_echo "#define volatile /**/" >>confdefs.h
10811
10812fi
10813
10814ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10815if test "x$ac_cv_type_mode_t" = xyes; then :
10816
10817else
10818
10819cat >>confdefs.h <<_ACEOF
10820#define mode_t int
10821_ACEOF
10822
10823fi
10824
10825ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
10826if test "x$ac_cv_type_off_t" = xyes; then :
10827
10828else
10829
10830cat >>confdefs.h <<_ACEOF
10831#define off_t long int
10832_ACEOF
10833
10834fi
10835
10836ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10837if test "x$ac_cv_type_pid_t" = xyes; then :
10838
10839else
10840
10841cat >>confdefs.h <<_ACEOF
10842#define pid_t int
10843_ACEOF
10844
10845fi
10846
10847ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10848if test "x$ac_cv_type_size_t" = xyes; then :
10849
10850else
10851
10852cat >>confdefs.h <<_ACEOF
10853#define size_t unsigned int
10854_ACEOF
10855
10856fi
10857
10858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
10859$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
10860if ${ac_cv_type_uid_t+:} false; then :
10861  $as_echo_n "(cached) " >&6
10862else
10863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864/* end confdefs.h.  */
10865#include <sys/types.h>
10866
10867_ACEOF
10868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10869  $EGREP "uid_t" >/dev/null 2>&1; then :
10870  ac_cv_type_uid_t=yes
10871else
10872  ac_cv_type_uid_t=no
10873fi
10874rm -f conftest*
10875
10876fi
10877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
10878$as_echo "$ac_cv_type_uid_t" >&6; }
10879if test $ac_cv_type_uid_t = no; then
10880
10881$as_echo "#define uid_t int" >>confdefs.h
10882
10883
10884$as_echo "#define gid_t int" >>confdefs.h
10885
10886fi
10887
10888ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
10889case $ac_cv_c_uint32_t in #(
10890  no|yes) ;; #(
10891  *)
10892
10893$as_echo "#define _UINT32_T 1" >>confdefs.h
10894
10895
10896cat >>confdefs.h <<_ACEOF
10897#define uint32_t $ac_cv_c_uint32_t
10898_ACEOF
10899;;
10900  esac
10901
10902
10903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
10904$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10905if ${ac_cv_header_time+:} false; then :
10906  $as_echo_n "(cached) " >&6
10907else
10908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909/* end confdefs.h.  */
10910#include <sys/types.h>
10911#include <sys/time.h>
10912#include <time.h>
10913
10914int
10915main ()
10916{
10917if ((struct tm *) 0)
10918return 0;
10919  ;
10920  return 0;
10921}
10922_ACEOF
10923if ac_fn_c_try_compile "$LINENO"; then :
10924  ac_cv_header_time=yes
10925else
10926  ac_cv_header_time=no
10927fi
10928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10929fi
10930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
10931$as_echo "$ac_cv_header_time" >&6; }
10932if test $ac_cv_header_time = yes; then
10933
10934$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
10935
10936fi
10937
10938ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
10939if test "x$ac_cv_type_ino_t" = xyes; then :
10940
10941else
10942
10943cat >>confdefs.h <<_ACEOF
10944#define ino_t long
10945_ACEOF
10946
10947fi
10948
10949ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
10950if test "x$ac_cv_type_dev_t" = xyes; then :
10951
10952else
10953
10954cat >>confdefs.h <<_ACEOF
10955#define dev_t unsigned
10956_ACEOF
10957
10958fi
10959
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10961$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10962if ${ac_cv_c_bigendian+:} false; then :
10963  $as_echo_n "(cached) " >&6
10964else
10965  ac_cv_c_bigendian=unknown
10966    # See if we're dealing with a universal compiler.
10967    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968/* end confdefs.h.  */
10969#ifndef __APPLE_CC__
10970	       not a universal capable compiler
10971	     #endif
10972	     typedef int dummy;
10973
10974_ACEOF
10975if ac_fn_c_try_compile "$LINENO"; then :
10976
10977	# Check for potential -arch flags.  It is not universal unless
10978	# there are at least two -arch flags with different values.
10979	ac_arch=
10980	ac_prev=
10981	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10982	 if test -n "$ac_prev"; then
10983	   case $ac_word in
10984	     i?86 | x86_64 | ppc | ppc64)
10985	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10986		 ac_arch=$ac_word
10987	       else
10988		 ac_cv_c_bigendian=universal
10989		 break
10990	       fi
10991	       ;;
10992	   esac
10993	   ac_prev=
10994	 elif test "x$ac_word" = "x-arch"; then
10995	   ac_prev=arch
10996	 fi
10997       done
10998fi
10999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11000    if test $ac_cv_c_bigendian = unknown; then
11001      # See if sys/param.h defines the BYTE_ORDER macro.
11002      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003/* end confdefs.h.  */
11004#include <sys/types.h>
11005	     #include <sys/param.h>
11006
11007int
11008main ()
11009{
11010#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11011		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11012		     && LITTLE_ENDIAN)
11013	      bogus endian macros
11014	     #endif
11015
11016  ;
11017  return 0;
11018}
11019_ACEOF
11020if ac_fn_c_try_compile "$LINENO"; then :
11021  # It does; now see whether it defined to BIG_ENDIAN or not.
11022	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11023/* end confdefs.h.  */
11024#include <sys/types.h>
11025		#include <sys/param.h>
11026
11027int
11028main ()
11029{
11030#if BYTE_ORDER != BIG_ENDIAN
11031		 not big endian
11032		#endif
11033
11034  ;
11035  return 0;
11036}
11037_ACEOF
11038if ac_fn_c_try_compile "$LINENO"; then :
11039  ac_cv_c_bigendian=yes
11040else
11041  ac_cv_c_bigendian=no
11042fi
11043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11044fi
11045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11046    fi
11047    if test $ac_cv_c_bigendian = unknown; then
11048      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11049      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11050/* end confdefs.h.  */
11051#include <limits.h>
11052
11053int
11054main ()
11055{
11056#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11057	      bogus endian macros
11058	     #endif
11059
11060  ;
11061  return 0;
11062}
11063_ACEOF
11064if ac_fn_c_try_compile "$LINENO"; then :
11065  # It does; now see whether it defined to _BIG_ENDIAN or not.
11066	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067/* end confdefs.h.  */
11068#include <limits.h>
11069
11070int
11071main ()
11072{
11073#ifndef _BIG_ENDIAN
11074		 not big endian
11075		#endif
11076
11077  ;
11078  return 0;
11079}
11080_ACEOF
11081if ac_fn_c_try_compile "$LINENO"; then :
11082  ac_cv_c_bigendian=yes
11083else
11084  ac_cv_c_bigendian=no
11085fi
11086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11087fi
11088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11089    fi
11090    if test $ac_cv_c_bigendian = unknown; then
11091      # Compile a test program.
11092      if test "$cross_compiling" = yes; then :
11093  # Try to guess by grepping values from an object file.
11094	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11095/* end confdefs.h.  */
11096short int ascii_mm[] =
11097		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11098		short int ascii_ii[] =
11099		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11100		int use_ascii (int i) {
11101		  return ascii_mm[i] + ascii_ii[i];
11102		}
11103		short int ebcdic_ii[] =
11104		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11105		short int ebcdic_mm[] =
11106		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11107		int use_ebcdic (int i) {
11108		  return ebcdic_mm[i] + ebcdic_ii[i];
11109		}
11110		extern int foo;
11111
11112int
11113main ()
11114{
11115return use_ascii (foo) == use_ebcdic (foo);
11116  ;
11117  return 0;
11118}
11119_ACEOF
11120if ac_fn_c_try_compile "$LINENO"; then :
11121  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11122	      ac_cv_c_bigendian=yes
11123	    fi
11124	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11125	      if test "$ac_cv_c_bigendian" = unknown; then
11126		ac_cv_c_bigendian=no
11127	      else
11128		# finding both strings is unlikely to happen, but who knows?
11129		ac_cv_c_bigendian=unknown
11130	      fi
11131	    fi
11132fi
11133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11134else
11135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11136/* end confdefs.h.  */
11137$ac_includes_default
11138int
11139main ()
11140{
11141
11142	     /* Are we little or big endian?  From Harbison&Steele.  */
11143	     union
11144	     {
11145	       long int l;
11146	       char c[sizeof (long int)];
11147	     } u;
11148	     u.l = 1;
11149	     return u.c[sizeof (long int) - 1] == 1;
11150
11151  ;
11152  return 0;
11153}
11154_ACEOF
11155if ac_fn_c_try_run "$LINENO"; then :
11156  ac_cv_c_bigendian=no
11157else
11158  ac_cv_c_bigendian=yes
11159fi
11160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11161  conftest.$ac_objext conftest.beam conftest.$ac_ext
11162fi
11163
11164    fi
11165fi
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11167$as_echo "$ac_cv_c_bigendian" >&6; }
11168 case $ac_cv_c_bigendian in #(
11169   yes)
11170     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11171;; #(
11172   no)
11173      ;; #(
11174   universal)
11175
11176$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11177
11178     ;; #(
11179   *)
11180     as_fn_error $? "unknown endianness
11181 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11182 esac
11183
11184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11185$as_echo_n "checking for inline... " >&6; }
11186if ${ac_cv_c_inline+:} false; then :
11187  $as_echo_n "(cached) " >&6
11188else
11189  ac_cv_c_inline=no
11190for ac_kw in inline __inline__ __inline; do
11191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192/* end confdefs.h.  */
11193#ifndef __cplusplus
11194typedef int foo_t;
11195static $ac_kw foo_t static_foo () {return 0; }
11196$ac_kw foo_t foo () {return 0; }
11197#endif
11198
11199_ACEOF
11200if ac_fn_c_try_compile "$LINENO"; then :
11201  ac_cv_c_inline=$ac_kw
11202fi
11203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11204  test "$ac_cv_c_inline" != no && break
11205done
11206
11207fi
11208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11209$as_echo "$ac_cv_c_inline" >&6; }
11210
11211case $ac_cv_c_inline in
11212  inline | yes) ;;
11213  *)
11214    case $ac_cv_c_inline in
11215      no) ac_val=;;
11216      *) ac_val=$ac_cv_c_inline;;
11217    esac
11218    cat >>confdefs.h <<_ACEOF
11219#ifndef __cplusplus
11220#define inline $ac_val
11221#endif
11222_ACEOF
11223    ;;
11224esac
11225
11226
11227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
11228$as_echo_n "checking for rlim_t... " >&6; }
11229if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5
11231$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
11232else
11233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234/* end confdefs.h.  */
11235
11236#include <sys/types.h>
11237#if STDC_HEADERS
11238# include <stdlib.h>
11239# include <stddef.h>
11240#endif
11241#ifdef HAVE_SYS_RESOURCE_H
11242# include <sys/resource.h>
11243#endif
11244
11245_ACEOF
11246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11247  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
11248  ac_cv_type_rlim_t=yes
11249else
11250  ac_cv_type_rlim_t=no
11251fi
11252rm -f conftest*
11253
11254	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
11255$as_echo "$ac_cv_type_rlim_t" >&6; }
11256fi
11257if test $ac_cv_type_rlim_t = no; then
11258  cat >> confdefs.h <<\EOF
11259#define rlim_t unsigned long
11260EOF
11261fi
11262
11263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5
11264$as_echo_n "checking for stack_t... " >&6; }
11265if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5
11267$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
11268else
11269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11270/* end confdefs.h.  */
11271
11272#include <sys/types.h>
11273#if STDC_HEADERS
11274# include <stdlib.h>
11275# include <stddef.h>
11276#endif
11277#include <signal.h>
11278
11279_ACEOF
11280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11281  $EGREP "stack_t" >/dev/null 2>&1; then :
11282  ac_cv_type_stack_t=yes
11283else
11284  ac_cv_type_stack_t=no
11285fi
11286rm -f conftest*
11287
11288	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5
11289$as_echo "$ac_cv_type_stack_t" >&6; }
11290fi
11291if test $ac_cv_type_stack_t = no; then
11292  cat >> confdefs.h <<\EOF
11293#define stack_t struct sigaltstack
11294EOF
11295fi
11296
11297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5
11298$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
11299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300/* end confdefs.h.  */
11301
11302#include <sys/types.h>
11303#if STDC_HEADERS
11304# include <stdlib.h>
11305# include <stddef.h>
11306#endif
11307#include <signal.h>
11308#include "confdefs.h"
11309
11310int
11311main ()
11312{
11313stack_t sigstk; sigstk.ss_base = 0;
11314  ;
11315  return 0;
11316}
11317_ACEOF
11318if ac_fn_c_try_compile "$LINENO"; then :
11319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11320$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h
11321
11322else
11323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11324$as_echo "no" >&6; }
11325fi
11326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11327
11328olibs="$LIBS"
11329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5
11330$as_echo_n "checking --with-tlib argument... " >&6; }
11331
11332# Check whether --with-tlib was given.
11333if test "${with_tlib+set}" = set; then :
11334  withval=$with_tlib;
11335fi
11336
11337if test -n "$with_tlib"; then
11338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5
11339$as_echo "$with_tlib" >&6; }
11340  LIBS="$LIBS -l$with_tlib"
11341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5
11342$as_echo_n "checking for linking with $with_tlib library... " >&6; }
11343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344/* end confdefs.h.  */
11345
11346int
11347main ()
11348{
11349
11350  ;
11351  return 0;
11352}
11353_ACEOF
11354if ac_fn_c_try_link "$LINENO"; then :
11355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
11356$as_echo "OK" >&6; }
11357else
11358  as_fn_error $? "FAILED" "$LINENO" 5
11359fi
11360rm -f core conftest.err conftest.$ac_objext \
11361    conftest$ac_exeext conftest.$ac_ext
11362    olibs="$LIBS"
11363else
11364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5
11365$as_echo "empty: automatic terminal library selection" >&6; }
11366                case "`uname -s 2>/dev/null`" in
11367	OSF1|SCO_SV)	tlibs="tinfo ncurses curses termlib termcap";;
11368	*)	tlibs="tinfo ncurses termlib termcap curses";;
11369  esac
11370  for libname in $tlibs; do
11371    as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5
11373$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
11374if eval \${$as_ac_Lib+:} false; then :
11375  $as_echo_n "(cached) " >&6
11376else
11377  ac_check_lib_save_LIBS=$LIBS
11378LIBS="-l${libname}  $LIBS"
11379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380/* end confdefs.h.  */
11381
11382/* Override any GCC internal prototype to avoid an error.
11383   Use char because int might match the return type of a GCC
11384   builtin and then its argument prototype would still apply.  */
11385#ifdef __cplusplus
11386extern "C"
11387#endif
11388char tgetent ();
11389int
11390main ()
11391{
11392return tgetent ();
11393  ;
11394  return 0;
11395}
11396_ACEOF
11397if ac_fn_c_try_link "$LINENO"; then :
11398  eval "$as_ac_Lib=yes"
11399else
11400  eval "$as_ac_Lib=no"
11401fi
11402rm -f core conftest.err conftest.$ac_objext \
11403    conftest$ac_exeext conftest.$ac_ext
11404LIBS=$ac_check_lib_save_LIBS
11405fi
11406eval ac_res=\$$as_ac_Lib
11407	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11408$as_echo "$ac_res" >&6; }
11409if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11410  cat >>confdefs.h <<_ACEOF
11411#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11412_ACEOF
11413
11414  LIBS="-l${libname} $LIBS"
11415
11416fi
11417
11418    if test "x$olibs" != "x$LIBS"; then
11419                        if test "$cross_compiling" = yes; then :
11420  res="FAIL"
11421else
11422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423/* end confdefs.h.  */
11424
11425#ifdef HAVE_TERMCAP_H
11426# include <termcap.h>
11427#endif
11428#if STDC_HEADERS
11429# include <stdlib.h>
11430# include <stddef.h>
11431#endif
11432main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
11433_ACEOF
11434if ac_fn_c_try_run "$LINENO"; then :
11435  res="OK"
11436else
11437  res="FAIL"
11438fi
11439rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11440  conftest.$ac_objext conftest.beam conftest.$ac_ext
11441fi
11442
11443      if test "$res" = "OK"; then
11444	break
11445      fi
11446      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5
11447$as_echo "$libname library is not usable" >&6; }
11448      LIBS="$olibs"
11449    fi
11450  done
11451  if test "x$olibs" = "x$LIBS"; then
11452    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5
11453$as_echo "no terminal library found" >&6; }
11454  fi
11455fi
11456
11457if test "x$olibs" = "x$LIBS"; then
11458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5
11459$as_echo_n "checking for tgetent()... " >&6; }
11460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461/* end confdefs.h.  */
11462
11463int
11464main ()
11465{
11466char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
11467  ;
11468  return 0;
11469}
11470_ACEOF
11471if ac_fn_c_try_link "$LINENO"; then :
11472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11473$as_echo "yes" >&6; }
11474else
11475  as_fn_error $? "NOT FOUND!
11476      You need to install a terminal library; for example ncurses.
11477      Or specify the name of the library with --with-tlib." "$LINENO" 5
11478fi
11479rm -f core conftest.err conftest.$ac_objext \
11480    conftest$ac_exeext conftest.$ac_ext
11481fi
11482
11483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5
11484$as_echo_n "checking whether we talk terminfo... " >&6; }
11485if ${vim_cv_terminfo+:} false; then :
11486  $as_echo_n "(cached) " >&6
11487else
11488
11489    if test "$cross_compiling" = yes; then :
11490
11491      as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5
11492
11493else
11494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495/* end confdefs.h.  */
11496
11497#include "confdefs.h"
11498#ifdef HAVE_TERMCAP_H
11499# include <termcap.h>
11500#endif
11501#ifdef HAVE_STRING_H
11502# include <string.h>
11503#endif
11504#if STDC_HEADERS
11505# include <stdlib.h>
11506# include <stddef.h>
11507#endif
11508main()
11509{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
11510
11511_ACEOF
11512if ac_fn_c_try_run "$LINENO"; then :
11513
11514      vim_cv_terminfo=no
11515
11516else
11517
11518      vim_cv_terminfo=yes
11519
11520fi
11521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11522  conftest.$ac_objext conftest.beam conftest.$ac_ext
11523fi
11524
11525
11526fi
11527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5
11528$as_echo "$vim_cv_terminfo" >&6; }
11529
11530if test "x$vim_cv_terminfo" = "xyes" ; then
11531  $as_echo "#define TERMINFO 1" >>confdefs.h
11532
11533fi
11534
11535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
11536$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
11537if ${vim_cv_tgent+:} false; then :
11538  $as_echo_n "(cached) " >&6
11539else
11540
11541    if test "$cross_compiling" = yes; then :
11542
11543      as_fn_error $? "failed to compile test program." "$LINENO" 5
11544
11545else
11546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547/* end confdefs.h.  */
11548
11549#include "confdefs.h"
11550#ifdef HAVE_TERMCAP_H
11551# include <termcap.h>
11552#endif
11553#if STDC_HEADERS
11554# include <stdlib.h>
11555# include <stddef.h>
11556#endif
11557main()
11558{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
11559
11560_ACEOF
11561if ac_fn_c_try_run "$LINENO"; then :
11562
11563      vim_cv_tgent=zero
11564
11565else
11566
11567      vim_cv_tgent=non-zero
11568
11569fi
11570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11571  conftest.$ac_objext conftest.beam conftest.$ac_ext
11572fi
11573
11574
11575fi
11576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgent" >&5
11577$as_echo "$vim_cv_tgent" >&6; }
11578
11579if test "x$vim_cv_tgent" = "xzero" ; then
11580  $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
11581
11582fi
11583
11584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5
11585$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
11586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587/* end confdefs.h.  */
11588
11589#ifdef HAVE_TERMCAP_H
11590# include <termcap.h>
11591#endif
11592
11593int
11594main ()
11595{
11596ospeed = 20000
11597  ;
11598  return 0;
11599}
11600_ACEOF
11601if ac_fn_c_try_link "$LINENO"; then :
11602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11603$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
11604
11605else
11606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11607$as_echo "no" >&6; }
11608	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5
11609$as_echo_n "checking whether ospeed can be extern... " >&6; }
11610	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611/* end confdefs.h.  */
11612
11613#ifdef HAVE_TERMCAP_H
11614# include <termcap.h>
11615#endif
11616extern short ospeed;
11617
11618int
11619main ()
11620{
11621ospeed = 20000
11622  ;
11623  return 0;
11624}
11625_ACEOF
11626if ac_fn_c_try_link "$LINENO"; then :
11627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11628$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h
11629
11630else
11631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11632$as_echo "no" >&6; }
11633fi
11634rm -f core conftest.err conftest.$ac_objext \
11635    conftest$ac_exeext conftest.$ac_ext
11636
11637fi
11638rm -f core conftest.err conftest.$ac_objext \
11639    conftest$ac_exeext conftest.$ac_ext
11640
11641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5
11642$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
11643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644/* end confdefs.h.  */
11645
11646#ifdef HAVE_TERMCAP_H
11647# include <termcap.h>
11648#endif
11649
11650int
11651main ()
11652{
11653if (UP == 0 && BC == 0) PC = 1
11654  ;
11655  return 0;
11656}
11657_ACEOF
11658if ac_fn_c_try_link "$LINENO"; then :
11659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11660$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h
11661
11662else
11663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664$as_echo "no" >&6; }
11665	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5
11666$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
11667	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668/* end confdefs.h.  */
11669
11670#ifdef HAVE_TERMCAP_H
11671# include <termcap.h>
11672#endif
11673extern char *UP, *BC, PC;
11674
11675int
11676main ()
11677{
11678if (UP == 0 && BC == 0) PC = 1
11679  ;
11680  return 0;
11681}
11682_ACEOF
11683if ac_fn_c_try_link "$LINENO"; then :
11684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11685$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h
11686
11687else
11688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11689$as_echo "no" >&6; }
11690fi
11691rm -f core conftest.err conftest.$ac_objext \
11692    conftest$ac_exeext conftest.$ac_ext
11693
11694fi
11695rm -f core conftest.err conftest.$ac_objext \
11696    conftest$ac_exeext conftest.$ac_ext
11697
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5
11699$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
11700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11701/* end confdefs.h.  */
11702
11703#ifdef HAVE_TERMCAP_H
11704# include <termcap.h>
11705#endif
11706
11707int
11708main ()
11709{
11710extern int xx(); tputs("test", 1, (outfuntype)xx)
11711  ;
11712  return 0;
11713}
11714_ACEOF
11715if ac_fn_c_try_compile "$LINENO"; then :
11716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11717$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h
11718
11719else
11720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721$as_echo "no" >&6; }
11722fi
11723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11724
11725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
11726$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
11727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728/* end confdefs.h.  */
11729
11730#include <sys/types.h>
11731#include <sys/time.h>
11732#include <sys/select.h>
11733int
11734main ()
11735{
11736
11737  ;
11738  return 0;
11739}
11740_ACEOF
11741if ac_fn_c_try_compile "$LINENO"; then :
11742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11743$as_echo "yes" >&6; }
11744			$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
11745
11746else
11747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11748$as_echo "no" >&6; }
11749fi
11750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11751
11752
11753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
11754$as_echo_n "checking for /dev/ptc... " >&6; }
11755if test -r /dev/ptc; then
11756  $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
11757
11758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11759$as_echo "yes" >&6; }
11760else
11761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11762$as_echo "no" >&6; }
11763fi
11764
11765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5
11766$as_echo_n "checking for SVR4 ptys... " >&6; }
11767if test -c /dev/ptmx ; then
11768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11769/* end confdefs.h.  */
11770
11771int
11772main ()
11773{
11774ptsname(0);grantpt(0);unlockpt(0);
11775  ;
11776  return 0;
11777}
11778_ACEOF
11779if ac_fn_c_try_link "$LINENO"; then :
11780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11781$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
11782
11783else
11784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11785$as_echo "no" >&6; }
11786fi
11787rm -f core conftest.err conftest.$ac_objext \
11788    conftest$ac_exeext conftest.$ac_ext
11789else
11790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791$as_echo "no" >&6; }
11792fi
11793
11794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5
11795$as_echo_n "checking for ptyranges... " >&6; }
11796if test -d /dev/ptym ; then
11797  pdir='/dev/ptym'
11798else
11799  pdir='/dev'
11800fi
11801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11802/* end confdefs.h.  */
11803#ifdef M_UNIX
11804   yes;
11805#endif
11806
11807_ACEOF
11808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11809  $EGREP "yes" >/dev/null 2>&1; then :
11810  ptys=`echo /dev/ptyp??`
11811else
11812  ptys=`echo $pdir/pty??`
11813fi
11814rm -f conftest*
11815
11816if test "$ptys" != "$pdir/pty??" ; then
11817  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
11818  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
11819  cat >>confdefs.h <<_ACEOF
11820#define PTYRANGE0 "$p0"
11821_ACEOF
11822
11823  cat >>confdefs.h <<_ACEOF
11824#define PTYRANGE1 "$p1"
11825_ACEOF
11826
11827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5
11828$as_echo "$p0 / $p1" >&6; }
11829else
11830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5
11831$as_echo "don't know" >&6; }
11832fi
11833
11834rm -f conftest_grp
11835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5
11836$as_echo_n "checking default tty permissions/group... " >&6; }
11837if ${vim_cv_tty_group+:} false; then :
11838  $as_echo_n "(cached) " >&6
11839else
11840
11841    if test "$cross_compiling" = yes; then :
11842
11843      as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5
11844
11845else
11846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847/* end confdefs.h.  */
11848
11849#include "confdefs.h"
11850#include <sys/types.h>
11851#if STDC_HEADERS
11852# include <stdlib.h>
11853# include <stddef.h>
11854#endif
11855#ifdef HAVE_UNISTD_H
11856#include <unistd.h>
11857#endif
11858#include <sys/stat.h>
11859#include <stdio.h>
11860main()
11861{
11862  struct stat sb;
11863  char *x,*ttyname();
11864  int om, m;
11865  FILE *fp;
11866
11867  if (!(x = ttyname(0))) exit(1);
11868  if (stat(x, &sb)) exit(1);
11869  om = sb.st_mode;
11870  if (om & 002) exit(0);
11871  m = system("mesg y");
11872  if (m == -1 || m == 127) exit(1);
11873  if (stat(x, &sb)) exit(1);
11874  m = sb.st_mode;
11875  if (chmod(x, om)) exit(1);
11876  if (m & 002) exit(0);
11877  if (sb.st_gid == getgid()) exit(1);
11878  if (!(fp=fopen("conftest_grp", "w")))
11879    exit(1);
11880  fprintf(fp, "%d\n", sb.st_gid);
11881  fclose(fp);
11882  exit(0);
11883}
11884
11885_ACEOF
11886if ac_fn_c_try_run "$LINENO"; then :
11887
11888      if test -f conftest_grp; then
11889	vim_cv_tty_group=`cat conftest_grp`
11890	if test "x$vim_cv_tty_mode" = "x" ; then
11891	  vim_cv_tty_mode=0620
11892	fi
11893	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
11894$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
11895      else
11896	vim_cv_tty_group=world
11897	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5
11898$as_echo "ptys are world accessible" >&6; }
11899      fi
11900
11901else
11902
11903      vim_cv_tty_group=world
11904      { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5
11905$as_echo "can't determine - assume ptys are world accessible" >&6; }
11906
11907fi
11908rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11909  conftest.$ac_objext conftest.beam conftest.$ac_ext
11910fi
11911
11912
11913fi
11914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5
11915$as_echo "$vim_cv_tty_group" >&6; }
11916rm -f conftest_grp
11917
11918if test "x$vim_cv_tty_group" != "xworld" ; then
11919  cat >>confdefs.h <<_ACEOF
11920#define PTYGROUP $vim_cv_tty_group
11921_ACEOF
11922
11923  if test "x$vim_cv_tty_mode" = "x" ; then
11924    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
11925  else
11926    $as_echo "#define PTYMODE 0620" >>confdefs.h
11927
11928  fi
11929fi
11930
11931
11932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11933$as_echo_n "checking return type of signal handlers... " >&6; }
11934if ${ac_cv_type_signal+:} false; then :
11935  $as_echo_n "(cached) " >&6
11936else
11937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938/* end confdefs.h.  */
11939#include <sys/types.h>
11940#include <signal.h>
11941
11942int
11943main ()
11944{
11945return *(signal (0, 0)) (0) == 1;
11946  ;
11947  return 0;
11948}
11949_ACEOF
11950if ac_fn_c_try_compile "$LINENO"; then :
11951  ac_cv_type_signal=int
11952else
11953  ac_cv_type_signal=void
11954fi
11955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956fi
11957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11958$as_echo "$ac_cv_type_signal" >&6; }
11959
11960cat >>confdefs.h <<_ACEOF
11961#define RETSIGTYPE $ac_cv_type_signal
11962_ACEOF
11963
11964
11965
11966if test $ac_cv_type_signal = void; then
11967  $as_echo "#define SIGRETURN return" >>confdefs.h
11968
11969else
11970  $as_echo "#define SIGRETURN return 0" >>confdefs.h
11971
11972fi
11973
11974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5
11975$as_echo_n "checking for struct sigcontext... " >&6; }
11976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977/* end confdefs.h.  */
11978
11979#include <signal.h>
11980test_sig()
11981{
11982    struct sigcontext *scont;
11983    scont = (struct sigcontext *)0;
11984    return 1;
11985}
11986int
11987main ()
11988{
11989
11990  ;
11991  return 0;
11992}
11993_ACEOF
11994if ac_fn_c_try_compile "$LINENO"; then :
11995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11996$as_echo "yes" >&6; }
11997		$as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h
11998
11999else
12000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12001$as_echo "no" >&6; }
12002fi
12003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12004
12005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5
12006$as_echo_n "checking getcwd implementation is broken... " >&6; }
12007if ${vim_cv_getcwd_broken+:} false; then :
12008  $as_echo_n "(cached) " >&6
12009else
12010
12011    if test "$cross_compiling" = yes; then :
12012
12013      as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5
12014
12015else
12016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017/* end confdefs.h.  */
12018
12019#include "confdefs.h"
12020#ifdef HAVE_UNISTD_H
12021#include <unistd.h>
12022#endif
12023char *dagger[] = { "IFS=pwd", 0 };
12024main()
12025{
12026  char buffer[500];
12027  extern char **environ;
12028  environ = dagger;
12029  return getcwd(buffer, 500) ? 0 : 1;
12030}
12031
12032_ACEOF
12033if ac_fn_c_try_run "$LINENO"; then :
12034
12035      vim_cv_getcwd_broken=no
12036
12037else
12038
12039      vim_cv_getcwd_broken=yes
12040
12041fi
12042rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12043  conftest.$ac_objext conftest.beam conftest.$ac_ext
12044fi
12045
12046
12047fi
12048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5
12049$as_echo "$vim_cv_getcwd_broken" >&6; }
12050
12051if test "x$vim_cv_getcwd_broken" = "xyes" ; then
12052  $as_echo "#define BAD_GETCWD 1" >>confdefs.h
12053
12054fi
12055
12056for ac_func in fchdir fchown fsync getcwd getpseudotty \
12057	getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat \
12058	memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
12059	getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12060	sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \
12061	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12062	usleep utime utimes
12063do :
12064  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12065ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12066if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12067  cat >>confdefs.h <<_ACEOF
12068#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12069_ACEOF
12070
12071fi
12072done
12073
12074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12075$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12076if ${ac_cv_sys_largefile_source+:} false; then :
12077  $as_echo_n "(cached) " >&6
12078else
12079  while :; do
12080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081/* end confdefs.h.  */
12082#include <sys/types.h> /* for off_t */
12083     #include <stdio.h>
12084int
12085main ()
12086{
12087int (*fp) (FILE *, off_t, int) = fseeko;
12088     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12089  ;
12090  return 0;
12091}
12092_ACEOF
12093if ac_fn_c_try_link "$LINENO"; then :
12094  ac_cv_sys_largefile_source=no; break
12095fi
12096rm -f core conftest.err conftest.$ac_objext \
12097    conftest$ac_exeext conftest.$ac_ext
12098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099/* end confdefs.h.  */
12100#define _LARGEFILE_SOURCE 1
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=1; break
12114fi
12115rm -f core conftest.err conftest.$ac_objext \
12116    conftest$ac_exeext conftest.$ac_ext
12117  ac_cv_sys_largefile_source=unknown
12118  break
12119done
12120fi
12121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12122$as_echo "$ac_cv_sys_largefile_source" >&6; }
12123case $ac_cv_sys_largefile_source in #(
12124  no | unknown) ;;
12125  *)
12126cat >>confdefs.h <<_ACEOF
12127#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12128_ACEOF
12129;;
12130esac
12131rm -rf conftest*
12132
12133# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12134# in glibc 2.1.3, but that breaks too many other things.
12135# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12136if test $ac_cv_sys_largefile_source != unknown; then
12137
12138$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12139
12140fi
12141
12142
12143# Check whether --enable-largefile was given.
12144if test "${enable_largefile+set}" = set; then :
12145  enableval=$enable_largefile;
12146fi
12147
12148if test "$enable_largefile" != no; then
12149
12150  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12151$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12152if ${ac_cv_sys_largefile_CC+:} false; then :
12153  $as_echo_n "(cached) " >&6
12154else
12155  ac_cv_sys_largefile_CC=no
12156     if test "$GCC" != yes; then
12157       ac_save_CC=$CC
12158       while :; do
12159	 # IRIX 6.2 and later do not support large files by default,
12160	 # so use the C compiler's -n32 option if that helps.
12161	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162/* end confdefs.h.  */
12163#include <sys/types.h>
12164 /* Check that off_t can represent 2**63 - 1 correctly.
12165    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12166    since some C++ compilers masquerading as C compilers
12167    incorrectly reject 9223372036854775807.  */
12168#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12169  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12170		       && LARGE_OFF_T % 2147483647 == 1)
12171		      ? 1 : -1];
12172int
12173main ()
12174{
12175
12176  ;
12177  return 0;
12178}
12179_ACEOF
12180	 if ac_fn_c_try_compile "$LINENO"; then :
12181  break
12182fi
12183rm -f core conftest.err conftest.$ac_objext
12184	 CC="$CC -n32"
12185	 if ac_fn_c_try_compile "$LINENO"; then :
12186  ac_cv_sys_largefile_CC=' -n32'; break
12187fi
12188rm -f core conftest.err conftest.$ac_objext
12189	 break
12190       done
12191       CC=$ac_save_CC
12192       rm -f conftest.$ac_ext
12193    fi
12194fi
12195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12196$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12197  if test "$ac_cv_sys_largefile_CC" != no; then
12198    CC=$CC$ac_cv_sys_largefile_CC
12199  fi
12200
12201  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12202$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12203if ${ac_cv_sys_file_offset_bits+:} false; then :
12204  $as_echo_n "(cached) " >&6
12205else
12206  while :; do
12207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12208/* end confdefs.h.  */
12209#include <sys/types.h>
12210 /* Check that off_t can represent 2**63 - 1 correctly.
12211    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12212    since some C++ compilers masquerading as C compilers
12213    incorrectly reject 9223372036854775807.  */
12214#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12215  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12216		       && LARGE_OFF_T % 2147483647 == 1)
12217		      ? 1 : -1];
12218int
12219main ()
12220{
12221
12222  ;
12223  return 0;
12224}
12225_ACEOF
12226if ac_fn_c_try_compile "$LINENO"; then :
12227  ac_cv_sys_file_offset_bits=no; break
12228fi
12229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231/* end confdefs.h.  */
12232#define _FILE_OFFSET_BITS 64
12233#include <sys/types.h>
12234 /* Check that off_t can represent 2**63 - 1 correctly.
12235    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12236    since some C++ compilers masquerading as C compilers
12237    incorrectly reject 9223372036854775807.  */
12238#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12239  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12240		       && LARGE_OFF_T % 2147483647 == 1)
12241		      ? 1 : -1];
12242int
12243main ()
12244{
12245
12246  ;
12247  return 0;
12248}
12249_ACEOF
12250if ac_fn_c_try_compile "$LINENO"; then :
12251  ac_cv_sys_file_offset_bits=64; break
12252fi
12253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12254  ac_cv_sys_file_offset_bits=unknown
12255  break
12256done
12257fi
12258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12259$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12260case $ac_cv_sys_file_offset_bits in #(
12261  no | unknown) ;;
12262  *)
12263cat >>confdefs.h <<_ACEOF
12264#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12265_ACEOF
12266;;
12267esac
12268rm -rf conftest*
12269  if test $ac_cv_sys_file_offset_bits = unknown; then
12270    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12271$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12272if ${ac_cv_sys_large_files+:} false; then :
12273  $as_echo_n "(cached) " >&6
12274else
12275  while :; do
12276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277/* end confdefs.h.  */
12278#include <sys/types.h>
12279 /* Check that off_t can represent 2**63 - 1 correctly.
12280    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12281    since some C++ compilers masquerading as C compilers
12282    incorrectly reject 9223372036854775807.  */
12283#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12284  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12285		       && LARGE_OFF_T % 2147483647 == 1)
12286		      ? 1 : -1];
12287int
12288main ()
12289{
12290
12291  ;
12292  return 0;
12293}
12294_ACEOF
12295if ac_fn_c_try_compile "$LINENO"; then :
12296  ac_cv_sys_large_files=no; break
12297fi
12298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300/* end confdefs.h.  */
12301#define _LARGE_FILES 1
12302#include <sys/types.h>
12303 /* Check that off_t can represent 2**63 - 1 correctly.
12304    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12305    since some C++ compilers masquerading as C compilers
12306    incorrectly reject 9223372036854775807.  */
12307#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12308  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12309		       && LARGE_OFF_T % 2147483647 == 1)
12310		      ? 1 : -1];
12311int
12312main ()
12313{
12314
12315  ;
12316  return 0;
12317}
12318_ACEOF
12319if ac_fn_c_try_compile "$LINENO"; then :
12320  ac_cv_sys_large_files=1; break
12321fi
12322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12323  ac_cv_sys_large_files=unknown
12324  break
12325done
12326fi
12327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12328$as_echo "$ac_cv_sys_large_files" >&6; }
12329case $ac_cv_sys_large_files in #(
12330  no | unknown) ;;
12331  *)
12332cat >>confdefs.h <<_ACEOF
12333#define _LARGE_FILES $ac_cv_sys_large_files
12334_ACEOF
12335;;
12336esac
12337rm -rf conftest*
12338  fi
12339
12340
12341fi
12342
12343
12344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5
12345$as_echo_n "checking for st_blksize... " >&6; }
12346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347/* end confdefs.h.  */
12348#include <sys/types.h>
12349#include <sys/stat.h>
12350int
12351main ()
12352{
12353	struct stat st;
12354	int n;
12355
12356	stat("/", &st);
12357	n = (int)st.st_blksize;
12358  ;
12359  return 0;
12360}
12361_ACEOF
12362if ac_fn_c_try_compile "$LINENO"; then :
12363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12364$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
12365
12366else
12367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368$as_echo "no" >&6; }
12369fi
12370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12371
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5
12373$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
12374if ${vim_cv_stat_ignores_slash+:} false; then :
12375  $as_echo_n "(cached) " >&6
12376else
12377
12378    if test "$cross_compiling" = yes; then :
12379
12380      as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5
12381
12382else
12383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384/* end confdefs.h.  */
12385
12386#include "confdefs.h"
12387#if STDC_HEADERS
12388# include <stdlib.h>
12389# include <stddef.h>
12390#endif
12391#include <sys/types.h>
12392#include <sys/stat.h>
12393main() {struct stat st;  exit(stat("configure/", &st) != 0); }
12394
12395_ACEOF
12396if ac_fn_c_try_run "$LINENO"; then :
12397
12398      vim_cv_stat_ignores_slash=yes
12399
12400else
12401
12402      vim_cv_stat_ignores_slash=no
12403
12404fi
12405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12406  conftest.$ac_objext conftest.beam conftest.$ac_ext
12407fi
12408
12409
12410fi
12411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5
12412$as_echo "$vim_cv_stat_ignores_slash" >&6; }
12413
12414if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
12415  $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h
12416
12417fi
12418
12419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5
12420$as_echo_n "checking for iconv_open()... " >&6; }
12421save_LIBS="$LIBS"
12422LIBS="$LIBS -liconv"
12423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424/* end confdefs.h.  */
12425
12426#ifdef HAVE_ICONV_H
12427# include <iconv.h>
12428#endif
12429
12430int
12431main ()
12432{
12433iconv_open("fr", "to");
12434  ;
12435  return 0;
12436}
12437_ACEOF
12438if ac_fn_c_try_link "$LINENO"; then :
12439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5
12440$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12441
12442else
12443  LIBS="$save_LIBS"
12444    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445/* end confdefs.h.  */
12446
12447#ifdef HAVE_ICONV_H
12448# include <iconv.h>
12449#endif
12450
12451int
12452main ()
12453{
12454iconv_open("fr", "to");
12455  ;
12456  return 0;
12457}
12458_ACEOF
12459if ac_fn_c_try_link "$LINENO"; then :
12460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12461$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12462
12463else
12464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12465$as_echo "no" >&6; }
12466fi
12467rm -f core conftest.err conftest.$ac_objext \
12468    conftest$ac_exeext conftest.$ac_ext
12469fi
12470rm -f core conftest.err conftest.$ac_objext \
12471    conftest$ac_exeext conftest.$ac_ext
12472
12473
12474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
12475$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
12476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477/* end confdefs.h.  */
12478
12479#ifdef HAVE_LANGINFO_H
12480# include <langinfo.h>
12481#endif
12482
12483int
12484main ()
12485{
12486char *cs = nl_langinfo(CODESET);
12487  ;
12488  return 0;
12489}
12490_ACEOF
12491if ac_fn_c_try_link "$LINENO"; then :
12492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12493$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
12494
12495else
12496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12497$as_echo "no" >&6; }
12498fi
12499rm -f core conftest.err conftest.$ac_objext \
12500    conftest$ac_exeext conftest.$ac_ext
12501
12502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5
12503$as_echo_n "checking for strtod in -lm... " >&6; }
12504if ${ac_cv_lib_m_strtod+:} false; then :
12505  $as_echo_n "(cached) " >&6
12506else
12507  ac_check_lib_save_LIBS=$LIBS
12508LIBS="-lm  $LIBS"
12509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510/* end confdefs.h.  */
12511
12512/* Override any GCC internal prototype to avoid an error.
12513   Use char because int might match the return type of a GCC
12514   builtin and then its argument prototype would still apply.  */
12515#ifdef __cplusplus
12516extern "C"
12517#endif
12518char strtod ();
12519int
12520main ()
12521{
12522return strtod ();
12523  ;
12524  return 0;
12525}
12526_ACEOF
12527if ac_fn_c_try_link "$LINENO"; then :
12528  ac_cv_lib_m_strtod=yes
12529else
12530  ac_cv_lib_m_strtod=no
12531fi
12532rm -f core conftest.err conftest.$ac_objext \
12533    conftest$ac_exeext conftest.$ac_ext
12534LIBS=$ac_check_lib_save_LIBS
12535fi
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5
12537$as_echo "$ac_cv_lib_m_strtod" >&6; }
12538if test "x$ac_cv_lib_m_strtod" = xyes; then :
12539  cat >>confdefs.h <<_ACEOF
12540#define HAVE_LIBM 1
12541_ACEOF
12542
12543  LIBS="-lm $LIBS"
12544
12545fi
12546
12547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5
12548$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
12549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550/* end confdefs.h.  */
12551
12552#ifdef HAVE_MATH_H
12553# include <math.h>
12554#endif
12555#if STDC_HEADERS
12556# include <stdlib.h>
12557# include <stddef.h>
12558#endif
12559
12560int
12561main ()
12562{
12563char *s; double d;
12564    d = strtod("1.1", &s);
12565    d = fabs(1.11);
12566    d = ceil(1.11);
12567    d = floor(1.11);
12568    d = log10(1.11);
12569    d = pow(1.11, 2.22);
12570    d = sqrt(1.11);
12571    d = sin(1.11);
12572    d = cos(1.11);
12573    d = atan(1.11);
12574
12575  ;
12576  return 0;
12577}
12578_ACEOF
12579if ac_fn_c_try_link "$LINENO"; then :
12580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12581$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h
12582
12583else
12584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585$as_echo "no" >&6; }
12586fi
12587rm -f core conftest.err conftest.$ac_objext \
12588    conftest$ac_exeext conftest.$ac_ext
12589
12590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5
12591$as_echo_n "checking for isinf()... " >&6; }
12592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593/* end confdefs.h.  */
12594
12595#ifdef HAVE_MATH_H
12596# include <math.h>
12597#endif
12598#if STDC_HEADERS
12599# include <stdlib.h>
12600# include <stddef.h>
12601#endif
12602
12603int
12604main ()
12605{
12606int r = isinf(1.11);
12607  ;
12608  return 0;
12609}
12610_ACEOF
12611if ac_fn_c_try_link "$LINENO"; then :
12612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12613$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h
12614
12615else
12616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617$as_echo "no" >&6; }
12618fi
12619rm -f core conftest.err conftest.$ac_objext \
12620    conftest$ac_exeext conftest.$ac_ext
12621
12622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5
12623$as_echo_n "checking for isnan()... " >&6; }
12624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625/* end confdefs.h.  */
12626
12627#ifdef HAVE_MATH_H
12628# include <math.h>
12629#endif
12630#if STDC_HEADERS
12631# include <stdlib.h>
12632# include <stddef.h>
12633#endif
12634
12635int
12636main ()
12637{
12638int r = isnan(1.11);
12639  ;
12640  return 0;
12641}
12642_ACEOF
12643if ac_fn_c_try_link "$LINENO"; then :
12644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12645$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
12646
12647else
12648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649$as_echo "no" >&6; }
12650fi
12651rm -f core conftest.err conftest.$ac_objext \
12652    conftest$ac_exeext conftest.$ac_ext
12653
12654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5
12655$as_echo_n "checking --disable-acl argument... " >&6; }
12656# Check whether --enable-acl was given.
12657if test "${enable_acl+set}" = set; then :
12658  enableval=$enable_acl;
12659else
12660  enable_acl="yes"
12661fi
12662
12663if test "$enable_acl" = "yes"; then
12664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665$as_echo "no" >&6; }
12666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5
12667$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
12668if ${ac_cv_lib_posix1e_acl_get_file+:} false; then :
12669  $as_echo_n "(cached) " >&6
12670else
12671  ac_check_lib_save_LIBS=$LIBS
12672LIBS="-lposix1e  $LIBS"
12673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674/* end confdefs.h.  */
12675
12676/* Override any GCC internal prototype to avoid an error.
12677   Use char because int might match the return type of a GCC
12678   builtin and then its argument prototype would still apply.  */
12679#ifdef __cplusplus
12680extern "C"
12681#endif
12682char acl_get_file ();
12683int
12684main ()
12685{
12686return acl_get_file ();
12687  ;
12688  return 0;
12689}
12690_ACEOF
12691if ac_fn_c_try_link "$LINENO"; then :
12692  ac_cv_lib_posix1e_acl_get_file=yes
12693else
12694  ac_cv_lib_posix1e_acl_get_file=no
12695fi
12696rm -f core conftest.err conftest.$ac_objext \
12697    conftest$ac_exeext conftest.$ac_ext
12698LIBS=$ac_check_lib_save_LIBS
12699fi
12700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5
12701$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
12702if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then :
12703  LIBS="$LIBS -lposix1e"
12704else
12705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
12706$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
12707if ${ac_cv_lib_acl_acl_get_file+:} false; then :
12708  $as_echo_n "(cached) " >&6
12709else
12710  ac_check_lib_save_LIBS=$LIBS
12711LIBS="-lacl  $LIBS"
12712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713/* end confdefs.h.  */
12714
12715/* Override any GCC internal prototype to avoid an error.
12716   Use char because int might match the return type of a GCC
12717   builtin and then its argument prototype would still apply.  */
12718#ifdef __cplusplus
12719extern "C"
12720#endif
12721char acl_get_file ();
12722int
12723main ()
12724{
12725return acl_get_file ();
12726  ;
12727  return 0;
12728}
12729_ACEOF
12730if ac_fn_c_try_link "$LINENO"; then :
12731  ac_cv_lib_acl_acl_get_file=yes
12732else
12733  ac_cv_lib_acl_acl_get_file=no
12734fi
12735rm -f core conftest.err conftest.$ac_objext \
12736    conftest$ac_exeext conftest.$ac_ext
12737LIBS=$ac_check_lib_save_LIBS
12738fi
12739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
12740$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
12741if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
12742  LIBS="$LIBS -lacl"
12743		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5
12744$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
12745if ${ac_cv_lib_attr_fgetxattr+:} false; then :
12746  $as_echo_n "(cached) " >&6
12747else
12748  ac_check_lib_save_LIBS=$LIBS
12749LIBS="-lattr  $LIBS"
12750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751/* end confdefs.h.  */
12752
12753/* Override any GCC internal prototype to avoid an error.
12754   Use char because int might match the return type of a GCC
12755   builtin and then its argument prototype would still apply.  */
12756#ifdef __cplusplus
12757extern "C"
12758#endif
12759char fgetxattr ();
12760int
12761main ()
12762{
12763return fgetxattr ();
12764  ;
12765  return 0;
12766}
12767_ACEOF
12768if ac_fn_c_try_link "$LINENO"; then :
12769  ac_cv_lib_attr_fgetxattr=yes
12770else
12771  ac_cv_lib_attr_fgetxattr=no
12772fi
12773rm -f core conftest.err conftest.$ac_objext \
12774    conftest$ac_exeext conftest.$ac_ext
12775LIBS=$ac_check_lib_save_LIBS
12776fi
12777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5
12778$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
12779if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then :
12780  LIBS="$LIBS -lattr"
12781fi
12782
12783fi
12784
12785fi
12786
12787
12788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
12789$as_echo_n "checking for POSIX ACL support... " >&6; }
12790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12791/* end confdefs.h.  */
12792
12793#include <sys/types.h>
12794#ifdef HAVE_SYS_ACL_H
12795# include <sys/acl.h>
12796#endif
12797acl_t acl;
12798int
12799main ()
12800{
12801acl = acl_get_file("foo", ACL_TYPE_ACCESS);
12802	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
12803	acl_free(acl);
12804  ;
12805  return 0;
12806}
12807_ACEOF
12808if ac_fn_c_try_link "$LINENO"; then :
12809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12810$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
12811
12812else
12813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814$as_echo "no" >&6; }
12815fi
12816rm -f core conftest.err conftest.$ac_objext \
12817    conftest$ac_exeext conftest.$ac_ext
12818
12819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5
12820$as_echo_n "checking for acl_get in -lsec... " >&6; }
12821if ${ac_cv_lib_sec_acl_get+:} false; then :
12822  $as_echo_n "(cached) " >&6
12823else
12824  ac_check_lib_save_LIBS=$LIBS
12825LIBS="-lsec  $LIBS"
12826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827/* end confdefs.h.  */
12828
12829/* Override any GCC internal prototype to avoid an error.
12830   Use char because int might match the return type of a GCC
12831   builtin and then its argument prototype would still apply.  */
12832#ifdef __cplusplus
12833extern "C"
12834#endif
12835char acl_get ();
12836int
12837main ()
12838{
12839return acl_get ();
12840  ;
12841  return 0;
12842}
12843_ACEOF
12844if ac_fn_c_try_link "$LINENO"; then :
12845  ac_cv_lib_sec_acl_get=yes
12846else
12847  ac_cv_lib_sec_acl_get=no
12848fi
12849rm -f core conftest.err conftest.$ac_objext \
12850    conftest$ac_exeext conftest.$ac_ext
12851LIBS=$ac_check_lib_save_LIBS
12852fi
12853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5
12854$as_echo "$ac_cv_lib_sec_acl_get" >&6; }
12855if test "x$ac_cv_lib_sec_acl_get" = xyes; then :
12856  LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h
12857
12858else
12859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5
12860$as_echo_n "checking for Solaris ACL support... " >&6; }
12861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12862/* end confdefs.h.  */
12863
12864#ifdef HAVE_SYS_ACL_H
12865# include <sys/acl.h>
12866#endif
12867int
12868main ()
12869{
12870acl("foo", GETACLCNT, 0, NULL);
12871
12872  ;
12873  return 0;
12874}
12875_ACEOF
12876if ac_fn_c_try_link "$LINENO"; then :
12877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12878$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h
12879
12880else
12881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882$as_echo "no" >&6; }
12883fi
12884rm -f core conftest.err conftest.$ac_objext \
12885    conftest$ac_exeext conftest.$ac_ext
12886fi
12887
12888
12889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5
12890$as_echo_n "checking for AIX ACL support... " >&6; }
12891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892/* end confdefs.h.  */
12893
12894#if STDC_HEADERS
12895# include <stdlib.h>
12896# include <stddef.h>
12897#endif
12898#ifdef HAVE_SYS_ACL_H
12899# include <sys/acl.h>
12900#endif
12901#ifdef HAVE_SYS_ACCESS_H
12902# include <sys/access.h>
12903#endif
12904#define _ALL_SOURCE
12905
12906#include <sys/stat.h>
12907
12908int aclsize;
12909struct acl *aclent;
12910int
12911main ()
12912{
12913aclsize = sizeof(struct acl);
12914	aclent = (void *)malloc(aclsize);
12915	statacl("foo", STX_NORMAL, aclent, aclsize);
12916
12917  ;
12918  return 0;
12919}
12920_ACEOF
12921if ac_fn_c_try_link "$LINENO"; then :
12922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12923$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h
12924
12925else
12926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12927$as_echo "no" >&6; }
12928fi
12929rm -f core conftest.err conftest.$ac_objext \
12930    conftest$ac_exeext conftest.$ac_ext
12931else
12932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12933$as_echo "yes" >&6; }
12934fi
12935
12936if test "x$GTK_CFLAGS" != "x"; then
12937    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5
12938$as_echo_n "checking for pango_shape_full... " >&6; }
12939  ac_save_CFLAGS="$CFLAGS"
12940  ac_save_LIBS="$LIBS"
12941  CFLAGS="$CFLAGS $GTK_CFLAGS"
12942  LIBS="$LIBS $GTK_LIBS"
12943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944/* end confdefs.h.  */
12945#include <gtk/gtk.h>
12946int
12947main ()
12948{
12949 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL);
12950  ;
12951  return 0;
12952}
12953_ACEOF
12954if ac_fn_c_try_link "$LINENO"; then :
12955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12956$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h
12957
12958else
12959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960$as_echo "no" >&6; }
12961fi
12962rm -f core conftest.err conftest.$ac_objext \
12963    conftest$ac_exeext conftest.$ac_ext
12964  CFLAGS="$ac_save_CFLAGS"
12965  LIBS="$ac_save_LIBS"
12966fi
12967
12968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5
12969$as_echo_n "checking --disable-gpm argument... " >&6; }
12970# Check whether --enable-gpm was given.
12971if test "${enable_gpm+set}" = set; then :
12972  enableval=$enable_gpm;
12973else
12974  enable_gpm="yes"
12975fi
12976
12977
12978if test "$enable_gpm" = "yes"; then
12979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980$as_echo "no" >&6; }
12981    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5
12982$as_echo_n "checking for gpm... " >&6; }
12983if ${vi_cv_have_gpm+:} false; then :
12984  $as_echo_n "(cached) " >&6
12985else
12986  olibs="$LIBS" ; LIBS="-lgpm"
12987	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988/* end confdefs.h.  */
12989#include <gpm.h>
12990	    #include <linux/keyboard.h>
12991int
12992main ()
12993{
12994Gpm_GetLibVersion(NULL);
12995  ;
12996  return 0;
12997}
12998_ACEOF
12999if ac_fn_c_try_link "$LINENO"; then :
13000  	    	    vi_cv_have_gpm=yes
13001else
13002  vi_cv_have_gpm=no
13003fi
13004rm -f core conftest.err conftest.$ac_objext \
13005    conftest$ac_exeext conftest.$ac_ext
13006	LIBS="$olibs"
13007
13008fi
13009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5
13010$as_echo "$vi_cv_have_gpm" >&6; }
13011  if test $vi_cv_have_gpm = yes; then
13012    LIBS="$LIBS -lgpm"
13013    $as_echo "#define HAVE_GPM 1" >>confdefs.h
13014
13015  fi
13016else
13017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13018$as_echo "yes" >&6; }
13019fi
13020
13021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5
13022$as_echo_n "checking --disable-sysmouse argument... " >&6; }
13023# Check whether --enable-sysmouse was given.
13024if test "${enable_sysmouse+set}" = set; then :
13025  enableval=$enable_sysmouse;
13026else
13027  enable_sysmouse="yes"
13028fi
13029
13030
13031if test "$enable_sysmouse" = "yes"; then
13032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033$as_echo "no" >&6; }
13034        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5
13035$as_echo_n "checking for sysmouse... " >&6; }
13036if ${vi_cv_have_sysmouse+:} false; then :
13037  $as_echo_n "(cached) " >&6
13038else
13039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040/* end confdefs.h.  */
13041#include <sys/consio.h>
13042	     #include <signal.h>
13043	     #include <sys/fbio.h>
13044int
13045main ()
13046{
13047struct mouse_info   mouse;
13048	     mouse.operation = MOUSE_MODE;
13049	     mouse.operation = MOUSE_SHOW;
13050	     mouse.u.mode.mode = 0;
13051	     mouse.u.mode.signal = SIGUSR2;
13052  ;
13053  return 0;
13054}
13055_ACEOF
13056if ac_fn_c_try_link "$LINENO"; then :
13057  vi_cv_have_sysmouse=yes
13058else
13059  vi_cv_have_sysmouse=no
13060fi
13061rm -f core conftest.err conftest.$ac_objext \
13062    conftest$ac_exeext conftest.$ac_ext
13063
13064fi
13065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5
13066$as_echo "$vi_cv_have_sysmouse" >&6; }
13067  if test $vi_cv_have_sysmouse = yes; then
13068    $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h
13069
13070  fi
13071else
13072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13073$as_echo "yes" >&6; }
13074fi
13075
13076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5
13077$as_echo_n "checking for FD_CLOEXEC... " >&6; }
13078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079/* end confdefs.h.  */
13080#if HAVE_FCNTL_H
13081# include <fcntl.h>
13082#endif
13083int
13084main ()
13085{
13086	int flag = FD_CLOEXEC;
13087  ;
13088  return 0;
13089}
13090_ACEOF
13091if ac_fn_c_try_compile "$LINENO"; then :
13092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13093$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h
13094
13095else
13096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13097$as_echo "not usable" >&6; }
13098fi
13099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13100
13101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5
13102$as_echo_n "checking for rename... " >&6; }
13103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13104/* end confdefs.h.  */
13105#include <stdio.h>
13106int
13107main ()
13108{
13109rename("this", "that")
13110  ;
13111  return 0;
13112}
13113_ACEOF
13114if ac_fn_c_try_link "$LINENO"; then :
13115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13116$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h
13117
13118else
13119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120$as_echo "no" >&6; }
13121fi
13122rm -f core conftest.err conftest.$ac_objext \
13123    conftest$ac_exeext conftest.$ac_ext
13124
13125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
13126$as_echo_n "checking for sysctl... " >&6; }
13127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128/* end confdefs.h.  */
13129#include <sys/types.h>
13130#include <sys/sysctl.h>
13131int
13132main ()
13133{
13134	int mib[2], r;
13135	size_t len;
13136
13137	mib[0] = CTL_HW;
13138	mib[1] = HW_USERMEM;
13139	len = sizeof(r);
13140	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13141
13142  ;
13143  return 0;
13144}
13145_ACEOF
13146if ac_fn_c_try_compile "$LINENO"; then :
13147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13148$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h
13149
13150else
13151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13152$as_echo "not usable" >&6; }
13153fi
13154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13155
13156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
13157$as_echo_n "checking for sysinfo... " >&6; }
13158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159/* end confdefs.h.  */
13160#include <sys/types.h>
13161#include <sys/sysinfo.h>
13162int
13163main ()
13164{
13165	struct sysinfo sinfo;
13166	int t;
13167
13168	(void)sysinfo(&sinfo);
13169	t = sinfo.totalram;
13170
13171  ;
13172  return 0;
13173}
13174_ACEOF
13175if ac_fn_c_try_compile "$LINENO"; then :
13176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13177$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
13178
13179else
13180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13181$as_echo "not usable" >&6; }
13182fi
13183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13184
13185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5
13186$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
13187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188/* end confdefs.h.  */
13189#include <sys/types.h>
13190#include <sys/sysinfo.h>
13191int
13192main ()
13193{
13194	struct sysinfo sinfo;
13195	sinfo.mem_unit = 1;
13196
13197  ;
13198  return 0;
13199}
13200_ACEOF
13201if ac_fn_c_try_compile "$LINENO"; then :
13202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13203$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h
13204
13205else
13206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207$as_echo "no" >&6; }
13208fi
13209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210
13211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
13212$as_echo_n "checking for sysconf... " >&6; }
13213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13214/* end confdefs.h.  */
13215#include <unistd.h>
13216int
13217main ()
13218{
13219	(void)sysconf(_SC_PAGESIZE);
13220	(void)sysconf(_SC_PHYS_PAGES);
13221
13222  ;
13223  return 0;
13224}
13225_ACEOF
13226if ac_fn_c_try_compile "$LINENO"; then :
13227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13228$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
13229
13230else
13231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13232$as_echo "not usable" >&6; }
13233fi
13234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13235
13236# The cast to long int works around a bug in the HP C Compiler
13237# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13238# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13239# This bug is HP SR number 8606223364.
13240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13241$as_echo_n "checking size of int... " >&6; }
13242if ${ac_cv_sizeof_int+:} false; then :
13243  $as_echo_n "(cached) " >&6
13244else
13245  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13246
13247else
13248  if test "$ac_cv_type_int" = yes; then
13249     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13251as_fn_error 77 "cannot compute sizeof (int)
13252See \`config.log' for more details" "$LINENO" 5; }
13253   else
13254     ac_cv_sizeof_int=0
13255   fi
13256fi
13257
13258fi
13259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13260$as_echo "$ac_cv_sizeof_int" >&6; }
13261
13262
13263
13264cat >>confdefs.h <<_ACEOF
13265#define SIZEOF_INT $ac_cv_sizeof_int
13266_ACEOF
13267
13268
13269# The cast to long int works around a bug in the HP C Compiler
13270# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13271# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13272# This bug is HP SR number 8606223364.
13273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13274$as_echo_n "checking size of long... " >&6; }
13275if ${ac_cv_sizeof_long+:} false; then :
13276  $as_echo_n "(cached) " >&6
13277else
13278  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13279
13280else
13281  if test "$ac_cv_type_long" = yes; then
13282     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13284as_fn_error 77 "cannot compute sizeof (long)
13285See \`config.log' for more details" "$LINENO" 5; }
13286   else
13287     ac_cv_sizeof_long=0
13288   fi
13289fi
13290
13291fi
13292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13293$as_echo "$ac_cv_sizeof_long" >&6; }
13294
13295
13296
13297cat >>confdefs.h <<_ACEOF
13298#define SIZEOF_LONG $ac_cv_sizeof_long
13299_ACEOF
13300
13301
13302# The cast to long int works around a bug in the HP C Compiler
13303# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13304# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13305# This bug is HP SR number 8606223364.
13306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
13307$as_echo_n "checking size of time_t... " >&6; }
13308if ${ac_cv_sizeof_time_t+:} false; then :
13309  $as_echo_n "(cached) " >&6
13310else
13311  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
13312
13313else
13314  if test "$ac_cv_type_time_t" = yes; then
13315     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13317as_fn_error 77 "cannot compute sizeof (time_t)
13318See \`config.log' for more details" "$LINENO" 5; }
13319   else
13320     ac_cv_sizeof_time_t=0
13321   fi
13322fi
13323
13324fi
13325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
13326$as_echo "$ac_cv_sizeof_time_t" >&6; }
13327
13328
13329
13330cat >>confdefs.h <<_ACEOF
13331#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13332_ACEOF
13333
13334
13335# The cast to long int works around a bug in the HP C Compiler
13336# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13337# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13338# This bug is HP SR number 8606223364.
13339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
13340$as_echo_n "checking size of off_t... " >&6; }
13341if ${ac_cv_sizeof_off_t+:} false; then :
13342  $as_echo_n "(cached) " >&6
13343else
13344  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
13345
13346else
13347  if test "$ac_cv_type_off_t" = yes; then
13348     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13350as_fn_error 77 "cannot compute sizeof (off_t)
13351See \`config.log' for more details" "$LINENO" 5; }
13352   else
13353     ac_cv_sizeof_off_t=0
13354   fi
13355fi
13356
13357fi
13358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
13359$as_echo "$ac_cv_sizeof_off_t" >&6; }
13360
13361
13362
13363cat >>confdefs.h <<_ACEOF
13364#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13365_ACEOF
13366
13367
13368
13369cat >>confdefs.h <<_ACEOF
13370#define VIM_SIZEOF_INT $ac_cv_sizeof_int
13371_ACEOF
13372
13373cat >>confdefs.h <<_ACEOF
13374#define VIM_SIZEOF_LONG $ac_cv_sizeof_long
13375_ACEOF
13376
13377
13378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
13379$as_echo_n "checking uint32_t is 32 bits... " >&6; }
13380if test "$cross_compiling" = yes; then :
13381  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5
13382$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;}
13383else
13384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13385/* end confdefs.h.  */
13386
13387#ifdef HAVE_STDINT_H
13388# include <stdint.h>
13389#endif
13390#ifdef HAVE_INTTYPES_H
13391# include <inttypes.h>
13392#endif
13393main() {
13394  uint32_t nr1 = (uint32_t)-1;
13395  uint32_t nr2 = (uint32_t)0xffffffffUL;
13396  if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
13397  exit(0);
13398}
13399_ACEOF
13400if ac_fn_c_try_run "$LINENO"; then :
13401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13402$as_echo "ok" >&6; }
13403else
13404  as_fn_error $? "WRONG!  uint32_t not defined correctly." "$LINENO" 5
13405fi
13406rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13407  conftest.$ac_objext conftest.beam conftest.$ac_ext
13408fi
13409
13410
13411
13412bcopy_test_prog='
13413#include "confdefs.h"
13414#ifdef HAVE_STRING_H
13415# include <string.h>
13416#endif
13417#if STDC_HEADERS
13418# include <stdlib.h>
13419# include <stddef.h>
13420#endif
13421main() {
13422  char buf[10];
13423  strcpy(buf, "abcdefghi");
13424  mch_memmove(buf, buf + 2, 3);
13425  if (strncmp(buf, "ababcf", 6))
13426    exit(1);
13427  strcpy(buf, "abcdefghi");
13428  mch_memmove(buf + 2, buf, 3);
13429  if (strncmp(buf, "cdedef", 6))
13430    exit(1);
13431  exit(0); /* libc version works properly.  */
13432}'
13433
13434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5
13435$as_echo_n "checking whether memmove handles overlaps... " >&6; }
13436if ${vim_cv_memmove_handles_overlap+:} false; then :
13437  $as_echo_n "(cached) " >&6
13438else
13439
13440    if test "$cross_compiling" = yes; then :
13441
13442	as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5
13443
13444else
13445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446/* end confdefs.h.  */
13447#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
13448_ACEOF
13449if ac_fn_c_try_run "$LINENO"; then :
13450
13451	vim_cv_memmove_handles_overlap=yes
13452
13453else
13454
13455	vim_cv_memmove_handles_overlap=no
13456
13457fi
13458rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13459  conftest.$ac_objext conftest.beam conftest.$ac_ext
13460fi
13461
13462
13463fi
13464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5
13465$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
13466
13467if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
13468  $as_echo "#define USEMEMMOVE 1" >>confdefs.h
13469
13470else
13471  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5
13472$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
13473if ${vim_cv_bcopy_handles_overlap+:} false; then :
13474  $as_echo_n "(cached) " >&6
13475else
13476
13477      if test "$cross_compiling" = yes; then :
13478
13479	as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5
13480
13481else
13482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483/* end confdefs.h.  */
13484#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
13485_ACEOF
13486if ac_fn_c_try_run "$LINENO"; then :
13487
13488	vim_cv_bcopy_handles_overlap=yes
13489
13490else
13491
13492	vim_cv_bcopy_handles_overlap=no
13493
13494fi
13495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13496  conftest.$ac_objext conftest.beam conftest.$ac_ext
13497fi
13498
13499
13500fi
13501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5
13502$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
13503
13504  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
13505    $as_echo "#define USEBCOPY 1" >>confdefs.h
13506
13507  else
13508    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5
13509$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
13510if ${vim_cv_memcpy_handles_overlap+:} false; then :
13511  $as_echo_n "(cached) " >&6
13512else
13513
13514	if test "$cross_compiling" = yes; then :
13515
13516	    as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5
13517
13518else
13519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13520/* end confdefs.h.  */
13521#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
13522_ACEOF
13523if ac_fn_c_try_run "$LINENO"; then :
13524
13525	    vim_cv_memcpy_handles_overlap=yes
13526
13527else
13528
13529	    vim_cv_memcpy_handles_overlap=no
13530
13531fi
13532rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13533  conftest.$ac_objext conftest.beam conftest.$ac_ext
13534fi
13535
13536
13537fi
13538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5
13539$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
13540
13541    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
13542      $as_echo "#define USEMEMCPY 1" >>confdefs.h
13543
13544    fi
13545  fi
13546fi
13547
13548
13549if test "x$with_x" = "xyes"; then
13550  cflags_save=$CFLAGS
13551  libs_save=$LIBS
13552  LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS"
13553  CFLAGS="$CFLAGS $X_CFLAGS"
13554
13555  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
13556$as_echo_n "checking whether X_LOCALE needed... " >&6; }
13557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558/* end confdefs.h.  */
13559#include <X11/Xlocale.h>
13560int
13561main ()
13562{
13563
13564  ;
13565  return 0;
13566}
13567_ACEOF
13568if ac_fn_c_try_compile "$LINENO"; then :
13569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13570/* end confdefs.h.  */
13571
13572/* Override any GCC internal prototype to avoid an error.
13573   Use char because int might match the return type of a GCC
13574   builtin and then its argument prototype would still apply.  */
13575#ifdef __cplusplus
13576extern "C"
13577#endif
13578char _Xsetlocale ();
13579int
13580main ()
13581{
13582return _Xsetlocale ();
13583  ;
13584  return 0;
13585}
13586_ACEOF
13587if ac_fn_c_try_link "$LINENO"; then :
13588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13589$as_echo "yes" >&6; }
13590	      $as_echo "#define X_LOCALE 1" >>confdefs.h
13591
13592else
13593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594$as_echo "no" >&6; }
13595fi
13596rm -f core conftest.err conftest.$ac_objext \
13597    conftest$ac_exeext conftest.$ac_ext
13598else
13599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13600$as_echo "no" >&6; }
13601fi
13602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13603
13604  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5
13605$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; }
13606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607/* end confdefs.h.  */
13608
13609/* Override any GCC internal prototype to avoid an error.
13610   Use char because int might match the return type of a GCC
13611   builtin and then its argument prototype would still apply.  */
13612#ifdef __cplusplus
13613extern "C"
13614#endif
13615char Xutf8SetWMProperties ();
13616int
13617main ()
13618{
13619return Xutf8SetWMProperties ();
13620  ;
13621  return 0;
13622}
13623_ACEOF
13624if ac_fn_c_try_link "$LINENO"; then :
13625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13626$as_echo "yes" >&6; }
13627	      $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h
13628
13629else
13630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13631$as_echo "no" >&6; }
13632fi
13633rm -f core conftest.err conftest.$ac_objext \
13634    conftest$ac_exeext conftest.$ac_ext
13635
13636  CFLAGS=$cflags_save
13637  LIBS=$libs_save
13638fi
13639
13640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
13641$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
13642if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then :
13643  $as_echo_n "(cached) " >&6
13644else
13645  ac_check_lib_save_LIBS=$LIBS
13646LIBS="-lxpg4  $LIBS"
13647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648/* end confdefs.h.  */
13649
13650/* Override any GCC internal prototype to avoid an error.
13651   Use char because int might match the return type of a GCC
13652   builtin and then its argument prototype would still apply.  */
13653#ifdef __cplusplus
13654extern "C"
13655#endif
13656char _xpg4_setrunelocale ();
13657int
13658main ()
13659{
13660return _xpg4_setrunelocale ();
13661  ;
13662  return 0;
13663}
13664_ACEOF
13665if ac_fn_c_try_link "$LINENO"; then :
13666  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
13667else
13668  ac_cv_lib_xpg4__xpg4_setrunelocale=no
13669fi
13670rm -f core conftest.err conftest.$ac_objext \
13671    conftest$ac_exeext conftest.$ac_ext
13672LIBS=$ac_check_lib_save_LIBS
13673fi
13674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
13675$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
13676if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then :
13677  LIBS="$LIBS -lxpg4"
13678fi
13679
13680
13681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5
13682$as_echo_n "checking how to create tags... " >&6; }
13683test -f tags && mv tags tags.save
13684if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
13685  TAGPRG="ctags -I INIT+ --fields=+S"
13686elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
13687  TAGPRG="exctags -I INIT+ --fields=+S"
13688elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
13689  TAGPRG="exuberant-ctags -I INIT+ --fields=+S"
13690else
13691  TAGPRG="ctags"
13692  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
13693  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
13694  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
13695  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
13696  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
13697  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
13698  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
13699fi
13700test -f tags.save && mv tags.save tags
13701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5
13702$as_echo "$TAGPRG" >&6; }
13703
13704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5
13705$as_echo_n "checking how to run man with a section nr... " >&6; }
13706MANDEF="man"
13707(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
13708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5
13709$as_echo "$MANDEF" >&6; }
13710if test "$MANDEF" = "man -s"; then
13711  $as_echo "#define USEMAN_S 1" >>confdefs.h
13712
13713fi
13714
13715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5
13716$as_echo_n "checking --disable-nls argument... " >&6; }
13717# Check whether --enable-nls was given.
13718if test "${enable_nls+set}" = set; then :
13719  enableval=$enable_nls;
13720else
13721  enable_nls="yes"
13722fi
13723
13724
13725if test "$enable_nls" = "yes"; then
13726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13727$as_echo "no" >&6; }
13728
13729  INSTALL_LANGS=install-languages
13730
13731  INSTALL_TOOL_LANGS=install-tool-languages
13732
13733
13734  # Extract the first word of "msgfmt", so it can be a program name with args.
13735set dummy msgfmt; ac_word=$2
13736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13737$as_echo_n "checking for $ac_word... " >&6; }
13738if ${ac_cv_prog_MSGFMT+:} false; then :
13739  $as_echo_n "(cached) " >&6
13740else
13741  if test -n "$MSGFMT"; then
13742  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
13743else
13744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745for as_dir in $PATH
13746do
13747  IFS=$as_save_IFS
13748  test -z "$as_dir" && as_dir=.
13749    for ac_exec_ext in '' $ac_executable_extensions; do
13750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13751    ac_cv_prog_MSGFMT="msgfmt"
13752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13753    break 2
13754  fi
13755done
13756  done
13757IFS=$as_save_IFS
13758
13759fi
13760fi
13761MSGFMT=$ac_cv_prog_MSGFMT
13762if test -n "$MSGFMT"; then
13763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13764$as_echo "$MSGFMT" >&6; }
13765else
13766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767$as_echo "no" >&6; }
13768fi
13769
13770
13771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5
13772$as_echo_n "checking for NLS... " >&6; }
13773  if test -f po/Makefile; then
13774    have_gettext="no"
13775    if test -n "$MSGFMT"; then
13776      olibs=$LIBS
13777      LIBS=""
13778      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779/* end confdefs.h.  */
13780#include <libintl.h>
13781int
13782main ()
13783{
13784gettext("Test");
13785  ;
13786  return 0;
13787}
13788_ACEOF
13789if ac_fn_c_try_link "$LINENO"; then :
13790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
13791$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs
13792else
13793  LIBS="-lintl"
13794	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795/* end confdefs.h.  */
13796#include <libintl.h>
13797int
13798main ()
13799{
13800gettext("Test");
13801  ;
13802  return 0;
13803}
13804_ACEOF
13805if ac_fn_c_try_link "$LINENO"; then :
13806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
13807$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes";
13808	      LIBS="$olibs -lintl"
13809else
13810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
13811$as_echo "gettext() doesn't work" >&6; };
13812	      LIBS=$olibs
13813fi
13814rm -f core conftest.err conftest.$ac_objext \
13815    conftest$ac_exeext conftest.$ac_ext
13816fi
13817rm -f core conftest.err conftest.$ac_objext \
13818    conftest$ac_exeext conftest.$ac_ext
13819    else
13820      { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5
13821$as_echo "msgfmt not found - disabled" >&6; };
13822    fi
13823    if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then
13824      $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13825
13826      MAKEMO=yes
13827
13828            for ac_func in bind_textdomain_codeset
13829do :
13830  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
13831if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
13832  cat >>confdefs.h <<_ACEOF
13833#define HAVE_BIND_TEXTDOMAIN_CODESET 1
13834_ACEOF
13835
13836fi
13837done
13838
13839            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5
13840$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
13841      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842/* end confdefs.h.  */
13843#include <libintl.h>
13844		extern int _nl_msg_cat_cntr;
13845int
13846main ()
13847{
13848++_nl_msg_cat_cntr;
13849  ;
13850  return 0;
13851}
13852_ACEOF
13853if ac_fn_c_try_link "$LINENO"; then :
13854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13855$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h
13856
13857else
13858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13859$as_echo "no" >&6; }
13860fi
13861rm -f core conftest.err conftest.$ac_objext \
13862    conftest$ac_exeext conftest.$ac_ext
13863    fi
13864  else
13865    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5
13866$as_echo "no \"po/Makefile\" - disabled" >&6; };
13867  fi
13868else
13869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13870$as_echo "yes" >&6; }
13871fi
13872
13873ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
13874if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13875  DLL=dlfcn.h
13876else
13877  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
13878if test "x$ac_cv_header_dl_h" = xyes; then :
13879  DLL=dl.h
13880fi
13881
13882
13883fi
13884
13885
13886if test x${DLL} = xdlfcn.h; then
13887
13888$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
13889
13890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5
13891$as_echo_n "checking for dlopen()... " >&6; }
13892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13893/* end confdefs.h.  */
13894
13895int
13896main ()
13897{
13898
13899		extern void* dlopen();
13900		dlopen();
13901
13902  ;
13903  return 0;
13904}
13905_ACEOF
13906if ac_fn_c_try_link "$LINENO"; then :
13907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13908$as_echo "yes" >&6; };
13909
13910$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13911
13912else
13913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13914$as_echo "no" >&6; };
13915	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5
13916$as_echo_n "checking for dlopen() in -ldl... " >&6; }
13917	      olibs=$LIBS
13918	      LIBS="$LIBS -ldl"
13919	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920/* end confdefs.h.  */
13921
13922int
13923main ()
13924{
13925
13926				extern void* dlopen();
13927				dlopen();
13928
13929  ;
13930  return 0;
13931}
13932_ACEOF
13933if ac_fn_c_try_link "$LINENO"; then :
13934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13935$as_echo "yes" >&6; };
13936
13937$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13938
13939else
13940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13941$as_echo "no" >&6; };
13942			  LIBS=$olibs
13943fi
13944rm -f core conftest.err conftest.$ac_objext \
13945    conftest$ac_exeext conftest.$ac_ext
13946fi
13947rm -f core conftest.err conftest.$ac_objext \
13948    conftest$ac_exeext conftest.$ac_ext
13949      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5
13950$as_echo_n "checking for dlsym()... " >&6; }
13951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13952/* end confdefs.h.  */
13953
13954int
13955main ()
13956{
13957
13958		extern void* dlsym();
13959		dlsym();
13960
13961  ;
13962  return 0;
13963}
13964_ACEOF
13965if ac_fn_c_try_link "$LINENO"; then :
13966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13967$as_echo "yes" >&6; };
13968
13969$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
13970
13971else
13972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13973$as_echo "no" >&6; };
13974	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5
13975$as_echo_n "checking for dlsym() in -ldl... " >&6; }
13976	      olibs=$LIBS
13977	      LIBS="$LIBS -ldl"
13978	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13979/* end confdefs.h.  */
13980
13981int
13982main ()
13983{
13984
13985				extern void* dlsym();
13986				dlsym();
13987
13988  ;
13989  return 0;
13990}
13991_ACEOF
13992if ac_fn_c_try_link "$LINENO"; then :
13993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13994$as_echo "yes" >&6; };
13995
13996$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
13997
13998else
13999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14000$as_echo "no" >&6; };
14001			  LIBS=$olibs
14002fi
14003rm -f core conftest.err conftest.$ac_objext \
14004    conftest$ac_exeext conftest.$ac_ext
14005fi
14006rm -f core conftest.err conftest.$ac_objext \
14007    conftest$ac_exeext conftest.$ac_ext
14008elif test x${DLL} = xdl.h; then
14009
14010$as_echo "#define HAVE_DL_H 1" >>confdefs.h
14011
14012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5
14013$as_echo_n "checking for shl_load()... " >&6; }
14014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14015/* end confdefs.h.  */
14016
14017int
14018main ()
14019{
14020
14021		extern void* shl_load();
14022		shl_load();
14023
14024  ;
14025  return 0;
14026}
14027_ACEOF
14028if ac_fn_c_try_link "$LINENO"; then :
14029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14030$as_echo "yes" >&6; };
14031
14032$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14033
14034else
14035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14036$as_echo "no" >&6; };
14037	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5
14038$as_echo_n "checking for shl_load() in -ldld... " >&6; }
14039	  olibs=$LIBS
14040	  LIBS="$LIBS -ldld"
14041	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042/* end confdefs.h.  */
14043
14044int
14045main ()
14046{
14047
14048			extern void* shl_load();
14049			shl_load();
14050
14051  ;
14052  return 0;
14053}
14054_ACEOF
14055if ac_fn_c_try_link "$LINENO"; then :
14056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14057$as_echo "yes" >&6; };
14058
14059$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14060
14061else
14062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14063$as_echo "no" >&6; };
14064		  LIBS=$olibs
14065fi
14066rm -f core conftest.err conftest.$ac_objext \
14067    conftest$ac_exeext conftest.$ac_ext
14068fi
14069rm -f core conftest.err conftest.$ac_objext \
14070    conftest$ac_exeext conftest.$ac_ext
14071fi
14072for ac_header in setjmp.h
14073do :
14074  ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
14075if test "x$ac_cv_header_setjmp_h" = xyes; then :
14076  cat >>confdefs.h <<_ACEOF
14077#define HAVE_SETJMP_H 1
14078_ACEOF
14079
14080fi
14081
14082done
14083
14084
14085if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
14086    if echo $LIBS | grep -e '-ldl' >/dev/null; then
14087    LIBS=`echo $LIBS | sed s/-ldl//`
14088    PERL_LIBS="$PERL_LIBS -ldl"
14089  fi
14090fi
14091
14092if test "x$MACOSX" = "xyes"; then
14093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -framework Cocoa" >&5
14094$as_echo_n "checking whether we need -framework Cocoa... " >&6; }
14095      if test "x$features" != "xtiny" || test "x$enable_multibyte" = "xyes"; then
14096    LIBS=$"$LIBS -framework Cocoa"
14097    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14098$as_echo "yes" >&6; }
14099  else
14100    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14101$as_echo "no" >&6; }
14102  fi
14103        if test "x$features" = "xtiny"; then
14104    OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'`
14105    OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'`
14106  fi
14107fi
14108if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then
14109  LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
14110fi
14111
14112DEPEND_CFLAGS_FILTER=
14113if test "$GCC" = yes; then
14114  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5
14115$as_echo_n "checking for GCC 3 or later... " >&6; }
14116  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
14117  if test "$gccmajor" -gt "2"; then
14118    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
14119    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14120$as_echo "yes" >&6; }
14121  else
14122    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14123$as_echo "no" >&6; }
14124  fi
14125          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
14126$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
14127  if test "$gccmajor" -gt "3"; then
14128    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/'`
14129    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14130$as_echo "yes" >&6; }
14131  else
14132    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14133$as_echo "no" >&6; }
14134  fi
14135fi
14136
14137
14138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14139$as_echo_n "checking linker --as-needed support... " >&6; }
14140LINK_AS_NEEDED=
14141# Check if linker supports --as-needed and --no-as-needed options
14142if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
14143  LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
14144  LINK_AS_NEEDED=yes
14145fi
14146if test "$LINK_AS_NEEDED" = yes; then
14147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14148$as_echo "yes" >&6; }
14149else
14150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14151$as_echo "no" >&6; }
14152fi
14153
14154
14155# IBM z/OS reset CFLAGS for config.mk
14156if test "$zOSUnix" = "yes"; then
14157	CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
14158fi
14159
14160ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
14161
14162cat >confcache <<\_ACEOF
14163# This file is a shell script that caches the results of configure
14164# tests run on this system so they can be shared between configure
14165# scripts and configure runs, see configure's option --config-cache.
14166# It is not useful on other systems.  If it contains results you don't
14167# want to keep, you may remove or edit it.
14168#
14169# config.status only pays attention to the cache file if you give it
14170# the --recheck option to rerun configure.
14171#
14172# `ac_cv_env_foo' variables (set or unset) will be overridden when
14173# loading this file, other *unset* `ac_cv_foo' will be assigned the
14174# following values.
14175
14176_ACEOF
14177
14178# The following way of writing the cache mishandles newlines in values,
14179# but we know of no workaround that is simple, portable, and efficient.
14180# So, we kill variables containing newlines.
14181# Ultrix sh set writes to stderr and can't be redirected directly,
14182# and sets the high bit in the cache file unless we assign to the vars.
14183(
14184  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14185    eval ac_val=\$$ac_var
14186    case $ac_val in #(
14187    *${as_nl}*)
14188      case $ac_var in #(
14189      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14190$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14191      esac
14192      case $ac_var in #(
14193      _ | IFS | as_nl) ;; #(
14194      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14195      *) { eval $ac_var=; unset $ac_var;} ;;
14196      esac ;;
14197    esac
14198  done
14199
14200  (set) 2>&1 |
14201    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14202    *${as_nl}ac_space=\ *)
14203      # `set' does not quote correctly, so add quotes: double-quote
14204      # substitution turns \\\\ into \\, and sed turns \\ into \.
14205      sed -n \
14206	"s/'/'\\\\''/g;
14207	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14208      ;; #(
14209    *)
14210      # `set' quotes correctly as required by POSIX, so do not add quotes.
14211      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14212      ;;
14213    esac |
14214    sort
14215) |
14216  sed '
14217     /^ac_cv_env_/b end
14218     t clear
14219     :clear
14220     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14221     t end
14222     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14223     :end' >>confcache
14224if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14225  if test -w "$cache_file"; then
14226    if test "x$cache_file" != "x/dev/null"; then
14227      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14228$as_echo "$as_me: updating cache $cache_file" >&6;}
14229      if test ! -f "$cache_file" || test -h "$cache_file"; then
14230	cat confcache >"$cache_file"
14231      else
14232        case $cache_file in #(
14233        */* | ?:*)
14234	  mv -f confcache "$cache_file"$$ &&
14235	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14236        *)
14237	  mv -f confcache "$cache_file" ;;
14238	esac
14239      fi
14240    fi
14241  else
14242    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14243$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14244  fi
14245fi
14246rm -f confcache
14247
14248test "x$prefix" = xNONE && prefix=$ac_default_prefix
14249# Let make expand exec_prefix.
14250test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14251
14252DEFS=-DHAVE_CONFIG_H
14253
14254ac_libobjs=
14255ac_ltlibobjs=
14256U=
14257for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14258  # 1. Remove the extension, and $U if already installed.
14259  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14260  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14261  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14262  #    will be set to the directory where LIBOBJS objects are built.
14263  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14264  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14265done
14266LIBOBJS=$ac_libobjs
14267
14268LTLIBOBJS=$ac_ltlibobjs
14269
14270
14271
14272
14273: "${CONFIG_STATUS=./config.status}"
14274ac_write_fail=0
14275ac_clean_files_save=$ac_clean_files
14276ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14277{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14278$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14279as_write_fail=0
14280cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14281#! $SHELL
14282# Generated by $as_me.
14283# Run this file to recreate the current configuration.
14284# Compiler output produced by configure, useful for debugging
14285# configure, is in config.log if it exists.
14286
14287debug=false
14288ac_cs_recheck=false
14289ac_cs_silent=false
14290
14291SHELL=\${CONFIG_SHELL-$SHELL}
14292export SHELL
14293_ASEOF
14294cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14295## -------------------- ##
14296## M4sh Initialization. ##
14297## -------------------- ##
14298
14299# Be more Bourne compatible
14300DUALCASE=1; export DUALCASE # for MKS sh
14301if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14302  emulate sh
14303  NULLCMD=:
14304  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14305  # is contrary to our usage.  Disable this feature.
14306  alias -g '${1+"$@"}'='"$@"'
14307  setopt NO_GLOB_SUBST
14308else
14309  case `(set -o) 2>/dev/null` in #(
14310  *posix*) :
14311    set -o posix ;; #(
14312  *) :
14313     ;;
14314esac
14315fi
14316
14317
14318as_nl='
14319'
14320export as_nl
14321# Printing a long string crashes Solaris 7 /usr/bin/printf.
14322as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14323as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14324as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14325# Prefer a ksh shell builtin over an external printf program on Solaris,
14326# but without wasting forks for bash or zsh.
14327if test -z "$BASH_VERSION$ZSH_VERSION" \
14328    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14329  as_echo='print -r --'
14330  as_echo_n='print -rn --'
14331elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14332  as_echo='printf %s\n'
14333  as_echo_n='printf %s'
14334else
14335  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14336    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14337    as_echo_n='/usr/ucb/echo -n'
14338  else
14339    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14340    as_echo_n_body='eval
14341      arg=$1;
14342      case $arg in #(
14343      *"$as_nl"*)
14344	expr "X$arg" : "X\\(.*\\)$as_nl";
14345	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14346      esac;
14347      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14348    '
14349    export as_echo_n_body
14350    as_echo_n='sh -c $as_echo_n_body as_echo'
14351  fi
14352  export as_echo_body
14353  as_echo='sh -c $as_echo_body as_echo'
14354fi
14355
14356# The user is always right.
14357if test "${PATH_SEPARATOR+set}" != set; then
14358  PATH_SEPARATOR=:
14359  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14360    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14361      PATH_SEPARATOR=';'
14362  }
14363fi
14364
14365
14366# IFS
14367# We need space, tab and new line, in precisely that order.  Quoting is
14368# there to prevent editors from complaining about space-tab.
14369# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14370# splitting by setting IFS to empty value.)
14371IFS=" ""	$as_nl"
14372
14373# Find who we are.  Look in the path if we contain no directory separator.
14374as_myself=
14375case $0 in #((
14376  *[\\/]* ) as_myself=$0 ;;
14377  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14378for as_dir in $PATH
14379do
14380  IFS=$as_save_IFS
14381  test -z "$as_dir" && as_dir=.
14382    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14383  done
14384IFS=$as_save_IFS
14385
14386     ;;
14387esac
14388# We did not find ourselves, most probably we were run as `sh COMMAND'
14389# in which case we are not to be found in the path.
14390if test "x$as_myself" = x; then
14391  as_myself=$0
14392fi
14393if test ! -f "$as_myself"; then
14394  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14395  exit 1
14396fi
14397
14398# Unset variables that we do not need and which cause bugs (e.g. in
14399# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14400# suppresses any "Segmentation fault" message there.  '((' could
14401# trigger a bug in pdksh 5.2.14.
14402for as_var in BASH_ENV ENV MAIL MAILPATH
14403do eval test x\${$as_var+set} = xset \
14404  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14405done
14406PS1='$ '
14407PS2='> '
14408PS4='+ '
14409
14410# NLS nuisances.
14411LC_ALL=C
14412export LC_ALL
14413LANGUAGE=C
14414export LANGUAGE
14415
14416# CDPATH.
14417(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14418
14419
14420# as_fn_error STATUS ERROR [LINENO LOG_FD]
14421# ----------------------------------------
14422# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14423# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14424# script with STATUS, using 1 if that was 0.
14425as_fn_error ()
14426{
14427  as_status=$1; test $as_status -eq 0 && as_status=1
14428  if test "$4"; then
14429    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14430    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14431  fi
14432  $as_echo "$as_me: error: $2" >&2
14433  as_fn_exit $as_status
14434} # as_fn_error
14435
14436
14437# as_fn_set_status STATUS
14438# -----------------------
14439# Set $? to STATUS, without forking.
14440as_fn_set_status ()
14441{
14442  return $1
14443} # as_fn_set_status
14444
14445# as_fn_exit STATUS
14446# -----------------
14447# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14448as_fn_exit ()
14449{
14450  set +e
14451  as_fn_set_status $1
14452  exit $1
14453} # as_fn_exit
14454
14455# as_fn_unset VAR
14456# ---------------
14457# Portably unset VAR.
14458as_fn_unset ()
14459{
14460  { eval $1=; unset $1;}
14461}
14462as_unset=as_fn_unset
14463# as_fn_append VAR VALUE
14464# ----------------------
14465# Append the text in VALUE to the end of the definition contained in VAR. Take
14466# advantage of any shell optimizations that allow amortized linear growth over
14467# repeated appends, instead of the typical quadratic growth present in naive
14468# implementations.
14469if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14470  eval 'as_fn_append ()
14471  {
14472    eval $1+=\$2
14473  }'
14474else
14475  as_fn_append ()
14476  {
14477    eval $1=\$$1\$2
14478  }
14479fi # as_fn_append
14480
14481# as_fn_arith ARG...
14482# ------------------
14483# Perform arithmetic evaluation on the ARGs, and store the result in the
14484# global $as_val. Take advantage of shells that can avoid forks. The arguments
14485# must be portable across $(()) and expr.
14486if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14487  eval 'as_fn_arith ()
14488  {
14489    as_val=$(( $* ))
14490  }'
14491else
14492  as_fn_arith ()
14493  {
14494    as_val=`expr "$@" || test $? -eq 1`
14495  }
14496fi # as_fn_arith
14497
14498
14499if expr a : '\(a\)' >/dev/null 2>&1 &&
14500   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14501  as_expr=expr
14502else
14503  as_expr=false
14504fi
14505
14506if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14507  as_basename=basename
14508else
14509  as_basename=false
14510fi
14511
14512if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14513  as_dirname=dirname
14514else
14515  as_dirname=false
14516fi
14517
14518as_me=`$as_basename -- "$0" ||
14519$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14520	 X"$0" : 'X\(//\)$' \| \
14521	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14522$as_echo X/"$0" |
14523    sed '/^.*\/\([^/][^/]*\)\/*$/{
14524	    s//\1/
14525	    q
14526	  }
14527	  /^X\/\(\/\/\)$/{
14528	    s//\1/
14529	    q
14530	  }
14531	  /^X\/\(\/\).*/{
14532	    s//\1/
14533	    q
14534	  }
14535	  s/.*/./; q'`
14536
14537# Avoid depending upon Character Ranges.
14538as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14539as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14540as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14541as_cr_digits='0123456789'
14542as_cr_alnum=$as_cr_Letters$as_cr_digits
14543
14544ECHO_C= ECHO_N= ECHO_T=
14545case `echo -n x` in #(((((
14546-n*)
14547  case `echo 'xy\c'` in
14548  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14549  xy)  ECHO_C='\c';;
14550  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14551       ECHO_T='	';;
14552  esac;;
14553*)
14554  ECHO_N='-n';;
14555esac
14556
14557rm -f conf$$ conf$$.exe conf$$.file
14558if test -d conf$$.dir; then
14559  rm -f conf$$.dir/conf$$.file
14560else
14561  rm -f conf$$.dir
14562  mkdir conf$$.dir 2>/dev/null
14563fi
14564if (echo >conf$$.file) 2>/dev/null; then
14565  if ln -s conf$$.file conf$$ 2>/dev/null; then
14566    as_ln_s='ln -s'
14567    # ... but there are two gotchas:
14568    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14569    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14570    # In both cases, we have to default to `cp -pR'.
14571    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14572      as_ln_s='cp -pR'
14573  elif ln conf$$.file conf$$ 2>/dev/null; then
14574    as_ln_s=ln
14575  else
14576    as_ln_s='cp -pR'
14577  fi
14578else
14579  as_ln_s='cp -pR'
14580fi
14581rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14582rmdir conf$$.dir 2>/dev/null
14583
14584
14585# as_fn_mkdir_p
14586# -------------
14587# Create "$as_dir" as a directory, including parents if necessary.
14588as_fn_mkdir_p ()
14589{
14590
14591  case $as_dir in #(
14592  -*) as_dir=./$as_dir;;
14593  esac
14594  test -d "$as_dir" || eval $as_mkdir_p || {
14595    as_dirs=
14596    while :; do
14597      case $as_dir in #(
14598      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14599      *) as_qdir=$as_dir;;
14600      esac
14601      as_dirs="'$as_qdir' $as_dirs"
14602      as_dir=`$as_dirname -- "$as_dir" ||
14603$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14604	 X"$as_dir" : 'X\(//\)[^/]' \| \
14605	 X"$as_dir" : 'X\(//\)$' \| \
14606	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14607$as_echo X"$as_dir" |
14608    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14609	    s//\1/
14610	    q
14611	  }
14612	  /^X\(\/\/\)[^/].*/{
14613	    s//\1/
14614	    q
14615	  }
14616	  /^X\(\/\/\)$/{
14617	    s//\1/
14618	    q
14619	  }
14620	  /^X\(\/\).*/{
14621	    s//\1/
14622	    q
14623	  }
14624	  s/.*/./; q'`
14625      test -d "$as_dir" && break
14626    done
14627    test -z "$as_dirs" || eval "mkdir $as_dirs"
14628  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14629
14630
14631} # as_fn_mkdir_p
14632if mkdir -p . 2>/dev/null; then
14633  as_mkdir_p='mkdir -p "$as_dir"'
14634else
14635  test -d ./-p && rmdir ./-p
14636  as_mkdir_p=false
14637fi
14638
14639
14640# as_fn_executable_p FILE
14641# -----------------------
14642# Test if FILE is an executable regular file.
14643as_fn_executable_p ()
14644{
14645  test -f "$1" && test -x "$1"
14646} # as_fn_executable_p
14647as_test_x='test -x'
14648as_executable_p=as_fn_executable_p
14649
14650# Sed expression to map a string onto a valid CPP name.
14651as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14652
14653# Sed expression to map a string onto a valid variable name.
14654as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14655
14656
14657exec 6>&1
14658## ----------------------------------- ##
14659## Main body of $CONFIG_STATUS script. ##
14660## ----------------------------------- ##
14661_ASEOF
14662test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14663
14664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14665# Save the log message, to keep $0 and so on meaningful, and to
14666# report actual input values of CONFIG_FILES etc. instead of their
14667# values after options handling.
14668ac_log="
14669This file was extended by $as_me, which was
14670generated by GNU Autoconf 2.69.  Invocation command line was
14671
14672  CONFIG_FILES    = $CONFIG_FILES
14673  CONFIG_HEADERS  = $CONFIG_HEADERS
14674  CONFIG_LINKS    = $CONFIG_LINKS
14675  CONFIG_COMMANDS = $CONFIG_COMMANDS
14676  $ $0 $@
14677
14678on `(hostname || uname -n) 2>/dev/null | sed 1q`
14679"
14680
14681_ACEOF
14682
14683case $ac_config_files in *"
14684"*) set x $ac_config_files; shift; ac_config_files=$*;;
14685esac
14686
14687case $ac_config_headers in *"
14688"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14689esac
14690
14691
14692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14693# Files that config.status was made for.
14694config_files="$ac_config_files"
14695config_headers="$ac_config_headers"
14696
14697_ACEOF
14698
14699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14700ac_cs_usage="\
14701\`$as_me' instantiates files and other configuration actions
14702from templates according to the current configuration.  Unless the files
14703and actions are specified as TAGs, all are instantiated by default.
14704
14705Usage: $0 [OPTION]... [TAG]...
14706
14707  -h, --help       print this help, then exit
14708  -V, --version    print version number and configuration settings, then exit
14709      --config     print configuration, then exit
14710  -q, --quiet, --silent
14711                   do not print progress messages
14712  -d, --debug      don't remove temporary files
14713      --recheck    update $as_me by reconfiguring in the same conditions
14714      --file=FILE[:TEMPLATE]
14715                   instantiate the configuration file FILE
14716      --header=FILE[:TEMPLATE]
14717                   instantiate the configuration header FILE
14718
14719Configuration files:
14720$config_files
14721
14722Configuration headers:
14723$config_headers
14724
14725Report bugs to the package provider."
14726
14727_ACEOF
14728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14729ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14730ac_cs_version="\\
14731config.status
14732configured by $0, generated by GNU Autoconf 2.69,
14733  with options \\"\$ac_cs_config\\"
14734
14735Copyright (C) 2012 Free Software Foundation, Inc.
14736This config.status script is free software; the Free Software Foundation
14737gives unlimited permission to copy, distribute and modify it."
14738
14739ac_pwd='$ac_pwd'
14740srcdir='$srcdir'
14741AWK='$AWK'
14742test -n "\$AWK" || AWK=awk
14743_ACEOF
14744
14745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14746# The default lists apply if the user does not specify any file.
14747ac_need_defaults=:
14748while test $# != 0
14749do
14750  case $1 in
14751  --*=?*)
14752    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14753    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14754    ac_shift=:
14755    ;;
14756  --*=)
14757    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14758    ac_optarg=
14759    ac_shift=:
14760    ;;
14761  *)
14762    ac_option=$1
14763    ac_optarg=$2
14764    ac_shift=shift
14765    ;;
14766  esac
14767
14768  case $ac_option in
14769  # Handling of the options.
14770  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14771    ac_cs_recheck=: ;;
14772  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14773    $as_echo "$ac_cs_version"; exit ;;
14774  --config | --confi | --conf | --con | --co | --c )
14775    $as_echo "$ac_cs_config"; exit ;;
14776  --debug | --debu | --deb | --de | --d | -d )
14777    debug=: ;;
14778  --file | --fil | --fi | --f )
14779    $ac_shift
14780    case $ac_optarg in
14781    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14782    '') as_fn_error $? "missing file argument" ;;
14783    esac
14784    as_fn_append CONFIG_FILES " '$ac_optarg'"
14785    ac_need_defaults=false;;
14786  --header | --heade | --head | --hea )
14787    $ac_shift
14788    case $ac_optarg in
14789    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14790    esac
14791    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14792    ac_need_defaults=false;;
14793  --he | --h)
14794    # Conflict between --help and --header
14795    as_fn_error $? "ambiguous option: \`$1'
14796Try \`$0 --help' for more information.";;
14797  --help | --hel | -h )
14798    $as_echo "$ac_cs_usage"; exit ;;
14799  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14800  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14801    ac_cs_silent=: ;;
14802
14803  # This is an error.
14804  -*) as_fn_error $? "unrecognized option: \`$1'
14805Try \`$0 --help' for more information." ;;
14806
14807  *) as_fn_append ac_config_targets " $1"
14808     ac_need_defaults=false ;;
14809
14810  esac
14811  shift
14812done
14813
14814ac_configure_extra_args=
14815
14816if $ac_cs_silent; then
14817  exec 6>/dev/null
14818  ac_configure_extra_args="$ac_configure_extra_args --silent"
14819fi
14820
14821_ACEOF
14822cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14823if \$ac_cs_recheck; then
14824  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14825  shift
14826  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14827  CONFIG_SHELL='$SHELL'
14828  export CONFIG_SHELL
14829  exec "\$@"
14830fi
14831
14832_ACEOF
14833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14834exec 5>>auto/config.log
14835{
14836  echo
14837  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14838## Running $as_me. ##
14839_ASBOX
14840  $as_echo "$ac_log"
14841} >&5
14842
14843_ACEOF
14844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14845_ACEOF
14846
14847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14848
14849# Handling of arguments.
14850for ac_config_target in $ac_config_targets
14851do
14852  case $ac_config_target in
14853    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
14854    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
14855
14856  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14857  esac
14858done
14859
14860
14861# If the user did not use the arguments to specify the items to instantiate,
14862# then the envvar interface is used.  Set only those that are not.
14863# We use the long form for the default assignment because of an extremely
14864# bizarre bug on SunOS 4.1.3.
14865if $ac_need_defaults; then
14866  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14867  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14868fi
14869
14870# Have a temporary directory for convenience.  Make it in the build tree
14871# simply because there is no reason against having it here, and in addition,
14872# creating and moving files from /tmp can sometimes cause problems.
14873# Hook for its removal unless debugging.
14874# Note that there is a small window in which the directory will not be cleaned:
14875# after its creation but before its name has been assigned to `$tmp'.
14876$debug ||
14877{
14878  tmp= ac_tmp=
14879  trap 'exit_status=$?
14880  : "${ac_tmp:=$tmp}"
14881  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14882' 0
14883  trap 'as_fn_exit 1' 1 2 13 15
14884}
14885# Create a (secure) tmp directory for tmp files.
14886
14887{
14888  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14889  test -d "$tmp"
14890}  ||
14891{
14892  tmp=./conf$$-$RANDOM
14893  (umask 077 && mkdir "$tmp")
14894} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14895ac_tmp=$tmp
14896
14897# Set up the scripts for CONFIG_FILES section.
14898# No need to generate them if there are no CONFIG_FILES.
14899# This happens for instance with `./config.status config.h'.
14900if test -n "$CONFIG_FILES"; then
14901
14902
14903ac_cr=`echo X | tr X '\015'`
14904# On cygwin, bash can eat \r inside `` if the user requested igncr.
14905# But we know of no other shell where ac_cr would be empty at this
14906# point, so we can use a bashism as a fallback.
14907if test "x$ac_cr" = x; then
14908  eval ac_cr=\$\'\\r\'
14909fi
14910ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14911if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14912  ac_cs_awk_cr='\\r'
14913else
14914  ac_cs_awk_cr=$ac_cr
14915fi
14916
14917echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14918_ACEOF
14919
14920
14921{
14922  echo "cat >conf$$subs.awk <<_ACEOF" &&
14923  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14924  echo "_ACEOF"
14925} >conf$$subs.sh ||
14926  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14927ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14928ac_delim='%!_!# '
14929for ac_last_try in false false false false false :; do
14930  . ./conf$$subs.sh ||
14931    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14932
14933  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14934  if test $ac_delim_n = $ac_delim_num; then
14935    break
14936  elif $ac_last_try; then
14937    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14938  else
14939    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14940  fi
14941done
14942rm -f conf$$subs.sh
14943
14944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14945cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14946_ACEOF
14947sed -n '
14948h
14949s/^/S["/; s/!.*/"]=/
14950p
14951g
14952s/^[^!]*!//
14953:repl
14954t repl
14955s/'"$ac_delim"'$//
14956t delim
14957:nl
14958h
14959s/\(.\{148\}\)..*/\1/
14960t more1
14961s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14962p
14963n
14964b repl
14965:more1
14966s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14967p
14968g
14969s/.\{148\}//
14970t nl
14971:delim
14972h
14973s/\(.\{148\}\)..*/\1/
14974t more2
14975s/["\\]/\\&/g; s/^/"/; s/$/"/
14976p
14977b
14978:more2
14979s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14980p
14981g
14982s/.\{148\}//
14983t delim
14984' <conf$$subs.awk | sed '
14985/^[^""]/{
14986  N
14987  s/\n//
14988}
14989' >>$CONFIG_STATUS || ac_write_fail=1
14990rm -f conf$$subs.awk
14991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14992_ACAWK
14993cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14994  for (key in S) S_is_set[key] = 1
14995  FS = ""
14996
14997}
14998{
14999  line = $ 0
15000  nfields = split(line, field, "@")
15001  substed = 0
15002  len = length(field[1])
15003  for (i = 2; i < nfields; i++) {
15004    key = field[i]
15005    keylen = length(key)
15006    if (S_is_set[key]) {
15007      value = S[key]
15008      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15009      len += length(value) + length(field[++i])
15010      substed = 1
15011    } else
15012      len += 1 + keylen
15013  }
15014
15015  print line
15016}
15017
15018_ACAWK
15019_ACEOF
15020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15021if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15022  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15023else
15024  cat
15025fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15026  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15027_ACEOF
15028
15029# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15030# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15031# trailing colons and then remove the whole line if VPATH becomes empty
15032# (actually we leave an empty line to preserve line numbers).
15033if test "x$srcdir" = x.; then
15034  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15035h
15036s///
15037s/^/:/
15038s/[	 ]*$/:/
15039s/:\$(srcdir):/:/g
15040s/:\${srcdir}:/:/g
15041s/:@srcdir@:/:/g
15042s/^:*//
15043s/:*$//
15044x
15045s/\(=[	 ]*\).*/\1/
15046G
15047s/\n//
15048s/^[^=]*=[	 ]*$//
15049}'
15050fi
15051
15052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15053fi # test -n "$CONFIG_FILES"
15054
15055# Set up the scripts for CONFIG_HEADERS section.
15056# No need to generate them if there are no CONFIG_HEADERS.
15057# This happens for instance with `./config.status Makefile'.
15058if test -n "$CONFIG_HEADERS"; then
15059cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15060BEGIN {
15061_ACEOF
15062
15063# Transform confdefs.h into an awk script `defines.awk', embedded as
15064# here-document in config.status, that substitutes the proper values into
15065# config.h.in to produce config.h.
15066
15067# Create a delimiter string that does not exist in confdefs.h, to ease
15068# handling of long lines.
15069ac_delim='%!_!# '
15070for ac_last_try in false false :; do
15071  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15072  if test -z "$ac_tt"; then
15073    break
15074  elif $ac_last_try; then
15075    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15076  else
15077    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15078  fi
15079done
15080
15081# For the awk script, D is an array of macro values keyed by name,
15082# likewise P contains macro parameters if any.  Preserve backslash
15083# newline sequences.
15084
15085ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15086sed -n '
15087s/.\{148\}/&'"$ac_delim"'/g
15088t rset
15089:rset
15090s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15091t def
15092d
15093:def
15094s/\\$//
15095t bsnl
15096s/["\\]/\\&/g
15097s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15098D["\1"]=" \3"/p
15099s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15100d
15101:bsnl
15102s/["\\]/\\&/g
15103s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15104D["\1"]=" \3\\\\\\n"\\/p
15105t cont
15106s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15107t cont
15108d
15109:cont
15110n
15111s/.\{148\}/&'"$ac_delim"'/g
15112t clear
15113:clear
15114s/\\$//
15115t bsnlc
15116s/["\\]/\\&/g; s/^/"/; s/$/"/p
15117d
15118:bsnlc
15119s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15120b cont
15121' <confdefs.h | sed '
15122s/'"$ac_delim"'/"\\\
15123"/g' >>$CONFIG_STATUS || ac_write_fail=1
15124
15125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15126  for (key in D) D_is_set[key] = 1
15127  FS = ""
15128}
15129/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15130  line = \$ 0
15131  split(line, arg, " ")
15132  if (arg[1] == "#") {
15133    defundef = arg[2]
15134    mac1 = arg[3]
15135  } else {
15136    defundef = substr(arg[1], 2)
15137    mac1 = arg[2]
15138  }
15139  split(mac1, mac2, "(") #)
15140  macro = mac2[1]
15141  prefix = substr(line, 1, index(line, defundef) - 1)
15142  if (D_is_set[macro]) {
15143    # Preserve the white space surrounding the "#".
15144    print prefix "define", macro P[macro] D[macro]
15145    next
15146  } else {
15147    # Replace #undef with comments.  This is necessary, for example,
15148    # in the case of _POSIX_SOURCE, which is predefined and required
15149    # on some systems where configure will not decide to define it.
15150    if (defundef == "undef") {
15151      print "/*", prefix defundef, macro, "*/"
15152      next
15153    }
15154  }
15155}
15156{ print }
15157_ACAWK
15158_ACEOF
15159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15160  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15161fi # test -n "$CONFIG_HEADERS"
15162
15163
15164eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
15165shift
15166for ac_tag
15167do
15168  case $ac_tag in
15169  :[FHLC]) ac_mode=$ac_tag; continue;;
15170  esac
15171  case $ac_mode$ac_tag in
15172  :[FHL]*:*);;
15173  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15174  :[FH]-) ac_tag=-:-;;
15175  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15176  esac
15177  ac_save_IFS=$IFS
15178  IFS=:
15179  set x $ac_tag
15180  IFS=$ac_save_IFS
15181  shift
15182  ac_file=$1
15183  shift
15184
15185  case $ac_mode in
15186  :L) ac_source=$1;;
15187  :[FH])
15188    ac_file_inputs=
15189    for ac_f
15190    do
15191      case $ac_f in
15192      -) ac_f="$ac_tmp/stdin";;
15193      *) # Look for the file first in the build tree, then in the source tree
15194	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15195	 # because $ac_f cannot contain `:'.
15196	 test -f "$ac_f" ||
15197	   case $ac_f in
15198	   [\\/$]*) false;;
15199	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15200	   esac ||
15201	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15202      esac
15203      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15204      as_fn_append ac_file_inputs " '$ac_f'"
15205    done
15206
15207    # Let's still pretend it is `configure' which instantiates (i.e., don't
15208    # use $as_me), people would be surprised to read:
15209    #    /* config.h.  Generated by config.status.  */
15210    configure_input='Generated from '`
15211	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15212	`' by configure.'
15213    if test x"$ac_file" != x-; then
15214      configure_input="$ac_file.  $configure_input"
15215      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15216$as_echo "$as_me: creating $ac_file" >&6;}
15217    fi
15218    # Neutralize special characters interpreted by sed in replacement strings.
15219    case $configure_input in #(
15220    *\&* | *\|* | *\\* )
15221       ac_sed_conf_input=`$as_echo "$configure_input" |
15222       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15223    *) ac_sed_conf_input=$configure_input;;
15224    esac
15225
15226    case $ac_tag in
15227    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15228      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15229    esac
15230    ;;
15231  esac
15232
15233  ac_dir=`$as_dirname -- "$ac_file" ||
15234$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15235	 X"$ac_file" : 'X\(//\)[^/]' \| \
15236	 X"$ac_file" : 'X\(//\)$' \| \
15237	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15238$as_echo X"$ac_file" |
15239    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15240	    s//\1/
15241	    q
15242	  }
15243	  /^X\(\/\/\)[^/].*/{
15244	    s//\1/
15245	    q
15246	  }
15247	  /^X\(\/\/\)$/{
15248	    s//\1/
15249	    q
15250	  }
15251	  /^X\(\/\).*/{
15252	    s//\1/
15253	    q
15254	  }
15255	  s/.*/./; q'`
15256  as_dir="$ac_dir"; as_fn_mkdir_p
15257  ac_builddir=.
15258
15259case "$ac_dir" in
15260.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15261*)
15262  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15263  # A ".." for each directory in $ac_dir_suffix.
15264  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15265  case $ac_top_builddir_sub in
15266  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15267  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15268  esac ;;
15269esac
15270ac_abs_top_builddir=$ac_pwd
15271ac_abs_builddir=$ac_pwd$ac_dir_suffix
15272# for backward compatibility:
15273ac_top_builddir=$ac_top_build_prefix
15274
15275case $srcdir in
15276  .)  # We are building in place.
15277    ac_srcdir=.
15278    ac_top_srcdir=$ac_top_builddir_sub
15279    ac_abs_top_srcdir=$ac_pwd ;;
15280  [\\/]* | ?:[\\/]* )  # Absolute name.
15281    ac_srcdir=$srcdir$ac_dir_suffix;
15282    ac_top_srcdir=$srcdir
15283    ac_abs_top_srcdir=$srcdir ;;
15284  *) # Relative name.
15285    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15286    ac_top_srcdir=$ac_top_build_prefix$srcdir
15287    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15288esac
15289ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15290
15291
15292  case $ac_mode in
15293  :F)
15294  #
15295  # CONFIG_FILE
15296  #
15297
15298_ACEOF
15299
15300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15301# If the template does not know about datarootdir, expand it.
15302# FIXME: This hack should be removed a few years after 2.60.
15303ac_datarootdir_hack=; ac_datarootdir_seen=
15304ac_sed_dataroot='
15305/datarootdir/ {
15306  p
15307  q
15308}
15309/@datadir@/p
15310/@docdir@/p
15311/@infodir@/p
15312/@localedir@/p
15313/@mandir@/p'
15314case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15315*datarootdir*) ac_datarootdir_seen=yes;;
15316*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15317  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15318$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15319_ACEOF
15320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15321  ac_datarootdir_hack='
15322  s&@datadir@&$datadir&g
15323  s&@docdir@&$docdir&g
15324  s&@infodir@&$infodir&g
15325  s&@localedir@&$localedir&g
15326  s&@mandir@&$mandir&g
15327  s&\\\${datarootdir}&$datarootdir&g' ;;
15328esac
15329_ACEOF
15330
15331# Neutralize VPATH when `$srcdir' = `.'.
15332# Shell code in configure.ac might set extrasub.
15333# FIXME: do we really want to maintain this feature?
15334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15335ac_sed_extra="$ac_vpsub
15336$extrasub
15337_ACEOF
15338cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15339:t
15340/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15341s|@configure_input@|$ac_sed_conf_input|;t t
15342s&@top_builddir@&$ac_top_builddir_sub&;t t
15343s&@top_build_prefix@&$ac_top_build_prefix&;t t
15344s&@srcdir@&$ac_srcdir&;t t
15345s&@abs_srcdir@&$ac_abs_srcdir&;t t
15346s&@top_srcdir@&$ac_top_srcdir&;t t
15347s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15348s&@builddir@&$ac_builddir&;t t
15349s&@abs_builddir@&$ac_abs_builddir&;t t
15350s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15351$ac_datarootdir_hack
15352"
15353eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15354  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15355
15356test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15357  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15358  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15359      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15360  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15361which seems to be undefined.  Please make sure it is defined" >&5
15362$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15363which seems to be undefined.  Please make sure it is defined" >&2;}
15364
15365  rm -f "$ac_tmp/stdin"
15366  case $ac_file in
15367  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15368  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15369  esac \
15370  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15371 ;;
15372  :H)
15373  #
15374  # CONFIG_HEADER
15375  #
15376  if test x"$ac_file" != x-; then
15377    {
15378      $as_echo "/* $configure_input  */" \
15379      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15380    } >"$ac_tmp/config.h" \
15381      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15382    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15383      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15384$as_echo "$as_me: $ac_file is unchanged" >&6;}
15385    else
15386      rm -f "$ac_file"
15387      mv "$ac_tmp/config.h" "$ac_file" \
15388	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15389    fi
15390  else
15391    $as_echo "/* $configure_input  */" \
15392      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15393      || as_fn_error $? "could not create -" "$LINENO" 5
15394  fi
15395 ;;
15396
15397
15398  esac
15399
15400done # for ac_tag
15401
15402
15403as_fn_exit 0
15404_ACEOF
15405ac_clean_files=$ac_clean_files_save
15406
15407test $ac_write_fail = 0 ||
15408  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15409
15410
15411# configure is writing to config.log, and then calls config.status.
15412# config.status does its own redirection, appending to config.log.
15413# Unfortunately, on DOS this fails, as config.log is still kept open
15414# by configure, so config.status won't be able to write to it; its
15415# output is simply discarded.  So we exec the FD to /dev/null,
15416# effectively closing config.log, so it can be properly (re)opened and
15417# appended to by config.status.  When coming back to configure, we
15418# need to make the FD available again.
15419if test "$no_create" != yes; then
15420  ac_cs_success=:
15421  ac_config_status_args=
15422  test "$silent" = yes &&
15423    ac_config_status_args="$ac_config_status_args --quiet"
15424  exec 5>/dev/null
15425  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15426  exec 5>>auto/config.log
15427  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15428  # would make configure fail if this is the last instruction.
15429  $ac_cs_success || as_fn_exit 1
15430fi
15431if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15432  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15433$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15434fi
15435
15436
15437