xref: /vim-8.2.3635/src/auto/configure (revision ca63501f)
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
639GNOME_INCLUDEDIR
640GNOME_LIBDIR
641GNOME_LIBS
642GTK_LIBNAME
643GTK_LIBS
644GTK_CFLAGS
645PKG_CONFIG
646X_LIB
647X_EXTRA_LIBS
648X_LIBS
649X_PRE_LIBS
650X_CFLAGS
651XMKMF
652xmkmfpath
653SNIFF_OBJ
654SNIFF_SRC
655NETBEANS_OBJ
656NETBEANS_SRC
657WORKSHOP_OBJ
658WORKSHOP_SRC
659RUBY_LIBS
660RUBY_CFLAGS
661RUBY_PRO
662RUBY_OBJ
663RUBY_SRC
664vi_cv_path_ruby
665TCL_LIBS
666TCL_CFLAGS
667TCL_PRO
668TCL_OBJ
669TCL_SRC
670vi_cv_path_tcl
671PYTHON3_OBJ
672PYTHON3_SRC
673PYTHON3_CFLAGS
674PYTHON3_LIBS
675PYTHON3_CONFDIR
676vi_cv_path_python3
677PYTHON_OBJ
678PYTHON_SRC
679PYTHON_CFLAGS
680PYTHON_GETPATH_CFLAGS
681PYTHON_LIBS
682PYTHON_CONFDIR
683vi_cv_path_python
684PERL_LIBS
685PERL_CFLAGS
686PERL_PRO
687PERL_OBJ
688PERL_SRC
689shrpenv
690vi_cv_perl_xsubpp
691vi_cv_perllib
692vi_cv_path_perl
693MZSCHEME_MZC
694MZSCHEME_EXTRA
695MZSCHEME_CFLAGS
696MZSCHEME_LIBS
697MZSCHEME_PRO
698MZSCHEME_OBJ
699MZSCHEME_SRC
700vi_cv_path_mzscheme
701LUA_CFLAGS
702LUA_LIBS
703LUA_PRO
704LUA_OBJ
705LUA_SRC
706vi_cv_path_plain_lua
707vi_cv_path_luajit
708vi_cv_path_lua
709compiledby
710dogvimdiff
711dovimdiff
712QUOTESED
713line_break
714VIEWNAME
715EXNAME
716VIMNAME
717OS_EXTRA_OBJ
718OS_EXTRA_SRC
719XCODE_SELECT
720CPP_MM
721STRIP
722AWK
723FGREP
724EGREP
725GREP
726CPP
727OBJEXT
728EXEEXT
729ac_ct_CC
730CPPFLAGS
731LDFLAGS
732CFLAGS
733CC
734SET_MAKE
735target_alias
736host_alias
737build_alias
738LIBS
739ECHO_T
740ECHO_N
741ECHO_C
742DEFS
743mandir
744localedir
745libdir
746psdir
747pdfdir
748dvidir
749htmldir
750infodir
751docdir
752oldincludedir
753includedir
754localstatedir
755sharedstatedir
756sysconfdir
757datadir
758datarootdir
759libexecdir
760sbindir
761bindir
762program_transform_name
763prefix
764exec_prefix
765PACKAGE_URL
766PACKAGE_BUGREPORT
767PACKAGE_STRING
768PACKAGE_VERSION
769PACKAGE_TARNAME
770PACKAGE_NAME
771PATH_SEPARATOR
772SHELL'
773ac_subst_files=''
774ac_user_opts='
775enable_option_checking
776enable_fail_if_missing
777enable_darwin
778with_mac_arch
779with_developer_dir
780with_local_dir
781with_vim_name
782with_ex_name
783with_view_name
784with_global_runtime
785with_modified_by
786enable_smack
787enable_selinux
788with_features
789with_compiledby
790enable_xsmp
791enable_xsmp_interact
792enable_luainterp
793with_lua_prefix
794with_luajit
795enable_mzschemeinterp
796with_plthome
797enable_perlinterp
798enable_pythoninterp
799with_python_config_dir
800enable_python3interp
801with_python3_config_dir
802enable_tclinterp
803with_tclsh
804enable_rubyinterp
805with_ruby_command
806enable_cscope
807enable_workshop
808enable_netbeans
809enable_sniff
810enable_multibyte
811enable_hangulinput
812enable_xim
813enable_fontset
814with_x
815enable_gui
816enable_gtk2_check
817enable_gnome_check
818enable_motif_check
819enable_athena_check
820enable_nextaw_check
821enable_carbon_check
822enable_gtktest
823with_gnome_includes
824with_gnome_libs
825with_gnome
826with_motif_lib
827with_tlib
828enable_largefile
829enable_acl
830enable_gpm
831enable_sysmouse
832enable_nls
833'
834      ac_precious_vars='build_alias
835host_alias
836target_alias
837CC
838CFLAGS
839LDFLAGS
840LIBS
841CPPFLAGS
842CPP
843XMKMF'
844
845
846# Initialize some variables set by options.
847ac_init_help=
848ac_init_version=false
849ac_unrecognized_opts=
850ac_unrecognized_sep=
851# The variables have the same names as the options, with
852# dashes changed to underlines.
853cache_file=/dev/null
854exec_prefix=NONE
855no_create=
856no_recursion=
857prefix=NONE
858program_prefix=NONE
859program_suffix=NONE
860program_transform_name=s,x,x,
861silent=
862site=
863srcdir=
864verbose=
865x_includes=NONE
866x_libraries=NONE
867
868# Installation directory options.
869# These are left unexpanded so users can "make install exec_prefix=/foo"
870# and all the variables that are supposed to be based on exec_prefix
871# by default will actually change.
872# Use braces instead of parens because sh, perl, etc. also accept them.
873# (The list follows the same order as the GNU Coding Standards.)
874bindir='${exec_prefix}/bin'
875sbindir='${exec_prefix}/sbin'
876libexecdir='${exec_prefix}/libexec'
877datarootdir='${prefix}/share'
878datadir='${datarootdir}'
879sysconfdir='${prefix}/etc'
880sharedstatedir='${prefix}/com'
881localstatedir='${prefix}/var'
882includedir='${prefix}/include'
883oldincludedir='/usr/include'
884docdir='${datarootdir}/doc/${PACKAGE}'
885infodir='${datarootdir}/info'
886htmldir='${docdir}'
887dvidir='${docdir}'
888pdfdir='${docdir}'
889psdir='${docdir}'
890libdir='${exec_prefix}/lib'
891localedir='${datarootdir}/locale'
892mandir='${datarootdir}/man'
893
894ac_prev=
895ac_dashdash=
896for ac_option
897do
898  # If the previous option needs an argument, assign it.
899  if test -n "$ac_prev"; then
900    eval $ac_prev=\$ac_option
901    ac_prev=
902    continue
903  fi
904
905  case $ac_option in
906  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907  *=)   ac_optarg= ;;
908  *)    ac_optarg=yes ;;
909  esac
910
911  # Accept the important Cygnus configure options, so we can diagnose typos.
912
913  case $ac_dashdash$ac_option in
914  --)
915    ac_dashdash=yes ;;
916
917  -bindir | --bindir | --bindi | --bind | --bin | --bi)
918    ac_prev=bindir ;;
919  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920    bindir=$ac_optarg ;;
921
922  -build | --build | --buil | --bui | --bu)
923    ac_prev=build_alias ;;
924  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925    build_alias=$ac_optarg ;;
926
927  -cache-file | --cache-file | --cache-fil | --cache-fi \
928  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929    ac_prev=cache_file ;;
930  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932    cache_file=$ac_optarg ;;
933
934  --config-cache | -C)
935    cache_file=config.cache ;;
936
937  -datadir | --datadir | --datadi | --datad)
938    ac_prev=datadir ;;
939  -datadir=* | --datadir=* | --datadi=* | --datad=*)
940    datadir=$ac_optarg ;;
941
942  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943  | --dataroo | --dataro | --datar)
944    ac_prev=datarootdir ;;
945  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947    datarootdir=$ac_optarg ;;
948
949  -disable-* | --disable-*)
950    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951    # Reject names that are not valid shell variable names.
952    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953      as_fn_error $? "invalid feature name: $ac_useropt"
954    ac_useropt_orig=$ac_useropt
955    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956    case $ac_user_opts in
957      *"
958"enable_$ac_useropt"
959"*) ;;
960      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961	 ac_unrecognized_sep=', ';;
962    esac
963    eval enable_$ac_useropt=no ;;
964
965  -docdir | --docdir | --docdi | --doc | --do)
966    ac_prev=docdir ;;
967  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968    docdir=$ac_optarg ;;
969
970  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971    ac_prev=dvidir ;;
972  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973    dvidir=$ac_optarg ;;
974
975  -enable-* | --enable-*)
976    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977    # Reject names that are not valid shell variable names.
978    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979      as_fn_error $? "invalid feature name: $ac_useropt"
980    ac_useropt_orig=$ac_useropt
981    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982    case $ac_user_opts in
983      *"
984"enable_$ac_useropt"
985"*) ;;
986      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987	 ac_unrecognized_sep=', ';;
988    esac
989    eval enable_$ac_useropt=\$ac_optarg ;;
990
991  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993  | --exec | --exe | --ex)
994    ac_prev=exec_prefix ;;
995  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997  | --exec=* | --exe=* | --ex=*)
998    exec_prefix=$ac_optarg ;;
999
1000  -gas | --gas | --ga | --g)
1001    # Obsolete; use --with-gas.
1002    with_gas=yes ;;
1003
1004  -help | --help | --hel | --he | -h)
1005    ac_init_help=long ;;
1006  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007    ac_init_help=recursive ;;
1008  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009    ac_init_help=short ;;
1010
1011  -host | --host | --hos | --ho)
1012    ac_prev=host_alias ;;
1013  -host=* | --host=* | --hos=* | --ho=*)
1014    host_alias=$ac_optarg ;;
1015
1016  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017    ac_prev=htmldir ;;
1018  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019  | --ht=*)
1020    htmldir=$ac_optarg ;;
1021
1022  -includedir | --includedir | --includedi | --included | --include \
1023  | --includ | --inclu | --incl | --inc)
1024    ac_prev=includedir ;;
1025  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026  | --includ=* | --inclu=* | --incl=* | --inc=*)
1027    includedir=$ac_optarg ;;
1028
1029  -infodir | --infodir | --infodi | --infod | --info | --inf)
1030    ac_prev=infodir ;;
1031  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032    infodir=$ac_optarg ;;
1033
1034  -libdir | --libdir | --libdi | --libd)
1035    ac_prev=libdir ;;
1036  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037    libdir=$ac_optarg ;;
1038
1039  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040  | --libexe | --libex | --libe)
1041    ac_prev=libexecdir ;;
1042  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043  | --libexe=* | --libex=* | --libe=*)
1044    libexecdir=$ac_optarg ;;
1045
1046  -localedir | --localedir | --localedi | --localed | --locale)
1047    ac_prev=localedir ;;
1048  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049    localedir=$ac_optarg ;;
1050
1051  -localstatedir | --localstatedir | --localstatedi | --localstated \
1052  | --localstate | --localstat | --localsta | --localst | --locals)
1053    ac_prev=localstatedir ;;
1054  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056    localstatedir=$ac_optarg ;;
1057
1058  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059    ac_prev=mandir ;;
1060  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061    mandir=$ac_optarg ;;
1062
1063  -nfp | --nfp | --nf)
1064    # Obsolete; use --without-fp.
1065    with_fp=no ;;
1066
1067  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068  | --no-cr | --no-c | -n)
1069    no_create=yes ;;
1070
1071  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073    no_recursion=yes ;;
1074
1075  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077  | --oldin | --oldi | --old | --ol | --o)
1078    ac_prev=oldincludedir ;;
1079  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082    oldincludedir=$ac_optarg ;;
1083
1084  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085    ac_prev=prefix ;;
1086  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087    prefix=$ac_optarg ;;
1088
1089  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090  | --program-pre | --program-pr | --program-p)
1091    ac_prev=program_prefix ;;
1092  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094    program_prefix=$ac_optarg ;;
1095
1096  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097  | --program-suf | --program-su | --program-s)
1098    ac_prev=program_suffix ;;
1099  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101    program_suffix=$ac_optarg ;;
1102
1103  -program-transform-name | --program-transform-name \
1104  | --program-transform-nam | --program-transform-na \
1105  | --program-transform-n | --program-transform- \
1106  | --program-transform | --program-transfor \
1107  | --program-transfo | --program-transf \
1108  | --program-trans | --program-tran \
1109  | --progr-tra | --program-tr | --program-t)
1110    ac_prev=program_transform_name ;;
1111  -program-transform-name=* | --program-transform-name=* \
1112  | --program-transform-nam=* | --program-transform-na=* \
1113  | --program-transform-n=* | --program-transform-=* \
1114  | --program-transform=* | --program-transfor=* \
1115  | --program-transfo=* | --program-transf=* \
1116  | --program-trans=* | --program-tran=* \
1117  | --progr-tra=* | --program-tr=* | --program-t=*)
1118    program_transform_name=$ac_optarg ;;
1119
1120  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121    ac_prev=pdfdir ;;
1122  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123    pdfdir=$ac_optarg ;;
1124
1125  -psdir | --psdir | --psdi | --psd | --ps)
1126    ac_prev=psdir ;;
1127  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128    psdir=$ac_optarg ;;
1129
1130  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131  | -silent | --silent | --silen | --sile | --sil)
1132    silent=yes ;;
1133
1134  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135    ac_prev=sbindir ;;
1136  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137  | --sbi=* | --sb=*)
1138    sbindir=$ac_optarg ;;
1139
1140  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142  | --sharedst | --shareds | --shared | --share | --shar \
1143  | --sha | --sh)
1144    ac_prev=sharedstatedir ;;
1145  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148  | --sha=* | --sh=*)
1149    sharedstatedir=$ac_optarg ;;
1150
1151  -site | --site | --sit)
1152    ac_prev=site ;;
1153  -site=* | --site=* | --sit=*)
1154    site=$ac_optarg ;;
1155
1156  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157    ac_prev=srcdir ;;
1158  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159    srcdir=$ac_optarg ;;
1160
1161  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162  | --syscon | --sysco | --sysc | --sys | --sy)
1163    ac_prev=sysconfdir ;;
1164  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166    sysconfdir=$ac_optarg ;;
1167
1168  -target | --target | --targe | --targ | --tar | --ta | --t)
1169    ac_prev=target_alias ;;
1170  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171    target_alias=$ac_optarg ;;
1172
1173  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174    verbose=yes ;;
1175
1176  -version | --version | --versio | --versi | --vers | -V)
1177    ac_init_version=: ;;
1178
1179  -with-* | --with-*)
1180    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181    # Reject names that are not valid shell variable names.
1182    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183      as_fn_error $? "invalid package name: $ac_useropt"
1184    ac_useropt_orig=$ac_useropt
1185    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186    case $ac_user_opts in
1187      *"
1188"with_$ac_useropt"
1189"*) ;;
1190      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191	 ac_unrecognized_sep=', ';;
1192    esac
1193    eval with_$ac_useropt=\$ac_optarg ;;
1194
1195  -without-* | --without-*)
1196    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197    # Reject names that are not valid shell variable names.
1198    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199      as_fn_error $? "invalid package name: $ac_useropt"
1200    ac_useropt_orig=$ac_useropt
1201    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202    case $ac_user_opts in
1203      *"
1204"with_$ac_useropt"
1205"*) ;;
1206      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207	 ac_unrecognized_sep=', ';;
1208    esac
1209    eval with_$ac_useropt=no ;;
1210
1211  --x)
1212    # Obsolete; use --with-x.
1213    with_x=yes ;;
1214
1215  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216  | --x-incl | --x-inc | --x-in | --x-i)
1217    ac_prev=x_includes ;;
1218  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220    x_includes=$ac_optarg ;;
1221
1222  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224    ac_prev=x_libraries ;;
1225  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227    x_libraries=$ac_optarg ;;
1228
1229  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1230Try \`$0 --help' for more information"
1231    ;;
1232
1233  *=*)
1234    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235    # Reject names that are not valid shell variable names.
1236    case $ac_envvar in #(
1237      '' | [0-9]* | *[!_$as_cr_alnum]* )
1238      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1239    esac
1240    eval $ac_envvar=\$ac_optarg
1241    export $ac_envvar ;;
1242
1243  *)
1244    # FIXME: should be removed in autoconf 3.0.
1245    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1249    ;;
1250
1251  esac
1252done
1253
1254if test -n "$ac_prev"; then
1255  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256  as_fn_error $? "missing argument to $ac_option"
1257fi
1258
1259if test -n "$ac_unrecognized_opts"; then
1260  case $enable_option_checking in
1261    no) ;;
1262    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1263    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264  esac
1265fi
1266
1267# Check all directory arguments for consistency.
1268for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269		datadir sysconfdir sharedstatedir localstatedir includedir \
1270		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271		libdir localedir mandir
1272do
1273  eval ac_val=\$$ac_var
1274  # Remove trailing slashes.
1275  case $ac_val in
1276    */ )
1277      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278      eval $ac_var=\$ac_val;;
1279  esac
1280  # Be sure to have absolute directory names.
1281  case $ac_val in
1282    [\\/$]* | ?:[\\/]* )  continue;;
1283    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284  esac
1285  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1286done
1287
1288# There might be people who depend on the old broken behavior: `$host'
1289# used to hold the argument of --host etc.
1290# FIXME: To remove some day.
1291build=$build_alias
1292host=$host_alias
1293target=$target_alias
1294
1295# FIXME: To remove some day.
1296if test "x$host_alias" != x; then
1297  if test "x$build_alias" = x; then
1298    cross_compiling=maybe
1299  elif test "x$build_alias" != "x$host_alias"; then
1300    cross_compiling=yes
1301  fi
1302fi
1303
1304ac_tool_prefix=
1305test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306
1307test "$silent" = yes && exec 6>/dev/null
1308
1309
1310ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311ac_ls_di=`ls -di .` &&
1312ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313  as_fn_error $? "working directory cannot be determined"
1314test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315  as_fn_error $? "pwd does not report name of working directory"
1316
1317
1318# Find the source files, if location was not specified.
1319if test -z "$srcdir"; then
1320  ac_srcdir_defaulted=yes
1321  # Try the directory containing this script, then the parent directory.
1322  ac_confdir=`$as_dirname -- "$as_myself" ||
1323$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324	 X"$as_myself" : 'X\(//\)[^/]' \| \
1325	 X"$as_myself" : 'X\(//\)$' \| \
1326	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327$as_echo X"$as_myself" |
1328    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329	    s//\1/
1330	    q
1331	  }
1332	  /^X\(\/\/\)[^/].*/{
1333	    s//\1/
1334	    q
1335	  }
1336	  /^X\(\/\/\)$/{
1337	    s//\1/
1338	    q
1339	  }
1340	  /^X\(\/\).*/{
1341	    s//\1/
1342	    q
1343	  }
1344	  s/.*/./; q'`
1345  srcdir=$ac_confdir
1346  if test ! -r "$srcdir/$ac_unique_file"; then
1347    srcdir=..
1348  fi
1349else
1350  ac_srcdir_defaulted=no
1351fi
1352if test ! -r "$srcdir/$ac_unique_file"; then
1353  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1355fi
1356ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1357ac_abs_confdir=`(
1358	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1359	pwd)`
1360# When building in place, set srcdir=.
1361if test "$ac_abs_confdir" = "$ac_pwd"; then
1362  srcdir=.
1363fi
1364# Remove unnecessary trailing slashes from srcdir.
1365# Double slashes in file names in object file debugging info
1366# mess up M-x gdb in Emacs.
1367case $srcdir in
1368*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369esac
1370for ac_var in $ac_precious_vars; do
1371  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372  eval ac_env_${ac_var}_value=\$${ac_var}
1373  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375done
1376
1377#
1378# Report the --help message.
1379#
1380if test "$ac_init_help" = "long"; then
1381  # Omit some internal or obsolete options to make the list less imposing.
1382  # This message is too long to be a string in the A/UX 3.1 sh.
1383  cat <<_ACEOF
1384\`configure' configures this package to adapt to many kinds of systems.
1385
1386Usage: $0 [OPTION]... [VAR=VALUE]...
1387
1388To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389VAR=VALUE.  See below for descriptions of some of the useful variables.
1390
1391Defaults for the options are specified in brackets.
1392
1393Configuration:
1394  -h, --help              display this help and exit
1395      --help=short        display options specific to this package
1396      --help=recursive    display the short help of all the included packages
1397  -V, --version           display version information and exit
1398  -q, --quiet, --silent   do not print \`checking ...' messages
1399      --cache-file=FILE   cache test results in FILE [disabled]
1400  -C, --config-cache      alias for \`--cache-file=config.cache'
1401  -n, --no-create         do not create output files
1402      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1403
1404Installation directories:
1405  --prefix=PREFIX         install architecture-independent files in PREFIX
1406                          [$ac_default_prefix]
1407  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1408                          [PREFIX]
1409
1410By default, \`make install' will install all the files in
1411\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1412an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413for instance \`--prefix=\$HOME'.
1414
1415For better control, use the options below.
1416
1417Fine tuning of the installation directories:
1418  --bindir=DIR            user executables [EPREFIX/bin]
1419  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1420  --libexecdir=DIR        program executables [EPREFIX/libexec]
1421  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1422  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1423  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1424  --libdir=DIR            object code libraries [EPREFIX/lib]
1425  --includedir=DIR        C header files [PREFIX/include]
1426  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1427  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1428  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1429  --infodir=DIR           info documentation [DATAROOTDIR/info]
1430  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1431  --mandir=DIR            man documentation [DATAROOTDIR/man]
1432  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1433  --htmldir=DIR           html documentation [DOCDIR]
1434  --dvidir=DIR            dvi documentation [DOCDIR]
1435  --pdfdir=DIR            pdf documentation [DOCDIR]
1436  --psdir=DIR             ps documentation [DOCDIR]
1437_ACEOF
1438
1439  cat <<\_ACEOF
1440
1441X features:
1442  --x-includes=DIR    X include files are in DIR
1443  --x-libraries=DIR   X library files are in DIR
1444_ACEOF
1445fi
1446
1447if test -n "$ac_init_help"; then
1448
1449  cat <<\_ACEOF
1450
1451Optional Features:
1452  --disable-option-checking  ignore unrecognized --enable/--with options
1453  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1454  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1455  --enable-fail-if-missing    Fail if dependencies on additional features
1456     specified on the command line are missing.
1457  --disable-darwin        Disable Darwin (Mac OS X) support.
1458  --disable-smack	  Do not check for Smack support.
1459  --disable-selinux	  Do not check for SELinux support.
1460  --disable-xsmp          Disable XSMP session management
1461  --disable-xsmp-interact Disable XSMP interaction
1462  --enable-luainterp=OPTS     Include Lua interpreter.  default=no OPTS=no/yes/dynamic
1463  --enable-mzschemeinterp   Include MzScheme interpreter.
1464  --enable-perlinterp=OPTS     Include Perl interpreter.  default=no OPTS=no/yes/dynamic
1465  --enable-pythoninterp=OPTS   Include Python interpreter. default=no OPTS=no/yes/dynamic
1466  --enable-python3interp=OPTS   Include Python3 interpreter. default=no OPTS=no/yes/dynamic
1467  --enable-tclinterp      Include Tcl interpreter.
1468  --enable-rubyinterp=OPTS     Include Ruby interpreter.  default=no OPTS=no/yes/dynamic
1469  --enable-cscope         Include cscope interface.
1470  --enable-workshop       Include Sun Visual Workshop support.
1471  --disable-netbeans      Disable NetBeans integration support.
1472  --enable-sniff          Include Sniff interface.
1473  --enable-multibyte      Include multibyte editing support.
1474  --enable-hangulinput    Include Hangul input support.
1475  --enable-xim            Include XIM input support.
1476  --enable-fontset        Include X fontset output support.
1477  --enable-gui=OPTS     X11 GUI default=auto OPTS=auto/no/gtk2/gnome2/motif/athena/neXtaw/photon/carbon
1478  --enable-gtk2-check     If auto-select GUI, check for GTK+ 2 default=yes
1479  --enable-gnome-check    If GTK GUI, check for GNOME default=no
1480  --enable-motif-check    If auto-select GUI, check for Motif default=yes
1481  --enable-athena-check   If auto-select GUI, check for Athena default=yes
1482  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
1483  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
1484  --disable-gtktest       Do not try to compile and run a test GTK program
1485  --disable-largefile     omit support for large files
1486  --disable-acl           Don't check for ACL support.
1487  --disable-gpm           Don't use gpm (Linux mouse daemon).
1488  --disable-sysmouse    Don't use sysmouse (mouse in *BSD console).
1489  --disable-nls           Don't support NLS (gettext()).
1490
1491Optional Packages:
1492  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1493  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1494  --with-mac-arch=ARCH    current, intel, ppc or both
1495  --with-developer-dir=PATH    use PATH as location for Xcode developer tools
1496  --with-local-dir=PATH   search PATH instead of /usr/local for local libraries.
1497  --without-local-dir     do not search /usr/local for local libraries.
1498  --with-vim-name=NAME    what to call the Vim executable
1499  --with-ex-name=NAME     what to call the Ex executable
1500  --with-view-name=NAME   what to call the View executable
1501  --with-global-runtime=DIR    global runtime directory in 'runtimepath'
1502  --with-modified-by=NAME       name of who modified a release version
1503  --with-features=TYPE    tiny, small, normal, big or huge (default: normal)
1504  --with-compiledby=NAME  name to show in :version message
1505  --with-lua-prefix=PFX   Prefix where Lua is installed.
1506  --with-luajit           Link with LuaJIT instead of Lua.
1507  --with-plthome=PLTHOME   Use PLTHOME.
1508  --with-python-config-dir=PATH  Python's config directory
1509  --with-python3-config-dir=PATH  Python's config directory
1510  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
1511  --with-ruby-command=RUBY  name of the Ruby command (default: ruby)
1512  --with-x                use the X Window System
1513  --with-gnome-includes=DIR Specify location of GNOME headers
1514  --with-gnome-libs=DIR   Specify location of GNOME libs
1515  --with-gnome            Specify prefix for GNOME files
1516  --with-motif-lib=STRING   Library for Motif
1517  --with-tlib=library     terminal library to be used
1518
1519Some influential environment variables:
1520  CC          C compiler command
1521  CFLAGS      C compiler flags
1522  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1523              nonstandard directory <lib dir>
1524  LIBS        libraries to pass to the linker, e.g. -l<library>
1525  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526              you have headers in a nonstandard directory <include dir>
1527  CPP         C preprocessor
1528  XMKMF       Path to xmkmf, Makefile generator for X Window System
1529
1530Use these variables to override the choices made by `configure' or to help
1531it to find libraries and programs with nonstandard names/locations.
1532
1533Report bugs to the package provider.
1534_ACEOF
1535ac_status=$?
1536fi
1537
1538if test "$ac_init_help" = "recursive"; then
1539  # If there are subdirs, report their specific --help.
1540  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541    test -d "$ac_dir" ||
1542      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543      continue
1544    ac_builddir=.
1545
1546case "$ac_dir" in
1547.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548*)
1549  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1550  # A ".." for each directory in $ac_dir_suffix.
1551  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552  case $ac_top_builddir_sub in
1553  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555  esac ;;
1556esac
1557ac_abs_top_builddir=$ac_pwd
1558ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559# for backward compatibility:
1560ac_top_builddir=$ac_top_build_prefix
1561
1562case $srcdir in
1563  .)  # We are building in place.
1564    ac_srcdir=.
1565    ac_top_srcdir=$ac_top_builddir_sub
1566    ac_abs_top_srcdir=$ac_pwd ;;
1567  [\\/]* | ?:[\\/]* )  # Absolute name.
1568    ac_srcdir=$srcdir$ac_dir_suffix;
1569    ac_top_srcdir=$srcdir
1570    ac_abs_top_srcdir=$srcdir ;;
1571  *) # Relative name.
1572    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573    ac_top_srcdir=$ac_top_build_prefix$srcdir
1574    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575esac
1576ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577
1578    cd "$ac_dir" || { ac_status=$?; continue; }
1579    # Check for guested configure.
1580    if test -f "$ac_srcdir/configure.gnu"; then
1581      echo &&
1582      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583    elif test -f "$ac_srcdir/configure"; then
1584      echo &&
1585      $SHELL "$ac_srcdir/configure" --help=recursive
1586    else
1587      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588    fi || ac_status=$?
1589    cd "$ac_pwd" || { ac_status=$?; break; }
1590  done
1591fi
1592
1593test -n "$ac_init_help" && exit $ac_status
1594if $ac_init_version; then
1595  cat <<\_ACEOF
1596configure
1597generated by GNU Autoconf 2.69
1598
1599Copyright (C) 2012 Free Software Foundation, Inc.
1600This configure script is free software; the Free Software Foundation
1601gives unlimited permission to copy, distribute and modify it.
1602_ACEOF
1603  exit
1604fi
1605
1606## ------------------------ ##
1607## Autoconf initialization. ##
1608## ------------------------ ##
1609
1610# ac_fn_c_try_compile LINENO
1611# --------------------------
1612# Try to compile conftest.$ac_ext, and return whether this succeeded.
1613ac_fn_c_try_compile ()
1614{
1615  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616  rm -f conftest.$ac_objext
1617  if { { ac_try="$ac_compile"
1618case "(($ac_try" in
1619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620  *) ac_try_echo=$ac_try;;
1621esac
1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623$as_echo "$ac_try_echo"; } >&5
1624  (eval "$ac_compile") 2>conftest.err
1625  ac_status=$?
1626  if test -s conftest.err; then
1627    grep -v '^ *+' conftest.err >conftest.er1
1628    cat conftest.er1 >&5
1629    mv -f conftest.er1 conftest.err
1630  fi
1631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632  test $ac_status = 0; } && {
1633	 test -z "$ac_c_werror_flag" ||
1634	 test ! -s conftest.err
1635       } && test -s conftest.$ac_objext; then :
1636  ac_retval=0
1637else
1638  $as_echo "$as_me: failed program was:" >&5
1639sed 's/^/| /' conftest.$ac_ext >&5
1640
1641	ac_retval=1
1642fi
1643  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644  as_fn_set_status $ac_retval
1645
1646} # ac_fn_c_try_compile
1647
1648# ac_fn_c_try_cpp LINENO
1649# ----------------------
1650# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651ac_fn_c_try_cpp ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  if { { ac_try="$ac_cpp conftest.$ac_ext"
1655case "(($ac_try" in
1656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657  *) ac_try_echo=$ac_try;;
1658esac
1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660$as_echo "$ac_try_echo"; } >&5
1661  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662  ac_status=$?
1663  if test -s conftest.err; then
1664    grep -v '^ *+' conftest.err >conftest.er1
1665    cat conftest.er1 >&5
1666    mv -f conftest.er1 conftest.err
1667  fi
1668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669  test $ac_status = 0; } > conftest.i && {
1670	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671	 test ! -s conftest.err
1672       }; then :
1673  ac_retval=0
1674else
1675  $as_echo "$as_me: failed program was:" >&5
1676sed 's/^/| /' conftest.$ac_ext >&5
1677
1678    ac_retval=1
1679fi
1680  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681  as_fn_set_status $ac_retval
1682
1683} # ac_fn_c_try_cpp
1684
1685# ac_fn_c_try_link LINENO
1686# -----------------------
1687# Try to link conftest.$ac_ext, and return whether this succeeded.
1688ac_fn_c_try_link ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  rm -f conftest.$ac_objext conftest$ac_exeext
1692  if { { ac_try="$ac_link"
1693case "(($ac_try" in
1694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695  *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699  (eval "$ac_link") 2>conftest.err
1700  ac_status=$?
1701  if test -s conftest.err; then
1702    grep -v '^ *+' conftest.err >conftest.er1
1703    cat conftest.er1 >&5
1704    mv -f conftest.er1 conftest.err
1705  fi
1706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707  test $ac_status = 0; } && {
1708	 test -z "$ac_c_werror_flag" ||
1709	 test ! -s conftest.err
1710       } && test -s conftest$ac_exeext && {
1711	 test "$cross_compiling" = yes ||
1712	 test -x conftest$ac_exeext
1713       }; then :
1714  ac_retval=0
1715else
1716  $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719	ac_retval=1
1720fi
1721  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1722  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1723  # interfere with the next link command; also delete a directory that is
1724  # left behind by Apple's compiler.  We do this before executing the actions.
1725  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727  as_fn_set_status $ac_retval
1728
1729} # ac_fn_c_try_link
1730
1731# ac_fn_c_try_run LINENO
1732# ----------------------
1733# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734# that executables *can* be run.
1735ac_fn_c_try_run ()
1736{
1737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738  if { { ac_try="$ac_link"
1739case "(($ac_try" in
1740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741  *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745  (eval "$ac_link") 2>&5
1746  ac_status=$?
1747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1749  { { case "(($ac_try" in
1750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751  *) ac_try_echo=$ac_try;;
1752esac
1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754$as_echo "$ac_try_echo"; } >&5
1755  (eval "$ac_try") 2>&5
1756  ac_status=$?
1757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758  test $ac_status = 0; }; }; then :
1759  ac_retval=0
1760else
1761  $as_echo "$as_me: program exited with status $ac_status" >&5
1762       $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765       ac_retval=$ac_status
1766fi
1767  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769  as_fn_set_status $ac_retval
1770
1771} # ac_fn_c_try_run
1772
1773# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1774# -------------------------------------------------------
1775# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1776# the include files in INCLUDES and setting the cache variable VAR
1777# accordingly.
1778ac_fn_c_check_header_mongrel ()
1779{
1780  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781  if eval \${$3+:} false; then :
1782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783$as_echo_n "checking for $2... " >&6; }
1784if eval \${$3+:} false; then :
1785  $as_echo_n "(cached) " >&6
1786fi
1787eval ac_res=\$$3
1788	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789$as_echo "$ac_res" >&6; }
1790else
1791  # Is the header compilable?
1792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1793$as_echo_n "checking $2 usability... " >&6; }
1794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795/* end confdefs.h.  */
1796$4
1797#include <$2>
1798_ACEOF
1799if ac_fn_c_try_compile "$LINENO"; then :
1800  ac_header_compiler=yes
1801else
1802  ac_header_compiler=no
1803fi
1804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1806$as_echo "$ac_header_compiler" >&6; }
1807
1808# Is the header present?
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1810$as_echo_n "checking $2 presence... " >&6; }
1811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h.  */
1813#include <$2>
1814_ACEOF
1815if ac_fn_c_try_cpp "$LINENO"; then :
1816  ac_header_preproc=yes
1817else
1818  ac_header_preproc=no
1819fi
1820rm -f conftest.err conftest.i conftest.$ac_ext
1821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1822$as_echo "$ac_header_preproc" >&6; }
1823
1824# So?  What about this header?
1825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1826  yes:no: )
1827    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1828$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1829    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831    ;;
1832  no:yes:* )
1833    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1834$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1835    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1836$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1837    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1838$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1839    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1840$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1841    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843    ;;
1844esac
1845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846$as_echo_n "checking for $2... " >&6; }
1847if eval \${$3+:} false; then :
1848  $as_echo_n "(cached) " >&6
1849else
1850  eval "$3=\$ac_header_compiler"
1851fi
1852eval ac_res=\$$3
1853	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854$as_echo "$ac_res" >&6; }
1855fi
1856  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858} # ac_fn_c_check_header_mongrel
1859
1860# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1861# -------------------------------------------------------
1862# Tests whether HEADER exists and can be compiled using the include files in
1863# INCLUDES, setting the cache variable VAR accordingly.
1864ac_fn_c_check_header_compile ()
1865{
1866  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868$as_echo_n "checking for $2... " >&6; }
1869if eval \${$3+:} false; then :
1870  $as_echo_n "(cached) " >&6
1871else
1872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h.  */
1874$4
1875#include <$2>
1876_ACEOF
1877if ac_fn_c_try_compile "$LINENO"; then :
1878  eval "$3=yes"
1879else
1880  eval "$3=no"
1881fi
1882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883fi
1884eval ac_res=\$$3
1885	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886$as_echo "$ac_res" >&6; }
1887  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889} # ac_fn_c_check_header_compile
1890
1891# ac_fn_c_check_func LINENO FUNC VAR
1892# ----------------------------------
1893# Tests whether FUNC exists, setting the cache variable VAR accordingly
1894ac_fn_c_check_func ()
1895{
1896  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898$as_echo_n "checking for $2... " >&6; }
1899if eval \${$3+:} false; then :
1900  $as_echo_n "(cached) " >&6
1901else
1902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903/* end confdefs.h.  */
1904/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1905   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1906#define $2 innocuous_$2
1907
1908/* System header to define __stub macros and hopefully few prototypes,
1909    which can conflict with char $2 (); below.
1910    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1911    <limits.h> exists even on freestanding compilers.  */
1912
1913#ifdef __STDC__
1914# include <limits.h>
1915#else
1916# include <assert.h>
1917#endif
1918
1919#undef $2
1920
1921/* Override any GCC internal prototype to avoid an error.
1922   Use char because int might match the return type of a GCC
1923   builtin and then its argument prototype would still apply.  */
1924#ifdef __cplusplus
1925extern "C"
1926#endif
1927char $2 ();
1928/* The GNU C library defines this for functions which it implements
1929    to always fail with ENOSYS.  Some functions are actually named
1930    something starting with __ and the normal name is an alias.  */
1931#if defined __stub_$2 || defined __stub___$2
1932choke me
1933#endif
1934
1935int
1936main ()
1937{
1938return $2 ();
1939  ;
1940  return 0;
1941}
1942_ACEOF
1943if ac_fn_c_try_link "$LINENO"; then :
1944  eval "$3=yes"
1945else
1946  eval "$3=no"
1947fi
1948rm -f core conftest.err conftest.$ac_objext \
1949    conftest$ac_exeext conftest.$ac_ext
1950fi
1951eval ac_res=\$$3
1952	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953$as_echo "$ac_res" >&6; }
1954  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955
1956} # ac_fn_c_check_func
1957
1958# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1959# -------------------------------------------
1960# Tests whether TYPE exists after having included INCLUDES, setting cache
1961# variable VAR accordingly.
1962ac_fn_c_check_type ()
1963{
1964  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966$as_echo_n "checking for $2... " >&6; }
1967if eval \${$3+:} false; then :
1968  $as_echo_n "(cached) " >&6
1969else
1970  eval "$3=no"
1971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h.  */
1973$4
1974int
1975main ()
1976{
1977if (sizeof ($2))
1978	 return 0;
1979  ;
1980  return 0;
1981}
1982_ACEOF
1983if ac_fn_c_try_compile "$LINENO"; then :
1984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985/* end confdefs.h.  */
1986$4
1987int
1988main ()
1989{
1990if (sizeof (($2)))
1991	    return 0;
1992  ;
1993  return 0;
1994}
1995_ACEOF
1996if ac_fn_c_try_compile "$LINENO"; then :
1997
1998else
1999  eval "$3=yes"
2000fi
2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002fi
2003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004fi
2005eval ac_res=\$$3
2006	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007$as_echo "$ac_res" >&6; }
2008  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009
2010} # ac_fn_c_check_type
2011
2012# ac_fn_c_find_uintX_t LINENO BITS VAR
2013# ------------------------------------
2014# Finds an unsigned integer type with width BITS, setting cache variable VAR
2015# accordingly.
2016ac_fn_c_find_uintX_t ()
2017{
2018  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2020$as_echo_n "checking for uint$2_t... " >&6; }
2021if eval \${$3+:} false; then :
2022  $as_echo_n "(cached) " >&6
2023else
2024  eval "$3=no"
2025     # Order is important - never check a type that is potentially smaller
2026     # than half of the expected target width.
2027     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2028	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2029       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030/* end confdefs.h.  */
2031$ac_includes_default
2032int
2033main ()
2034{
2035static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2036test_array [0] = 0;
2037return test_array [0];
2038
2039  ;
2040  return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_compile "$LINENO"; then :
2044  case $ac_type in #(
2045  uint$2_t) :
2046    eval "$3=yes" ;; #(
2047  *) :
2048    eval "$3=\$ac_type" ;;
2049esac
2050fi
2051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052       if eval test \"x\$"$3"\" = x"no"; then :
2053
2054else
2055  break
2056fi
2057     done
2058fi
2059eval ac_res=\$$3
2060	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061$as_echo "$ac_res" >&6; }
2062  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063
2064} # ac_fn_c_find_uintX_t
2065
2066# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2067# --------------------------------------------
2068# Tries to find the compile-time value of EXPR in a program that includes
2069# INCLUDES, setting VAR accordingly. Returns whether the value could be
2070# computed
2071ac_fn_c_compute_int ()
2072{
2073  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074  if test "$cross_compiling" = yes; then
2075    # Depending upon the size, compute the lo and hi bounds.
2076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h.  */
2078$4
2079int
2080main ()
2081{
2082static int test_array [1 - 2 * !(($2) >= 0)];
2083test_array [0] = 0;
2084return test_array [0];
2085
2086  ;
2087  return 0;
2088}
2089_ACEOF
2090if ac_fn_c_try_compile "$LINENO"; then :
2091  ac_lo=0 ac_mid=0
2092  while :; do
2093    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094/* end confdefs.h.  */
2095$4
2096int
2097main ()
2098{
2099static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2100test_array [0] = 0;
2101return test_array [0];
2102
2103  ;
2104  return 0;
2105}
2106_ACEOF
2107if ac_fn_c_try_compile "$LINENO"; then :
2108  ac_hi=$ac_mid; break
2109else
2110  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2111			if test $ac_lo -le $ac_mid; then
2112			  ac_lo= ac_hi=
2113			  break
2114			fi
2115			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2116fi
2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118  done
2119else
2120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121/* end confdefs.h.  */
2122$4
2123int
2124main ()
2125{
2126static int test_array [1 - 2 * !(($2) < 0)];
2127test_array [0] = 0;
2128return test_array [0];
2129
2130  ;
2131  return 0;
2132}
2133_ACEOF
2134if ac_fn_c_try_compile "$LINENO"; then :
2135  ac_hi=-1 ac_mid=-1
2136  while :; do
2137    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138/* end confdefs.h.  */
2139$4
2140int
2141main ()
2142{
2143static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2144test_array [0] = 0;
2145return test_array [0];
2146
2147  ;
2148  return 0;
2149}
2150_ACEOF
2151if ac_fn_c_try_compile "$LINENO"; then :
2152  ac_lo=$ac_mid; break
2153else
2154  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2155			if test $ac_mid -le $ac_hi; then
2156			  ac_lo= ac_hi=
2157			  break
2158			fi
2159			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2160fi
2161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162  done
2163else
2164  ac_lo= ac_hi=
2165fi
2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167fi
2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169# Binary search between lo and hi bounds.
2170while test "x$ac_lo" != "x$ac_hi"; do
2171  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173/* end confdefs.h.  */
2174$4
2175int
2176main ()
2177{
2178static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2179test_array [0] = 0;
2180return test_array [0];
2181
2182  ;
2183  return 0;
2184}
2185_ACEOF
2186if ac_fn_c_try_compile "$LINENO"; then :
2187  ac_hi=$ac_mid
2188else
2189  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2190fi
2191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192done
2193case $ac_lo in #((
2194?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2195'') ac_retval=1 ;;
2196esac
2197  else
2198    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h.  */
2200$4
2201static long int longval () { return $2; }
2202static unsigned long int ulongval () { return $2; }
2203#include <stdio.h>
2204#include <stdlib.h>
2205int
2206main ()
2207{
2208
2209  FILE *f = fopen ("conftest.val", "w");
2210  if (! f)
2211    return 1;
2212  if (($2) < 0)
2213    {
2214      long int i = longval ();
2215      if (i != ($2))
2216	return 1;
2217      fprintf (f, "%ld", i);
2218    }
2219  else
2220    {
2221      unsigned long int i = ulongval ();
2222      if (i != ($2))
2223	return 1;
2224      fprintf (f, "%lu", i);
2225    }
2226  /* Do not output a trailing newline, as this causes \r\n confusion
2227     on some platforms.  */
2228  return ferror (f) || fclose (f) != 0;
2229
2230  ;
2231  return 0;
2232}
2233_ACEOF
2234if ac_fn_c_try_run "$LINENO"; then :
2235  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2236else
2237  ac_retval=1
2238fi
2239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2240  conftest.$ac_objext conftest.beam conftest.$ac_ext
2241rm -f conftest.val
2242
2243  fi
2244  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245  as_fn_set_status $ac_retval
2246
2247} # ac_fn_c_compute_int
2248cat >auto/config.log <<_ACEOF
2249This file contains any messages produced by compilers while
2250running configure, to aid debugging if configure makes a mistake.
2251
2252It was created by $as_me, which was
2253generated by GNU Autoconf 2.69.  Invocation command line was
2254
2255  $ $0 $@
2256
2257_ACEOF
2258exec 5>>auto/config.log
2259{
2260cat <<_ASUNAME
2261## --------- ##
2262## Platform. ##
2263## --------- ##
2264
2265hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2266uname -m = `(uname -m) 2>/dev/null || echo unknown`
2267uname -r = `(uname -r) 2>/dev/null || echo unknown`
2268uname -s = `(uname -s) 2>/dev/null || echo unknown`
2269uname -v = `(uname -v) 2>/dev/null || echo unknown`
2270
2271/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2272/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2273
2274/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2275/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2276/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2277/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2278/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2279/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2280/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2281
2282_ASUNAME
2283
2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285for as_dir in $PATH
2286do
2287  IFS=$as_save_IFS
2288  test -z "$as_dir" && as_dir=.
2289    $as_echo "PATH: $as_dir"
2290  done
2291IFS=$as_save_IFS
2292
2293} >&5
2294
2295cat >&5 <<_ACEOF
2296
2297
2298## ----------- ##
2299## Core tests. ##
2300## ----------- ##
2301
2302_ACEOF
2303
2304
2305# Keep a trace of the command line.
2306# Strip out --no-create and --no-recursion so they do not pile up.
2307# Strip out --silent because we don't want to record it for future runs.
2308# Also quote any args containing shell meta-characters.
2309# Make two passes to allow for proper duplicate-argument suppression.
2310ac_configure_args=
2311ac_configure_args0=
2312ac_configure_args1=
2313ac_must_keep_next=false
2314for ac_pass in 1 2
2315do
2316  for ac_arg
2317  do
2318    case $ac_arg in
2319    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2320    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2321    | -silent | --silent | --silen | --sile | --sil)
2322      continue ;;
2323    *\'*)
2324      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2325    esac
2326    case $ac_pass in
2327    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2328    2)
2329      as_fn_append ac_configure_args1 " '$ac_arg'"
2330      if test $ac_must_keep_next = true; then
2331	ac_must_keep_next=false # Got value, back to normal.
2332      else
2333	case $ac_arg in
2334	  *=* | --config-cache | -C | -disable-* | --disable-* \
2335	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2336	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2337	  | -with-* | --with-* | -without-* | --without-* | --x)
2338	    case "$ac_configure_args0 " in
2339	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2340	    esac
2341	    ;;
2342	  -* ) ac_must_keep_next=true ;;
2343	esac
2344      fi
2345      as_fn_append ac_configure_args " '$ac_arg'"
2346      ;;
2347    esac
2348  done
2349done
2350{ ac_configure_args0=; unset ac_configure_args0;}
2351{ ac_configure_args1=; unset ac_configure_args1;}
2352
2353# When interrupted or exit'd, cleanup temporary files, and complete
2354# config.log.  We remove comments because anyway the quotes in there
2355# would cause problems or look ugly.
2356# WARNING: Use '\'' to represent an apostrophe within the trap.
2357# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2358trap 'exit_status=$?
2359  # Save into config.log some information that might help in debugging.
2360  {
2361    echo
2362
2363    $as_echo "## ---------------- ##
2364## Cache variables. ##
2365## ---------------- ##"
2366    echo
2367    # The following way of writing the cache mishandles newlines in values,
2368(
2369  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2370    eval ac_val=\$$ac_var
2371    case $ac_val in #(
2372    *${as_nl}*)
2373      case $ac_var in #(
2374      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2375$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2376      esac
2377      case $ac_var in #(
2378      _ | IFS | as_nl) ;; #(
2379      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2380      *) { eval $ac_var=; unset $ac_var;} ;;
2381      esac ;;
2382    esac
2383  done
2384  (set) 2>&1 |
2385    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2386    *${as_nl}ac_space=\ *)
2387      sed -n \
2388	"s/'\''/'\''\\\\'\'''\''/g;
2389	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2390      ;; #(
2391    *)
2392      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2393      ;;
2394    esac |
2395    sort
2396)
2397    echo
2398
2399    $as_echo "## ----------------- ##
2400## Output variables. ##
2401## ----------------- ##"
2402    echo
2403    for ac_var in $ac_subst_vars
2404    do
2405      eval ac_val=\$$ac_var
2406      case $ac_val in
2407      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2408      esac
2409      $as_echo "$ac_var='\''$ac_val'\''"
2410    done | sort
2411    echo
2412
2413    if test -n "$ac_subst_files"; then
2414      $as_echo "## ------------------- ##
2415## File substitutions. ##
2416## ------------------- ##"
2417      echo
2418      for ac_var in $ac_subst_files
2419      do
2420	eval ac_val=\$$ac_var
2421	case $ac_val in
2422	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2423	esac
2424	$as_echo "$ac_var='\''$ac_val'\''"
2425      done | sort
2426      echo
2427    fi
2428
2429    if test -s confdefs.h; then
2430      $as_echo "## ----------- ##
2431## confdefs.h. ##
2432## ----------- ##"
2433      echo
2434      cat confdefs.h
2435      echo
2436    fi
2437    test "$ac_signal" != 0 &&
2438      $as_echo "$as_me: caught signal $ac_signal"
2439    $as_echo "$as_me: exit $exit_status"
2440  } >&5
2441  rm -f core *.core core.conftest.* &&
2442    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2443    exit $exit_status
2444' 0
2445for ac_signal in 1 2 13 15; do
2446  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2447done
2448ac_signal=0
2449
2450# confdefs.h avoids OS command line length limits that DEFS can exceed.
2451rm -f -r conftest* confdefs.h
2452
2453$as_echo "/* confdefs.h */" > confdefs.h
2454
2455# Predefined preprocessor variables.
2456
2457cat >>confdefs.h <<_ACEOF
2458#define PACKAGE_NAME "$PACKAGE_NAME"
2459_ACEOF
2460
2461cat >>confdefs.h <<_ACEOF
2462#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2463_ACEOF
2464
2465cat >>confdefs.h <<_ACEOF
2466#define PACKAGE_VERSION "$PACKAGE_VERSION"
2467_ACEOF
2468
2469cat >>confdefs.h <<_ACEOF
2470#define PACKAGE_STRING "$PACKAGE_STRING"
2471_ACEOF
2472
2473cat >>confdefs.h <<_ACEOF
2474#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2475_ACEOF
2476
2477cat >>confdefs.h <<_ACEOF
2478#define PACKAGE_URL "$PACKAGE_URL"
2479_ACEOF
2480
2481
2482# Let the site file select an alternate cache file if it wants to.
2483# Prefer an explicitly selected file to automatically selected ones.
2484ac_site_file1=NONE
2485ac_site_file2=NONE
2486if test -n "$CONFIG_SITE"; then
2487  # We do not want a PATH search for config.site.
2488  case $CONFIG_SITE in #((
2489    -*)  ac_site_file1=./$CONFIG_SITE;;
2490    */*) ac_site_file1=$CONFIG_SITE;;
2491    *)   ac_site_file1=./$CONFIG_SITE;;
2492  esac
2493elif test "x$prefix" != xNONE; then
2494  ac_site_file1=$prefix/share/config.site
2495  ac_site_file2=$prefix/etc/config.site
2496else
2497  ac_site_file1=$ac_default_prefix/share/config.site
2498  ac_site_file2=$ac_default_prefix/etc/config.site
2499fi
2500for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2501do
2502  test "x$ac_site_file" = xNONE && continue
2503  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2504    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2505$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2506    sed 's/^/| /' "$ac_site_file" >&5
2507    . "$ac_site_file" \
2508      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2510as_fn_error $? "failed to load site script $ac_site_file
2511See \`config.log' for more details" "$LINENO" 5; }
2512  fi
2513done
2514
2515if test -r "$cache_file"; then
2516  # Some versions of bash will fail to source /dev/null (special files
2517  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2518  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2519    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2520$as_echo "$as_me: loading cache $cache_file" >&6;}
2521    case $cache_file in
2522      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2523      *)                      . "./$cache_file";;
2524    esac
2525  fi
2526else
2527  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2528$as_echo "$as_me: creating cache $cache_file" >&6;}
2529  >$cache_file
2530fi
2531
2532# Check that the precious variables saved in the cache have kept the same
2533# value.
2534ac_cache_corrupted=false
2535for ac_var in $ac_precious_vars; do
2536  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2537  eval ac_new_set=\$ac_env_${ac_var}_set
2538  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2539  eval ac_new_val=\$ac_env_${ac_var}_value
2540  case $ac_old_set,$ac_new_set in
2541    set,)
2542      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2543$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2544      ac_cache_corrupted=: ;;
2545    ,set)
2546      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2547$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2548      ac_cache_corrupted=: ;;
2549    ,);;
2550    *)
2551      if test "x$ac_old_val" != "x$ac_new_val"; then
2552	# differences in whitespace do not lead to failure.
2553	ac_old_val_w=`echo x $ac_old_val`
2554	ac_new_val_w=`echo x $ac_new_val`
2555	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2556	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2557$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2558	  ac_cache_corrupted=:
2559	else
2560	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2561$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2562	  eval $ac_var=\$ac_old_val
2563	fi
2564	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2565$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2566	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2567$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2568      fi;;
2569  esac
2570  # Pass precious variables to config.status.
2571  if test "$ac_new_set" = set; then
2572    case $ac_new_val in
2573    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2574    *) ac_arg=$ac_var=$ac_new_val ;;
2575    esac
2576    case " $ac_configure_args " in
2577      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2578      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2579    esac
2580  fi
2581done
2582if $ac_cache_corrupted; then
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2586$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2587  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2588fi
2589## -------------------- ##
2590## Main body of script. ##
2591## -------------------- ##
2592
2593ac_ext=c
2594ac_cpp='$CPP $CPPFLAGS'
2595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597ac_compiler_gnu=$ac_cv_c_compiler_gnu
2598
2599
2600ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
2601
2602
2603$as_echo "#define UNIX 1" >>confdefs.h
2604
2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2606$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2607set x ${MAKE-make}
2608ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2609if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2610  $as_echo_n "(cached) " >&6
2611else
2612  cat >conftest.make <<\_ACEOF
2613SHELL = /bin/sh
2614all:
2615	@echo '@@@%%%=$(MAKE)=@@@%%%'
2616_ACEOF
2617# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2618case `${MAKE-make} -f conftest.make 2>/dev/null` in
2619  *@@@%%%=?*=@@@%%%*)
2620    eval ac_cv_prog_make_${ac_make}_set=yes;;
2621  *)
2622    eval ac_cv_prog_make_${ac_make}_set=no;;
2623esac
2624rm -f conftest.make
2625fi
2626if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2628$as_echo "yes" >&6; }
2629  SET_MAKE=
2630else
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2632$as_echo "no" >&6; }
2633  SET_MAKE="MAKE=${MAKE-make}"
2634fi
2635
2636
2637ac_ext=c
2638ac_cpp='$CPP $CPPFLAGS'
2639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641ac_compiler_gnu=$ac_cv_c_compiler_gnu
2642if test -n "$ac_tool_prefix"; then
2643  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2644set dummy ${ac_tool_prefix}gcc; ac_word=$2
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646$as_echo_n "checking for $ac_word... " >&6; }
2647if ${ac_cv_prog_CC+:} false; then :
2648  $as_echo_n "(cached) " >&6
2649else
2650  if test -n "$CC"; then
2651  ac_cv_prog_CC="$CC" # Let the user override the test.
2652else
2653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654for as_dir in $PATH
2655do
2656  IFS=$as_save_IFS
2657  test -z "$as_dir" && as_dir=.
2658    for ac_exec_ext in '' $ac_executable_extensions; do
2659  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662    break 2
2663  fi
2664done
2665  done
2666IFS=$as_save_IFS
2667
2668fi
2669fi
2670CC=$ac_cv_prog_CC
2671if test -n "$CC"; then
2672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2673$as_echo "$CC" >&6; }
2674else
2675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676$as_echo "no" >&6; }
2677fi
2678
2679
2680fi
2681if test -z "$ac_cv_prog_CC"; then
2682  ac_ct_CC=$CC
2683  # Extract the first word of "gcc", so it can be a program name with args.
2684set dummy gcc; ac_word=$2
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686$as_echo_n "checking for $ac_word... " >&6; }
2687if ${ac_cv_prog_ac_ct_CC+:} false; then :
2688  $as_echo_n "(cached) " >&6
2689else
2690  if test -n "$ac_ct_CC"; then
2691  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2692else
2693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694for as_dir in $PATH
2695do
2696  IFS=$as_save_IFS
2697  test -z "$as_dir" && as_dir=.
2698    for ac_exec_ext in '' $ac_executable_extensions; do
2699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2700    ac_cv_prog_ac_ct_CC="gcc"
2701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702    break 2
2703  fi
2704done
2705  done
2706IFS=$as_save_IFS
2707
2708fi
2709fi
2710ac_ct_CC=$ac_cv_prog_ac_ct_CC
2711if test -n "$ac_ct_CC"; then
2712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2713$as_echo "$ac_ct_CC" >&6; }
2714else
2715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716$as_echo "no" >&6; }
2717fi
2718
2719  if test "x$ac_ct_CC" = x; then
2720    CC=""
2721  else
2722    case $cross_compiling:$ac_tool_warned in
2723yes:)
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2726ac_tool_warned=yes ;;
2727esac
2728    CC=$ac_ct_CC
2729  fi
2730else
2731  CC="$ac_cv_prog_CC"
2732fi
2733
2734if test -z "$CC"; then
2735          if test -n "$ac_tool_prefix"; then
2736    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2737set dummy ${ac_tool_prefix}cc; ac_word=$2
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739$as_echo_n "checking for $ac_word... " >&6; }
2740if ${ac_cv_prog_CC+:} false; then :
2741  $as_echo_n "(cached) " >&6
2742else
2743  if test -n "$CC"; then
2744  ac_cv_prog_CC="$CC" # Let the user override the test.
2745else
2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747for as_dir in $PATH
2748do
2749  IFS=$as_save_IFS
2750  test -z "$as_dir" && as_dir=.
2751    for ac_exec_ext in '' $ac_executable_extensions; do
2752  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753    ac_cv_prog_CC="${ac_tool_prefix}cc"
2754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755    break 2
2756  fi
2757done
2758  done
2759IFS=$as_save_IFS
2760
2761fi
2762fi
2763CC=$ac_cv_prog_CC
2764if test -n "$CC"; then
2765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2766$as_echo "$CC" >&6; }
2767else
2768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769$as_echo "no" >&6; }
2770fi
2771
2772
2773  fi
2774fi
2775if test -z "$CC"; then
2776  # Extract the first word of "cc", so it can be a program name with args.
2777set dummy cc; ac_word=$2
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779$as_echo_n "checking for $ac_word... " >&6; }
2780if ${ac_cv_prog_CC+:} false; then :
2781  $as_echo_n "(cached) " >&6
2782else
2783  if test -n "$CC"; then
2784  ac_cv_prog_CC="$CC" # Let the user override the test.
2785else
2786  ac_prog_rejected=no
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790  IFS=$as_save_IFS
2791  test -z "$as_dir" && as_dir=.
2792    for ac_exec_ext in '' $ac_executable_extensions; do
2793  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2795       ac_prog_rejected=yes
2796       continue
2797     fi
2798    ac_cv_prog_CC="cc"
2799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2800    break 2
2801  fi
2802done
2803  done
2804IFS=$as_save_IFS
2805
2806if test $ac_prog_rejected = yes; then
2807  # We found a bogon in the path, so make sure we never use it.
2808  set dummy $ac_cv_prog_CC
2809  shift
2810  if test $# != 0; then
2811    # We chose a different compiler from the bogus one.
2812    # However, it has the same basename, so the bogon will be chosen
2813    # first if we set CC to just the basename; use the full file name.
2814    shift
2815    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2816  fi
2817fi
2818fi
2819fi
2820CC=$ac_cv_prog_CC
2821if test -n "$CC"; then
2822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2823$as_echo "$CC" >&6; }
2824else
2825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826$as_echo "no" >&6; }
2827fi
2828
2829
2830fi
2831if test -z "$CC"; then
2832  if test -n "$ac_tool_prefix"; then
2833  for ac_prog in cl.exe
2834  do
2835    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2836set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838$as_echo_n "checking for $ac_word... " >&6; }
2839if ${ac_cv_prog_CC+:} false; then :
2840  $as_echo_n "(cached) " >&6
2841else
2842  if test -n "$CC"; then
2843  ac_cv_prog_CC="$CC" # Let the user override the test.
2844else
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848  IFS=$as_save_IFS
2849  test -z "$as_dir" && as_dir=.
2850    for ac_exec_ext in '' $ac_executable_extensions; do
2851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854    break 2
2855  fi
2856done
2857  done
2858IFS=$as_save_IFS
2859
2860fi
2861fi
2862CC=$ac_cv_prog_CC
2863if test -n "$CC"; then
2864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865$as_echo "$CC" >&6; }
2866else
2867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868$as_echo "no" >&6; }
2869fi
2870
2871
2872    test -n "$CC" && break
2873  done
2874fi
2875if test -z "$CC"; then
2876  ac_ct_CC=$CC
2877  for ac_prog in cl.exe
2878do
2879  # Extract the first word of "$ac_prog", so it can be a program name with args.
2880set dummy $ac_prog; ac_word=$2
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882$as_echo_n "checking for $ac_word... " >&6; }
2883if ${ac_cv_prog_ac_ct_CC+:} false; then :
2884  $as_echo_n "(cached) " >&6
2885else
2886  if test -n "$ac_ct_CC"; then
2887  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2888else
2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892  IFS=$as_save_IFS
2893  test -z "$as_dir" && as_dir=.
2894    for ac_exec_ext in '' $ac_executable_extensions; do
2895  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2896    ac_cv_prog_ac_ct_CC="$ac_prog"
2897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898    break 2
2899  fi
2900done
2901  done
2902IFS=$as_save_IFS
2903
2904fi
2905fi
2906ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907if test -n "$ac_ct_CC"; then
2908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2909$as_echo "$ac_ct_CC" >&6; }
2910else
2911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912$as_echo "no" >&6; }
2913fi
2914
2915
2916  test -n "$ac_ct_CC" && break
2917done
2918
2919  if test "x$ac_ct_CC" = x; then
2920    CC=""
2921  else
2922    case $cross_compiling:$ac_tool_warned in
2923yes:)
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2926ac_tool_warned=yes ;;
2927esac
2928    CC=$ac_ct_CC
2929  fi
2930fi
2931
2932fi
2933
2934
2935test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937as_fn_error $? "no acceptable C compiler found in \$PATH
2938See \`config.log' for more details" "$LINENO" 5; }
2939
2940# Provide some information about the compiler.
2941$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2942set X $ac_compile
2943ac_compiler=$2
2944for ac_option in --version -v -V -qversion; do
2945  { { ac_try="$ac_compiler $ac_option >&5"
2946case "(($ac_try" in
2947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948  *) ac_try_echo=$ac_try;;
2949esac
2950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2951$as_echo "$ac_try_echo"; } >&5
2952  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2953  ac_status=$?
2954  if test -s conftest.err; then
2955    sed '10a\
2956... rest of stderr output deleted ...
2957         10q' conftest.err >conftest.er1
2958    cat conftest.er1 >&5
2959  fi
2960  rm -f conftest.er1 conftest.err
2961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2962  test $ac_status = 0; }
2963done
2964
2965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966/* end confdefs.h.  */
2967
2968int
2969main ()
2970{
2971
2972  ;
2973  return 0;
2974}
2975_ACEOF
2976ac_clean_files_save=$ac_clean_files
2977ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2978# Try to create an executable without -o first, disregard a.out.
2979# It will help us diagnose broken compilers, and finding out an intuition
2980# of exeext.
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2982$as_echo_n "checking whether the C compiler works... " >&6; }
2983ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2984
2985# The possible output files:
2986ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2987
2988ac_rmfiles=
2989for ac_file in $ac_files
2990do
2991  case $ac_file in
2992    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2993    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2994  esac
2995done
2996rm -f $ac_rmfiles
2997
2998if { { ac_try="$ac_link_default"
2999case "(($ac_try" in
3000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001  *) ac_try_echo=$ac_try;;
3002esac
3003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004$as_echo "$ac_try_echo"; } >&5
3005  (eval "$ac_link_default") 2>&5
3006  ac_status=$?
3007  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3008  test $ac_status = 0; }; then :
3009  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3010# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3011# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3012# so that the user can short-circuit this test for compilers unknown to
3013# Autoconf.
3014for ac_file in $ac_files ''
3015do
3016  test -f "$ac_file" || continue
3017  case $ac_file in
3018    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3019	;;
3020    [ab].out )
3021	# We found the default executable, but exeext='' is most
3022	# certainly right.
3023	break;;
3024    *.* )
3025	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3026	then :; else
3027	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3028	fi
3029	# We set ac_cv_exeext here because the later test for it is not
3030	# safe: cross compilers may not add the suffix if given an `-o'
3031	# argument, so we may need to know it at that point already.
3032	# Even if this section looks crufty: it has the advantage of
3033	# actually working.
3034	break;;
3035    * )
3036	break;;
3037  esac
3038done
3039test "$ac_cv_exeext" = no && ac_cv_exeext=
3040
3041else
3042  ac_file=''
3043fi
3044if test -z "$ac_file"; then :
3045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046$as_echo "no" >&6; }
3047$as_echo "$as_me: failed program was:" >&5
3048sed 's/^/| /' conftest.$ac_ext >&5
3049
3050{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052as_fn_error 77 "C compiler cannot create executables
3053See \`config.log' for more details" "$LINENO" 5; }
3054else
3055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3056$as_echo "yes" >&6; }
3057fi
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3059$as_echo_n "checking for C compiler default output file name... " >&6; }
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3061$as_echo "$ac_file" >&6; }
3062ac_exeext=$ac_cv_exeext
3063
3064rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3065ac_clean_files=$ac_clean_files_save
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3067$as_echo_n "checking for suffix of executables... " >&6; }
3068if { { ac_try="$ac_link"
3069case "(($ac_try" in
3070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071  *) ac_try_echo=$ac_try;;
3072esac
3073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074$as_echo "$ac_try_echo"; } >&5
3075  (eval "$ac_link") 2>&5
3076  ac_status=$?
3077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078  test $ac_status = 0; }; then :
3079  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3080# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3081# work properly (i.e., refer to `conftest.exe'), while it won't with
3082# `rm'.
3083for ac_file in conftest.exe conftest conftest.*; do
3084  test -f "$ac_file" || continue
3085  case $ac_file in
3086    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3087    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3088	  break;;
3089    * ) break;;
3090  esac
3091done
3092else
3093  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3096See \`config.log' for more details" "$LINENO" 5; }
3097fi
3098rm -f conftest conftest$ac_cv_exeext
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3100$as_echo "$ac_cv_exeext" >&6; }
3101
3102rm -f conftest.$ac_ext
3103EXEEXT=$ac_cv_exeext
3104ac_exeext=$EXEEXT
3105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106/* end confdefs.h.  */
3107#include <stdio.h>
3108int
3109main ()
3110{
3111FILE *f = fopen ("conftest.out", "w");
3112 return ferror (f) || fclose (f) != 0;
3113
3114  ;
3115  return 0;
3116}
3117_ACEOF
3118ac_clean_files="$ac_clean_files conftest.out"
3119# Check that the compiler produces executables we can run.  If not, either
3120# the compiler is broken, or we cross compile.
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3122$as_echo_n "checking whether we are cross compiling... " >&6; }
3123if test "$cross_compiling" != yes; then
3124  { { ac_try="$ac_link"
3125case "(($ac_try" in
3126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127  *) ac_try_echo=$ac_try;;
3128esac
3129eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130$as_echo "$ac_try_echo"; } >&5
3131  (eval "$ac_link") 2>&5
3132  ac_status=$?
3133  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134  test $ac_status = 0; }
3135  if { ac_try='./conftest$ac_cv_exeext'
3136  { { case "(($ac_try" in
3137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138  *) ac_try_echo=$ac_try;;
3139esac
3140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141$as_echo "$ac_try_echo"; } >&5
3142  (eval "$ac_try") 2>&5
3143  ac_status=$?
3144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145  test $ac_status = 0; }; }; then
3146    cross_compiling=no
3147  else
3148    if test "$cross_compiling" = maybe; then
3149	cross_compiling=yes
3150    else
3151	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153as_fn_error $? "cannot run C compiled programs.
3154If you meant to cross compile, use \`--host'.
3155See \`config.log' for more details" "$LINENO" 5; }
3156    fi
3157  fi
3158fi
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3160$as_echo "$cross_compiling" >&6; }
3161
3162rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3163ac_clean_files=$ac_clean_files_save
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3165$as_echo_n "checking for suffix of object files... " >&6; }
3166if ${ac_cv_objext+:} false; then :
3167  $as_echo_n "(cached) " >&6
3168else
3169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170/* end confdefs.h.  */
3171
3172int
3173main ()
3174{
3175
3176  ;
3177  return 0;
3178}
3179_ACEOF
3180rm -f conftest.o conftest.obj
3181if { { ac_try="$ac_compile"
3182case "(($ac_try" in
3183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184  *) ac_try_echo=$ac_try;;
3185esac
3186eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187$as_echo "$ac_try_echo"; } >&5
3188  (eval "$ac_compile") 2>&5
3189  ac_status=$?
3190  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191  test $ac_status = 0; }; then :
3192  for ac_file in conftest.o conftest.obj conftest.*; do
3193  test -f "$ac_file" || continue;
3194  case $ac_file in
3195    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3196    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3197       break;;
3198  esac
3199done
3200else
3201  $as_echo "$as_me: failed program was:" >&5
3202sed 's/^/| /' conftest.$ac_ext >&5
3203
3204{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206as_fn_error $? "cannot compute suffix of object files: cannot compile
3207See \`config.log' for more details" "$LINENO" 5; }
3208fi
3209rm -f conftest.$ac_cv_objext conftest.$ac_ext
3210fi
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3212$as_echo "$ac_cv_objext" >&6; }
3213OBJEXT=$ac_cv_objext
3214ac_objext=$OBJEXT
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3216$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3217if ${ac_cv_c_compiler_gnu+:} false; then :
3218  $as_echo_n "(cached) " >&6
3219else
3220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221/* end confdefs.h.  */
3222
3223int
3224main ()
3225{
3226#ifndef __GNUC__
3227       choke me
3228#endif
3229
3230  ;
3231  return 0;
3232}
3233_ACEOF
3234if ac_fn_c_try_compile "$LINENO"; then :
3235  ac_compiler_gnu=yes
3236else
3237  ac_compiler_gnu=no
3238fi
3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240ac_cv_c_compiler_gnu=$ac_compiler_gnu
3241
3242fi
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3244$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3245if test $ac_compiler_gnu = yes; then
3246  GCC=yes
3247else
3248  GCC=
3249fi
3250ac_test_CFLAGS=${CFLAGS+set}
3251ac_save_CFLAGS=$CFLAGS
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3253$as_echo_n "checking whether $CC accepts -g... " >&6; }
3254if ${ac_cv_prog_cc_g+:} false; then :
3255  $as_echo_n "(cached) " >&6
3256else
3257  ac_save_c_werror_flag=$ac_c_werror_flag
3258   ac_c_werror_flag=yes
3259   ac_cv_prog_cc_g=no
3260   CFLAGS="-g"
3261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262/* end confdefs.h.  */
3263
3264int
3265main ()
3266{
3267
3268  ;
3269  return 0;
3270}
3271_ACEOF
3272if ac_fn_c_try_compile "$LINENO"; then :
3273  ac_cv_prog_cc_g=yes
3274else
3275  CFLAGS=""
3276      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277/* end confdefs.h.  */
3278
3279int
3280main ()
3281{
3282
3283  ;
3284  return 0;
3285}
3286_ACEOF
3287if ac_fn_c_try_compile "$LINENO"; then :
3288
3289else
3290  ac_c_werror_flag=$ac_save_c_werror_flag
3291	 CFLAGS="-g"
3292	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293/* end confdefs.h.  */
3294
3295int
3296main ()
3297{
3298
3299  ;
3300  return 0;
3301}
3302_ACEOF
3303if ac_fn_c_try_compile "$LINENO"; then :
3304  ac_cv_prog_cc_g=yes
3305fi
3306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307fi
3308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309fi
3310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311   ac_c_werror_flag=$ac_save_c_werror_flag
3312fi
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3314$as_echo "$ac_cv_prog_cc_g" >&6; }
3315if test "$ac_test_CFLAGS" = set; then
3316  CFLAGS=$ac_save_CFLAGS
3317elif test $ac_cv_prog_cc_g = yes; then
3318  if test "$GCC" = yes; then
3319    CFLAGS="-g -O2"
3320  else
3321    CFLAGS="-g"
3322  fi
3323else
3324  if test "$GCC" = yes; then
3325    CFLAGS="-O2"
3326  else
3327    CFLAGS=
3328  fi
3329fi
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3331$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3332if ${ac_cv_prog_cc_c89+:} false; then :
3333  $as_echo_n "(cached) " >&6
3334else
3335  ac_cv_prog_cc_c89=no
3336ac_save_CC=$CC
3337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338/* end confdefs.h.  */
3339#include <stdarg.h>
3340#include <stdio.h>
3341struct stat;
3342/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3343struct buf { int x; };
3344FILE * (*rcsopen) (struct buf *, struct stat *, int);
3345static char *e (p, i)
3346     char **p;
3347     int i;
3348{
3349  return p[i];
3350}
3351static char *f (char * (*g) (char **, int), char **p, ...)
3352{
3353  char *s;
3354  va_list v;
3355  va_start (v,p);
3356  s = g (p, va_arg (v,int));
3357  va_end (v);
3358  return s;
3359}
3360
3361/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3362   function prototypes and stuff, but not '\xHH' hex character constants.
3363   These don't provoke an error unfortunately, instead are silently treated
3364   as 'x'.  The following induces an error, until -std is added to get
3365   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3366   array size at least.  It's necessary to write '\x00'==0 to get something
3367   that's true only with -std.  */
3368int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3369
3370/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3371   inside strings and character constants.  */
3372#define FOO(x) 'x'
3373int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3374
3375int test (int i, double x);
3376struct s1 {int (*f) (int a);};
3377struct s2 {int (*f) (double a);};
3378int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3379int argc;
3380char **argv;
3381int
3382main ()
3383{
3384return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3385  ;
3386  return 0;
3387}
3388_ACEOF
3389for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3390	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3391do
3392  CC="$ac_save_CC $ac_arg"
3393  if ac_fn_c_try_compile "$LINENO"; then :
3394  ac_cv_prog_cc_c89=$ac_arg
3395fi
3396rm -f core conftest.err conftest.$ac_objext
3397  test "x$ac_cv_prog_cc_c89" != "xno" && break
3398done
3399rm -f conftest.$ac_ext
3400CC=$ac_save_CC
3401
3402fi
3403# AC_CACHE_VAL
3404case "x$ac_cv_prog_cc_c89" in
3405  x)
3406    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3407$as_echo "none needed" >&6; } ;;
3408  xno)
3409    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3410$as_echo "unsupported" >&6; } ;;
3411  *)
3412    CC="$CC $ac_cv_prog_cc_c89"
3413    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3414$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3415esac
3416if test "x$ac_cv_prog_cc_c89" != xno; then :
3417
3418fi
3419
3420ac_ext=c
3421ac_cpp='$CPP $CPPFLAGS'
3422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425	ac_ext=c
3426ac_cpp='$CPP $CPPFLAGS'
3427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3431$as_echo_n "checking how to run the C preprocessor... " >&6; }
3432# On Suns, sometimes $CPP names a directory.
3433if test -n "$CPP" && test -d "$CPP"; then
3434  CPP=
3435fi
3436if test -z "$CPP"; then
3437  if ${ac_cv_prog_CPP+:} false; then :
3438  $as_echo_n "(cached) " >&6
3439else
3440      # Double quotes because CPP needs to be expanded
3441    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3442    do
3443      ac_preproc_ok=false
3444for ac_c_preproc_warn_flag in '' yes
3445do
3446  # Use a header file that comes with gcc, so configuring glibc
3447  # with a fresh cross-compiler works.
3448  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3449  # <limits.h> exists even on freestanding compilers.
3450  # On the NeXT, cc -E runs the code through the compiler's parser,
3451  # not just through cpp. "Syntax error" is here to catch this case.
3452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453/* end confdefs.h.  */
3454#ifdef __STDC__
3455# include <limits.h>
3456#else
3457# include <assert.h>
3458#endif
3459		     Syntax error
3460_ACEOF
3461if ac_fn_c_try_cpp "$LINENO"; then :
3462
3463else
3464  # Broken: fails on valid input.
3465continue
3466fi
3467rm -f conftest.err conftest.i conftest.$ac_ext
3468
3469  # OK, works on sane cases.  Now check whether nonexistent headers
3470  # can be detected and how.
3471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472/* end confdefs.h.  */
3473#include <ac_nonexistent.h>
3474_ACEOF
3475if ac_fn_c_try_cpp "$LINENO"; then :
3476  # Broken: success on invalid input.
3477continue
3478else
3479  # Passes both tests.
3480ac_preproc_ok=:
3481break
3482fi
3483rm -f conftest.err conftest.i conftest.$ac_ext
3484
3485done
3486# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3487rm -f conftest.i conftest.err conftest.$ac_ext
3488if $ac_preproc_ok; then :
3489  break
3490fi
3491
3492    done
3493    ac_cv_prog_CPP=$CPP
3494
3495fi
3496  CPP=$ac_cv_prog_CPP
3497else
3498  ac_cv_prog_CPP=$CPP
3499fi
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3501$as_echo "$CPP" >&6; }
3502ac_preproc_ok=false
3503for ac_c_preproc_warn_flag in '' yes
3504do
3505  # Use a header file that comes with gcc, so configuring glibc
3506  # with a fresh cross-compiler works.
3507  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3508  # <limits.h> exists even on freestanding compilers.
3509  # On the NeXT, cc -E runs the code through the compiler's parser,
3510  # not just through cpp. "Syntax error" is here to catch this case.
3511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512/* end confdefs.h.  */
3513#ifdef __STDC__
3514# include <limits.h>
3515#else
3516# include <assert.h>
3517#endif
3518		     Syntax error
3519_ACEOF
3520if ac_fn_c_try_cpp "$LINENO"; then :
3521
3522else
3523  # Broken: fails on valid input.
3524continue
3525fi
3526rm -f conftest.err conftest.i conftest.$ac_ext
3527
3528  # OK, works on sane cases.  Now check whether nonexistent headers
3529  # can be detected and how.
3530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531/* end confdefs.h.  */
3532#include <ac_nonexistent.h>
3533_ACEOF
3534if ac_fn_c_try_cpp "$LINENO"; then :
3535  # Broken: success on invalid input.
3536continue
3537else
3538  # Passes both tests.
3539ac_preproc_ok=:
3540break
3541fi
3542rm -f conftest.err conftest.i conftest.$ac_ext
3543
3544done
3545# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3546rm -f conftest.i conftest.err conftest.$ac_ext
3547if $ac_preproc_ok; then :
3548
3549else
3550  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3553See \`config.log' for more details" "$LINENO" 5; }
3554fi
3555
3556ac_ext=c
3557ac_cpp='$CPP $CPPFLAGS'
3558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561
3562
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3564$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3565if ${ac_cv_path_GREP+:} false; then :
3566  $as_echo_n "(cached) " >&6
3567else
3568  if test -z "$GREP"; then
3569  ac_path_GREP_found=false
3570  # Loop through the user's path and test for each of PROGNAME-LIST
3571  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3573do
3574  IFS=$as_save_IFS
3575  test -z "$as_dir" && as_dir=.
3576    for ac_prog in grep ggrep; do
3577    for ac_exec_ext in '' $ac_executable_extensions; do
3578      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3579      as_fn_executable_p "$ac_path_GREP" || continue
3580# Check for GNU ac_path_GREP and select it if it is found.
3581  # Check for GNU $ac_path_GREP
3582case `"$ac_path_GREP" --version 2>&1` in
3583*GNU*)
3584  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3585*)
3586  ac_count=0
3587  $as_echo_n 0123456789 >"conftest.in"
3588  while :
3589  do
3590    cat "conftest.in" "conftest.in" >"conftest.tmp"
3591    mv "conftest.tmp" "conftest.in"
3592    cp "conftest.in" "conftest.nl"
3593    $as_echo 'GREP' >> "conftest.nl"
3594    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3595    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3596    as_fn_arith $ac_count + 1 && ac_count=$as_val
3597    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3598      # Best one so far, save it but keep looking for a better one
3599      ac_cv_path_GREP="$ac_path_GREP"
3600      ac_path_GREP_max=$ac_count
3601    fi
3602    # 10*(2^10) chars as input seems more than enough
3603    test $ac_count -gt 10 && break
3604  done
3605  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3606esac
3607
3608      $ac_path_GREP_found && break 3
3609    done
3610  done
3611  done
3612IFS=$as_save_IFS
3613  if test -z "$ac_cv_path_GREP"; then
3614    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3615  fi
3616else
3617  ac_cv_path_GREP=$GREP
3618fi
3619
3620fi
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3622$as_echo "$ac_cv_path_GREP" >&6; }
3623 GREP="$ac_cv_path_GREP"
3624
3625
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3627$as_echo_n "checking for egrep... " >&6; }
3628if ${ac_cv_path_EGREP+:} false; then :
3629  $as_echo_n "(cached) " >&6
3630else
3631  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3632   then ac_cv_path_EGREP="$GREP -E"
3633   else
3634     if test -z "$EGREP"; then
3635  ac_path_EGREP_found=false
3636  # Loop through the user's path and test for each of PROGNAME-LIST
3637  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3639do
3640  IFS=$as_save_IFS
3641  test -z "$as_dir" && as_dir=.
3642    for ac_prog in egrep; do
3643    for ac_exec_ext in '' $ac_executable_extensions; do
3644      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3645      as_fn_executable_p "$ac_path_EGREP" || continue
3646# Check for GNU ac_path_EGREP and select it if it is found.
3647  # Check for GNU $ac_path_EGREP
3648case `"$ac_path_EGREP" --version 2>&1` in
3649*GNU*)
3650  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3651*)
3652  ac_count=0
3653  $as_echo_n 0123456789 >"conftest.in"
3654  while :
3655  do
3656    cat "conftest.in" "conftest.in" >"conftest.tmp"
3657    mv "conftest.tmp" "conftest.in"
3658    cp "conftest.in" "conftest.nl"
3659    $as_echo 'EGREP' >> "conftest.nl"
3660    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3661    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3662    as_fn_arith $ac_count + 1 && ac_count=$as_val
3663    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3664      # Best one so far, save it but keep looking for a better one
3665      ac_cv_path_EGREP="$ac_path_EGREP"
3666      ac_path_EGREP_max=$ac_count
3667    fi
3668    # 10*(2^10) chars as input seems more than enough
3669    test $ac_count -gt 10 && break
3670  done
3671  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3672esac
3673
3674      $ac_path_EGREP_found && break 3
3675    done
3676  done
3677  done
3678IFS=$as_save_IFS
3679  if test -z "$ac_cv_path_EGREP"; then
3680    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3681  fi
3682else
3683  ac_cv_path_EGREP=$EGREP
3684fi
3685
3686   fi
3687fi
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3689$as_echo "$ac_cv_path_EGREP" >&6; }
3690 EGREP="$ac_cv_path_EGREP"
3691
3692
3693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694/* end confdefs.h.  */
3695
3696_ACEOF
3697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3698  $EGREP "" >/dev/null 2>&1; then :
3699
3700fi
3701rm -f conftest*
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3703$as_echo_n "checking for fgrep... " >&6; }
3704if ${ac_cv_path_FGREP+:} false; then :
3705  $as_echo_n "(cached) " >&6
3706else
3707  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3708   then ac_cv_path_FGREP="$GREP -F"
3709   else
3710     if test -z "$FGREP"; then
3711  ac_path_FGREP_found=false
3712  # Loop through the user's path and test for each of PROGNAME-LIST
3713  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3715do
3716  IFS=$as_save_IFS
3717  test -z "$as_dir" && as_dir=.
3718    for ac_prog in fgrep; do
3719    for ac_exec_ext in '' $ac_executable_extensions; do
3720      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3721      as_fn_executable_p "$ac_path_FGREP" || continue
3722# Check for GNU ac_path_FGREP and select it if it is found.
3723  # Check for GNU $ac_path_FGREP
3724case `"$ac_path_FGREP" --version 2>&1` in
3725*GNU*)
3726  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3727*)
3728  ac_count=0
3729  $as_echo_n 0123456789 >"conftest.in"
3730  while :
3731  do
3732    cat "conftest.in" "conftest.in" >"conftest.tmp"
3733    mv "conftest.tmp" "conftest.in"
3734    cp "conftest.in" "conftest.nl"
3735    $as_echo 'FGREP' >> "conftest.nl"
3736    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3737    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3738    as_fn_arith $ac_count + 1 && ac_count=$as_val
3739    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3740      # Best one so far, save it but keep looking for a better one
3741      ac_cv_path_FGREP="$ac_path_FGREP"
3742      ac_path_FGREP_max=$ac_count
3743    fi
3744    # 10*(2^10) chars as input seems more than enough
3745    test $ac_count -gt 10 && break
3746  done
3747  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3748esac
3749
3750      $ac_path_FGREP_found && break 3
3751    done
3752  done
3753  done
3754IFS=$as_save_IFS
3755  if test -z "$ac_cv_path_FGREP"; then
3756    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3757  fi
3758else
3759  ac_cv_path_FGREP=$FGREP
3760fi
3761
3762   fi
3763fi
3764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3765$as_echo "$ac_cv_path_FGREP" >&6; }
3766 FGREP="$ac_cv_path_FGREP"
3767
3768	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3769$as_echo_n "checking for library containing strerror... " >&6; }
3770if ${ac_cv_search_strerror+:} false; then :
3771  $as_echo_n "(cached) " >&6
3772else
3773  ac_func_search_save_LIBS=$LIBS
3774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775/* end confdefs.h.  */
3776
3777/* Override any GCC internal prototype to avoid an error.
3778   Use char because int might match the return type of a GCC
3779   builtin and then its argument prototype would still apply.  */
3780#ifdef __cplusplus
3781extern "C"
3782#endif
3783char strerror ();
3784int
3785main ()
3786{
3787return strerror ();
3788  ;
3789  return 0;
3790}
3791_ACEOF
3792for ac_lib in '' cposix; do
3793  if test -z "$ac_lib"; then
3794    ac_res="none required"
3795  else
3796    ac_res=-l$ac_lib
3797    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3798  fi
3799  if ac_fn_c_try_link "$LINENO"; then :
3800  ac_cv_search_strerror=$ac_res
3801fi
3802rm -f core conftest.err conftest.$ac_objext \
3803    conftest$ac_exeext
3804  if ${ac_cv_search_strerror+:} false; then :
3805  break
3806fi
3807done
3808if ${ac_cv_search_strerror+:} false; then :
3809
3810else
3811  ac_cv_search_strerror=no
3812fi
3813rm conftest.$ac_ext
3814LIBS=$ac_func_search_save_LIBS
3815fi
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3817$as_echo "$ac_cv_search_strerror" >&6; }
3818ac_res=$ac_cv_search_strerror
3819if test "$ac_res" != no; then :
3820  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3821
3822fi
3823	for ac_prog in gawk mawk nawk awk
3824do
3825  # Extract the first word of "$ac_prog", so it can be a program name with args.
3826set dummy $ac_prog; ac_word=$2
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828$as_echo_n "checking for $ac_word... " >&6; }
3829if ${ac_cv_prog_AWK+:} false; then :
3830  $as_echo_n "(cached) " >&6
3831else
3832  if test -n "$AWK"; then
3833  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3834else
3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836for as_dir in $PATH
3837do
3838  IFS=$as_save_IFS
3839  test -z "$as_dir" && as_dir=.
3840    for ac_exec_ext in '' $ac_executable_extensions; do
3841  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842    ac_cv_prog_AWK="$ac_prog"
3843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844    break 2
3845  fi
3846done
3847  done
3848IFS=$as_save_IFS
3849
3850fi
3851fi
3852AWK=$ac_cv_prog_AWK
3853if test -n "$AWK"; then
3854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3855$as_echo "$AWK" >&6; }
3856else
3857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858$as_echo "no" >&6; }
3859fi
3860
3861
3862  test -n "$AWK" && break
3863done
3864
3865# Extract the first word of "strip", so it can be a program name with args.
3866set dummy strip; ac_word=$2
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868$as_echo_n "checking for $ac_word... " >&6; }
3869if ${ac_cv_prog_STRIP+:} false; then :
3870  $as_echo_n "(cached) " >&6
3871else
3872  if test -n "$STRIP"; then
3873  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3874else
3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876for as_dir in $PATH
3877do
3878  IFS=$as_save_IFS
3879  test -z "$as_dir" && as_dir=.
3880    for ac_exec_ext in '' $ac_executable_extensions; do
3881  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882    ac_cv_prog_STRIP="strip"
3883    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3884    break 2
3885  fi
3886done
3887  done
3888IFS=$as_save_IFS
3889
3890  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3891fi
3892fi
3893STRIP=$ac_cv_prog_STRIP
3894if test -n "$STRIP"; then
3895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3896$as_echo "$STRIP" >&6; }
3897else
3898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899$as_echo "no" >&6; }
3900fi
3901
3902
3903
3904
3905
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3907$as_echo_n "checking for ANSI C header files... " >&6; }
3908if ${ac_cv_header_stdc+:} false; then :
3909  $as_echo_n "(cached) " >&6
3910else
3911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912/* end confdefs.h.  */
3913#include <stdlib.h>
3914#include <stdarg.h>
3915#include <string.h>
3916#include <float.h>
3917
3918int
3919main ()
3920{
3921
3922  ;
3923  return 0;
3924}
3925_ACEOF
3926if ac_fn_c_try_compile "$LINENO"; then :
3927  ac_cv_header_stdc=yes
3928else
3929  ac_cv_header_stdc=no
3930fi
3931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932
3933if test $ac_cv_header_stdc = yes; then
3934  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936/* end confdefs.h.  */
3937#include <string.h>
3938
3939_ACEOF
3940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3941  $EGREP "memchr" >/dev/null 2>&1; then :
3942
3943else
3944  ac_cv_header_stdc=no
3945fi
3946rm -f conftest*
3947
3948fi
3949
3950if test $ac_cv_header_stdc = yes; then
3951  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953/* end confdefs.h.  */
3954#include <stdlib.h>
3955
3956_ACEOF
3957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3958  $EGREP "free" >/dev/null 2>&1; then :
3959
3960else
3961  ac_cv_header_stdc=no
3962fi
3963rm -f conftest*
3964
3965fi
3966
3967if test $ac_cv_header_stdc = yes; then
3968  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3969  if test "$cross_compiling" = yes; then :
3970  :
3971else
3972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973/* end confdefs.h.  */
3974#include <ctype.h>
3975#include <stdlib.h>
3976#if ((' ' & 0x0FF) == 0x020)
3977# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3978# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3979#else
3980# define ISLOWER(c) \
3981		   (('a' <= (c) && (c) <= 'i') \
3982		     || ('j' <= (c) && (c) <= 'r') \
3983		     || ('s' <= (c) && (c) <= 'z'))
3984# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3985#endif
3986
3987#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3988int
3989main ()
3990{
3991  int i;
3992  for (i = 0; i < 256; i++)
3993    if (XOR (islower (i), ISLOWER (i))
3994	|| toupper (i) != TOUPPER (i))
3995      return 2;
3996  return 0;
3997}
3998_ACEOF
3999if ac_fn_c_try_run "$LINENO"; then :
4000
4001else
4002  ac_cv_header_stdc=no
4003fi
4004rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4005  conftest.$ac_objext conftest.beam conftest.$ac_ext
4006fi
4007
4008fi
4009fi
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4011$as_echo "$ac_cv_header_stdc" >&6; }
4012if test $ac_cv_header_stdc = yes; then
4013
4014$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4015
4016fi
4017
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4019$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4020if ${ac_cv_header_sys_wait_h+:} false; then :
4021  $as_echo_n "(cached) " >&6
4022else
4023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024/* end confdefs.h.  */
4025#include <sys/types.h>
4026#include <sys/wait.h>
4027#ifndef WEXITSTATUS
4028# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4029#endif
4030#ifndef WIFEXITED
4031# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4032#endif
4033
4034int
4035main ()
4036{
4037  int s;
4038  wait (&s);
4039  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4040  ;
4041  return 0;
4042}
4043_ACEOF
4044if ac_fn_c_try_compile "$LINENO"; then :
4045  ac_cv_header_sys_wait_h=yes
4046else
4047  ac_cv_header_sys_wait_h=no
4048fi
4049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050fi
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4052$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4053if test $ac_cv_header_sys_wait_h = yes; then
4054
4055$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4056
4057fi
4058
4059
4060
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5
4062$as_echo_n "checking --enable-fail-if-missing argument... " >&6; }
4063# Check whether --enable-fail_if_missing was given.
4064if test "${enable_fail_if_missing+set}" = set; then :
4065  enableval=$enable_fail_if_missing; fail_if_missing="yes"
4066else
4067  fail_if_missing="no"
4068fi
4069
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5
4071$as_echo "$fail_if_missing" >&6; }
4072
4073if test -z "$CFLAGS"; then
4074  CFLAGS="-O"
4075  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
4076fi
4077if test "$GCC" = yes; then
4078    gccversion=`$CC -dumpversion`
4079  if test "x$gccversion" = "x"; then
4080        gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
4081  fi
4082    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
4083    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
4084    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
4085  else
4086    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
4087      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
4088      CFLAGS="$CFLAGS -fno-strength-reduce"
4089    fi
4090  fi
4091fi
4092
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent clang version" >&5
4094$as_echo_n "checking for recent clang version... " >&6; }
4095CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed  -n -e 's/^.*clang.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'`
4096if test x"$CLANG_VERSION_STRING" != x"" ; then
4097  CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'`
4098  CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'`
4099  CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'`
4100  CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION`
4101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5
4102$as_echo "$CLANG_VERSION" >&6; }
4103          if test "$CLANG_VERSION" -ge 500002075 ; then
4104    CFLAGS=`echo "$CFLAGS" | sed -n -e 's/-fno-strength-reduce/ /p'`
4105  fi
4106else
4107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108$as_echo "no" >&6; }
4109fi
4110
4111if test "$cross_compiling" = yes; then
4112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
4113$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
4114fi
4115
4116test "$GCC" = yes && CPP_MM=M;
4117
4118if test -f ./toolcheck; then
4119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
4120$as_echo "$as_me: checking for buggy tools..." >&6;}
4121  sh ./toolcheck 1>&6
4122fi
4123
4124OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
4125
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5
4127$as_echo_n "checking for BeOS... " >&6; }
4128case `uname` in
4129    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
4130		BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4131$as_echo "yes" >&6; };;
4132    *)		BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133$as_echo "no" >&6; };;
4134esac
4135
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5
4137$as_echo_n "checking for QNX... " >&6; }
4138case `uname` in
4139    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
4140		test -z "$with_x" && with_x=no
4141		QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4142$as_echo "yes" >&6; };;
4143    *)		QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144$as_echo "no" >&6; };;
4145esac
4146
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5
4148$as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
4149if test "`(uname) 2>/dev/null`" = Darwin; then
4150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4151$as_echo "yes" >&6; }
4152
4153  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5
4154$as_echo_n "checking --disable-darwin argument... " >&6; }
4155  # Check whether --enable-darwin was given.
4156if test "${enable_darwin+set}" = set; then :
4157  enableval=$enable_darwin;
4158else
4159  enable_darwin="yes"
4160fi
4161
4162  if test "$enable_darwin" = "yes"; then
4163    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164$as_echo "no" >&6; }
4165    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5
4166$as_echo_n "checking if Darwin files are there... " >&6; }
4167    if test -f os_macosx.m; then
4168      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4169$as_echo "yes" >&6; }
4170    else
4171      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5
4172$as_echo "no, Darwin support disabled" >&6; }
4173      enable_darwin=no
4174    fi
4175  else
4176    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5
4177$as_echo "yes, Darwin support excluded" >&6; }
4178  fi
4179
4180  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5
4181$as_echo_n "checking --with-mac-arch argument... " >&6; }
4182
4183# Check whether --with-mac-arch was given.
4184if test "${with_mac_arch+set}" = set; then :
4185  withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5
4186$as_echo "$MACARCH" >&6; }
4187else
4188  MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5
4189$as_echo "defaulting to $MACARCH" >&6; }
4190fi
4191
4192
4193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5
4194$as_echo_n "checking --with-developer-dir argument... " >&6; }
4195
4196# Check whether --with-developer-dir was given.
4197if test "${with_developer_dir+set}" = set; then :
4198  withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4199$as_echo "$DEVELOPER_DIR" >&6; }
4200else
4201  DEVELOPER_DIR=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
4202$as_echo "not present" >&6; }
4203fi
4204
4205
4206  if test "x$DEVELOPER_DIR" = "x"; then
4207    # Extract the first word of "xcode-select", so it can be a program name with args.
4208set dummy xcode-select; ac_word=$2
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210$as_echo_n "checking for $ac_word... " >&6; }
4211if ${ac_cv_path_XCODE_SELECT+:} false; then :
4212  $as_echo_n "(cached) " >&6
4213else
4214  case $XCODE_SELECT in
4215  [\\/]* | ?:[\\/]*)
4216  ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
4217  ;;
4218  *)
4219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220for as_dir in $PATH
4221do
4222  IFS=$as_save_IFS
4223  test -z "$as_dir" && as_dir=.
4224    for ac_exec_ext in '' $ac_executable_extensions; do
4225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4226    ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
4227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228    break 2
4229  fi
4230done
4231  done
4232IFS=$as_save_IFS
4233
4234  ;;
4235esac
4236fi
4237XCODE_SELECT=$ac_cv_path_XCODE_SELECT
4238if test -n "$XCODE_SELECT"; then
4239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5
4240$as_echo "$XCODE_SELECT" >&6; }
4241else
4242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243$as_echo "no" >&6; }
4244fi
4245
4246
4247    if test "x$XCODE_SELECT" != "x"; then
4248      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5
4249$as_echo_n "checking for developer dir using xcode-select... " >&6; }
4250      DEVELOPER_DIR=`$XCODE_SELECT -print-path`
4251      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4252$as_echo "$DEVELOPER_DIR" >&6; }
4253    else
4254      DEVELOPER_DIR=/Developer
4255    fi
4256  fi
4257
4258  if test "x$MACARCH" = "xboth"; then
4259    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5
4260$as_echo_n "checking for 10.4 universal SDK... " >&6; }
4261                            save_cppflags="$CPPFLAGS"
4262    save_cflags="$CFLAGS"
4263    save_ldflags="$LDFLAGS"
4264    CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
4265    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266/* end confdefs.h.  */
4267
4268int
4269main ()
4270{
4271
4272  ;
4273  return 0;
4274}
4275_ACEOF
4276if ac_fn_c_try_link "$LINENO"; then :
4277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
4278$as_echo "found" >&6; }
4279else
4280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4281$as_echo "not found" >&6; }
4282	CFLAGS="$save_cflags"
4283	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5
4284$as_echo_n "checking if Intel architecture is supported... " >&6; }
4285	CPPFLAGS="$CPPFLAGS -arch i386"
4286	LDFLAGS="$save_ldflags -arch i386"
4287	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288/* end confdefs.h.  */
4289
4290int
4291main ()
4292{
4293
4294  ;
4295  return 0;
4296}
4297_ACEOF
4298if ac_fn_c_try_link "$LINENO"; then :
4299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4300$as_echo "yes" >&6; }; MACARCH="intel"
4301else
4302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303$as_echo "no" >&6; }
4304		MACARCH="ppc"
4305		CPPFLAGS="$save_cppflags -arch ppc"
4306		LDFLAGS="$save_ldflags -arch ppc"
4307fi
4308rm -f core conftest.err conftest.$ac_objext \
4309    conftest$ac_exeext conftest.$ac_ext
4310fi
4311rm -f core conftest.err conftest.$ac_objext \
4312    conftest$ac_exeext conftest.$ac_ext
4313  elif test "x$MACARCH" = "xintel"; then
4314    CPPFLAGS="$CPPFLAGS -arch intel"
4315    LDFLAGS="$LDFLAGS -arch intel"
4316  elif test "x$MACARCH" = "xppc"; then
4317    CPPFLAGS="$CPPFLAGS -arch ppc"
4318    LDFLAGS="$LDFLAGS -arch ppc"
4319  fi
4320
4321  if test "$enable_darwin" = "yes"; then
4322    MACOSX=yes
4323    OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
4324    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4325            CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX"
4326
4327                # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4328for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4329		  inttypes.h stdint.h unistd.h
4330do :
4331  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4332ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4333"
4334if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4335  cat >>confdefs.h <<_ACEOF
4336#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4337_ACEOF
4338
4339fi
4340
4341done
4342
4343
4344ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
4345if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then :
4346  CARBON=yes
4347fi
4348
4349
4350    if test "x$CARBON" = "xyes"; then
4351      if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2; then
4352	with_x=no
4353      fi
4354    fi
4355  fi
4356
4357        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4358    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4359  fi
4360
4361else
4362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363$as_echo "no" >&6; }
4364fi
4365
4366for ac_header in AvailabilityMacros.h
4367do :
4368  ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
4369if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then :
4370  cat >>confdefs.h <<_ACEOF
4371#define HAVE_AVAILABILITYMACROS_H 1
4372_ACEOF
4373
4374fi
4375
4376done
4377
4378
4379
4380
4381
4382if test "$cross_compiling" = no; then
4383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5
4384$as_echo_n "checking --with-local-dir argument... " >&6; }
4385  have_local_include=''
4386  have_local_lib=''
4387
4388# Check whether --with-local-dir was given.
4389if test "${with_local_dir+set}" = set; then :
4390  withval=$with_local_dir;
4391    local_dir="$withval"
4392    case "$withval" in
4393    */*) ;;
4394    no)
4395      # avoid adding local dir to LDFLAGS and CPPFLAGS
4396      have_local_include=yes
4397      have_local_lib=yes
4398      ;;
4399    *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;;
4400    esac
4401	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5
4402$as_echo "$local_dir" >&6; }
4403
4404else
4405
4406    local_dir=/usr/local
4407    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5
4408$as_echo "Defaulting to $local_dir" >&6; }
4409
4410fi
4411
4412  if test "$GCC" = yes -a "$local_dir" != no; then
4413    echo 'void f(){}' > conftest.c
4414        have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4415    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4416    rm -f conftest.c conftest.o
4417  fi
4418  if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4419    tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4420    if test "$tt" = "$LDFLAGS"; then
4421      LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4422    fi
4423  fi
4424  if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4425    tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4426    if test "$tt" = "$CPPFLAGS"; then
4427      CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4428    fi
4429  fi
4430fi
4431
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5
4433$as_echo_n "checking --with-vim-name argument... " >&6; }
4434
4435# Check whether --with-vim-name was given.
4436if test "${with_vim_name+set}" = set; then :
4437  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5
4438$as_echo "$VIMNAME" >&6; }
4439else
4440  VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5
4441$as_echo "Defaulting to $VIMNAME" >&6; }
4442fi
4443
4444
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5
4446$as_echo_n "checking --with-ex-name argument... " >&6; }
4447
4448# Check whether --with-ex-name was given.
4449if test "${with_ex_name+set}" = set; then :
4450  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5
4451$as_echo "$EXNAME" >&6; }
4452else
4453  EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5
4454$as_echo "Defaulting to ex" >&6; }
4455fi
4456
4457
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5
4459$as_echo_n "checking --with-view-name argument... " >&6; }
4460
4461# Check whether --with-view-name was given.
4462if test "${with_view_name+set}" = set; then :
4463  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5
4464$as_echo "$VIEWNAME" >&6; }
4465else
4466  VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5
4467$as_echo "Defaulting to view" >&6; }
4468fi
4469
4470
4471
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5
4473$as_echo_n "checking --with-global-runtime argument... " >&6; }
4474
4475# Check whether --with-global-runtime was given.
4476if test "${with_global_runtime+set}" = set; then :
4477  withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4478$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4479#define RUNTIME_GLOBAL "$withval"
4480_ACEOF
4481
4482else
4483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484$as_echo "no" >&6; }
4485fi
4486
4487
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5
4489$as_echo_n "checking --with-modified-by argument... " >&6; }
4490
4491# Check whether --with-modified-by was given.
4492if test "${with_modified_by+set}" = set; then :
4493  withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4494$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4495#define MODIFIED_BY "$withval"
4496_ACEOF
4497
4498else
4499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500$as_echo "no" >&6; }
4501fi
4502
4503
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5
4505$as_echo_n "checking if character set is EBCDIC... " >&6; }
4506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507/* end confdefs.h.  */
4508
4509int
4510main ()
4511{
4512 /* TryCompile function for CharSet.
4513   Treat any failure as ASCII for compatibility with existing art.
4514   Use compile-time rather than run-time tests for cross-compiler
4515   tolerance.  */
4516#if '0'!=240
4517make an error "Character set is not EBCDIC"
4518#endif
4519  ;
4520  return 0;
4521}
4522_ACEOF
4523if ac_fn_c_try_compile "$LINENO"; then :
4524   # TryCompile action if true
4525cf_cv_ebcdic=yes
4526else
4527   # TryCompile action if false
4528cf_cv_ebcdic=no
4529fi
4530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531# end of TryCompile ])
4532# end of CacheVal CvEbcdic
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5
4534$as_echo "$cf_cv_ebcdic" >&6; }
4535case "$cf_cv_ebcdic" in  #(vi
4536    yes)	$as_echo "#define EBCDIC 1" >>confdefs.h
4537
4538		line_break='"\\n"'
4539		;;
4540    *)		line_break='"\\012"';;
4541esac
4542
4543
4544if test "$cf_cv_ebcdic" = "yes"; then
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5
4546$as_echo_n "checking for z/OS Unix... " >&6; }
4547case `uname` in
4548    OS/390)	zOSUnix="yes";
4549										if test "$CC" = "cc"; then
4550		  ccm="$_CC_CCMODE"
4551		  ccn="CC"
4552		else
4553		  if test "$CC" = "c89"; then
4554		    ccm="$_CC_C89MODE"
4555		    ccn="C89"
4556		  else
4557		    ccm=1
4558		  fi
4559		fi
4560		if test "$ccm" != "1"; then
4561		  echo ""
4562		  echo "------------------------------------------"
4563		  echo " On z/OS Unix, the environment variable"
4564		  echo " _CC_${ccn}MODE must be set to \"1\"!"
4565		  echo " Do:"
4566		  echo "    export _CC_${ccn}MODE=1"
4567		  echo " and then call configure again."
4568		  echo "------------------------------------------"
4569		  exit 1
4570		fi
4571		# Set CFLAGS for configure process.
4572		# This will be reset later for config.mk.
4573		# Use haltonmsg to force error for missing H files.
4574		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)";
4575		LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4576		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4577$as_echo "yes" >&6; }
4578		;;
4579    *)		zOSUnix="no";
4580		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581$as_echo "no" >&6; }
4582		;;
4583esac
4584fi
4585
4586if test "$zOSUnix" = "yes"; then
4587    QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'"
4588else
4589    QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'"
4590fi
4591
4592
4593
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5
4595$as_echo_n "checking --disable-smack argument... " >&6; }
4596# Check whether --enable-smack was given.
4597if test "${enable_smack+set}" = set; then :
4598  enableval=$enable_smack;
4599else
4600  enable_smack="yes"
4601fi
4602
4603if test "$enable_smack" = "yes"; then
4604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605$as_echo "no" >&6; }
4606  ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default"
4607if test "x$ac_cv_header_linux_xattr_h" = xyes; then :
4608  true
4609else
4610  enable_smack="no"
4611fi
4612
4613
4614else
4615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4616$as_echo "yes" >&6; }
4617fi
4618if test "$enable_smack" = "yes"; then
4619  ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
4620if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
4621  true
4622else
4623  enable_smack="no"
4624fi
4625
4626
4627fi
4628if test "$enable_smack" = "yes"; then
4629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5
4630$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; }
4631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632/* end confdefs.h.  */
4633#include <linux/xattr.h>
4634_ACEOF
4635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4636  $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then :
4637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4638$as_echo "yes" >&6; }
4639else
4640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641$as_echo "no" >&6; }; enable_smack="no"
4642fi
4643rm -f conftest*
4644
4645fi
4646if test "$enable_smack" = "yes"; then
4647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
4648$as_echo_n "checking for setxattr in -lattr... " >&6; }
4649if ${ac_cv_lib_attr_setxattr+:} false; then :
4650  $as_echo_n "(cached) " >&6
4651else
4652  ac_check_lib_save_LIBS=$LIBS
4653LIBS="-lattr  $LIBS"
4654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655/* end confdefs.h.  */
4656
4657/* Override any GCC internal prototype to avoid an error.
4658   Use char because int might match the return type of a GCC
4659   builtin and then its argument prototype would still apply.  */
4660#ifdef __cplusplus
4661extern "C"
4662#endif
4663char setxattr ();
4664int
4665main ()
4666{
4667return setxattr ();
4668  ;
4669  return 0;
4670}
4671_ACEOF
4672if ac_fn_c_try_link "$LINENO"; then :
4673  ac_cv_lib_attr_setxattr=yes
4674else
4675  ac_cv_lib_attr_setxattr=no
4676fi
4677rm -f core conftest.err conftest.$ac_objext \
4678    conftest$ac_exeext conftest.$ac_ext
4679LIBS=$ac_check_lib_save_LIBS
4680fi
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
4682$as_echo "$ac_cv_lib_attr_setxattr" >&6; }
4683if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
4684  LIBS="$LIBS -lattr"
4685	   found_smack="yes"
4686	   $as_echo "#define HAVE_SMACK 1" >>confdefs.h
4687
4688fi
4689
4690fi
4691
4692if test "x$found_smack" = "x"; then
4693    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5
4694$as_echo_n "checking --disable-selinux argument... " >&6; }
4695  # Check whether --enable-selinux was given.
4696if test "${enable_selinux+set}" = set; then :
4697  enableval=$enable_selinux;
4698else
4699  enable_selinux="yes"
4700fi
4701
4702  if test "$enable_selinux" = "yes"; then
4703    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704$as_echo "no" >&6; }
4705    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
4706$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4707if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
4708  $as_echo_n "(cached) " >&6
4709else
4710  ac_check_lib_save_LIBS=$LIBS
4711LIBS="-lselinux  $LIBS"
4712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713/* end confdefs.h.  */
4714
4715/* Override any GCC internal prototype to avoid an error.
4716   Use char because int might match the return type of a GCC
4717   builtin and then its argument prototype would still apply.  */
4718#ifdef __cplusplus
4719extern "C"
4720#endif
4721char is_selinux_enabled ();
4722int
4723main ()
4724{
4725return is_selinux_enabled ();
4726  ;
4727  return 0;
4728}
4729_ACEOF
4730if ac_fn_c_try_link "$LINENO"; then :
4731  ac_cv_lib_selinux_is_selinux_enabled=yes
4732else
4733  ac_cv_lib_selinux_is_selinux_enabled=no
4734fi
4735rm -f core conftest.err conftest.$ac_objext \
4736    conftest$ac_exeext conftest.$ac_ext
4737LIBS=$ac_check_lib_save_LIBS
4738fi
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4740$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4741if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
4742  LIBS="$LIBS -lselinux"
4743	     $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
4744
4745fi
4746
4747  else
4748     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4749$as_echo "yes" >&6; }
4750  fi
4751fi
4752
4753
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5
4755$as_echo_n "checking --with-features argument... " >&6; }
4756
4757# Check whether --with-features was given.
4758if test "${with_features+set}" = set; then :
4759  withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5
4760$as_echo "$features" >&6; }
4761else
4762  features="normal"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to normal" >&5
4763$as_echo "Defaulting to normal" >&6; }
4764fi
4765
4766
4767dovimdiff=""
4768dogvimdiff=""
4769case "$features" in
4770  tiny)		$as_echo "#define FEAT_TINY 1" >>confdefs.h
4771 ;;
4772  small)	$as_echo "#define FEAT_SMALL 1" >>confdefs.h
4773 ;;
4774  normal)	$as_echo "#define FEAT_NORMAL 1" >>confdefs.h
4775 dovimdiff="installvimdiff";
4776			dogvimdiff="installgvimdiff" ;;
4777  big)		$as_echo "#define FEAT_BIG 1" >>confdefs.h
4778 dovimdiff="installvimdiff";
4779			dogvimdiff="installgvimdiff" ;;
4780  huge)		$as_echo "#define FEAT_HUGE 1" >>confdefs.h
4781 dovimdiff="installvimdiff";
4782			dogvimdiff="installgvimdiff" ;;
4783  *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5
4784$as_echo "Sorry, $features is not supported" >&6; } ;;
4785esac
4786
4787
4788
4789
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5
4791$as_echo_n "checking --with-compiledby argument... " >&6; }
4792
4793# Check whether --with-compiledby was given.
4794if test "${with_compiledby+set}" = set; then :
4795  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4796$as_echo "$withval" >&6; }
4797else
4798  compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4799$as_echo "no" >&6; }
4800fi
4801
4802
4803
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5
4805$as_echo_n "checking --disable-xsmp argument... " >&6; }
4806# Check whether --enable-xsmp was given.
4807if test "${enable_xsmp+set}" = set; then :
4808  enableval=$enable_xsmp;
4809else
4810  enable_xsmp="yes"
4811fi
4812
4813
4814if test "$enable_xsmp" = "yes"; then
4815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816$as_echo "no" >&6; }
4817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5
4818$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4819  # Check whether --enable-xsmp-interact was given.
4820if test "${enable_xsmp_interact+set}" = set; then :
4821  enableval=$enable_xsmp_interact;
4822else
4823  enable_xsmp_interact="yes"
4824fi
4825
4826  if test "$enable_xsmp_interact" = "yes"; then
4827    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828$as_echo "no" >&6; }
4829    $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h
4830
4831  else
4832    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4833$as_echo "yes" >&6; }
4834  fi
4835else
4836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4837$as_echo "yes" >&6; }
4838fi
4839
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5
4841$as_echo_n "checking --enable-luainterp argument... " >&6; }
4842# Check whether --enable-luainterp was given.
4843if test "${enable_luainterp+set}" = set; then :
4844  enableval=$enable_luainterp;
4845else
4846  enable_luainterp="no"
4847fi
4848
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5
4850$as_echo "$enable_luainterp" >&6; }
4851
4852if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
4853
4854
4855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5
4856$as_echo_n "checking --with-lua-prefix argument... " >&6; }
4857
4858# Check whether --with-lua_prefix was given.
4859if test "${with_lua_prefix+set}" = set; then :
4860  withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5
4861$as_echo "$with_lua_prefix" >&6; }
4862else
4863  with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864$as_echo "no" >&6; }
4865fi
4866
4867
4868  if test "X$with_lua_prefix" != "X"; then
4869       vi_cv_path_lua_pfx="$with_lua_prefix"
4870  else
4871    { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5
4872$as_echo_n "checking LUA_PREFIX environment var... " >&6; }
4873    if test "X$LUA_PREFIX" != "X"; then
4874	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5
4875$as_echo "\"$LUA_PREFIX\"" >&6; }
4876	vi_cv_path_lua_pfx="$LUA_PREFIX"
4877    else
4878	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5
4879$as_echo "not set, default to /usr" >&6; }
4880	vi_cv_path_lua_pfx="/usr"
4881    fi
4882  fi
4883
4884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5
4885$as_echo_n "checking --with-luajit... " >&6; }
4886
4887# Check whether --with-luajit was given.
4888if test "${with_luajit+set}" = set; then :
4889  withval=$with_luajit; vi_cv_with_luajit="$withval"
4890else
4891  vi_cv_with_luajit="no"
4892fi
4893
4894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5
4895$as_echo "$vi_cv_with_luajit" >&6; }
4896
4897  LUA_INC=
4898  if test "X$vi_cv_path_lua_pfx" != "X"; then
4899    if test "x$vi_cv_with_luajit" != "xno"; then
4900            # Extract the first word of "luajit", so it can be a program name with args.
4901set dummy luajit; ac_word=$2
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903$as_echo_n "checking for $ac_word... " >&6; }
4904if ${ac_cv_path_vi_cv_path_luajit+:} false; then :
4905  $as_echo_n "(cached) " >&6
4906else
4907  case $vi_cv_path_luajit in
4908  [\\/]* | ?:[\\/]*)
4909  ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path.
4910  ;;
4911  *)
4912  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913for as_dir in $PATH
4914do
4915  IFS=$as_save_IFS
4916  test -z "$as_dir" && as_dir=.
4917    for ac_exec_ext in '' $ac_executable_extensions; do
4918  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919    ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext"
4920    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921    break 2
4922  fi
4923done
4924  done
4925IFS=$as_save_IFS
4926
4927  ;;
4928esac
4929fi
4930vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit
4931if test -n "$vi_cv_path_luajit"; then
4932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5
4933$as_echo "$vi_cv_path_luajit" >&6; }
4934else
4935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936$as_echo "no" >&6; }
4937fi
4938
4939
4940      if test "X$vi_cv_path_luajit" != "X"; then
4941		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5
4942$as_echo_n "checking LuaJIT version... " >&6; }
4943if ${vi_cv_version_luajit+:} false; then :
4944  $as_echo_n "(cached) " >&6
4945else
4946   vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'`
4947fi
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5
4949$as_echo "$vi_cv_version_luajit" >&6; }
4950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5
4951$as_echo_n "checking Lua version of LuaJIT... " >&6; }
4952if ${vi_cv_version_lua_luajit+:} false; then :
4953  $as_echo_n "(cached) " >&6
4954else
4955   vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'`
4956fi
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5
4958$as_echo "$vi_cv_version_lua_luajit" >&6; }
4959	vi_cv_path_lua="$vi_cv_path_luajit"
4960	vi_cv_version_lua="$vi_cv_version_lua_luajit"
4961      fi
4962    else
4963            # Extract the first word of "lua", so it can be a program name with args.
4964set dummy lua; ac_word=$2
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966$as_echo_n "checking for $ac_word... " >&6; }
4967if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then :
4968  $as_echo_n "(cached) " >&6
4969else
4970  case $vi_cv_path_plain_lua in
4971  [\\/]* | ?:[\\/]*)
4972  ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path.
4973  ;;
4974  *)
4975  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976for as_dir in $PATH
4977do
4978  IFS=$as_save_IFS
4979  test -z "$as_dir" && as_dir=.
4980    for ac_exec_ext in '' $ac_executable_extensions; do
4981  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4982    ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext"
4983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984    break 2
4985  fi
4986done
4987  done
4988IFS=$as_save_IFS
4989
4990  ;;
4991esac
4992fi
4993vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua
4994if test -n "$vi_cv_path_plain_lua"; then
4995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5
4996$as_echo "$vi_cv_path_plain_lua" >&6; }
4997else
4998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999$as_echo "no" >&6; }
5000fi
5001
5002
5003      if test "X$vi_cv_path_plain_lua" != "X"; then
5004		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5
5005$as_echo_n "checking Lua version... " >&6; }
5006if ${vi_cv_version_plain_lua+:} false; then :
5007  $as_echo_n "(cached) " >&6
5008else
5009   vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'`
5010fi
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5
5012$as_echo "$vi_cv_version_plain_lua" >&6; }
5013      fi
5014      vi_cv_path_lua="$vi_cv_path_plain_lua"
5015      vi_cv_version_lua="$vi_cv_version_plain_lua"
5016    fi
5017    if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then
5018      { $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
5019$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; }
5020      if test -f $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h; then
5021	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5022$as_echo "yes" >&6; }
5023	LUA_INC=/luajit-$vi_cv_version_luajit
5024      fi
5025    fi
5026    if test "X$LUA_INC" = "X"; then
5027      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5
5028$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; }
5029      if test -f $vi_cv_path_lua_pfx/include/lua.h; then
5030	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5031$as_echo "yes" >&6; }
5032      else
5033	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034$as_echo "no" >&6; }
5035	{ $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
5036$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; }
5037	if test -f $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h; then
5038	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5039$as_echo "yes" >&6; }
5040	  LUA_INC=/lua$vi_cv_version_lua
5041	else
5042	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043$as_echo "no" >&6; }
5044	  vi_cv_path_lua_pfx=
5045	fi
5046      fi
5047    fi
5048  fi
5049
5050  if test "X$vi_cv_path_lua_pfx" != "X"; then
5051    if test "x$vi_cv_with_luajit" != "xno"; then
5052      multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5053      if test "X$multiarch" != "X"; then
5054	lib_multiarch="lib/${multiarch}"
5055      else
5056	lib_multiarch="lib"
5057      fi
5058      if test "X$vi_cv_version_lua" = "X"; then
5059	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit"
5060      else
5061	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua"
5062      fi
5063    else
5064      if test "X$LUA_INC" != "X"; then
5065		LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua"
5066      else
5067	LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua"
5068      fi
5069    fi
5070    if test "$enable_luainterp" = "dynamic"; then
5071      lua_ok="yes"
5072    else
5073      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5
5074$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; }
5075      libs_save=$LIBS
5076      LIBS="$LIBS $LUA_LIBS"
5077      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078/* end confdefs.h.  */
5079
5080int
5081main ()
5082{
5083
5084  ;
5085  return 0;
5086}
5087_ACEOF
5088if ac_fn_c_try_link "$LINENO"; then :
5089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5090$as_echo "yes" >&6; }; lua_ok="yes"
5091else
5092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS=""
5094fi
5095rm -f core conftest.err conftest.$ac_objext \
5096    conftest$ac_exeext conftest.$ac_ext
5097      LIBS=$libs_save
5098    fi
5099    if test "x$lua_ok" = "xyes"; then
5100      LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}"
5101      LUA_SRC="if_lua.c"
5102      LUA_OBJ="objects/if_lua.o"
5103      LUA_PRO="if_lua.pro"
5104      $as_echo "#define FEAT_LUA 1" >>confdefs.h
5105
5106    fi
5107    if test "$enable_luainterp" = "dynamic"; then
5108      if test "x$vi_cv_with_luajit" != "xno"; then
5109	luajit="jit"
5110      fi
5111      if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
5112	vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
5113      else
5114	if test "x$MACOSX" = "xyes"; then
5115	  ext="dylib"
5116	  indexes=""
5117	else
5118	  ext="so"
5119	  indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9"
5120	  multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5121	  if test "X$multiarch" != "X"; then
5122	    lib_multiarch="lib/${multiarch}"
5123	  fi
5124	fi
5125			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5
5126$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; }
5127	for subdir in "${lib_multiarch}" lib64 lib; do
5128	  if test -z "$subdir"; then
5129	    continue
5130	  fi
5131	  for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \
5132	    ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do
5133	    for i in $indexes ""; do
5134	      if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then
5135		sover2="$i"
5136		break 3
5137	      fi
5138	    done
5139	  done
5140	  sover=""
5141	done
5142	if test "X$sover" = "X"; then
5143	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144$as_echo "no" >&6; }
5145	  lua_ok="no"
5146	  vi_cv_dll_name_lua="liblua${luajit}.${ext}"
5147	else
5148	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5149$as_echo "yes" >&6; }
5150	  lua_ok="yes"
5151	  vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2"
5152	fi
5153      fi
5154      $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h
5155
5156      LUA_LIBS=""
5157      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS"
5158    fi
5159    if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \
5160       test "x$MACOSX" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \
5161       test "`(uname -m) 2>/dev/null`" = "x86_64"; then
5162            LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS"
5163    fi
5164  fi
5165  if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then
5166    as_fn_error $? "could not configure lua" "$LINENO" 5
5167  fi
5168
5169
5170
5171
5172
5173fi
5174
5175
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5
5177$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
5178# Check whether --enable-mzschemeinterp was given.
5179if test "${enable_mzschemeinterp+set}" = set; then :
5180  enableval=$enable_mzschemeinterp;
5181else
5182  enable_mzschemeinterp="no"
5183fi
5184
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5
5186$as_echo "$enable_mzschemeinterp" >&6; }
5187
5188if test "$enable_mzschemeinterp" = "yes"; then
5189
5190
5191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5
5192$as_echo_n "checking --with-plthome argument... " >&6; }
5193
5194# Check whether --with-plthome was given.
5195if test "${with_plthome+set}" = set; then :
5196  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5
5197$as_echo "$with_plthome" >&6; }
5198else
5199  with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5200$as_echo "\"no\"" >&6; }
5201fi
5202
5203
5204  if test "X$with_plthome" != "X"; then
5205       vi_cv_path_mzscheme_pfx="$with_plthome"
5206  else
5207    { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5
5208$as_echo_n "checking PLTHOME environment var... " >&6; }
5209    if test "X$PLTHOME" != "X"; then
5210	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5
5211$as_echo "\"$PLTHOME\"" >&6; }
5212	vi_cv_path_mzscheme_pfx="$PLTHOME"
5213    else
5214	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
5215$as_echo "not set" >&6; }
5216		# Extract the first word of "mzscheme", so it can be a program name with args.
5217set dummy mzscheme; ac_word=$2
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219$as_echo_n "checking for $ac_word... " >&6; }
5220if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then :
5221  $as_echo_n "(cached) " >&6
5222else
5223  case $vi_cv_path_mzscheme in
5224  [\\/]* | ?:[\\/]*)
5225  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
5226  ;;
5227  *)
5228  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229for as_dir in $PATH
5230do
5231  IFS=$as_save_IFS
5232  test -z "$as_dir" && as_dir=.
5233    for ac_exec_ext in '' $ac_executable_extensions; do
5234  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
5236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237    break 2
5238  fi
5239done
5240  done
5241IFS=$as_save_IFS
5242
5243  ;;
5244esac
5245fi
5246vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
5247if test -n "$vi_cv_path_mzscheme"; then
5248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5
5249$as_echo "$vi_cv_path_mzscheme" >&6; }
5250else
5251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252$as_echo "no" >&6; }
5253fi
5254
5255
5256
5257			if test "X$vi_cv_path_mzscheme" != "X"; then
5258	  lsout=`ls -l $vi_cv_path_mzscheme`
5259	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
5260	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
5261	  fi
5262	fi
5263
5264	if test "X$vi_cv_path_mzscheme" != "X"; then
5265	    	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5
5266$as_echo_n "checking MzScheme install prefix... " >&6; }
5267if ${vi_cv_path_mzscheme_pfx+:} false; then :
5268  $as_echo_n "(cached) " >&6
5269else
5270  	    	    echo "(display (simplify-path		\
5271	       (build-path (call-with-values	\
5272		(lambda () (split-path (find-system-path (quote exec-file)))) \
5273		(lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
5274	    	     vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
5275		sed -e 's+/$++'`
5276fi
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5
5278$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
5279	    rm -f mzdirs.scm
5280	fi
5281    fi
5282  fi
5283
5284  SCHEME_INC=
5285  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5286    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
5287$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
5288    if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
5289      SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
5290      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5291$as_echo "yes" >&6; }
5292    else
5293      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294$as_echo "no" >&6; }
5295      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
5296$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
5297      if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
5298	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5299$as_echo "yes" >&6; }
5300	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
5301      else
5302	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303$as_echo "no" >&6; }
5304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5
5305$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; }
5306	if test -f $vi_cv_path_mzscheme_pfx/include/racket/scheme.h; then
5307	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5308$as_echo "yes" >&6; }
5309	  SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket
5310	else
5311	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312$as_echo "no" >&6; }
5313	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5
5314$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
5315	  if test -f /usr/include/plt/scheme.h; then
5316	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5317$as_echo "yes" >&6; }
5318	    SCHEME_INC=/usr/include/plt
5319	  else
5320	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321$as_echo "no" >&6; }
5322	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5
5323$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; }
5324	    if test -f /usr/include/racket/scheme.h; then
5325	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5326$as_echo "yes" >&6; }
5327	      SCHEME_INC=/usr/include/racket
5328	    else
5329	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330$as_echo "no" >&6; }
5331	      vi_cv_path_mzscheme_pfx=
5332	    fi
5333	  fi
5334	fi
5335      fi
5336    fi
5337  fi
5338
5339  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5340    if test "x$MACOSX" = "xyes"; then
5341      MZSCHEME_LIBS="-framework Racket"
5342      MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5343    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
5344      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
5345      MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5346    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket3m.a"; then
5347      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libracket3m.a"
5348      MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5349    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket.a"; then
5350      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libracket.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
5351    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"; then
5352      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
5353    else
5354            if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
5355        MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
5356	MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5357      elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket3m.so"; then
5358        MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lracket3m"
5359	MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5360      elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket.so"; then
5361        MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lracket -lmzgc"
5362      else
5363        MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
5364      fi
5365      if test "$GCC" = yes; then
5366			MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
5367      elif test "`(uname) 2>/dev/null`" = SunOS &&
5368			       uname -r | grep '^5' >/dev/null; then
5369	MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
5370      fi
5371    fi
5372
5373    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5
5374$as_echo_n "checking for racket collects directory... " >&6; }
5375    if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
5376      SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/
5377    else
5378      if test -d $vi_cv_path_mzscheme_pfx/lib/racket/collects; then
5379	SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/
5380      else
5381	if test -d $vi_cv_path_mzscheme_pfx/share/racket/collects; then
5382	  SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/
5383	else
5384	  if test -d $vi_cv_path_mzscheme_pfx/collects; then
5385	    SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/
5386	  fi
5387	fi
5388      fi
5389    fi
5390    if test "X$SCHEME_COLLECTS" != "X" ; then
5391      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5
5392$as_echo "${SCHEME_COLLECTS}" >&6; }
5393    else
5394      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5395$as_echo "not found" >&6; }
5396    fi
5397
5398    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5
5399$as_echo_n "checking for mzscheme_base.c... " >&6; }
5400    if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
5401      MZSCHEME_EXTRA="mzscheme_base.c"
5402      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5403      MZSCHEME_MOD="++lib scheme/base"
5404    else
5405      if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then
5406	MZSCHEME_EXTRA="mzscheme_base.c"
5407	MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5408	MZSCHEME_MOD="++lib scheme/base"
5409      else
5410	if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then
5411	  MZSCHEME_EXTRA="mzscheme_base.c"
5412	  MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool"
5413	  MZSCHEME_MOD=""
5414	fi
5415      fi
5416    fi
5417    if test "X$MZSCHEME_EXTRA" != "X" ; then
5418            MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
5419      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5420      { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5
5421$as_echo "needed" >&6; }
5422    else
5423      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
5424$as_echo "not needed" >&6; }
5425    fi
5426
5427        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5
5428$as_echo_n "checking for ffi_type_void in -lffi... " >&6; }
5429if ${ac_cv_lib_ffi_ffi_type_void+:} false; then :
5430  $as_echo_n "(cached) " >&6
5431else
5432  ac_check_lib_save_LIBS=$LIBS
5433LIBS="-lffi  $LIBS"
5434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h.  */
5436
5437/* Override any GCC internal prototype to avoid an error.
5438   Use char because int might match the return type of a GCC
5439   builtin and then its argument prototype would still apply.  */
5440#ifdef __cplusplus
5441extern "C"
5442#endif
5443char ffi_type_void ();
5444int
5445main ()
5446{
5447return ffi_type_void ();
5448  ;
5449  return 0;
5450}
5451_ACEOF
5452if ac_fn_c_try_link "$LINENO"; then :
5453  ac_cv_lib_ffi_ffi_type_void=yes
5454else
5455  ac_cv_lib_ffi_ffi_type_void=no
5456fi
5457rm -f core conftest.err conftest.$ac_objext \
5458    conftest$ac_exeext conftest.$ac_ext
5459LIBS=$ac_check_lib_save_LIBS
5460fi
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5
5462$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; }
5463if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then :
5464  MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi"
5465fi
5466
5467
5468    MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
5469      -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'"
5470
5471        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5
5472$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; }
5473    cflags_save=$CFLAGS
5474    libs_save=$LIBS
5475    CFLAGS="$CFLAGS $MZSCHEME_CFLAGS"
5476    LIBS="$LIBS $MZSCHEME_LIBS"
5477    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478/* end confdefs.h.  */
5479
5480int
5481main ()
5482{
5483
5484  ;
5485  return 0;
5486}
5487_ACEOF
5488if ac_fn_c_try_link "$LINENO"; then :
5489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5490$as_echo "yes" >&6; }; mzs_ok=yes
5491else
5492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5
5493$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no
5494fi
5495rm -f core conftest.err conftest.$ac_objext \
5496    conftest$ac_exeext conftest.$ac_ext
5497    CFLAGS=$cflags_save
5498    LIBS=$libs_save
5499    if test $mzs_ok = yes; then
5500      MZSCHEME_SRC="if_mzsch.c"
5501      MZSCHEME_OBJ="objects/if_mzsch.o"
5502      MZSCHEME_PRO="if_mzsch.pro"
5503      $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h
5504
5505    else
5506      MZSCHEME_CFLAGS=
5507      MZSCHEME_LIBS=
5508      MZSCHEME_EXTRA=
5509      MZSCHEME_MZC=
5510    fi
5511  fi
5512
5513
5514
5515
5516
5517
5518
5519fi
5520
5521
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5
5523$as_echo_n "checking --enable-perlinterp argument... " >&6; }
5524# Check whether --enable-perlinterp was given.
5525if test "${enable_perlinterp+set}" = set; then :
5526  enableval=$enable_perlinterp;
5527else
5528  enable_perlinterp="no"
5529fi
5530
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5
5532$as_echo "$enable_perlinterp" >&6; }
5533if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
5534
5535  # Extract the first word of "perl", so it can be a program name with args.
5536set dummy perl; ac_word=$2
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538$as_echo_n "checking for $ac_word... " >&6; }
5539if ${ac_cv_path_vi_cv_path_perl+:} false; then :
5540  $as_echo_n "(cached) " >&6
5541else
5542  case $vi_cv_path_perl in
5543  [\\/]* | ?:[\\/]*)
5544  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
5545  ;;
5546  *)
5547  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548for as_dir in $PATH
5549do
5550  IFS=$as_save_IFS
5551  test -z "$as_dir" && as_dir=.
5552    for ac_exec_ext in '' $ac_executable_extensions; do
5553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
5555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556    break 2
5557  fi
5558done
5559  done
5560IFS=$as_save_IFS
5561
5562  ;;
5563esac
5564fi
5565vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
5566if test -n "$vi_cv_path_perl"; then
5567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5
5568$as_echo "$vi_cv_path_perl" >&6; }
5569else
5570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571$as_echo "no" >&6; }
5572fi
5573
5574
5575  if test "X$vi_cv_path_perl" != "X"; then
5576    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5
5577$as_echo_n "checking Perl version... " >&6; }
5578    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
5579     eval `$vi_cv_path_perl -V:usethreads`
5580     eval `$vi_cv_path_perl -V:libperl`
5581     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
5582       badthreads=no
5583     else
5584       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
5585	 eval `$vi_cv_path_perl -V:use5005threads`
5586	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
5587	   badthreads=no
5588	 else
5589	   badthreads=yes
5590	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
5591$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
5592	 fi
5593       else
5594	 badthreads=yes
5595	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
5596$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
5597       fi
5598     fi
5599     if test $badthreads = no; then
5600      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
5601$as_echo "OK" >&6; }
5602      eval `$vi_cv_path_perl -V:shrpenv`
5603      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
5604	shrpenv=""
5605      fi
5606      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
5607
5608      vi_cv_perl_extutils=unknown_perl_extutils_path
5609      for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do
5610	xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp"
5611	if test -f "$xsubpp_path"; then
5612	  vi_cv_perl_xsubpp="$xsubpp_path"
5613	fi
5614      done
5615
5616                  perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
5617	      -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \
5618			-e 's/-fdebug-prefix-map[^ ]*//g'`
5619            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
5620		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
5621			-e 's/-bE:perl.exp//' -e 's/-lc //'`
5622                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
5623		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
5624
5625                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5
5626$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
5627      cflags_save=$CFLAGS
5628      libs_save=$LIBS
5629      ldflags_save=$LDFLAGS
5630      CFLAGS="$CFLAGS $perlcppflags"
5631      LIBS="$LIBS $perllibs"
5632      perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'`
5633      LDFLAGS="$perlldflags $LDFLAGS"
5634      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635/* end confdefs.h.  */
5636
5637int
5638main ()
5639{
5640
5641  ;
5642  return 0;
5643}
5644_ACEOF
5645if ac_fn_c_try_link "$LINENO"; then :
5646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5647$as_echo "yes" >&6; }; perl_ok=yes
5648else
5649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5
5650$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
5651fi
5652rm -f core conftest.err conftest.$ac_objext \
5653    conftest$ac_exeext conftest.$ac_ext
5654      CFLAGS=$cflags_save
5655      LIBS=$libs_save
5656      LDFLAGS=$ldflags_save
5657      if test $perl_ok = yes; then
5658	if test "X$perlcppflags" != "X"; then
5659	  	  PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
5660	fi
5661	if test "X$perlldflags" != "X"; then
5662	  if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then
5663	    LDFLAGS="$perlldflags $LDFLAGS"
5664	  fi
5665	fi
5666	PERL_LIBS=$perllibs
5667	PERL_SRC="auto/if_perl.c if_perlsfio.c"
5668	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
5669	PERL_PRO="if_perl.pro if_perlsfio.pro"
5670	$as_echo "#define FEAT_PERL 1" >>confdefs.h
5671
5672      fi
5673     fi
5674    else
5675      { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
5676$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
5677    fi
5678  fi
5679
5680  if test "x$MACOSX" = "xyes"; then
5681        dir=/System/Library/Perl
5682    darwindir=$dir/darwin
5683    if test -d $darwindir; then
5684      PERL=/usr/bin/perl
5685    else
5686            dir=/System/Library/Perl/5.8.1
5687      darwindir=$dir/darwin-thread-multi-2level
5688      if test -d $darwindir; then
5689	PERL=/usr/bin/perl
5690      fi
5691    fi
5692    if test -n "$PERL"; then
5693      PERL_DIR="$dir"
5694      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
5695      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
5696      PERL_LIBS="-L$darwindir/CORE -lperl"
5697    fi
5698                PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
5699    PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
5700  fi
5701  if test "$enable_perlinterp" = "dynamic"; then
5702    if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then
5703      $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h
5704
5705      PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
5706    fi
5707  fi
5708
5709  if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
5710    as_fn_error $? "could not configure perl" "$LINENO" 5
5711  fi
5712fi
5713
5714
5715
5716
5717
5718
5719
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5
5721$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5722# Check whether --enable-pythoninterp was given.
5723if test "${enable_pythoninterp+set}" = set; then :
5724  enableval=$enable_pythoninterp;
5725else
5726  enable_pythoninterp="no"
5727fi
5728
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
5730$as_echo "$enable_pythoninterp" >&6; }
5731if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
5732  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
5733    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
5734  fi
5735
5736    for ac_prog in python2 python
5737do
5738  # Extract the first word of "$ac_prog", so it can be a program name with args.
5739set dummy $ac_prog; ac_word=$2
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741$as_echo_n "checking for $ac_word... " >&6; }
5742if ${ac_cv_path_vi_cv_path_python+:} false; then :
5743  $as_echo_n "(cached) " >&6
5744else
5745  case $vi_cv_path_python in
5746  [\\/]* | ?:[\\/]*)
5747  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5748  ;;
5749  *)
5750  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751for as_dir in $PATH
5752do
5753  IFS=$as_save_IFS
5754  test -z "$as_dir" && as_dir=.
5755    for ac_exec_ext in '' $ac_executable_extensions; do
5756  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759    break 2
5760  fi
5761done
5762  done
5763IFS=$as_save_IFS
5764
5765  ;;
5766esac
5767fi
5768vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5769if test -n "$vi_cv_path_python"; then
5770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
5771$as_echo "$vi_cv_path_python" >&6; }
5772else
5773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774$as_echo "no" >&6; }
5775fi
5776
5777
5778  test -n "$vi_cv_path_python" && break
5779done
5780
5781  if test "X$vi_cv_path_python" != "X"; then
5782
5783        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
5784$as_echo_n "checking Python version... " >&6; }
5785if ${vi_cv_var_python_version+:} false; then :
5786  $as_echo_n "(cached) " >&6
5787else
5788  vi_cv_var_python_version=`
5789	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5790
5791fi
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5
5793$as_echo "$vi_cv_var_python_version" >&6; }
5794
5795        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5
5796$as_echo_n "checking Python is 2.3 or better... " >&6; }
5797    if ${vi_cv_path_python} -c \
5798	"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"
5799    then
5800      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
5801$as_echo "yep" >&6; }
5802
5803            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
5804$as_echo_n "checking Python's install prefix... " >&6; }
5805if ${vi_cv_path_python_pfx+:} false; then :
5806  $as_echo_n "(cached) " >&6
5807else
5808   vi_cv_path_python_pfx=`
5809	    ${vi_cv_path_python} -c \
5810		"import sys; print sys.prefix"`
5811fi
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5
5813$as_echo "$vi_cv_path_python_pfx" >&6; }
5814
5815            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
5816$as_echo_n "checking Python's execution prefix... " >&6; }
5817if ${vi_cv_path_python_epfx+:} false; then :
5818  $as_echo_n "(cached) " >&6
5819else
5820   vi_cv_path_python_epfx=`
5821	    ${vi_cv_path_python} -c \
5822		"import sys; print sys.exec_prefix"`
5823fi
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5
5825$as_echo "$vi_cv_path_python_epfx" >&6; }
5826
5827
5828      if ${vi_cv_path_pythonpath+:} false; then :
5829  $as_echo_n "(cached) " >&6
5830else
5831   vi_cv_path_pythonpath=`
5832	    unset PYTHONPATH;
5833	    ${vi_cv_path_python} -c \
5834		"import sys, string; print string.join(sys.path,':')"`
5835fi
5836
5837
5838
5839
5840# Check whether --with-python-config-dir was given.
5841if test "${with_python_config_dir+set}" = set; then :
5842  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"
5843fi
5844
5845
5846      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
5847$as_echo_n "checking Python's configuration directory... " >&6; }
5848if ${vi_cv_path_python_conf+:} false; then :
5849  $as_echo_n "(cached) " >&6
5850else
5851
5852	vi_cv_path_python_conf=
5853	d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"`
5854	if test -d "$d" && test -f "$d/config.c"; then
5855	  vi_cv_path_python_conf="$d"
5856	else
5857	  for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5858	    for subdir in lib64 lib share; do
5859	      d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5860	      if test -d "$d" && test -f "$d/config.c"; then
5861		vi_cv_path_python_conf="$d"
5862	      fi
5863	    done
5864	  done
5865	fi
5866
5867fi
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5
5869$as_echo "$vi_cv_path_python_conf" >&6; }
5870
5871      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5872
5873      if test "X$PYTHON_CONFDIR" = "X"; then
5874	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
5875$as_echo "can't find it!" >&6; }
5876      else
5877
5878			if ${vi_cv_path_python_plibs+:} false; then :
5879  $as_echo_n "(cached) " >&6
5880else
5881
5882	    pwd=`pwd`
5883	    tmp_mkf="$pwd/config-PyMake$$"
5884	    cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5885__:
5886	@echo "python_BASEMODLIBS='$(BASEMODLIBS)'"
5887	@echo "python_LIBS='$(LIBS)'"
5888	@echo "python_SYSLIBS='$(SYSLIBS)'"
5889	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5890	@echo "python_DLLLIBRARY='$(DLLLIBRARY)'"
5891	@echo "python_INSTSONAME='$(INSTSONAME)'"
5892	@echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'"
5893	@echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'"
5894	@echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'"
5895eof
5896	    	    eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5897	    rm -f -- "${tmp_mkf}"
5898	    if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5899		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5900	      vi_cv_path_python_plibs="-framework Python"
5901	      if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
5902		  vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python"
5903	      fi
5904	    else
5905	      if test "${vi_cv_var_python_version}" = "1.4"; then
5906		  vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5907	      else
5908		  vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5909	      fi
5910	      	      	      	      if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
5911	        python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'`
5912		python_link_path=`echo ${python_LINKFORSHARED} |   sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'`
5913	        if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
5914	          		  	          python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}"
5915		  if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
5916		    		    python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}"
5917	            	            		  fi
5918	          python_LINKFORSHARED="${python_link_symbol} ${python_link_path}"
5919	        fi
5920	      fi
5921	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5922	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5923	    fi
5924
5925fi
5926
5927	if ${vi_cv_dll_name_python+:} false; then :
5928  $as_echo_n "(cached) " >&6
5929else
5930
5931	  if test "X$python_DLLLIBRARY" != "X"; then
5932	    vi_cv_dll_name_python="$python_DLLLIBRARY"
5933	  else
5934	    vi_cv_dll_name_python="$python_INSTSONAME"
5935	  fi
5936
5937fi
5938
5939
5940	PYTHON_LIBS="${vi_cv_path_python_plibs}"
5941	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5942	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'"
5943	else
5944	  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}\"'"
5945	fi
5946	PYTHON_SRC="if_python.c"
5947	PYTHON_OBJ="objects/if_python.o"
5948	if test "${vi_cv_var_python_version}" = "1.4"; then
5949	   PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5950	fi
5951    PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5952
5953								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
5954$as_echo_n "checking if -pthread should be used... " >&6; }
5955	threadsafe_flag=
5956	thread_lib=
5957	        if test "`(uname) 2>/dev/null`" != Darwin; then
5958	  test "$GCC" = yes && threadsafe_flag="-pthread"
5959	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
5960	    threadsafe_flag="-D_THREAD_SAFE"
5961	    thread_lib="-pthread"
5962	  fi
5963	  if test "`(uname) 2>/dev/null`" = SunOS; then
5964	    threadsafe_flag="-pthreads"
5965	  fi
5966	fi
5967	libs_save_old=$LIBS
5968	if test -n "$threadsafe_flag"; then
5969	  cflags_save=$CFLAGS
5970	  CFLAGS="$CFLAGS $threadsafe_flag"
5971	  LIBS="$LIBS $thread_lib"
5972	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973/* end confdefs.h.  */
5974
5975int
5976main ()
5977{
5978
5979  ;
5980  return 0;
5981}
5982_ACEOF
5983if ac_fn_c_try_link "$LINENO"; then :
5984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5985$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5986else
5987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988$as_echo "no" >&6; }; LIBS=$libs_save_old
5989
5990fi
5991rm -f core conftest.err conftest.$ac_objext \
5992    conftest$ac_exeext conftest.$ac_ext
5993	  CFLAGS=$cflags_save
5994	else
5995	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996$as_echo "no" >&6; }
5997	fi
5998
5999			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5
6000$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
6001	cflags_save=$CFLAGS
6002	libs_save=$LIBS
6003	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6004	LIBS="$LIBS $PYTHON_LIBS"
6005	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006/* end confdefs.h.  */
6007
6008int
6009main ()
6010{
6011
6012  ;
6013  return 0;
6014}
6015_ACEOF
6016if ac_fn_c_try_link "$LINENO"; then :
6017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6018$as_echo "yes" >&6; }; python_ok=yes
6019else
6020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5
6021$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
6022fi
6023rm -f core conftest.err conftest.$ac_objext \
6024    conftest$ac_exeext conftest.$ac_ext
6025	CFLAGS=$cflags_save
6026	LIBS=$libs_save
6027	if test $python_ok = yes; then
6028	  $as_echo "#define FEAT_PYTHON 1" >>confdefs.h
6029
6030	else
6031	  LIBS=$libs_save_old
6032	  PYTHON_SRC=
6033	  PYTHON_OBJ=
6034	  PYTHON_LIBS=
6035	  PYTHON_CFLAGS=
6036	fi
6037      fi
6038    else
6039      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6040$as_echo "too old" >&6; }
6041    fi
6042  fi
6043
6044  if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
6045    as_fn_error $? "could not configure python" "$LINENO" 5
6046  fi
6047fi
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5
6058$as_echo_n "checking --enable-python3interp argument... " >&6; }
6059# Check whether --enable-python3interp was given.
6060if test "${enable_python3interp+set}" = set; then :
6061  enableval=$enable_python3interp;
6062else
6063  enable_python3interp="no"
6064fi
6065
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5
6067$as_echo "$enable_python3interp" >&6; }
6068if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
6069  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6070    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6071  fi
6072
6073    for ac_prog in python3 python
6074do
6075  # Extract the first word of "$ac_prog", so it can be a program name with args.
6076set dummy $ac_prog; ac_word=$2
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078$as_echo_n "checking for $ac_word... " >&6; }
6079if ${ac_cv_path_vi_cv_path_python3+:} false; then :
6080  $as_echo_n "(cached) " >&6
6081else
6082  case $vi_cv_path_python3 in
6083  [\\/]* | ?:[\\/]*)
6084  ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path.
6085  ;;
6086  *)
6087  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088for as_dir in $PATH
6089do
6090  IFS=$as_save_IFS
6091  test -z "$as_dir" && as_dir=.
6092    for ac_exec_ext in '' $ac_executable_extensions; do
6093  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6094    ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext"
6095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096    break 2
6097  fi
6098done
6099  done
6100IFS=$as_save_IFS
6101
6102  ;;
6103esac
6104fi
6105vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3
6106if test -n "$vi_cv_path_python3"; then
6107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6108$as_echo "$vi_cv_path_python3" >&6; }
6109else
6110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111$as_echo "no" >&6; }
6112fi
6113
6114
6115  test -n "$vi_cv_path_python3" && break
6116done
6117
6118  if test "X$vi_cv_path_python3" != "X"; then
6119
6120        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6121$as_echo_n "checking Python version... " >&6; }
6122if ${vi_cv_var_python3_version+:} false; then :
6123  $as_echo_n "(cached) " >&6
6124else
6125  vi_cv_var_python3_version=`
6126          ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'`
6127
6128fi
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5
6130$as_echo "$vi_cv_var_python3_version" >&6; }
6131
6132        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5
6133$as_echo_n "checking Python is 3.0 or better... " >&6; }
6134    if ${vi_cv_path_python3} -c \
6135      "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)"
6136    then
6137      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6138$as_echo "yep" >&6; }
6139
6140            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5
6141$as_echo_n "checking Python's abiflags... " >&6; }
6142if ${vi_cv_var_python3_abiflags+:} false; then :
6143  $as_echo_n "(cached) " >&6
6144else
6145
6146       vi_cv_var_python3_abiflags=
6147       if ${vi_cv_path_python3} -c \
6148           "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)"
6149       then
6150         vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \
6151           "import sys; print(sys.abiflags)"`
6152       fi
6153fi
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5
6155$as_echo "$vi_cv_var_python3_abiflags" >&6; }
6156
6157            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6158$as_echo_n "checking Python's install prefix... " >&6; }
6159if ${vi_cv_path_python3_pfx+:} false; then :
6160  $as_echo_n "(cached) " >&6
6161else
6162   vi_cv_path_python3_pfx=`
6163       ${vi_cv_path_python3} -c \
6164       "import sys; print(sys.prefix)"`
6165fi
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5
6167$as_echo "$vi_cv_path_python3_pfx" >&6; }
6168
6169            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6170$as_echo_n "checking Python's execution prefix... " >&6; }
6171if ${vi_cv_path_python3_epfx+:} false; then :
6172  $as_echo_n "(cached) " >&6
6173else
6174   vi_cv_path_python3_epfx=`
6175       ${vi_cv_path_python3} -c \
6176       "import sys; print(sys.exec_prefix)"`
6177fi
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5
6179$as_echo "$vi_cv_path_python3_epfx" >&6; }
6180
6181
6182      if ${vi_cv_path_python3path+:} false; then :
6183  $as_echo_n "(cached) " >&6
6184else
6185   vi_cv_path_python3path=`
6186       unset PYTHONPATH;
6187       ${vi_cv_path_python3} -c \
6188       "import sys, string; print(':'.join(sys.path))"`
6189fi
6190
6191
6192
6193
6194# Check whether --with-python3-config-dir was given.
6195if test "${with_python3_config_dir+set}" = set; then :
6196  withval=$with_python3_config_dir;  vi_cv_path_python3_conf="${withval}"
6197fi
6198
6199
6200      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6201$as_echo_n "checking Python's configuration directory... " >&6; }
6202if ${vi_cv_path_python3_conf+:} false; then :
6203  $as_echo_n "(cached) " >&6
6204else
6205
6206       vi_cv_path_python3_conf=
6207       config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6208       d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"`
6209       if test -d "$d" && test -f "$d/config.c"; then
6210         vi_cv_path_python3_conf="$d"
6211       else
6212         for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do
6213	   for subdir in lib64 lib share; do
6214	     d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}"
6215	     if test -d "$d" && test -f "$d/config.c"; then
6216	       vi_cv_path_python3_conf="$d"
6217	     fi
6218	   done
6219         done
6220       fi
6221
6222fi
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5
6224$as_echo "$vi_cv_path_python3_conf" >&6; }
6225
6226      PYTHON3_CONFDIR="${vi_cv_path_python3_conf}"
6227
6228      if test "X$PYTHON3_CONFDIR" = "X"; then
6229        { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6230$as_echo "can't find it!" >&6; }
6231      else
6232
6233                        if ${vi_cv_path_python3_plibs+:} false; then :
6234  $as_echo_n "(cached) " >&6
6235else
6236
6237            pwd=`pwd`
6238            tmp_mkf="$pwd/config-PyMake$$"
6239            cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6240__:
6241	@echo "python3_BASEMODLIBS='$(BASEMODLIBS)'"
6242	@echo "python3_LIBS='$(LIBS)'"
6243	@echo "python3_SYSLIBS='$(SYSLIBS)'"
6244	@echo "python3_DLLLIBRARY='$(DLLLIBRARY)'"
6245	@echo "python3_INSTSONAME='$(INSTSONAME)'"
6246eof
6247	    	    eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6248	    rm -f -- "${tmp_mkf}"
6249	    vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6250	    vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
6251	    	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
6252	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
6253
6254fi
6255
6256	if ${vi_cv_dll_name_python3+:} false; then :
6257  $as_echo_n "(cached) " >&6
6258else
6259
6260	  if test "X$python3_DLLLIBRARY" != "X"; then
6261	    vi_cv_dll_name_python3="$python3_DLLLIBRARY"
6262	  else
6263	    vi_cv_dll_name_python3="$python3_INSTSONAME"
6264	  fi
6265
6266fi
6267
6268
6269        PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
6270        if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
6271          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}\"'"
6272        else
6273          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}\"'"
6274        fi
6275        PYTHON3_SRC="if_python3.c"
6276        PYTHON3_OBJ="objects/if_python3.o"
6277
6278                                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6279$as_echo_n "checking if -pthread should be used... " >&6; }
6280        threadsafe_flag=
6281        thread_lib=
6282                if test "`(uname) 2>/dev/null`" != Darwin; then
6283          test "$GCC" = yes && threadsafe_flag="-pthread"
6284          if test "`(uname) 2>/dev/null`" = FreeBSD; then
6285            threadsafe_flag="-D_THREAD_SAFE"
6286            thread_lib="-pthread"
6287          fi
6288          if test "`(uname) 2>/dev/null`" = SunOS; then
6289            threadsafe_flag="-pthreads"
6290          fi
6291        fi
6292        libs_save_old=$LIBS
6293        if test -n "$threadsafe_flag"; then
6294          cflags_save=$CFLAGS
6295          CFLAGS="$CFLAGS $threadsafe_flag"
6296          LIBS="$LIBS $thread_lib"
6297          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h.  */
6299
6300int
6301main ()
6302{
6303
6304  ;
6305  return 0;
6306}
6307_ACEOF
6308if ac_fn_c_try_link "$LINENO"; then :
6309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6310$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag"
6311else
6312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313$as_echo "no" >&6; }; LIBS=$libs_save_old
6314
6315fi
6316rm -f core conftest.err conftest.$ac_objext \
6317    conftest$ac_exeext conftest.$ac_ext
6318          CFLAGS=$cflags_save
6319        else
6320          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321$as_echo "no" >&6; }
6322        fi
6323
6324                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5
6325$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; }
6326        cflags_save=$CFLAGS
6327        libs_save=$LIBS
6328        CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6329        LIBS="$LIBS $PYTHON3_LIBS"
6330        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331/* end confdefs.h.  */
6332
6333int
6334main ()
6335{
6336
6337  ;
6338  return 0;
6339}
6340_ACEOF
6341if ac_fn_c_try_link "$LINENO"; then :
6342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6343$as_echo "yes" >&6; }; python3_ok=yes
6344else
6345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5
6346$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no
6347fi
6348rm -f core conftest.err conftest.$ac_objext \
6349    conftest$ac_exeext conftest.$ac_ext
6350        CFLAGS=$cflags_save
6351        LIBS=$libs_save
6352        if test "$python3_ok" = yes; then
6353          $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h
6354
6355        else
6356          LIBS=$libs_save_old
6357          PYTHON3_SRC=
6358          PYTHON3_OBJ=
6359          PYTHON3_LIBS=
6360          PYTHON3_CFLAGS=
6361        fi
6362      fi
6363    else
6364      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6365$as_echo "too old" >&6; }
6366    fi
6367  fi
6368  if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then
6369    as_fn_error $? "could not configure python3" "$LINENO" 5
6370  fi
6371fi
6372
6373
6374
6375
6376
6377
6378
6379if test "$python_ok" = yes && test "$python3_ok" = yes; then
6380  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
6381
6382  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
6383
6384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5
6385$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; }
6386  cflags_save=$CFLAGS
6387  CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6388  libs_save=$LIBS
6389    LIBS="-ldl $LIBS"
6390  if test "$cross_compiling" = yes; then :
6391  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6393as_fn_error $? "cannot run test program while cross compiling
6394See \`config.log' for more details" "$LINENO" 5; }
6395else
6396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397/* end confdefs.h.  */
6398
6399    #include <dlfcn.h>
6400    /* If this program fails, then RTLD_GLOBAL is needed.
6401     * RTLD_GLOBAL will be used and then it is not possible to
6402     * have both python versions enabled in the same vim instance.
6403     * Only the first python version used will be switched on.
6404     */
6405
6406    int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
6407    {
6408      int needed = 0;
6409      void* pylib = dlopen(python_instsoname, RTLD_LAZY);
6410      if (pylib != 0)
6411      {
6412          void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome");
6413          void (*init)(void) = dlsym(pylib, "Py_Initialize");
6414          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
6415          void (*final)(void) = dlsym(pylib, "Py_Finalize");
6416          (*pfx)(prefix);
6417          (*init)();
6418          needed = (*simple)("import termios") == -1;
6419          (*final)();
6420          dlclose(pylib);
6421      }
6422      return !needed;
6423    }
6424
6425    int main(int argc, char** argv)
6426    {
6427      int not_needed = 0;
6428      if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}"))
6429            not_needed = 1;
6430      return !not_needed;
6431    }
6432_ACEOF
6433if ac_fn_c_try_run "$LINENO"; then :
6434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6435$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h
6436
6437else
6438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439$as_echo "no" >&6; }
6440fi
6441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6442  conftest.$ac_objext conftest.beam conftest.$ac_ext
6443fi
6444
6445
6446  CFLAGS=$cflags_save
6447  LIBS=$libs_save
6448
6449  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5
6450$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; }
6451  cflags_save=$CFLAGS
6452  CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6453  libs_save=$LIBS
6454    LIBS="-ldl $LIBS"
6455  if test "$cross_compiling" = yes; then :
6456  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6458as_fn_error $? "cannot run test program while cross compiling
6459See \`config.log' for more details" "$LINENO" 5; }
6460else
6461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462/* end confdefs.h.  */
6463
6464    #include <dlfcn.h>
6465    #include <wchar.h>
6466    /* If this program fails, then RTLD_GLOBAL is needed.
6467     * RTLD_GLOBAL will be used and then it is not possible to
6468     * have both python versions enabled in the same vim instance.
6469     * Only the first python version used will be switched on.
6470     */
6471
6472    int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
6473    {
6474      int needed = 0;
6475      void* pylib = dlopen(python_instsoname, RTLD_LAZY);
6476      if (pylib != 0)
6477      {
6478          void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome");
6479          void (*init)(void) = dlsym(pylib, "Py_Initialize");
6480          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
6481          void (*final)(void) = dlsym(pylib, "Py_Finalize");
6482          (*pfx)(prefix);
6483          (*init)();
6484          needed = (*simple)("import termios") == -1;
6485          (*final)();
6486          dlclose(pylib);
6487      }
6488      return !needed;
6489    }
6490
6491    int main(int argc, char** argv)
6492    {
6493      int not_needed = 0;
6494      if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}"))
6495            not_needed = 1;
6496      return !not_needed;
6497    }
6498_ACEOF
6499if ac_fn_c_try_run "$LINENO"; then :
6500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6501$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h
6502
6503else
6504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505$as_echo "no" >&6; }
6506fi
6507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6508  conftest.$ac_objext conftest.beam conftest.$ac_ext
6509fi
6510
6511
6512  CFLAGS=$cflags_save
6513  LIBS=$libs_save
6514
6515  PYTHON_SRC="if_python.c"
6516  PYTHON_OBJ="objects/if_python.o"
6517  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
6518  PYTHON_LIBS=
6519  PYTHON3_SRC="if_python3.c"
6520  PYTHON3_OBJ="objects/if_python3.o"
6521  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
6522  PYTHON3_LIBS=
6523elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then
6524  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
6525
6526  PYTHON_SRC="if_python.c"
6527  PYTHON_OBJ="objects/if_python.o"
6528  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
6529  PYTHON_LIBS=
6530elif test "$python_ok" = yes; then
6531      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5
6532$as_echo_n "checking if -fPIE can be added for Python... " >&6; }
6533  cflags_save=$CFLAGS
6534  libs_save=$LIBS
6535  CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE"
6536  LIBS="$LIBS $PYTHON_LIBS"
6537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538/* end confdefs.h.  */
6539
6540int
6541main ()
6542{
6543
6544  ;
6545  return 0;
6546}
6547_ACEOF
6548if ac_fn_c_try_link "$LINENO"; then :
6549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6550$as_echo "yes" >&6; }; fpie_ok=yes
6551else
6552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553$as_echo "no" >&6; }; fpie_ok=no
6554fi
6555rm -f core conftest.err conftest.$ac_objext \
6556    conftest$ac_exeext conftest.$ac_ext
6557  CFLAGS=$cflags_save
6558  LIBS=$libs_save
6559  if test $fpie_ok = yes; then
6560    PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE"
6561  fi
6562elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then
6563  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
6564
6565  PYTHON3_SRC="if_python3.c"
6566  PYTHON3_OBJ="objects/if_python3.o"
6567  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
6568  PYTHON3_LIBS=
6569elif test "$python3_ok" = yes; then
6570      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5
6571$as_echo_n "checking if -fPIE can be added for Python3... " >&6; }
6572  cflags_save=$CFLAGS
6573  libs_save=$LIBS
6574  CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE"
6575  LIBS="$LIBS $PYTHON3_LIBS"
6576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577/* end confdefs.h.  */
6578
6579int
6580main ()
6581{
6582
6583  ;
6584  return 0;
6585}
6586_ACEOF
6587if ac_fn_c_try_link "$LINENO"; then :
6588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6589$as_echo "yes" >&6; }; fpie_ok=yes
6590else
6591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592$as_echo "no" >&6; }; fpie_ok=no
6593fi
6594rm -f core conftest.err conftest.$ac_objext \
6595    conftest$ac_exeext conftest.$ac_ext
6596  CFLAGS=$cflags_save
6597  LIBS=$libs_save
6598  if test $fpie_ok = yes; then
6599    PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE"
6600  fi
6601fi
6602
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5
6604$as_echo_n "checking --enable-tclinterp argument... " >&6; }
6605# Check whether --enable-tclinterp was given.
6606if test "${enable_tclinterp+set}" = set; then :
6607  enableval=$enable_tclinterp;
6608else
6609  enable_tclinterp="no"
6610fi
6611
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5
6613$as_echo "$enable_tclinterp" >&6; }
6614
6615if test "$enable_tclinterp" = "yes"; then
6616
6617    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5
6618$as_echo_n "checking --with-tclsh argument... " >&6; }
6619
6620# Check whether --with-tclsh was given.
6621if test "${with_tclsh+set}" = set; then :
6622  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5
6623$as_echo "$tclsh_name" >&6; }
6624else
6625  tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626$as_echo "no" >&6; }
6627fi
6628
6629  # Extract the first word of "$tclsh_name", so it can be a program name with args.
6630set dummy $tclsh_name; ac_word=$2
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632$as_echo_n "checking for $ac_word... " >&6; }
6633if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6634  $as_echo_n "(cached) " >&6
6635else
6636  case $vi_cv_path_tcl in
6637  [\\/]* | ?:[\\/]*)
6638  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6639  ;;
6640  *)
6641  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642for as_dir in $PATH
6643do
6644  IFS=$as_save_IFS
6645  test -z "$as_dir" && as_dir=.
6646    for ac_exec_ext in '' $ac_executable_extensions; do
6647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6648    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650    break 2
6651  fi
6652done
6653  done
6654IFS=$as_save_IFS
6655
6656  ;;
6657esac
6658fi
6659vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6660if test -n "$vi_cv_path_tcl"; then
6661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6662$as_echo "$vi_cv_path_tcl" >&6; }
6663else
6664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665$as_echo "no" >&6; }
6666fi
6667
6668
6669
6670
6671    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
6672    tclsh_name="tclsh8.4"
6673    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6674set dummy $tclsh_name; ac_word=$2
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676$as_echo_n "checking for $ac_word... " >&6; }
6677if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6678  $as_echo_n "(cached) " >&6
6679else
6680  case $vi_cv_path_tcl in
6681  [\\/]* | ?:[\\/]*)
6682  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6683  ;;
6684  *)
6685  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686for as_dir in $PATH
6687do
6688  IFS=$as_save_IFS
6689  test -z "$as_dir" && as_dir=.
6690    for ac_exec_ext in '' $ac_executable_extensions; do
6691  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6692    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694    break 2
6695  fi
6696done
6697  done
6698IFS=$as_save_IFS
6699
6700  ;;
6701esac
6702fi
6703vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6704if test -n "$vi_cv_path_tcl"; then
6705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6706$as_echo "$vi_cv_path_tcl" >&6; }
6707else
6708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709$as_echo "no" >&6; }
6710fi
6711
6712
6713  fi
6714  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
6715    tclsh_name="tclsh8.2"
6716    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6717set dummy $tclsh_name; ac_word=$2
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719$as_echo_n "checking for $ac_word... " >&6; }
6720if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6721  $as_echo_n "(cached) " >&6
6722else
6723  case $vi_cv_path_tcl in
6724  [\\/]* | ?:[\\/]*)
6725  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6726  ;;
6727  *)
6728  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729for as_dir in $PATH
6730do
6731  IFS=$as_save_IFS
6732  test -z "$as_dir" && as_dir=.
6733    for ac_exec_ext in '' $ac_executable_extensions; do
6734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6735    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737    break 2
6738  fi
6739done
6740  done
6741IFS=$as_save_IFS
6742
6743  ;;
6744esac
6745fi
6746vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6747if test -n "$vi_cv_path_tcl"; then
6748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6749$as_echo "$vi_cv_path_tcl" >&6; }
6750else
6751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752$as_echo "no" >&6; }
6753fi
6754
6755
6756  fi
6757  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
6758    tclsh_name="tclsh8.0"
6759    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6760set dummy $tclsh_name; ac_word=$2
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762$as_echo_n "checking for $ac_word... " >&6; }
6763if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6764  $as_echo_n "(cached) " >&6
6765else
6766  case $vi_cv_path_tcl in
6767  [\\/]* | ?:[\\/]*)
6768  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6769  ;;
6770  *)
6771  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772for as_dir in $PATH
6773do
6774  IFS=$as_save_IFS
6775  test -z "$as_dir" && as_dir=.
6776    for ac_exec_ext in '' $ac_executable_extensions; do
6777  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6778    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780    break 2
6781  fi
6782done
6783  done
6784IFS=$as_save_IFS
6785
6786  ;;
6787esac
6788fi
6789vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6790if test -n "$vi_cv_path_tcl"; then
6791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6792$as_echo "$vi_cv_path_tcl" >&6; }
6793else
6794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795$as_echo "no" >&6; }
6796fi
6797
6798
6799  fi
6800    if test "X$vi_cv_path_tcl" = "X"; then
6801    tclsh_name="tclsh"
6802    # Extract the first word of "$tclsh_name", so it can be a program name with args.
6803set dummy $tclsh_name; ac_word=$2
6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805$as_echo_n "checking for $ac_word... " >&6; }
6806if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
6807  $as_echo_n "(cached) " >&6
6808else
6809  case $vi_cv_path_tcl in
6810  [\\/]* | ?:[\\/]*)
6811  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
6812  ;;
6813  *)
6814  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815for as_dir in $PATH
6816do
6817  IFS=$as_save_IFS
6818  test -z "$as_dir" && as_dir=.
6819    for ac_exec_ext in '' $ac_executable_extensions; do
6820  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6821    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
6822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6823    break 2
6824  fi
6825done
6826  done
6827IFS=$as_save_IFS
6828
6829  ;;
6830esac
6831fi
6832vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
6833if test -n "$vi_cv_path_tcl"; then
6834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
6835$as_echo "$vi_cv_path_tcl" >&6; }
6836else
6837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838$as_echo "no" >&6; }
6839fi
6840
6841
6842  fi
6843  if test "X$vi_cv_path_tcl" != "X"; then
6844    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5
6845$as_echo_n "checking Tcl version... " >&6; }
6846    if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
6847      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
6848      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5
6849$as_echo "$tclver - OK" >&6; };
6850      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 -`
6851
6852      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5
6853$as_echo_n "checking for location of Tcl include... " >&6; }
6854      if test "x$MACOSX" != "xyes"; then
6855	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
6856      else
6857		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
6858      fi
6859      TCL_INC=
6860      for try in $tclinc; do
6861	if test -f "$try/tcl.h"; then
6862	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5
6863$as_echo "$try/tcl.h" >&6; }
6864	  TCL_INC=$try
6865	  break
6866	fi
6867      done
6868      if test -z "$TCL_INC"; then
6869	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
6870$as_echo "<not found>" >&6; }
6871	SKIP_TCL=YES
6872      fi
6873      if test -z "$SKIP_TCL"; then
6874	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5
6875$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
6876	if test "x$MACOSX" != "xyes"; then
6877	  tclcnf=`echo $tclinc | sed s/include/lib/g`
6878	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
6879	else
6880	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
6881	fi
6882	for try in $tclcnf; do
6883	  if test -f $try/tclConfig.sh; then
6884	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5
6885$as_echo "$try/tclConfig.sh" >&6; }
6886	    . $try/tclConfig.sh
6887	    	    TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
6888	    	    	    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'`
6889	    break
6890	  fi
6891	done
6892	if test -z "$TCL_LIBS"; then
6893	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
6894$as_echo "<not found>" >&6; }
6895	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5
6896$as_echo_n "checking for Tcl library by myself... " >&6; }
6897	  tcllib=`echo $tclinc | sed s/include/lib/g`
6898	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
6899	  for ext in .so .a ; do
6900	    for ver in "" $tclver ; do
6901	      for try in $tcllib ; do
6902		trylib=tcl$ver$ext
6903		if test -f $try/lib$trylib ; then
6904		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5
6905$as_echo "$try/lib$trylib" >&6; }
6906		  TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
6907		  if test "`(uname) 2>/dev/null`" = SunOS &&
6908					 uname -r | grep '^5' >/dev/null; then
6909		    TCL_LIBS="$TCL_LIBS -R $try"
6910		  fi
6911		  break 3
6912		fi
6913	      done
6914	    done
6915	  done
6916	  if test -z "$TCL_LIBS"; then
6917	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
6918$as_echo "<not found>" >&6; }
6919	    SKIP_TCL=YES
6920	  fi
6921	fi
6922	if test -z "$SKIP_TCL"; then
6923	  $as_echo "#define FEAT_TCL 1" >>confdefs.h
6924
6925	  TCL_SRC=if_tcl.c
6926	  TCL_OBJ=objects/if_tcl.o
6927	  TCL_PRO=if_tcl.pro
6928	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
6929	fi
6930      fi
6931    else
6932      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5
6933$as_echo "too old; need Tcl version 8.0 or later" >&6; }
6934    fi
6935  fi
6936  if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
6937    as_fn_error $? "could not configure Tcl" "$LINENO" 5
6938  fi
6939fi
6940
6941
6942
6943
6944
6945
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5
6947$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
6948# Check whether --enable-rubyinterp was given.
6949if test "${enable_rubyinterp+set}" = set; then :
6950  enableval=$enable_rubyinterp;
6951else
6952  enable_rubyinterp="no"
6953fi
6954
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
6956$as_echo "$enable_rubyinterp" >&6; }
6957if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
6958  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6959    as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5
6960  fi
6961
6962  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
6963$as_echo_n "checking --with-ruby-command argument... " >&6; }
6964
6965
6966# Check whether --with-ruby-command was given.
6967if test "${with_ruby_command+set}" = set; then :
6968  withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
6969$as_echo "$RUBY_CMD" >&6; }
6970else
6971  RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
6972$as_echo "defaulting to $RUBY_CMD" >&6; }
6973fi
6974
6975  # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
6976set dummy $RUBY_CMD; ac_word=$2
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978$as_echo_n "checking for $ac_word... " >&6; }
6979if ${ac_cv_path_vi_cv_path_ruby+:} false; then :
6980  $as_echo_n "(cached) " >&6
6981else
6982  case $vi_cv_path_ruby in
6983  [\\/]* | ?:[\\/]*)
6984  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
6985  ;;
6986  *)
6987  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988for as_dir in $PATH
6989do
6990  IFS=$as_save_IFS
6991  test -z "$as_dir" && as_dir=.
6992    for ac_exec_ext in '' $ac_executable_extensions; do
6993  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
6995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996    break 2
6997  fi
6998done
6999  done
7000IFS=$as_save_IFS
7001
7002  ;;
7003esac
7004fi
7005vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
7006if test -n "$vi_cv_path_ruby"; then
7007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5
7008$as_echo "$vi_cv_path_ruby" >&6; }
7009else
7010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011$as_echo "no" >&6; }
7012fi
7013
7014
7015  if test "X$vi_cv_path_ruby" != "X"; then
7016    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5
7017$as_echo_n "checking Ruby version... " >&6; }
7018    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
7019      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
7020$as_echo "OK" >&6; }
7021      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5
7022$as_echo_n "checking Ruby rbconfig... " >&6; }
7023      ruby_rbconfig="RbConfig"
7024      if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then
7025	ruby_rbconfig="Config"
7026      fi
7027      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5
7028$as_echo "$ruby_rbconfig" >&6; }
7029      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
7030$as_echo_n "checking Ruby header files... " >&6; }
7031      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null`
7032      if test "X$rubyhdrdir" != "X"; then
7033	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
7034$as_echo "$rubyhdrdir" >&6; }
7035	RUBY_CFLAGS="-I$rubyhdrdir"
7036        rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"`
7037        if test -d "$rubyarchdir"; then
7038          RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir"
7039        fi
7040        rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"`
7041	if test "X$rubyversion" = "X"; then
7042	  rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"`
7043	fi
7044        RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
7045	rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"`
7046	if test "X$rubylibs" != "X"; then
7047	  RUBY_LIBS="$rubylibs"
7048	fi
7049	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"`
7050	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"`
7051	rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"`
7052	if test -f "$rubylibdir/$librubya"; then
7053	  librubyarg="$librubyarg"
7054	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7055	elif test "$librubyarg" = "libruby.a"; then
7056	  	  librubyarg="-lruby"
7057	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7058	fi
7059
7060	if test "X$librubyarg" != "X"; then
7061	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
7062	fi
7063	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"`
7064	if test "X$rubyldflags" != "X"; then
7065	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
7066	  if test "X$rubyldflags" != "X"; then
7067	    if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then
7068	      LDFLAGS="$rubyldflags $LDFLAGS"
7069	    fi
7070	  fi
7071	fi
7072	RUBY_SRC="if_ruby.c"
7073	RUBY_OBJ="objects/if_ruby.o"
7074	RUBY_PRO="if_ruby.pro"
7075	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
7076
7077	if test "$enable_rubyinterp" = "dynamic"; then
7078	  libruby=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"`
7079	  $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h
7080
7081	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS"
7082	  RUBY_LIBS=
7083	fi
7084      else
7085	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
7086$as_echo "not found; disabling Ruby" >&6; }
7087      fi
7088    else
7089      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5
7090$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
7091    fi
7092  fi
7093
7094  if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
7095    as_fn_error $? "could not configure Ruby" "$LINENO" 5
7096  fi
7097fi
7098
7099
7100
7101
7102
7103
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5
7105$as_echo_n "checking --enable-cscope argument... " >&6; }
7106# Check whether --enable-cscope was given.
7107if test "${enable_cscope+set}" = set; then :
7108  enableval=$enable_cscope;
7109else
7110  enable_cscope="no"
7111fi
7112
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
7114$as_echo "$enable_cscope" >&6; }
7115if test "$enable_cscope" = "yes"; then
7116  $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h
7117
7118fi
7119
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5
7121$as_echo_n "checking --enable-workshop argument... " >&6; }
7122# Check whether --enable-workshop was given.
7123if test "${enable_workshop+set}" = set; then :
7124  enableval=$enable_workshop;
7125else
7126  enable_workshop="no"
7127fi
7128
7129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5
7130$as_echo "$enable_workshop" >&6; }
7131if test "$enable_workshop" = "yes"; then
7132  $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h
7133
7134  WORKSHOP_SRC="workshop.c integration.c"
7135
7136  WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
7137
7138  if test "${enable_gui-xxx}" = xxx; then
7139    enable_gui=motif
7140  fi
7141fi
7142
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5
7144$as_echo_n "checking --disable-netbeans argument... " >&6; }
7145# Check whether --enable-netbeans was given.
7146if test "${enable_netbeans+set}" = set; then :
7147  enableval=$enable_netbeans;
7148else
7149  enable_netbeans="yes"
7150fi
7151
7152if test "$enable_netbeans" = "yes"; then
7153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154$as_echo "no" >&6; }
7155    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
7156$as_echo_n "checking for socket in -lsocket... " >&6; }
7157if ${ac_cv_lib_socket_socket+:} false; then :
7158  $as_echo_n "(cached) " >&6
7159else
7160  ac_check_lib_save_LIBS=$LIBS
7161LIBS="-lsocket  $LIBS"
7162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163/* end confdefs.h.  */
7164
7165/* Override any GCC internal prototype to avoid an error.
7166   Use char because int might match the return type of a GCC
7167   builtin and then its argument prototype would still apply.  */
7168#ifdef __cplusplus
7169extern "C"
7170#endif
7171char socket ();
7172int
7173main ()
7174{
7175return socket ();
7176  ;
7177  return 0;
7178}
7179_ACEOF
7180if ac_fn_c_try_link "$LINENO"; then :
7181  ac_cv_lib_socket_socket=yes
7182else
7183  ac_cv_lib_socket_socket=no
7184fi
7185rm -f core conftest.err conftest.$ac_objext \
7186    conftest$ac_exeext conftest.$ac_ext
7187LIBS=$ac_check_lib_save_LIBS
7188fi
7189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
7190$as_echo "$ac_cv_lib_socket_socket" >&6; }
7191if test "x$ac_cv_lib_socket_socket" = xyes; then :
7192  cat >>confdefs.h <<_ACEOF
7193#define HAVE_LIBSOCKET 1
7194_ACEOF
7195
7196  LIBS="-lsocket $LIBS"
7197
7198fi
7199
7200  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7201$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7202if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7203  $as_echo_n "(cached) " >&6
7204else
7205  ac_check_lib_save_LIBS=$LIBS
7206LIBS="-lnsl  $LIBS"
7207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208/* end confdefs.h.  */
7209
7210/* Override any GCC internal prototype to avoid an error.
7211   Use char because int might match the return type of a GCC
7212   builtin and then its argument prototype would still apply.  */
7213#ifdef __cplusplus
7214extern "C"
7215#endif
7216char gethostbyname ();
7217int
7218main ()
7219{
7220return gethostbyname ();
7221  ;
7222  return 0;
7223}
7224_ACEOF
7225if ac_fn_c_try_link "$LINENO"; then :
7226  ac_cv_lib_nsl_gethostbyname=yes
7227else
7228  ac_cv_lib_nsl_gethostbyname=no
7229fi
7230rm -f core conftest.err conftest.$ac_objext \
7231    conftest$ac_exeext conftest.$ac_ext
7232LIBS=$ac_check_lib_save_LIBS
7233fi
7234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7235$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7236if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7237  cat >>confdefs.h <<_ACEOF
7238#define HAVE_LIBNSL 1
7239_ACEOF
7240
7241  LIBS="-lnsl $LIBS"
7242
7243fi
7244
7245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling netbeans integration is possible" >&5
7246$as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
7247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248/* end confdefs.h.  */
7249
7250#include <stdio.h>
7251#include <stdlib.h>
7252#include <stdarg.h>
7253#include <fcntl.h>
7254#include <netdb.h>
7255#include <netinet/in.h>
7256#include <errno.h>
7257#include <sys/types.h>
7258#include <sys/socket.h>
7259	/* Check bitfields */
7260	struct nbbuf {
7261	unsigned int  initDone:1;
7262	ushort signmaplen;
7263	};
7264
7265int
7266main ()
7267{
7268
7269		/* Check creating a socket. */
7270		struct sockaddr_in server;
7271		(void)socket(AF_INET, SOCK_STREAM, 0);
7272		(void)htons(100);
7273		(void)gethostbyname("microsoft.com");
7274		if (errno == ECONNREFUSED)
7275		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
7276
7277  ;
7278  return 0;
7279}
7280_ACEOF
7281if ac_fn_c_try_link "$LINENO"; then :
7282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7283$as_echo "yes" >&6; }
7284else
7285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286$as_echo "no" >&6; }; enable_netbeans="no"
7287fi
7288rm -f core conftest.err conftest.$ac_objext \
7289    conftest$ac_exeext conftest.$ac_ext
7290else
7291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7292$as_echo "yes" >&6; }
7293fi
7294if test "$enable_netbeans" = "yes"; then
7295  $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h
7296
7297  NETBEANS_SRC="netbeans.c"
7298
7299  NETBEANS_OBJ="objects/netbeans.o"
7300
7301fi
7302
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-sniff argument" >&5
7304$as_echo_n "checking --enable-sniff argument... " >&6; }
7305# Check whether --enable-sniff was given.
7306if test "${enable_sniff+set}" = set; then :
7307  enableval=$enable_sniff;
7308else
7309  enable_sniff="no"
7310fi
7311
7312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sniff" >&5
7313$as_echo "$enable_sniff" >&6; }
7314if test "$enable_sniff" = "yes"; then
7315  $as_echo "#define FEAT_SNIFF 1" >>confdefs.h
7316
7317  SNIFF_SRC="if_sniff.c"
7318
7319  SNIFF_OBJ="objects/if_sniff.o"
7320
7321fi
7322
7323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5
7324$as_echo_n "checking --enable-multibyte argument... " >&6; }
7325# Check whether --enable-multibyte was given.
7326if test "${enable_multibyte+set}" = set; then :
7327  enableval=$enable_multibyte;
7328else
7329  enable_multibyte="no"
7330fi
7331
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
7333$as_echo "$enable_multibyte" >&6; }
7334if test "$enable_multibyte" = "yes"; then
7335  $as_echo "#define FEAT_MBYTE 1" >>confdefs.h
7336
7337fi
7338
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5
7340$as_echo_n "checking --enable-hangulinput argument... " >&6; }
7341# Check whether --enable-hangulinput was given.
7342if test "${enable_hangulinput+set}" = set; then :
7343  enableval=$enable_hangulinput;
7344else
7345  enable_hangulinput="no"
7346fi
7347
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5
7349$as_echo "$enable_hangulinput" >&6; }
7350
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5
7352$as_echo_n "checking --enable-xim argument... " >&6; }
7353# Check whether --enable-xim was given.
7354if test "${enable_xim+set}" = set; then :
7355  enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5
7356$as_echo "$enable_xim" >&6; }
7357else
7358  enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5
7359$as_echo "defaulting to auto" >&6; }
7360fi
7361
7362
7363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5
7364$as_echo_n "checking --enable-fontset argument... " >&6; }
7365# Check whether --enable-fontset was given.
7366if test "${enable_fontset+set}" = set; then :
7367  enableval=$enable_fontset;
7368else
7369  enable_fontset="no"
7370fi
7371
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5
7373$as_echo "$enable_fontset" >&6; }
7374
7375test -z "$with_x" && with_x=yes
7376test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
7377if test "$with_x" = no; then
7378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5
7379$as_echo "defaulting to: don't HAVE_X11" >&6; }
7380else
7381
7382  # Extract the first word of "xmkmf", so it can be a program name with args.
7383set dummy xmkmf; ac_word=$2
7384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385$as_echo_n "checking for $ac_word... " >&6; }
7386if ${ac_cv_path_xmkmfpath+:} false; then :
7387  $as_echo_n "(cached) " >&6
7388else
7389  case $xmkmfpath in
7390  [\\/]* | ?:[\\/]*)
7391  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
7392  ;;
7393  *)
7394  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH
7396do
7397  IFS=$as_save_IFS
7398  test -z "$as_dir" && as_dir=.
7399    for ac_exec_ext in '' $ac_executable_extensions; do
7400  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
7402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403    break 2
7404  fi
7405done
7406  done
7407IFS=$as_save_IFS
7408
7409  ;;
7410esac
7411fi
7412xmkmfpath=$ac_cv_path_xmkmfpath
7413if test -n "$xmkmfpath"; then
7414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5
7415$as_echo "$xmkmfpath" >&6; }
7416else
7417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418$as_echo "no" >&6; }
7419fi
7420
7421
7422
7423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7424$as_echo_n "checking for X... " >&6; }
7425
7426
7427# Check whether --with-x was given.
7428if test "${with_x+set}" = set; then :
7429  withval=$with_x;
7430fi
7431
7432# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7433if test "x$with_x" = xno; then
7434  # The user explicitly disabled X.
7435  have_x=disabled
7436else
7437  case $x_includes,$x_libraries in #(
7438    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7439    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7440  $as_echo_n "(cached) " >&6
7441else
7442  # One or both of the vars are not set, and there is no cached value.
7443ac_x_includes=no ac_x_libraries=no
7444rm -f -r conftest.dir
7445if mkdir conftest.dir; then
7446  cd conftest.dir
7447  cat >Imakefile <<'_ACEOF'
7448incroot:
7449	@echo incroot='${INCROOT}'
7450usrlibdir:
7451	@echo usrlibdir='${USRLIBDIR}'
7452libdir:
7453	@echo libdir='${LIBDIR}'
7454_ACEOF
7455  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7456    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7457    for ac_var in incroot usrlibdir libdir; do
7458      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7459    done
7460    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7461    for ac_extension in a so sl dylib la dll; do
7462      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7463	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7464	ac_im_usrlibdir=$ac_im_libdir; break
7465      fi
7466    done
7467    # Screen out bogus values from the imake configuration.  They are
7468    # bogus both because they are the default anyway, and because
7469    # using them would break gcc on systems where it needs fixed includes.
7470    case $ac_im_incroot in
7471	/usr/include) ac_x_includes= ;;
7472	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7473    esac
7474    case $ac_im_usrlibdir in
7475	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
7476	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7477    esac
7478  fi
7479  cd ..
7480  rm -f -r conftest.dir
7481fi
7482
7483# Standard set of common directories for X headers.
7484# Check X11 before X11Rn because it is often a symlink to the current release.
7485ac_x_header_dirs='
7486/usr/X11/include
7487/usr/X11R7/include
7488/usr/X11R6/include
7489/usr/X11R5/include
7490/usr/X11R4/include
7491
7492/usr/include/X11
7493/usr/include/X11R7
7494/usr/include/X11R6
7495/usr/include/X11R5
7496/usr/include/X11R4
7497
7498/usr/local/X11/include
7499/usr/local/X11R7/include
7500/usr/local/X11R6/include
7501/usr/local/X11R5/include
7502/usr/local/X11R4/include
7503
7504/usr/local/include/X11
7505/usr/local/include/X11R7
7506/usr/local/include/X11R6
7507/usr/local/include/X11R5
7508/usr/local/include/X11R4
7509
7510/usr/X386/include
7511/usr/x386/include
7512/usr/XFree86/include/X11
7513
7514/usr/include
7515/usr/local/include
7516/usr/unsupported/include
7517/usr/athena/include
7518/usr/local/x11r5/include
7519/usr/lpp/Xamples/include
7520
7521/usr/openwin/include
7522/usr/openwin/share/include'
7523
7524if test "$ac_x_includes" = no; then
7525  # Guess where to find include files, by looking for Xlib.h.
7526  # First, try using that file with no special directory specified.
7527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528/* end confdefs.h.  */
7529#include <X11/Xlib.h>
7530_ACEOF
7531if ac_fn_c_try_cpp "$LINENO"; then :
7532  # We can compile using X headers with no special include directory.
7533ac_x_includes=
7534else
7535  for ac_dir in $ac_x_header_dirs; do
7536  if test -r "$ac_dir/X11/Xlib.h"; then
7537    ac_x_includes=$ac_dir
7538    break
7539  fi
7540done
7541fi
7542rm -f conftest.err conftest.i conftest.$ac_ext
7543fi # $ac_x_includes = no
7544
7545if test "$ac_x_libraries" = no; then
7546  # Check for the libraries.
7547  # See if we find them without any special options.
7548  # Don't add to $LIBS permanently.
7549  ac_save_LIBS=$LIBS
7550  LIBS="-lX11 $LIBS"
7551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552/* end confdefs.h.  */
7553#include <X11/Xlib.h>
7554int
7555main ()
7556{
7557XrmInitialize ()
7558  ;
7559  return 0;
7560}
7561_ACEOF
7562if ac_fn_c_try_link "$LINENO"; then :
7563  LIBS=$ac_save_LIBS
7564# We can link X programs with no special library path.
7565ac_x_libraries=
7566else
7567  LIBS=$ac_save_LIBS
7568for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7569do
7570  # Don't even attempt the hair of trying to link an X program!
7571  for ac_extension in a so sl dylib la dll; do
7572    if test -r "$ac_dir/libX11.$ac_extension"; then
7573      ac_x_libraries=$ac_dir
7574      break 2
7575    fi
7576  done
7577done
7578fi
7579rm -f core conftest.err conftest.$ac_objext \
7580    conftest$ac_exeext conftest.$ac_ext
7581fi # $ac_x_libraries = no
7582
7583case $ac_x_includes,$ac_x_libraries in #(
7584  no,* | *,no | *\'*)
7585    # Didn't find X, or a directory has "'" in its name.
7586    ac_cv_have_x="have_x=no";; #(
7587  *)
7588    # Record where we found X for the cache.
7589    ac_cv_have_x="have_x=yes\
7590	ac_x_includes='$ac_x_includes'\
7591	ac_x_libraries='$ac_x_libraries'"
7592esac
7593fi
7594;; #(
7595    *) have_x=yes;;
7596  esac
7597  eval "$ac_cv_have_x"
7598fi # $with_x != no
7599
7600if test "$have_x" != yes; then
7601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7602$as_echo "$have_x" >&6; }
7603  no_x=yes
7604else
7605  # If each of the values was on the command line, it overrides each guess.
7606  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7607  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7608  # Update the cache value to reflect the command line values.
7609  ac_cv_have_x="have_x=yes\
7610	ac_x_includes='$x_includes'\
7611	ac_x_libraries='$x_libraries'"
7612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7613$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7614fi
7615
7616if test "$no_x" = yes; then
7617  # Not all programs may use this symbol, but it does not hurt to define it.
7618
7619$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7620
7621  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7622else
7623  if test -n "$x_includes"; then
7624    X_CFLAGS="$X_CFLAGS -I$x_includes"
7625  fi
7626
7627  # It would also be nice to do this for all -L options, not just this one.
7628  if test -n "$x_libraries"; then
7629    X_LIBS="$X_LIBS -L$x_libraries"
7630    # For Solaris; some versions of Sun CC require a space after -R and
7631    # others require no space.  Words are not sufficient . . . .
7632    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7633$as_echo_n "checking whether -R must be followed by a space... " >&6; }
7634    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7635    ac_xsave_c_werror_flag=$ac_c_werror_flag
7636    ac_c_werror_flag=yes
7637    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638/* end confdefs.h.  */
7639
7640int
7641main ()
7642{
7643
7644  ;
7645  return 0;
7646}
7647_ACEOF
7648if ac_fn_c_try_link "$LINENO"; then :
7649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650$as_echo "no" >&6; }
7651       X_LIBS="$X_LIBS -R$x_libraries"
7652else
7653  LIBS="$ac_xsave_LIBS -R $x_libraries"
7654       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655/* end confdefs.h.  */
7656
7657int
7658main ()
7659{
7660
7661  ;
7662  return 0;
7663}
7664_ACEOF
7665if ac_fn_c_try_link "$LINENO"; then :
7666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7667$as_echo "yes" >&6; }
7668	  X_LIBS="$X_LIBS -R $x_libraries"
7669else
7670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7671$as_echo "neither works" >&6; }
7672fi
7673rm -f core conftest.err conftest.$ac_objext \
7674    conftest$ac_exeext conftest.$ac_ext
7675fi
7676rm -f core conftest.err conftest.$ac_objext \
7677    conftest$ac_exeext conftest.$ac_ext
7678    ac_c_werror_flag=$ac_xsave_c_werror_flag
7679    LIBS=$ac_xsave_LIBS
7680  fi
7681
7682  # Check for system-dependent libraries X programs must link with.
7683  # Do this before checking for the system-independent R6 libraries
7684  # (-lICE), since we may need -lsocket or whatever for X linking.
7685
7686  if test "$ISC" = yes; then
7687    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7688  else
7689    # Martyn Johnson says this is needed for Ultrix, if the X
7690    # libraries were built with DECnet support.  And Karl Berry says
7691    # the Alpha needs dnet_stub (dnet does not exist).
7692    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7693    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694/* end confdefs.h.  */
7695
7696/* Override any GCC internal prototype to avoid an error.
7697   Use char because int might match the return type of a GCC
7698   builtin and then its argument prototype would still apply.  */
7699#ifdef __cplusplus
7700extern "C"
7701#endif
7702char XOpenDisplay ();
7703int
7704main ()
7705{
7706return XOpenDisplay ();
7707  ;
7708  return 0;
7709}
7710_ACEOF
7711if ac_fn_c_try_link "$LINENO"; then :
7712
7713else
7714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7715$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7716if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7717  $as_echo_n "(cached) " >&6
7718else
7719  ac_check_lib_save_LIBS=$LIBS
7720LIBS="-ldnet  $LIBS"
7721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722/* end confdefs.h.  */
7723
7724/* Override any GCC internal prototype to avoid an error.
7725   Use char because int might match the return type of a GCC
7726   builtin and then its argument prototype would still apply.  */
7727#ifdef __cplusplus
7728extern "C"
7729#endif
7730char dnet_ntoa ();
7731int
7732main ()
7733{
7734return dnet_ntoa ();
7735  ;
7736  return 0;
7737}
7738_ACEOF
7739if ac_fn_c_try_link "$LINENO"; then :
7740  ac_cv_lib_dnet_dnet_ntoa=yes
7741else
7742  ac_cv_lib_dnet_dnet_ntoa=no
7743fi
7744rm -f core conftest.err conftest.$ac_objext \
7745    conftest$ac_exeext conftest.$ac_ext
7746LIBS=$ac_check_lib_save_LIBS
7747fi
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7749$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7750if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7751  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7752fi
7753
7754    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7755      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7756$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7757if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7758  $as_echo_n "(cached) " >&6
7759else
7760  ac_check_lib_save_LIBS=$LIBS
7761LIBS="-ldnet_stub  $LIBS"
7762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763/* end confdefs.h.  */
7764
7765/* Override any GCC internal prototype to avoid an error.
7766   Use char because int might match the return type of a GCC
7767   builtin and then its argument prototype would still apply.  */
7768#ifdef __cplusplus
7769extern "C"
7770#endif
7771char dnet_ntoa ();
7772int
7773main ()
7774{
7775return dnet_ntoa ();
7776  ;
7777  return 0;
7778}
7779_ACEOF
7780if ac_fn_c_try_link "$LINENO"; then :
7781  ac_cv_lib_dnet_stub_dnet_ntoa=yes
7782else
7783  ac_cv_lib_dnet_stub_dnet_ntoa=no
7784fi
7785rm -f core conftest.err conftest.$ac_objext \
7786    conftest$ac_exeext conftest.$ac_ext
7787LIBS=$ac_check_lib_save_LIBS
7788fi
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7790$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7791if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7792  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7793fi
7794
7795    fi
7796fi
7797rm -f core conftest.err conftest.$ac_objext \
7798    conftest$ac_exeext conftest.$ac_ext
7799    LIBS="$ac_xsave_LIBS"
7800
7801    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
7802    # to get the SysV transport functions.
7803    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7804    # needs -lnsl.
7805    # The nsl library prevents programs from opening the X display
7806    # on Irix 5.2, according to T.E. Dickey.
7807    # The functions gethostbyname, getservbyname, and inet_addr are
7808    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7809    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7810if test "x$ac_cv_func_gethostbyname" = xyes; then :
7811
7812fi
7813
7814    if test $ac_cv_func_gethostbyname = no; then
7815      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7816$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7817if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7818  $as_echo_n "(cached) " >&6
7819else
7820  ac_check_lib_save_LIBS=$LIBS
7821LIBS="-lnsl  $LIBS"
7822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823/* end confdefs.h.  */
7824
7825/* Override any GCC internal prototype to avoid an error.
7826   Use char because int might match the return type of a GCC
7827   builtin and then its argument prototype would still apply.  */
7828#ifdef __cplusplus
7829extern "C"
7830#endif
7831char gethostbyname ();
7832int
7833main ()
7834{
7835return gethostbyname ();
7836  ;
7837  return 0;
7838}
7839_ACEOF
7840if ac_fn_c_try_link "$LINENO"; then :
7841  ac_cv_lib_nsl_gethostbyname=yes
7842else
7843  ac_cv_lib_nsl_gethostbyname=no
7844fi
7845rm -f core conftest.err conftest.$ac_objext \
7846    conftest$ac_exeext conftest.$ac_ext
7847LIBS=$ac_check_lib_save_LIBS
7848fi
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7850$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7851if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7852  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7853fi
7854
7855      if test $ac_cv_lib_nsl_gethostbyname = no; then
7856	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7857$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7858if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7859  $as_echo_n "(cached) " >&6
7860else
7861  ac_check_lib_save_LIBS=$LIBS
7862LIBS="-lbsd  $LIBS"
7863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864/* end confdefs.h.  */
7865
7866/* Override any GCC internal prototype to avoid an error.
7867   Use char because int might match the return type of a GCC
7868   builtin and then its argument prototype would still apply.  */
7869#ifdef __cplusplus
7870extern "C"
7871#endif
7872char gethostbyname ();
7873int
7874main ()
7875{
7876return gethostbyname ();
7877  ;
7878  return 0;
7879}
7880_ACEOF
7881if ac_fn_c_try_link "$LINENO"; then :
7882  ac_cv_lib_bsd_gethostbyname=yes
7883else
7884  ac_cv_lib_bsd_gethostbyname=no
7885fi
7886rm -f core conftest.err conftest.$ac_objext \
7887    conftest$ac_exeext conftest.$ac_ext
7888LIBS=$ac_check_lib_save_LIBS
7889fi
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7891$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7892if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7893  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7894fi
7895
7896      fi
7897    fi
7898
7899    # [email protected] says without -lsocket,
7900    # socket/setsockopt and other routines are undefined under SCO ODT
7901    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7902    # on later versions), says Simon Leinen: it contains gethostby*
7903    # variants that don't use the name server (or something).  -lsocket
7904    # must be given before -lnsl if both are needed.  We assume that
7905    # if connect needs -lnsl, so does gethostbyname.
7906    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7907if test "x$ac_cv_func_connect" = xyes; then :
7908
7909fi
7910
7911    if test $ac_cv_func_connect = no; then
7912      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7913$as_echo_n "checking for connect in -lsocket... " >&6; }
7914if ${ac_cv_lib_socket_connect+:} false; then :
7915  $as_echo_n "(cached) " >&6
7916else
7917  ac_check_lib_save_LIBS=$LIBS
7918LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920/* end confdefs.h.  */
7921
7922/* Override any GCC internal prototype to avoid an error.
7923   Use char because int might match the return type of a GCC
7924   builtin and then its argument prototype would still apply.  */
7925#ifdef __cplusplus
7926extern "C"
7927#endif
7928char connect ();
7929int
7930main ()
7931{
7932return connect ();
7933  ;
7934  return 0;
7935}
7936_ACEOF
7937if ac_fn_c_try_link "$LINENO"; then :
7938  ac_cv_lib_socket_connect=yes
7939else
7940  ac_cv_lib_socket_connect=no
7941fi
7942rm -f core conftest.err conftest.$ac_objext \
7943    conftest$ac_exeext conftest.$ac_ext
7944LIBS=$ac_check_lib_save_LIBS
7945fi
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7947$as_echo "$ac_cv_lib_socket_connect" >&6; }
7948if test "x$ac_cv_lib_socket_connect" = xyes; then :
7949  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7950fi
7951
7952    fi
7953
7954    # Guillermo Gomez says -lposix is necessary on A/UX.
7955    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7956if test "x$ac_cv_func_remove" = xyes; then :
7957
7958fi
7959
7960    if test $ac_cv_func_remove = no; then
7961      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7962$as_echo_n "checking for remove in -lposix... " >&6; }
7963if ${ac_cv_lib_posix_remove+:} false; then :
7964  $as_echo_n "(cached) " >&6
7965else
7966  ac_check_lib_save_LIBS=$LIBS
7967LIBS="-lposix  $LIBS"
7968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969/* end confdefs.h.  */
7970
7971/* Override any GCC internal prototype to avoid an error.
7972   Use char because int might match the return type of a GCC
7973   builtin and then its argument prototype would still apply.  */
7974#ifdef __cplusplus
7975extern "C"
7976#endif
7977char remove ();
7978int
7979main ()
7980{
7981return remove ();
7982  ;
7983  return 0;
7984}
7985_ACEOF
7986if ac_fn_c_try_link "$LINENO"; then :
7987  ac_cv_lib_posix_remove=yes
7988else
7989  ac_cv_lib_posix_remove=no
7990fi
7991rm -f core conftest.err conftest.$ac_objext \
7992    conftest$ac_exeext conftest.$ac_ext
7993LIBS=$ac_check_lib_save_LIBS
7994fi
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7996$as_echo "$ac_cv_lib_posix_remove" >&6; }
7997if test "x$ac_cv_lib_posix_remove" = xyes; then :
7998  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7999fi
8000
8001    fi
8002
8003    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8004    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8005if test "x$ac_cv_func_shmat" = xyes; then :
8006
8007fi
8008
8009    if test $ac_cv_func_shmat = no; then
8010      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8011$as_echo_n "checking for shmat in -lipc... " >&6; }
8012if ${ac_cv_lib_ipc_shmat+:} false; then :
8013  $as_echo_n "(cached) " >&6
8014else
8015  ac_check_lib_save_LIBS=$LIBS
8016LIBS="-lipc  $LIBS"
8017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018/* end confdefs.h.  */
8019
8020/* Override any GCC internal prototype to avoid an error.
8021   Use char because int might match the return type of a GCC
8022   builtin and then its argument prototype would still apply.  */
8023#ifdef __cplusplus
8024extern "C"
8025#endif
8026char shmat ();
8027int
8028main ()
8029{
8030return shmat ();
8031  ;
8032  return 0;
8033}
8034_ACEOF
8035if ac_fn_c_try_link "$LINENO"; then :
8036  ac_cv_lib_ipc_shmat=yes
8037else
8038  ac_cv_lib_ipc_shmat=no
8039fi
8040rm -f core conftest.err conftest.$ac_objext \
8041    conftest$ac_exeext conftest.$ac_ext
8042LIBS=$ac_check_lib_save_LIBS
8043fi
8044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8045$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8046if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8047  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8048fi
8049
8050    fi
8051  fi
8052
8053  # Check for libraries that X11R6 Xt/Xaw programs need.
8054  ac_save_LDFLAGS=$LDFLAGS
8055  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8056  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8057  # check for ICE first), but we must link in the order -lSM -lICE or
8058  # we get undefined symbols.  So assume we have SM if we have ICE.
8059  # These have to be linked with before -lX11, unlike the other
8060  # libraries we check for below, so use a different variable.
8061  # John Interrante, Karl Berry
8062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8063$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8064if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8065  $as_echo_n "(cached) " >&6
8066else
8067  ac_check_lib_save_LIBS=$LIBS
8068LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070/* end confdefs.h.  */
8071
8072/* Override any GCC internal prototype to avoid an error.
8073   Use char because int might match the return type of a GCC
8074   builtin and then its argument prototype would still apply.  */
8075#ifdef __cplusplus
8076extern "C"
8077#endif
8078char IceConnectionNumber ();
8079int
8080main ()
8081{
8082return IceConnectionNumber ();
8083  ;
8084  return 0;
8085}
8086_ACEOF
8087if ac_fn_c_try_link "$LINENO"; then :
8088  ac_cv_lib_ICE_IceConnectionNumber=yes
8089else
8090  ac_cv_lib_ICE_IceConnectionNumber=no
8091fi
8092rm -f core conftest.err conftest.$ac_objext \
8093    conftest$ac_exeext conftest.$ac_ext
8094LIBS=$ac_check_lib_save_LIBS
8095fi
8096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8097$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8098if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8099  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8100fi
8101
8102  LDFLAGS=$ac_save_LDFLAGS
8103
8104fi
8105
8106
8107        if test "$zOSUnix" = "yes"; then
8108    CFLAGS="$CFLAGS -W c,dll"
8109    LDFLAGS="$LDFLAGS -W l,dll"
8110    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
8111  fi
8112
8113
8114  if test -d "$x_includes" && test ! -d "$x_libraries"; then
8115    x_libraries=`echo "$x_includes" | sed s/include/lib/`
8116    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5
8117$as_echo "Corrected X libraries to $x_libraries" >&6; }
8118    X_LIBS="$X_LIBS -L$x_libraries"
8119    if test "`(uname) 2>/dev/null`" = SunOS &&
8120					 uname -r | grep '^5' >/dev/null; then
8121      X_LIBS="$X_LIBS -R $x_libraries"
8122    fi
8123  fi
8124
8125  if test -d "$x_libraries" && test ! -d "$x_includes"; then
8126    x_includes=`echo "$x_libraries" | sed s/lib/include/`
8127    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5
8128$as_echo "Corrected X includes to $x_includes" >&6; }
8129    X_CFLAGS="$X_CFLAGS -I$x_includes"
8130  fi
8131
8132    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
8133    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
8134    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
8135
8136
8137        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5
8138$as_echo_n "checking if X11 header files can be found... " >&6; }
8139  cflags_save=$CFLAGS
8140  CFLAGS="$CFLAGS $X_CFLAGS"
8141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142/* end confdefs.h.  */
8143#include <X11/Xlib.h>
8144#include <X11/Intrinsic.h>
8145int
8146main ()
8147{
8148
8149  ;
8150  return 0;
8151}
8152_ACEOF
8153if ac_fn_c_try_compile "$LINENO"; then :
8154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8155$as_echo "yes" >&6; }
8156else
8157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158$as_echo "no" >&6; }; no_x=yes
8159fi
8160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8161  CFLAGS=$cflags_save
8162
8163  if test "${no_x-no}" = yes; then
8164    with_x=no
8165  else
8166    $as_echo "#define HAVE_X11 1" >>confdefs.h
8167
8168    X_LIB="-lXt -lX11";
8169
8170
8171    ac_save_LDFLAGS="$LDFLAGS"
8172    LDFLAGS="-L$x_libraries $LDFLAGS"
8173
8174            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
8175$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
8176if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then :
8177  $as_echo_n "(cached) " >&6
8178else
8179  ac_check_lib_save_LIBS=$LIBS
8180LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
8181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182/* end confdefs.h.  */
8183
8184/* Override any GCC internal prototype to avoid an error.
8185   Use char because int might match the return type of a GCC
8186   builtin and then its argument prototype would still apply.  */
8187#ifdef __cplusplus
8188extern "C"
8189#endif
8190char _XdmcpAuthDoIt ();
8191int
8192main ()
8193{
8194return _XdmcpAuthDoIt ();
8195  ;
8196  return 0;
8197}
8198_ACEOF
8199if ac_fn_c_try_link "$LINENO"; then :
8200  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
8201else
8202  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
8203fi
8204rm -f core conftest.err conftest.$ac_objext \
8205    conftest$ac_exeext conftest.$ac_ext
8206LIBS=$ac_check_lib_save_LIBS
8207fi
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
8209$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
8210if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then :
8211  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
8212fi
8213
8214
8215                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5
8216$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
8217if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then :
8218  $as_echo_n "(cached) " >&6
8219else
8220  ac_check_lib_save_LIBS=$LIBS
8221LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223/* end confdefs.h.  */
8224
8225/* Override any GCC internal prototype to avoid an error.
8226   Use char because int might match the return type of a GCC
8227   builtin and then its argument prototype would still apply.  */
8228#ifdef __cplusplus
8229extern "C"
8230#endif
8231char IceOpenConnection ();
8232int
8233main ()
8234{
8235return IceOpenConnection ();
8236  ;
8237  return 0;
8238}
8239_ACEOF
8240if ac_fn_c_try_link "$LINENO"; then :
8241  ac_cv_lib_ICE_IceOpenConnection=yes
8242else
8243  ac_cv_lib_ICE_IceOpenConnection=no
8244fi
8245rm -f core conftest.err conftest.$ac_objext \
8246    conftest$ac_exeext conftest.$ac_ext
8247LIBS=$ac_check_lib_save_LIBS
8248fi
8249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
8250$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
8251if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then :
8252  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
8253fi
8254
8255
8256        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
8257    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
8258$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
8259if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then :
8260  $as_echo_n "(cached) " >&6
8261else
8262  ac_check_lib_save_LIBS=$LIBS
8263LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
8264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265/* end confdefs.h.  */
8266
8267/* Override any GCC internal prototype to avoid an error.
8268   Use char because int might match the return type of a GCC
8269   builtin and then its argument prototype would still apply.  */
8270#ifdef __cplusplus
8271extern "C"
8272#endif
8273char XpmCreatePixmapFromData ();
8274int
8275main ()
8276{
8277return XpmCreatePixmapFromData ();
8278  ;
8279  return 0;
8280}
8281_ACEOF
8282if ac_fn_c_try_link "$LINENO"; then :
8283  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
8284else
8285  ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
8286fi
8287rm -f core conftest.err conftest.$ac_objext \
8288    conftest$ac_exeext conftest.$ac_ext
8289LIBS=$ac_check_lib_save_LIBS
8290fi
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
8292$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
8293if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then :
8294  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8295fi
8296
8297
8298        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5
8299$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8300    cflags_save=$CFLAGS
8301        if test "$GCC" = yes; then
8302      CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8303    else
8304      CFLAGS="$CFLAGS $X_CFLAGS"
8305    fi
8306    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307/* end confdefs.h.  */
8308#include <X11/Xlib.h>
8309int
8310main ()
8311{
8312
8313  ;
8314  return 0;
8315}
8316_ACEOF
8317if ac_fn_c_try_compile "$LINENO"; then :
8318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319$as_echo "no" >&6; }
8320else
8321  CFLAGS="$CFLAGS -Wno-implicit-int"
8322	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323/* end confdefs.h.  */
8324#include <X11/Xlib.h>
8325int
8326main ()
8327{
8328
8329  ;
8330  return 0;
8331}
8332_ACEOF
8333if ac_fn_c_try_compile "$LINENO"; then :
8334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8335$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8336else
8337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
8338$as_echo "test failed" >&6; }
8339
8340fi
8341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8342
8343fi
8344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8345    CFLAGS=$cflags_save
8346
8347    LDFLAGS="$ac_save_LDFLAGS"
8348
8349    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5
8350$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8351    if ${ac_cv_small_wchar_t+:} false; then :
8352  $as_echo_n "(cached) " >&6
8353else
8354  if test "$cross_compiling" = yes; then :
8355  as_fn_error $? "failed to compile test program" "$LINENO" 5
8356else
8357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358/* end confdefs.h.  */
8359
8360#include <X11/Xlib.h>
8361#if STDC_HEADERS
8362# include <stdlib.h>
8363# include <stddef.h>
8364#endif
8365		main()
8366		{
8367		  if (sizeof(wchar_t) <= 2)
8368		    exit(1);
8369		  exit(0);
8370		}
8371_ACEOF
8372if ac_fn_c_try_run "$LINENO"; then :
8373  ac_cv_small_wchar_t="no"
8374else
8375  ac_cv_small_wchar_t="yes"
8376fi
8377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8378  conftest.$ac_objext conftest.beam conftest.$ac_ext
8379fi
8380
8381fi
8382
8383    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5
8384$as_echo "$ac_cv_small_wchar_t" >&6; }
8385    if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8386      $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h
8387
8388    fi
8389
8390  fi
8391fi
8392
8393test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8394
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5
8396$as_echo_n "checking --enable-gui argument... " >&6; }
8397# Check whether --enable-gui was given.
8398if test "${enable_gui+set}" = set; then :
8399  enableval=$enable_gui;
8400else
8401  enable_gui="auto"
8402fi
8403
8404
8405enable_gui_canon=`echo "_$enable_gui" | \
8406	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8407
8408SKIP_GTK2=YES
8409SKIP_GNOME=YES
8410SKIP_MOTIF=YES
8411SKIP_ATHENA=YES
8412SKIP_NEXTAW=YES
8413SKIP_PHOTON=YES
8414SKIP_CARBON=YES
8415GUITYPE=NONE
8416
8417if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8418  SKIP_PHOTON=
8419  case "$enable_gui_canon" in
8420    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
8421$as_echo "no GUI support" >&6; }
8422		SKIP_PHOTON=YES ;;
8423    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
8424$as_echo "yes - automatic GUI support" >&6; } ;;
8425    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5
8426$as_echo "auto - automatic GUI support" >&6; } ;;
8427    photon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5
8428$as_echo "Photon GUI support" >&6; } ;;
8429    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
8430$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8431		SKIP_PHOTON=YES ;;
8432  esac
8433
8434elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8435  SKIP_CARBON=
8436  case "$enable_gui_canon" in
8437    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
8438$as_echo "no GUI support" >&6; }
8439		SKIP_CARBON=YES ;;
8440    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
8441$as_echo "yes - automatic GUI support" >&6; } ;;
8442    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5
8443$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; }
8444		SKIP_CARBON=YES ;;
8445    carbon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5
8446$as_echo "Carbon GUI support" >&6; } ;;
8447    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
8448$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8449		SKIP_CARBON=YES ;;
8450  esac
8451
8452else
8453
8454  case "$enable_gui_canon" in
8455    no|none)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
8456$as_echo "no GUI support" >&6; } ;;
8457    yes|""|auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5
8458$as_echo "yes/auto - automatic GUI support" >&6; }
8459		SKIP_GTK2=
8460		SKIP_GNOME=
8461		SKIP_MOTIF=
8462		SKIP_ATHENA=
8463		SKIP_NEXTAW=
8464		SKIP_CARBON=;;
8465    gtk2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5
8466$as_echo "GTK+ 2.x GUI support" >&6; }
8467		SKIP_GTK2=;;
8468    gnome2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5
8469$as_echo "GNOME 2.x GUI support" >&6; }
8470		SKIP_GNOME=
8471		SKIP_GTK2=;;
8472    motif)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5
8473$as_echo "Motif GUI support" >&6; }
8474		SKIP_MOTIF=;;
8475    athena)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5
8476$as_echo "Athena GUI support" >&6; }
8477		SKIP_ATHENA=;;
8478    nextaw)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5
8479$as_echo "neXtaw GUI support" >&6; }
8480		SKIP_NEXTAW=;;
8481    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
8482$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8483  esac
8484
8485fi
8486
8487if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8488				-a "$enable_gui_canon" != "gnome2"; then
8489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5
8490$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8491  # Check whether --enable-gtk2-check was given.
8492if test "${enable_gtk2_check+set}" = set; then :
8493  enableval=$enable_gtk2_check;
8494else
8495  enable_gtk2_check="yes"
8496fi
8497
8498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5
8499$as_echo "$enable_gtk2_check" >&6; }
8500  if test "x$enable_gtk2_check" = "xno"; then
8501    SKIP_GTK2=YES
8502    SKIP_GNOME=YES
8503  fi
8504fi
8505
8506if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then
8507  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5
8508$as_echo_n "checking whether or not to look for GNOME... " >&6; }
8509  # Check whether --enable-gnome-check was given.
8510if test "${enable_gnome_check+set}" = set; then :
8511  enableval=$enable_gnome_check;
8512else
8513  enable_gnome_check="no"
8514fi
8515
8516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5
8517$as_echo "$enable_gnome_check" >&6; }
8518  if test "x$enable_gnome_check" = "xno"; then
8519    SKIP_GNOME=YES
8520  fi
8521fi
8522
8523if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5
8525$as_echo_n "checking whether or not to look for Motif... " >&6; }
8526  # Check whether --enable-motif-check was given.
8527if test "${enable_motif_check+set}" = set; then :
8528  enableval=$enable_motif_check;
8529else
8530  enable_motif_check="yes"
8531fi
8532
8533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5
8534$as_echo "$enable_motif_check" >&6; }
8535  if test "x$enable_motif_check" = "xno"; then
8536    SKIP_MOTIF=YES
8537  fi
8538fi
8539
8540if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5
8542$as_echo_n "checking whether or not to look for Athena... " >&6; }
8543  # Check whether --enable-athena-check was given.
8544if test "${enable_athena_check+set}" = set; then :
8545  enableval=$enable_athena_check;
8546else
8547  enable_athena_check="yes"
8548fi
8549
8550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5
8551$as_echo "$enable_athena_check" >&6; }
8552  if test "x$enable_athena_check" = "xno"; then
8553    SKIP_ATHENA=YES
8554  fi
8555fi
8556
8557if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8558  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5
8559$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8560  # Check whether --enable-nextaw-check was given.
8561if test "${enable_nextaw_check+set}" = set; then :
8562  enableval=$enable_nextaw_check;
8563else
8564  enable_nextaw_check="yes"
8565fi
8566
8567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5
8568$as_echo "$enable_nextaw_check" >&6; };
8569  if test "x$enable_nextaw_check" = "xno"; then
8570    SKIP_NEXTAW=YES
8571  fi
8572fi
8573
8574if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5
8576$as_echo_n "checking whether or not to look for Carbon... " >&6; }
8577  # Check whether --enable-carbon-check was given.
8578if test "${enable_carbon_check+set}" = set; then :
8579  enableval=$enable_carbon_check;
8580else
8581  enable_carbon_check="yes"
8582fi
8583
8584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5
8585$as_echo "$enable_carbon_check" >&6; };
8586  if test "x$enable_carbon_check" = "xno"; then
8587    SKIP_CARBON=YES
8588  fi
8589fi
8590
8591
8592if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5
8594$as_echo_n "checking for Carbon GUI... " >&6; }
8595    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8596$as_echo "yes" >&6; };
8597  GUITYPE=CARBONGUI
8598  if test "$VIMNAME" = "vim"; then
8599    VIMNAME=Vim
8600  fi
8601
8602  if test "x$MACARCH" = "xboth"; then
8603    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
8604  else
8605    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
8606  fi
8607
8608    if test x$prefix = xNONE; then
8609    prefix=/Applications
8610  fi
8611
8612    datadir='${prefix}/Vim.app/Contents/Resources'
8613
8614    SKIP_GTK2=YES;
8615  SKIP_GNOME=YES;
8616  SKIP_MOTIF=YES;
8617  SKIP_ATHENA=YES;
8618  SKIP_NEXTAW=YES;
8619  SKIP_PHOTON=YES;
8620  SKIP_CARBON=YES
8621fi
8622
8623
8624
8625
8626
8627
8628
8629
8630if test -z "$SKIP_GTK2"; then
8631
8632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
8633$as_echo_n "checking --disable-gtktest argument... " >&6; }
8634  # Check whether --enable-gtktest was given.
8635if test "${enable_gtktest+set}" = set; then :
8636  enableval=$enable_gtktest;
8637else
8638  enable_gtktest=yes
8639fi
8640
8641  if test "x$enable_gtktest" = "xyes" ; then
8642    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
8643$as_echo "gtk test enabled" >&6; }
8644  else
8645    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
8646$as_echo "gtk test disabled" >&6; }
8647  fi
8648
8649  if test "X$PKG_CONFIG" = "X"; then
8650    # Extract the first word of "pkg-config", so it can be a program name with args.
8651set dummy pkg-config; ac_word=$2
8652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8653$as_echo_n "checking for $ac_word... " >&6; }
8654if ${ac_cv_path_PKG_CONFIG+:} false; then :
8655  $as_echo_n "(cached) " >&6
8656else
8657  case $PKG_CONFIG in
8658  [\\/]* | ?:[\\/]*)
8659  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8660  ;;
8661  *)
8662  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663for as_dir in $PATH
8664do
8665  IFS=$as_save_IFS
8666  test -z "$as_dir" && as_dir=.
8667    for ac_exec_ext in '' $ac_executable_extensions; do
8668  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8669    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8671    break 2
8672  fi
8673done
8674  done
8675IFS=$as_save_IFS
8676
8677  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8678  ;;
8679esac
8680fi
8681PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8682if test -n "$PKG_CONFIG"; then
8683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8684$as_echo "$PKG_CONFIG" >&6; }
8685else
8686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687$as_echo "no" >&6; }
8688fi
8689
8690
8691  fi
8692
8693  if test "x$PKG_CONFIG" != "xno"; then
8694
8695  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8696  {
8697    min_gtk_version=2.2.0
8698    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
8699$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8700    no_gtk=""
8701    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8702	  && $PKG_CONFIG --exists gtk+-2.0; then
8703    {
8704                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8705      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8706      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8707      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8708	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8709      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8710	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8711      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8712	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8713    }
8714    else
8715      no_gtk=yes
8716    fi
8717
8718    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8719    {
8720      ac_save_CFLAGS="$CFLAGS"
8721      ac_save_LIBS="$LIBS"
8722      CFLAGS="$CFLAGS $GTK_CFLAGS"
8723      LIBS="$LIBS $GTK_LIBS"
8724
8725                        rm -f conf.gtktest
8726      if test "$cross_compiling" = yes; then :
8727  echo $ac_n "cross compiling; assumed OK... $ac_c"
8728else
8729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730/* end confdefs.h.  */
8731
8732#include <gtk/gtk.h>
8733#include <stdio.h>
8734#if STDC_HEADERS
8735# include <stdlib.h>
8736# include <stddef.h>
8737#endif
8738
8739int
8740main ()
8741{
8742int major, minor, micro;
8743char *tmp_version;
8744
8745system ("touch conf.gtktest");
8746
8747/* HP/UX 9 (%@#!) writes to sscanf strings */
8748tmp_version = g_strdup("$min_gtk_version");
8749if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8750   printf("%s, bad version string\n", "$min_gtk_version");
8751   exit(1);
8752 }
8753
8754if ((gtk_major_version > major) ||
8755    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8756    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8757				     (gtk_micro_version >= micro)))
8758{
8759    return 0;
8760}
8761return 1;
8762}
8763
8764_ACEOF
8765if ac_fn_c_try_run "$LINENO"; then :
8766
8767else
8768  no_gtk=yes
8769fi
8770rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8771  conftest.$ac_objext conftest.beam conftest.$ac_ext
8772fi
8773
8774      CFLAGS="$ac_save_CFLAGS"
8775      LIBS="$ac_save_LIBS"
8776    }
8777    fi
8778    if test "x$no_gtk" = x ; then
8779      if test "x$enable_gtktest" = "xyes"; then
8780	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8781$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8782      else
8783	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8784$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8785      fi
8786      GUI_LIB_LOC="$GTK_LIBDIR"
8787		 GTK_LIBNAME="$GTK_LIBS"
8788		GUI_INC_LOC="$GTK_CFLAGS"
8789    else
8790    {
8791      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792$as_echo "no" >&6; }
8793      GTK_CFLAGS=""
8794      GTK_LIBS=""
8795      :
8796    }
8797    fi
8798  }
8799  else
8800    GTK_CFLAGS=""
8801    GTK_LIBS=""
8802    :
8803  fi
8804
8805
8806  rm -f conf.gtktest
8807
8808    if test "x$GTK_CFLAGS" != "x"; then
8809      SKIP_ATHENA=YES
8810      SKIP_NEXTAW=YES
8811      SKIP_MOTIF=YES
8812      GUITYPE=GTK
8813
8814    fi
8815  fi
8816  if test "x$GUITYPE" = "xGTK"; then
8817    if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8818	|| test "0$gtk_minor_version" -ge 2; then
8819      $as_echo "#define HAVE_GTK_MULTIHEAD 1" >>confdefs.h
8820
8821    fi
8822                if test -z "$SKIP_GNOME"; then
8823    {
8824
8825
8826
8827
8828
8829
8830# Check whether --with-gnome-includes was given.
8831if test "${with_gnome_includes+set}" = set; then :
8832  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8833
8834fi
8835
8836
8837
8838# Check whether --with-gnome-libs was given.
8839if test "${with_gnome_libs+set}" = set; then :
8840  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8841
8842fi
8843
8844
8845
8846# Check whether --with-gnome was given.
8847if test "${with_gnome+set}" = set; then :
8848  withval=$with_gnome; if test x$withval = xyes; then
8849      want_gnome=yes
8850      have_gnome=yes
8851    else
8852      if test "x$withval" = xno; then
8853	want_gnome=no
8854      else
8855	want_gnome=yes
8856	LDFLAGS="$LDFLAGS -L$withval/lib"
8857	CFLAGS="$CFLAGS -I$withval/include"
8858	gnome_prefix=$withval/lib
8859      fi
8860    fi
8861else
8862  want_gnome=yes
8863fi
8864
8865
8866  if test "x$want_gnome" = xyes; then
8867  {
8868    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5
8869$as_echo_n "checking for libgnomeui-2.0... " >&6; }
8870    if $PKG_CONFIG --exists libgnomeui-2.0; then
8871      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8872$as_echo "yes" >&6; }
8873      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
8874      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
8875      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
8876
8877                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5
8878$as_echo_n "checking for FreeBSD... " >&6; }
8879      if test "`(uname) 2>/dev/null`" = FreeBSD; then
8880	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8881$as_echo "yes" >&6; }
8882	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8883	GNOME_LIBS="$GNOME_LIBS -pthread"
8884      else
8885	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886$as_echo "no" >&6; }
8887      fi
8888      have_gnome=yes
8889    else
8890      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8891$as_echo "not found" >&6; }
8892      if test "x" = xfail; then
8893	as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5
8894      fi
8895    fi
8896  }
8897  fi
8898
8899      if test "x$have_gnome" = xyes ; then
8900	$as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h
8901
8902	GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
8903	GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
8904      fi
8905    }
8906    fi
8907  fi
8908fi
8909
8910
8911if test -z "$SKIP_MOTIF"; then
8912  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"
8913    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
8914
8915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5
8916$as_echo_n "checking for location of Motif GUI includes... " >&6; }
8917  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
8918  GUI_INC_LOC=
8919  for try in $gui_includes; do
8920    if test -f "$try/Xm/Xm.h"; then
8921      GUI_INC_LOC=$try
8922    fi
8923  done
8924  if test -n "$GUI_INC_LOC"; then
8925    if test "$GUI_INC_LOC" = /usr/include; then
8926      GUI_INC_LOC=
8927      { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
8928$as_echo "in default path" >&6; }
8929    else
8930      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5
8931$as_echo "$GUI_INC_LOC" >&6; }
8932    fi
8933  else
8934    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
8935$as_echo "<not found>" >&6; }
8936    SKIP_MOTIF=YES
8937  fi
8938fi
8939
8940
8941if test -z "$SKIP_MOTIF"; then
8942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5
8943$as_echo_n "checking --with-motif-lib argument... " >&6; }
8944
8945# Check whether --with-motif-lib was given.
8946if test "${with_motif_lib+set}" = set; then :
8947  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
8948fi
8949
8950
8951  if test -n "$MOTIF_LIBNAME"; then
8952    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5
8953$as_echo "$MOTIF_LIBNAME" >&6; }
8954    GUI_LIB_LOC=
8955  else
8956    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8957$as_echo "no" >&6; }
8958
8959        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8960
8961            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
8962$as_echo_n "checking for location of Motif GUI libs... " >&6; }
8963    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"
8964    GUI_LIB_LOC=
8965    for try in $gui_libs; do
8966      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
8967	if test -f "$libtry"; then
8968	  GUI_LIB_LOC=$try
8969	fi
8970      done
8971    done
8972    if test -n "$GUI_LIB_LOC"; then
8973            if test "$GUI_LIB_LOC" = /usr/lib \
8974	   -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \
8975	   -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then
8976	GUI_LIB_LOC=
8977	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
8978$as_echo "in default path" >&6; }
8979      else
8980	if test -n "$GUI_LIB_LOC"; then
8981	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5
8982$as_echo "$GUI_LIB_LOC" >&6; }
8983	  if test "`(uname) 2>/dev/null`" = SunOS &&
8984					 uname -r | grep '^5' >/dev/null; then
8985	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8986	  fi
8987	fi
8988      fi
8989      MOTIF_LIBNAME=-lXm
8990    else
8991      { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
8992$as_echo "<not found>" >&6; }
8993      SKIP_MOTIF=YES
8994    fi
8995  fi
8996fi
8997
8998if test -z "$SKIP_MOTIF"; then
8999  SKIP_ATHENA=YES
9000  SKIP_NEXTAW=YES
9001  GUITYPE=MOTIF
9002
9003fi
9004
9005
9006GUI_X_LIBS=
9007
9008if test -z "$SKIP_ATHENA"; then
9009  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5
9010$as_echo_n "checking if Athena header files can be found... " >&6; }
9011  cflags_save=$CFLAGS
9012  CFLAGS="$CFLAGS $X_CFLAGS"
9013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014/* end confdefs.h.  */
9015
9016#include <X11/Intrinsic.h>
9017#include <X11/Xaw/Paned.h>
9018int
9019main ()
9020{
9021
9022  ;
9023  return 0;
9024}
9025_ACEOF
9026if ac_fn_c_try_compile "$LINENO"; then :
9027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9028$as_echo "yes" >&6; }
9029else
9030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031$as_echo "no" >&6; }; SKIP_ATHENA=YES
9032fi
9033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034  CFLAGS=$cflags_save
9035fi
9036
9037if test -z "$SKIP_ATHENA"; then
9038  GUITYPE=ATHENA
9039fi
9040
9041if test -z "$SKIP_NEXTAW"; then
9042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5
9043$as_echo_n "checking if neXtaw header files can be found... " >&6; }
9044  cflags_save=$CFLAGS
9045  CFLAGS="$CFLAGS $X_CFLAGS"
9046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047/* end confdefs.h.  */
9048
9049#include <X11/Intrinsic.h>
9050#include <X11/neXtaw/Paned.h>
9051int
9052main ()
9053{
9054
9055  ;
9056  return 0;
9057}
9058_ACEOF
9059if ac_fn_c_try_compile "$LINENO"; then :
9060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9061$as_echo "yes" >&6; }
9062else
9063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064$as_echo "no" >&6; }; SKIP_NEXTAW=YES
9065fi
9066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9067  CFLAGS=$cflags_save
9068fi
9069
9070if test -z "$SKIP_NEXTAW"; then
9071  GUITYPE=NEXTAW
9072fi
9073
9074if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9075      if test -n "$GUI_INC_LOC"; then
9076    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9077  fi
9078  if test -n "$GUI_LIB_LOC"; then
9079    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9080  fi
9081
9082    ldflags_save=$LDFLAGS
9083  LDFLAGS="$X_LIBS $LDFLAGS"
9084  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9085$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9086if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9087  $as_echo_n "(cached) " >&6
9088else
9089  ac_check_lib_save_LIBS=$LIBS
9090LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092/* end confdefs.h.  */
9093
9094/* Override any GCC internal prototype to avoid an error.
9095   Use char because int might match the return type of a GCC
9096   builtin and then its argument prototype would still apply.  */
9097#ifdef __cplusplus
9098extern "C"
9099#endif
9100char XShapeQueryExtension ();
9101int
9102main ()
9103{
9104return XShapeQueryExtension ();
9105  ;
9106  return 0;
9107}
9108_ACEOF
9109if ac_fn_c_try_link "$LINENO"; then :
9110  ac_cv_lib_Xext_XShapeQueryExtension=yes
9111else
9112  ac_cv_lib_Xext_XShapeQueryExtension=no
9113fi
9114rm -f core conftest.err conftest.$ac_objext \
9115    conftest$ac_exeext conftest.$ac_ext
9116LIBS=$ac_check_lib_save_LIBS
9117fi
9118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9119$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9120if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9121  GUI_X_LIBS="-lXext"
9122fi
9123
9124    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5
9125$as_echo_n "checking for wslen in -lw... " >&6; }
9126if ${ac_cv_lib_w_wslen+:} false; then :
9127  $as_echo_n "(cached) " >&6
9128else
9129  ac_check_lib_save_LIBS=$LIBS
9130LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9132/* end confdefs.h.  */
9133
9134/* Override any GCC internal prototype to avoid an error.
9135   Use char because int might match the return type of a GCC
9136   builtin and then its argument prototype would still apply.  */
9137#ifdef __cplusplus
9138extern "C"
9139#endif
9140char wslen ();
9141int
9142main ()
9143{
9144return wslen ();
9145  ;
9146  return 0;
9147}
9148_ACEOF
9149if ac_fn_c_try_link "$LINENO"; then :
9150  ac_cv_lib_w_wslen=yes
9151else
9152  ac_cv_lib_w_wslen=no
9153fi
9154rm -f core conftest.err conftest.$ac_objext \
9155    conftest$ac_exeext conftest.$ac_ext
9156LIBS=$ac_check_lib_save_LIBS
9157fi
9158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5
9159$as_echo "$ac_cv_lib_w_wslen" >&6; }
9160if test "x$ac_cv_lib_w_wslen" = xyes; then :
9161  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9162fi
9163
9164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
9165$as_echo_n "checking for dlsym in -ldl... " >&6; }
9166if ${ac_cv_lib_dl_dlsym+:} false; then :
9167  $as_echo_n "(cached) " >&6
9168else
9169  ac_check_lib_save_LIBS=$LIBS
9170LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172/* end confdefs.h.  */
9173
9174/* Override any GCC internal prototype to avoid an error.
9175   Use char because int might match the return type of a GCC
9176   builtin and then its argument prototype would still apply.  */
9177#ifdef __cplusplus
9178extern "C"
9179#endif
9180char dlsym ();
9181int
9182main ()
9183{
9184return dlsym ();
9185  ;
9186  return 0;
9187}
9188_ACEOF
9189if ac_fn_c_try_link "$LINENO"; then :
9190  ac_cv_lib_dl_dlsym=yes
9191else
9192  ac_cv_lib_dl_dlsym=no
9193fi
9194rm -f core conftest.err conftest.$ac_objext \
9195    conftest$ac_exeext conftest.$ac_ext
9196LIBS=$ac_check_lib_save_LIBS
9197fi
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
9199$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9200if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
9201  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9202fi
9203
9204  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5
9205$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9206if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then :
9207  $as_echo_n "(cached) " >&6
9208else
9209  ac_check_lib_save_LIBS=$LIBS
9210LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212/* end confdefs.h.  */
9213
9214/* Override any GCC internal prototype to avoid an error.
9215   Use char because int might match the return type of a GCC
9216   builtin and then its argument prototype would still apply.  */
9217#ifdef __cplusplus
9218extern "C"
9219#endif
9220char XmuCreateStippledPixmap ();
9221int
9222main ()
9223{
9224return XmuCreateStippledPixmap ();
9225  ;
9226  return 0;
9227}
9228_ACEOF
9229if ac_fn_c_try_link "$LINENO"; then :
9230  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9231else
9232  ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9233fi
9234rm -f core conftest.err conftest.$ac_objext \
9235    conftest$ac_exeext conftest.$ac_ext
9236LIBS=$ac_check_lib_save_LIBS
9237fi
9238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9239$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9240if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then :
9241  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9242fi
9243
9244  if test -z "$SKIP_MOTIF"; then
9245    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5
9246$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9247if ${ac_cv_lib_Xp_XpEndJob+:} false; then :
9248  $as_echo_n "(cached) " >&6
9249else
9250  ac_check_lib_save_LIBS=$LIBS
9251LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253/* end confdefs.h.  */
9254
9255/* Override any GCC internal prototype to avoid an error.
9256   Use char because int might match the return type of a GCC
9257   builtin and then its argument prototype would still apply.  */
9258#ifdef __cplusplus
9259extern "C"
9260#endif
9261char XpEndJob ();
9262int
9263main ()
9264{
9265return XpEndJob ();
9266  ;
9267  return 0;
9268}
9269_ACEOF
9270if ac_fn_c_try_link "$LINENO"; then :
9271  ac_cv_lib_Xp_XpEndJob=yes
9272else
9273  ac_cv_lib_Xp_XpEndJob=no
9274fi
9275rm -f core conftest.err conftest.$ac_objext \
9276    conftest$ac_exeext conftest.$ac_ext
9277LIBS=$ac_check_lib_save_LIBS
9278fi
9279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5
9280$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9281if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then :
9282  GUI_X_LIBS="-lXp $GUI_X_LIBS"
9283fi
9284
9285  fi
9286  LDFLAGS=$ldflags_save
9287
9288    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5
9289$as_echo_n "checking for extra X11 defines... " >&6; }
9290  NARROW_PROTO=
9291  rm -fr conftestdir
9292  if mkdir conftestdir; then
9293    cd conftestdir
9294    cat > Imakefile <<'EOF'
9295acfindx:
9296	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9297EOF
9298    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9299      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9300    fi
9301    cd ..
9302    rm -fr conftestdir
9303  fi
9304  if test -z "$NARROW_PROTO"; then
9305    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9306$as_echo "no" >&6; }
9307  else
9308    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5
9309$as_echo "$NARROW_PROTO" >&6; }
9310  fi
9311
9312fi
9313
9314if test "$enable_xsmp" = "yes"; then
9315  cppflags_save=$CPPFLAGS
9316  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9317  for ac_header in X11/SM/SMlib.h
9318do :
9319  ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
9320if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
9321  cat >>confdefs.h <<_ACEOF
9322#define HAVE_X11_SM_SMLIB_H 1
9323_ACEOF
9324
9325fi
9326
9327done
9328
9329  CPPFLAGS=$cppflags_save
9330fi
9331
9332
9333if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2"; then
9334    cppflags_save=$CPPFLAGS
9335  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9336  for ac_header in X11/xpm.h X11/Sunkeysym.h
9337do :
9338  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9339ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9340if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9341  cat >>confdefs.h <<_ACEOF
9342#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9343_ACEOF
9344
9345fi
9346
9347done
9348
9349
9350    if test ! "$enable_xim" = "no"; then
9351    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5
9352$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
9353    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354/* end confdefs.h.  */
9355#include <X11/Xlib.h>
9356_ACEOF
9357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9358  $EGREP "XIMText" >/dev/null 2>&1; then :
9359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9360$as_echo "yes" >&6; }
9361else
9362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5
9363$as_echo "no; xim has been disabled" >&6; }; enable_xim="no"
9364fi
9365rm -f conftest*
9366
9367  fi
9368  CPPFLAGS=$cppflags_save
9369
9370    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9371		-a "x$GUITYPE" != "xNONE" ; then
9372    { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5
9373$as_echo "X GUI selected; xim has been enabled" >&6; }
9374    enable_xim="yes"
9375  fi
9376fi
9377
9378if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9379  cppflags_save=$CPPFLAGS
9380  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5
9382$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
9383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384/* end confdefs.h.  */
9385
9386#include <X11/Intrinsic.h>
9387#include <X11/Xmu/Editres.h>
9388int
9389main ()
9390{
9391int i; i = 0;
9392  ;
9393  return 0;
9394}
9395_ACEOF
9396if ac_fn_c_try_compile "$LINENO"; then :
9397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9398$as_echo "yes" >&6; }
9399		      $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h
9400
9401else
9402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9403$as_echo "no" >&6; }
9404fi
9405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9406  CPPFLAGS=$cppflags_save
9407fi
9408
9409if test -z "$SKIP_MOTIF"; then
9410  cppflags_save=$CPPFLAGS
9411  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9412  if test "$zOSUnix" = "yes"; then
9413	xmheader="Xm/Xm.h"
9414  else
9415	xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h
9416	   Xm/UnhighlightT.h Xm/Notebook.h"
9417  fi
9418  for ac_header in $xmheader
9419do :
9420  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9421ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9422if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9423  cat >>confdefs.h <<_ACEOF
9424#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9425_ACEOF
9426
9427fi
9428
9429done
9430
9431
9432  if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then
9433        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
9434$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
9435    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436/* end confdefs.h.  */
9437#include <Xm/XpmP.h>
9438int
9439main ()
9440{
9441XpmAttributes_21 attr;
9442  ;
9443  return 0;
9444}
9445_ACEOF
9446if ac_fn_c_try_compile "$LINENO"; then :
9447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9448$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h
9449
9450else
9451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
9453
9454
9455fi
9456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9457  else
9458    $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
9459
9460  fi
9461  CPPFLAGS=$cppflags_save
9462fi
9463
9464if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
9465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5
9466$as_echo "no GUI selected; xim has been disabled" >&6; }
9467  enable_xim="no"
9468fi
9469if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
9470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5
9471$as_echo "no GUI selected; fontset has been disabled" >&6; }
9472  enable_fontset="no"
9473fi
9474if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then
9475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9476$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
9477  enable_fontset="no"
9478fi
9479
9480if test -z "$SKIP_PHOTON"; then
9481  GUITYPE=PHOTONGUI
9482fi
9483
9484
9485
9486
9487
9488
9489if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
9490  as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5
9491fi
9492
9493if test "$enable_xim" = "yes"; then
9494  $as_echo "#define FEAT_XIM 1" >>confdefs.h
9495
9496fi
9497if test "$enable_fontset" = "yes"; then
9498  $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h
9499
9500fi
9501
9502
9503
9504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN environment" >&5
9505$as_echo_n "checking for CYGWIN environment... " >&6; }
9506case `uname` in
9507    CYGWIN*)    CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9508$as_echo "yes" >&6; }
9509                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5
9510$as_echo_n "checking for CYGWIN clipboard support... " >&6; }
9511                if test "x$with_x" = "xno" ; then
9512                  OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o
9513                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9514$as_echo "yes" >&6; }
9515                  $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h
9516
9517                else
9518                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5
9519$as_echo "no - using X11" >&6; }
9520                fi ;;
9521
9522    *)          CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523$as_echo "no" >&6; };;
9524esac
9525
9526if test "$enable_hangulinput" = "yes"; then
9527  if test "x$GUITYPE" = "xNONE"; then
9528    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5
9529$as_echo "no GUI selected; hangul input has been disabled" >&6; }
9530    enable_hangulinput=no
9531  else
9532    $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h
9533
9534    HANGULIN_SRC=hangulin.c
9535
9536    HANGULIN_OBJ=objects/hangulin.o
9537
9538  fi
9539fi
9540
9541
9542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5
9543$as_echo_n "checking whether toupper is broken... " >&6; }
9544if ${vim_cv_toupper_broken+:} false; then :
9545  $as_echo_n "(cached) " >&6
9546else
9547
9548    if test "$cross_compiling" = yes; then :
9549
9550    as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5
9551
9552else
9553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554/* end confdefs.h.  */
9555
9556#include "confdefs.h"
9557#include <ctype.h>
9558#if STDC_HEADERS
9559# include <stdlib.h>
9560# include <stddef.h>
9561#endif
9562main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
9563
9564_ACEOF
9565if ac_fn_c_try_run "$LINENO"; then :
9566
9567    vim_cv_toupper_broken=yes
9568
9569else
9570
9571    vim_cv_toupper_broken=no
9572
9573fi
9574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9575  conftest.$ac_objext conftest.beam conftest.$ac_ext
9576fi
9577
9578fi
9579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5
9580$as_echo "$vim_cv_toupper_broken" >&6; }
9581
9582if test "x$vim_cv_toupper_broken" = "xyes" ; then
9583  $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h
9584
9585fi
9586
9587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5
9588$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
9589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590/* end confdefs.h.  */
9591#include <stdio.h>
9592int
9593main ()
9594{
9595printf("(" __DATE__ " " __TIME__ ")");
9596  ;
9597  return 0;
9598}
9599_ACEOF
9600if ac_fn_c_try_compile "$LINENO"; then :
9601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9602$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h
9603
9604else
9605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9606$as_echo "no" >&6; }
9607fi
9608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9609
9610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5
9611$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
9612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613/* end confdefs.h.  */
9614#include <stdio.h>
9615int
9616main ()
9617{
9618int x __attribute__((unused));
9619  ;
9620  return 0;
9621}
9622_ACEOF
9623if ac_fn_c_try_compile "$LINENO"; then :
9624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9625$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
9626
9627else
9628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9629$as_echo "no" >&6; }
9630fi
9631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9632
9633ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
9634if test "x$ac_cv_header_elf_h" = xyes; then :
9635  HAS_ELF=1
9636fi
9637
9638
9639if test "$HAS_ELF" = 1; then
9640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5
9641$as_echo_n "checking for main in -lelf... " >&6; }
9642if ${ac_cv_lib_elf_main+:} false; then :
9643  $as_echo_n "(cached) " >&6
9644else
9645  ac_check_lib_save_LIBS=$LIBS
9646LIBS="-lelf  $LIBS"
9647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648/* end confdefs.h.  */
9649
9650
9651int
9652main ()
9653{
9654return main ();
9655  ;
9656  return 0;
9657}
9658_ACEOF
9659if ac_fn_c_try_link "$LINENO"; then :
9660  ac_cv_lib_elf_main=yes
9661else
9662  ac_cv_lib_elf_main=no
9663fi
9664rm -f core conftest.err conftest.$ac_objext \
9665    conftest$ac_exeext conftest.$ac_ext
9666LIBS=$ac_check_lib_save_LIBS
9667fi
9668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5
9669$as_echo "$ac_cv_lib_elf_main" >&6; }
9670if test "x$ac_cv_lib_elf_main" = xyes; then :
9671  cat >>confdefs.h <<_ACEOF
9672#define HAVE_LIBELF 1
9673_ACEOF
9674
9675  LIBS="-lelf $LIBS"
9676
9677fi
9678
9679fi
9680
9681ac_header_dirent=no
9682for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9683  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9685$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9686if eval \${$as_ac_Header+:} false; then :
9687  $as_echo_n "(cached) " >&6
9688else
9689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690/* end confdefs.h.  */
9691#include <sys/types.h>
9692#include <$ac_hdr>
9693
9694int
9695main ()
9696{
9697if ((DIR *) 0)
9698return 0;
9699  ;
9700  return 0;
9701}
9702_ACEOF
9703if ac_fn_c_try_compile "$LINENO"; then :
9704  eval "$as_ac_Header=yes"
9705else
9706  eval "$as_ac_Header=no"
9707fi
9708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709fi
9710eval ac_res=\$$as_ac_Header
9711	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9712$as_echo "$ac_res" >&6; }
9713if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9714  cat >>confdefs.h <<_ACEOF
9715#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9716_ACEOF
9717
9718ac_header_dirent=$ac_hdr; break
9719fi
9720
9721done
9722# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9723if test $ac_header_dirent = dirent.h; then
9724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9725$as_echo_n "checking for library containing opendir... " >&6; }
9726if ${ac_cv_search_opendir+:} false; then :
9727  $as_echo_n "(cached) " >&6
9728else
9729  ac_func_search_save_LIBS=$LIBS
9730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731/* end confdefs.h.  */
9732
9733/* Override any GCC internal prototype to avoid an error.
9734   Use char because int might match the return type of a GCC
9735   builtin and then its argument prototype would still apply.  */
9736#ifdef __cplusplus
9737extern "C"
9738#endif
9739char opendir ();
9740int
9741main ()
9742{
9743return opendir ();
9744  ;
9745  return 0;
9746}
9747_ACEOF
9748for ac_lib in '' dir; do
9749  if test -z "$ac_lib"; then
9750    ac_res="none required"
9751  else
9752    ac_res=-l$ac_lib
9753    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9754  fi
9755  if ac_fn_c_try_link "$LINENO"; then :
9756  ac_cv_search_opendir=$ac_res
9757fi
9758rm -f core conftest.err conftest.$ac_objext \
9759    conftest$ac_exeext
9760  if ${ac_cv_search_opendir+:} false; then :
9761  break
9762fi
9763done
9764if ${ac_cv_search_opendir+:} false; then :
9765
9766else
9767  ac_cv_search_opendir=no
9768fi
9769rm conftest.$ac_ext
9770LIBS=$ac_func_search_save_LIBS
9771fi
9772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9773$as_echo "$ac_cv_search_opendir" >&6; }
9774ac_res=$ac_cv_search_opendir
9775if test "$ac_res" != no; then :
9776  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9777
9778fi
9779
9780else
9781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9782$as_echo_n "checking for library containing opendir... " >&6; }
9783if ${ac_cv_search_opendir+:} false; then :
9784  $as_echo_n "(cached) " >&6
9785else
9786  ac_func_search_save_LIBS=$LIBS
9787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9788/* end confdefs.h.  */
9789
9790/* Override any GCC internal prototype to avoid an error.
9791   Use char because int might match the return type of a GCC
9792   builtin and then its argument prototype would still apply.  */
9793#ifdef __cplusplus
9794extern "C"
9795#endif
9796char opendir ();
9797int
9798main ()
9799{
9800return opendir ();
9801  ;
9802  return 0;
9803}
9804_ACEOF
9805for ac_lib in '' x; do
9806  if test -z "$ac_lib"; then
9807    ac_res="none required"
9808  else
9809    ac_res=-l$ac_lib
9810    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9811  fi
9812  if ac_fn_c_try_link "$LINENO"; then :
9813  ac_cv_search_opendir=$ac_res
9814fi
9815rm -f core conftest.err conftest.$ac_objext \
9816    conftest$ac_exeext
9817  if ${ac_cv_search_opendir+:} false; then :
9818  break
9819fi
9820done
9821if ${ac_cv_search_opendir+:} false; then :
9822
9823else
9824  ac_cv_search_opendir=no
9825fi
9826rm conftest.$ac_ext
9827LIBS=$ac_func_search_save_LIBS
9828fi
9829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9830$as_echo "$ac_cv_search_opendir" >&6; }
9831ac_res=$ac_cv_search_opendir
9832if test "$ac_res" != no; then :
9833  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9834
9835fi
9836
9837fi
9838
9839
9840if test $ac_cv_header_sys_wait_h = no; then
9841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5
9842$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
9843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844/* end confdefs.h.  */
9845#include <sys/wait.h>
9846int
9847main ()
9848{
9849union wait xx, yy; xx = yy
9850  ;
9851  return 0;
9852}
9853_ACEOF
9854if ac_fn_c_try_compile "$LINENO"; then :
9855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9856$as_echo "yes" >&6; }
9857			$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9858
9859			$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
9860
9861else
9862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9863$as_echo "no" >&6; }
9864fi
9865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9866fi
9867
9868for ac_header in stdarg.h stdint.h stdlib.h string.h \
9869	sys/select.h sys/utsname.h termcap.h fcntl.h \
9870	sgtty.h sys/ioctl.h sys/time.h sys/types.h \
9871	termio.h iconv.h inttypes.h langinfo.h math.h \
9872	unistd.h stropts.h errno.h sys/resource.h \
9873	sys/systeminfo.h locale.h sys/stream.h termios.h \
9874	libc.h sys/statfs.h poll.h sys/poll.h pwd.h \
9875	utime.h sys/param.h libintl.h libgen.h \
9876	util/debug.h util/msg18n.h frame.h sys/acl.h \
9877	sys/access.h sys/sysinfo.h wchar.h wctype.h
9878do :
9879  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9880ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9881if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9882  cat >>confdefs.h <<_ACEOF
9883#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9884_ACEOF
9885
9886fi
9887
9888done
9889
9890
9891for ac_header in sys/ptem.h
9892do :
9893  ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H
9894#  include <sys/stream.h>
9895#endif
9896"
9897if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
9898  cat >>confdefs.h <<_ACEOF
9899#define HAVE_SYS_PTEM_H 1
9900_ACEOF
9901
9902fi
9903
9904done
9905
9906
9907for ac_header in sys/sysctl.h
9908do :
9909  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
9910#  include <sys/param.h>
9911#endif
9912"
9913if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
9914  cat >>confdefs.h <<_ACEOF
9915#define HAVE_SYS_SYSCTL_H 1
9916_ACEOF
9917
9918fi
9919
9920done
9921
9922
9923
9924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5
9925$as_echo_n "checking for pthread_np.h... " >&6; }
9926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927/* end confdefs.h.  */
9928
9929#include <pthread.h>
9930#include <pthread_np.h>
9931int
9932main ()
9933{
9934int i; i = 0;
9935  ;
9936  return 0;
9937}
9938_ACEOF
9939if ac_fn_c_try_compile "$LINENO"; then :
9940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9941$as_echo "yes" >&6; }
9942		      $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
9943
9944else
9945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946$as_echo "no" >&6; }
9947fi
9948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9949
9950for ac_header in strings.h
9951do :
9952  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
9953if test "x$ac_cv_header_strings_h" = xyes; then :
9954  cat >>confdefs.h <<_ACEOF
9955#define HAVE_STRINGS_H 1
9956_ACEOF
9957
9958fi
9959
9960done
9961
9962if test "x$MACOSX" = "xyes"; then
9963    $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
9964
9965else
9966
9967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5
9968$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
9969cppflags_save=$CPPFLAGS
9970CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972/* end confdefs.h.  */
9973
9974#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
9975# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
9976			/* but don't do it on AIX 5.1 (Uribarri) */
9977#endif
9978#ifdef HAVE_XM_XM_H
9979# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
9980#endif
9981#ifdef HAVE_STRING_H
9982# include <string.h>
9983#endif
9984#if defined(HAVE_STRINGS_H)
9985# include <strings.h>
9986#endif
9987
9988int
9989main ()
9990{
9991int i; i = 0;
9992  ;
9993  return 0;
9994}
9995_ACEOF
9996if ac_fn_c_try_compile "$LINENO"; then :
9997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9998$as_echo "yes" >&6; }
9999else
10000  $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
10001
10002		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10003$as_echo "no" >&6; }
10004fi
10005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10006CPPFLAGS=$cppflags_save
10007fi
10008
10009if test $ac_cv_c_compiler_gnu = yes; then
10010    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
10011$as_echo_n "checking whether $CC needs -traditional... " >&6; }
10012if ${ac_cv_prog_gcc_traditional+:} false; then :
10013  $as_echo_n "(cached) " >&6
10014else
10015    ac_pattern="Autoconf.*'x'"
10016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017/* end confdefs.h.  */
10018#include <sgtty.h>
10019Autoconf TIOCGETP
10020_ACEOF
10021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10022  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10023  ac_cv_prog_gcc_traditional=yes
10024else
10025  ac_cv_prog_gcc_traditional=no
10026fi
10027rm -f conftest*
10028
10029
10030  if test $ac_cv_prog_gcc_traditional = no; then
10031    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032/* end confdefs.h.  */
10033#include <termio.h>
10034Autoconf TCGETA
10035_ACEOF
10036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10037  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10038  ac_cv_prog_gcc_traditional=yes
10039fi
10040rm -f conftest*
10041
10042  fi
10043fi
10044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10045$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
10046  if test $ac_cv_prog_gcc_traditional = yes; then
10047    CC="$CC -traditional"
10048  fi
10049fi
10050
10051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10052$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10053if ${ac_cv_c_const+:} false; then :
10054  $as_echo_n "(cached) " >&6
10055else
10056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057/* end confdefs.h.  */
10058
10059int
10060main ()
10061{
10062
10063#ifndef __cplusplus
10064  /* Ultrix mips cc rejects this sort of thing.  */
10065  typedef int charset[2];
10066  const charset cs = { 0, 0 };
10067  /* SunOS 4.1.1 cc rejects this.  */
10068  char const *const *pcpcc;
10069  char **ppc;
10070  /* NEC SVR4.0.2 mips cc rejects this.  */
10071  struct point {int x, y;};
10072  static struct point const zero = {0,0};
10073  /* AIX XL C 1.02.0.0 rejects this.
10074     It does not let you subtract one const X* pointer from another in
10075     an arm of an if-expression whose if-part is not a constant
10076     expression */
10077  const char *g = "string";
10078  pcpcc = &g + (g ? g-g : 0);
10079  /* HPUX 7.0 cc rejects these. */
10080  ++pcpcc;
10081  ppc = (char**) pcpcc;
10082  pcpcc = (char const *const *) ppc;
10083  { /* SCO 3.2v4 cc rejects this sort of thing.  */
10084    char tx;
10085    char *t = &tx;
10086    char const *s = 0 ? (char *) 0 : (char const *) 0;
10087
10088    *t++ = 0;
10089    if (s) return 0;
10090  }
10091  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10092    int x[] = {25, 17};
10093    const int *foo = &x[0];
10094    ++foo;
10095  }
10096  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10097    typedef const int *iptr;
10098    iptr p = 0;
10099    ++p;
10100  }
10101  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
10102       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10103    struct s { int j; const int *ap[3]; } bx;
10104    struct s *b = &bx; b->j = 5;
10105  }
10106  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10107    const int foo = 10;
10108    if (!foo) return 0;
10109  }
10110  return !cs[0] && !zero.x;
10111#endif
10112
10113  ;
10114  return 0;
10115}
10116_ACEOF
10117if ac_fn_c_try_compile "$LINENO"; then :
10118  ac_cv_c_const=yes
10119else
10120  ac_cv_c_const=no
10121fi
10122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10123fi
10124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10125$as_echo "$ac_cv_c_const" >&6; }
10126if test $ac_cv_c_const = no; then
10127
10128$as_echo "#define const /**/" >>confdefs.h
10129
10130fi
10131
10132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
10133$as_echo_n "checking for working volatile... " >&6; }
10134if ${ac_cv_c_volatile+:} false; then :
10135  $as_echo_n "(cached) " >&6
10136else
10137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138/* end confdefs.h.  */
10139
10140int
10141main ()
10142{
10143
10144volatile int x;
10145int * volatile y = (int *) 0;
10146return !x && !y;
10147  ;
10148  return 0;
10149}
10150_ACEOF
10151if ac_fn_c_try_compile "$LINENO"; then :
10152  ac_cv_c_volatile=yes
10153else
10154  ac_cv_c_volatile=no
10155fi
10156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157fi
10158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
10159$as_echo "$ac_cv_c_volatile" >&6; }
10160if test $ac_cv_c_volatile = no; then
10161
10162$as_echo "#define volatile /**/" >>confdefs.h
10163
10164fi
10165
10166ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10167if test "x$ac_cv_type_mode_t" = xyes; then :
10168
10169else
10170
10171cat >>confdefs.h <<_ACEOF
10172#define mode_t int
10173_ACEOF
10174
10175fi
10176
10177ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
10178if test "x$ac_cv_type_off_t" = xyes; then :
10179
10180else
10181
10182cat >>confdefs.h <<_ACEOF
10183#define off_t long int
10184_ACEOF
10185
10186fi
10187
10188ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10189if test "x$ac_cv_type_pid_t" = xyes; then :
10190
10191else
10192
10193cat >>confdefs.h <<_ACEOF
10194#define pid_t int
10195_ACEOF
10196
10197fi
10198
10199ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10200if test "x$ac_cv_type_size_t" = xyes; then :
10201
10202else
10203
10204cat >>confdefs.h <<_ACEOF
10205#define size_t unsigned int
10206_ACEOF
10207
10208fi
10209
10210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
10211$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
10212if ${ac_cv_type_uid_t+:} false; then :
10213  $as_echo_n "(cached) " >&6
10214else
10215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10216/* end confdefs.h.  */
10217#include <sys/types.h>
10218
10219_ACEOF
10220if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10221  $EGREP "uid_t" >/dev/null 2>&1; then :
10222  ac_cv_type_uid_t=yes
10223else
10224  ac_cv_type_uid_t=no
10225fi
10226rm -f conftest*
10227
10228fi
10229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
10230$as_echo "$ac_cv_type_uid_t" >&6; }
10231if test $ac_cv_type_uid_t = no; then
10232
10233$as_echo "#define uid_t int" >>confdefs.h
10234
10235
10236$as_echo "#define gid_t int" >>confdefs.h
10237
10238fi
10239
10240ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
10241case $ac_cv_c_uint32_t in #(
10242  no|yes) ;; #(
10243  *)
10244
10245$as_echo "#define _UINT32_T 1" >>confdefs.h
10246
10247
10248cat >>confdefs.h <<_ACEOF
10249#define uint32_t $ac_cv_c_uint32_t
10250_ACEOF
10251;;
10252  esac
10253
10254
10255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
10256$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10257if ${ac_cv_header_time+:} false; then :
10258  $as_echo_n "(cached) " >&6
10259else
10260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261/* end confdefs.h.  */
10262#include <sys/types.h>
10263#include <sys/time.h>
10264#include <time.h>
10265
10266int
10267main ()
10268{
10269if ((struct tm *) 0)
10270return 0;
10271  ;
10272  return 0;
10273}
10274_ACEOF
10275if ac_fn_c_try_compile "$LINENO"; then :
10276  ac_cv_header_time=yes
10277else
10278  ac_cv_header_time=no
10279fi
10280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10281fi
10282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
10283$as_echo "$ac_cv_header_time" >&6; }
10284if test $ac_cv_header_time = yes; then
10285
10286$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
10287
10288fi
10289
10290ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
10291if test "x$ac_cv_type_ino_t" = xyes; then :
10292
10293else
10294
10295cat >>confdefs.h <<_ACEOF
10296#define ino_t long
10297_ACEOF
10298
10299fi
10300
10301ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
10302if test "x$ac_cv_type_dev_t" = xyes; then :
10303
10304else
10305
10306cat >>confdefs.h <<_ACEOF
10307#define dev_t unsigned
10308_ACEOF
10309
10310fi
10311
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10313$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10314if ${ac_cv_c_bigendian+:} false; then :
10315  $as_echo_n "(cached) " >&6
10316else
10317  ac_cv_c_bigendian=unknown
10318    # See if we're dealing with a universal compiler.
10319    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320/* end confdefs.h.  */
10321#ifndef __APPLE_CC__
10322	       not a universal capable compiler
10323	     #endif
10324	     typedef int dummy;
10325
10326_ACEOF
10327if ac_fn_c_try_compile "$LINENO"; then :
10328
10329	# Check for potential -arch flags.  It is not universal unless
10330	# there are at least two -arch flags with different values.
10331	ac_arch=
10332	ac_prev=
10333	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10334	 if test -n "$ac_prev"; then
10335	   case $ac_word in
10336	     i?86 | x86_64 | ppc | ppc64)
10337	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10338		 ac_arch=$ac_word
10339	       else
10340		 ac_cv_c_bigendian=universal
10341		 break
10342	       fi
10343	       ;;
10344	   esac
10345	   ac_prev=
10346	 elif test "x$ac_word" = "x-arch"; then
10347	   ac_prev=arch
10348	 fi
10349       done
10350fi
10351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10352    if test $ac_cv_c_bigendian = unknown; then
10353      # See if sys/param.h defines the BYTE_ORDER macro.
10354      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355/* end confdefs.h.  */
10356#include <sys/types.h>
10357	     #include <sys/param.h>
10358
10359int
10360main ()
10361{
10362#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10363		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10364		     && LITTLE_ENDIAN)
10365	      bogus endian macros
10366	     #endif
10367
10368  ;
10369  return 0;
10370}
10371_ACEOF
10372if ac_fn_c_try_compile "$LINENO"; then :
10373  # It does; now see whether it defined to BIG_ENDIAN or not.
10374	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375/* end confdefs.h.  */
10376#include <sys/types.h>
10377		#include <sys/param.h>
10378
10379int
10380main ()
10381{
10382#if BYTE_ORDER != BIG_ENDIAN
10383		 not big endian
10384		#endif
10385
10386  ;
10387  return 0;
10388}
10389_ACEOF
10390if ac_fn_c_try_compile "$LINENO"; then :
10391  ac_cv_c_bigendian=yes
10392else
10393  ac_cv_c_bigendian=no
10394fi
10395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396fi
10397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10398    fi
10399    if test $ac_cv_c_bigendian = unknown; then
10400      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10401      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402/* end confdefs.h.  */
10403#include <limits.h>
10404
10405int
10406main ()
10407{
10408#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10409	      bogus endian macros
10410	     #endif
10411
10412  ;
10413  return 0;
10414}
10415_ACEOF
10416if ac_fn_c_try_compile "$LINENO"; then :
10417  # It does; now see whether it defined to _BIG_ENDIAN or not.
10418	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419/* end confdefs.h.  */
10420#include <limits.h>
10421
10422int
10423main ()
10424{
10425#ifndef _BIG_ENDIAN
10426		 not big endian
10427		#endif
10428
10429  ;
10430  return 0;
10431}
10432_ACEOF
10433if ac_fn_c_try_compile "$LINENO"; then :
10434  ac_cv_c_bigendian=yes
10435else
10436  ac_cv_c_bigendian=no
10437fi
10438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10439fi
10440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10441    fi
10442    if test $ac_cv_c_bigendian = unknown; then
10443      # Compile a test program.
10444      if test "$cross_compiling" = yes; then :
10445  # Try to guess by grepping values from an object file.
10446	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447/* end confdefs.h.  */
10448short int ascii_mm[] =
10449		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10450		short int ascii_ii[] =
10451		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10452		int use_ascii (int i) {
10453		  return ascii_mm[i] + ascii_ii[i];
10454		}
10455		short int ebcdic_ii[] =
10456		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10457		short int ebcdic_mm[] =
10458		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10459		int use_ebcdic (int i) {
10460		  return ebcdic_mm[i] + ebcdic_ii[i];
10461		}
10462		extern int foo;
10463
10464int
10465main ()
10466{
10467return use_ascii (foo) == use_ebcdic (foo);
10468  ;
10469  return 0;
10470}
10471_ACEOF
10472if ac_fn_c_try_compile "$LINENO"; then :
10473  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10474	      ac_cv_c_bigendian=yes
10475	    fi
10476	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10477	      if test "$ac_cv_c_bigendian" = unknown; then
10478		ac_cv_c_bigendian=no
10479	      else
10480		# finding both strings is unlikely to happen, but who knows?
10481		ac_cv_c_bigendian=unknown
10482	      fi
10483	    fi
10484fi
10485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10486else
10487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10488/* end confdefs.h.  */
10489$ac_includes_default
10490int
10491main ()
10492{
10493
10494	     /* Are we little or big endian?  From Harbison&Steele.  */
10495	     union
10496	     {
10497	       long int l;
10498	       char c[sizeof (long int)];
10499	     } u;
10500	     u.l = 1;
10501	     return u.c[sizeof (long int) - 1] == 1;
10502
10503  ;
10504  return 0;
10505}
10506_ACEOF
10507if ac_fn_c_try_run "$LINENO"; then :
10508  ac_cv_c_bigendian=no
10509else
10510  ac_cv_c_bigendian=yes
10511fi
10512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10513  conftest.$ac_objext conftest.beam conftest.$ac_ext
10514fi
10515
10516    fi
10517fi
10518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10519$as_echo "$ac_cv_c_bigendian" >&6; }
10520 case $ac_cv_c_bigendian in #(
10521   yes)
10522     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10523;; #(
10524   no)
10525      ;; #(
10526   universal)
10527
10528$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10529
10530     ;; #(
10531   *)
10532     as_fn_error $? "unknown endianness
10533 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10534 esac
10535
10536
10537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
10538$as_echo_n "checking for rlim_t... " >&6; }
10539if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
10540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5
10541$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
10542else
10543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544/* end confdefs.h.  */
10545
10546#include <sys/types.h>
10547#if STDC_HEADERS
10548# include <stdlib.h>
10549# include <stddef.h>
10550#endif
10551#ifdef HAVE_SYS_RESOURCE_H
10552# include <sys/resource.h>
10553#endif
10554
10555_ACEOF
10556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10557  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
10558  ac_cv_type_rlim_t=yes
10559else
10560  ac_cv_type_rlim_t=no
10561fi
10562rm -f conftest*
10563
10564	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
10565$as_echo "$ac_cv_type_rlim_t" >&6; }
10566fi
10567if test $ac_cv_type_rlim_t = no; then
10568  cat >> confdefs.h <<\EOF
10569#define rlim_t unsigned long
10570EOF
10571fi
10572
10573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5
10574$as_echo_n "checking for stack_t... " >&6; }
10575if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
10576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5
10577$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
10578else
10579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580/* end confdefs.h.  */
10581
10582#include <sys/types.h>
10583#if STDC_HEADERS
10584# include <stdlib.h>
10585# include <stddef.h>
10586#endif
10587#include <signal.h>
10588
10589_ACEOF
10590if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10591  $EGREP "stack_t" >/dev/null 2>&1; then :
10592  ac_cv_type_stack_t=yes
10593else
10594  ac_cv_type_stack_t=no
10595fi
10596rm -f conftest*
10597
10598	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5
10599$as_echo "$ac_cv_type_stack_t" >&6; }
10600fi
10601if test $ac_cv_type_stack_t = no; then
10602  cat >> confdefs.h <<\EOF
10603#define stack_t struct sigaltstack
10604EOF
10605fi
10606
10607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5
10608$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
10609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610/* end confdefs.h.  */
10611
10612#include <sys/types.h>
10613#if STDC_HEADERS
10614# include <stdlib.h>
10615# include <stddef.h>
10616#endif
10617#include <signal.h>
10618#include "confdefs.h"
10619
10620int
10621main ()
10622{
10623stack_t sigstk; sigstk.ss_base = 0;
10624  ;
10625  return 0;
10626}
10627_ACEOF
10628if ac_fn_c_try_compile "$LINENO"; then :
10629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10630$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h
10631
10632else
10633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10634$as_echo "no" >&6; }
10635fi
10636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10637
10638olibs="$LIBS"
10639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5
10640$as_echo_n "checking --with-tlib argument... " >&6; }
10641
10642# Check whether --with-tlib was given.
10643if test "${with_tlib+set}" = set; then :
10644  withval=$with_tlib;
10645fi
10646
10647if test -n "$with_tlib"; then
10648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5
10649$as_echo "$with_tlib" >&6; }
10650  LIBS="$LIBS -l$with_tlib"
10651  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5
10652$as_echo_n "checking for linking with $with_tlib library... " >&6; }
10653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654/* end confdefs.h.  */
10655
10656int
10657main ()
10658{
10659
10660  ;
10661  return 0;
10662}
10663_ACEOF
10664if ac_fn_c_try_link "$LINENO"; then :
10665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
10666$as_echo "OK" >&6; }
10667else
10668  as_fn_error $? "FAILED" "$LINENO" 5
10669fi
10670rm -f core conftest.err conftest.$ac_objext \
10671    conftest$ac_exeext conftest.$ac_ext
10672    olibs="$LIBS"
10673else
10674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5
10675$as_echo "empty: automatic terminal library selection" >&6; }
10676                case "`uname -s 2>/dev/null`" in
10677	OSF1|SCO_SV)	tlibs="tinfo ncurses curses termlib termcap";;
10678	*)	tlibs="tinfo ncurses termlib termcap curses";;
10679  esac
10680  for libname in $tlibs; do
10681    as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
10682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5
10683$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
10684if eval \${$as_ac_Lib+:} false; then :
10685  $as_echo_n "(cached) " >&6
10686else
10687  ac_check_lib_save_LIBS=$LIBS
10688LIBS="-l${libname}  $LIBS"
10689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690/* end confdefs.h.  */
10691
10692/* Override any GCC internal prototype to avoid an error.
10693   Use char because int might match the return type of a GCC
10694   builtin and then its argument prototype would still apply.  */
10695#ifdef __cplusplus
10696extern "C"
10697#endif
10698char tgetent ();
10699int
10700main ()
10701{
10702return tgetent ();
10703  ;
10704  return 0;
10705}
10706_ACEOF
10707if ac_fn_c_try_link "$LINENO"; then :
10708  eval "$as_ac_Lib=yes"
10709else
10710  eval "$as_ac_Lib=no"
10711fi
10712rm -f core conftest.err conftest.$ac_objext \
10713    conftest$ac_exeext conftest.$ac_ext
10714LIBS=$ac_check_lib_save_LIBS
10715fi
10716eval ac_res=\$$as_ac_Lib
10717	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10718$as_echo "$ac_res" >&6; }
10719if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10720  cat >>confdefs.h <<_ACEOF
10721#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
10722_ACEOF
10723
10724  LIBS="-l${libname} $LIBS"
10725
10726fi
10727
10728    if test "x$olibs" != "x$LIBS"; then
10729                        if test "$cross_compiling" = yes; then :
10730  res="FAIL"
10731else
10732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733/* end confdefs.h.  */
10734
10735#ifdef HAVE_TERMCAP_H
10736# include <termcap.h>
10737#endif
10738#if STDC_HEADERS
10739# include <stdlib.h>
10740# include <stddef.h>
10741#endif
10742main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
10743_ACEOF
10744if ac_fn_c_try_run "$LINENO"; then :
10745  res="OK"
10746else
10747  res="FAIL"
10748fi
10749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10750  conftest.$ac_objext conftest.beam conftest.$ac_ext
10751fi
10752
10753      if test "$res" = "OK"; then
10754	break
10755      fi
10756      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5
10757$as_echo "$libname library is not usable" >&6; }
10758      LIBS="$olibs"
10759    fi
10760  done
10761  if test "x$olibs" = "x$LIBS"; then
10762    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5
10763$as_echo "no terminal library found" >&6; }
10764  fi
10765fi
10766
10767if test "x$olibs" = "x$LIBS"; then
10768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5
10769$as_echo_n "checking for tgetent()... " >&6; }
10770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771/* end confdefs.h.  */
10772
10773int
10774main ()
10775{
10776char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
10777  ;
10778  return 0;
10779}
10780_ACEOF
10781if ac_fn_c_try_link "$LINENO"; then :
10782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10783$as_echo "yes" >&6; }
10784else
10785  as_fn_error $? "NOT FOUND!
10786      You need to install a terminal library; for example ncurses.
10787      Or specify the name of the library with --with-tlib." "$LINENO" 5
10788fi
10789rm -f core conftest.err conftest.$ac_objext \
10790    conftest$ac_exeext conftest.$ac_ext
10791fi
10792
10793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5
10794$as_echo_n "checking whether we talk terminfo... " >&6; }
10795if ${vim_cv_terminfo+:} false; then :
10796  $as_echo_n "(cached) " >&6
10797else
10798
10799    if test "$cross_compiling" = yes; then :
10800
10801      as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5
10802
10803else
10804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805/* end confdefs.h.  */
10806
10807#include "confdefs.h"
10808#ifdef HAVE_TERMCAP_H
10809# include <termcap.h>
10810#endif
10811#ifdef HAVE_STRING_H
10812# include <string.h>
10813#endif
10814#if STDC_HEADERS
10815# include <stdlib.h>
10816# include <stddef.h>
10817#endif
10818main()
10819{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
10820
10821_ACEOF
10822if ac_fn_c_try_run "$LINENO"; then :
10823
10824      vim_cv_terminfo=no
10825
10826else
10827
10828      vim_cv_terminfo=yes
10829
10830fi
10831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10832  conftest.$ac_objext conftest.beam conftest.$ac_ext
10833fi
10834
10835
10836fi
10837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5
10838$as_echo "$vim_cv_terminfo" >&6; }
10839
10840if test "x$vim_cv_terminfo" = "xyes" ; then
10841  $as_echo "#define TERMINFO 1" >>confdefs.h
10842
10843fi
10844
10845if test "x$olibs" != "x$LIBS"; then
10846  { $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
10847$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
10848if ${vim_cv_tgent+:} false; then :
10849  $as_echo_n "(cached) " >&6
10850else
10851
10852      if test "$cross_compiling" = yes; then :
10853
10854	as_fn_error $? "failed to compile test program." "$LINENO" 5
10855
10856else
10857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858/* end confdefs.h.  */
10859
10860#include "confdefs.h"
10861#ifdef HAVE_TERMCAP_H
10862# include <termcap.h>
10863#endif
10864#if STDC_HEADERS
10865# include <stdlib.h>
10866# include <stddef.h>
10867#endif
10868main()
10869{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
10870
10871_ACEOF
10872if ac_fn_c_try_run "$LINENO"; then :
10873
10874	vim_cv_tgent=zero
10875
10876else
10877
10878	vim_cv_tgent=non-zero
10879
10880fi
10881rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10882  conftest.$ac_objext conftest.beam conftest.$ac_ext
10883fi
10884
10885
10886fi
10887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgent" >&5
10888$as_echo "$vim_cv_tgent" >&6; }
10889
10890  if test "x$vim_cv_tgent" = "xzero" ; then
10891    $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
10892
10893  fi
10894fi
10895
10896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5
10897$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
10898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10899/* end confdefs.h.  */
10900
10901#ifdef HAVE_TERMCAP_H
10902# include <termcap.h>
10903#endif
10904
10905int
10906main ()
10907{
10908ospeed = 20000
10909  ;
10910  return 0;
10911}
10912_ACEOF
10913if ac_fn_c_try_link "$LINENO"; then :
10914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10915$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
10916
10917else
10918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919$as_echo "no" >&6; }
10920	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5
10921$as_echo_n "checking whether ospeed can be extern... " >&6; }
10922	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923/* end confdefs.h.  */
10924
10925#ifdef HAVE_TERMCAP_H
10926# include <termcap.h>
10927#endif
10928extern short ospeed;
10929
10930int
10931main ()
10932{
10933ospeed = 20000
10934  ;
10935  return 0;
10936}
10937_ACEOF
10938if ac_fn_c_try_link "$LINENO"; then :
10939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10940$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h
10941
10942else
10943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10944$as_echo "no" >&6; }
10945fi
10946rm -f core conftest.err conftest.$ac_objext \
10947    conftest$ac_exeext conftest.$ac_ext
10948
10949fi
10950rm -f core conftest.err conftest.$ac_objext \
10951    conftest$ac_exeext conftest.$ac_ext
10952
10953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5
10954$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
10955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956/* end confdefs.h.  */
10957
10958#ifdef HAVE_TERMCAP_H
10959# include <termcap.h>
10960#endif
10961
10962int
10963main ()
10964{
10965if (UP == 0 && BC == 0) PC = 1
10966  ;
10967  return 0;
10968}
10969_ACEOF
10970if ac_fn_c_try_link "$LINENO"; then :
10971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10972$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h
10973
10974else
10975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976$as_echo "no" >&6; }
10977	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5
10978$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
10979	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10980/* end confdefs.h.  */
10981
10982#ifdef HAVE_TERMCAP_H
10983# include <termcap.h>
10984#endif
10985extern char *UP, *BC, PC;
10986
10987int
10988main ()
10989{
10990if (UP == 0 && BC == 0) PC = 1
10991  ;
10992  return 0;
10993}
10994_ACEOF
10995if ac_fn_c_try_link "$LINENO"; then :
10996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10997$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h
10998
10999else
11000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001$as_echo "no" >&6; }
11002fi
11003rm -f core conftest.err conftest.$ac_objext \
11004    conftest$ac_exeext conftest.$ac_ext
11005
11006fi
11007rm -f core conftest.err conftest.$ac_objext \
11008    conftest$ac_exeext conftest.$ac_ext
11009
11010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5
11011$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
11012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013/* end confdefs.h.  */
11014
11015#ifdef HAVE_TERMCAP_H
11016# include <termcap.h>
11017#endif
11018
11019int
11020main ()
11021{
11022extern int xx(); tputs("test", 1, (outfuntype)xx)
11023  ;
11024  return 0;
11025}
11026_ACEOF
11027if ac_fn_c_try_compile "$LINENO"; then :
11028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11029$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h
11030
11031else
11032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033$as_echo "no" >&6; }
11034fi
11035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11036
11037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
11038$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
11039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040/* end confdefs.h.  */
11041
11042#include <sys/types.h>
11043#include <sys/time.h>
11044#include <sys/select.h>
11045int
11046main ()
11047{
11048
11049  ;
11050  return 0;
11051}
11052_ACEOF
11053if ac_fn_c_try_compile "$LINENO"; then :
11054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11055$as_echo "yes" >&6; }
11056			$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
11057
11058else
11059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11060$as_echo "no" >&6; }
11061fi
11062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063
11064
11065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
11066$as_echo_n "checking for /dev/ptc... " >&6; }
11067if test -r /dev/ptc; then
11068  $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
11069
11070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11071$as_echo "yes" >&6; }
11072else
11073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11074$as_echo "no" >&6; }
11075fi
11076
11077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5
11078$as_echo_n "checking for SVR4 ptys... " >&6; }
11079if test -c /dev/ptmx ; then
11080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11081/* end confdefs.h.  */
11082
11083int
11084main ()
11085{
11086ptsname(0);grantpt(0);unlockpt(0);
11087  ;
11088  return 0;
11089}
11090_ACEOF
11091if ac_fn_c_try_link "$LINENO"; then :
11092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11093$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
11094
11095else
11096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11097$as_echo "no" >&6; }
11098fi
11099rm -f core conftest.err conftest.$ac_objext \
11100    conftest$ac_exeext conftest.$ac_ext
11101else
11102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103$as_echo "no" >&6; }
11104fi
11105
11106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5
11107$as_echo_n "checking for ptyranges... " >&6; }
11108if test -d /dev/ptym ; then
11109  pdir='/dev/ptym'
11110else
11111  pdir='/dev'
11112fi
11113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114/* end confdefs.h.  */
11115#ifdef M_UNIX
11116   yes;
11117#endif
11118
11119_ACEOF
11120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11121  $EGREP "yes" >/dev/null 2>&1; then :
11122  ptys=`echo /dev/ptyp??`
11123else
11124  ptys=`echo $pdir/pty??`
11125fi
11126rm -f conftest*
11127
11128if test "$ptys" != "$pdir/pty??" ; then
11129  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
11130  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
11131  cat >>confdefs.h <<_ACEOF
11132#define PTYRANGE0 "$p0"
11133_ACEOF
11134
11135  cat >>confdefs.h <<_ACEOF
11136#define PTYRANGE1 "$p1"
11137_ACEOF
11138
11139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5
11140$as_echo "$p0 / $p1" >&6; }
11141else
11142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5
11143$as_echo "don't know" >&6; }
11144fi
11145
11146rm -f conftest_grp
11147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5
11148$as_echo_n "checking default tty permissions/group... " >&6; }
11149if ${vim_cv_tty_group+:} false; then :
11150  $as_echo_n "(cached) " >&6
11151else
11152
11153    if test "$cross_compiling" = yes; then :
11154
11155      as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5
11156
11157else
11158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159/* end confdefs.h.  */
11160
11161#include "confdefs.h"
11162#include <sys/types.h>
11163#if STDC_HEADERS
11164# include <stdlib.h>
11165# include <stddef.h>
11166#endif
11167#ifdef HAVE_UNISTD_H
11168#include <unistd.h>
11169#endif
11170#include <sys/stat.h>
11171#include <stdio.h>
11172main()
11173{
11174  struct stat sb;
11175  char *x,*ttyname();
11176  int om, m;
11177  FILE *fp;
11178
11179  if (!(x = ttyname(0))) exit(1);
11180  if (stat(x, &sb)) exit(1);
11181  om = sb.st_mode;
11182  if (om & 002) exit(0);
11183  m = system("mesg y");
11184  if (m == -1 || m == 127) exit(1);
11185  if (stat(x, &sb)) exit(1);
11186  m = sb.st_mode;
11187  if (chmod(x, om)) exit(1);
11188  if (m & 002) exit(0);
11189  if (sb.st_gid == getgid()) exit(1);
11190  if (!(fp=fopen("conftest_grp", "w")))
11191    exit(1);
11192  fprintf(fp, "%d\n", sb.st_gid);
11193  fclose(fp);
11194  exit(0);
11195}
11196
11197_ACEOF
11198if ac_fn_c_try_run "$LINENO"; then :
11199
11200      if test -f conftest_grp; then
11201	vim_cv_tty_group=`cat conftest_grp`
11202	if test "x$vim_cv_tty_mode" = "x" ; then
11203	  vim_cv_tty_mode=0620
11204	fi
11205	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
11206$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
11207      else
11208	vim_cv_tty_group=world
11209	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5
11210$as_echo "ptys are world accessible" >&6; }
11211      fi
11212
11213else
11214
11215      vim_cv_tty_group=world
11216      { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5
11217$as_echo "can't determine - assume ptys are world accessible" >&6; }
11218
11219fi
11220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11221  conftest.$ac_objext conftest.beam conftest.$ac_ext
11222fi
11223
11224
11225fi
11226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5
11227$as_echo "$vim_cv_tty_group" >&6; }
11228rm -f conftest_grp
11229
11230if test "x$vim_cv_tty_group" != "xworld" ; then
11231  cat >>confdefs.h <<_ACEOF
11232#define PTYGROUP $vim_cv_tty_group
11233_ACEOF
11234
11235  if test "x$vim_cv_tty_mode" = "x" ; then
11236    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
11237  else
11238    $as_echo "#define PTYMODE 0620" >>confdefs.h
11239
11240  fi
11241fi
11242
11243
11244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11245$as_echo_n "checking return type of signal handlers... " >&6; }
11246if ${ac_cv_type_signal+:} false; then :
11247  $as_echo_n "(cached) " >&6
11248else
11249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11250/* end confdefs.h.  */
11251#include <sys/types.h>
11252#include <signal.h>
11253
11254int
11255main ()
11256{
11257return *(signal (0, 0)) (0) == 1;
11258  ;
11259  return 0;
11260}
11261_ACEOF
11262if ac_fn_c_try_compile "$LINENO"; then :
11263  ac_cv_type_signal=int
11264else
11265  ac_cv_type_signal=void
11266fi
11267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11268fi
11269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11270$as_echo "$ac_cv_type_signal" >&6; }
11271
11272cat >>confdefs.h <<_ACEOF
11273#define RETSIGTYPE $ac_cv_type_signal
11274_ACEOF
11275
11276
11277
11278if test $ac_cv_type_signal = void; then
11279  $as_echo "#define SIGRETURN return" >>confdefs.h
11280
11281else
11282  $as_echo "#define SIGRETURN return 0" >>confdefs.h
11283
11284fi
11285
11286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5
11287$as_echo_n "checking for struct sigcontext... " >&6; }
11288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289/* end confdefs.h.  */
11290
11291#include <signal.h>
11292test_sig()
11293{
11294    struct sigcontext *scont;
11295    scont = (struct sigcontext *)0;
11296    return 1;
11297}
11298int
11299main ()
11300{
11301
11302  ;
11303  return 0;
11304}
11305_ACEOF
11306if ac_fn_c_try_compile "$LINENO"; then :
11307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11308$as_echo "yes" >&6; }
11309		$as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h
11310
11311else
11312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313$as_echo "no" >&6; }
11314fi
11315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11316
11317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5
11318$as_echo_n "checking getcwd implementation is broken... " >&6; }
11319if ${vim_cv_getcwd_broken+:} false; then :
11320  $as_echo_n "(cached) " >&6
11321else
11322
11323    if test "$cross_compiling" = yes; then :
11324
11325      as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5
11326
11327else
11328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329/* end confdefs.h.  */
11330
11331#include "confdefs.h"
11332#ifdef HAVE_UNISTD_H
11333#include <unistd.h>
11334#endif
11335char *dagger[] = { "IFS=pwd", 0 };
11336main()
11337{
11338  char buffer[500];
11339  extern char **environ;
11340  environ = dagger;
11341  return getcwd(buffer, 500) ? 0 : 1;
11342}
11343
11344_ACEOF
11345if ac_fn_c_try_run "$LINENO"; then :
11346
11347      vim_cv_getcwd_broken=no
11348
11349else
11350
11351      vim_cv_getcwd_broken=yes
11352
11353fi
11354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11355  conftest.$ac_objext conftest.beam conftest.$ac_ext
11356fi
11357
11358
11359fi
11360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5
11361$as_echo "$vim_cv_getcwd_broken" >&6; }
11362
11363if test "x$vim_cv_getcwd_broken" = "xyes" ; then
11364  $as_echo "#define BAD_GETCWD 1" >>confdefs.h
11365
11366fi
11367
11368for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \
11369	getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
11370	memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
11371	setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
11372	sigvec strcasecmp strerror strftime stricmp strncasecmp \
11373	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
11374	usleep utime utimes
11375do :
11376  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11377ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11378if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11379  cat >>confdefs.h <<_ACEOF
11380#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11381_ACEOF
11382
11383fi
11384done
11385
11386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11387$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11388if ${ac_cv_sys_largefile_source+:} false; then :
11389  $as_echo_n "(cached) " >&6
11390else
11391  while :; do
11392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393/* end confdefs.h.  */
11394#include <sys/types.h> /* for off_t */
11395     #include <stdio.h>
11396int
11397main ()
11398{
11399int (*fp) (FILE *, off_t, int) = fseeko;
11400     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11401  ;
11402  return 0;
11403}
11404_ACEOF
11405if ac_fn_c_try_link "$LINENO"; then :
11406  ac_cv_sys_largefile_source=no; break
11407fi
11408rm -f core conftest.err conftest.$ac_objext \
11409    conftest$ac_exeext conftest.$ac_ext
11410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411/* end confdefs.h.  */
11412#define _LARGEFILE_SOURCE 1
11413#include <sys/types.h> /* for off_t */
11414     #include <stdio.h>
11415int
11416main ()
11417{
11418int (*fp) (FILE *, off_t, int) = fseeko;
11419     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11420  ;
11421  return 0;
11422}
11423_ACEOF
11424if ac_fn_c_try_link "$LINENO"; then :
11425  ac_cv_sys_largefile_source=1; break
11426fi
11427rm -f core conftest.err conftest.$ac_objext \
11428    conftest$ac_exeext conftest.$ac_ext
11429  ac_cv_sys_largefile_source=unknown
11430  break
11431done
11432fi
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11434$as_echo "$ac_cv_sys_largefile_source" >&6; }
11435case $ac_cv_sys_largefile_source in #(
11436  no | unknown) ;;
11437  *)
11438cat >>confdefs.h <<_ACEOF
11439#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11440_ACEOF
11441;;
11442esac
11443rm -rf conftest*
11444
11445# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11446# in glibc 2.1.3, but that breaks too many other things.
11447# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11448if test $ac_cv_sys_largefile_source != unknown; then
11449
11450$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11451
11452fi
11453
11454
11455# Check whether --enable-largefile was given.
11456if test "${enable_largefile+set}" = set; then :
11457  enableval=$enable_largefile;
11458fi
11459
11460if test "$enable_largefile" != no; then
11461
11462  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11463$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11464if ${ac_cv_sys_largefile_CC+:} false; then :
11465  $as_echo_n "(cached) " >&6
11466else
11467  ac_cv_sys_largefile_CC=no
11468     if test "$GCC" != yes; then
11469       ac_save_CC=$CC
11470       while :; do
11471	 # IRIX 6.2 and later do not support large files by default,
11472	 # so use the C compiler's -n32 option if that helps.
11473	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11474/* end confdefs.h.  */
11475#include <sys/types.h>
11476 /* Check that off_t can represent 2**63 - 1 correctly.
11477    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11478    since some C++ compilers masquerading as C compilers
11479    incorrectly reject 9223372036854775807.  */
11480#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11481  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11482		       && LARGE_OFF_T % 2147483647 == 1)
11483		      ? 1 : -1];
11484int
11485main ()
11486{
11487
11488  ;
11489  return 0;
11490}
11491_ACEOF
11492	 if ac_fn_c_try_compile "$LINENO"; then :
11493  break
11494fi
11495rm -f core conftest.err conftest.$ac_objext
11496	 CC="$CC -n32"
11497	 if ac_fn_c_try_compile "$LINENO"; then :
11498  ac_cv_sys_largefile_CC=' -n32'; break
11499fi
11500rm -f core conftest.err conftest.$ac_objext
11501	 break
11502       done
11503       CC=$ac_save_CC
11504       rm -f conftest.$ac_ext
11505    fi
11506fi
11507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11508$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11509  if test "$ac_cv_sys_largefile_CC" != no; then
11510    CC=$CC$ac_cv_sys_largefile_CC
11511  fi
11512
11513  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11514$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11515if ${ac_cv_sys_file_offset_bits+:} false; then :
11516  $as_echo_n "(cached) " >&6
11517else
11518  while :; do
11519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520/* end confdefs.h.  */
11521#include <sys/types.h>
11522 /* Check that off_t can represent 2**63 - 1 correctly.
11523    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11524    since some C++ compilers masquerading as C compilers
11525    incorrectly reject 9223372036854775807.  */
11526#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11527  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11528		       && LARGE_OFF_T % 2147483647 == 1)
11529		      ? 1 : -1];
11530int
11531main ()
11532{
11533
11534  ;
11535  return 0;
11536}
11537_ACEOF
11538if ac_fn_c_try_compile "$LINENO"; then :
11539  ac_cv_sys_file_offset_bits=no; break
11540fi
11541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11543/* end confdefs.h.  */
11544#define _FILE_OFFSET_BITS 64
11545#include <sys/types.h>
11546 /* Check that off_t can represent 2**63 - 1 correctly.
11547    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11548    since some C++ compilers masquerading as C compilers
11549    incorrectly reject 9223372036854775807.  */
11550#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11551  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11552		       && LARGE_OFF_T % 2147483647 == 1)
11553		      ? 1 : -1];
11554int
11555main ()
11556{
11557
11558  ;
11559  return 0;
11560}
11561_ACEOF
11562if ac_fn_c_try_compile "$LINENO"; then :
11563  ac_cv_sys_file_offset_bits=64; break
11564fi
11565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11566  ac_cv_sys_file_offset_bits=unknown
11567  break
11568done
11569fi
11570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11571$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11572case $ac_cv_sys_file_offset_bits in #(
11573  no | unknown) ;;
11574  *)
11575cat >>confdefs.h <<_ACEOF
11576#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11577_ACEOF
11578;;
11579esac
11580rm -rf conftest*
11581  if test $ac_cv_sys_file_offset_bits = unknown; then
11582    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11583$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11584if ${ac_cv_sys_large_files+:} false; then :
11585  $as_echo_n "(cached) " >&6
11586else
11587  while :; do
11588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589/* end confdefs.h.  */
11590#include <sys/types.h>
11591 /* Check that off_t can represent 2**63 - 1 correctly.
11592    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11593    since some C++ compilers masquerading as C compilers
11594    incorrectly reject 9223372036854775807.  */
11595#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11596  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11597		       && LARGE_OFF_T % 2147483647 == 1)
11598		      ? 1 : -1];
11599int
11600main ()
11601{
11602
11603  ;
11604  return 0;
11605}
11606_ACEOF
11607if ac_fn_c_try_compile "$LINENO"; then :
11608  ac_cv_sys_large_files=no; break
11609fi
11610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11612/* end confdefs.h.  */
11613#define _LARGE_FILES 1
11614#include <sys/types.h>
11615 /* Check that off_t can represent 2**63 - 1 correctly.
11616    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11617    since some C++ compilers masquerading as C compilers
11618    incorrectly reject 9223372036854775807.  */
11619#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11620  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11621		       && LARGE_OFF_T % 2147483647 == 1)
11622		      ? 1 : -1];
11623int
11624main ()
11625{
11626
11627  ;
11628  return 0;
11629}
11630_ACEOF
11631if ac_fn_c_try_compile "$LINENO"; then :
11632  ac_cv_sys_large_files=1; break
11633fi
11634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11635  ac_cv_sys_large_files=unknown
11636  break
11637done
11638fi
11639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11640$as_echo "$ac_cv_sys_large_files" >&6; }
11641case $ac_cv_sys_large_files in #(
11642  no | unknown) ;;
11643  *)
11644cat >>confdefs.h <<_ACEOF
11645#define _LARGE_FILES $ac_cv_sys_large_files
11646_ACEOF
11647;;
11648esac
11649rm -rf conftest*
11650  fi
11651
11652
11653fi
11654
11655
11656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5
11657$as_echo_n "checking for st_blksize... " >&6; }
11658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659/* end confdefs.h.  */
11660#include <sys/types.h>
11661#include <sys/stat.h>
11662int
11663main ()
11664{
11665	struct stat st;
11666	int n;
11667
11668	stat("/", &st);
11669	n = (int)st.st_blksize;
11670  ;
11671  return 0;
11672}
11673_ACEOF
11674if ac_fn_c_try_compile "$LINENO"; then :
11675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11676$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
11677
11678else
11679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11680$as_echo "no" >&6; }
11681fi
11682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11683
11684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5
11685$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
11686if ${vim_cv_stat_ignores_slash+:} false; then :
11687  $as_echo_n "(cached) " >&6
11688else
11689
11690    if test "$cross_compiling" = yes; then :
11691
11692      as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5
11693
11694else
11695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11696/* end confdefs.h.  */
11697
11698#include "confdefs.h"
11699#if STDC_HEADERS
11700# include <stdlib.h>
11701# include <stddef.h>
11702#endif
11703#include <sys/types.h>
11704#include <sys/stat.h>
11705main() {struct stat st;  exit(stat("configure/", &st) != 0); }
11706
11707_ACEOF
11708if ac_fn_c_try_run "$LINENO"; then :
11709
11710      vim_cv_stat_ignores_slash=yes
11711
11712else
11713
11714      vim_cv_stat_ignores_slash=no
11715
11716fi
11717rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11718  conftest.$ac_objext conftest.beam conftest.$ac_ext
11719fi
11720
11721
11722fi
11723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5
11724$as_echo "$vim_cv_stat_ignores_slash" >&6; }
11725
11726if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
11727  $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h
11728
11729fi
11730
11731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5
11732$as_echo_n "checking for iconv_open()... " >&6; }
11733save_LIBS="$LIBS"
11734LIBS="$LIBS -liconv"
11735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736/* end confdefs.h.  */
11737
11738#ifdef HAVE_ICONV_H
11739# include <iconv.h>
11740#endif
11741
11742int
11743main ()
11744{
11745iconv_open("fr", "to");
11746  ;
11747  return 0;
11748}
11749_ACEOF
11750if ac_fn_c_try_link "$LINENO"; then :
11751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5
11752$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11753
11754else
11755  LIBS="$save_LIBS"
11756    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757/* end confdefs.h.  */
11758
11759#ifdef HAVE_ICONV_H
11760# include <iconv.h>
11761#endif
11762
11763int
11764main ()
11765{
11766iconv_open("fr", "to");
11767  ;
11768  return 0;
11769}
11770_ACEOF
11771if ac_fn_c_try_link "$LINENO"; then :
11772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11773$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11774
11775else
11776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777$as_echo "no" >&6; }
11778fi
11779rm -f core conftest.err conftest.$ac_objext \
11780    conftest$ac_exeext conftest.$ac_ext
11781fi
11782rm -f core conftest.err conftest.$ac_objext \
11783    conftest$ac_exeext conftest.$ac_ext
11784
11785
11786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
11787$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
11788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789/* end confdefs.h.  */
11790
11791#ifdef HAVE_LANGINFO_H
11792# include <langinfo.h>
11793#endif
11794
11795int
11796main ()
11797{
11798char *cs = nl_langinfo(CODESET);
11799  ;
11800  return 0;
11801}
11802_ACEOF
11803if ac_fn_c_try_link "$LINENO"; then :
11804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11805$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
11806
11807else
11808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809$as_echo "no" >&6; }
11810fi
11811rm -f core conftest.err conftest.$ac_objext \
11812    conftest$ac_exeext conftest.$ac_ext
11813
11814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5
11815$as_echo_n "checking for strtod in -lm... " >&6; }
11816if ${ac_cv_lib_m_strtod+:} false; then :
11817  $as_echo_n "(cached) " >&6
11818else
11819  ac_check_lib_save_LIBS=$LIBS
11820LIBS="-lm  $LIBS"
11821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11822/* end confdefs.h.  */
11823
11824/* Override any GCC internal prototype to avoid an error.
11825   Use char because int might match the return type of a GCC
11826   builtin and then its argument prototype would still apply.  */
11827#ifdef __cplusplus
11828extern "C"
11829#endif
11830char strtod ();
11831int
11832main ()
11833{
11834return strtod ();
11835  ;
11836  return 0;
11837}
11838_ACEOF
11839if ac_fn_c_try_link "$LINENO"; then :
11840  ac_cv_lib_m_strtod=yes
11841else
11842  ac_cv_lib_m_strtod=no
11843fi
11844rm -f core conftest.err conftest.$ac_objext \
11845    conftest$ac_exeext conftest.$ac_ext
11846LIBS=$ac_check_lib_save_LIBS
11847fi
11848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5
11849$as_echo "$ac_cv_lib_m_strtod" >&6; }
11850if test "x$ac_cv_lib_m_strtod" = xyes; then :
11851  cat >>confdefs.h <<_ACEOF
11852#define HAVE_LIBM 1
11853_ACEOF
11854
11855  LIBS="-lm $LIBS"
11856
11857fi
11858
11859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5
11860$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
11861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862/* end confdefs.h.  */
11863
11864#ifdef HAVE_MATH_H
11865# include <math.h>
11866#endif
11867#if STDC_HEADERS
11868# include <stdlib.h>
11869# include <stddef.h>
11870#endif
11871
11872int
11873main ()
11874{
11875char *s; double d;
11876    d = strtod("1.1", &s);
11877    d = fabs(1.11);
11878    d = ceil(1.11);
11879    d = floor(1.11);
11880    d = log10(1.11);
11881    d = pow(1.11, 2.22);
11882    d = sqrt(1.11);
11883    d = sin(1.11);
11884    d = cos(1.11);
11885    d = atan(1.11);
11886
11887  ;
11888  return 0;
11889}
11890_ACEOF
11891if ac_fn_c_try_link "$LINENO"; then :
11892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11893$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h
11894
11895else
11896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897$as_echo "no" >&6; }
11898fi
11899rm -f core conftest.err conftest.$ac_objext \
11900    conftest$ac_exeext conftest.$ac_ext
11901
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5
11903$as_echo_n "checking --disable-acl argument... " >&6; }
11904# Check whether --enable-acl was given.
11905if test "${enable_acl+set}" = set; then :
11906  enableval=$enable_acl;
11907else
11908  enable_acl="yes"
11909fi
11910
11911if test "$enable_acl" = "yes"; then
11912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913$as_echo "no" >&6; }
11914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5
11915$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
11916if ${ac_cv_lib_posix1e_acl_get_file+:} false; then :
11917  $as_echo_n "(cached) " >&6
11918else
11919  ac_check_lib_save_LIBS=$LIBS
11920LIBS="-lposix1e  $LIBS"
11921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922/* end confdefs.h.  */
11923
11924/* Override any GCC internal prototype to avoid an error.
11925   Use char because int might match the return type of a GCC
11926   builtin and then its argument prototype would still apply.  */
11927#ifdef __cplusplus
11928extern "C"
11929#endif
11930char acl_get_file ();
11931int
11932main ()
11933{
11934return acl_get_file ();
11935  ;
11936  return 0;
11937}
11938_ACEOF
11939if ac_fn_c_try_link "$LINENO"; then :
11940  ac_cv_lib_posix1e_acl_get_file=yes
11941else
11942  ac_cv_lib_posix1e_acl_get_file=no
11943fi
11944rm -f core conftest.err conftest.$ac_objext \
11945    conftest$ac_exeext conftest.$ac_ext
11946LIBS=$ac_check_lib_save_LIBS
11947fi
11948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5
11949$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
11950if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then :
11951  LIBS="$LIBS -lposix1e"
11952else
11953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
11954$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
11955if ${ac_cv_lib_acl_acl_get_file+:} false; then :
11956  $as_echo_n "(cached) " >&6
11957else
11958  ac_check_lib_save_LIBS=$LIBS
11959LIBS="-lacl  $LIBS"
11960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961/* end confdefs.h.  */
11962
11963/* Override any GCC internal prototype to avoid an error.
11964   Use char because int might match the return type of a GCC
11965   builtin and then its argument prototype would still apply.  */
11966#ifdef __cplusplus
11967extern "C"
11968#endif
11969char acl_get_file ();
11970int
11971main ()
11972{
11973return acl_get_file ();
11974  ;
11975  return 0;
11976}
11977_ACEOF
11978if ac_fn_c_try_link "$LINENO"; then :
11979  ac_cv_lib_acl_acl_get_file=yes
11980else
11981  ac_cv_lib_acl_acl_get_file=no
11982fi
11983rm -f core conftest.err conftest.$ac_objext \
11984    conftest$ac_exeext conftest.$ac_ext
11985LIBS=$ac_check_lib_save_LIBS
11986fi
11987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
11988$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
11989if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
11990  LIBS="$LIBS -lacl"
11991		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5
11992$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
11993if ${ac_cv_lib_attr_fgetxattr+:} false; then :
11994  $as_echo_n "(cached) " >&6
11995else
11996  ac_check_lib_save_LIBS=$LIBS
11997LIBS="-lattr  $LIBS"
11998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999/* end confdefs.h.  */
12000
12001/* Override any GCC internal prototype to avoid an error.
12002   Use char because int might match the return type of a GCC
12003   builtin and then its argument prototype would still apply.  */
12004#ifdef __cplusplus
12005extern "C"
12006#endif
12007char fgetxattr ();
12008int
12009main ()
12010{
12011return fgetxattr ();
12012  ;
12013  return 0;
12014}
12015_ACEOF
12016if ac_fn_c_try_link "$LINENO"; then :
12017  ac_cv_lib_attr_fgetxattr=yes
12018else
12019  ac_cv_lib_attr_fgetxattr=no
12020fi
12021rm -f core conftest.err conftest.$ac_objext \
12022    conftest$ac_exeext conftest.$ac_ext
12023LIBS=$ac_check_lib_save_LIBS
12024fi
12025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5
12026$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
12027if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then :
12028  LIBS="$LIBS -lattr"
12029fi
12030
12031fi
12032
12033fi
12034
12035
12036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
12037$as_echo_n "checking for POSIX ACL support... " >&6; }
12038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039/* end confdefs.h.  */
12040
12041#include <sys/types.h>
12042#ifdef HAVE_SYS_ACL_H
12043# include <sys/acl.h>
12044#endif
12045acl_t acl;
12046int
12047main ()
12048{
12049acl = acl_get_file("foo", ACL_TYPE_ACCESS);
12050	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
12051	acl_free(acl);
12052  ;
12053  return 0;
12054}
12055_ACEOF
12056if ac_fn_c_try_link "$LINENO"; then :
12057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12058$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
12059
12060else
12061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12062$as_echo "no" >&6; }
12063fi
12064rm -f core conftest.err conftest.$ac_objext \
12065    conftest$ac_exeext conftest.$ac_ext
12066
12067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5
12068$as_echo_n "checking for acl_get in -lsec... " >&6; }
12069if ${ac_cv_lib_sec_acl_get+:} false; then :
12070  $as_echo_n "(cached) " >&6
12071else
12072  ac_check_lib_save_LIBS=$LIBS
12073LIBS="-lsec  $LIBS"
12074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075/* end confdefs.h.  */
12076
12077/* Override any GCC internal prototype to avoid an error.
12078   Use char because int might match the return type of a GCC
12079   builtin and then its argument prototype would still apply.  */
12080#ifdef __cplusplus
12081extern "C"
12082#endif
12083char acl_get ();
12084int
12085main ()
12086{
12087return acl_get ();
12088  ;
12089  return 0;
12090}
12091_ACEOF
12092if ac_fn_c_try_link "$LINENO"; then :
12093  ac_cv_lib_sec_acl_get=yes
12094else
12095  ac_cv_lib_sec_acl_get=no
12096fi
12097rm -f core conftest.err conftest.$ac_objext \
12098    conftest$ac_exeext conftest.$ac_ext
12099LIBS=$ac_check_lib_save_LIBS
12100fi
12101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5
12102$as_echo "$ac_cv_lib_sec_acl_get" >&6; }
12103if test "x$ac_cv_lib_sec_acl_get" = xyes; then :
12104  LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h
12105
12106else
12107  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5
12108$as_echo_n "checking for Solaris ACL support... " >&6; }
12109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110/* end confdefs.h.  */
12111
12112#ifdef HAVE_SYS_ACL_H
12113# include <sys/acl.h>
12114#endif
12115int
12116main ()
12117{
12118acl("foo", GETACLCNT, 0, NULL);
12119
12120  ;
12121  return 0;
12122}
12123_ACEOF
12124if ac_fn_c_try_link "$LINENO"; then :
12125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12126$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h
12127
12128else
12129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130$as_echo "no" >&6; }
12131fi
12132rm -f core conftest.err conftest.$ac_objext \
12133    conftest$ac_exeext conftest.$ac_ext
12134fi
12135
12136
12137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5
12138$as_echo_n "checking for AIX ACL support... " >&6; }
12139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140/* end confdefs.h.  */
12141
12142#if STDC_HEADERS
12143# include <stdlib.h>
12144# include <stddef.h>
12145#endif
12146#ifdef HAVE_SYS_ACL_H
12147# include <sys/acl.h>
12148#endif
12149#ifdef HAVE_SYS_ACCESS_H
12150# include <sys/access.h>
12151#endif
12152#define _ALL_SOURCE
12153
12154#include <sys/stat.h>
12155
12156int aclsize;
12157struct acl *aclent;
12158int
12159main ()
12160{
12161aclsize = sizeof(struct acl);
12162	aclent = (void *)malloc(aclsize);
12163	statacl("foo", STX_NORMAL, aclent, aclsize);
12164
12165  ;
12166  return 0;
12167}
12168_ACEOF
12169if ac_fn_c_try_link "$LINENO"; then :
12170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12171$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h
12172
12173else
12174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175$as_echo "no" >&6; }
12176fi
12177rm -f core conftest.err conftest.$ac_objext \
12178    conftest$ac_exeext conftest.$ac_ext
12179else
12180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12181$as_echo "yes" >&6; }
12182fi
12183
12184if test "x$GTK_CFLAGS" != "x"; then
12185    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5
12186$as_echo_n "checking for pango_shape_full... " >&6; }
12187  ac_save_CFLAGS="$CFLAGS"
12188  ac_save_LIBS="$LIBS"
12189  CFLAGS="$CFLAGS $GTK_CFLAGS"
12190  LIBS="$LIBS $GTK_LIBS"
12191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192/* end confdefs.h.  */
12193#include <gtk/gtk.h>
12194int
12195main ()
12196{
12197 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL);
12198  ;
12199  return 0;
12200}
12201_ACEOF
12202if ac_fn_c_try_link "$LINENO"; then :
12203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12204$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h
12205
12206else
12207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12208$as_echo "no" >&6; }
12209fi
12210rm -f core conftest.err conftest.$ac_objext \
12211    conftest$ac_exeext conftest.$ac_ext
12212  CFLAGS="$ac_save_CFLAGS"
12213  LIBS="$ac_save_LIBS"
12214fi
12215
12216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5
12217$as_echo_n "checking --disable-gpm argument... " >&6; }
12218# Check whether --enable-gpm was given.
12219if test "${enable_gpm+set}" = set; then :
12220  enableval=$enable_gpm;
12221else
12222  enable_gpm="yes"
12223fi
12224
12225
12226if test "$enable_gpm" = "yes"; then
12227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228$as_echo "no" >&6; }
12229    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5
12230$as_echo_n "checking for gpm... " >&6; }
12231if ${vi_cv_have_gpm+:} false; then :
12232  $as_echo_n "(cached) " >&6
12233else
12234  olibs="$LIBS" ; LIBS="-lgpm"
12235	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236/* end confdefs.h.  */
12237#include <gpm.h>
12238	    #include <linux/keyboard.h>
12239int
12240main ()
12241{
12242Gpm_GetLibVersion(NULL);
12243  ;
12244  return 0;
12245}
12246_ACEOF
12247if ac_fn_c_try_link "$LINENO"; then :
12248  	    	    vi_cv_have_gpm=yes
12249else
12250  vi_cv_have_gpm=no
12251fi
12252rm -f core conftest.err conftest.$ac_objext \
12253    conftest$ac_exeext conftest.$ac_ext
12254	LIBS="$olibs"
12255
12256fi
12257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5
12258$as_echo "$vi_cv_have_gpm" >&6; }
12259  if test $vi_cv_have_gpm = yes; then
12260    LIBS="$LIBS -lgpm"
12261    $as_echo "#define HAVE_GPM 1" >>confdefs.h
12262
12263  fi
12264else
12265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12266$as_echo "yes" >&6; }
12267fi
12268
12269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5
12270$as_echo_n "checking --disable-sysmouse argument... " >&6; }
12271# Check whether --enable-sysmouse was given.
12272if test "${enable_sysmouse+set}" = set; then :
12273  enableval=$enable_sysmouse;
12274else
12275  enable_sysmouse="yes"
12276fi
12277
12278
12279if test "$enable_sysmouse" = "yes"; then
12280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281$as_echo "no" >&6; }
12282        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5
12283$as_echo_n "checking for sysmouse... " >&6; }
12284if ${vi_cv_have_sysmouse+:} false; then :
12285  $as_echo_n "(cached) " >&6
12286else
12287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288/* end confdefs.h.  */
12289#include <sys/consio.h>
12290	     #include <signal.h>
12291	     #include <sys/fbio.h>
12292int
12293main ()
12294{
12295struct mouse_info   mouse;
12296	     mouse.operation = MOUSE_MODE;
12297	     mouse.operation = MOUSE_SHOW;
12298	     mouse.u.mode.mode = 0;
12299	     mouse.u.mode.signal = SIGUSR2;
12300  ;
12301  return 0;
12302}
12303_ACEOF
12304if ac_fn_c_try_link "$LINENO"; then :
12305  vi_cv_have_sysmouse=yes
12306else
12307  vi_cv_have_sysmouse=no
12308fi
12309rm -f core conftest.err conftest.$ac_objext \
12310    conftest$ac_exeext conftest.$ac_ext
12311
12312fi
12313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5
12314$as_echo "$vi_cv_have_sysmouse" >&6; }
12315  if test $vi_cv_have_sysmouse = yes; then
12316    $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h
12317
12318  fi
12319else
12320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12321$as_echo "yes" >&6; }
12322fi
12323
12324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5
12325$as_echo_n "checking for FD_CLOEXEC... " >&6; }
12326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327/* end confdefs.h.  */
12328#if HAVE_FCNTL_H
12329# include <fcntl.h>
12330#endif
12331int
12332main ()
12333{
12334	int flag = FD_CLOEXEC;
12335  ;
12336  return 0;
12337}
12338_ACEOF
12339if ac_fn_c_try_compile "$LINENO"; then :
12340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12341$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h
12342
12343else
12344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
12345$as_echo "not usable" >&6; }
12346fi
12347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12348
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5
12350$as_echo_n "checking for rename... " >&6; }
12351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352/* end confdefs.h.  */
12353#include <stdio.h>
12354int
12355main ()
12356{
12357rename("this", "that")
12358  ;
12359  return 0;
12360}
12361_ACEOF
12362if ac_fn_c_try_link "$LINENO"; then :
12363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12364$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 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 \
12371    conftest$ac_exeext conftest.$ac_ext
12372
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
12374$as_echo_n "checking for sysctl... " >&6; }
12375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376/* end confdefs.h.  */
12377#include <sys/types.h>
12378#include <sys/sysctl.h>
12379int
12380main ()
12381{
12382	int mib[2], r;
12383	size_t len;
12384
12385	mib[0] = CTL_HW;
12386	mib[1] = HW_USERMEM;
12387	len = sizeof(r);
12388	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
12389
12390  ;
12391  return 0;
12392}
12393_ACEOF
12394if ac_fn_c_try_compile "$LINENO"; then :
12395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12396$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h
12397
12398else
12399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
12400$as_echo "not usable" >&6; }
12401fi
12402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403
12404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
12405$as_echo_n "checking for sysinfo... " >&6; }
12406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407/* end confdefs.h.  */
12408#include <sys/types.h>
12409#include <sys/sysinfo.h>
12410int
12411main ()
12412{
12413	struct sysinfo sinfo;
12414	int t;
12415
12416	(void)sysinfo(&sinfo);
12417	t = sinfo.totalram;
12418
12419  ;
12420  return 0;
12421}
12422_ACEOF
12423if ac_fn_c_try_compile "$LINENO"; then :
12424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12425$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
12426
12427else
12428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
12429$as_echo "not usable" >&6; }
12430fi
12431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12432
12433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5
12434$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
12435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12436/* end confdefs.h.  */
12437#include <sys/types.h>
12438#include <sys/sysinfo.h>
12439int
12440main ()
12441{
12442	struct sysinfo sinfo;
12443	sinfo.mem_unit = 1;
12444
12445  ;
12446  return 0;
12447}
12448_ACEOF
12449if ac_fn_c_try_compile "$LINENO"; then :
12450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12451$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h
12452
12453else
12454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455$as_echo "no" >&6; }
12456fi
12457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12458
12459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
12460$as_echo_n "checking for sysconf... " >&6; }
12461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462/* end confdefs.h.  */
12463#include <unistd.h>
12464int
12465main ()
12466{
12467	(void)sysconf(_SC_PAGESIZE);
12468	(void)sysconf(_SC_PHYS_PAGES);
12469
12470  ;
12471  return 0;
12472}
12473_ACEOF
12474if ac_fn_c_try_compile "$LINENO"; then :
12475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12476$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
12477
12478else
12479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
12480$as_echo "not usable" >&6; }
12481fi
12482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12483
12484# The cast to long int works around a bug in the HP C Compiler
12485# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12486# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12487# This bug is HP SR number 8606223364.
12488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12489$as_echo_n "checking size of int... " >&6; }
12490if ${ac_cv_sizeof_int+:} false; then :
12491  $as_echo_n "(cached) " >&6
12492else
12493  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12494
12495else
12496  if test "$ac_cv_type_int" = yes; then
12497     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12499as_fn_error 77 "cannot compute sizeof (int)
12500See \`config.log' for more details" "$LINENO" 5; }
12501   else
12502     ac_cv_sizeof_int=0
12503   fi
12504fi
12505
12506fi
12507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12508$as_echo "$ac_cv_sizeof_int" >&6; }
12509
12510
12511
12512cat >>confdefs.h <<_ACEOF
12513#define SIZEOF_INT $ac_cv_sizeof_int
12514_ACEOF
12515
12516
12517# The cast to long int works around a bug in the HP C Compiler
12518# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12519# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12520# This bug is HP SR number 8606223364.
12521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12522$as_echo_n "checking size of long... " >&6; }
12523if ${ac_cv_sizeof_long+:} false; then :
12524  $as_echo_n "(cached) " >&6
12525else
12526  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12527
12528else
12529  if test "$ac_cv_type_long" = yes; then
12530     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12532as_fn_error 77 "cannot compute sizeof (long)
12533See \`config.log' for more details" "$LINENO" 5; }
12534   else
12535     ac_cv_sizeof_long=0
12536   fi
12537fi
12538
12539fi
12540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12541$as_echo "$ac_cv_sizeof_long" >&6; }
12542
12543
12544
12545cat >>confdefs.h <<_ACEOF
12546#define SIZEOF_LONG $ac_cv_sizeof_long
12547_ACEOF
12548
12549
12550# The cast to long int works around a bug in the HP C Compiler
12551# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12552# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12553# This bug is HP SR number 8606223364.
12554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12555$as_echo_n "checking size of time_t... " >&6; }
12556if ${ac_cv_sizeof_time_t+:} false; then :
12557  $as_echo_n "(cached) " >&6
12558else
12559  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
12560
12561else
12562  if test "$ac_cv_type_time_t" = yes; then
12563     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12565as_fn_error 77 "cannot compute sizeof (time_t)
12566See \`config.log' for more details" "$LINENO" 5; }
12567   else
12568     ac_cv_sizeof_time_t=0
12569   fi
12570fi
12571
12572fi
12573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12574$as_echo "$ac_cv_sizeof_time_t" >&6; }
12575
12576
12577
12578cat >>confdefs.h <<_ACEOF
12579#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12580_ACEOF
12581
12582
12583# The cast to long int works around a bug in the HP C Compiler
12584# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12585# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12586# This bug is HP SR number 8606223364.
12587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12588$as_echo_n "checking size of off_t... " >&6; }
12589if ${ac_cv_sizeof_off_t+:} false; then :
12590  $as_echo_n "(cached) " >&6
12591else
12592  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
12593
12594else
12595  if test "$ac_cv_type_off_t" = yes; then
12596     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12598as_fn_error 77 "cannot compute sizeof (off_t)
12599See \`config.log' for more details" "$LINENO" 5; }
12600   else
12601     ac_cv_sizeof_off_t=0
12602   fi
12603fi
12604
12605fi
12606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12607$as_echo "$ac_cv_sizeof_off_t" >&6; }
12608
12609
12610
12611cat >>confdefs.h <<_ACEOF
12612#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12613_ACEOF
12614
12615
12616
12617cat >>confdefs.h <<_ACEOF
12618#define VIM_SIZEOF_INT $ac_cv_sizeof_int
12619_ACEOF
12620
12621cat >>confdefs.h <<_ACEOF
12622#define VIM_SIZEOF_LONG $ac_cv_sizeof_long
12623_ACEOF
12624
12625
12626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
12627$as_echo_n "checking uint32_t is 32 bits... " >&6; }
12628if test "$cross_compiling" = yes; then :
12629  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5
12630$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;}
12631else
12632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633/* end confdefs.h.  */
12634
12635#ifdef HAVE_STDINT_H
12636# include <stdint.h>
12637#endif
12638#ifdef HAVE_INTTYPES_H
12639# include <inttypes.h>
12640#endif
12641main() {
12642  uint32_t nr1 = (uint32_t)-1;
12643  uint32_t nr2 = (uint32_t)0xffffffffUL;
12644  if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
12645  exit(0);
12646}
12647_ACEOF
12648if ac_fn_c_try_run "$LINENO"; then :
12649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12650$as_echo "ok" >&6; }
12651else
12652  as_fn_error $? "WRONG!  uint32_t not defined correctly." "$LINENO" 5
12653fi
12654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12655  conftest.$ac_objext conftest.beam conftest.$ac_ext
12656fi
12657
12658
12659
12660bcopy_test_prog='
12661#include "confdefs.h"
12662#ifdef HAVE_STRING_H
12663# include <string.h>
12664#endif
12665#if STDC_HEADERS
12666# include <stdlib.h>
12667# include <stddef.h>
12668#endif
12669main() {
12670  char buf[10];
12671  strcpy(buf, "abcdefghi");
12672  mch_memmove(buf, buf + 2, 3);
12673  if (strncmp(buf, "ababcf", 6))
12674    exit(1);
12675  strcpy(buf, "abcdefghi");
12676  mch_memmove(buf + 2, buf, 3);
12677  if (strncmp(buf, "cdedef", 6))
12678    exit(1);
12679  exit(0); /* libc version works properly.  */
12680}'
12681
12682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5
12683$as_echo_n "checking whether memmove handles overlaps... " >&6; }
12684if ${vim_cv_memmove_handles_overlap+:} false; then :
12685  $as_echo_n "(cached) " >&6
12686else
12687
12688    if test "$cross_compiling" = yes; then :
12689
12690	as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5
12691
12692else
12693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694/* end confdefs.h.  */
12695#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
12696_ACEOF
12697if ac_fn_c_try_run "$LINENO"; then :
12698
12699	vim_cv_memmove_handles_overlap=yes
12700
12701else
12702
12703	vim_cv_memmove_handles_overlap=no
12704
12705fi
12706rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12707  conftest.$ac_objext conftest.beam conftest.$ac_ext
12708fi
12709
12710
12711fi
12712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5
12713$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
12714
12715if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
12716  $as_echo "#define USEMEMMOVE 1" >>confdefs.h
12717
12718else
12719  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5
12720$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
12721if ${vim_cv_bcopy_handles_overlap+:} false; then :
12722  $as_echo_n "(cached) " >&6
12723else
12724
12725      if test "$cross_compiling" = yes; then :
12726
12727	as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5
12728
12729else
12730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731/* end confdefs.h.  */
12732#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
12733_ACEOF
12734if ac_fn_c_try_run "$LINENO"; then :
12735
12736	vim_cv_bcopy_handles_overlap=yes
12737
12738else
12739
12740	vim_cv_bcopy_handles_overlap=no
12741
12742fi
12743rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12744  conftest.$ac_objext conftest.beam conftest.$ac_ext
12745fi
12746
12747
12748fi
12749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5
12750$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
12751
12752  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
12753    $as_echo "#define USEBCOPY 1" >>confdefs.h
12754
12755  else
12756    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5
12757$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
12758if ${vim_cv_memcpy_handles_overlap+:} false; then :
12759  $as_echo_n "(cached) " >&6
12760else
12761
12762	if test "$cross_compiling" = yes; then :
12763
12764	    as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5
12765
12766else
12767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768/* end confdefs.h.  */
12769#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
12770_ACEOF
12771if ac_fn_c_try_run "$LINENO"; then :
12772
12773	    vim_cv_memcpy_handles_overlap=yes
12774
12775else
12776
12777	    vim_cv_memcpy_handles_overlap=no
12778
12779fi
12780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12781  conftest.$ac_objext conftest.beam conftest.$ac_ext
12782fi
12783
12784
12785fi
12786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5
12787$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
12788
12789    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
12790      $as_echo "#define USEMEMCPY 1" >>confdefs.h
12791
12792    fi
12793  fi
12794fi
12795
12796
12797if test "x$with_x" = "xyes"; then
12798  cflags_save=$CFLAGS
12799  libs_save=$LIBS
12800  LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS"
12801  CFLAGS="$CFLAGS $X_CFLAGS"
12802
12803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
12804$as_echo_n "checking whether X_LOCALE needed... " >&6; }
12805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806/* end confdefs.h.  */
12807#include <X11/Xlocale.h>
12808int
12809main ()
12810{
12811
12812  ;
12813  return 0;
12814}
12815_ACEOF
12816if ac_fn_c_try_compile "$LINENO"; then :
12817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818/* end confdefs.h.  */
12819
12820/* Override any GCC internal prototype to avoid an error.
12821   Use char because int might match the return type of a GCC
12822   builtin and then its argument prototype would still apply.  */
12823#ifdef __cplusplus
12824extern "C"
12825#endif
12826char _Xsetlocale ();
12827int
12828main ()
12829{
12830return _Xsetlocale ();
12831  ;
12832  return 0;
12833}
12834_ACEOF
12835if ac_fn_c_try_link "$LINENO"; then :
12836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12837$as_echo "yes" >&6; }
12838	      $as_echo "#define X_LOCALE 1" >>confdefs.h
12839
12840else
12841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842$as_echo "no" >&6; }
12843fi
12844rm -f core conftest.err conftest.$ac_objext \
12845    conftest$ac_exeext conftest.$ac_ext
12846else
12847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848$as_echo "no" >&6; }
12849fi
12850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12851
12852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5
12853$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; }
12854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855/* end confdefs.h.  */
12856
12857/* Override any GCC internal prototype to avoid an error.
12858   Use char because int might match the return type of a GCC
12859   builtin and then its argument prototype would still apply.  */
12860#ifdef __cplusplus
12861extern "C"
12862#endif
12863char Xutf8SetWMProperties ();
12864int
12865main ()
12866{
12867return Xutf8SetWMProperties ();
12868  ;
12869  return 0;
12870}
12871_ACEOF
12872if ac_fn_c_try_link "$LINENO"; then :
12873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12874$as_echo "yes" >&6; }
12875	      $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h
12876
12877else
12878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879$as_echo "no" >&6; }
12880fi
12881rm -f core conftest.err conftest.$ac_objext \
12882    conftest$ac_exeext conftest.$ac_ext
12883
12884  CFLAGS=$cflags_save
12885  LIBS=$libs_save
12886fi
12887
12888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
12889$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
12890if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then :
12891  $as_echo_n "(cached) " >&6
12892else
12893  ac_check_lib_save_LIBS=$LIBS
12894LIBS="-lxpg4  $LIBS"
12895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896/* end confdefs.h.  */
12897
12898/* Override any GCC internal prototype to avoid an error.
12899   Use char because int might match the return type of a GCC
12900   builtin and then its argument prototype would still apply.  */
12901#ifdef __cplusplus
12902extern "C"
12903#endif
12904char _xpg4_setrunelocale ();
12905int
12906main ()
12907{
12908return _xpg4_setrunelocale ();
12909  ;
12910  return 0;
12911}
12912_ACEOF
12913if ac_fn_c_try_link "$LINENO"; then :
12914  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
12915else
12916  ac_cv_lib_xpg4__xpg4_setrunelocale=no
12917fi
12918rm -f core conftest.err conftest.$ac_objext \
12919    conftest$ac_exeext conftest.$ac_ext
12920LIBS=$ac_check_lib_save_LIBS
12921fi
12922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
12923$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
12924if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then :
12925  LIBS="$LIBS -lxpg4"
12926fi
12927
12928
12929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5
12930$as_echo_n "checking how to create tags... " >&6; }
12931test -f tags && mv tags tags.save
12932if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
12933  TAGPRG="ctags -I INIT+ --fields=+S"
12934elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
12935  TAGPRG="exctags -I INIT+ --fields=+S"
12936elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
12937  TAGPRG="exuberant-ctags -I INIT+ --fields=+S"
12938else
12939  TAGPRG="ctags"
12940  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
12941  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
12942  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
12943  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
12944  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
12945  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
12946  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
12947fi
12948test -f tags.save && mv tags.save tags
12949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5
12950$as_echo "$TAGPRG" >&6; }
12951
12952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5
12953$as_echo_n "checking how to run man with a section nr... " >&6; }
12954MANDEF="man"
12955(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
12956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5
12957$as_echo "$MANDEF" >&6; }
12958if test "$MANDEF" = "man -s"; then
12959  $as_echo "#define USEMAN_S 1" >>confdefs.h
12960
12961fi
12962
12963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5
12964$as_echo_n "checking --disable-nls argument... " >&6; }
12965# Check whether --enable-nls was given.
12966if test "${enable_nls+set}" = set; then :
12967  enableval=$enable_nls;
12968else
12969  enable_nls="yes"
12970fi
12971
12972
12973if test "$enable_nls" = "yes"; then
12974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975$as_echo "no" >&6; }
12976
12977  INSTALL_LANGS=install-languages
12978
12979  INSTALL_TOOL_LANGS=install-tool-languages
12980
12981
12982  # Extract the first word of "msgfmt", so it can be a program name with args.
12983set dummy msgfmt; ac_word=$2
12984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12985$as_echo_n "checking for $ac_word... " >&6; }
12986if ${ac_cv_prog_MSGFMT+:} false; then :
12987  $as_echo_n "(cached) " >&6
12988else
12989  if test -n "$MSGFMT"; then
12990  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
12991else
12992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12993for as_dir in $PATH
12994do
12995  IFS=$as_save_IFS
12996  test -z "$as_dir" && as_dir=.
12997    for ac_exec_ext in '' $ac_executable_extensions; do
12998  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12999    ac_cv_prog_MSGFMT="msgfmt"
13000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13001    break 2
13002  fi
13003done
13004  done
13005IFS=$as_save_IFS
13006
13007fi
13008fi
13009MSGFMT=$ac_cv_prog_MSGFMT
13010if test -n "$MSGFMT"; then
13011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13012$as_echo "$MSGFMT" >&6; }
13013else
13014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13015$as_echo "no" >&6; }
13016fi
13017
13018
13019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5
13020$as_echo_n "checking for NLS... " >&6; }
13021  if test -f po/Makefile; then
13022    have_gettext="no"
13023    if test -n "$MSGFMT"; then
13024      olibs=$LIBS
13025      LIBS=""
13026      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027/* end confdefs.h.  */
13028#include <libintl.h>
13029int
13030main ()
13031{
13032gettext("Test");
13033  ;
13034  return 0;
13035}
13036_ACEOF
13037if ac_fn_c_try_link "$LINENO"; then :
13038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
13039$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs
13040else
13041  LIBS="-lintl"
13042	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043/* end confdefs.h.  */
13044#include <libintl.h>
13045int
13046main ()
13047{
13048gettext("Test");
13049  ;
13050  return 0;
13051}
13052_ACEOF
13053if ac_fn_c_try_link "$LINENO"; then :
13054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
13055$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes";
13056	      LIBS="$olibs -lintl"
13057else
13058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
13059$as_echo "gettext() doesn't work" >&6; };
13060	      LIBS=$olibs
13061fi
13062rm -f core conftest.err conftest.$ac_objext \
13063    conftest$ac_exeext conftest.$ac_ext
13064fi
13065rm -f core conftest.err conftest.$ac_objext \
13066    conftest$ac_exeext conftest.$ac_ext
13067    else
13068      { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5
13069$as_echo "msgfmt not found - disabled" >&6; };
13070    fi
13071    if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then
13072      $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13073
13074      MAKEMO=yes
13075
13076            for ac_func in bind_textdomain_codeset
13077do :
13078  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
13079if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
13080  cat >>confdefs.h <<_ACEOF
13081#define HAVE_BIND_TEXTDOMAIN_CODESET 1
13082_ACEOF
13083
13084fi
13085done
13086
13087            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5
13088$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
13089      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090/* end confdefs.h.  */
13091#include <libintl.h>
13092		extern int _nl_msg_cat_cntr;
13093int
13094main ()
13095{
13096++_nl_msg_cat_cntr;
13097  ;
13098  return 0;
13099}
13100_ACEOF
13101if ac_fn_c_try_link "$LINENO"; then :
13102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13103$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h
13104
13105else
13106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13107$as_echo "no" >&6; }
13108fi
13109rm -f core conftest.err conftest.$ac_objext \
13110    conftest$ac_exeext conftest.$ac_ext
13111    fi
13112  else
13113    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5
13114$as_echo "no \"po/Makefile\" - disabled" >&6; };
13115  fi
13116else
13117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13118$as_echo "yes" >&6; }
13119fi
13120
13121ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
13122if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13123  DLL=dlfcn.h
13124else
13125  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
13126if test "x$ac_cv_header_dl_h" = xyes; then :
13127  DLL=dl.h
13128fi
13129
13130
13131fi
13132
13133
13134if test x${DLL} = xdlfcn.h; then
13135
13136$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
13137
13138  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5
13139$as_echo_n "checking for dlopen()... " >&6; }
13140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13141/* end confdefs.h.  */
13142
13143int
13144main ()
13145{
13146
13147		extern void* dlopen();
13148		dlopen();
13149
13150  ;
13151  return 0;
13152}
13153_ACEOF
13154if ac_fn_c_try_link "$LINENO"; then :
13155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13156$as_echo "yes" >&6; };
13157
13158$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13159
13160else
13161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162$as_echo "no" >&6; };
13163	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5
13164$as_echo_n "checking for dlopen() in -ldl... " >&6; }
13165	      olibs=$LIBS
13166	      LIBS="$LIBS -ldl"
13167	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168/* end confdefs.h.  */
13169
13170int
13171main ()
13172{
13173
13174				extern void* dlopen();
13175				dlopen();
13176
13177  ;
13178  return 0;
13179}
13180_ACEOF
13181if ac_fn_c_try_link "$LINENO"; then :
13182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13183$as_echo "yes" >&6; };
13184
13185$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13186
13187else
13188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189$as_echo "no" >&6; };
13190			  LIBS=$olibs
13191fi
13192rm -f core conftest.err conftest.$ac_objext \
13193    conftest$ac_exeext conftest.$ac_ext
13194fi
13195rm -f core conftest.err conftest.$ac_objext \
13196    conftest$ac_exeext conftest.$ac_ext
13197      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5
13198$as_echo_n "checking for dlsym()... " >&6; }
13199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200/* end confdefs.h.  */
13201
13202int
13203main ()
13204{
13205
13206		extern void* dlsym();
13207		dlsym();
13208
13209  ;
13210  return 0;
13211}
13212_ACEOF
13213if ac_fn_c_try_link "$LINENO"; then :
13214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13215$as_echo "yes" >&6; };
13216
13217$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
13218
13219else
13220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221$as_echo "no" >&6; };
13222	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5
13223$as_echo_n "checking for dlsym() in -ldl... " >&6; }
13224	      olibs=$LIBS
13225	      LIBS="$LIBS -ldl"
13226	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227/* end confdefs.h.  */
13228
13229int
13230main ()
13231{
13232
13233				extern void* dlsym();
13234				dlsym();
13235
13236  ;
13237  return 0;
13238}
13239_ACEOF
13240if ac_fn_c_try_link "$LINENO"; then :
13241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13242$as_echo "yes" >&6; };
13243
13244$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
13245
13246else
13247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13248$as_echo "no" >&6; };
13249			  LIBS=$olibs
13250fi
13251rm -f core conftest.err conftest.$ac_objext \
13252    conftest$ac_exeext conftest.$ac_ext
13253fi
13254rm -f core conftest.err conftest.$ac_objext \
13255    conftest$ac_exeext conftest.$ac_ext
13256elif test x${DLL} = xdl.h; then
13257
13258$as_echo "#define HAVE_DL_H 1" >>confdefs.h
13259
13260  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5
13261$as_echo_n "checking for shl_load()... " >&6; }
13262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263/* end confdefs.h.  */
13264
13265int
13266main ()
13267{
13268
13269		extern void* shl_load();
13270		shl_load();
13271
13272  ;
13273  return 0;
13274}
13275_ACEOF
13276if ac_fn_c_try_link "$LINENO"; then :
13277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13278$as_echo "yes" >&6; };
13279
13280$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
13281
13282else
13283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13284$as_echo "no" >&6; };
13285	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5
13286$as_echo_n "checking for shl_load() in -ldld... " >&6; }
13287	  olibs=$LIBS
13288	  LIBS="$LIBS -ldld"
13289	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290/* end confdefs.h.  */
13291
13292int
13293main ()
13294{
13295
13296			extern void* shl_load();
13297			shl_load();
13298
13299  ;
13300  return 0;
13301}
13302_ACEOF
13303if ac_fn_c_try_link "$LINENO"; then :
13304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13305$as_echo "yes" >&6; };
13306
13307$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
13308
13309else
13310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13311$as_echo "no" >&6; };
13312		  LIBS=$olibs
13313fi
13314rm -f core conftest.err conftest.$ac_objext \
13315    conftest$ac_exeext conftest.$ac_ext
13316fi
13317rm -f core conftest.err conftest.$ac_objext \
13318    conftest$ac_exeext conftest.$ac_ext
13319fi
13320for ac_header in setjmp.h
13321do :
13322  ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
13323if test "x$ac_cv_header_setjmp_h" = xyes; then :
13324  cat >>confdefs.h <<_ACEOF
13325#define HAVE_SETJMP_H 1
13326_ACEOF
13327
13328fi
13329
13330done
13331
13332
13333if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
13334    if echo $LIBS | grep -e '-ldl' >/dev/null; then
13335    LIBS=`echo $LIBS | sed s/-ldl//`
13336    PERL_LIBS="$PERL_LIBS -ldl"
13337  fi
13338fi
13339
13340if test "x$MACOSX" = "xyes"; then
13341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -framework Cocoa" >&5
13342$as_echo_n "checking whether we need -framework Cocoa... " >&6; }
13343      if test "x$features" != "xtiny" || test "x$enable_multibyte" = "xyes"; then
13344    LIBS=$"$LIBS -framework Cocoa"
13345    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13346$as_echo "yes" >&6; }
13347  else
13348    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13349$as_echo "no" >&6; }
13350  fi
13351        if test "x$features" = "xtiny"; then
13352    OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'`
13353    OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'`
13354  fi
13355fi
13356if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then
13357  LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
13358fi
13359
13360DEPEND_CFLAGS_FILTER=
13361if test "$GCC" = yes; then
13362  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5
13363$as_echo_n "checking for GCC 3 or later... " >&6; }
13364  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
13365  if test "$gccmajor" -gt "2"; then
13366    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
13367    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13368$as_echo "yes" >&6; }
13369  else
13370    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13371$as_echo "no" >&6; }
13372  fi
13373          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
13374$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
13375  if test "$gccmajor" -gt "3"; then
13376    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/'`
13377    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13378$as_echo "yes" >&6; }
13379  else
13380    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381$as_echo "no" >&6; }
13382  fi
13383fi
13384
13385
13386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
13387$as_echo_n "checking linker --as-needed support... " >&6; }
13388LINK_AS_NEEDED=
13389# Check if linker supports --as-needed and --no-as-needed options
13390if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
13391  LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
13392  LINK_AS_NEEDED=yes
13393fi
13394if test "$LINK_AS_NEEDED" = yes; then
13395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13396$as_echo "yes" >&6; }
13397else
13398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13399$as_echo "no" >&6; }
13400fi
13401
13402
13403# IBM z/OS reset CFLAGS for config.mk
13404if test "$zOSUnix" = "yes"; then
13405	CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
13406fi
13407
13408ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
13409
13410cat >confcache <<\_ACEOF
13411# This file is a shell script that caches the results of configure
13412# tests run on this system so they can be shared between configure
13413# scripts and configure runs, see configure's option --config-cache.
13414# It is not useful on other systems.  If it contains results you don't
13415# want to keep, you may remove or edit it.
13416#
13417# config.status only pays attention to the cache file if you give it
13418# the --recheck option to rerun configure.
13419#
13420# `ac_cv_env_foo' variables (set or unset) will be overridden when
13421# loading this file, other *unset* `ac_cv_foo' will be assigned the
13422# following values.
13423
13424_ACEOF
13425
13426# The following way of writing the cache mishandles newlines in values,
13427# but we know of no workaround that is simple, portable, and efficient.
13428# So, we kill variables containing newlines.
13429# Ultrix sh set writes to stderr and can't be redirected directly,
13430# and sets the high bit in the cache file unless we assign to the vars.
13431(
13432  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13433    eval ac_val=\$$ac_var
13434    case $ac_val in #(
13435    *${as_nl}*)
13436      case $ac_var in #(
13437      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13438$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13439      esac
13440      case $ac_var in #(
13441      _ | IFS | as_nl) ;; #(
13442      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13443      *) { eval $ac_var=; unset $ac_var;} ;;
13444      esac ;;
13445    esac
13446  done
13447
13448  (set) 2>&1 |
13449    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13450    *${as_nl}ac_space=\ *)
13451      # `set' does not quote correctly, so add quotes: double-quote
13452      # substitution turns \\\\ into \\, and sed turns \\ into \.
13453      sed -n \
13454	"s/'/'\\\\''/g;
13455	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13456      ;; #(
13457    *)
13458      # `set' quotes correctly as required by POSIX, so do not add quotes.
13459      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13460      ;;
13461    esac |
13462    sort
13463) |
13464  sed '
13465     /^ac_cv_env_/b end
13466     t clear
13467     :clear
13468     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13469     t end
13470     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13471     :end' >>confcache
13472if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13473  if test -w "$cache_file"; then
13474    if test "x$cache_file" != "x/dev/null"; then
13475      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13476$as_echo "$as_me: updating cache $cache_file" >&6;}
13477      if test ! -f "$cache_file" || test -h "$cache_file"; then
13478	cat confcache >"$cache_file"
13479      else
13480        case $cache_file in #(
13481        */* | ?:*)
13482	  mv -f confcache "$cache_file"$$ &&
13483	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13484        *)
13485	  mv -f confcache "$cache_file" ;;
13486	esac
13487      fi
13488    fi
13489  else
13490    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13491$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13492  fi
13493fi
13494rm -f confcache
13495
13496test "x$prefix" = xNONE && prefix=$ac_default_prefix
13497# Let make expand exec_prefix.
13498test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13499
13500DEFS=-DHAVE_CONFIG_H
13501
13502ac_libobjs=
13503ac_ltlibobjs=
13504U=
13505for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13506  # 1. Remove the extension, and $U if already installed.
13507  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13508  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13509  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13510  #    will be set to the directory where LIBOBJS objects are built.
13511  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13512  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13513done
13514LIBOBJS=$ac_libobjs
13515
13516LTLIBOBJS=$ac_ltlibobjs
13517
13518
13519
13520
13521: "${CONFIG_STATUS=./config.status}"
13522ac_write_fail=0
13523ac_clean_files_save=$ac_clean_files
13524ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13525{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13526$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13527as_write_fail=0
13528cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13529#! $SHELL
13530# Generated by $as_me.
13531# Run this file to recreate the current configuration.
13532# Compiler output produced by configure, useful for debugging
13533# configure, is in config.log if it exists.
13534
13535debug=false
13536ac_cs_recheck=false
13537ac_cs_silent=false
13538
13539SHELL=\${CONFIG_SHELL-$SHELL}
13540export SHELL
13541_ASEOF
13542cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13543## -------------------- ##
13544## M4sh Initialization. ##
13545## -------------------- ##
13546
13547# Be more Bourne compatible
13548DUALCASE=1; export DUALCASE # for MKS sh
13549if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13550  emulate sh
13551  NULLCMD=:
13552  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13553  # is contrary to our usage.  Disable this feature.
13554  alias -g '${1+"$@"}'='"$@"'
13555  setopt NO_GLOB_SUBST
13556else
13557  case `(set -o) 2>/dev/null` in #(
13558  *posix*) :
13559    set -o posix ;; #(
13560  *) :
13561     ;;
13562esac
13563fi
13564
13565
13566as_nl='
13567'
13568export as_nl
13569# Printing a long string crashes Solaris 7 /usr/bin/printf.
13570as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13571as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13572as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13573# Prefer a ksh shell builtin over an external printf program on Solaris,
13574# but without wasting forks for bash or zsh.
13575if test -z "$BASH_VERSION$ZSH_VERSION" \
13576    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13577  as_echo='print -r --'
13578  as_echo_n='print -rn --'
13579elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13580  as_echo='printf %s\n'
13581  as_echo_n='printf %s'
13582else
13583  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13584    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13585    as_echo_n='/usr/ucb/echo -n'
13586  else
13587    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13588    as_echo_n_body='eval
13589      arg=$1;
13590      case $arg in #(
13591      *"$as_nl"*)
13592	expr "X$arg" : "X\\(.*\\)$as_nl";
13593	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13594      esac;
13595      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13596    '
13597    export as_echo_n_body
13598    as_echo_n='sh -c $as_echo_n_body as_echo'
13599  fi
13600  export as_echo_body
13601  as_echo='sh -c $as_echo_body as_echo'
13602fi
13603
13604# The user is always right.
13605if test "${PATH_SEPARATOR+set}" != set; then
13606  PATH_SEPARATOR=:
13607  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13608    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13609      PATH_SEPARATOR=';'
13610  }
13611fi
13612
13613
13614# IFS
13615# We need space, tab and new line, in precisely that order.  Quoting is
13616# there to prevent editors from complaining about space-tab.
13617# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13618# splitting by setting IFS to empty value.)
13619IFS=" ""	$as_nl"
13620
13621# Find who we are.  Look in the path if we contain no directory separator.
13622as_myself=
13623case $0 in #((
13624  *[\\/]* ) as_myself=$0 ;;
13625  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13626for as_dir in $PATH
13627do
13628  IFS=$as_save_IFS
13629  test -z "$as_dir" && as_dir=.
13630    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13631  done
13632IFS=$as_save_IFS
13633
13634     ;;
13635esac
13636# We did not find ourselves, most probably we were run as `sh COMMAND'
13637# in which case we are not to be found in the path.
13638if test "x$as_myself" = x; then
13639  as_myself=$0
13640fi
13641if test ! -f "$as_myself"; then
13642  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13643  exit 1
13644fi
13645
13646# Unset variables that we do not need and which cause bugs (e.g. in
13647# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13648# suppresses any "Segmentation fault" message there.  '((' could
13649# trigger a bug in pdksh 5.2.14.
13650for as_var in BASH_ENV ENV MAIL MAILPATH
13651do eval test x\${$as_var+set} = xset \
13652  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13653done
13654PS1='$ '
13655PS2='> '
13656PS4='+ '
13657
13658# NLS nuisances.
13659LC_ALL=C
13660export LC_ALL
13661LANGUAGE=C
13662export LANGUAGE
13663
13664# CDPATH.
13665(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13666
13667
13668# as_fn_error STATUS ERROR [LINENO LOG_FD]
13669# ----------------------------------------
13670# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13671# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13672# script with STATUS, using 1 if that was 0.
13673as_fn_error ()
13674{
13675  as_status=$1; test $as_status -eq 0 && as_status=1
13676  if test "$4"; then
13677    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13678    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13679  fi
13680  $as_echo "$as_me: error: $2" >&2
13681  as_fn_exit $as_status
13682} # as_fn_error
13683
13684
13685# as_fn_set_status STATUS
13686# -----------------------
13687# Set $? to STATUS, without forking.
13688as_fn_set_status ()
13689{
13690  return $1
13691} # as_fn_set_status
13692
13693# as_fn_exit STATUS
13694# -----------------
13695# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13696as_fn_exit ()
13697{
13698  set +e
13699  as_fn_set_status $1
13700  exit $1
13701} # as_fn_exit
13702
13703# as_fn_unset VAR
13704# ---------------
13705# Portably unset VAR.
13706as_fn_unset ()
13707{
13708  { eval $1=; unset $1;}
13709}
13710as_unset=as_fn_unset
13711# as_fn_append VAR VALUE
13712# ----------------------
13713# Append the text in VALUE to the end of the definition contained in VAR. Take
13714# advantage of any shell optimizations that allow amortized linear growth over
13715# repeated appends, instead of the typical quadratic growth present in naive
13716# implementations.
13717if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13718  eval 'as_fn_append ()
13719  {
13720    eval $1+=\$2
13721  }'
13722else
13723  as_fn_append ()
13724  {
13725    eval $1=\$$1\$2
13726  }
13727fi # as_fn_append
13728
13729# as_fn_arith ARG...
13730# ------------------
13731# Perform arithmetic evaluation on the ARGs, and store the result in the
13732# global $as_val. Take advantage of shells that can avoid forks. The arguments
13733# must be portable across $(()) and expr.
13734if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13735  eval 'as_fn_arith ()
13736  {
13737    as_val=$(( $* ))
13738  }'
13739else
13740  as_fn_arith ()
13741  {
13742    as_val=`expr "$@" || test $? -eq 1`
13743  }
13744fi # as_fn_arith
13745
13746
13747if expr a : '\(a\)' >/dev/null 2>&1 &&
13748   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13749  as_expr=expr
13750else
13751  as_expr=false
13752fi
13753
13754if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13755  as_basename=basename
13756else
13757  as_basename=false
13758fi
13759
13760if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13761  as_dirname=dirname
13762else
13763  as_dirname=false
13764fi
13765
13766as_me=`$as_basename -- "$0" ||
13767$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13768	 X"$0" : 'X\(//\)$' \| \
13769	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13770$as_echo X/"$0" |
13771    sed '/^.*\/\([^/][^/]*\)\/*$/{
13772	    s//\1/
13773	    q
13774	  }
13775	  /^X\/\(\/\/\)$/{
13776	    s//\1/
13777	    q
13778	  }
13779	  /^X\/\(\/\).*/{
13780	    s//\1/
13781	    q
13782	  }
13783	  s/.*/./; q'`
13784
13785# Avoid depending upon Character Ranges.
13786as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13787as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13788as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13789as_cr_digits='0123456789'
13790as_cr_alnum=$as_cr_Letters$as_cr_digits
13791
13792ECHO_C= ECHO_N= ECHO_T=
13793case `echo -n x` in #(((((
13794-n*)
13795  case `echo 'xy\c'` in
13796  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13797  xy)  ECHO_C='\c';;
13798  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13799       ECHO_T='	';;
13800  esac;;
13801*)
13802  ECHO_N='-n';;
13803esac
13804
13805rm -f conf$$ conf$$.exe conf$$.file
13806if test -d conf$$.dir; then
13807  rm -f conf$$.dir/conf$$.file
13808else
13809  rm -f conf$$.dir
13810  mkdir conf$$.dir 2>/dev/null
13811fi
13812if (echo >conf$$.file) 2>/dev/null; then
13813  if ln -s conf$$.file conf$$ 2>/dev/null; then
13814    as_ln_s='ln -s'
13815    # ... but there are two gotchas:
13816    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13817    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13818    # In both cases, we have to default to `cp -pR'.
13819    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13820      as_ln_s='cp -pR'
13821  elif ln conf$$.file conf$$ 2>/dev/null; then
13822    as_ln_s=ln
13823  else
13824    as_ln_s='cp -pR'
13825  fi
13826else
13827  as_ln_s='cp -pR'
13828fi
13829rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13830rmdir conf$$.dir 2>/dev/null
13831
13832
13833# as_fn_mkdir_p
13834# -------------
13835# Create "$as_dir" as a directory, including parents if necessary.
13836as_fn_mkdir_p ()
13837{
13838
13839  case $as_dir in #(
13840  -*) as_dir=./$as_dir;;
13841  esac
13842  test -d "$as_dir" || eval $as_mkdir_p || {
13843    as_dirs=
13844    while :; do
13845      case $as_dir in #(
13846      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13847      *) as_qdir=$as_dir;;
13848      esac
13849      as_dirs="'$as_qdir' $as_dirs"
13850      as_dir=`$as_dirname -- "$as_dir" ||
13851$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13852	 X"$as_dir" : 'X\(//\)[^/]' \| \
13853	 X"$as_dir" : 'X\(//\)$' \| \
13854	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13855$as_echo X"$as_dir" |
13856    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13857	    s//\1/
13858	    q
13859	  }
13860	  /^X\(\/\/\)[^/].*/{
13861	    s//\1/
13862	    q
13863	  }
13864	  /^X\(\/\/\)$/{
13865	    s//\1/
13866	    q
13867	  }
13868	  /^X\(\/\).*/{
13869	    s//\1/
13870	    q
13871	  }
13872	  s/.*/./; q'`
13873      test -d "$as_dir" && break
13874    done
13875    test -z "$as_dirs" || eval "mkdir $as_dirs"
13876  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13877
13878
13879} # as_fn_mkdir_p
13880if mkdir -p . 2>/dev/null; then
13881  as_mkdir_p='mkdir -p "$as_dir"'
13882else
13883  test -d ./-p && rmdir ./-p
13884  as_mkdir_p=false
13885fi
13886
13887
13888# as_fn_executable_p FILE
13889# -----------------------
13890# Test if FILE is an executable regular file.
13891as_fn_executable_p ()
13892{
13893  test -f "$1" && test -x "$1"
13894} # as_fn_executable_p
13895as_test_x='test -x'
13896as_executable_p=as_fn_executable_p
13897
13898# Sed expression to map a string onto a valid CPP name.
13899as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13900
13901# Sed expression to map a string onto a valid variable name.
13902as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13903
13904
13905exec 6>&1
13906## ----------------------------------- ##
13907## Main body of $CONFIG_STATUS script. ##
13908## ----------------------------------- ##
13909_ASEOF
13910test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13911
13912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13913# Save the log message, to keep $0 and so on meaningful, and to
13914# report actual input values of CONFIG_FILES etc. instead of their
13915# values after options handling.
13916ac_log="
13917This file was extended by $as_me, which was
13918generated by GNU Autoconf 2.69.  Invocation command line was
13919
13920  CONFIG_FILES    = $CONFIG_FILES
13921  CONFIG_HEADERS  = $CONFIG_HEADERS
13922  CONFIG_LINKS    = $CONFIG_LINKS
13923  CONFIG_COMMANDS = $CONFIG_COMMANDS
13924  $ $0 $@
13925
13926on `(hostname || uname -n) 2>/dev/null | sed 1q`
13927"
13928
13929_ACEOF
13930
13931case $ac_config_files in *"
13932"*) set x $ac_config_files; shift; ac_config_files=$*;;
13933esac
13934
13935case $ac_config_headers in *"
13936"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13937esac
13938
13939
13940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13941# Files that config.status was made for.
13942config_files="$ac_config_files"
13943config_headers="$ac_config_headers"
13944
13945_ACEOF
13946
13947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13948ac_cs_usage="\
13949\`$as_me' instantiates files and other configuration actions
13950from templates according to the current configuration.  Unless the files
13951and actions are specified as TAGs, all are instantiated by default.
13952
13953Usage: $0 [OPTION]... [TAG]...
13954
13955  -h, --help       print this help, then exit
13956  -V, --version    print version number and configuration settings, then exit
13957      --config     print configuration, then exit
13958  -q, --quiet, --silent
13959                   do not print progress messages
13960  -d, --debug      don't remove temporary files
13961      --recheck    update $as_me by reconfiguring in the same conditions
13962      --file=FILE[:TEMPLATE]
13963                   instantiate the configuration file FILE
13964      --header=FILE[:TEMPLATE]
13965                   instantiate the configuration header FILE
13966
13967Configuration files:
13968$config_files
13969
13970Configuration headers:
13971$config_headers
13972
13973Report bugs to the package provider."
13974
13975_ACEOF
13976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13977ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13978ac_cs_version="\\
13979config.status
13980configured by $0, generated by GNU Autoconf 2.69,
13981  with options \\"\$ac_cs_config\\"
13982
13983Copyright (C) 2012 Free Software Foundation, Inc.
13984This config.status script is free software; the Free Software Foundation
13985gives unlimited permission to copy, distribute and modify it."
13986
13987ac_pwd='$ac_pwd'
13988srcdir='$srcdir'
13989AWK='$AWK'
13990test -n "\$AWK" || AWK=awk
13991_ACEOF
13992
13993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13994# The default lists apply if the user does not specify any file.
13995ac_need_defaults=:
13996while test $# != 0
13997do
13998  case $1 in
13999  --*=?*)
14000    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14001    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14002    ac_shift=:
14003    ;;
14004  --*=)
14005    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14006    ac_optarg=
14007    ac_shift=:
14008    ;;
14009  *)
14010    ac_option=$1
14011    ac_optarg=$2
14012    ac_shift=shift
14013    ;;
14014  esac
14015
14016  case $ac_option in
14017  # Handling of the options.
14018  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14019    ac_cs_recheck=: ;;
14020  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14021    $as_echo "$ac_cs_version"; exit ;;
14022  --config | --confi | --conf | --con | --co | --c )
14023    $as_echo "$ac_cs_config"; exit ;;
14024  --debug | --debu | --deb | --de | --d | -d )
14025    debug=: ;;
14026  --file | --fil | --fi | --f )
14027    $ac_shift
14028    case $ac_optarg in
14029    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14030    '') as_fn_error $? "missing file argument" ;;
14031    esac
14032    as_fn_append CONFIG_FILES " '$ac_optarg'"
14033    ac_need_defaults=false;;
14034  --header | --heade | --head | --hea )
14035    $ac_shift
14036    case $ac_optarg in
14037    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14038    esac
14039    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14040    ac_need_defaults=false;;
14041  --he | --h)
14042    # Conflict between --help and --header
14043    as_fn_error $? "ambiguous option: \`$1'
14044Try \`$0 --help' for more information.";;
14045  --help | --hel | -h )
14046    $as_echo "$ac_cs_usage"; exit ;;
14047  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14048  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14049    ac_cs_silent=: ;;
14050
14051  # This is an error.
14052  -*) as_fn_error $? "unrecognized option: \`$1'
14053Try \`$0 --help' for more information." ;;
14054
14055  *) as_fn_append ac_config_targets " $1"
14056     ac_need_defaults=false ;;
14057
14058  esac
14059  shift
14060done
14061
14062ac_configure_extra_args=
14063
14064if $ac_cs_silent; then
14065  exec 6>/dev/null
14066  ac_configure_extra_args="$ac_configure_extra_args --silent"
14067fi
14068
14069_ACEOF
14070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14071if \$ac_cs_recheck; then
14072  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14073  shift
14074  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14075  CONFIG_SHELL='$SHELL'
14076  export CONFIG_SHELL
14077  exec "\$@"
14078fi
14079
14080_ACEOF
14081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14082exec 5>>auto/config.log
14083{
14084  echo
14085  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14086## Running $as_me. ##
14087_ASBOX
14088  $as_echo "$ac_log"
14089} >&5
14090
14091_ACEOF
14092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14093_ACEOF
14094
14095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14096
14097# Handling of arguments.
14098for ac_config_target in $ac_config_targets
14099do
14100  case $ac_config_target in
14101    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
14102    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
14103
14104  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14105  esac
14106done
14107
14108
14109# If the user did not use the arguments to specify the items to instantiate,
14110# then the envvar interface is used.  Set only those that are not.
14111# We use the long form for the default assignment because of an extremely
14112# bizarre bug on SunOS 4.1.3.
14113if $ac_need_defaults; then
14114  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14115  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14116fi
14117
14118# Have a temporary directory for convenience.  Make it in the build tree
14119# simply because there is no reason against having it here, and in addition,
14120# creating and moving files from /tmp can sometimes cause problems.
14121# Hook for its removal unless debugging.
14122# Note that there is a small window in which the directory will not be cleaned:
14123# after its creation but before its name has been assigned to `$tmp'.
14124$debug ||
14125{
14126  tmp= ac_tmp=
14127  trap 'exit_status=$?
14128  : "${ac_tmp:=$tmp}"
14129  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14130' 0
14131  trap 'as_fn_exit 1' 1 2 13 15
14132}
14133# Create a (secure) tmp directory for tmp files.
14134
14135{
14136  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14137  test -d "$tmp"
14138}  ||
14139{
14140  tmp=./conf$$-$RANDOM
14141  (umask 077 && mkdir "$tmp")
14142} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14143ac_tmp=$tmp
14144
14145# Set up the scripts for CONFIG_FILES section.
14146# No need to generate them if there are no CONFIG_FILES.
14147# This happens for instance with `./config.status config.h'.
14148if test -n "$CONFIG_FILES"; then
14149
14150
14151ac_cr=`echo X | tr X '\015'`
14152# On cygwin, bash can eat \r inside `` if the user requested igncr.
14153# But we know of no other shell where ac_cr would be empty at this
14154# point, so we can use a bashism as a fallback.
14155if test "x$ac_cr" = x; then
14156  eval ac_cr=\$\'\\r\'
14157fi
14158ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14159if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14160  ac_cs_awk_cr='\\r'
14161else
14162  ac_cs_awk_cr=$ac_cr
14163fi
14164
14165echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14166_ACEOF
14167
14168
14169{
14170  echo "cat >conf$$subs.awk <<_ACEOF" &&
14171  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14172  echo "_ACEOF"
14173} >conf$$subs.sh ||
14174  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14175ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14176ac_delim='%!_!# '
14177for ac_last_try in false false false false false :; do
14178  . ./conf$$subs.sh ||
14179    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14180
14181  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14182  if test $ac_delim_n = $ac_delim_num; then
14183    break
14184  elif $ac_last_try; then
14185    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14186  else
14187    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14188  fi
14189done
14190rm -f conf$$subs.sh
14191
14192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14193cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14194_ACEOF
14195sed -n '
14196h
14197s/^/S["/; s/!.*/"]=/
14198p
14199g
14200s/^[^!]*!//
14201:repl
14202t repl
14203s/'"$ac_delim"'$//
14204t delim
14205:nl
14206h
14207s/\(.\{148\}\)..*/\1/
14208t more1
14209s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14210p
14211n
14212b repl
14213:more1
14214s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14215p
14216g
14217s/.\{148\}//
14218t nl
14219:delim
14220h
14221s/\(.\{148\}\)..*/\1/
14222t more2
14223s/["\\]/\\&/g; s/^/"/; s/$/"/
14224p
14225b
14226:more2
14227s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14228p
14229g
14230s/.\{148\}//
14231t delim
14232' <conf$$subs.awk | sed '
14233/^[^""]/{
14234  N
14235  s/\n//
14236}
14237' >>$CONFIG_STATUS || ac_write_fail=1
14238rm -f conf$$subs.awk
14239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14240_ACAWK
14241cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14242  for (key in S) S_is_set[key] = 1
14243  FS = ""
14244
14245}
14246{
14247  line = $ 0
14248  nfields = split(line, field, "@")
14249  substed = 0
14250  len = length(field[1])
14251  for (i = 2; i < nfields; i++) {
14252    key = field[i]
14253    keylen = length(key)
14254    if (S_is_set[key]) {
14255      value = S[key]
14256      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14257      len += length(value) + length(field[++i])
14258      substed = 1
14259    } else
14260      len += 1 + keylen
14261  }
14262
14263  print line
14264}
14265
14266_ACAWK
14267_ACEOF
14268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14269if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14270  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14271else
14272  cat
14273fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14274  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14275_ACEOF
14276
14277# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14278# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14279# trailing colons and then remove the whole line if VPATH becomes empty
14280# (actually we leave an empty line to preserve line numbers).
14281if test "x$srcdir" = x.; then
14282  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14283h
14284s///
14285s/^/:/
14286s/[	 ]*$/:/
14287s/:\$(srcdir):/:/g
14288s/:\${srcdir}:/:/g
14289s/:@srcdir@:/:/g
14290s/^:*//
14291s/:*$//
14292x
14293s/\(=[	 ]*\).*/\1/
14294G
14295s/\n//
14296s/^[^=]*=[	 ]*$//
14297}'
14298fi
14299
14300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14301fi # test -n "$CONFIG_FILES"
14302
14303# Set up the scripts for CONFIG_HEADERS section.
14304# No need to generate them if there are no CONFIG_HEADERS.
14305# This happens for instance with `./config.status Makefile'.
14306if test -n "$CONFIG_HEADERS"; then
14307cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14308BEGIN {
14309_ACEOF
14310
14311# Transform confdefs.h into an awk script `defines.awk', embedded as
14312# here-document in config.status, that substitutes the proper values into
14313# config.h.in to produce config.h.
14314
14315# Create a delimiter string that does not exist in confdefs.h, to ease
14316# handling of long lines.
14317ac_delim='%!_!# '
14318for ac_last_try in false false :; do
14319  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14320  if test -z "$ac_tt"; then
14321    break
14322  elif $ac_last_try; then
14323    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14324  else
14325    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14326  fi
14327done
14328
14329# For the awk script, D is an array of macro values keyed by name,
14330# likewise P contains macro parameters if any.  Preserve backslash
14331# newline sequences.
14332
14333ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14334sed -n '
14335s/.\{148\}/&'"$ac_delim"'/g
14336t rset
14337:rset
14338s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14339t def
14340d
14341:def
14342s/\\$//
14343t bsnl
14344s/["\\]/\\&/g
14345s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14346D["\1"]=" \3"/p
14347s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14348d
14349:bsnl
14350s/["\\]/\\&/g
14351s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14352D["\1"]=" \3\\\\\\n"\\/p
14353t cont
14354s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14355t cont
14356d
14357:cont
14358n
14359s/.\{148\}/&'"$ac_delim"'/g
14360t clear
14361:clear
14362s/\\$//
14363t bsnlc
14364s/["\\]/\\&/g; s/^/"/; s/$/"/p
14365d
14366:bsnlc
14367s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14368b cont
14369' <confdefs.h | sed '
14370s/'"$ac_delim"'/"\\\
14371"/g' >>$CONFIG_STATUS || ac_write_fail=1
14372
14373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14374  for (key in D) D_is_set[key] = 1
14375  FS = ""
14376}
14377/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14378  line = \$ 0
14379  split(line, arg, " ")
14380  if (arg[1] == "#") {
14381    defundef = arg[2]
14382    mac1 = arg[3]
14383  } else {
14384    defundef = substr(arg[1], 2)
14385    mac1 = arg[2]
14386  }
14387  split(mac1, mac2, "(") #)
14388  macro = mac2[1]
14389  prefix = substr(line, 1, index(line, defundef) - 1)
14390  if (D_is_set[macro]) {
14391    # Preserve the white space surrounding the "#".
14392    print prefix "define", macro P[macro] D[macro]
14393    next
14394  } else {
14395    # Replace #undef with comments.  This is necessary, for example,
14396    # in the case of _POSIX_SOURCE, which is predefined and required
14397    # on some systems where configure will not decide to define it.
14398    if (defundef == "undef") {
14399      print "/*", prefix defundef, macro, "*/"
14400      next
14401    }
14402  }
14403}
14404{ print }
14405_ACAWK
14406_ACEOF
14407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14408  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14409fi # test -n "$CONFIG_HEADERS"
14410
14411
14412eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
14413shift
14414for ac_tag
14415do
14416  case $ac_tag in
14417  :[FHLC]) ac_mode=$ac_tag; continue;;
14418  esac
14419  case $ac_mode$ac_tag in
14420  :[FHL]*:*);;
14421  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14422  :[FH]-) ac_tag=-:-;;
14423  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14424  esac
14425  ac_save_IFS=$IFS
14426  IFS=:
14427  set x $ac_tag
14428  IFS=$ac_save_IFS
14429  shift
14430  ac_file=$1
14431  shift
14432
14433  case $ac_mode in
14434  :L) ac_source=$1;;
14435  :[FH])
14436    ac_file_inputs=
14437    for ac_f
14438    do
14439      case $ac_f in
14440      -) ac_f="$ac_tmp/stdin";;
14441      *) # Look for the file first in the build tree, then in the source tree
14442	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14443	 # because $ac_f cannot contain `:'.
14444	 test -f "$ac_f" ||
14445	   case $ac_f in
14446	   [\\/$]*) false;;
14447	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14448	   esac ||
14449	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14450      esac
14451      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14452      as_fn_append ac_file_inputs " '$ac_f'"
14453    done
14454
14455    # Let's still pretend it is `configure' which instantiates (i.e., don't
14456    # use $as_me), people would be surprised to read:
14457    #    /* config.h.  Generated by config.status.  */
14458    configure_input='Generated from '`
14459	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14460	`' by configure.'
14461    if test x"$ac_file" != x-; then
14462      configure_input="$ac_file.  $configure_input"
14463      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14464$as_echo "$as_me: creating $ac_file" >&6;}
14465    fi
14466    # Neutralize special characters interpreted by sed in replacement strings.
14467    case $configure_input in #(
14468    *\&* | *\|* | *\\* )
14469       ac_sed_conf_input=`$as_echo "$configure_input" |
14470       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14471    *) ac_sed_conf_input=$configure_input;;
14472    esac
14473
14474    case $ac_tag in
14475    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14476      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14477    esac
14478    ;;
14479  esac
14480
14481  ac_dir=`$as_dirname -- "$ac_file" ||
14482$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14483	 X"$ac_file" : 'X\(//\)[^/]' \| \
14484	 X"$ac_file" : 'X\(//\)$' \| \
14485	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14486$as_echo X"$ac_file" |
14487    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14488	    s//\1/
14489	    q
14490	  }
14491	  /^X\(\/\/\)[^/].*/{
14492	    s//\1/
14493	    q
14494	  }
14495	  /^X\(\/\/\)$/{
14496	    s//\1/
14497	    q
14498	  }
14499	  /^X\(\/\).*/{
14500	    s//\1/
14501	    q
14502	  }
14503	  s/.*/./; q'`
14504  as_dir="$ac_dir"; as_fn_mkdir_p
14505  ac_builddir=.
14506
14507case "$ac_dir" in
14508.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14509*)
14510  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14511  # A ".." for each directory in $ac_dir_suffix.
14512  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14513  case $ac_top_builddir_sub in
14514  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14515  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14516  esac ;;
14517esac
14518ac_abs_top_builddir=$ac_pwd
14519ac_abs_builddir=$ac_pwd$ac_dir_suffix
14520# for backward compatibility:
14521ac_top_builddir=$ac_top_build_prefix
14522
14523case $srcdir in
14524  .)  # We are building in place.
14525    ac_srcdir=.
14526    ac_top_srcdir=$ac_top_builddir_sub
14527    ac_abs_top_srcdir=$ac_pwd ;;
14528  [\\/]* | ?:[\\/]* )  # Absolute name.
14529    ac_srcdir=$srcdir$ac_dir_suffix;
14530    ac_top_srcdir=$srcdir
14531    ac_abs_top_srcdir=$srcdir ;;
14532  *) # Relative name.
14533    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14534    ac_top_srcdir=$ac_top_build_prefix$srcdir
14535    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14536esac
14537ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14538
14539
14540  case $ac_mode in
14541  :F)
14542  #
14543  # CONFIG_FILE
14544  #
14545
14546_ACEOF
14547
14548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14549# If the template does not know about datarootdir, expand it.
14550# FIXME: This hack should be removed a few years after 2.60.
14551ac_datarootdir_hack=; ac_datarootdir_seen=
14552ac_sed_dataroot='
14553/datarootdir/ {
14554  p
14555  q
14556}
14557/@datadir@/p
14558/@docdir@/p
14559/@infodir@/p
14560/@localedir@/p
14561/@mandir@/p'
14562case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14563*datarootdir*) ac_datarootdir_seen=yes;;
14564*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14565  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14566$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14567_ACEOF
14568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14569  ac_datarootdir_hack='
14570  s&@datadir@&$datadir&g
14571  s&@docdir@&$docdir&g
14572  s&@infodir@&$infodir&g
14573  s&@localedir@&$localedir&g
14574  s&@mandir@&$mandir&g
14575  s&\\\${datarootdir}&$datarootdir&g' ;;
14576esac
14577_ACEOF
14578
14579# Neutralize VPATH when `$srcdir' = `.'.
14580# Shell code in configure.ac might set extrasub.
14581# FIXME: do we really want to maintain this feature?
14582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14583ac_sed_extra="$ac_vpsub
14584$extrasub
14585_ACEOF
14586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14587:t
14588/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14589s|@configure_input@|$ac_sed_conf_input|;t t
14590s&@top_builddir@&$ac_top_builddir_sub&;t t
14591s&@top_build_prefix@&$ac_top_build_prefix&;t t
14592s&@srcdir@&$ac_srcdir&;t t
14593s&@abs_srcdir@&$ac_abs_srcdir&;t t
14594s&@top_srcdir@&$ac_top_srcdir&;t t
14595s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14596s&@builddir@&$ac_builddir&;t t
14597s&@abs_builddir@&$ac_abs_builddir&;t t
14598s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14599$ac_datarootdir_hack
14600"
14601eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14602  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14603
14604test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14605  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14606  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14607      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14608  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14609which seems to be undefined.  Please make sure it is defined" >&5
14610$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14611which seems to be undefined.  Please make sure it is defined" >&2;}
14612
14613  rm -f "$ac_tmp/stdin"
14614  case $ac_file in
14615  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14616  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14617  esac \
14618  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14619 ;;
14620  :H)
14621  #
14622  # CONFIG_HEADER
14623  #
14624  if test x"$ac_file" != x-; then
14625    {
14626      $as_echo "/* $configure_input  */" \
14627      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14628    } >"$ac_tmp/config.h" \
14629      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14630    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14631      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14632$as_echo "$as_me: $ac_file is unchanged" >&6;}
14633    else
14634      rm -f "$ac_file"
14635      mv "$ac_tmp/config.h" "$ac_file" \
14636	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14637    fi
14638  else
14639    $as_echo "/* $configure_input  */" \
14640      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14641      || as_fn_error $? "could not create -" "$LINENO" 5
14642  fi
14643 ;;
14644
14645
14646  esac
14647
14648done # for ac_tag
14649
14650
14651as_fn_exit 0
14652_ACEOF
14653ac_clean_files=$ac_clean_files_save
14654
14655test $ac_write_fail = 0 ||
14656  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14657
14658
14659# configure is writing to config.log, and then calls config.status.
14660# config.status does its own redirection, appending to config.log.
14661# Unfortunately, on DOS this fails, as config.log is still kept open
14662# by configure, so config.status won't be able to write to it; its
14663# output is simply discarded.  So we exec the FD to /dev/null,
14664# effectively closing config.log, so it can be properly (re)opened and
14665# appended to by config.status.  When coming back to configure, we
14666# need to make the FD available again.
14667if test "$no_create" != yes; then
14668  ac_cs_success=:
14669  ac_config_status_args=
14670  test "$silent" = yes &&
14671    ac_config_status_args="$ac_config_status_args --quiet"
14672  exec 5>/dev/null
14673  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14674  exec 5>>auto/config.log
14675  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14676  # would make configure fail if this is the last instruction.
14677  $ac_cs_success || as_fn_exit 1
14678fi
14679if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14680  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14681$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14682fi
14683
14684
14685