xref: /vim-8.2.3635/src/auto/configure (revision e7b1ea02)
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
626MSGFMT_DESKTOP
627MAKEMO
628MSGFMT
629INSTALL_TOOL_LANGS
630INSTALL_LANGS
631TAGPRG
632GUI_X_LIBS
633GUITYPE
634GUI_LIB_LOC
635GUI_INC_LOC
636NARROW_PROTO
637MOTIF_LIBNAME
638GRESOURCE_OBJ
639GRESOURCE_SRC
640UPDATE_DESKTOP_DATABASE
641GTK_UPDATE_ICON_CACHE
642GLIB_COMPILE_RESOURCES
643GNOME_INCLUDEDIR
644GNOME_LIBDIR
645GNOME_LIBS
646GTK_LIBNAME
647GTK_LIBS
648GTK_CFLAGS
649PKG_CONFIG
650X_LIB
651X_EXTRA_LIBS
652X_LIBS
653X_PRE_LIBS
654X_CFLAGS
655XMKMF
656xmkmfpath
657TERM_TEST
658TERM_OBJ
659TERM_SRC
660CHANNEL_OBJ
661CHANNEL_SRC
662NETBEANS_OBJ
663NETBEANS_SRC
664RUBY_LIBS
665RUBY_CFLAGS
666RUBY_PRO
667RUBY_OBJ
668RUBY_SRC
669vi_cv_path_ruby
670TCL_LIBS
671TCL_CFLAGS
672TCL_PRO
673TCL_OBJ
674TCL_SRC
675vi_cv_path_tcl
676PYTHON3_OBJ
677PYTHON3_SRC
678PYTHON3_CFLAGS
679PYTHON3_LIBS
680vi_cv_path_python3
681PYTHON_OBJ
682PYTHON_SRC
683PYTHON_CFLAGS
684PYTHON_LIBS
685vi_cv_path_python
686PERL_LIBS
687PERL_CFLAGS
688PERL_PRO
689PERL_OBJ
690PERL_SRC
691shrpenv
692vi_cv_perl_xsubpp
693vi_cv_perllib
694vi_cv_path_perl
695MZSCHEME_MZC
696MZSCHEME_EXTRA
697MZSCHEME_CFLAGS
698MZSCHEME_LIBS
699MZSCHEME_PRO
700MZSCHEME_OBJ
701MZSCHEME_SRC
702vi_cv_path_mzscheme
703LUA_CFLAGS
704LUA_LIBS
705LUA_PRO
706LUA_OBJ
707LUA_SRC
708vi_cv_path_plain_lua
709vi_cv_path_luajit
710vi_cv_path_lua
711compiledby
712dogvimdiff
713dovimdiff
714QUOTESED
715line_break
716VIEWNAME
717EXNAME
718VIMNAME
719OS_EXTRA_OBJ
720OS_EXTRA_SRC
721XCODE_SELECT
722CPP_MM
723CROSS_COMPILING
724BUILD_DATE_MSG
725STRIP
726AWK
727FGREP
728EGREP
729GREP
730CPP
731OBJEXT
732EXEEXT
733ac_ct_CC
734CPPFLAGS
735LDFLAGS
736CFLAGS
737CC
738SET_MAKE
739target_alias
740host_alias
741build_alias
742LIBS
743ECHO_T
744ECHO_N
745ECHO_C
746DEFS
747mandir
748localedir
749libdir
750psdir
751pdfdir
752dvidir
753htmldir
754infodir
755docdir
756oldincludedir
757includedir
758runstatedir
759localstatedir
760sharedstatedir
761sysconfdir
762datadir
763datarootdir
764libexecdir
765sbindir
766bindir
767program_transform_name
768prefix
769exec_prefix
770PACKAGE_URL
771PACKAGE_BUGREPORT
772PACKAGE_STRING
773PACKAGE_VERSION
774PACKAGE_TARNAME
775PACKAGE_NAME
776PATH_SEPARATOR
777SHELL'
778ac_subst_files=''
779ac_user_opts='
780enable_option_checking
781enable_fail_if_missing
782enable_darwin
783with_mac_arch
784with_developer_dir
785with_local_dir
786with_vim_name
787with_ex_name
788with_view_name
789with_global_runtime
790with_modified_by
791enable_smack
792enable_selinux
793with_features
794with_compiledby
795enable_xsmp
796enable_xsmp_interact
797enable_luainterp
798with_lua_prefix
799with_luajit
800enable_mzschemeinterp
801with_plthome
802enable_perlinterp
803enable_pythoninterp
804with_python_command
805with_python_config_dir
806enable_python3interp
807with_python3_command
808with_python3_config_dir
809enable_tclinterp
810with_tclsh
811enable_rubyinterp
812with_ruby_command
813enable_cscope
814enable_netbeans
815enable_channel
816enable_terminal
817enable_autoservername
818enable_multibyte
819enable_rightleft
820enable_arabic
821enable_farsi
822enable_xim
823enable_fontset
824with_x
825enable_gui
826enable_gtk2_check
827enable_gnome_check
828enable_gtk3_check
829enable_motif_check
830enable_athena_check
831enable_nextaw_check
832enable_carbon_check
833enable_gtktest
834with_gnome_includes
835with_gnome_libs
836with_gnome
837enable_icon_cache_update
838enable_desktop_database_update
839with_motif_lib
840with_tlib
841enable_largefile
842enable_canberra
843enable_acl
844enable_gpm
845enable_sysmouse
846enable_nls
847'
848      ac_precious_vars='build_alias
849host_alias
850target_alias
851CC
852CFLAGS
853LDFLAGS
854LIBS
855CPPFLAGS
856CPP
857XMKMF'
858
859
860# Initialize some variables set by options.
861ac_init_help=
862ac_init_version=false
863ac_unrecognized_opts=
864ac_unrecognized_sep=
865# The variables have the same names as the options, with
866# dashes changed to underlines.
867cache_file=/dev/null
868exec_prefix=NONE
869no_create=
870no_recursion=
871prefix=NONE
872program_prefix=NONE
873program_suffix=NONE
874program_transform_name=s,x,x,
875silent=
876site=
877srcdir=
878verbose=
879x_includes=NONE
880x_libraries=NONE
881
882# Installation directory options.
883# These are left unexpanded so users can "make install exec_prefix=/foo"
884# and all the variables that are supposed to be based on exec_prefix
885# by default will actually change.
886# Use braces instead of parens because sh, perl, etc. also accept them.
887# (The list follows the same order as the GNU Coding Standards.)
888bindir='${exec_prefix}/bin'
889sbindir='${exec_prefix}/sbin'
890libexecdir='${exec_prefix}/libexec'
891datarootdir='${prefix}/share'
892datadir='${datarootdir}'
893sysconfdir='${prefix}/etc'
894sharedstatedir='${prefix}/com'
895localstatedir='${prefix}/var'
896runstatedir='${localstatedir}/run'
897includedir='${prefix}/include'
898oldincludedir='/usr/include'
899docdir='${datarootdir}/doc/${PACKAGE}'
900infodir='${datarootdir}/info'
901htmldir='${docdir}'
902dvidir='${docdir}'
903pdfdir='${docdir}'
904psdir='${docdir}'
905libdir='${exec_prefix}/lib'
906localedir='${datarootdir}/locale'
907mandir='${datarootdir}/man'
908
909ac_prev=
910ac_dashdash=
911for ac_option
912do
913  # If the previous option needs an argument, assign it.
914  if test -n "$ac_prev"; then
915    eval $ac_prev=\$ac_option
916    ac_prev=
917    continue
918  fi
919
920  case $ac_option in
921  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922  *=)   ac_optarg= ;;
923  *)    ac_optarg=yes ;;
924  esac
925
926  # Accept the important Cygnus configure options, so we can diagnose typos.
927
928  case $ac_dashdash$ac_option in
929  --)
930    ac_dashdash=yes ;;
931
932  -bindir | --bindir | --bindi | --bind | --bin | --bi)
933    ac_prev=bindir ;;
934  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935    bindir=$ac_optarg ;;
936
937  -build | --build | --buil | --bui | --bu)
938    ac_prev=build_alias ;;
939  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
940    build_alias=$ac_optarg ;;
941
942  -cache-file | --cache-file | --cache-fil | --cache-fi \
943  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
944    ac_prev=cache_file ;;
945  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
946  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
947    cache_file=$ac_optarg ;;
948
949  --config-cache | -C)
950    cache_file=config.cache ;;
951
952  -datadir | --datadir | --datadi | --datad)
953    ac_prev=datadir ;;
954  -datadir=* | --datadir=* | --datadi=* | --datad=*)
955    datadir=$ac_optarg ;;
956
957  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
958  | --dataroo | --dataro | --datar)
959    ac_prev=datarootdir ;;
960  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
961  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
962    datarootdir=$ac_optarg ;;
963
964  -disable-* | --disable-*)
965    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966    # Reject names that are not valid shell variable names.
967    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968      as_fn_error $? "invalid feature name: $ac_useropt"
969    ac_useropt_orig=$ac_useropt
970    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971    case $ac_user_opts in
972      *"
973"enable_$ac_useropt"
974"*) ;;
975      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976	 ac_unrecognized_sep=', ';;
977    esac
978    eval enable_$ac_useropt=no ;;
979
980  -docdir | --docdir | --docdi | --doc | --do)
981    ac_prev=docdir ;;
982  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983    docdir=$ac_optarg ;;
984
985  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986    ac_prev=dvidir ;;
987  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988    dvidir=$ac_optarg ;;
989
990  -enable-* | --enable-*)
991    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992    # Reject names that are not valid shell variable names.
993    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994      as_fn_error $? "invalid feature name: $ac_useropt"
995    ac_useropt_orig=$ac_useropt
996    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997    case $ac_user_opts in
998      *"
999"enable_$ac_useropt"
1000"*) ;;
1001      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1002	 ac_unrecognized_sep=', ';;
1003    esac
1004    eval enable_$ac_useropt=\$ac_optarg ;;
1005
1006  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008  | --exec | --exe | --ex)
1009    ac_prev=exec_prefix ;;
1010  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012  | --exec=* | --exe=* | --ex=*)
1013    exec_prefix=$ac_optarg ;;
1014
1015  -gas | --gas | --ga | --g)
1016    # Obsolete; use --with-gas.
1017    with_gas=yes ;;
1018
1019  -help | --help | --hel | --he | -h)
1020    ac_init_help=long ;;
1021  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022    ac_init_help=recursive ;;
1023  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024    ac_init_help=short ;;
1025
1026  -host | --host | --hos | --ho)
1027    ac_prev=host_alias ;;
1028  -host=* | --host=* | --hos=* | --ho=*)
1029    host_alias=$ac_optarg ;;
1030
1031  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032    ac_prev=htmldir ;;
1033  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034  | --ht=*)
1035    htmldir=$ac_optarg ;;
1036
1037  -includedir | --includedir | --includedi | --included | --include \
1038  | --includ | --inclu | --incl | --inc)
1039    ac_prev=includedir ;;
1040  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041  | --includ=* | --inclu=* | --incl=* | --inc=*)
1042    includedir=$ac_optarg ;;
1043
1044  -infodir | --infodir | --infodi | --infod | --info | --inf)
1045    ac_prev=infodir ;;
1046  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047    infodir=$ac_optarg ;;
1048
1049  -libdir | --libdir | --libdi | --libd)
1050    ac_prev=libdir ;;
1051  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052    libdir=$ac_optarg ;;
1053
1054  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055  | --libexe | --libex | --libe)
1056    ac_prev=libexecdir ;;
1057  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058  | --libexe=* | --libex=* | --libe=*)
1059    libexecdir=$ac_optarg ;;
1060
1061  -localedir | --localedir | --localedi | --localed | --locale)
1062    ac_prev=localedir ;;
1063  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064    localedir=$ac_optarg ;;
1065
1066  -localstatedir | --localstatedir | --localstatedi | --localstated \
1067  | --localstate | --localstat | --localsta | --localst | --locals)
1068    ac_prev=localstatedir ;;
1069  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071    localstatedir=$ac_optarg ;;
1072
1073  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074    ac_prev=mandir ;;
1075  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076    mandir=$ac_optarg ;;
1077
1078  -nfp | --nfp | --nf)
1079    # Obsolete; use --without-fp.
1080    with_fp=no ;;
1081
1082  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083  | --no-cr | --no-c | -n)
1084    no_create=yes ;;
1085
1086  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088    no_recursion=yes ;;
1089
1090  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092  | --oldin | --oldi | --old | --ol | --o)
1093    ac_prev=oldincludedir ;;
1094  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097    oldincludedir=$ac_optarg ;;
1098
1099  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100    ac_prev=prefix ;;
1101  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102    prefix=$ac_optarg ;;
1103
1104  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105  | --program-pre | --program-pr | --program-p)
1106    ac_prev=program_prefix ;;
1107  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109    program_prefix=$ac_optarg ;;
1110
1111  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112  | --program-suf | --program-su | --program-s)
1113    ac_prev=program_suffix ;;
1114  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116    program_suffix=$ac_optarg ;;
1117
1118  -program-transform-name | --program-transform-name \
1119  | --program-transform-nam | --program-transform-na \
1120  | --program-transform-n | --program-transform- \
1121  | --program-transform | --program-transfor \
1122  | --program-transfo | --program-transf \
1123  | --program-trans | --program-tran \
1124  | --progr-tra | --program-tr | --program-t)
1125    ac_prev=program_transform_name ;;
1126  -program-transform-name=* | --program-transform-name=* \
1127  | --program-transform-nam=* | --program-transform-na=* \
1128  | --program-transform-n=* | --program-transform-=* \
1129  | --program-transform=* | --program-transfor=* \
1130  | --program-transfo=* | --program-transf=* \
1131  | --program-trans=* | --program-tran=* \
1132  | --progr-tra=* | --program-tr=* | --program-t=*)
1133    program_transform_name=$ac_optarg ;;
1134
1135  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136    ac_prev=pdfdir ;;
1137  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138    pdfdir=$ac_optarg ;;
1139
1140  -psdir | --psdir | --psdi | --psd | --ps)
1141    ac_prev=psdir ;;
1142  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143    psdir=$ac_optarg ;;
1144
1145  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146  | -silent | --silent | --silen | --sile | --sil)
1147    silent=yes ;;
1148
1149  -runstatedir | --runstatedir | --runstatedi | --runstated \
1150  | --runstate | --runstat | --runsta | --runst | --runs \
1151  | --run | --ru | --r)
1152    ac_prev=runstatedir ;;
1153  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1154  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1155  | --run=* | --ru=* | --r=*)
1156    runstatedir=$ac_optarg ;;
1157
1158  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159    ac_prev=sbindir ;;
1160  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161  | --sbi=* | --sb=*)
1162    sbindir=$ac_optarg ;;
1163
1164  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166  | --sharedst | --shareds | --shared | --share | --shar \
1167  | --sha | --sh)
1168    ac_prev=sharedstatedir ;;
1169  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172  | --sha=* | --sh=*)
1173    sharedstatedir=$ac_optarg ;;
1174
1175  -site | --site | --sit)
1176    ac_prev=site ;;
1177  -site=* | --site=* | --sit=*)
1178    site=$ac_optarg ;;
1179
1180  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181    ac_prev=srcdir ;;
1182  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183    srcdir=$ac_optarg ;;
1184
1185  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186  | --syscon | --sysco | --sysc | --sys | --sy)
1187    ac_prev=sysconfdir ;;
1188  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190    sysconfdir=$ac_optarg ;;
1191
1192  -target | --target | --targe | --targ | --tar | --ta | --t)
1193    ac_prev=target_alias ;;
1194  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195    target_alias=$ac_optarg ;;
1196
1197  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198    verbose=yes ;;
1199
1200  -version | --version | --versio | --versi | --vers | -V)
1201    ac_init_version=: ;;
1202
1203  -with-* | --with-*)
1204    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205    # Reject names that are not valid shell variable names.
1206    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207      as_fn_error $? "invalid package name: $ac_useropt"
1208    ac_useropt_orig=$ac_useropt
1209    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210    case $ac_user_opts in
1211      *"
1212"with_$ac_useropt"
1213"*) ;;
1214      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215	 ac_unrecognized_sep=', ';;
1216    esac
1217    eval with_$ac_useropt=\$ac_optarg ;;
1218
1219  -without-* | --without-*)
1220    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221    # Reject names that are not valid shell variable names.
1222    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223      as_fn_error $? "invalid package name: $ac_useropt"
1224    ac_useropt_orig=$ac_useropt
1225    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226    case $ac_user_opts in
1227      *"
1228"with_$ac_useropt"
1229"*) ;;
1230      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231	 ac_unrecognized_sep=', ';;
1232    esac
1233    eval with_$ac_useropt=no ;;
1234
1235  --x)
1236    # Obsolete; use --with-x.
1237    with_x=yes ;;
1238
1239  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240  | --x-incl | --x-inc | --x-in | --x-i)
1241    ac_prev=x_includes ;;
1242  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244    x_includes=$ac_optarg ;;
1245
1246  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248    ac_prev=x_libraries ;;
1249  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251    x_libraries=$ac_optarg ;;
1252
1253  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1254Try \`$0 --help' for more information"
1255    ;;
1256
1257  *=*)
1258    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259    # Reject names that are not valid shell variable names.
1260    case $ac_envvar in #(
1261      '' | [0-9]* | *[!_$as_cr_alnum]* )
1262      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1263    esac
1264    eval $ac_envvar=\$ac_optarg
1265    export $ac_envvar ;;
1266
1267  *)
1268    # FIXME: should be removed in autoconf 3.0.
1269    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1273    ;;
1274
1275  esac
1276done
1277
1278if test -n "$ac_prev"; then
1279  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280  as_fn_error $? "missing argument to $ac_option"
1281fi
1282
1283if test -n "$ac_unrecognized_opts"; then
1284  case $enable_option_checking in
1285    no) ;;
1286    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1287    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288  esac
1289fi
1290
1291# Check all directory arguments for consistency.
1292for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293		datadir sysconfdir sharedstatedir localstatedir includedir \
1294		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295		libdir localedir mandir runstatedir
1296do
1297  eval ac_val=\$$ac_var
1298  # Remove trailing slashes.
1299  case $ac_val in
1300    */ )
1301      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302      eval $ac_var=\$ac_val;;
1303  esac
1304  # Be sure to have absolute directory names.
1305  case $ac_val in
1306    [\\/$]* | ?:[\\/]* )  continue;;
1307    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308  esac
1309  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1310done
1311
1312# There might be people who depend on the old broken behavior: `$host'
1313# used to hold the argument of --host etc.
1314# FIXME: To remove some day.
1315build=$build_alias
1316host=$host_alias
1317target=$target_alias
1318
1319# FIXME: To remove some day.
1320if test "x$host_alias" != x; then
1321  if test "x$build_alias" = x; then
1322    cross_compiling=maybe
1323  elif test "x$build_alias" != "x$host_alias"; then
1324    cross_compiling=yes
1325  fi
1326fi
1327
1328ac_tool_prefix=
1329test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330
1331test "$silent" = yes && exec 6>/dev/null
1332
1333
1334ac_pwd=`pwd` && test -n "$ac_pwd" &&
1335ac_ls_di=`ls -di .` &&
1336ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1337  as_fn_error $? "working directory cannot be determined"
1338test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339  as_fn_error $? "pwd does not report name of working directory"
1340
1341
1342# Find the source files, if location was not specified.
1343if test -z "$srcdir"; then
1344  ac_srcdir_defaulted=yes
1345  # Try the directory containing this script, then the parent directory.
1346  ac_confdir=`$as_dirname -- "$as_myself" ||
1347$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348	 X"$as_myself" : 'X\(//\)[^/]' \| \
1349	 X"$as_myself" : 'X\(//\)$' \| \
1350	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1351$as_echo X"$as_myself" |
1352    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353	    s//\1/
1354	    q
1355	  }
1356	  /^X\(\/\/\)[^/].*/{
1357	    s//\1/
1358	    q
1359	  }
1360	  /^X\(\/\/\)$/{
1361	    s//\1/
1362	    q
1363	  }
1364	  /^X\(\/\).*/{
1365	    s//\1/
1366	    q
1367	  }
1368	  s/.*/./; q'`
1369  srcdir=$ac_confdir
1370  if test ! -r "$srcdir/$ac_unique_file"; then
1371    srcdir=..
1372  fi
1373else
1374  ac_srcdir_defaulted=no
1375fi
1376if test ! -r "$srcdir/$ac_unique_file"; then
1377  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1379fi
1380ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381ac_abs_confdir=`(
1382	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1383	pwd)`
1384# When building in place, set srcdir=.
1385if test "$ac_abs_confdir" = "$ac_pwd"; then
1386  srcdir=.
1387fi
1388# Remove unnecessary trailing slashes from srcdir.
1389# Double slashes in file names in object file debugging info
1390# mess up M-x gdb in Emacs.
1391case $srcdir in
1392*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393esac
1394for ac_var in $ac_precious_vars; do
1395  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396  eval ac_env_${ac_var}_value=\$${ac_var}
1397  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399done
1400
1401#
1402# Report the --help message.
1403#
1404if test "$ac_init_help" = "long"; then
1405  # Omit some internal or obsolete options to make the list less imposing.
1406  # This message is too long to be a string in the A/UX 3.1 sh.
1407  cat <<_ACEOF
1408\`configure' configures this package to adapt to many kinds of systems.
1409
1410Usage: $0 [OPTION]... [VAR=VALUE]...
1411
1412To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413VAR=VALUE.  See below for descriptions of some of the useful variables.
1414
1415Defaults for the options are specified in brackets.
1416
1417Configuration:
1418  -h, --help              display this help and exit
1419      --help=short        display options specific to this package
1420      --help=recursive    display the short help of all the included packages
1421  -V, --version           display version information and exit
1422  -q, --quiet, --silent   do not print \`checking ...' messages
1423      --cache-file=FILE   cache test results in FILE [disabled]
1424  -C, --config-cache      alias for \`--cache-file=config.cache'
1425  -n, --no-create         do not create output files
1426      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1427
1428Installation directories:
1429  --prefix=PREFIX         install architecture-independent files in PREFIX
1430                          [$ac_default_prefix]
1431  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1432                          [PREFIX]
1433
1434By default, \`make install' will install all the files in
1435\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1436an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437for instance \`--prefix=\$HOME'.
1438
1439For better control, use the options below.
1440
1441Fine tuning of the installation directories:
1442  --bindir=DIR            user executables [EPREFIX/bin]
1443  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1444  --libexecdir=DIR        program executables [EPREFIX/libexec]
1445  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1446  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1447  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1448  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1449  --libdir=DIR            object code libraries [EPREFIX/lib]
1450  --includedir=DIR        C header files [PREFIX/include]
1451  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1452  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1453  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1454  --infodir=DIR           info documentation [DATAROOTDIR/info]
1455  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1456  --mandir=DIR            man documentation [DATAROOTDIR/man]
1457  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1458  --htmldir=DIR           html documentation [DOCDIR]
1459  --dvidir=DIR            dvi documentation [DOCDIR]
1460  --pdfdir=DIR            pdf documentation [DOCDIR]
1461  --psdir=DIR             ps documentation [DOCDIR]
1462_ACEOF
1463
1464  cat <<\_ACEOF
1465
1466X features:
1467  --x-includes=DIR    X include files are in DIR
1468  --x-libraries=DIR   X library files are in DIR
1469_ACEOF
1470fi
1471
1472if test -n "$ac_init_help"; then
1473
1474  cat <<\_ACEOF
1475
1476Optional Features:
1477  --disable-option-checking  ignore unrecognized --enable/--with options
1478  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1479  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1480  --enable-fail-if-missing    Fail if dependencies on additional features
1481     specified on the command line are missing.
1482  --disable-darwin        Disable Darwin (Mac OS X) support.
1483  --disable-smack	  Do not check for Smack support.
1484  --disable-selinux	  Do not check for SELinux support.
1485  --disable-xsmp          Disable XSMP session management
1486  --disable-xsmp-interact Disable XSMP interaction
1487  --enable-luainterp=OPTS      Include Lua interpreter.  default=no OPTS=no/yes/dynamic
1488  --enable-mzschemeinterp      Include MzScheme interpreter.
1489  --enable-perlinterp=OPTS     Include Perl interpreter.  default=no OPTS=no/yes/dynamic
1490  --enable-pythoninterp=OPTS   Include Python interpreter. default=no OPTS=no/yes/dynamic
1491  --enable-python3interp=OPTS  Include Python3 interpreter. default=no OPTS=no/yes/dynamic
1492  --enable-tclinterp=OPTS      Include Tcl interpreter. default=no OPTS=no/yes/dynamic
1493  --enable-rubyinterp=OPTS     Include Ruby interpreter.  default=no OPTS=no/yes/dynamic
1494  --enable-cscope         Include cscope interface.
1495  --disable-netbeans      Disable NetBeans integration support.
1496  --disable-channel       Disable process communication support.
1497  --enable-terminal       Enable terminal emulation support.
1498  --enable-autoservername Automatically define servername at vim startup.
1499  --enable-multibyte      Include multibyte editing support.
1500  --disable-rightleft     Do not include Right-to-Left language support.
1501  --disable-arabic        Do not include Arabic language support.
1502  --disable-farsi         Deprecated.
1503  --enable-xim            Include XIM input support.
1504  --enable-fontset        Include X fontset output support.
1505  --enable-gui=OPTS       X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/haiku/photon/carbon
1506  --enable-gtk2-check     If auto-select GUI, check for GTK+ 2 default=yes
1507  --enable-gnome-check    If GTK GUI, check for GNOME default=no
1508  --enable-gtk3-check     If auto-select GUI, check for GTK+ 3 default=yes
1509  --enable-motif-check    If auto-select GUI, check for Motif default=yes
1510  --enable-athena-check   If auto-select GUI, check for Athena default=yes
1511  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
1512  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
1513  --disable-gtktest       Do not try to compile and run a test GTK program
1514  --disable-icon-cache-update        update disabled
1515  --disable-desktop-database-update  update disabled
1516  --disable-largefile     omit support for large files
1517  --disable-canberra      Do not use libcanberra.
1518  --disable-acl           No check for ACL support.
1519  --disable-gpm           Don't use gpm (Linux mouse daemon).
1520  --disable-sysmouse      Don't use sysmouse (mouse in *BSD console).
1521  --disable-nls           Don't support NLS (gettext()).
1522
1523Optional Packages:
1524  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1525  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1526  --with-mac-arch=ARCH    current, intel, ppc or both
1527  --with-developer-dir=PATH    use PATH as location for Xcode developer tools
1528  --with-local-dir=PATH   search PATH instead of /usr/local for local libraries.
1529  --without-local-dir     do not search /usr/local for local libraries.
1530  --with-vim-name=NAME    what to call the Vim executable
1531  --with-ex-name=NAME     what to call the Ex executable
1532  --with-view-name=NAME   what to call the View executable
1533  --with-global-runtime=DIR    global runtime directory in 'runtimepath', comma-separated for multiple directories
1534  --with-modified-by=NAME       name of who modified a release version
1535  --with-features=TYPE    tiny, small, normal, big or huge (default: huge)
1536  --with-compiledby=NAME  name to show in :version message
1537  --with-lua-prefix=PFX   Prefix where Lua is installed.
1538  --with-luajit           Link with LuaJIT instead of Lua.
1539  --with-plthome=PLTHOME   Use PLTHOME.
1540  --with-python-command=NAME  name of the Python 2 command (default: python2 or python)
1541  --with-python-config-dir=PATH  Python's config directory (deprecated)
1542  --with-python3-command=NAME  name of the Python 3 command (default: python3 or python)
1543  --with-python3-config-dir=PATH  Python's config directory (deprecated)
1544  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
1545  --with-ruby-command=RUBY  name of the Ruby command (default: ruby)
1546  --with-x                use the X Window System
1547  --with-gnome-includes=DIR Specify location of GNOME headers
1548  --with-gnome-libs=DIR   Specify location of GNOME libs
1549  --with-gnome            Specify prefix for GNOME files
1550  --with-motif-lib=STRING Library for Motif
1551  --with-tlib=library     terminal library to be used
1552
1553Some influential environment variables:
1554  CC          C compiler command
1555  CFLAGS      C compiler flags
1556  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1557              nonstandard directory <lib dir>
1558  LIBS        libraries to pass to the linker, e.g. -l<library>
1559  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1560              you have headers in a nonstandard directory <include dir>
1561  CPP         C preprocessor
1562  XMKMF       Path to xmkmf, Makefile generator for X Window System
1563
1564Use these variables to override the choices made by `configure' or to help
1565it to find libraries and programs with nonstandard names/locations.
1566
1567Report bugs to the package provider.
1568_ACEOF
1569ac_status=$?
1570fi
1571
1572if test "$ac_init_help" = "recursive"; then
1573  # If there are subdirs, report their specific --help.
1574  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575    test -d "$ac_dir" ||
1576      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577      continue
1578    ac_builddir=.
1579
1580case "$ac_dir" in
1581.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582*)
1583  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584  # A ".." for each directory in $ac_dir_suffix.
1585  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586  case $ac_top_builddir_sub in
1587  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1589  esac ;;
1590esac
1591ac_abs_top_builddir=$ac_pwd
1592ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593# for backward compatibility:
1594ac_top_builddir=$ac_top_build_prefix
1595
1596case $srcdir in
1597  .)  # We are building in place.
1598    ac_srcdir=.
1599    ac_top_srcdir=$ac_top_builddir_sub
1600    ac_abs_top_srcdir=$ac_pwd ;;
1601  [\\/]* | ?:[\\/]* )  # Absolute name.
1602    ac_srcdir=$srcdir$ac_dir_suffix;
1603    ac_top_srcdir=$srcdir
1604    ac_abs_top_srcdir=$srcdir ;;
1605  *) # Relative name.
1606    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607    ac_top_srcdir=$ac_top_build_prefix$srcdir
1608    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609esac
1610ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611
1612    cd "$ac_dir" || { ac_status=$?; continue; }
1613    # Check for guested configure.
1614    if test -f "$ac_srcdir/configure.gnu"; then
1615      echo &&
1616      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617    elif test -f "$ac_srcdir/configure"; then
1618      echo &&
1619      $SHELL "$ac_srcdir/configure" --help=recursive
1620    else
1621      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622    fi || ac_status=$?
1623    cd "$ac_pwd" || { ac_status=$?; break; }
1624  done
1625fi
1626
1627test -n "$ac_init_help" && exit $ac_status
1628if $ac_init_version; then
1629  cat <<\_ACEOF
1630configure
1631generated by GNU Autoconf 2.69
1632
1633Copyright (C) 2012 Free Software Foundation, Inc.
1634This configure script is free software; the Free Software Foundation
1635gives unlimited permission to copy, distribute and modify it.
1636_ACEOF
1637  exit
1638fi
1639
1640## ------------------------ ##
1641## Autoconf initialization. ##
1642## ------------------------ ##
1643
1644# ac_fn_c_try_compile LINENO
1645# --------------------------
1646# Try to compile conftest.$ac_ext, and return whether this succeeded.
1647ac_fn_c_try_compile ()
1648{
1649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650  rm -f conftest.$ac_objext
1651  if { { ac_try="$ac_compile"
1652case "(($ac_try" in
1653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654  *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657$as_echo "$ac_try_echo"; } >&5
1658  (eval "$ac_compile") 2>conftest.err
1659  ac_status=$?
1660  if test -s conftest.err; then
1661    grep -v '^ *+' conftest.err >conftest.er1
1662    cat conftest.er1 >&5
1663    mv -f conftest.er1 conftest.err
1664  fi
1665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666  test $ac_status = 0; } && {
1667	 test -z "$ac_c_werror_flag" ||
1668	 test ! -s conftest.err
1669       } && test -s conftest.$ac_objext; then :
1670  ac_retval=0
1671else
1672  $as_echo "$as_me: failed program was:" >&5
1673sed 's/^/| /' conftest.$ac_ext >&5
1674
1675	ac_retval=1
1676fi
1677  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678  as_fn_set_status $ac_retval
1679
1680} # ac_fn_c_try_compile
1681
1682# ac_fn_c_try_cpp LINENO
1683# ----------------------
1684# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1685ac_fn_c_try_cpp ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  if { { ac_try="$ac_cpp conftest.$ac_ext"
1689case "(($ac_try" in
1690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691  *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1696  ac_status=$?
1697  if test -s conftest.err; then
1698    grep -v '^ *+' conftest.err >conftest.er1
1699    cat conftest.er1 >&5
1700    mv -f conftest.er1 conftest.err
1701  fi
1702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703  test $ac_status = 0; } > conftest.i && {
1704	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1705	 test ! -s conftest.err
1706       }; then :
1707  ac_retval=0
1708else
1709  $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712    ac_retval=1
1713fi
1714  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715  as_fn_set_status $ac_retval
1716
1717} # ac_fn_c_try_cpp
1718
1719# ac_fn_c_try_link LINENO
1720# -----------------------
1721# Try to link conftest.$ac_ext, and return whether this succeeded.
1722ac_fn_c_try_link ()
1723{
1724  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725  rm -f conftest.$ac_objext conftest$ac_exeext
1726  if { { ac_try="$ac_link"
1727case "(($ac_try" in
1728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729  *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733  (eval "$ac_link") 2>conftest.err
1734  ac_status=$?
1735  if test -s conftest.err; then
1736    grep -v '^ *+' conftest.err >conftest.er1
1737    cat conftest.er1 >&5
1738    mv -f conftest.er1 conftest.err
1739  fi
1740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741  test $ac_status = 0; } && {
1742	 test -z "$ac_c_werror_flag" ||
1743	 test ! -s conftest.err
1744       } && test -s conftest$ac_exeext && {
1745	 test "$cross_compiling" = yes ||
1746	 test -x conftest$ac_exeext
1747       }; then :
1748  ac_retval=0
1749else
1750  $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
1752
1753	ac_retval=1
1754fi
1755  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1756  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1757  # interfere with the next link command; also delete a directory that is
1758  # left behind by Apple's compiler.  We do this before executing the actions.
1759  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761  as_fn_set_status $ac_retval
1762
1763} # ac_fn_c_try_link
1764
1765# ac_fn_c_try_run LINENO
1766# ----------------------
1767# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1768# that executables *can* be run.
1769ac_fn_c_try_run ()
1770{
1771  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772  if { { ac_try="$ac_link"
1773case "(($ac_try" in
1774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775  *) ac_try_echo=$ac_try;;
1776esac
1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778$as_echo "$ac_try_echo"; } >&5
1779  (eval "$ac_link") 2>&5
1780  ac_status=$?
1781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1783  { { case "(($ac_try" in
1784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785  *) ac_try_echo=$ac_try;;
1786esac
1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788$as_echo "$ac_try_echo"; } >&5
1789  (eval "$ac_try") 2>&5
1790  ac_status=$?
1791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792  test $ac_status = 0; }; }; then :
1793  ac_retval=0
1794else
1795  $as_echo "$as_me: program exited with status $ac_status" >&5
1796       $as_echo "$as_me: failed program was:" >&5
1797sed 's/^/| /' conftest.$ac_ext >&5
1798
1799       ac_retval=$ac_status
1800fi
1801  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803  as_fn_set_status $ac_retval
1804
1805} # ac_fn_c_try_run
1806
1807# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1808# -------------------------------------------------------
1809# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1810# the include files in INCLUDES and setting the cache variable VAR
1811# accordingly.
1812ac_fn_c_check_header_mongrel ()
1813{
1814  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815  if eval \${$3+:} false; then :
1816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817$as_echo_n "checking for $2... " >&6; }
1818if eval \${$3+:} false; then :
1819  $as_echo_n "(cached) " >&6
1820fi
1821eval ac_res=\$$3
1822	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823$as_echo "$ac_res" >&6; }
1824else
1825  # Is the header compilable?
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1827$as_echo_n "checking $2 usability... " >&6; }
1828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h.  */
1830$4
1831#include <$2>
1832_ACEOF
1833if ac_fn_c_try_compile "$LINENO"; then :
1834  ac_header_compiler=yes
1835else
1836  ac_header_compiler=no
1837fi
1838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1840$as_echo "$ac_header_compiler" >&6; }
1841
1842# Is the header present?
1843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1844$as_echo_n "checking $2 presence... " >&6; }
1845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846/* end confdefs.h.  */
1847#include <$2>
1848_ACEOF
1849if ac_fn_c_try_cpp "$LINENO"; then :
1850  ac_header_preproc=yes
1851else
1852  ac_header_preproc=no
1853fi
1854rm -f conftest.err conftest.i conftest.$ac_ext
1855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1856$as_echo "$ac_header_preproc" >&6; }
1857
1858# So?  What about this header?
1859case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1860  yes:no: )
1861    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1862$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1863    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865    ;;
1866  no:yes:* )
1867    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1868$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1869    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1870$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1871    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1872$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1873    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1874$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1875    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1876$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1877    ;;
1878esac
1879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880$as_echo_n "checking for $2... " >&6; }
1881if eval \${$3+:} false; then :
1882  $as_echo_n "(cached) " >&6
1883else
1884  eval "$3=\$ac_header_compiler"
1885fi
1886eval ac_res=\$$3
1887	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888$as_echo "$ac_res" >&6; }
1889fi
1890  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891
1892} # ac_fn_c_check_header_mongrel
1893
1894# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1895# -------------------------------------------------------
1896# Tests whether HEADER exists and can be compiled using the include files in
1897# INCLUDES, setting the cache variable VAR accordingly.
1898ac_fn_c_check_header_compile ()
1899{
1900  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902$as_echo_n "checking for $2... " >&6; }
1903if eval \${$3+:} false; then :
1904  $as_echo_n "(cached) " >&6
1905else
1906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907/* end confdefs.h.  */
1908$4
1909#include <$2>
1910_ACEOF
1911if ac_fn_c_try_compile "$LINENO"; then :
1912  eval "$3=yes"
1913else
1914  eval "$3=no"
1915fi
1916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917fi
1918eval ac_res=\$$3
1919	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920$as_echo "$ac_res" >&6; }
1921  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922
1923} # ac_fn_c_check_header_compile
1924
1925# ac_fn_c_check_func LINENO FUNC VAR
1926# ----------------------------------
1927# Tests whether FUNC exists, setting the cache variable VAR accordingly
1928ac_fn_c_check_func ()
1929{
1930  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932$as_echo_n "checking for $2... " >&6; }
1933if eval \${$3+:} false; then :
1934  $as_echo_n "(cached) " >&6
1935else
1936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937/* end confdefs.h.  */
1938/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1939   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1940#define $2 innocuous_$2
1941
1942/* System header to define __stub macros and hopefully few prototypes,
1943    which can conflict with char $2 (); below.
1944    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1945    <limits.h> exists even on freestanding compilers.  */
1946
1947#ifdef __STDC__
1948# include <limits.h>
1949#else
1950# include <assert.h>
1951#endif
1952
1953#undef $2
1954
1955/* Override any GCC internal prototype to avoid an error.
1956   Use char because int might match the return type of a GCC
1957   builtin and then its argument prototype would still apply.  */
1958#ifdef __cplusplus
1959extern "C"
1960#endif
1961char $2 ();
1962/* The GNU C library defines this for functions which it implements
1963    to always fail with ENOSYS.  Some functions are actually named
1964    something starting with __ and the normal name is an alias.  */
1965#if defined __stub_$2 || defined __stub___$2
1966choke me
1967#endif
1968
1969int
1970main ()
1971{
1972return $2 ();
1973  ;
1974  return 0;
1975}
1976_ACEOF
1977if ac_fn_c_try_link "$LINENO"; then :
1978  eval "$3=yes"
1979else
1980  eval "$3=no"
1981fi
1982rm -f core conftest.err conftest.$ac_objext \
1983    conftest$ac_exeext conftest.$ac_ext
1984fi
1985eval ac_res=\$$3
1986	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987$as_echo "$ac_res" >&6; }
1988  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990} # ac_fn_c_check_func
1991
1992# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1993# -------------------------------------------
1994# Tests whether TYPE exists after having included INCLUDES, setting cache
1995# variable VAR accordingly.
1996ac_fn_c_check_type ()
1997{
1998  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000$as_echo_n "checking for $2... " >&6; }
2001if eval \${$3+:} false; then :
2002  $as_echo_n "(cached) " >&6
2003else
2004  eval "$3=no"
2005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006/* end confdefs.h.  */
2007$4
2008int
2009main ()
2010{
2011if (sizeof ($2))
2012	 return 0;
2013  ;
2014  return 0;
2015}
2016_ACEOF
2017if ac_fn_c_try_compile "$LINENO"; then :
2018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019/* end confdefs.h.  */
2020$4
2021int
2022main ()
2023{
2024if (sizeof (($2)))
2025	    return 0;
2026  ;
2027  return 0;
2028}
2029_ACEOF
2030if ac_fn_c_try_compile "$LINENO"; then :
2031
2032else
2033  eval "$3=yes"
2034fi
2035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036fi
2037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038fi
2039eval ac_res=\$$3
2040	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041$as_echo "$ac_res" >&6; }
2042  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043
2044} # ac_fn_c_check_type
2045
2046# ac_fn_c_find_uintX_t LINENO BITS VAR
2047# ------------------------------------
2048# Finds an unsigned integer type with width BITS, setting cache variable VAR
2049# accordingly.
2050ac_fn_c_find_uintX_t ()
2051{
2052  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2054$as_echo_n "checking for uint$2_t... " >&6; }
2055if eval \${$3+:} false; then :
2056  $as_echo_n "(cached) " >&6
2057else
2058  eval "$3=no"
2059     # Order is important - never check a type that is potentially smaller
2060     # than half of the expected target width.
2061     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2062	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2063       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064/* end confdefs.h.  */
2065$ac_includes_default
2066int
2067main ()
2068{
2069static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2070test_array [0] = 0;
2071return test_array [0];
2072
2073  ;
2074  return 0;
2075}
2076_ACEOF
2077if ac_fn_c_try_compile "$LINENO"; then :
2078  case $ac_type in #(
2079  uint$2_t) :
2080    eval "$3=yes" ;; #(
2081  *) :
2082    eval "$3=\$ac_type" ;;
2083esac
2084fi
2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086       if eval test \"x\$"$3"\" = x"no"; then :
2087
2088else
2089  break
2090fi
2091     done
2092fi
2093eval ac_res=\$$3
2094	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095$as_echo "$ac_res" >&6; }
2096  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097
2098} # ac_fn_c_find_uintX_t
2099
2100# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2101# --------------------------------------------
2102# Tries to find the compile-time value of EXPR in a program that includes
2103# INCLUDES, setting VAR accordingly. Returns whether the value could be
2104# computed
2105ac_fn_c_compute_int ()
2106{
2107  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108  if test "$cross_compiling" = yes; then
2109    # Depending upon the size, compute the lo and hi bounds.
2110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111/* end confdefs.h.  */
2112$4
2113int
2114main ()
2115{
2116static int test_array [1 - 2 * !(($2) >= 0)];
2117test_array [0] = 0;
2118return test_array [0];
2119
2120  ;
2121  return 0;
2122}
2123_ACEOF
2124if ac_fn_c_try_compile "$LINENO"; then :
2125  ac_lo=0 ac_mid=0
2126  while :; do
2127    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128/* end confdefs.h.  */
2129$4
2130int
2131main ()
2132{
2133static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2134test_array [0] = 0;
2135return test_array [0];
2136
2137  ;
2138  return 0;
2139}
2140_ACEOF
2141if ac_fn_c_try_compile "$LINENO"; then :
2142  ac_hi=$ac_mid; break
2143else
2144  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2145			if test $ac_lo -le $ac_mid; then
2146			  ac_lo= ac_hi=
2147			  break
2148			fi
2149			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2150fi
2151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152  done
2153else
2154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155/* end confdefs.h.  */
2156$4
2157int
2158main ()
2159{
2160static int test_array [1 - 2 * !(($2) < 0)];
2161test_array [0] = 0;
2162return test_array [0];
2163
2164  ;
2165  return 0;
2166}
2167_ACEOF
2168if ac_fn_c_try_compile "$LINENO"; then :
2169  ac_hi=-1 ac_mid=-1
2170  while :; do
2171    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172/* end confdefs.h.  */
2173$4
2174int
2175main ()
2176{
2177static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2178test_array [0] = 0;
2179return test_array [0];
2180
2181  ;
2182  return 0;
2183}
2184_ACEOF
2185if ac_fn_c_try_compile "$LINENO"; then :
2186  ac_lo=$ac_mid; break
2187else
2188  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2189			if test $ac_mid -le $ac_hi; then
2190			  ac_lo= ac_hi=
2191			  break
2192			fi
2193			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2194fi
2195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196  done
2197else
2198  ac_lo= ac_hi=
2199fi
2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201fi
2202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203# Binary search between lo and hi bounds.
2204while test "x$ac_lo" != "x$ac_hi"; do
2205  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207/* end confdefs.h.  */
2208$4
2209int
2210main ()
2211{
2212static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2213test_array [0] = 0;
2214return test_array [0];
2215
2216  ;
2217  return 0;
2218}
2219_ACEOF
2220if ac_fn_c_try_compile "$LINENO"; then :
2221  ac_hi=$ac_mid
2222else
2223  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2224fi
2225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226done
2227case $ac_lo in #((
2228?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2229'') ac_retval=1 ;;
2230esac
2231  else
2232    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233/* end confdefs.h.  */
2234$4
2235static long int longval () { return $2; }
2236static unsigned long int ulongval () { return $2; }
2237#include <stdio.h>
2238#include <stdlib.h>
2239int
2240main ()
2241{
2242
2243  FILE *f = fopen ("conftest.val", "w");
2244  if (! f)
2245    return 1;
2246  if (($2) < 0)
2247    {
2248      long int i = longval ();
2249      if (i != ($2))
2250	return 1;
2251      fprintf (f, "%ld", i);
2252    }
2253  else
2254    {
2255      unsigned long int i = ulongval ();
2256      if (i != ($2))
2257	return 1;
2258      fprintf (f, "%lu", i);
2259    }
2260  /* Do not output a trailing newline, as this causes \r\n confusion
2261     on some platforms.  */
2262  return ferror (f) || fclose (f) != 0;
2263
2264  ;
2265  return 0;
2266}
2267_ACEOF
2268if ac_fn_c_try_run "$LINENO"; then :
2269  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2270else
2271  ac_retval=1
2272fi
2273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2274  conftest.$ac_objext conftest.beam conftest.$ac_ext
2275rm -f conftest.val
2276
2277  fi
2278  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2279  as_fn_set_status $ac_retval
2280
2281} # ac_fn_c_compute_int
2282cat >auto/config.log <<_ACEOF
2283This file contains any messages produced by compilers while
2284running configure, to aid debugging if configure makes a mistake.
2285
2286It was created by $as_me, which was
2287generated by GNU Autoconf 2.69.  Invocation command line was
2288
2289  $ $0 $@
2290
2291_ACEOF
2292exec 5>>auto/config.log
2293{
2294cat <<_ASUNAME
2295## --------- ##
2296## Platform. ##
2297## --------- ##
2298
2299hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2300uname -m = `(uname -m) 2>/dev/null || echo unknown`
2301uname -r = `(uname -r) 2>/dev/null || echo unknown`
2302uname -s = `(uname -s) 2>/dev/null || echo unknown`
2303uname -v = `(uname -v) 2>/dev/null || echo unknown`
2304
2305/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2306/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2307
2308/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2309/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2310/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2311/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2312/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2313/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2314/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2315
2316_ASUNAME
2317
2318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319for as_dir in $PATH
2320do
2321  IFS=$as_save_IFS
2322  test -z "$as_dir" && as_dir=.
2323    $as_echo "PATH: $as_dir"
2324  done
2325IFS=$as_save_IFS
2326
2327} >&5
2328
2329cat >&5 <<_ACEOF
2330
2331
2332## ----------- ##
2333## Core tests. ##
2334## ----------- ##
2335
2336_ACEOF
2337
2338
2339# Keep a trace of the command line.
2340# Strip out --no-create and --no-recursion so they do not pile up.
2341# Strip out --silent because we don't want to record it for future runs.
2342# Also quote any args containing shell meta-characters.
2343# Make two passes to allow for proper duplicate-argument suppression.
2344ac_configure_args=
2345ac_configure_args0=
2346ac_configure_args1=
2347ac_must_keep_next=false
2348for ac_pass in 1 2
2349do
2350  for ac_arg
2351  do
2352    case $ac_arg in
2353    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2354    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2355    | -silent | --silent | --silen | --sile | --sil)
2356      continue ;;
2357    *\'*)
2358      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2359    esac
2360    case $ac_pass in
2361    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2362    2)
2363      as_fn_append ac_configure_args1 " '$ac_arg'"
2364      if test $ac_must_keep_next = true; then
2365	ac_must_keep_next=false # Got value, back to normal.
2366      else
2367	case $ac_arg in
2368	  *=* | --config-cache | -C | -disable-* | --disable-* \
2369	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2370	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2371	  | -with-* | --with-* | -without-* | --without-* | --x)
2372	    case "$ac_configure_args0 " in
2373	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2374	    esac
2375	    ;;
2376	  -* ) ac_must_keep_next=true ;;
2377	esac
2378      fi
2379      as_fn_append ac_configure_args " '$ac_arg'"
2380      ;;
2381    esac
2382  done
2383done
2384{ ac_configure_args0=; unset ac_configure_args0;}
2385{ ac_configure_args1=; unset ac_configure_args1;}
2386
2387# When interrupted or exit'd, cleanup temporary files, and complete
2388# config.log.  We remove comments because anyway the quotes in there
2389# would cause problems or look ugly.
2390# WARNING: Use '\'' to represent an apostrophe within the trap.
2391# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2392trap 'exit_status=$?
2393  # Save into config.log some information that might help in debugging.
2394  {
2395    echo
2396
2397    $as_echo "## ---------------- ##
2398## Cache variables. ##
2399## ---------------- ##"
2400    echo
2401    # The following way of writing the cache mishandles newlines in values,
2402(
2403  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2404    eval ac_val=\$$ac_var
2405    case $ac_val in #(
2406    *${as_nl}*)
2407      case $ac_var in #(
2408      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2409$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2410      esac
2411      case $ac_var in #(
2412      _ | IFS | as_nl) ;; #(
2413      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2414      *) { eval $ac_var=; unset $ac_var;} ;;
2415      esac ;;
2416    esac
2417  done
2418  (set) 2>&1 |
2419    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2420    *${as_nl}ac_space=\ *)
2421      sed -n \
2422	"s/'\''/'\''\\\\'\'''\''/g;
2423	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2424      ;; #(
2425    *)
2426      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2427      ;;
2428    esac |
2429    sort
2430)
2431    echo
2432
2433    $as_echo "## ----------------- ##
2434## Output variables. ##
2435## ----------------- ##"
2436    echo
2437    for ac_var in $ac_subst_vars
2438    do
2439      eval ac_val=\$$ac_var
2440      case $ac_val in
2441      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2442      esac
2443      $as_echo "$ac_var='\''$ac_val'\''"
2444    done | sort
2445    echo
2446
2447    if test -n "$ac_subst_files"; then
2448      $as_echo "## ------------------- ##
2449## File substitutions. ##
2450## ------------------- ##"
2451      echo
2452      for ac_var in $ac_subst_files
2453      do
2454	eval ac_val=\$$ac_var
2455	case $ac_val in
2456	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457	esac
2458	$as_echo "$ac_var='\''$ac_val'\''"
2459      done | sort
2460      echo
2461    fi
2462
2463    if test -s confdefs.h; then
2464      $as_echo "## ----------- ##
2465## confdefs.h. ##
2466## ----------- ##"
2467      echo
2468      cat confdefs.h
2469      echo
2470    fi
2471    test "$ac_signal" != 0 &&
2472      $as_echo "$as_me: caught signal $ac_signal"
2473    $as_echo "$as_me: exit $exit_status"
2474  } >&5
2475  rm -f core *.core core.conftest.* &&
2476    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2477    exit $exit_status
2478' 0
2479for ac_signal in 1 2 13 15; do
2480  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2481done
2482ac_signal=0
2483
2484# confdefs.h avoids OS command line length limits that DEFS can exceed.
2485rm -f -r conftest* confdefs.h
2486
2487$as_echo "/* confdefs.h */" > confdefs.h
2488
2489# Predefined preprocessor variables.
2490
2491cat >>confdefs.h <<_ACEOF
2492#define PACKAGE_NAME "$PACKAGE_NAME"
2493_ACEOF
2494
2495cat >>confdefs.h <<_ACEOF
2496#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2497_ACEOF
2498
2499cat >>confdefs.h <<_ACEOF
2500#define PACKAGE_VERSION "$PACKAGE_VERSION"
2501_ACEOF
2502
2503cat >>confdefs.h <<_ACEOF
2504#define PACKAGE_STRING "$PACKAGE_STRING"
2505_ACEOF
2506
2507cat >>confdefs.h <<_ACEOF
2508#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2509_ACEOF
2510
2511cat >>confdefs.h <<_ACEOF
2512#define PACKAGE_URL "$PACKAGE_URL"
2513_ACEOF
2514
2515
2516# Let the site file select an alternate cache file if it wants to.
2517# Prefer an explicitly selected file to automatically selected ones.
2518ac_site_file1=NONE
2519ac_site_file2=NONE
2520if test -n "$CONFIG_SITE"; then
2521  # We do not want a PATH search for config.site.
2522  case $CONFIG_SITE in #((
2523    -*)  ac_site_file1=./$CONFIG_SITE;;
2524    */*) ac_site_file1=$CONFIG_SITE;;
2525    *)   ac_site_file1=./$CONFIG_SITE;;
2526  esac
2527elif test "x$prefix" != xNONE; then
2528  ac_site_file1=$prefix/share/config.site
2529  ac_site_file2=$prefix/etc/config.site
2530else
2531  ac_site_file1=$ac_default_prefix/share/config.site
2532  ac_site_file2=$ac_default_prefix/etc/config.site
2533fi
2534for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2535do
2536  test "x$ac_site_file" = xNONE && continue
2537  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2538    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2539$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2540    sed 's/^/| /' "$ac_site_file" >&5
2541    . "$ac_site_file" \
2542      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2544as_fn_error $? "failed to load site script $ac_site_file
2545See \`config.log' for more details" "$LINENO" 5; }
2546  fi
2547done
2548
2549if test -r "$cache_file"; then
2550  # Some versions of bash will fail to source /dev/null (special files
2551  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2552  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2553    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2554$as_echo "$as_me: loading cache $cache_file" >&6;}
2555    case $cache_file in
2556      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2557      *)                      . "./$cache_file";;
2558    esac
2559  fi
2560else
2561  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2562$as_echo "$as_me: creating cache $cache_file" >&6;}
2563  >$cache_file
2564fi
2565
2566# Check that the precious variables saved in the cache have kept the same
2567# value.
2568ac_cache_corrupted=false
2569for ac_var in $ac_precious_vars; do
2570  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2571  eval ac_new_set=\$ac_env_${ac_var}_set
2572  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2573  eval ac_new_val=\$ac_env_${ac_var}_value
2574  case $ac_old_set,$ac_new_set in
2575    set,)
2576      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2577$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2578      ac_cache_corrupted=: ;;
2579    ,set)
2580      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2581$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2582      ac_cache_corrupted=: ;;
2583    ,);;
2584    *)
2585      if test "x$ac_old_val" != "x$ac_new_val"; then
2586	# differences in whitespace do not lead to failure.
2587	ac_old_val_w=`echo x $ac_old_val`
2588	ac_new_val_w=`echo x $ac_new_val`
2589	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2590	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2591$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2592	  ac_cache_corrupted=:
2593	else
2594	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2595$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2596	  eval $ac_var=\$ac_old_val
2597	fi
2598	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2599$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2600	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2601$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2602      fi;;
2603  esac
2604  # Pass precious variables to config.status.
2605  if test "$ac_new_set" = set; then
2606    case $ac_new_val in
2607    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2608    *) ac_arg=$ac_var=$ac_new_val ;;
2609    esac
2610    case " $ac_configure_args " in
2611      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2612      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2613    esac
2614  fi
2615done
2616if $ac_cache_corrupted; then
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2620$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2621  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2622fi
2623## -------------------- ##
2624## Main body of script. ##
2625## -------------------- ##
2626
2627ac_ext=c
2628ac_cpp='$CPP $CPPFLAGS'
2629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631ac_compiler_gnu=$ac_cv_c_compiler_gnu
2632
2633
2634ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
2635
2636
2637$as_echo "#define UNIX 1" >>confdefs.h
2638
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2640$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2641set x ${MAKE-make}
2642ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2643if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2644  $as_echo_n "(cached) " >&6
2645else
2646  cat >conftest.make <<\_ACEOF
2647SHELL = /bin/sh
2648all:
2649	@echo '@@@%%%=$(MAKE)=@@@%%%'
2650_ACEOF
2651# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2652case `${MAKE-make} -f conftest.make 2>/dev/null` in
2653  *@@@%%%=?*=@@@%%%*)
2654    eval ac_cv_prog_make_${ac_make}_set=yes;;
2655  *)
2656    eval ac_cv_prog_make_${ac_make}_set=no;;
2657esac
2658rm -f conftest.make
2659fi
2660if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2662$as_echo "yes" >&6; }
2663  SET_MAKE=
2664else
2665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2666$as_echo "no" >&6; }
2667  SET_MAKE="MAKE=${MAKE-make}"
2668fi
2669
2670
2671ac_ext=c
2672ac_cpp='$CPP $CPPFLAGS'
2673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676if test -n "$ac_tool_prefix"; then
2677  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2678set dummy ${ac_tool_prefix}gcc; ac_word=$2
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680$as_echo_n "checking for $ac_word... " >&6; }
2681if ${ac_cv_prog_CC+:} false; then :
2682  $as_echo_n "(cached) " >&6
2683else
2684  if test -n "$CC"; then
2685  ac_cv_prog_CC="$CC" # Let the user override the test.
2686else
2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688for as_dir in $PATH
2689do
2690  IFS=$as_save_IFS
2691  test -z "$as_dir" && as_dir=.
2692    for ac_exec_ext in '' $ac_executable_extensions; do
2693  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696    break 2
2697  fi
2698done
2699  done
2700IFS=$as_save_IFS
2701
2702fi
2703fi
2704CC=$ac_cv_prog_CC
2705if test -n "$CC"; then
2706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2707$as_echo "$CC" >&6; }
2708else
2709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710$as_echo "no" >&6; }
2711fi
2712
2713
2714fi
2715if test -z "$ac_cv_prog_CC"; then
2716  ac_ct_CC=$CC
2717  # Extract the first word of "gcc", so it can be a program name with args.
2718set dummy gcc; ac_word=$2
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720$as_echo_n "checking for $ac_word... " >&6; }
2721if ${ac_cv_prog_ac_ct_CC+:} false; then :
2722  $as_echo_n "(cached) " >&6
2723else
2724  if test -n "$ac_ct_CC"; then
2725  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730  IFS=$as_save_IFS
2731  test -z "$as_dir" && as_dir=.
2732    for ac_exec_ext in '' $ac_executable_extensions; do
2733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734    ac_cv_prog_ac_ct_CC="gcc"
2735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736    break 2
2737  fi
2738done
2739  done
2740IFS=$as_save_IFS
2741
2742fi
2743fi
2744ac_ct_CC=$ac_cv_prog_ac_ct_CC
2745if test -n "$ac_ct_CC"; then
2746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2747$as_echo "$ac_ct_CC" >&6; }
2748else
2749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750$as_echo "no" >&6; }
2751fi
2752
2753  if test "x$ac_ct_CC" = x; then
2754    CC=""
2755  else
2756    case $cross_compiling:$ac_tool_warned in
2757yes:)
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2760ac_tool_warned=yes ;;
2761esac
2762    CC=$ac_ct_CC
2763  fi
2764else
2765  CC="$ac_cv_prog_CC"
2766fi
2767
2768if test -z "$CC"; then
2769          if test -n "$ac_tool_prefix"; then
2770    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2771set dummy ${ac_tool_prefix}cc; ac_word=$2
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773$as_echo_n "checking for $ac_word... " >&6; }
2774if ${ac_cv_prog_CC+:} false; then :
2775  $as_echo_n "(cached) " >&6
2776else
2777  if test -n "$CC"; then
2778  ac_cv_prog_CC="$CC" # Let the user override the test.
2779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783  IFS=$as_save_IFS
2784  test -z "$as_dir" && as_dir=.
2785    for ac_exec_ext in '' $ac_executable_extensions; do
2786  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787    ac_cv_prog_CC="${ac_tool_prefix}cc"
2788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789    break 2
2790  fi
2791done
2792  done
2793IFS=$as_save_IFS
2794
2795fi
2796fi
2797CC=$ac_cv_prog_CC
2798if test -n "$CC"; then
2799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2800$as_echo "$CC" >&6; }
2801else
2802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803$as_echo "no" >&6; }
2804fi
2805
2806
2807  fi
2808fi
2809if test -z "$CC"; then
2810  # Extract the first word of "cc", so it can be a program name with args.
2811set dummy cc; ac_word=$2
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813$as_echo_n "checking for $ac_word... " >&6; }
2814if ${ac_cv_prog_CC+:} false; then :
2815  $as_echo_n "(cached) " >&6
2816else
2817  if test -n "$CC"; then
2818  ac_cv_prog_CC="$CC" # Let the user override the test.
2819else
2820  ac_prog_rejected=no
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824  IFS=$as_save_IFS
2825  test -z "$as_dir" && as_dir=.
2826    for ac_exec_ext in '' $ac_executable_extensions; do
2827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2829       ac_prog_rejected=yes
2830       continue
2831     fi
2832    ac_cv_prog_CC="cc"
2833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834    break 2
2835  fi
2836done
2837  done
2838IFS=$as_save_IFS
2839
2840if test $ac_prog_rejected = yes; then
2841  # We found a bogon in the path, so make sure we never use it.
2842  set dummy $ac_cv_prog_CC
2843  shift
2844  if test $# != 0; then
2845    # We chose a different compiler from the bogus one.
2846    # However, it has the same basename, so the bogon will be chosen
2847    # first if we set CC to just the basename; use the full file name.
2848    shift
2849    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2850  fi
2851fi
2852fi
2853fi
2854CC=$ac_cv_prog_CC
2855if test -n "$CC"; then
2856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2857$as_echo "$CC" >&6; }
2858else
2859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860$as_echo "no" >&6; }
2861fi
2862
2863
2864fi
2865if test -z "$CC"; then
2866  if test -n "$ac_tool_prefix"; then
2867  for ac_prog in cl.exe
2868  do
2869    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2870set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872$as_echo_n "checking for $ac_word... " >&6; }
2873if ${ac_cv_prog_CC+:} false; then :
2874  $as_echo_n "(cached) " >&6
2875else
2876  if test -n "$CC"; then
2877  ac_cv_prog_CC="$CC" # Let the user override the test.
2878else
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882  IFS=$as_save_IFS
2883  test -z "$as_dir" && as_dir=.
2884    for ac_exec_ext in '' $ac_executable_extensions; do
2885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888    break 2
2889  fi
2890done
2891  done
2892IFS=$as_save_IFS
2893
2894fi
2895fi
2896CC=$ac_cv_prog_CC
2897if test -n "$CC"; then
2898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899$as_echo "$CC" >&6; }
2900else
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902$as_echo "no" >&6; }
2903fi
2904
2905
2906    test -n "$CC" && break
2907  done
2908fi
2909if test -z "$CC"; then
2910  ac_ct_CC=$CC
2911  for ac_prog in cl.exe
2912do
2913  # Extract the first word of "$ac_prog", so it can be a program name with args.
2914set dummy $ac_prog; ac_word=$2
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916$as_echo_n "checking for $ac_word... " >&6; }
2917if ${ac_cv_prog_ac_ct_CC+:} false; then :
2918  $as_echo_n "(cached) " >&6
2919else
2920  if test -n "$ac_ct_CC"; then
2921  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2922else
2923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924for as_dir in $PATH
2925do
2926  IFS=$as_save_IFS
2927  test -z "$as_dir" && as_dir=.
2928    for ac_exec_ext in '' $ac_executable_extensions; do
2929  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930    ac_cv_prog_ac_ct_CC="$ac_prog"
2931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932    break 2
2933  fi
2934done
2935  done
2936IFS=$as_save_IFS
2937
2938fi
2939fi
2940ac_ct_CC=$ac_cv_prog_ac_ct_CC
2941if test -n "$ac_ct_CC"; then
2942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2943$as_echo "$ac_ct_CC" >&6; }
2944else
2945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946$as_echo "no" >&6; }
2947fi
2948
2949
2950  test -n "$ac_ct_CC" && break
2951done
2952
2953  if test "x$ac_ct_CC" = x; then
2954    CC=""
2955  else
2956    case $cross_compiling:$ac_tool_warned in
2957yes:)
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2960ac_tool_warned=yes ;;
2961esac
2962    CC=$ac_ct_CC
2963  fi
2964fi
2965
2966fi
2967
2968
2969test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2971as_fn_error $? "no acceptable C compiler found in \$PATH
2972See \`config.log' for more details" "$LINENO" 5; }
2973
2974# Provide some information about the compiler.
2975$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2976set X $ac_compile
2977ac_compiler=$2
2978for ac_option in --version -v -V -qversion; do
2979  { { ac_try="$ac_compiler $ac_option >&5"
2980case "(($ac_try" in
2981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982  *) ac_try_echo=$ac_try;;
2983esac
2984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2985$as_echo "$ac_try_echo"; } >&5
2986  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2987  ac_status=$?
2988  if test -s conftest.err; then
2989    sed '10a\
2990... rest of stderr output deleted ...
2991         10q' conftest.err >conftest.er1
2992    cat conftest.er1 >&5
2993  fi
2994  rm -f conftest.er1 conftest.err
2995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2996  test $ac_status = 0; }
2997done
2998
2999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000/* end confdefs.h.  */
3001
3002int
3003main ()
3004{
3005
3006  ;
3007  return 0;
3008}
3009_ACEOF
3010ac_clean_files_save=$ac_clean_files
3011ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3012# Try to create an executable without -o first, disregard a.out.
3013# It will help us diagnose broken compilers, and finding out an intuition
3014# of exeext.
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3016$as_echo_n "checking whether the C compiler works... " >&6; }
3017ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3018
3019# The possible output files:
3020ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3021
3022ac_rmfiles=
3023for ac_file in $ac_files
3024do
3025  case $ac_file in
3026    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3027    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3028  esac
3029done
3030rm -f $ac_rmfiles
3031
3032if { { ac_try="$ac_link_default"
3033case "(($ac_try" in
3034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035  *) ac_try_echo=$ac_try;;
3036esac
3037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3038$as_echo "$ac_try_echo"; } >&5
3039  (eval "$ac_link_default") 2>&5
3040  ac_status=$?
3041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3042  test $ac_status = 0; }; then :
3043  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3044# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3045# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3046# so that the user can short-circuit this test for compilers unknown to
3047# Autoconf.
3048for ac_file in $ac_files ''
3049do
3050  test -f "$ac_file" || continue
3051  case $ac_file in
3052    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3053	;;
3054    [ab].out )
3055	# We found the default executable, but exeext='' is most
3056	# certainly right.
3057	break;;
3058    *.* )
3059	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3060	then :; else
3061	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3062	fi
3063	# We set ac_cv_exeext here because the later test for it is not
3064	# safe: cross compilers may not add the suffix if given an `-o'
3065	# argument, so we may need to know it at that point already.
3066	# Even if this section looks crufty: it has the advantage of
3067	# actually working.
3068	break;;
3069    * )
3070	break;;
3071  esac
3072done
3073test "$ac_cv_exeext" = no && ac_cv_exeext=
3074
3075else
3076  ac_file=''
3077fi
3078if test -z "$ac_file"; then :
3079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080$as_echo "no" >&6; }
3081$as_echo "$as_me: failed program was:" >&5
3082sed 's/^/| /' conftest.$ac_ext >&5
3083
3084{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086as_fn_error 77 "C compiler cannot create executables
3087See \`config.log' for more details" "$LINENO" 5; }
3088else
3089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3090$as_echo "yes" >&6; }
3091fi
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3093$as_echo_n "checking for C compiler default output file name... " >&6; }
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3095$as_echo "$ac_file" >&6; }
3096ac_exeext=$ac_cv_exeext
3097
3098rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3099ac_clean_files=$ac_clean_files_save
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3101$as_echo_n "checking for suffix of executables... " >&6; }
3102if { { ac_try="$ac_link"
3103case "(($ac_try" in
3104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105  *) ac_try_echo=$ac_try;;
3106esac
3107eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3108$as_echo "$ac_try_echo"; } >&5
3109  (eval "$ac_link") 2>&5
3110  ac_status=$?
3111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3112  test $ac_status = 0; }; then :
3113  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3114# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3115# work properly (i.e., refer to `conftest.exe'), while it won't with
3116# `rm'.
3117for ac_file in conftest.exe conftest conftest.*; do
3118  test -f "$ac_file" || continue
3119  case $ac_file in
3120    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3121    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122	  break;;
3123    * ) break;;
3124  esac
3125done
3126else
3127  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3130See \`config.log' for more details" "$LINENO" 5; }
3131fi
3132rm -f conftest conftest$ac_cv_exeext
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3134$as_echo "$ac_cv_exeext" >&6; }
3135
3136rm -f conftest.$ac_ext
3137EXEEXT=$ac_cv_exeext
3138ac_exeext=$EXEEXT
3139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3140/* end confdefs.h.  */
3141#include <stdio.h>
3142int
3143main ()
3144{
3145FILE *f = fopen ("conftest.out", "w");
3146 return ferror (f) || fclose (f) != 0;
3147
3148  ;
3149  return 0;
3150}
3151_ACEOF
3152ac_clean_files="$ac_clean_files conftest.out"
3153# Check that the compiler produces executables we can run.  If not, either
3154# the compiler is broken, or we cross compile.
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3156$as_echo_n "checking whether we are cross compiling... " >&6; }
3157if test "$cross_compiling" != yes; then
3158  { { ac_try="$ac_link"
3159case "(($ac_try" in
3160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161  *) ac_try_echo=$ac_try;;
3162esac
3163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164$as_echo "$ac_try_echo"; } >&5
3165  (eval "$ac_link") 2>&5
3166  ac_status=$?
3167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168  test $ac_status = 0; }
3169  if { ac_try='./conftest$ac_cv_exeext'
3170  { { case "(($ac_try" in
3171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172  *) ac_try_echo=$ac_try;;
3173esac
3174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175$as_echo "$ac_try_echo"; } >&5
3176  (eval "$ac_try") 2>&5
3177  ac_status=$?
3178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179  test $ac_status = 0; }; }; then
3180    cross_compiling=no
3181  else
3182    if test "$cross_compiling" = maybe; then
3183	cross_compiling=yes
3184    else
3185	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187as_fn_error $? "cannot run C compiled programs.
3188If you meant to cross compile, use \`--host'.
3189See \`config.log' for more details" "$LINENO" 5; }
3190    fi
3191  fi
3192fi
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3194$as_echo "$cross_compiling" >&6; }
3195
3196rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3197ac_clean_files=$ac_clean_files_save
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3199$as_echo_n "checking for suffix of object files... " >&6; }
3200if ${ac_cv_objext+:} false; then :
3201  $as_echo_n "(cached) " >&6
3202else
3203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204/* end confdefs.h.  */
3205
3206int
3207main ()
3208{
3209
3210  ;
3211  return 0;
3212}
3213_ACEOF
3214rm -f conftest.o conftest.obj
3215if { { ac_try="$ac_compile"
3216case "(($ac_try" in
3217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218  *) ac_try_echo=$ac_try;;
3219esac
3220eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3221$as_echo "$ac_try_echo"; } >&5
3222  (eval "$ac_compile") 2>&5
3223  ac_status=$?
3224  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225  test $ac_status = 0; }; then :
3226  for ac_file in conftest.o conftest.obj conftest.*; do
3227  test -f "$ac_file" || continue;
3228  case $ac_file in
3229    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3230    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3231       break;;
3232  esac
3233done
3234else
3235  $as_echo "$as_me: failed program was:" >&5
3236sed 's/^/| /' conftest.$ac_ext >&5
3237
3238{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3240as_fn_error $? "cannot compute suffix of object files: cannot compile
3241See \`config.log' for more details" "$LINENO" 5; }
3242fi
3243rm -f conftest.$ac_cv_objext conftest.$ac_ext
3244fi
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3246$as_echo "$ac_cv_objext" >&6; }
3247OBJEXT=$ac_cv_objext
3248ac_objext=$OBJEXT
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3250$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3251if ${ac_cv_c_compiler_gnu+:} false; then :
3252  $as_echo_n "(cached) " >&6
3253else
3254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255/* end confdefs.h.  */
3256
3257int
3258main ()
3259{
3260#ifndef __GNUC__
3261       choke me
3262#endif
3263
3264  ;
3265  return 0;
3266}
3267_ACEOF
3268if ac_fn_c_try_compile "$LINENO"; then :
3269  ac_compiler_gnu=yes
3270else
3271  ac_compiler_gnu=no
3272fi
3273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274ac_cv_c_compiler_gnu=$ac_compiler_gnu
3275
3276fi
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3278$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3279if test $ac_compiler_gnu = yes; then
3280  GCC=yes
3281else
3282  GCC=
3283fi
3284ac_test_CFLAGS=${CFLAGS+set}
3285ac_save_CFLAGS=$CFLAGS
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3287$as_echo_n "checking whether $CC accepts -g... " >&6; }
3288if ${ac_cv_prog_cc_g+:} false; then :
3289  $as_echo_n "(cached) " >&6
3290else
3291  ac_save_c_werror_flag=$ac_c_werror_flag
3292   ac_c_werror_flag=yes
3293   ac_cv_prog_cc_g=no
3294   CFLAGS="-g"
3295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296/* end confdefs.h.  */
3297
3298int
3299main ()
3300{
3301
3302  ;
3303  return 0;
3304}
3305_ACEOF
3306if ac_fn_c_try_compile "$LINENO"; then :
3307  ac_cv_prog_cc_g=yes
3308else
3309  CFLAGS=""
3310      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311/* end confdefs.h.  */
3312
3313int
3314main ()
3315{
3316
3317  ;
3318  return 0;
3319}
3320_ACEOF
3321if ac_fn_c_try_compile "$LINENO"; then :
3322
3323else
3324  ac_c_werror_flag=$ac_save_c_werror_flag
3325	 CFLAGS="-g"
3326	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327/* end confdefs.h.  */
3328
3329int
3330main ()
3331{
3332
3333  ;
3334  return 0;
3335}
3336_ACEOF
3337if ac_fn_c_try_compile "$LINENO"; then :
3338  ac_cv_prog_cc_g=yes
3339fi
3340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341fi
3342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343fi
3344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345   ac_c_werror_flag=$ac_save_c_werror_flag
3346fi
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3348$as_echo "$ac_cv_prog_cc_g" >&6; }
3349if test "$ac_test_CFLAGS" = set; then
3350  CFLAGS=$ac_save_CFLAGS
3351elif test $ac_cv_prog_cc_g = yes; then
3352  if test "$GCC" = yes; then
3353    CFLAGS="-g -O2"
3354  else
3355    CFLAGS="-g"
3356  fi
3357else
3358  if test "$GCC" = yes; then
3359    CFLAGS="-O2"
3360  else
3361    CFLAGS=
3362  fi
3363fi
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3365$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3366if ${ac_cv_prog_cc_c89+:} false; then :
3367  $as_echo_n "(cached) " >&6
3368else
3369  ac_cv_prog_cc_c89=no
3370ac_save_CC=$CC
3371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372/* end confdefs.h.  */
3373#include <stdarg.h>
3374#include <stdio.h>
3375struct stat;
3376/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3377struct buf { int x; };
3378FILE * (*rcsopen) (struct buf *, struct stat *, int);
3379static char *e (p, i)
3380     char **p;
3381     int i;
3382{
3383  return p[i];
3384}
3385static char *f (char * (*g) (char **, int), char **p, ...)
3386{
3387  char *s;
3388  va_list v;
3389  va_start (v,p);
3390  s = g (p, va_arg (v,int));
3391  va_end (v);
3392  return s;
3393}
3394
3395/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3396   function prototypes and stuff, but not '\xHH' hex character constants.
3397   These don't provoke an error unfortunately, instead are silently treated
3398   as 'x'.  The following induces an error, until -std is added to get
3399   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3400   array size at least.  It's necessary to write '\x00'==0 to get something
3401   that's true only with -std.  */
3402int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3403
3404/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3405   inside strings and character constants.  */
3406#define FOO(x) 'x'
3407int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3408
3409int test (int i, double x);
3410struct s1 {int (*f) (int a);};
3411struct s2 {int (*f) (double a);};
3412int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3413int argc;
3414char **argv;
3415int
3416main ()
3417{
3418return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3419  ;
3420  return 0;
3421}
3422_ACEOF
3423for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3424	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3425do
3426  CC="$ac_save_CC $ac_arg"
3427  if ac_fn_c_try_compile "$LINENO"; then :
3428  ac_cv_prog_cc_c89=$ac_arg
3429fi
3430rm -f core conftest.err conftest.$ac_objext
3431  test "x$ac_cv_prog_cc_c89" != "xno" && break
3432done
3433rm -f conftest.$ac_ext
3434CC=$ac_save_CC
3435
3436fi
3437# AC_CACHE_VAL
3438case "x$ac_cv_prog_cc_c89" in
3439  x)
3440    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3441$as_echo "none needed" >&6; } ;;
3442  xno)
3443    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3444$as_echo "unsupported" >&6; } ;;
3445  *)
3446    CC="$CC $ac_cv_prog_cc_c89"
3447    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3448$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3449esac
3450if test "x$ac_cv_prog_cc_c89" != xno; then :
3451
3452fi
3453
3454ac_ext=c
3455ac_cpp='$CPP $CPPFLAGS'
3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
3460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3461$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3462if ${ac_cv_prog_cc_c99+:} false; then :
3463  $as_echo_n "(cached) " >&6
3464else
3465  ac_cv_prog_cc_c99=no
3466ac_save_CC=$CC
3467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468/* end confdefs.h.  */
3469#include <stdarg.h>
3470#include <stdbool.h>
3471#include <stdlib.h>
3472#include <wchar.h>
3473#include <stdio.h>
3474
3475// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3476#define debug(...) fprintf (stderr, __VA_ARGS__)
3477#define showlist(...) puts (#__VA_ARGS__)
3478#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3479static void
3480test_varargs_macros (void)
3481{
3482  int x = 1234;
3483  int y = 5678;
3484  debug ("Flag");
3485  debug ("X = %d\n", x);
3486  showlist (The first, second, and third items.);
3487  report (x>y, "x is %d but y is %d", x, y);
3488}
3489
3490// Check long long types.
3491#define BIG64 18446744073709551615ull
3492#define BIG32 4294967295ul
3493#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3494#if !BIG_OK
3495  your preprocessor is broken;
3496#endif
3497#if BIG_OK
3498#else
3499  your preprocessor is broken;
3500#endif
3501static long long int bignum = -9223372036854775807LL;
3502static unsigned long long int ubignum = BIG64;
3503
3504struct incomplete_array
3505{
3506  int datasize;
3507  double data[];
3508};
3509
3510struct named_init {
3511  int number;
3512  const wchar_t *name;
3513  double average;
3514};
3515
3516typedef const char *ccp;
3517
3518static inline int
3519test_restrict (ccp restrict text)
3520{
3521  // See if C++-style comments work.
3522  // Iterate through items via the restricted pointer.
3523  // Also check for declarations in for loops.
3524  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3525    continue;
3526  return 0;
3527}
3528
3529// Check varargs and va_copy.
3530static void
3531test_varargs (const char *format, ...)
3532{
3533  va_list args;
3534  va_start (args, format);
3535  va_list args_copy;
3536  va_copy (args_copy, args);
3537
3538  const char *str;
3539  int number;
3540  float fnumber;
3541
3542  while (*format)
3543    {
3544      switch (*format++)
3545	{
3546	case 's': // string
3547	  str = va_arg (args_copy, const char *);
3548	  break;
3549	case 'd': // int
3550	  number = va_arg (args_copy, int);
3551	  break;
3552	case 'f': // float
3553	  fnumber = va_arg (args_copy, double);
3554	  break;
3555	default:
3556	  break;
3557	}
3558    }
3559  va_end (args_copy);
3560  va_end (args);
3561}
3562
3563int
3564main ()
3565{
3566
3567  // Check bool.
3568  _Bool success = false;
3569
3570  // Check restrict.
3571  if (test_restrict ("String literal") == 0)
3572    success = true;
3573  char *restrict newvar = "Another string";
3574
3575  // Check varargs.
3576  test_varargs ("s, d' f .", "string", 65, 34.234);
3577  test_varargs_macros ();
3578
3579  // Check flexible array members.
3580  struct incomplete_array *ia =
3581    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3582  ia->datasize = 10;
3583  for (int i = 0; i < ia->datasize; ++i)
3584    ia->data[i] = i * 1.234;
3585
3586  // Check named initializers.
3587  struct named_init ni = {
3588    .number = 34,
3589    .name = L"Test wide string",
3590    .average = 543.34343,
3591  };
3592
3593  ni.number = 58;
3594
3595  int dynamic_array[ni.number];
3596  dynamic_array[ni.number - 1] = 543;
3597
3598  // work around unused variable warnings
3599  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3600	  || dynamic_array[ni.number - 1] != 543);
3601
3602  ;
3603  return 0;
3604}
3605_ACEOF
3606for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3607do
3608  CC="$ac_save_CC $ac_arg"
3609  if ac_fn_c_try_compile "$LINENO"; then :
3610  ac_cv_prog_cc_c99=$ac_arg
3611fi
3612rm -f core conftest.err conftest.$ac_objext
3613  test "x$ac_cv_prog_cc_c99" != "xno" && break
3614done
3615rm -f conftest.$ac_ext
3616CC=$ac_save_CC
3617
3618fi
3619# AC_CACHE_VAL
3620case "x$ac_cv_prog_cc_c99" in
3621  x)
3622    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3623$as_echo "none needed" >&6; } ;;
3624  xno)
3625    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3626$as_echo "unsupported" >&6; } ;;
3627  *)
3628    CC="$CC $ac_cv_prog_cc_c99"
3629    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3630$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3631esac
3632if test "x$ac_cv_prog_cc_c99" != xno; then :
3633
3634fi
3635
3636		ac_ext=c
3637ac_cpp='$CPP $CPPFLAGS'
3638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3642$as_echo_n "checking how to run the C preprocessor... " >&6; }
3643# On Suns, sometimes $CPP names a directory.
3644if test -n "$CPP" && test -d "$CPP"; then
3645  CPP=
3646fi
3647if test -z "$CPP"; then
3648  if ${ac_cv_prog_CPP+:} false; then :
3649  $as_echo_n "(cached) " >&6
3650else
3651      # Double quotes because CPP needs to be expanded
3652    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3653    do
3654      ac_preproc_ok=false
3655for ac_c_preproc_warn_flag in '' yes
3656do
3657  # Use a header file that comes with gcc, so configuring glibc
3658  # with a fresh cross-compiler works.
3659  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3660  # <limits.h> exists even on freestanding compilers.
3661  # On the NeXT, cc -E runs the code through the compiler's parser,
3662  # not just through cpp. "Syntax error" is here to catch this case.
3663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664/* end confdefs.h.  */
3665#ifdef __STDC__
3666# include <limits.h>
3667#else
3668# include <assert.h>
3669#endif
3670		     Syntax error
3671_ACEOF
3672if ac_fn_c_try_cpp "$LINENO"; then :
3673
3674else
3675  # Broken: fails on valid input.
3676continue
3677fi
3678rm -f conftest.err conftest.i conftest.$ac_ext
3679
3680  # OK, works on sane cases.  Now check whether nonexistent headers
3681  # can be detected and how.
3682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683/* end confdefs.h.  */
3684#include <ac_nonexistent.h>
3685_ACEOF
3686if ac_fn_c_try_cpp "$LINENO"; then :
3687  # Broken: success on invalid input.
3688continue
3689else
3690  # Passes both tests.
3691ac_preproc_ok=:
3692break
3693fi
3694rm -f conftest.err conftest.i conftest.$ac_ext
3695
3696done
3697# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3698rm -f conftest.i conftest.err conftest.$ac_ext
3699if $ac_preproc_ok; then :
3700  break
3701fi
3702
3703    done
3704    ac_cv_prog_CPP=$CPP
3705
3706fi
3707  CPP=$ac_cv_prog_CPP
3708else
3709  ac_cv_prog_CPP=$CPP
3710fi
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3712$as_echo "$CPP" >&6; }
3713ac_preproc_ok=false
3714for ac_c_preproc_warn_flag in '' yes
3715do
3716  # Use a header file that comes with gcc, so configuring glibc
3717  # with a fresh cross-compiler works.
3718  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3719  # <limits.h> exists even on freestanding compilers.
3720  # On the NeXT, cc -E runs the code through the compiler's parser,
3721  # not just through cpp. "Syntax error" is here to catch this case.
3722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723/* end confdefs.h.  */
3724#ifdef __STDC__
3725# include <limits.h>
3726#else
3727# include <assert.h>
3728#endif
3729		     Syntax error
3730_ACEOF
3731if ac_fn_c_try_cpp "$LINENO"; then :
3732
3733else
3734  # Broken: fails on valid input.
3735continue
3736fi
3737rm -f conftest.err conftest.i conftest.$ac_ext
3738
3739  # OK, works on sane cases.  Now check whether nonexistent headers
3740  # can be detected and how.
3741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742/* end confdefs.h.  */
3743#include <ac_nonexistent.h>
3744_ACEOF
3745if ac_fn_c_try_cpp "$LINENO"; then :
3746  # Broken: success on invalid input.
3747continue
3748else
3749  # Passes both tests.
3750ac_preproc_ok=:
3751break
3752fi
3753rm -f conftest.err conftest.i conftest.$ac_ext
3754
3755done
3756# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3757rm -f conftest.i conftest.err conftest.$ac_ext
3758if $ac_preproc_ok; then :
3759
3760else
3761  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3763as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3764See \`config.log' for more details" "$LINENO" 5; }
3765fi
3766
3767ac_ext=c
3768ac_cpp='$CPP $CPPFLAGS'
3769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771ac_compiler_gnu=$ac_cv_c_compiler_gnu
3772
3773
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3775$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3776if ${ac_cv_path_GREP+:} false; then :
3777  $as_echo_n "(cached) " >&6
3778else
3779  if test -z "$GREP"; then
3780  ac_path_GREP_found=false
3781  # Loop through the user's path and test for each of PROGNAME-LIST
3782  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3784do
3785  IFS=$as_save_IFS
3786  test -z "$as_dir" && as_dir=.
3787    for ac_prog in grep ggrep; do
3788    for ac_exec_ext in '' $ac_executable_extensions; do
3789      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3790      as_fn_executable_p "$ac_path_GREP" || continue
3791# Check for GNU ac_path_GREP and select it if it is found.
3792  # Check for GNU $ac_path_GREP
3793case `"$ac_path_GREP" --version 2>&1` in
3794*GNU*)
3795  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3796*)
3797  ac_count=0
3798  $as_echo_n 0123456789 >"conftest.in"
3799  while :
3800  do
3801    cat "conftest.in" "conftest.in" >"conftest.tmp"
3802    mv "conftest.tmp" "conftest.in"
3803    cp "conftest.in" "conftest.nl"
3804    $as_echo 'GREP' >> "conftest.nl"
3805    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3806    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3807    as_fn_arith $ac_count + 1 && ac_count=$as_val
3808    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3809      # Best one so far, save it but keep looking for a better one
3810      ac_cv_path_GREP="$ac_path_GREP"
3811      ac_path_GREP_max=$ac_count
3812    fi
3813    # 10*(2^10) chars as input seems more than enough
3814    test $ac_count -gt 10 && break
3815  done
3816  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3817esac
3818
3819      $ac_path_GREP_found && break 3
3820    done
3821  done
3822  done
3823IFS=$as_save_IFS
3824  if test -z "$ac_cv_path_GREP"; then
3825    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3826  fi
3827else
3828  ac_cv_path_GREP=$GREP
3829fi
3830
3831fi
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3833$as_echo "$ac_cv_path_GREP" >&6; }
3834 GREP="$ac_cv_path_GREP"
3835
3836
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3838$as_echo_n "checking for egrep... " >&6; }
3839if ${ac_cv_path_EGREP+:} false; then :
3840  $as_echo_n "(cached) " >&6
3841else
3842  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3843   then ac_cv_path_EGREP="$GREP -E"
3844   else
3845     if test -z "$EGREP"; then
3846  ac_path_EGREP_found=false
3847  # Loop through the user's path and test for each of PROGNAME-LIST
3848  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3850do
3851  IFS=$as_save_IFS
3852  test -z "$as_dir" && as_dir=.
3853    for ac_prog in egrep; do
3854    for ac_exec_ext in '' $ac_executable_extensions; do
3855      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3856      as_fn_executable_p "$ac_path_EGREP" || continue
3857# Check for GNU ac_path_EGREP and select it if it is found.
3858  # Check for GNU $ac_path_EGREP
3859case `"$ac_path_EGREP" --version 2>&1` in
3860*GNU*)
3861  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3862*)
3863  ac_count=0
3864  $as_echo_n 0123456789 >"conftest.in"
3865  while :
3866  do
3867    cat "conftest.in" "conftest.in" >"conftest.tmp"
3868    mv "conftest.tmp" "conftest.in"
3869    cp "conftest.in" "conftest.nl"
3870    $as_echo 'EGREP' >> "conftest.nl"
3871    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3872    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3873    as_fn_arith $ac_count + 1 && ac_count=$as_val
3874    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3875      # Best one so far, save it but keep looking for a better one
3876      ac_cv_path_EGREP="$ac_path_EGREP"
3877      ac_path_EGREP_max=$ac_count
3878    fi
3879    # 10*(2^10) chars as input seems more than enough
3880    test $ac_count -gt 10 && break
3881  done
3882  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3883esac
3884
3885      $ac_path_EGREP_found && break 3
3886    done
3887  done
3888  done
3889IFS=$as_save_IFS
3890  if test -z "$ac_cv_path_EGREP"; then
3891    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3892  fi
3893else
3894  ac_cv_path_EGREP=$EGREP
3895fi
3896
3897   fi
3898fi
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3900$as_echo "$ac_cv_path_EGREP" >&6; }
3901 EGREP="$ac_cv_path_EGREP"
3902
3903
3904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905/* end confdefs.h.  */
3906
3907_ACEOF
3908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909  $EGREP "" >/dev/null 2>&1; then :
3910
3911fi
3912rm -f conftest*
3913	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3914$as_echo_n "checking for fgrep... " >&6; }
3915if ${ac_cv_path_FGREP+:} false; then :
3916  $as_echo_n "(cached) " >&6
3917else
3918  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3919   then ac_cv_path_FGREP="$GREP -F"
3920   else
3921     if test -z "$FGREP"; then
3922  ac_path_FGREP_found=false
3923  # Loop through the user's path and test for each of PROGNAME-LIST
3924  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3926do
3927  IFS=$as_save_IFS
3928  test -z "$as_dir" && as_dir=.
3929    for ac_prog in fgrep; do
3930    for ac_exec_ext in '' $ac_executable_extensions; do
3931      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3932      as_fn_executable_p "$ac_path_FGREP" || continue
3933# Check for GNU ac_path_FGREP and select it if it is found.
3934  # Check for GNU $ac_path_FGREP
3935case `"$ac_path_FGREP" --version 2>&1` in
3936*GNU*)
3937  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3938*)
3939  ac_count=0
3940  $as_echo_n 0123456789 >"conftest.in"
3941  while :
3942  do
3943    cat "conftest.in" "conftest.in" >"conftest.tmp"
3944    mv "conftest.tmp" "conftest.in"
3945    cp "conftest.in" "conftest.nl"
3946    $as_echo 'FGREP' >> "conftest.nl"
3947    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3948    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3949    as_fn_arith $ac_count + 1 && ac_count=$as_val
3950    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3951      # Best one so far, save it but keep looking for a better one
3952      ac_cv_path_FGREP="$ac_path_FGREP"
3953      ac_path_FGREP_max=$ac_count
3954    fi
3955    # 10*(2^10) chars as input seems more than enough
3956    test $ac_count -gt 10 && break
3957  done
3958  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3959esac
3960
3961      $ac_path_FGREP_found && break 3
3962    done
3963  done
3964  done
3965IFS=$as_save_IFS
3966  if test -z "$ac_cv_path_FGREP"; then
3967    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3968  fi
3969else
3970  ac_cv_path_FGREP=$FGREP
3971fi
3972
3973   fi
3974fi
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3976$as_echo "$ac_cv_path_FGREP" >&6; }
3977 FGREP="$ac_cv_path_FGREP"
3978
3979		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3980$as_echo_n "checking for library containing strerror... " >&6; }
3981if ${ac_cv_search_strerror+:} false; then :
3982  $as_echo_n "(cached) " >&6
3983else
3984  ac_func_search_save_LIBS=$LIBS
3985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986/* end confdefs.h.  */
3987
3988/* Override any GCC internal prototype to avoid an error.
3989   Use char because int might match the return type of a GCC
3990   builtin and then its argument prototype would still apply.  */
3991#ifdef __cplusplus
3992extern "C"
3993#endif
3994char strerror ();
3995int
3996main ()
3997{
3998return strerror ();
3999  ;
4000  return 0;
4001}
4002_ACEOF
4003for ac_lib in '' cposix; do
4004  if test -z "$ac_lib"; then
4005    ac_res="none required"
4006  else
4007    ac_res=-l$ac_lib
4008    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4009  fi
4010  if ac_fn_c_try_link "$LINENO"; then :
4011  ac_cv_search_strerror=$ac_res
4012fi
4013rm -f core conftest.err conftest.$ac_objext \
4014    conftest$ac_exeext
4015  if ${ac_cv_search_strerror+:} false; then :
4016  break
4017fi
4018done
4019if ${ac_cv_search_strerror+:} false; then :
4020
4021else
4022  ac_cv_search_strerror=no
4023fi
4024rm conftest.$ac_ext
4025LIBS=$ac_func_search_save_LIBS
4026fi
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4028$as_echo "$ac_cv_search_strerror" >&6; }
4029ac_res=$ac_cv_search_strerror
4030if test "$ac_res" != no; then :
4031  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4032
4033fi
4034		for ac_prog in gawk mawk nawk awk
4035do
4036  # Extract the first word of "$ac_prog", so it can be a program name with args.
4037set dummy $ac_prog; ac_word=$2
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039$as_echo_n "checking for $ac_word... " >&6; }
4040if ${ac_cv_prog_AWK+:} false; then :
4041  $as_echo_n "(cached) " >&6
4042else
4043  if test -n "$AWK"; then
4044  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4045else
4046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047for as_dir in $PATH
4048do
4049  IFS=$as_save_IFS
4050  test -z "$as_dir" && as_dir=.
4051    for ac_exec_ext in '' $ac_executable_extensions; do
4052  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4053    ac_cv_prog_AWK="$ac_prog"
4054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055    break 2
4056  fi
4057done
4058  done
4059IFS=$as_save_IFS
4060
4061fi
4062fi
4063AWK=$ac_cv_prog_AWK
4064if test -n "$AWK"; then
4065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4066$as_echo "$AWK" >&6; }
4067else
4068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069$as_echo "no" >&6; }
4070fi
4071
4072
4073  test -n "$AWK" && break
4074done
4075
4076# Extract the first word of "strip", so it can be a program name with args.
4077set dummy strip; ac_word=$2
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079$as_echo_n "checking for $ac_word... " >&6; }
4080if ${ac_cv_prog_STRIP+:} false; then :
4081  $as_echo_n "(cached) " >&6
4082else
4083  if test -n "$STRIP"; then
4084  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4085else
4086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087for as_dir in $PATH
4088do
4089  IFS=$as_save_IFS
4090  test -z "$as_dir" && as_dir=.
4091    for ac_exec_ext in '' $ac_executable_extensions; do
4092  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4093    ac_cv_prog_STRIP="strip"
4094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4095    break 2
4096  fi
4097done
4098  done
4099IFS=$as_save_IFS
4100
4101  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4102fi
4103fi
4104STRIP=$ac_cv_prog_STRIP
4105if test -n "$STRIP"; then
4106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4107$as_echo "$STRIP" >&6; }
4108else
4109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110$as_echo "no" >&6; }
4111fi
4112
4113
4114
4115
4116
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4118$as_echo_n "checking for ANSI C header files... " >&6; }
4119if ${ac_cv_header_stdc+:} false; then :
4120  $as_echo_n "(cached) " >&6
4121else
4122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123/* end confdefs.h.  */
4124#include <stdlib.h>
4125#include <stdarg.h>
4126#include <string.h>
4127#include <float.h>
4128
4129int
4130main ()
4131{
4132
4133  ;
4134  return 0;
4135}
4136_ACEOF
4137if ac_fn_c_try_compile "$LINENO"; then :
4138  ac_cv_header_stdc=yes
4139else
4140  ac_cv_header_stdc=no
4141fi
4142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143
4144if test $ac_cv_header_stdc = yes; then
4145  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147/* end confdefs.h.  */
4148#include <string.h>
4149
4150_ACEOF
4151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4152  $EGREP "memchr" >/dev/null 2>&1; then :
4153
4154else
4155  ac_cv_header_stdc=no
4156fi
4157rm -f conftest*
4158
4159fi
4160
4161if test $ac_cv_header_stdc = yes; then
4162  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164/* end confdefs.h.  */
4165#include <stdlib.h>
4166
4167_ACEOF
4168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169  $EGREP "free" >/dev/null 2>&1; then :
4170
4171else
4172  ac_cv_header_stdc=no
4173fi
4174rm -f conftest*
4175
4176fi
4177
4178if test $ac_cv_header_stdc = yes; then
4179  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4180  if test "$cross_compiling" = yes; then :
4181  :
4182else
4183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184/* end confdefs.h.  */
4185#include <ctype.h>
4186#include <stdlib.h>
4187#if ((' ' & 0x0FF) == 0x020)
4188# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4189# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4190#else
4191# define ISLOWER(c) \
4192		   (('a' <= (c) && (c) <= 'i') \
4193		     || ('j' <= (c) && (c) <= 'r') \
4194		     || ('s' <= (c) && (c) <= 'z'))
4195# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4196#endif
4197
4198#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4199int
4200main ()
4201{
4202  int i;
4203  for (i = 0; i < 256; i++)
4204    if (XOR (islower (i), ISLOWER (i))
4205	|| toupper (i) != TOUPPER (i))
4206      return 2;
4207  return 0;
4208}
4209_ACEOF
4210if ac_fn_c_try_run "$LINENO"; then :
4211
4212else
4213  ac_cv_header_stdc=no
4214fi
4215rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4216  conftest.$ac_objext conftest.beam conftest.$ac_ext
4217fi
4218
4219fi
4220fi
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4222$as_echo "$ac_cv_header_stdc" >&6; }
4223if test $ac_cv_header_stdc = yes; then
4224
4225$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4226
4227fi
4228
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4230$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4231if ${ac_cv_header_sys_wait_h+:} false; then :
4232  $as_echo_n "(cached) " >&6
4233else
4234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235/* end confdefs.h.  */
4236#include <sys/types.h>
4237#include <sys/wait.h>
4238#ifndef WEXITSTATUS
4239# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4240#endif
4241#ifndef WIFEXITED
4242# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4243#endif
4244
4245int
4246main ()
4247{
4248  int s;
4249  wait (&s);
4250  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4251  ;
4252  return 0;
4253}
4254_ACEOF
4255if ac_fn_c_try_compile "$LINENO"; then :
4256  ac_cv_header_sys_wait_h=yes
4257else
4258  ac_cv_header_sys_wait_h=no
4259fi
4260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261fi
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4263$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4264if test $ac_cv_header_sys_wait_h = yes; then
4265
4266$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4267
4268fi
4269
4270
4271if test x"$ac_cv_prog_cc_c99" != xno; then
4272
4273
4274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
4275$as_echo_n "checking for unsigned long long int... " >&6; }
4276if ${ac_cv_type_unsigned_long_long_int+:} false; then :
4277  $as_echo_n "(cached) " >&6
4278else
4279  ac_cv_type_unsigned_long_long_int=yes
4280     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4281       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282/* end confdefs.h.  */
4283
4284  /* For now, do not test the preprocessor; as of 2007 there are too many
4285	 implementations with broken preprocessors.  Perhaps this can
4286	 be revisited in 2012.  In the meantime, code should not expect
4287	 #if to work with literals wider than 32 bits.  */
4288      /* Test literals.  */
4289      long long int ll = 9223372036854775807ll;
4290      long long int nll = -9223372036854775807LL;
4291      unsigned long long int ull = 18446744073709551615ULL;
4292      /* Test constant expressions.   */
4293      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4294		     ? 1 : -1)];
4295      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4296		     ? 1 : -1)];
4297      int i = 63;
4298int
4299main ()
4300{
4301/* Test availability of runtime routines for shift and division.  */
4302      long long int llmax = 9223372036854775807ll;
4303      unsigned long long int ullmax = 18446744073709551615ull;
4304      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4305	      | (llmax / ll) | (llmax % ll)
4306	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4307	      | (ullmax / ull) | (ullmax % ull));
4308  ;
4309  return 0;
4310}
4311
4312_ACEOF
4313if ac_fn_c_try_link "$LINENO"; then :
4314
4315else
4316  ac_cv_type_unsigned_long_long_int=no
4317fi
4318rm -f core conftest.err conftest.$ac_objext \
4319    conftest$ac_exeext conftest.$ac_ext
4320     fi
4321fi
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
4323$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
4324  if test $ac_cv_type_unsigned_long_long_int = yes; then
4325
4326$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
4327
4328  fi
4329
4330
4331
4332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
4333$as_echo_n "checking for long long int... " >&6; }
4334if ${ac_cv_type_long_long_int+:} false; then :
4335  $as_echo_n "(cached) " >&6
4336else
4337  ac_cv_type_long_long_int=yes
4338      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4339	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
4340	if test $ac_cv_type_long_long_int = yes; then
4341	  	  	  	  if test "$cross_compiling" = yes; then :
4342  :
4343else
4344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345/* end confdefs.h.  */
4346#include <limits.h>
4347		 #ifndef LLONG_MAX
4348		 # define HALF \
4349			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4350		 # define LLONG_MAX (HALF - 1 + HALF)
4351		 #endif
4352int
4353main ()
4354{
4355long long int n = 1;
4356		 int i;
4357		 for (i = 0; ; i++)
4358		   {
4359		     long long int m = n << i;
4360		     if (m >> i != n)
4361		       return 1;
4362		     if (LLONG_MAX / 2 < m)
4363		       break;
4364		   }
4365		 return 0;
4366  ;
4367  return 0;
4368}
4369_ACEOF
4370if ac_fn_c_try_run "$LINENO"; then :
4371
4372else
4373  ac_cv_type_long_long_int=no
4374fi
4375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4376  conftest.$ac_objext conftest.beam conftest.$ac_ext
4377fi
4378
4379	fi
4380      fi
4381fi
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
4383$as_echo "$ac_cv_type_long_long_int" >&6; }
4384  if test $ac_cv_type_long_long_int = yes; then
4385
4386$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
4387
4388  fi
4389
4390  if test "$ac_cv_type_long_long_int" = no; then
4391    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4393as_fn_error $? "Compiler does not support long long int
4394See \`config.log' for more details" "$LINENO" 5; }
4395  fi
4396
4397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports trailing commas" >&5
4398$as_echo_n "checking if the compiler supports trailing commas... " >&6; }
4399  trailing_commas=no
4400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401/* end confdefs.h.  */
4402
4403int
4404main ()
4405{
4406
4407    enum {
4408      one,
4409    };
4410  ;
4411  return 0;
4412}
4413_ACEOF
4414if ac_fn_c_try_compile "$LINENO"; then :
4415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4416$as_echo "yes" >&6; }; trailing_commas=yes
4417else
4418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419$as_echo "no" >&6; }
4420fi
4421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422  if test "$trailing_commas" = no; then
4423    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4425as_fn_error $? "Compiler does not support trailing comma in enum
4426See \`config.log' for more details" "$LINENO" 5; }
4427  fi
4428
4429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports C++ comments" >&5
4430$as_echo_n "checking if the compiler supports C++ comments... " >&6; }
4431  slash_comments=no
4432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433/* end confdefs.h.  */
4434
4435int
4436main ()
4437{
4438// C++ comments?
4439  ;
4440  return 0;
4441}
4442_ACEOF
4443if ac_fn_c_try_compile "$LINENO"; then :
4444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4445$as_echo "yes" >&6; }; slash_comments=yes
4446else
4447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448$as_echo "no" >&6; }
4449fi
4450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4451  if test "$slash_comments" = no; then
4452    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4454as_fn_error $? "Compiler does not support C++ comments
4455See \`config.log' for more details" "$LINENO" 5; }
4456  fi
4457fi
4458
4459if test -n "$SOURCE_DATE_EPOCH"; then
4460  DATE_FMT="%b %d %Y %H:%M:%S"
4461  BUILD_DATE=$(LC_ALL=C date -u -d "@$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || LC_ALL=C date -u -r "$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || LC_ALL=C date -u "+$DATE_FMT")
4462  cat >>confdefs.h <<_ACEOF
4463#define BUILD_DATE "$BUILD_DATE"
4464_ACEOF
4465
4466  BUILD_DATE_MSG=-"echo -e '=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\nNOTE: build date/time is fixed: $BUILD_DATE\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-='"
4467
4468fi
4469
4470
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5
4472$as_echo_n "checking --enable-fail-if-missing argument... " >&6; }
4473# Check whether --enable-fail_if_missing was given.
4474if test "${enable_fail_if_missing+set}" = set; then :
4475  enableval=$enable_fail_if_missing; fail_if_missing="yes"
4476else
4477  fail_if_missing="no"
4478fi
4479
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5
4481$as_echo "$fail_if_missing" >&6; }
4482
4483with_x_arg="$with_x"
4484
4485if test -z "$CFLAGS"; then
4486  CFLAGS="-O"
4487  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
4488fi
4489if test "$GCC" = yes; then
4490    gccversion=`$CC -dumpversion`
4491  if test "x$gccversion" = "x"; then
4492        gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
4493  fi
4494    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
4495    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
4496    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
4497  else
4498    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
4499      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
4500      CFLAGS="$CFLAGS -fno-strength-reduce"
4501    fi
4502  fi
4503fi
4504
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5
4506$as_echo_n "checking for clang version... " >&6; }
4507CLANG_VERSION_STRING=`$CC --version 2>/dev/null | sed  -n -e 's/^.*clang[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/p'`
4508if test x"$CLANG_VERSION_STRING" != x"" ; then
4509  CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'`
4510  CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'`
4511  CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'`
4512  CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION`
4513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5
4514$as_echo "$CLANG_VERSION" >&6; }
4515          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5
4516$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; }
4517  if test "$CLANG_VERSION" -ge 500002075 ; then
4518    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4519$as_echo "no" >&6; }
4520    CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
4521  else
4522    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4523$as_echo "yes" >&6; }
4524  fi
4525else
4526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5
4527$as_echo "N/A" >&6; }
4528fi
4529
4530CROSS_COMPILING=
4531if test "$cross_compiling" = yes; then
4532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
4533$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
4534  CROSS_COMPILING=1
4535fi
4536
4537
4538test "$GCC" = yes && CPP_MM=M;
4539
4540if test -f ./toolcheck; then
4541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
4542$as_echo "$as_me: checking for buggy tools..." >&6;}
4543  sh ./toolcheck 1>&6
4544fi
4545
4546OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
4547
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Haiku" >&5
4549$as_echo_n "checking for Haiku... " >&6; }
4550case `uname` in
4551    Haiku) HAIKU=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4552$as_echo "yes" >&6; };;
4553    *)     HAIKU=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4554$as_echo "no" >&6; };;
4555esac
4556
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5
4558$as_echo_n "checking for QNX... " >&6; }
4559case `uname` in
4560    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
4561		test -z "$with_x" && with_x=no
4562		QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4563$as_echo "yes" >&6; };;
4564    *)		QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565$as_echo "no" >&6; };;
4566esac
4567
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5
4569$as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
4570if test "`(uname) 2>/dev/null`" = Darwin; then
4571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4572$as_echo "yes" >&6; }
4573  MACOS_X=yes
4574  CPPFLAGS="$CPPFLAGS -DMACOS_X"
4575
4576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5
4577$as_echo_n "checking --disable-darwin argument... " >&6; }
4578  # Check whether --enable-darwin was given.
4579if test "${enable_darwin+set}" = set; then :
4580  enableval=$enable_darwin;
4581else
4582  enable_darwin="yes"
4583fi
4584
4585  if test "$enable_darwin" = "yes"; then
4586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587$as_echo "no" >&6; }
4588    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5
4589$as_echo_n "checking if Darwin files are there... " >&6; }
4590    if test -f os_macosx.m; then
4591      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4592$as_echo "yes" >&6; }
4593    else
4594      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5
4595$as_echo "no, Darwin support disabled" >&6; }
4596      enable_darwin=no
4597    fi
4598  else
4599    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5
4600$as_echo "yes, Darwin support excluded" >&6; }
4601  fi
4602
4603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5
4604$as_echo_n "checking --with-mac-arch argument... " >&6; }
4605
4606# Check whether --with-mac-arch was given.
4607if test "${with_mac_arch+set}" = set; then :
4608  withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5
4609$as_echo "$MACARCH" >&6; }
4610else
4611  MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5
4612$as_echo "defaulting to $MACARCH" >&6; }
4613fi
4614
4615
4616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5
4617$as_echo_n "checking --with-developer-dir argument... " >&6; }
4618
4619# Check whether --with-developer-dir was given.
4620if test "${with_developer_dir+set}" = set; then :
4621  withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4622$as_echo "$DEVELOPER_DIR" >&6; }
4623else
4624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
4625$as_echo "not present" >&6; }
4626fi
4627
4628
4629  if test "x$DEVELOPER_DIR" = "x"; then
4630    # Extract the first word of "xcode-select", so it can be a program name with args.
4631set dummy xcode-select; ac_word=$2
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633$as_echo_n "checking for $ac_word... " >&6; }
4634if ${ac_cv_path_XCODE_SELECT+:} false; then :
4635  $as_echo_n "(cached) " >&6
4636else
4637  case $XCODE_SELECT in
4638  [\\/]* | ?:[\\/]*)
4639  ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
4640  ;;
4641  *)
4642  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643for as_dir in $PATH
4644do
4645  IFS=$as_save_IFS
4646  test -z "$as_dir" && as_dir=.
4647    for ac_exec_ext in '' $ac_executable_extensions; do
4648  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649    ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
4650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651    break 2
4652  fi
4653done
4654  done
4655IFS=$as_save_IFS
4656
4657  ;;
4658esac
4659fi
4660XCODE_SELECT=$ac_cv_path_XCODE_SELECT
4661if test -n "$XCODE_SELECT"; then
4662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5
4663$as_echo "$XCODE_SELECT" >&6; }
4664else
4665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666$as_echo "no" >&6; }
4667fi
4668
4669
4670    if test "x$XCODE_SELECT" != "x"; then
4671      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5
4672$as_echo_n "checking for developer dir using xcode-select... " >&6; }
4673      DEVELOPER_DIR=`$XCODE_SELECT -print-path`
4674      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4675$as_echo "$DEVELOPER_DIR" >&6; }
4676    else
4677      DEVELOPER_DIR=/Developer
4678    fi
4679  fi
4680
4681  if test "x$MACARCH" = "xboth"; then
4682    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5
4683$as_echo_n "checking for 10.4 universal SDK... " >&6; }
4684                            save_cppflags="$CPPFLAGS"
4685    save_cflags="$CFLAGS"
4686    save_ldflags="$LDFLAGS"
4687    CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
4688    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689/* end confdefs.h.  */
4690
4691int
4692main ()
4693{
4694
4695  ;
4696  return 0;
4697}
4698_ACEOF
4699if ac_fn_c_try_link "$LINENO"; then :
4700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
4701$as_echo "found" >&6; }
4702else
4703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4704$as_echo "not found" >&6; }
4705	CFLAGS="$save_cflags"
4706	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5
4707$as_echo_n "checking if Intel architecture is supported... " >&6; }
4708	CPPFLAGS="$CPPFLAGS -arch i386"
4709	LDFLAGS="$save_ldflags -arch i386"
4710	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711/* end confdefs.h.  */
4712
4713int
4714main ()
4715{
4716
4717  ;
4718  return 0;
4719}
4720_ACEOF
4721if ac_fn_c_try_link "$LINENO"; then :
4722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4723$as_echo "yes" >&6; }; MACARCH="intel"
4724else
4725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726$as_echo "no" >&6; }
4727		MACARCH="ppc"
4728		CPPFLAGS="$save_cppflags -arch ppc"
4729		LDFLAGS="$save_ldflags -arch ppc"
4730fi
4731rm -f core conftest.err conftest.$ac_objext \
4732    conftest$ac_exeext conftest.$ac_ext
4733fi
4734rm -f core conftest.err conftest.$ac_objext \
4735    conftest$ac_exeext conftest.$ac_ext
4736  elif test "x$MACARCH" = "xintel"; then
4737    CPPFLAGS="$CPPFLAGS -arch intel"
4738    LDFLAGS="$LDFLAGS -arch intel"
4739  elif test "x$MACARCH" = "xppc"; then
4740    CPPFLAGS="$CPPFLAGS -arch ppc"
4741    LDFLAGS="$LDFLAGS -arch ppc"
4742  fi
4743
4744  if test "$enable_darwin" = "yes"; then
4745    MACOS_X_DARWIN=yes
4746    OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
4747    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4748            CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN"
4749
4750                # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4751for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4752		  inttypes.h stdint.h unistd.h
4753do :
4754  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4755ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4756"
4757if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4758  cat >>confdefs.h <<_ACEOF
4759#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4760_ACEOF
4761
4762fi
4763
4764done
4765
4766
4767ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
4768if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then :
4769  CARBON=yes
4770fi
4771
4772
4773    if test "x$CARBON" = "xyes"; then
4774      if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2 -a "X$enable_gui" != Xgtk3; then
4775	with_x=no
4776      fi
4777    fi
4778  fi
4779
4780        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4781    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4782  fi
4783
4784else
4785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786$as_echo "no" >&6; }
4787fi
4788
4789for ac_header in AvailabilityMacros.h
4790do :
4791  ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
4792if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then :
4793  cat >>confdefs.h <<_ACEOF
4794#define HAVE_AVAILABILITYMACROS_H 1
4795_ACEOF
4796
4797fi
4798
4799done
4800
4801
4802
4803
4804
4805if test "$cross_compiling" = no; then
4806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5
4807$as_echo_n "checking --with-local-dir argument... " >&6; }
4808  have_local_include=''
4809  have_local_lib=''
4810
4811# Check whether --with-local-dir was given.
4812if test "${with_local_dir+set}" = set; then :
4813  withval=$with_local_dir;
4814    local_dir="$withval"
4815    case "$withval" in
4816    */*) ;;
4817    no)
4818      # avoid adding local dir to LDFLAGS and CPPFLAGS
4819      have_local_include=yes
4820      have_local_lib=yes
4821      ;;
4822    *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;;
4823    esac
4824	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5
4825$as_echo "$local_dir" >&6; }
4826
4827else
4828
4829    local_dir=/usr/local
4830    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5
4831$as_echo "Defaulting to $local_dir" >&6; }
4832
4833fi
4834
4835  if test "$GCC" = yes -a "$local_dir" != no; then
4836    echo 'void f(){}' > conftest.c
4837        have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4838    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4839    rm -f conftest.c conftest.o
4840  fi
4841  if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4842    tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4843    if test "$tt" = "$LDFLAGS"; then
4844      LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4845    fi
4846  fi
4847  if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4848    tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4849    if test "$tt" = "$CPPFLAGS"; then
4850      CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4851    fi
4852  fi
4853fi
4854
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5
4856$as_echo_n "checking --with-vim-name argument... " >&6; }
4857
4858# Check whether --with-vim-name was given.
4859if test "${with_vim_name+set}" = set; then :
4860  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5
4861$as_echo "$VIMNAME" >&6; }
4862else
4863  VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5
4864$as_echo "Defaulting to $VIMNAME" >&6; }
4865fi
4866
4867
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5
4869$as_echo_n "checking --with-ex-name argument... " >&6; }
4870
4871# Check whether --with-ex-name was given.
4872if test "${with_ex_name+set}" = set; then :
4873  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5
4874$as_echo "$EXNAME" >&6; }
4875else
4876  EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5
4877$as_echo "Defaulting to ex" >&6; }
4878fi
4879
4880
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5
4882$as_echo_n "checking --with-view-name argument... " >&6; }
4883
4884# Check whether --with-view-name was given.
4885if test "${with_view_name+set}" = set; then :
4886  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5
4887$as_echo "$VIEWNAME" >&6; }
4888else
4889  VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5
4890$as_echo "Defaulting to view" >&6; }
4891fi
4892
4893
4894
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5
4896$as_echo_n "checking --with-global-runtime argument... " >&6; }
4897
4898# Check whether --with-global-runtime was given.
4899if test "${with_global_runtime+set}" = set; then :
4900  withval=$with_global_runtime; RUNTIME_GLOBAL="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4901$as_echo "$withval" >&6; }
4902else
4903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904$as_echo "no" >&6; }
4905fi
4906
4907
4908if test "X$RUNTIME_GLOBAL" != "X"; then
4909  RUNTIME_GLOBAL_AFTER=$(printf -- "$RUNTIME_GLOBAL\\n" | $AWK -F, 'BEGIN { comma=0 } { for (i = NF; i > 0; i--) { if (comma) { printf ",%s/after", $i } else { printf "%s/after", $i; comma=1 } } } END { printf "\n" }')
4910  cat >>confdefs.h <<_ACEOF
4911#define RUNTIME_GLOBAL "$RUNTIME_GLOBAL"
4912_ACEOF
4913
4914  cat >>confdefs.h <<_ACEOF
4915#define RUNTIME_GLOBAL_AFTER "$RUNTIME_GLOBAL_AFTER"
4916_ACEOF
4917
4918fi
4919
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5
4921$as_echo_n "checking --with-modified-by argument... " >&6; }
4922
4923# Check whether --with-modified-by was given.
4924if test "${with_modified_by+set}" = set; then :
4925  withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4926$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4927#define MODIFIED_BY "$withval"
4928_ACEOF
4929
4930else
4931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932$as_echo "no" >&6; }
4933fi
4934
4935
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5
4937$as_echo_n "checking if character set is EBCDIC... " >&6; }
4938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939/* end confdefs.h.  */
4940
4941int
4942main ()
4943{
4944 /* TryCompile function for CharSet.
4945   Treat any failure as ASCII for compatibility with existing art.
4946   Use compile-time rather than run-time tests for cross-compiler
4947   tolerance.  */
4948#if '0'!=240
4949make an error "Character set is not EBCDIC"
4950#endif
4951  ;
4952  return 0;
4953}
4954_ACEOF
4955if ac_fn_c_try_compile "$LINENO"; then :
4956   # TryCompile action if true
4957cf_cv_ebcdic=yes
4958else
4959   # TryCompile action if false
4960cf_cv_ebcdic=no
4961fi
4962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963# end of TryCompile ])
4964# end of CacheVal CvEbcdic
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5
4966$as_echo "$cf_cv_ebcdic" >&6; }
4967case "$cf_cv_ebcdic" in  #(vi
4968    yes)	$as_echo "#define EBCDIC 1" >>confdefs.h
4969
4970		line_break='"\\n"'
4971		;;
4972    *)		line_break='"\\012"';;
4973esac
4974
4975
4976if test "$cf_cv_ebcdic" = "yes"; then
4977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5
4978$as_echo_n "checking for z/OS Unix... " >&6; }
4979case `uname` in
4980    OS/390)	zOSUnix="yes";
4981										if test "$CC" = "cc"; then
4982		  ccm="$_CC_CCMODE"
4983		  ccn="CC"
4984		else
4985		  if test "$CC" = "c89"; then
4986		    ccm="$_CC_C89MODE"
4987		    ccn="C89"
4988		  else
4989		    ccm=1
4990		  fi
4991		fi
4992		if test "$ccm" != "1"; then
4993		  echo ""
4994		  echo "------------------------------------------"
4995		  echo " On z/OS Unix, the environment variable"
4996		  echo " _CC_${ccn}MODE must be set to \"1\"!"
4997		  echo " Do:"
4998		  echo "    export _CC_${ccn}MODE=1"
4999		  echo " and then call configure again."
5000		  echo "------------------------------------------"
5001		  exit 1
5002		fi
5003		# Set CFLAGS for configure process.
5004		# This will be reset later for config.mk.
5005		# Use haltonmsg to force error for missing H files.
5006		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)";
5007		LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
5008		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5009$as_echo "yes" >&6; }
5010		;;
5011    *)		zOSUnix="no";
5012		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013$as_echo "no" >&6; }
5014		;;
5015esac
5016fi
5017
5018if test "$zOSUnix" = "yes"; then
5019    QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'"
5020else
5021    QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'"
5022fi
5023
5024
5025
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5
5027$as_echo_n "checking --disable-smack argument... " >&6; }
5028# Check whether --enable-smack was given.
5029if test "${enable_smack+set}" = set; then :
5030  enableval=$enable_smack;
5031else
5032  enable_smack="yes"
5033fi
5034
5035if test "$enable_smack" = "yes"; then
5036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037$as_echo "no" >&6; }
5038  ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default"
5039if test "x$ac_cv_header_linux_xattr_h" = xyes; then :
5040  true
5041else
5042  enable_smack="no"
5043fi
5044
5045
5046else
5047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5048$as_echo "yes" >&6; }
5049fi
5050if test "$enable_smack" = "yes"; then
5051  ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
5052if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
5053  true
5054else
5055  enable_smack="no"
5056fi
5057
5058
5059fi
5060if test "$enable_smack" = "yes"; then
5061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5
5062$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; }
5063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064/* end confdefs.h.  */
5065#include <linux/xattr.h>
5066_ACEOF
5067if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5068  $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then :
5069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5070$as_echo "yes" >&6; }
5071else
5072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073$as_echo "no" >&6; }; enable_smack="no"
5074fi
5075rm -f conftest*
5076
5077fi
5078if test "$enable_smack" = "yes"; then
5079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
5080$as_echo_n "checking for setxattr in -lattr... " >&6; }
5081if ${ac_cv_lib_attr_setxattr+:} false; then :
5082  $as_echo_n "(cached) " >&6
5083else
5084  ac_check_lib_save_LIBS=$LIBS
5085LIBS="-lattr  $LIBS"
5086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087/* end confdefs.h.  */
5088
5089/* Override any GCC internal prototype to avoid an error.
5090   Use char because int might match the return type of a GCC
5091   builtin and then its argument prototype would still apply.  */
5092#ifdef __cplusplus
5093extern "C"
5094#endif
5095char setxattr ();
5096int
5097main ()
5098{
5099return setxattr ();
5100  ;
5101  return 0;
5102}
5103_ACEOF
5104if ac_fn_c_try_link "$LINENO"; then :
5105  ac_cv_lib_attr_setxattr=yes
5106else
5107  ac_cv_lib_attr_setxattr=no
5108fi
5109rm -f core conftest.err conftest.$ac_objext \
5110    conftest$ac_exeext conftest.$ac_ext
5111LIBS=$ac_check_lib_save_LIBS
5112fi
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
5114$as_echo "$ac_cv_lib_attr_setxattr" >&6; }
5115if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
5116  LIBS="$LIBS -lattr"
5117	   found_smack="yes"
5118	   $as_echo "#define HAVE_SMACK 1" >>confdefs.h
5119
5120fi
5121
5122fi
5123
5124if test "x$found_smack" = "x"; then
5125    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5
5126$as_echo_n "checking --disable-selinux argument... " >&6; }
5127  # Check whether --enable-selinux was given.
5128if test "${enable_selinux+set}" = set; then :
5129  enableval=$enable_selinux;
5130else
5131  enable_selinux="yes"
5132fi
5133
5134  if test "$enable_selinux" = "yes"; then
5135    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136$as_echo "no" >&6; }
5137    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
5138$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
5139if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
5140  $as_echo_n "(cached) " >&6
5141else
5142  ac_check_lib_save_LIBS=$LIBS
5143LIBS="-lselinux  $LIBS"
5144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145/* end confdefs.h.  */
5146
5147/* Override any GCC internal prototype to avoid an error.
5148   Use char because int might match the return type of a GCC
5149   builtin and then its argument prototype would still apply.  */
5150#ifdef __cplusplus
5151extern "C"
5152#endif
5153char is_selinux_enabled ();
5154int
5155main ()
5156{
5157return is_selinux_enabled ();
5158  ;
5159  return 0;
5160}
5161_ACEOF
5162if ac_fn_c_try_link "$LINENO"; then :
5163  ac_cv_lib_selinux_is_selinux_enabled=yes
5164else
5165  ac_cv_lib_selinux_is_selinux_enabled=no
5166fi
5167rm -f core conftest.err conftest.$ac_objext \
5168    conftest$ac_exeext conftest.$ac_ext
5169LIBS=$ac_check_lib_save_LIBS
5170fi
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
5172$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
5173if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
5174  ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
5175if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
5176  LIBS="$LIBS -lselinux"
5177	    $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5178
5179fi
5180
5181
5182fi
5183
5184  else
5185     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5186$as_echo "yes" >&6; }
5187  fi
5188fi
5189
5190
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5
5192$as_echo_n "checking --with-features argument... " >&6; }
5193
5194# Check whether --with-features was given.
5195if test "${with_features+set}" = set; then :
5196  withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5
5197$as_echo "$features" >&6; }
5198else
5199  features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5
5200$as_echo "Defaulting to huge" >&6; }
5201fi
5202
5203
5204dovimdiff=""
5205dogvimdiff=""
5206case "$features" in
5207  tiny)		$as_echo "#define FEAT_TINY 1" >>confdefs.h
5208 ;;
5209  small)	$as_echo "#define FEAT_SMALL 1" >>confdefs.h
5210 ;;
5211  normal)	$as_echo "#define FEAT_NORMAL 1" >>confdefs.h
5212 dovimdiff="installvimdiff";
5213			dogvimdiff="installgvimdiff" ;;
5214  big)		$as_echo "#define FEAT_BIG 1" >>confdefs.h
5215 dovimdiff="installvimdiff";
5216			dogvimdiff="installgvimdiff" ;;
5217  huge)		$as_echo "#define FEAT_HUGE 1" >>confdefs.h
5218 dovimdiff="installvimdiff";
5219			dogvimdiff="installgvimdiff" ;;
5220  *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5
5221$as_echo "Sorry, $features is not supported" >&6; } ;;
5222esac
5223
5224
5225
5226
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5
5228$as_echo_n "checking --with-compiledby argument... " >&6; }
5229
5230# Check whether --with-compiledby was given.
5231if test "${with_compiledby+set}" = set; then :
5232  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
5233$as_echo "$withval" >&6; }
5234else
5235  compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236$as_echo "no" >&6; }
5237fi
5238
5239
5240
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5
5242$as_echo_n "checking --disable-xsmp argument... " >&6; }
5243# Check whether --enable-xsmp was given.
5244if test "${enable_xsmp+set}" = set; then :
5245  enableval=$enable_xsmp;
5246else
5247  enable_xsmp="yes"
5248fi
5249
5250
5251if test "$enable_xsmp" = "yes"; then
5252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253$as_echo "no" >&6; }
5254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5
5255$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
5256  # Check whether --enable-xsmp-interact was given.
5257if test "${enable_xsmp_interact+set}" = set; then :
5258  enableval=$enable_xsmp_interact;
5259else
5260  enable_xsmp_interact="yes"
5261fi
5262
5263  if test "$enable_xsmp_interact" = "yes"; then
5264    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265$as_echo "no" >&6; }
5266    $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h
5267
5268  else
5269    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5270$as_echo "yes" >&6; }
5271  fi
5272else
5273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5274$as_echo "yes" >&6; }
5275fi
5276
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5
5278$as_echo_n "checking --enable-luainterp argument... " >&6; }
5279# Check whether --enable-luainterp was given.
5280if test "${enable_luainterp+set}" = set; then :
5281  enableval=$enable_luainterp;
5282else
5283  enable_luainterp="no"
5284fi
5285
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5
5287$as_echo "$enable_luainterp" >&6; }
5288
5289if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
5290  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
5291    as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5
5292  fi
5293
5294
5295
5296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5
5297$as_echo_n "checking --with-lua-prefix argument... " >&6; }
5298
5299# Check whether --with-lua_prefix was given.
5300if test "${with_lua_prefix+set}" = set; then :
5301  withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5
5302$as_echo "$with_lua_prefix" >&6; }
5303else
5304  with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305$as_echo "no" >&6; }
5306fi
5307
5308
5309  if test "X$with_lua_prefix" != "X"; then
5310       vi_cv_path_lua_pfx="$with_lua_prefix"
5311  else
5312    { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5
5313$as_echo_n "checking LUA_PREFIX environment var... " >&6; }
5314    if test "X$LUA_PREFIX" != "X"; then
5315	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5
5316$as_echo "\"$LUA_PREFIX\"" >&6; }
5317	vi_cv_path_lua_pfx="$LUA_PREFIX"
5318    else
5319	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5
5320$as_echo "not set, default to /usr" >&6; }
5321	vi_cv_path_lua_pfx="/usr"
5322    fi
5323  fi
5324
5325  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5
5326$as_echo_n "checking --with-luajit... " >&6; }
5327
5328# Check whether --with-luajit was given.
5329if test "${with_luajit+set}" = set; then :
5330  withval=$with_luajit; vi_cv_with_luajit="$withval"
5331else
5332  vi_cv_with_luajit="no"
5333fi
5334
5335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5
5336$as_echo "$vi_cv_with_luajit" >&6; }
5337
5338  LUA_INC=
5339  if test "X$vi_cv_path_lua_pfx" != "X"; then
5340    if test "x$vi_cv_with_luajit" != "xno"; then
5341            # Extract the first word of "luajit", so it can be a program name with args.
5342set dummy luajit; ac_word=$2
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5344$as_echo_n "checking for $ac_word... " >&6; }
5345if ${ac_cv_path_vi_cv_path_luajit+:} false; then :
5346  $as_echo_n "(cached) " >&6
5347else
5348  case $vi_cv_path_luajit in
5349  [\\/]* | ?:[\\/]*)
5350  ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path.
5351  ;;
5352  *)
5353  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354for as_dir in $PATH
5355do
5356  IFS=$as_save_IFS
5357  test -z "$as_dir" && as_dir=.
5358    for ac_exec_ext in '' $ac_executable_extensions; do
5359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360    ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext"
5361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362    break 2
5363  fi
5364done
5365  done
5366IFS=$as_save_IFS
5367
5368  ;;
5369esac
5370fi
5371vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit
5372if test -n "$vi_cv_path_luajit"; then
5373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5
5374$as_echo "$vi_cv_path_luajit" >&6; }
5375else
5376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377$as_echo "no" >&6; }
5378fi
5379
5380
5381      if test "X$vi_cv_path_luajit" != "X"; then
5382		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5
5383$as_echo_n "checking LuaJIT version... " >&6; }
5384if ${vi_cv_version_luajit+:} false; then :
5385  $as_echo_n "(cached) " >&6
5386else
5387   vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'`
5388fi
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5
5390$as_echo "$vi_cv_version_luajit" >&6; }
5391	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5
5392$as_echo_n "checking Lua version of LuaJIT... " >&6; }
5393if ${vi_cv_version_lua_luajit+:} false; then :
5394  $as_echo_n "(cached) " >&6
5395else
5396   vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'`
5397fi
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5
5399$as_echo "$vi_cv_version_lua_luajit" >&6; }
5400	vi_cv_path_lua="$vi_cv_path_luajit"
5401	vi_cv_version_lua="$vi_cv_version_lua_luajit"
5402      fi
5403    else
5404            # Extract the first word of "lua", so it can be a program name with args.
5405set dummy lua; ac_word=$2
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5407$as_echo_n "checking for $ac_word... " >&6; }
5408if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then :
5409  $as_echo_n "(cached) " >&6
5410else
5411  case $vi_cv_path_plain_lua in
5412  [\\/]* | ?:[\\/]*)
5413  ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path.
5414  ;;
5415  *)
5416  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417for as_dir in $PATH
5418do
5419  IFS=$as_save_IFS
5420  test -z "$as_dir" && as_dir=.
5421    for ac_exec_ext in '' $ac_executable_extensions; do
5422  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5423    ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext"
5424    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425    break 2
5426  fi
5427done
5428  done
5429IFS=$as_save_IFS
5430
5431  ;;
5432esac
5433fi
5434vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua
5435if test -n "$vi_cv_path_plain_lua"; then
5436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5
5437$as_echo "$vi_cv_path_plain_lua" >&6; }
5438else
5439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440$as_echo "no" >&6; }
5441fi
5442
5443
5444      if test "X$vi_cv_path_plain_lua" != "X"; then
5445		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5
5446$as_echo_n "checking Lua version... " >&6; }
5447if ${vi_cv_version_plain_lua+:} false; then :
5448  $as_echo_n "(cached) " >&6
5449else
5450   vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'`
5451fi
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5
5453$as_echo "$vi_cv_version_plain_lua" >&6; }
5454      fi
5455      vi_cv_path_lua="$vi_cv_path_plain_lua"
5456      vi_cv_version_lua="$vi_cv_version_plain_lua"
5457    fi
5458    if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then
5459      { $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
5460$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; }
5461      if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then
5462	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5463$as_echo "yes" >&6; }
5464	LUA_INC=/luajit-$vi_cv_version_luajit
5465      fi
5466    fi
5467    if test "X$LUA_INC" = "X"; then
5468      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5
5469$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; }
5470      if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then
5471	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5472$as_echo "yes" >&6; }
5473      else
5474	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475$as_echo "no" >&6; }
5476	{ $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
5477$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; }
5478	if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then
5479	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5480$as_echo "yes" >&6; }
5481	  LUA_INC=/lua$vi_cv_version_lua
5482	else
5483	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484$as_echo "no" >&6; }
5485
5486	  # Detect moonjit:
5487	  # https://groups.google.com/forum/#!topic/vim_use/O0vek60WuTk
5488	  lua_suf=/moonjit-2.3
5489	  inc_path="$vi_cv_path_lua_pfx/include"
5490	  for dir in "$inc_path"/moonjit-[0-9]* ; do
5491	    if test -d "$dir" ; then
5492	      lua_suf=`basename '$dir'`
5493	      lua_suf="/$lua_suf"
5494	      break
5495	    fi
5496	  done
5497	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $inc_path$lua_suf" >&5
5498$as_echo_n "checking if lua.h can be found in $inc_path$lua_suf... " >&6; }
5499	  if test -f "$inc_path$lua_suf/lua.h"; then
5500	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5501$as_echo "yes" >&6; }
5502	    LUA_INC=$lua_suf
5503	  else
5504	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505$as_echo "no" >&6; }
5506	    vi_cv_path_lua_pfx=
5507	  fi
5508	fi
5509      fi
5510    fi
5511  fi
5512
5513  if test "X$vi_cv_path_lua_pfx" != "X"; then
5514    if test "x$vi_cv_with_luajit" != "xno"; then
5515      multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5516      if test "X$multiarch" != "X"; then
5517	lib_multiarch="lib/${multiarch}"
5518      else
5519	lib_multiarch="lib"
5520      fi
5521      if test "X$vi_cv_version_lua" = "X"; then
5522	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit"
5523      else
5524	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua"
5525      fi
5526    else
5527      if test "X$LUA_INC" != "X"; then
5528		LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua"
5529      else
5530	LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua"
5531      fi
5532    fi
5533    if test "$enable_luainterp" = "dynamic"; then
5534      lua_ok="yes"
5535    else
5536      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5
5537$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; }
5538      libs_save=$LIBS
5539      LIBS="$LIBS $LUA_LIBS"
5540      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541/* end confdefs.h.  */
5542
5543int
5544main ()
5545{
5546
5547  ;
5548  return 0;
5549}
5550_ACEOF
5551if ac_fn_c_try_link "$LINENO"; then :
5552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5553$as_echo "yes" >&6; }; lua_ok="yes"
5554else
5555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS=""
5557fi
5558rm -f core conftest.err conftest.$ac_objext \
5559    conftest$ac_exeext conftest.$ac_ext
5560      LIBS=$libs_save
5561    fi
5562    if test "x$lua_ok" = "xyes"; then
5563      LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}"
5564      LUA_SRC="if_lua.c"
5565      LUA_OBJ="objects/if_lua.o"
5566      LUA_PRO="if_lua.pro"
5567      $as_echo "#define FEAT_LUA 1" >>confdefs.h
5568
5569    fi
5570    if test "$enable_luainterp" = "dynamic"; then
5571      if test "x$vi_cv_with_luajit" != "xno"; then
5572	luajit="jit"
5573      fi
5574      if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
5575	vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
5576      else
5577	if test "x$MACOS_X" = "xyes"; then
5578	  ext="dylib"
5579	  indexes=""
5580	else
5581	  ext="so"
5582	  indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9"
5583	  multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5584	  if test "X$multiarch" != "X"; then
5585	    lib_multiarch="lib/${multiarch}"
5586	  fi
5587	fi
5588			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5
5589$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; }
5590	for subdir in "${lib_multiarch}" lib64 lib; do
5591	  if test -z "$subdir"; then
5592	    continue
5593	  fi
5594	  for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \
5595	    ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do
5596	    for i in $indexes ""; do
5597	      if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then
5598		sover2="$i"
5599		break 3
5600	      fi
5601	    done
5602	  done
5603	  sover=""
5604	done
5605	if test "X$sover" = "X"; then
5606	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607$as_echo "no" >&6; }
5608	  lua_ok="no"
5609	  vi_cv_dll_name_lua="liblua${luajit}.${ext}"
5610	else
5611	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5612$as_echo "yes" >&6; }
5613	  lua_ok="yes"
5614	  vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2"
5615	fi
5616      fi
5617      $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h
5618
5619      LUA_LIBS=""
5620      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS"
5621    fi
5622    if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \
5623       test "x$MACOS_X" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \
5624       test "`(uname -m) 2>/dev/null`" = "x86_64"; then
5625            LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS"
5626    fi
5627  fi
5628  if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then
5629    as_fn_error $? "could not configure lua" "$LINENO" 5
5630  fi
5631
5632
5633
5634
5635
5636fi
5637
5638
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5
5640$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
5641# Check whether --enable-mzschemeinterp was given.
5642if test "${enable_mzschemeinterp+set}" = set; then :
5643  enableval=$enable_mzschemeinterp;
5644else
5645  enable_mzschemeinterp="no"
5646fi
5647
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5
5649$as_echo "$enable_mzschemeinterp" >&6; }
5650
5651if test "$enable_mzschemeinterp" = "yes"; then
5652
5653
5654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5
5655$as_echo_n "checking --with-plthome argument... " >&6; }
5656
5657# Check whether --with-plthome was given.
5658if test "${with_plthome+set}" = set; then :
5659  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5
5660$as_echo "$with_plthome" >&6; }
5661else
5662  with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5663$as_echo "\"no\"" >&6; }
5664fi
5665
5666
5667  if test "X$with_plthome" != "X"; then
5668       vi_cv_path_mzscheme_pfx="$with_plthome"
5669       vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5670  else
5671    { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5
5672$as_echo_n "checking PLTHOME environment var... " >&6; }
5673    if test "X$PLTHOME" != "X"; then
5674	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5
5675$as_echo "\"$PLTHOME\"" >&6; }
5676	vi_cv_path_mzscheme_pfx="$PLTHOME"
5677	vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5678    else
5679	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
5680$as_echo "not set" >&6; }
5681		# Extract the first word of "mzscheme", so it can be a program name with args.
5682set dummy mzscheme; ac_word=$2
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684$as_echo_n "checking for $ac_word... " >&6; }
5685if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then :
5686  $as_echo_n "(cached) " >&6
5687else
5688  case $vi_cv_path_mzscheme in
5689  [\\/]* | ?:[\\/]*)
5690  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
5691  ;;
5692  *)
5693  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694for as_dir in $PATH
5695do
5696  IFS=$as_save_IFS
5697  test -z "$as_dir" && as_dir=.
5698    for ac_exec_ext in '' $ac_executable_extensions; do
5699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
5701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702    break 2
5703  fi
5704done
5705  done
5706IFS=$as_save_IFS
5707
5708  ;;
5709esac
5710fi
5711vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
5712if test -n "$vi_cv_path_mzscheme"; then
5713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5
5714$as_echo "$vi_cv_path_mzscheme" >&6; }
5715else
5716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717$as_echo "no" >&6; }
5718fi
5719
5720
5721
5722			if test "X$vi_cv_path_mzscheme" != "X"; then
5723	  lsout=`ls -l $vi_cv_path_mzscheme`
5724	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
5725	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
5726	  fi
5727	fi
5728
5729	if test "X$vi_cv_path_mzscheme" != "X"; then
5730	    	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5
5731$as_echo_n "checking MzScheme install prefix... " >&6; }
5732if ${vi_cv_path_mzscheme_pfx+:} false; then :
5733  $as_echo_n "(cached) " >&6
5734else
5735  	    	    echo "(display (simplify-path		\
5736	       (build-path (call-with-values	\
5737		(lambda () (split-path (find-system-path (quote exec-file)))) \
5738		(lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
5739	    	     vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
5740		sed -e 's+/$++'`
5741fi
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5
5743$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
5744	    rm -f mzdirs.scm
5745	fi
5746    fi
5747  fi
5748
5749  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5750    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5
5751$as_echo_n "checking for racket include directory... " >&6; }
5752    SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'`
5753    if test "X$SCHEME_INC" != "X"; then
5754      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5
5755$as_echo "${SCHEME_INC}" >&6; }
5756    else
5757      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5758$as_echo "not found" >&6; }
5759      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
5760$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
5761      if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then
5762	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
5763	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5764$as_echo "yes" >&6; }
5765      else
5766	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767$as_echo "no" >&6; }
5768	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
5769$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
5770	if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then
5771	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5772$as_echo "yes" >&6; }
5773	  SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
5774	else
5775	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776$as_echo "no" >&6; }
5777	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5
5778$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; }
5779	  if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then
5780	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5781$as_echo "yes" >&6; }
5782	    SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket
5783	  else
5784	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785$as_echo "no" >&6; }
5786	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5
5787$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
5788	    if test -f /usr/include/plt/scheme.h; then
5789	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5790$as_echo "yes" >&6; }
5791	      SCHEME_INC=/usr/include/plt
5792	    else
5793	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794$as_echo "no" >&6; }
5795	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5
5796$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; }
5797	      if test -f /usr/include/racket/scheme.h; then
5798		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5799$as_echo "yes" >&6; }
5800		SCHEME_INC=/usr/include/racket
5801	      else
5802		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803$as_echo "no" >&6; }
5804		vi_cv_path_mzscheme_pfx=
5805	      fi
5806	    fi
5807	  fi
5808	fi
5809      fi
5810    fi
5811  fi
5812
5813  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5814
5815    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5
5816$as_echo_n "checking for racket lib directory... " >&6; }
5817    SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'`
5818    if test "X$SCHEME_LIB" != "X"; then
5819      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5
5820$as_echo "${SCHEME_LIB}" >&6; }
5821    else
5822      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5823$as_echo "not found" >&6; }
5824    fi
5825
5826    for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do
5827      if test "X$path" != "X"; then
5828	if test "x$MACOS_X" = "xyes"; then
5829	  MZSCHEME_LIBS="-framework Racket"
5830	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5831	elif test -f "${path}/libmzscheme3m.a"; then
5832	  MZSCHEME_LIBS="${path}/libmzscheme3m.a"
5833	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5834	elif test -f "${path}/libracket3m.a"; then
5835	  MZSCHEME_LIBS="${path}/libracket3m.a"
5836	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5837	elif test -f "${path}/libracket.a"; then
5838	  MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a"
5839	elif test -f "${path}/libmzscheme.a"; then
5840	  MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a"
5841	else
5842	  	  if test -f "${path}/libmzscheme3m.so"; then
5843	    MZSCHEME_LIBS="-L${path} -lmzscheme3m"
5844	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5845	  elif test -f "${path}/libracket3m.so"; then
5846	    MZSCHEME_LIBS="-L${path} -lracket3m"
5847	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5848	  elif test -f "${path}/libracket.so"; then
5849	    MZSCHEME_LIBS="-L${path} -lracket -lmzgc"
5850	  else
5851	    	    if test "$path" != "$SCHEME_LIB"; then
5852	      continue
5853	    fi
5854	    MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc"
5855	  fi
5856	  if test "$GCC" = yes; then
5857	    	    	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}"
5858	  elif test "`(uname) 2>/dev/null`" = SunOS &&
5859				   uname -r | grep '^5' >/dev/null; then
5860	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}"
5861	  fi
5862	fi
5863      fi
5864      if test "X$MZSCHEME_LIBS" != "X"; then
5865	break
5866      fi
5867    done
5868
5869    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5
5870$as_echo_n "checking if racket requires -pthread... " >&6; }
5871    if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then
5872      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5873$as_echo "yes" >&6; }
5874      MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread"
5875      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread"
5876    else
5877      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878$as_echo "no" >&6; }
5879    fi
5880
5881    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5
5882$as_echo_n "checking for racket config directory... " >&6; }
5883    SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'`
5884    if test "X$SCHEME_CONFIGDIR" != "X"; then
5885      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'"
5886      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5
5887$as_echo "${SCHEME_CONFIGDIR}" >&6; }
5888    else
5889      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5890$as_echo "not found" >&6; }
5891    fi
5892
5893    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5
5894$as_echo_n "checking for racket collects directory... " >&6; }
5895    SCHEME_COLLECTS=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-collects-dir))) (when (path? p) (let-values (((base _1 _2) (split-path p))) (display base))))'`
5896    if test "X$SCHEME_COLLECTS" = "X"; then
5897      if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then
5898	SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/
5899      else
5900	if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then
5901	  SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/
5902	else
5903	  if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then
5904	    SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/
5905	  else
5906	    if test -d "$vi_cv_path_mzscheme_pfx/collects"; then
5907	      SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/
5908	    fi
5909	  fi
5910	fi
5911      fi
5912    fi
5913    if test "X$SCHEME_COLLECTS" != "X" ; then
5914      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5
5915$as_echo "${SCHEME_COLLECTS}" >&6; }
5916    else
5917      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5918$as_echo "not found" >&6; }
5919    fi
5920
5921    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5
5922$as_echo_n "checking for mzscheme_base.c... " >&6; }
5923    if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
5924      MZSCHEME_EXTRA="mzscheme_base.c"
5925      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5926      MZSCHEME_MOD="++lib scheme/base"
5927    else
5928      if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then
5929	MZSCHEME_EXTRA="mzscheme_base.c"
5930	MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5931	MZSCHEME_MOD="++lib scheme/base"
5932      else
5933	if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then
5934	  MZSCHEME_EXTRA="mzscheme_base.c"
5935	  MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool"
5936	  MZSCHEME_MOD=""
5937	fi
5938      fi
5939    fi
5940    if test "X$MZSCHEME_EXTRA" != "X" ; then
5941            MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
5942      { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5
5943$as_echo "needed" >&6; }
5944    else
5945      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
5946$as_echo "not needed" >&6; }
5947    fi
5948
5949        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5
5950$as_echo_n "checking for ffi_type_void in -lffi... " >&6; }
5951if ${ac_cv_lib_ffi_ffi_type_void+:} false; then :
5952  $as_echo_n "(cached) " >&6
5953else
5954  ac_check_lib_save_LIBS=$LIBS
5955LIBS="-lffi  $LIBS"
5956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957/* end confdefs.h.  */
5958
5959/* Override any GCC internal prototype to avoid an error.
5960   Use char because int might match the return type of a GCC
5961   builtin and then its argument prototype would still apply.  */
5962#ifdef __cplusplus
5963extern "C"
5964#endif
5965char ffi_type_void ();
5966int
5967main ()
5968{
5969return ffi_type_void ();
5970  ;
5971  return 0;
5972}
5973_ACEOF
5974if ac_fn_c_try_link "$LINENO"; then :
5975  ac_cv_lib_ffi_ffi_type_void=yes
5976else
5977  ac_cv_lib_ffi_ffi_type_void=no
5978fi
5979rm -f core conftest.err conftest.$ac_objext \
5980    conftest$ac_exeext conftest.$ac_ext
5981LIBS=$ac_check_lib_save_LIBS
5982fi
5983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5
5984$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; }
5985if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then :
5986  MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi"
5987fi
5988
5989
5990    MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
5991      -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'"
5992
5993        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5
5994$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; }
5995    cflags_save=$CFLAGS
5996    libs_save=$LIBS
5997    CFLAGS="$CFLAGS $MZSCHEME_CFLAGS"
5998    LIBS="$LIBS $MZSCHEME_LIBS"
5999    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000/* end confdefs.h.  */
6001
6002int
6003main ()
6004{
6005
6006  ;
6007  return 0;
6008}
6009_ACEOF
6010if ac_fn_c_try_link "$LINENO"; then :
6011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6012$as_echo "yes" >&6; }; mzs_ok=yes
6013else
6014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5
6015$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no
6016fi
6017rm -f core conftest.err conftest.$ac_objext \
6018    conftest$ac_exeext conftest.$ac_ext
6019    CFLAGS=$cflags_save
6020    LIBS=$libs_save
6021    if test $mzs_ok = yes; then
6022      MZSCHEME_SRC="if_mzsch.c"
6023      MZSCHEME_OBJ="objects/if_mzsch.o"
6024      MZSCHEME_PRO="if_mzsch.pro"
6025      $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h
6026
6027    else
6028      MZSCHEME_CFLAGS=
6029      MZSCHEME_LIBS=
6030      MZSCHEME_EXTRA=
6031      MZSCHEME_MZC=
6032    fi
6033  fi
6034
6035
6036
6037
6038
6039
6040
6041fi
6042
6043
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5
6045$as_echo_n "checking --enable-perlinterp argument... " >&6; }
6046# Check whether --enable-perlinterp was given.
6047if test "${enable_perlinterp+set}" = set; then :
6048  enableval=$enable_perlinterp;
6049else
6050  enable_perlinterp="no"
6051fi
6052
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5
6054$as_echo "$enable_perlinterp" >&6; }
6055if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
6056  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6057    as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5
6058  fi
6059
6060  # Extract the first word of "perl", so it can be a program name with args.
6061set dummy perl; ac_word=$2
6062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063$as_echo_n "checking for $ac_word... " >&6; }
6064if ${ac_cv_path_vi_cv_path_perl+:} false; then :
6065  $as_echo_n "(cached) " >&6
6066else
6067  case $vi_cv_path_perl in
6068  [\\/]* | ?:[\\/]*)
6069  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
6070  ;;
6071  *)
6072  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073for as_dir in $PATH
6074do
6075  IFS=$as_save_IFS
6076  test -z "$as_dir" && as_dir=.
6077    for ac_exec_ext in '' $ac_executable_extensions; do
6078  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
6080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081    break 2
6082  fi
6083done
6084  done
6085IFS=$as_save_IFS
6086
6087  ;;
6088esac
6089fi
6090vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
6091if test -n "$vi_cv_path_perl"; then
6092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5
6093$as_echo "$vi_cv_path_perl" >&6; }
6094else
6095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096$as_echo "no" >&6; }
6097fi
6098
6099
6100  if test "X$vi_cv_path_perl" != "X"; then
6101    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5
6102$as_echo_n "checking Perl version... " >&6; }
6103    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
6104     eval `$vi_cv_path_perl -V:usethreads`
6105     eval `$vi_cv_path_perl -V:libperl`
6106     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
6107       badthreads=no
6108     else
6109       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
6110	 eval `$vi_cv_path_perl -V:use5005threads`
6111	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
6112	   badthreads=no
6113	 else
6114	   badthreads=yes
6115	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
6116$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
6117	 fi
6118       else
6119	 badthreads=yes
6120	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
6121$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
6122       fi
6123     fi
6124     if test $badthreads = no; then
6125      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
6126$as_echo "OK" >&6; }
6127      eval `$vi_cv_path_perl -V:shrpenv`
6128      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
6129	shrpenv=""
6130      fi
6131      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
6132
6133      vi_cv_perl_extutils=unknown_perl_extutils_path
6134      for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do
6135	xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp"
6136	if test -f "$xsubpp_path"; then
6137	  vi_cv_perl_xsubpp="$xsubpp_path"
6138	fi
6139      done
6140
6141                              perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
6142		-e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \
6143		-e 's/-fdebug-prefix-map[^ ]*//g' \
6144		-e 's/-pipe //' \
6145		-e 's/-W[^ ]*//g' \
6146		-e 's/-D_FORTIFY_SOURCE=.//g'`
6147            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
6148		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
6149			-e 's/-bE:perl.exp//' -e 's/-lc //'`
6150                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
6151		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
6152
6153                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5
6154$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
6155      cflags_save=$CFLAGS
6156      libs_save=$LIBS
6157      ldflags_save=$LDFLAGS
6158      CFLAGS="$CFLAGS $perlcppflags"
6159      LIBS="$LIBS $perllibs"
6160      perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'`
6161      LDFLAGS="$perlldflags $LDFLAGS"
6162      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163/* end confdefs.h.  */
6164
6165int
6166main ()
6167{
6168
6169  ;
6170  return 0;
6171}
6172_ACEOF
6173if ac_fn_c_try_link "$LINENO"; then :
6174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6175$as_echo "yes" >&6; }; perl_ok=yes
6176else
6177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5
6178$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
6179fi
6180rm -f core conftest.err conftest.$ac_objext \
6181    conftest$ac_exeext conftest.$ac_ext
6182      CFLAGS=$cflags_save
6183      LIBS=$libs_save
6184      LDFLAGS=$ldflags_save
6185      if test $perl_ok = yes; then
6186	if test "X$perlcppflags" != "X"; then
6187	  PERL_CFLAGS=$perlcppflags
6188	fi
6189	if test "X$perlldflags" != "X"; then
6190	  if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then
6191	    LDFLAGS="$perlldflags $LDFLAGS"
6192	  fi
6193	fi
6194	PERL_LIBS=$perllibs
6195	PERL_SRC="auto/if_perl.c if_perlsfio.c"
6196	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
6197	PERL_PRO="if_perl.pro if_perlsfio.pro"
6198	$as_echo "#define FEAT_PERL 1" >>confdefs.h
6199
6200      fi
6201     fi
6202    else
6203      { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
6204$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
6205    fi
6206  fi
6207
6208  if test "x$MACOS_X" = "xyes"; then
6209        dir=/System/Library/Perl
6210    darwindir=$dir/darwin
6211    if test -d $darwindir; then
6212      PERL=/usr/bin/perl
6213    else
6214            dir=/System/Library/Perl/5.8.1
6215      darwindir=$dir/darwin-thread-multi-2level
6216      if test -d $darwindir; then
6217	PERL=/usr/bin/perl
6218      fi
6219    fi
6220    if test -n "$PERL"; then
6221      PERL_DIR="$dir"
6222      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
6223      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
6224      PERL_LIBS="-L$darwindir/CORE -lperl"
6225    fi
6226                PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
6227    PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
6228  fi
6229  if test "$enable_perlinterp" = "dynamic"; then
6230    if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then
6231      $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h
6232
6233      PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
6234    fi
6235  fi
6236
6237  if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
6238    as_fn_error $? "could not configure perl" "$LINENO" 5
6239  fi
6240fi
6241
6242
6243
6244
6245
6246
6247
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5
6249$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
6250# Check whether --enable-pythoninterp was given.
6251if test "${enable_pythoninterp+set}" = set; then :
6252  enableval=$enable_pythoninterp;
6253else
6254  enable_pythoninterp="no"
6255fi
6256
6257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
6258$as_echo "$enable_pythoninterp" >&6; }
6259if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
6260  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6261    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6262  fi
6263
6264    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python-command argument" >&5
6265$as_echo_n "checking --with-python-command argument... " >&6; }
6266
6267
6268# Check whether --with-python-command was given.
6269if test "${with_python_command+set}" = set; then :
6270  withval=$with_python_command; vi_cv_path_python="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
6271$as_echo "$vi_cv_path_python" >&6; }
6272else
6273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274$as_echo "no" >&6; }
6275fi
6276
6277
6278  if test "X$vi_cv_path_python" = "X"; then
6279    for ac_prog in python2 python
6280do
6281  # Extract the first word of "$ac_prog", so it can be a program name with args.
6282set dummy $ac_prog; ac_word=$2
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284$as_echo_n "checking for $ac_word... " >&6; }
6285if ${ac_cv_path_vi_cv_path_python+:} false; then :
6286  $as_echo_n "(cached) " >&6
6287else
6288  case $vi_cv_path_python in
6289  [\\/]* | ?:[\\/]*)
6290  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
6291  ;;
6292  *)
6293  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296  IFS=$as_save_IFS
6297  test -z "$as_dir" && as_dir=.
6298    for ac_exec_ext in '' $ac_executable_extensions; do
6299  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
6301    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302    break 2
6303  fi
6304done
6305  done
6306IFS=$as_save_IFS
6307
6308  ;;
6309esac
6310fi
6311vi_cv_path_python=$ac_cv_path_vi_cv_path_python
6312if test -n "$vi_cv_path_python"; then
6313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
6314$as_echo "$vi_cv_path_python" >&6; }
6315else
6316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317$as_echo "no" >&6; }
6318fi
6319
6320
6321  test -n "$vi_cv_path_python" && break
6322done
6323
6324  fi
6325  if test "X$vi_cv_path_python" != "X"; then
6326
6327        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6328$as_echo_n "checking Python version... " >&6; }
6329if ${vi_cv_var_python_version+:} false; then :
6330  $as_echo_n "(cached) " >&6
6331else
6332  vi_cv_var_python_version=`
6333	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
6334
6335fi
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5
6337$as_echo "$vi_cv_var_python_version" >&6; }
6338
6339        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5
6340$as_echo_n "checking Python is 2.3 or better... " >&6; }
6341    if ${vi_cv_path_python} -c \
6342	"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"
6343    then
6344      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6345$as_echo "yep" >&6; }
6346
6347            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6348$as_echo_n "checking Python's install prefix... " >&6; }
6349if ${vi_cv_path_python_pfx+:} false; then :
6350  $as_echo_n "(cached) " >&6
6351else
6352   vi_cv_path_python_pfx=`
6353	    ${vi_cv_path_python} -c \
6354		"import sys; print sys.prefix"`
6355fi
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5
6357$as_echo "$vi_cv_path_python_pfx" >&6; }
6358
6359            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6360$as_echo_n "checking Python's execution prefix... " >&6; }
6361if ${vi_cv_path_python_epfx+:} false; then :
6362  $as_echo_n "(cached) " >&6
6363else
6364   vi_cv_path_python_epfx=`
6365	    ${vi_cv_path_python} -c \
6366		"import sys; print sys.exec_prefix"`
6367fi
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5
6369$as_echo "$vi_cv_path_python_epfx" >&6; }
6370
6371
6372      if ${vi_cv_path_pythonpath+:} false; then :
6373  $as_echo_n "(cached) " >&6
6374else
6375   vi_cv_path_pythonpath=`
6376	    unset PYTHONPATH;
6377	    ${vi_cv_path_python} -c \
6378		"import sys, string; print string.join(sys.path,':')"`
6379fi
6380
6381
6382
6383
6384# Check whether --with-python-config-dir was given.
6385if test "${with_python_config_dir+set}" = set; then :
6386  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"; have_python_config_dir=1
6387fi
6388
6389
6390      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6391$as_echo_n "checking Python's configuration directory... " >&6; }
6392if ${vi_cv_path_python_conf+:} false; then :
6393  $as_echo_n "(cached) " >&6
6394else
6395
6396	vi_cv_path_python_conf=
6397	d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"`
6398	if test -d "$d" && test -f "$d/config.c"; then
6399	  vi_cv_path_python_conf="$d"
6400	else
6401	  for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
6402	    for subdir in lib64 lib share; do
6403	      d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
6404	      if test -d "$d" && test -f "$d/config.c"; then
6405		vi_cv_path_python_conf="$d"
6406	      fi
6407	    done
6408	  done
6409	fi
6410
6411fi
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5
6413$as_echo "$vi_cv_path_python_conf" >&6; }
6414
6415      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
6416
6417      if test "X$PYTHON_CONFDIR" = "X"; then
6418	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6419$as_echo "can't find it!" >&6; }
6420      else
6421
6422			if ${vi_cv_path_python_plibs+:} false; then :
6423  $as_echo_n "(cached) " >&6
6424else
6425
6426	    pwd=`pwd`
6427	    tmp_mkf="$pwd/config-PyMake$$"
6428	    cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6429__:
6430	@echo "python_BASEMODLIBS='$(BASEMODLIBS)'"
6431	@echo "python_LIBS='$(LIBS)'"
6432	@echo "python_SYSLIBS='$(SYSLIBS)'"
6433	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
6434	@echo "python_DLLLIBRARY='$(DLLLIBRARY)'"
6435	@echo "python_INSTSONAME='$(INSTSONAME)'"
6436	@echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'"
6437	@echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'"
6438	@echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'"
6439eof
6440	    	    eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6441	    rm -f -- "${tmp_mkf}"
6442	    if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \
6443		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
6444	      vi_cv_path_python_plibs="-framework Python"
6445	      if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6446		  vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python"
6447	      fi
6448	    else
6449	      vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
6450	      	      	      	      if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6451	        python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'`
6452		python_link_path=`echo ${python_LINKFORSHARED} |   sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'`
6453	        if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6454	          		  	          python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}"
6455		  if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6456		    		    python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}"
6457	            	            		  fi
6458	          python_LINKFORSHARED="${python_link_symbol} ${python_link_path}"
6459	        fi
6460	      fi
6461	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
6462	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
6463	    fi
6464
6465fi
6466
6467	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5
6468$as_echo_n "checking Python's dll name... " >&6; }
6469if ${vi_cv_dll_name_python+:} false; then :
6470  $as_echo_n "(cached) " >&6
6471else
6472
6473	  if test "X$python_DLLLIBRARY" != "X"; then
6474	    vi_cv_dll_name_python="$python_DLLLIBRARY"
6475	  else
6476	    vi_cv_dll_name_python="$python_INSTSONAME"
6477	  fi
6478
6479fi
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5
6481$as_echo "$vi_cv_dll_name_python" >&6; }
6482
6483	PYTHON_LIBS="${vi_cv_path_python_plibs}"
6484	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
6485	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
6486	else
6487	  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}"
6488	fi
6489	if test "X$have_python_config_dir" = "X1" -a "$enable_pythoninterp" = "dynamic"; then
6490	  	  PYTHON_CFLAGS="${PYTHON_CFLAGS} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'"
6491
6492	fi
6493	PYTHON_SRC="if_python.c"
6494	PYTHON_OBJ="objects/if_python.o"
6495
6496								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6497$as_echo_n "checking if -pthread should be used... " >&6; }
6498	threadsafe_flag=
6499	thread_lib=
6500	        if test "`(uname) 2>/dev/null`" != Darwin; then
6501	  test "$GCC" = yes && threadsafe_flag="-pthread"
6502	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
6503	    threadsafe_flag="-D_THREAD_SAFE"
6504	    thread_lib="-pthread"
6505	  fi
6506	  if test "`(uname) 2>/dev/null`" = SunOS; then
6507	    threadsafe_flag="-pthreads"
6508	  fi
6509	fi
6510	libs_save_old=$LIBS
6511	if test -n "$threadsafe_flag"; then
6512	  cflags_save=$CFLAGS
6513	  CFLAGS="$CFLAGS $threadsafe_flag"
6514	  LIBS="$LIBS $thread_lib"
6515	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516/* end confdefs.h.  */
6517
6518int
6519main ()
6520{
6521
6522  ;
6523  return 0;
6524}
6525_ACEOF
6526if ac_fn_c_try_link "$LINENO"; then :
6527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6528$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
6529else
6530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531$as_echo "no" >&6; }; LIBS=$libs_save_old
6532
6533fi
6534rm -f core conftest.err conftest.$ac_objext \
6535    conftest$ac_exeext conftest.$ac_ext
6536	  CFLAGS=$cflags_save
6537	else
6538	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6539$as_echo "no" >&6; }
6540	fi
6541
6542			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5
6543$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
6544	cflags_save=$CFLAGS
6545	libs_save=$LIBS
6546	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6547	LIBS="$LIBS $PYTHON_LIBS"
6548	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549/* end confdefs.h.  */
6550
6551int
6552main ()
6553{
6554
6555  ;
6556  return 0;
6557}
6558_ACEOF
6559if ac_fn_c_try_link "$LINENO"; then :
6560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6561$as_echo "yes" >&6; }; python_ok=yes
6562else
6563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5
6564$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
6565fi
6566rm -f core conftest.err conftest.$ac_objext \
6567    conftest$ac_exeext conftest.$ac_ext
6568	CFLAGS=$cflags_save
6569	LIBS=$libs_save
6570	if test $python_ok = yes; then
6571	  $as_echo "#define FEAT_PYTHON 1" >>confdefs.h
6572
6573	else
6574	  LIBS=$libs_save_old
6575	  PYTHON_SRC=
6576	  PYTHON_OBJ=
6577	  PYTHON_LIBS=
6578	  PYTHON_CFLAGS=
6579	fi
6580      fi
6581    else
6582      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6583$as_echo "too old" >&6; }
6584    fi
6585  fi
6586
6587  if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
6588    as_fn_error $? "could not configure python" "$LINENO" 5
6589  fi
6590fi
6591
6592
6593
6594
6595
6596
6597
6598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5
6599$as_echo_n "checking --enable-python3interp argument... " >&6; }
6600# Check whether --enable-python3interp was given.
6601if test "${enable_python3interp+set}" = set; then :
6602  enableval=$enable_python3interp;
6603else
6604  enable_python3interp="no"
6605fi
6606
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5
6608$as_echo "$enable_python3interp" >&6; }
6609if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
6610  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6611    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6612  fi
6613
6614    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python3-command argument" >&5
6615$as_echo_n "checking --with-python3-command argument... " >&6; }
6616
6617
6618# Check whether --with-python3-command was given.
6619if test "${with_python3_command+set}" = set; then :
6620  withval=$with_python3_command; vi_cv_path_python3="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6621$as_echo "$vi_cv_path_python3" >&6; }
6622else
6623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624$as_echo "no" >&6; }
6625fi
6626
6627
6628  if test "X$vi_cv_path_python3" = "X"; then
6629    for ac_prog in python3 python
6630do
6631  # Extract the first word of "$ac_prog", so it can be a program name with args.
6632set dummy $ac_prog; ac_word=$2
6633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634$as_echo_n "checking for $ac_word... " >&6; }
6635if ${ac_cv_path_vi_cv_path_python3+:} false; then :
6636  $as_echo_n "(cached) " >&6
6637else
6638  case $vi_cv_path_python3 in
6639  [\\/]* | ?:[\\/]*)
6640  ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path.
6641  ;;
6642  *)
6643  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644for as_dir in $PATH
6645do
6646  IFS=$as_save_IFS
6647  test -z "$as_dir" && as_dir=.
6648    for ac_exec_ext in '' $ac_executable_extensions; do
6649  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650    ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext"
6651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652    break 2
6653  fi
6654done
6655  done
6656IFS=$as_save_IFS
6657
6658  ;;
6659esac
6660fi
6661vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3
6662if test -n "$vi_cv_path_python3"; then
6663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6664$as_echo "$vi_cv_path_python3" >&6; }
6665else
6666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667$as_echo "no" >&6; }
6668fi
6669
6670
6671  test -n "$vi_cv_path_python3" && break
6672done
6673
6674  fi
6675  if test "X$vi_cv_path_python3" != "X"; then
6676
6677        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6678$as_echo_n "checking Python version... " >&6; }
6679if ${vi_cv_var_python3_version+:} false; then :
6680  $as_echo_n "(cached) " >&6
6681else
6682  vi_cv_var_python3_version=`
6683          ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'`
6684
6685fi
6686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5
6687$as_echo "$vi_cv_var_python3_version" >&6; }
6688
6689        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5
6690$as_echo_n "checking Python is 3.0 or better... " >&6; }
6691    if ${vi_cv_path_python3} -c \
6692      "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)"
6693    then
6694      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6695$as_echo "yep" >&6; }
6696
6697            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5
6698$as_echo_n "checking Python's abiflags... " >&6; }
6699if ${vi_cv_var_python3_abiflags+:} false; then :
6700  $as_echo_n "(cached) " >&6
6701else
6702
6703       vi_cv_var_python3_abiflags=
6704       if ${vi_cv_path_python3} -c \
6705           "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)"
6706       then
6707         vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \
6708           "import sys; print(sys.abiflags)"`
6709       fi
6710fi
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5
6712$as_echo "$vi_cv_var_python3_abiflags" >&6; }
6713
6714            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6715$as_echo_n "checking Python's install prefix... " >&6; }
6716if ${vi_cv_path_python3_pfx+:} false; then :
6717  $as_echo_n "(cached) " >&6
6718else
6719   vi_cv_path_python3_pfx=`
6720       ${vi_cv_path_python3} -c \
6721       "import sys; print(sys.prefix)"`
6722fi
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5
6724$as_echo "$vi_cv_path_python3_pfx" >&6; }
6725
6726            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6727$as_echo_n "checking Python's execution prefix... " >&6; }
6728if ${vi_cv_path_python3_epfx+:} false; then :
6729  $as_echo_n "(cached) " >&6
6730else
6731   vi_cv_path_python3_epfx=`
6732       ${vi_cv_path_python3} -c \
6733       "import sys; print(sys.exec_prefix)"`
6734fi
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5
6736$as_echo "$vi_cv_path_python3_epfx" >&6; }
6737
6738
6739      if ${vi_cv_path_python3path+:} false; then :
6740  $as_echo_n "(cached) " >&6
6741else
6742   vi_cv_path_python3path=`
6743       unset PYTHONPATH;
6744       ${vi_cv_path_python3} -c \
6745       "import sys, string; print(':'.join(sys.path))"`
6746fi
6747
6748
6749
6750
6751# Check whether --with-python3-config-dir was given.
6752if test "${with_python3_config_dir+set}" = set; then :
6753  withval=$with_python3_config_dir;  vi_cv_path_python3_conf="${withval}"; have_python3_config_dir=1
6754fi
6755
6756
6757      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6758$as_echo_n "checking Python's configuration directory... " >&6; }
6759if ${vi_cv_path_python3_conf+:} false; then :
6760  $as_echo_n "(cached) " >&6
6761else
6762
6763       vi_cv_path_python3_conf=
6764       config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6765       d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"`
6766       if test -d "$d" && test -f "$d/config.c"; then
6767         vi_cv_path_python3_conf="$d"
6768       else
6769         for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do
6770	   for subdir in lib64 lib share; do
6771	     d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}"
6772	     if test -d "$d" && test -f "$d/config.c"; then
6773	       vi_cv_path_python3_conf="$d"
6774	     fi
6775	   done
6776         done
6777       fi
6778
6779fi
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5
6781$as_echo "$vi_cv_path_python3_conf" >&6; }
6782
6783      PYTHON3_CONFDIR="${vi_cv_path_python3_conf}"
6784
6785      if test "X$PYTHON3_CONFDIR" = "X"; then
6786        { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6787$as_echo "can't find it!" >&6; }
6788      else
6789
6790                        if ${vi_cv_path_python3_plibs+:} false; then :
6791  $as_echo_n "(cached) " >&6
6792else
6793
6794            pwd=`pwd`
6795            tmp_mkf="$pwd/config-PyMake$$"
6796            cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6797__:
6798	@echo "python3_BASEMODLIBS='$(BASEMODLIBS)'"
6799	@echo "python3_LIBS='$(LIBS)'"
6800	@echo "python3_SYSLIBS='$(SYSLIBS)'"
6801	@echo "python3_DLLLIBRARY='$(DLLLIBRARY)'"
6802	@echo "python3_INSTSONAME='$(INSTSONAME)'"
6803eof
6804	    	    eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6805	    rm -f -- "${tmp_mkf}"
6806	    vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6807	    vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
6808	    	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
6809	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
6810
6811fi
6812
6813	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5
6814$as_echo_n "checking Python3's dll name... " >&6; }
6815if ${vi_cv_dll_name_python3+:} false; then :
6816  $as_echo_n "(cached) " >&6
6817else
6818
6819	  if test "X$python3_DLLLIBRARY" != "X"; then
6820	    vi_cv_dll_name_python3="$python3_DLLLIBRARY"
6821	  else
6822	    vi_cv_dll_name_python3="$python3_INSTSONAME"
6823	  fi
6824
6825fi
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5
6827$as_echo "$vi_cv_dll_name_python3" >&6; }
6828
6829        PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
6830        if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
6831          PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6832        else
6833          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}"
6834        fi
6835	if test "X$have_python3_config_dir" = "X1" -a "$enable_python3interp" = "dynamic"; then
6836	  	  PYTHON3_CFLAGS="${PYTHON3_CFLAGS}  -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'"
6837	fi
6838        PYTHON3_SRC="if_python3.c"
6839        PYTHON3_OBJ="objects/if_python3.o"
6840
6841                                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6842$as_echo_n "checking if -pthread should be used... " >&6; }
6843        threadsafe_flag=
6844        thread_lib=
6845                if test "`(uname) 2>/dev/null`" != Darwin; then
6846          test "$GCC" = yes && threadsafe_flag="-pthread"
6847          if test "`(uname) 2>/dev/null`" = FreeBSD; then
6848            threadsafe_flag="-D_THREAD_SAFE"
6849            thread_lib="-pthread"
6850          fi
6851          if test "`(uname) 2>/dev/null`" = SunOS; then
6852            threadsafe_flag="-pthreads"
6853          fi
6854        fi
6855        libs_save_old=$LIBS
6856        if test -n "$threadsafe_flag"; then
6857          cflags_save=$CFLAGS
6858          CFLAGS="$CFLAGS $threadsafe_flag"
6859          LIBS="$LIBS $thread_lib"
6860          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861/* end confdefs.h.  */
6862
6863int
6864main ()
6865{
6866
6867  ;
6868  return 0;
6869}
6870_ACEOF
6871if ac_fn_c_try_link "$LINENO"; then :
6872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6873$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag"
6874else
6875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876$as_echo "no" >&6; }; LIBS=$libs_save_old
6877
6878fi
6879rm -f core conftest.err conftest.$ac_objext \
6880    conftest$ac_exeext conftest.$ac_ext
6881          CFLAGS=$cflags_save
6882        else
6883          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884$as_echo "no" >&6; }
6885        fi
6886
6887                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5
6888$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; }
6889        cflags_save=$CFLAGS
6890        libs_save=$LIBS
6891        CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6892        LIBS="$LIBS $PYTHON3_LIBS"
6893        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894/* end confdefs.h.  */
6895
6896int
6897main ()
6898{
6899
6900  ;
6901  return 0;
6902}
6903_ACEOF
6904if ac_fn_c_try_link "$LINENO"; then :
6905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6906$as_echo "yes" >&6; }; python3_ok=yes
6907else
6908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5
6909$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no
6910fi
6911rm -f core conftest.err conftest.$ac_objext \
6912    conftest$ac_exeext conftest.$ac_ext
6913        CFLAGS=$cflags_save
6914        LIBS=$libs_save
6915        if test "$python3_ok" = yes; then
6916          $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h
6917
6918        else
6919          LIBS=$libs_save_old
6920          PYTHON3_SRC=
6921          PYTHON3_OBJ=
6922          PYTHON3_LIBS=
6923          PYTHON3_CFLAGS=
6924        fi
6925      fi
6926    else
6927      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6928$as_echo "too old" >&6; }
6929    fi
6930  fi
6931  if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then
6932    as_fn_error $? "could not configure python3" "$LINENO" 5
6933  fi
6934fi
6935
6936
6937
6938
6939
6940
6941if test "$python_ok" = yes && test "$python3_ok" = yes; then
6942  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
6943
6944  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
6945
6946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5
6947$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; }
6948  cflags_save=$CFLAGS
6949  CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6950  libs_save=$LIBS
6951    LIBS="-ldl $LIBS"
6952  if test "$cross_compiling" = yes; then :
6953  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6954$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6955as_fn_error $? "cannot run test program while cross compiling
6956See \`config.log' for more details" "$LINENO" 5; }
6957else
6958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959/* end confdefs.h.  */
6960
6961    #include <dlfcn.h>
6962    /* If this program fails, then RTLD_GLOBAL is needed.
6963     * RTLD_GLOBAL will be used and then it is not possible to
6964     * have both python versions enabled in the same vim instance.
6965     * Only the first python version used will be switched on.
6966     */
6967
6968    int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
6969    {
6970      int needed = 0;
6971      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
6972      if (pylib != 0)
6973      {
6974          void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome");
6975          void (*init)(void) = dlsym(pylib, "Py_Initialize");
6976          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
6977          void (*final)(void) = dlsym(pylib, "Py_Finalize");
6978          (*pfx)(prefix);
6979          (*init)();
6980          needed = (*simple)("import termios") == -1;
6981          (*final)();
6982          dlclose(pylib);
6983      }
6984      return !needed;
6985    }
6986
6987    int main(int argc, char** argv)
6988    {
6989      int not_needed = 0;
6990      if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}"))
6991            not_needed = 1;
6992      return !not_needed;
6993    }
6994_ACEOF
6995if ac_fn_c_try_run "$LINENO"; then :
6996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6997$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h
6998
6999else
7000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001$as_echo "no" >&6; }
7002fi
7003rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7004  conftest.$ac_objext conftest.beam conftest.$ac_ext
7005fi
7006
7007
7008  CFLAGS=$cflags_save
7009  LIBS=$libs_save
7010
7011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5
7012$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; }
7013  cflags_save=$CFLAGS
7014  CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
7015  libs_save=$LIBS
7016    LIBS="-ldl $LIBS"
7017  if test "$cross_compiling" = yes; then :
7018  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7020as_fn_error $? "cannot run test program while cross compiling
7021See \`config.log' for more details" "$LINENO" 5; }
7022else
7023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024/* end confdefs.h.  */
7025
7026    #include <dlfcn.h>
7027    #include <wchar.h>
7028    /* If this program fails, then RTLD_GLOBAL is needed.
7029     * RTLD_GLOBAL will be used and then it is not possible to
7030     * have both python versions enabled in the same vim instance.
7031     * Only the first python version used will be switched on.
7032     */
7033
7034    int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
7035    {
7036      int needed = 0;
7037      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
7038      if (pylib != 0)
7039      {
7040          void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome");
7041          void (*init)(void) = dlsym(pylib, "Py_Initialize");
7042          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
7043          void (*final)(void) = dlsym(pylib, "Py_Finalize");
7044          (*pfx)(prefix);
7045          (*init)();
7046          needed = (*simple)("import termios") == -1;
7047          (*final)();
7048          dlclose(pylib);
7049      }
7050      return !needed;
7051    }
7052
7053    int main(int argc, char** argv)
7054    {
7055      int not_needed = 0;
7056      if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}"))
7057            not_needed = 1;
7058      return !not_needed;
7059    }
7060_ACEOF
7061if ac_fn_c_try_run "$LINENO"; then :
7062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7063$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h
7064
7065else
7066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067$as_echo "no" >&6; }
7068fi
7069rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7070  conftest.$ac_objext conftest.beam conftest.$ac_ext
7071fi
7072
7073
7074  CFLAGS=$cflags_save
7075  LIBS=$libs_save
7076
7077  PYTHON_SRC="if_python.c"
7078  PYTHON_OBJ="objects/if_python.o"
7079  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
7080  PYTHON_LIBS=
7081  PYTHON3_SRC="if_python3.c"
7082  PYTHON3_OBJ="objects/if_python3.o"
7083  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
7084  PYTHON3_LIBS=
7085elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then
7086  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
7087
7088  PYTHON_SRC="if_python.c"
7089  PYTHON_OBJ="objects/if_python.o"
7090  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
7091  PYTHON_LIBS=
7092elif test "$python_ok" = yes; then
7093      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5
7094$as_echo_n "checking if -fPIE can be added for Python... " >&6; }
7095  cflags_save=$CFLAGS
7096  libs_save=$LIBS
7097  CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE"
7098  LIBS="$LIBS $PYTHON_LIBS"
7099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100/* end confdefs.h.  */
7101
7102int
7103main ()
7104{
7105
7106  ;
7107  return 0;
7108}
7109_ACEOF
7110if ac_fn_c_try_link "$LINENO"; then :
7111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7112$as_echo "yes" >&6; }; fpie_ok=yes
7113else
7114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115$as_echo "no" >&6; }; fpie_ok=no
7116fi
7117rm -f core conftest.err conftest.$ac_objext \
7118    conftest$ac_exeext conftest.$ac_ext
7119  CFLAGS=$cflags_save
7120  LIBS=$libs_save
7121  if test $fpie_ok = yes; then
7122    PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE"
7123  fi
7124elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then
7125  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
7126
7127  PYTHON3_SRC="if_python3.c"
7128  PYTHON3_OBJ="objects/if_python3.o"
7129  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
7130  PYTHON3_LIBS=
7131elif test "$python3_ok" = yes; then
7132      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5
7133$as_echo_n "checking if -fPIE can be added for Python3... " >&6; }
7134  cflags_save=$CFLAGS
7135  libs_save=$LIBS
7136  CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE"
7137  LIBS="$LIBS $PYTHON3_LIBS"
7138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139/* end confdefs.h.  */
7140
7141int
7142main ()
7143{
7144
7145  ;
7146  return 0;
7147}
7148_ACEOF
7149if ac_fn_c_try_link "$LINENO"; then :
7150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7151$as_echo "yes" >&6; }; fpie_ok=yes
7152else
7153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154$as_echo "no" >&6; }; fpie_ok=no
7155fi
7156rm -f core conftest.err conftest.$ac_objext \
7157    conftest$ac_exeext conftest.$ac_ext
7158  CFLAGS=$cflags_save
7159  LIBS=$libs_save
7160  if test $fpie_ok = yes; then
7161    PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE"
7162  fi
7163fi
7164
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5
7166$as_echo_n "checking --enable-tclinterp argument... " >&6; }
7167# Check whether --enable-tclinterp was given.
7168if test "${enable_tclinterp+set}" = set; then :
7169  enableval=$enable_tclinterp;
7170else
7171  enable_tclinterp="no"
7172fi
7173
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5
7175$as_echo "$enable_tclinterp" >&6; }
7176
7177if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then
7178
7179    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5
7180$as_echo_n "checking --with-tclsh argument... " >&6; }
7181
7182# Check whether --with-tclsh was given.
7183if test "${with_tclsh+set}" = set; then :
7184  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5
7185$as_echo "$tclsh_name" >&6; }
7186else
7187  tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188$as_echo "no" >&6; }
7189fi
7190
7191  # Extract the first word of "$tclsh_name", so it can be a program name with args.
7192set dummy $tclsh_name; ac_word=$2
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194$as_echo_n "checking for $ac_word... " >&6; }
7195if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7196  $as_echo_n "(cached) " >&6
7197else
7198  case $vi_cv_path_tcl in
7199  [\\/]* | ?:[\\/]*)
7200  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7201  ;;
7202  *)
7203  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204for as_dir in $PATH
7205do
7206  IFS=$as_save_IFS
7207  test -z "$as_dir" && as_dir=.
7208    for ac_exec_ext in '' $ac_executable_extensions; do
7209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7210    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7212    break 2
7213  fi
7214done
7215  done
7216IFS=$as_save_IFS
7217
7218  ;;
7219esac
7220fi
7221vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7222if test -n "$vi_cv_path_tcl"; then
7223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7224$as_echo "$vi_cv_path_tcl" >&6; }
7225else
7226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227$as_echo "no" >&6; }
7228fi
7229
7230
7231
7232
7233    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
7234    tclsh_name="tclsh8.4"
7235    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7236set dummy $tclsh_name; ac_word=$2
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238$as_echo_n "checking for $ac_word... " >&6; }
7239if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7240  $as_echo_n "(cached) " >&6
7241else
7242  case $vi_cv_path_tcl in
7243  [\\/]* | ?:[\\/]*)
7244  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7245  ;;
7246  *)
7247  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248for as_dir in $PATH
7249do
7250  IFS=$as_save_IFS
7251  test -z "$as_dir" && as_dir=.
7252    for ac_exec_ext in '' $ac_executable_extensions; do
7253  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7255    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7256    break 2
7257  fi
7258done
7259  done
7260IFS=$as_save_IFS
7261
7262  ;;
7263esac
7264fi
7265vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7266if test -n "$vi_cv_path_tcl"; then
7267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7268$as_echo "$vi_cv_path_tcl" >&6; }
7269else
7270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271$as_echo "no" >&6; }
7272fi
7273
7274
7275  fi
7276  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
7277    tclsh_name="tclsh8.2"
7278    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7279set dummy $tclsh_name; ac_word=$2
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281$as_echo_n "checking for $ac_word... " >&6; }
7282if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7283  $as_echo_n "(cached) " >&6
7284else
7285  case $vi_cv_path_tcl in
7286  [\\/]* | ?:[\\/]*)
7287  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7288  ;;
7289  *)
7290  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291for as_dir in $PATH
7292do
7293  IFS=$as_save_IFS
7294  test -z "$as_dir" && as_dir=.
7295    for ac_exec_ext in '' $ac_executable_extensions; do
7296  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7297    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299    break 2
7300  fi
7301done
7302  done
7303IFS=$as_save_IFS
7304
7305  ;;
7306esac
7307fi
7308vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7309if test -n "$vi_cv_path_tcl"; then
7310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7311$as_echo "$vi_cv_path_tcl" >&6; }
7312else
7313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314$as_echo "no" >&6; }
7315fi
7316
7317
7318  fi
7319  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
7320    tclsh_name="tclsh8.0"
7321    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7322set dummy $tclsh_name; ac_word=$2
7323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324$as_echo_n "checking for $ac_word... " >&6; }
7325if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7326  $as_echo_n "(cached) " >&6
7327else
7328  case $vi_cv_path_tcl in
7329  [\\/]* | ?:[\\/]*)
7330  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7331  ;;
7332  *)
7333  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334for as_dir in $PATH
7335do
7336  IFS=$as_save_IFS
7337  test -z "$as_dir" && as_dir=.
7338    for ac_exec_ext in '' $ac_executable_extensions; do
7339  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342    break 2
7343  fi
7344done
7345  done
7346IFS=$as_save_IFS
7347
7348  ;;
7349esac
7350fi
7351vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7352if test -n "$vi_cv_path_tcl"; then
7353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7354$as_echo "$vi_cv_path_tcl" >&6; }
7355else
7356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357$as_echo "no" >&6; }
7358fi
7359
7360
7361  fi
7362    if test "X$vi_cv_path_tcl" = "X"; then
7363    tclsh_name="tclsh"
7364    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7365set dummy $tclsh_name; ac_word=$2
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367$as_echo_n "checking for $ac_word... " >&6; }
7368if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7369  $as_echo_n "(cached) " >&6
7370else
7371  case $vi_cv_path_tcl in
7372  [\\/]* | ?:[\\/]*)
7373  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7374  ;;
7375  *)
7376  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377for as_dir in $PATH
7378do
7379  IFS=$as_save_IFS
7380  test -z "$as_dir" && as_dir=.
7381    for ac_exec_ext in '' $ac_executable_extensions; do
7382  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7383    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7384    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7385    break 2
7386  fi
7387done
7388  done
7389IFS=$as_save_IFS
7390
7391  ;;
7392esac
7393fi
7394vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7395if test -n "$vi_cv_path_tcl"; then
7396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7397$as_echo "$vi_cv_path_tcl" >&6; }
7398else
7399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400$as_echo "no" >&6; }
7401fi
7402
7403
7404  fi
7405  if test "X$vi_cv_path_tcl" != "X"; then
7406    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5
7407$as_echo_n "checking Tcl version... " >&6; }
7408    if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then
7409      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
7410      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5
7411$as_echo "$tclver - OK" >&6; };
7412      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 -`
7413      tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -`
7414
7415      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5
7416$as_echo_n "checking for location of Tcl include... " >&6; }
7417      if test "x$MACOS_X" != "xyes"; then
7418	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
7419      else
7420				tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /System/Library/Frameworks/Tcl.framework/Headers `xcrun --show-sdk-path`/System/Library/Frameworks/Tcl.framework/Versions/Current/Headers"
7421      fi
7422      TCL_INC=
7423      for try in $tclinc; do
7424	if test -f "$try/tcl.h"; then
7425	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5
7426$as_echo "$try/tcl.h" >&6; }
7427	  TCL_INC=$try
7428	  break
7429	fi
7430      done
7431      if test -z "$TCL_INC"; then
7432	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7433$as_echo "<not found>" >&6; }
7434	SKIP_TCL=YES
7435      fi
7436      if test -z "$SKIP_TCL"; then
7437	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5
7438$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
7439	if test "x$MACOS_X" != "xyes"; then
7440	  tclcnf=`echo $tclinc | sed s/include/lib/g`
7441	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
7442	else
7443	  	  	  	  tclcnf=`echo $tclinc | sed s/include/lib/g`
7444	  tclcnf="$tclcnf /System/Library/Frameworks/Tcl.framework `xcrun --show-sdk-path`/System/Library/Frameworks/Tcl.framework"
7445	fi
7446	for try in $tclcnf; do
7447	  if test -f "$try/tclConfig.sh"; then
7448	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5
7449$as_echo "$try/tclConfig.sh" >&6; }
7450	    . "$try/tclConfig.sh"
7451	    	    if test "$enable_tclinterp" = "dynamic"; then
7452	      TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"`
7453	    else
7454	      TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
7455	    fi
7456	    	    	    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'`
7457	    break
7458	  fi
7459	done
7460	if test -z "$TCL_LIBS"; then
7461	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7462$as_echo "<not found>" >&6; }
7463	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5
7464$as_echo_n "checking for Tcl library by myself... " >&6; }
7465	  tcllib=`echo $tclinc | sed s/include/lib/g`
7466	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
7467	  for ext in .so .a ; do
7468	    for ver in "" $tclver ; do
7469	      for try in $tcllib ; do
7470		trylib=tcl$ver$ext
7471		if test -f "$try/lib$trylib" ; then
7472		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5
7473$as_echo "$try/lib$trylib" >&6; }
7474		  TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm"
7475		  if test "`(uname) 2>/dev/null`" = SunOS &&
7476					 uname -r | grep '^5' >/dev/null; then
7477		    TCL_LIBS="$TCL_LIBS -R $try"
7478		  fi
7479		  break 3
7480		fi
7481	      done
7482	    done
7483	  done
7484	  if test -z "$TCL_LIBS"; then
7485	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7486$as_echo "<not found>" >&6; }
7487	    SKIP_TCL=YES
7488	  fi
7489	fi
7490	if test -z "$SKIP_TCL"; then
7491	  $as_echo "#define FEAT_TCL 1" >>confdefs.h
7492
7493	  TCL_SRC=if_tcl.c
7494	  TCL_OBJ=objects/if_tcl.o
7495	  TCL_PRO=if_tcl.pro
7496	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
7497	fi
7498      fi
7499    else
7500      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5
7501$as_echo "too old; need Tcl version 8.0 or later" >&6; }
7502    fi
7503  fi
7504  if test "$enable_tclinterp" = "dynamic"; then
7505    if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then
7506      $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h
7507
7508      TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS"
7509    fi
7510  fi
7511  if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
7512    as_fn_error $? "could not configure Tcl" "$LINENO" 5
7513  fi
7514fi
7515
7516
7517
7518
7519
7520
7521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5
7522$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
7523# Check whether --enable-rubyinterp was given.
7524if test "${enable_rubyinterp+set}" = set; then :
7525  enableval=$enable_rubyinterp;
7526else
7527  enable_rubyinterp="no"
7528fi
7529
7530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
7531$as_echo "$enable_rubyinterp" >&6; }
7532if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
7533  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7534    as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5
7535  fi
7536
7537  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
7538$as_echo_n "checking --with-ruby-command argument... " >&6; }
7539
7540
7541# Check whether --with-ruby-command was given.
7542if test "${with_ruby_command+set}" = set; then :
7543  withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
7544$as_echo "$RUBY_CMD" >&6; }
7545else
7546  RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
7547$as_echo "defaulting to $RUBY_CMD" >&6; }
7548fi
7549
7550  # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
7551set dummy $RUBY_CMD; ac_word=$2
7552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553$as_echo_n "checking for $ac_word... " >&6; }
7554if ${ac_cv_path_vi_cv_path_ruby+:} false; then :
7555  $as_echo_n "(cached) " >&6
7556else
7557  case $vi_cv_path_ruby in
7558  [\\/]* | ?:[\\/]*)
7559  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
7560  ;;
7561  *)
7562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563for as_dir in $PATH
7564do
7565  IFS=$as_save_IFS
7566  test -z "$as_dir" && as_dir=.
7567    for ac_exec_ext in '' $ac_executable_extensions; do
7568  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
7570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571    break 2
7572  fi
7573done
7574  done
7575IFS=$as_save_IFS
7576
7577  ;;
7578esac
7579fi
7580vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
7581if test -n "$vi_cv_path_ruby"; then
7582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5
7583$as_echo "$vi_cv_path_ruby" >&6; }
7584else
7585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586$as_echo "no" >&6; }
7587fi
7588
7589
7590  if test "X$vi_cv_path_ruby" != "X"; then
7591    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5
7592$as_echo_n "checking Ruby version... " >&6; }
7593    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
7594      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
7595$as_echo "OK" >&6; }
7596      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5
7597$as_echo_n "checking Ruby rbconfig... " >&6; }
7598      ruby_rbconfig="RbConfig"
7599      if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then
7600	ruby_rbconfig="Config"
7601      fi
7602      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5
7603$as_echo "$ruby_rbconfig" >&6; }
7604      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
7605$as_echo_n "checking Ruby header files... " >&6; }
7606      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null`
7607      if test "X$rubyhdrdir" != "X"; then
7608	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
7609$as_echo "$rubyhdrdir" >&6; }
7610	RUBY_CFLAGS="-I$rubyhdrdir"
7611        rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"`
7612        if test -d "$rubyarchdir"; then
7613          RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir"
7614        fi
7615        rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"`
7616	if test "X$rubyversion" = "X"; then
7617	  rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"`
7618	fi
7619        RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
7620	rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"`
7621	if test "X$rubylibs" != "X"; then
7622	  RUBY_LIBS="$rubylibs"
7623	fi
7624	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"`
7625	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"`
7626	rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"`
7627	if test -f "$rubylibdir/$librubya"; then
7628	  librubyarg="$librubyarg"
7629	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7630	elif test "$librubyarg" = "libruby.a"; then
7631	  	  librubyarg="-lruby"
7632	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7633	fi
7634
7635	if test "X$librubyarg" != "X"; then
7636	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
7637	fi
7638	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"`
7639	if test "X$rubyldflags" != "X"; then
7640	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
7641	  if test "X$rubyldflags" != "X"; then
7642	    if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then
7643	      LDFLAGS="$rubyldflags $LDFLAGS"
7644	    fi
7645	  fi
7646	fi
7647	RUBY_SRC="if_ruby.c"
7648	RUBY_OBJ="objects/if_ruby.o"
7649	RUBY_PRO="if_ruby.pro"
7650	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
7651
7652	if test "$enable_rubyinterp" = "dynamic"; then
7653	  libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_ALIASES'].split[0]"`
7654	  if test -z "$libruby_soname"; then
7655	    libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"`
7656	  fi
7657	  $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h
7658
7659	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" $RUBY_CFLAGS"
7660	  RUBY_LIBS=
7661	fi
7662      else
7663	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
7664$as_echo "not found; disabling Ruby" >&6; }
7665      fi
7666    else
7667      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5
7668$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
7669    fi
7670  fi
7671
7672  if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
7673    as_fn_error $? "could not configure Ruby" "$LINENO" 5
7674  fi
7675fi
7676
7677
7678
7679
7680
7681
7682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5
7683$as_echo_n "checking --enable-cscope argument... " >&6; }
7684# Check whether --enable-cscope was given.
7685if test "${enable_cscope+set}" = set; then :
7686  enableval=$enable_cscope;
7687else
7688  enable_cscope="no"
7689fi
7690
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
7692$as_echo "$enable_cscope" >&6; }
7693if test "$enable_cscope" = "yes"; then
7694  $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h
7695
7696fi
7697
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5
7699$as_echo_n "checking --disable-netbeans argument... " >&6; }
7700# Check whether --enable-netbeans was given.
7701if test "${enable_netbeans+set}" = set; then :
7702  enableval=$enable_netbeans;
7703else
7704  enable_netbeans="yes"
7705fi
7706
7707if test "$enable_netbeans" = "yes"; then
7708  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7709    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5
7710$as_echo "cannot use NetBeans with tiny or small features" >&6; }
7711    enable_netbeans="no"
7712  else
7713    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7714$as_echo "no" >&6; }
7715  fi
7716else
7717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7718$as_echo "yes" >&6; }
7719fi
7720
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5
7722$as_echo_n "checking --disable-channel argument... " >&6; }
7723# Check whether --enable-channel was given.
7724if test "${enable_channel+set}" = set; then :
7725  enableval=$enable_channel;
7726else
7727  enable_channel="yes"
7728fi
7729
7730if test "$enable_channel" = "yes"; then
7731  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7732    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5
7733$as_echo "cannot use channels with tiny or small features" >&6; }
7734    enable_channel="no"
7735  else
7736    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737$as_echo "no" >&6; }
7738  fi
7739else
7740  if test "$enable_netbeans" = "yes"; then
7741    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5
7742$as_echo "yes, netbeans also disabled" >&6; }
7743    enable_netbeans="no"
7744  else
7745    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7746$as_echo "yes" >&6; }
7747  fi
7748fi
7749
7750if test "$enable_channel" = "yes"; then
7751    if test "x$HAIKU" = "xyes"; then
7752	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
7753$as_echo_n "checking for socket in -lnetwork... " >&6; }
7754if ${ac_cv_lib_network_socket+:} false; then :
7755  $as_echo_n "(cached) " >&6
7756else
7757  ac_check_lib_save_LIBS=$LIBS
7758LIBS="-lnetwork  $LIBS"
7759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760/* end confdefs.h.  */
7761
7762/* Override any GCC internal prototype to avoid an error.
7763   Use char because int might match the return type of a GCC
7764   builtin and then its argument prototype would still apply.  */
7765#ifdef __cplusplus
7766extern "C"
7767#endif
7768char socket ();
7769int
7770main ()
7771{
7772return socket ();
7773  ;
7774  return 0;
7775}
7776_ACEOF
7777if ac_fn_c_try_link "$LINENO"; then :
7778  ac_cv_lib_network_socket=yes
7779else
7780  ac_cv_lib_network_socket=no
7781fi
7782rm -f core conftest.err conftest.$ac_objext \
7783    conftest$ac_exeext conftest.$ac_ext
7784LIBS=$ac_check_lib_save_LIBS
7785fi
7786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
7787$as_echo "$ac_cv_lib_network_socket" >&6; }
7788if test "x$ac_cv_lib_network_socket" = xyes; then :
7789  cat >>confdefs.h <<_ACEOF
7790#define HAVE_LIBNETWORK 1
7791_ACEOF
7792
7793  LIBS="-lnetwork $LIBS"
7794
7795fi
7796
7797  else
7798	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
7799$as_echo_n "checking for socket in -lsocket... " >&6; }
7800if ${ac_cv_lib_socket_socket+:} false; then :
7801  $as_echo_n "(cached) " >&6
7802else
7803  ac_check_lib_save_LIBS=$LIBS
7804LIBS="-lsocket  $LIBS"
7805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806/* end confdefs.h.  */
7807
7808/* Override any GCC internal prototype to avoid an error.
7809   Use char because int might match the return type of a GCC
7810   builtin and then its argument prototype would still apply.  */
7811#ifdef __cplusplus
7812extern "C"
7813#endif
7814char socket ();
7815int
7816main ()
7817{
7818return socket ();
7819  ;
7820  return 0;
7821}
7822_ACEOF
7823if ac_fn_c_try_link "$LINENO"; then :
7824  ac_cv_lib_socket_socket=yes
7825else
7826  ac_cv_lib_socket_socket=no
7827fi
7828rm -f core conftest.err conftest.$ac_objext \
7829    conftest$ac_exeext conftest.$ac_ext
7830LIBS=$ac_check_lib_save_LIBS
7831fi
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
7833$as_echo "$ac_cv_lib_socket_socket" >&6; }
7834if test "x$ac_cv_lib_socket_socket" = xyes; then :
7835  cat >>confdefs.h <<_ACEOF
7836#define HAVE_LIBSOCKET 1
7837_ACEOF
7838
7839  LIBS="-lsocket $LIBS"
7840
7841fi
7842
7843  fi
7844
7845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with IPv6 networking is possible" >&5
7846$as_echo_n "checking whether compiling with IPv6 networking is possible... " >&6; }
7847if ${vim_cv_ipv6_networking+:} false; then :
7848  $as_echo_n "(cached) " >&6
7849else
7850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851/* end confdefs.h.  */
7852
7853#include <stdio.h>
7854#include <stdlib.h>
7855#include <stdarg.h>
7856#include <fcntl.h>
7857#include <netdb.h>
7858#include <netinet/in.h>
7859#include <errno.h>
7860#include <sys/types.h>
7861#include <sys/socket.h>
7862	/* Check bitfields */
7863	struct nbbuf {
7864	unsigned int  initDone:1;
7865	unsigned short signmaplen;
7866	};
7867
7868int
7869main ()
7870{
7871
7872		/* Check creating a socket. */
7873		struct sockaddr_in server;
7874		struct addrinfo *res;
7875		(void)socket(AF_INET, SOCK_STREAM, 0);
7876		(void)htons(100);
7877		(void)getaddrinfo("microsoft.com", NULL, NULL, &res);
7878		if (errno == ECONNREFUSED)
7879		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
7880		(void)freeaddrinfo(res);
7881
7882  ;
7883  return 0;
7884}
7885_ACEOF
7886if ac_fn_c_try_link "$LINENO"; then :
7887  vim_cv_ipv6_networking="yes"
7888else
7889  vim_cv_ipv6_networking="no"
7890fi
7891rm -f core conftest.err conftest.$ac_objext \
7892    conftest$ac_exeext conftest.$ac_ext
7893fi
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_ipv6_networking" >&5
7895$as_echo "$vim_cv_ipv6_networking" >&6; }
7896
7897  if test "x$vim_cv_ipv6_networking" = "xyes"; then
7898    $as_echo "#define FEAT_IPV6 1" >>confdefs.h
7899
7900    for ac_func in inet_ntop
7901do :
7902  ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
7903if test "x$ac_cv_func_inet_ntop" = xyes; then :
7904  cat >>confdefs.h <<_ACEOF
7905#define HAVE_INET_NTOP 1
7906_ACEOF
7907
7908fi
7909done
7910
7911  else
7912        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7913$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7914if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7915  $as_echo_n "(cached) " >&6
7916else
7917  ac_check_lib_save_LIBS=$LIBS
7918LIBS="-lnsl  $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 gethostbyname ();
7929int
7930main ()
7931{
7932return gethostbyname ();
7933  ;
7934  return 0;
7935}
7936_ACEOF
7937if ac_fn_c_try_link "$LINENO"; then :
7938  ac_cv_lib_nsl_gethostbyname=yes
7939else
7940  ac_cv_lib_nsl_gethostbyname=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_nsl_gethostbyname" >&5
7947$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7948if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7949  cat >>confdefs.h <<_ACEOF
7950#define HAVE_LIBNSL 1
7951_ACEOF
7952
7953  LIBS="-lnsl $LIBS"
7954
7955fi
7956
7957    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with IPv4 networking is possible" >&5
7958$as_echo_n "checking whether compiling with IPv4 networking is possible... " >&6; }
7959if ${vim_cv_ipv4_networking+:} false; then :
7960  $as_echo_n "(cached) " >&6
7961else
7962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963/* end confdefs.h.  */
7964
7965#include <stdio.h>
7966#include <stdlib.h>
7967#include <stdarg.h>
7968#include <fcntl.h>
7969#include <netdb.h>
7970#include <netinet/in.h>
7971#include <errno.h>
7972#include <sys/types.h>
7973#include <sys/socket.h>
7974	/* Check bitfields */
7975	struct nbbuf {
7976	unsigned int  initDone:1;
7977	unsigned short signmaplen;
7978	};
7979
7980int
7981main ()
7982{
7983
7984		/* Check creating a socket. */
7985		struct sockaddr_in server;
7986		(void)socket(AF_INET, SOCK_STREAM, 0);
7987		(void)htons(100);
7988		(void)gethostbyname("microsoft.com");
7989		if (errno == ECONNREFUSED)
7990		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
7991
7992  ;
7993  return 0;
7994}
7995_ACEOF
7996if ac_fn_c_try_link "$LINENO"; then :
7997  vim_cv_ipv4_networking="yes"
7998else
7999  vim_cv_ipv4_networking="no"; enable_netbeans="no"; enable_channel="no"
8000fi
8001rm -f core conftest.err conftest.$ac_objext \
8002    conftest$ac_exeext conftest.$ac_ext
8003fi
8004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_ipv4_networking" >&5
8005$as_echo "$vim_cv_ipv4_networking" >&6; }
8006  fi
8007fi
8008if test "$enable_netbeans" = "yes"; then
8009  $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h
8010
8011  NETBEANS_SRC="netbeans.c"
8012
8013  NETBEANS_OBJ="objects/netbeans.o"
8014
8015fi
8016if test "$enable_channel" = "yes"; then
8017  $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h
8018
8019  CHANNEL_SRC="channel.c"
8020
8021  CHANNEL_OBJ="objects/channel.o"
8022
8023fi
8024
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5
8026$as_echo_n "checking --enable-terminal argument... " >&6; }
8027# Check whether --enable-terminal was given.
8028if test "${enable_terminal+set}" = set; then :
8029  enableval=$enable_terminal;
8030else
8031  enable_terminal="auto"
8032fi
8033
8034if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then
8035  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
8036    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5
8037$as_echo "cannot use terminal emulator with tiny or small features" >&6; }
8038    enable_terminal="no"
8039  else
8040    if test "$enable_terminal" = "auto"; then
8041      enable_terminal="yes"
8042      { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5
8043$as_echo "defaulting to yes" >&6; }
8044    else
8045      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8046$as_echo "yes" >&6; }
8047    fi
8048  fi
8049else
8050  if test "$enable_terminal" = "auto"; then
8051    enable_terminal="no"
8052    { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5
8053$as_echo "defaulting to no" >&6; }
8054  else
8055    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056$as_echo "no" >&6; }
8057  fi
8058fi
8059if test "$enable_terminal" = "yes" -a "$enable_channel" = "yes"; then
8060  $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h
8061
8062  TERM_SRC="libvterm/src/encoding.c libvterm/src/keyboard.c libvterm/src/mouse.c libvterm/src/parser.c libvterm/src/pen.c libvterm/src/creen.c libvterm/src/state.c libvterm/src/unicode.c libvterm/src/vterm.c"
8063
8064  TERM_OBJ="objects/vterm_encoding.o objects/vterm_keyboard.o objects/vterm_mouse.o objects/vterm_parser.o objects/vterm_pen.o objects/vterm_screen.o objects/vterm_state.o objects/vterm_unicode.o objects/vterm_vterm.o"
8065
8066  TERM_TEST="test_libvterm"
8067
8068fi
8069
8070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-autoservername argument" >&5
8071$as_echo_n "checking --enable-autoservername argument... " >&6; }
8072# Check whether --enable-autoservername was given.
8073if test "${enable_autoservername+set}" = set; then :
8074  enableval=$enable_autoservername;
8075else
8076  enable_autoservername="no"
8077fi
8078
8079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_autoservername" >&5
8080$as_echo "$enable_autoservername" >&6; }
8081if test "$enable_autoservername" = "yes"; then
8082  $as_echo "#define FEAT_AUTOSERVERNAME 1" >>confdefs.h
8083
8084fi
8085
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5
8087$as_echo_n "checking --enable-multibyte argument... " >&6; }
8088# Check whether --enable-multibyte was given.
8089if test "${enable_multibyte+set}" = set; then :
8090  enableval=$enable_multibyte;
8091else
8092  enable_multibyte="yes"
8093fi
8094
8095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
8096$as_echo "$enable_multibyte" >&6; }
8097if test "$enable_multibyte" != "yes"; then
8098  as_fn_error $? "The multi-byte feature can no longer be disabled. If you have
8099		a problem with this, discuss on the Vim mailing list." "$LINENO" 5
8100fi
8101
8102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-rightleft argument" >&5
8103$as_echo_n "checking --disable-rightleft argument... " >&6; }
8104# Check whether --enable-rightleft was given.
8105if test "${enable_rightleft+set}" = set; then :
8106  enableval=$enable_rightleft;
8107else
8108  enable_rightleft="yes"
8109fi
8110
8111if test "$enable_rightleft" = "yes"; then
8112	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113$as_echo "no" >&6; }
8114else
8115	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8116$as_echo "yes" >&6; }
8117	$as_echo "#define DISABLE_RIGHTLEFT 1" >>confdefs.h
8118
8119fi
8120
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-arabic argument" >&5
8122$as_echo_n "checking --disable-arabic argument... " >&6; }
8123# Check whether --enable-arabic was given.
8124if test "${enable_arabic+set}" = set; then :
8125  enableval=$enable_arabic;
8126else
8127  enable_arabic="yes"
8128fi
8129
8130if test "$enable_arabic" = "yes"; then
8131	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132$as_echo "no" >&6; }
8133else
8134	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8135$as_echo "yes" >&6; }
8136	$as_echo "#define DISABLE_ARABIC 1" >>confdefs.h
8137
8138fi
8139
8140# Check whether --enable-farsi was given.
8141if test "${enable_farsi+set}" = set; then :
8142  enableval=$enable_farsi;
8143fi
8144
8145
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5
8147$as_echo_n "checking --enable-xim argument... " >&6; }
8148# Check whether --enable-xim was given.
8149if test "${enable_xim+set}" = set; then :
8150  enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5
8151$as_echo "$enable_xim" >&6; }
8152else
8153  enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5
8154$as_echo "defaulting to auto" >&6; }
8155fi
8156
8157
8158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5
8159$as_echo_n "checking --enable-fontset argument... " >&6; }
8160# Check whether --enable-fontset was given.
8161if test "${enable_fontset+set}" = set; then :
8162  enableval=$enable_fontset;
8163else
8164  enable_fontset="no"
8165fi
8166
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5
8168$as_echo "$enable_fontset" >&6; }
8169
8170test -z "$with_x" && with_x=yes
8171test "${enable_gui-yes}" != no -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
8172if test "$with_x" = no; then
8173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5
8174$as_echo "defaulting to: don't HAVE_X11" >&6; }
8175else
8176
8177  # Extract the first word of "xmkmf", so it can be a program name with args.
8178set dummy xmkmf; ac_word=$2
8179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8180$as_echo_n "checking for $ac_word... " >&6; }
8181if ${ac_cv_path_xmkmfpath+:} false; then :
8182  $as_echo_n "(cached) " >&6
8183else
8184  case $xmkmfpath in
8185  [\\/]* | ?:[\\/]*)
8186  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
8187  ;;
8188  *)
8189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190for as_dir in $PATH
8191do
8192  IFS=$as_save_IFS
8193  test -z "$as_dir" && as_dir=.
8194    for ac_exec_ext in '' $ac_executable_extensions; do
8195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8196    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
8197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8198    break 2
8199  fi
8200done
8201  done
8202IFS=$as_save_IFS
8203
8204  ;;
8205esac
8206fi
8207xmkmfpath=$ac_cv_path_xmkmfpath
8208if test -n "$xmkmfpath"; then
8209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5
8210$as_echo "$xmkmfpath" >&6; }
8211else
8212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213$as_echo "no" >&6; }
8214fi
8215
8216
8217
8218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8219$as_echo_n "checking for X... " >&6; }
8220
8221
8222# Check whether --with-x was given.
8223if test "${with_x+set}" = set; then :
8224  withval=$with_x;
8225fi
8226
8227# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8228if test "x$with_x" = xno; then
8229  # The user explicitly disabled X.
8230  have_x=disabled
8231else
8232  case $x_includes,$x_libraries in #(
8233    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8234    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8235  $as_echo_n "(cached) " >&6
8236else
8237  # One or both of the vars are not set, and there is no cached value.
8238ac_x_includes=no ac_x_libraries=no
8239rm -f -r conftest.dir
8240if mkdir conftest.dir; then
8241  cd conftest.dir
8242  cat >Imakefile <<'_ACEOF'
8243incroot:
8244	@echo incroot='${INCROOT}'
8245usrlibdir:
8246	@echo usrlibdir='${USRLIBDIR}'
8247libdir:
8248	@echo libdir='${LIBDIR}'
8249_ACEOF
8250  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8251    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8252    for ac_var in incroot usrlibdir libdir; do
8253      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8254    done
8255    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8256    for ac_extension in a so sl dylib la dll; do
8257      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8258	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8259	ac_im_usrlibdir=$ac_im_libdir; break
8260      fi
8261    done
8262    # Screen out bogus values from the imake configuration.  They are
8263    # bogus both because they are the default anyway, and because
8264    # using them would break gcc on systems where it needs fixed includes.
8265    case $ac_im_incroot in
8266	/usr/include) ac_x_includes= ;;
8267	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8268    esac
8269    case $ac_im_usrlibdir in
8270	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
8271	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8272    esac
8273  fi
8274  cd ..
8275  rm -f -r conftest.dir
8276fi
8277
8278# Standard set of common directories for X headers.
8279# Check X11 before X11Rn because it is often a symlink to the current release.
8280ac_x_header_dirs='
8281/usr/X11/include
8282/usr/X11R7/include
8283/usr/X11R6/include
8284/usr/X11R5/include
8285/usr/X11R4/include
8286
8287/usr/include/X11
8288/usr/include/X11R7
8289/usr/include/X11R6
8290/usr/include/X11R5
8291/usr/include/X11R4
8292
8293/usr/local/X11/include
8294/usr/local/X11R7/include
8295/usr/local/X11R6/include
8296/usr/local/X11R5/include
8297/usr/local/X11R4/include
8298
8299/usr/local/include/X11
8300/usr/local/include/X11R7
8301/usr/local/include/X11R6
8302/usr/local/include/X11R5
8303/usr/local/include/X11R4
8304
8305/usr/X386/include
8306/usr/x386/include
8307/usr/XFree86/include/X11
8308
8309/usr/include
8310/usr/local/include
8311/usr/unsupported/include
8312/usr/athena/include
8313/usr/local/x11r5/include
8314/usr/lpp/Xamples/include
8315
8316/usr/openwin/include
8317/usr/openwin/share/include'
8318
8319if test "$ac_x_includes" = no; then
8320  # Guess where to find include files, by looking for Xlib.h.
8321  # First, try using that file with no special directory specified.
8322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323/* end confdefs.h.  */
8324#include <X11/Xlib.h>
8325_ACEOF
8326if ac_fn_c_try_cpp "$LINENO"; then :
8327  # We can compile using X headers with no special include directory.
8328ac_x_includes=
8329else
8330  for ac_dir in $ac_x_header_dirs; do
8331  if test -r "$ac_dir/X11/Xlib.h"; then
8332    ac_x_includes=$ac_dir
8333    break
8334  fi
8335done
8336fi
8337rm -f conftest.err conftest.i conftest.$ac_ext
8338fi # $ac_x_includes = no
8339
8340if test "$ac_x_libraries" = no; then
8341  # Check for the libraries.
8342  # See if we find them without any special options.
8343  # Don't add to $LIBS permanently.
8344  ac_save_LIBS=$LIBS
8345  LIBS="-lX11 $LIBS"
8346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347/* end confdefs.h.  */
8348#include <X11/Xlib.h>
8349int
8350main ()
8351{
8352XrmInitialize ()
8353  ;
8354  return 0;
8355}
8356_ACEOF
8357if ac_fn_c_try_link "$LINENO"; then :
8358  LIBS=$ac_save_LIBS
8359# We can link X programs with no special library path.
8360ac_x_libraries=
8361else
8362  LIBS=$ac_save_LIBS
8363for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8364do
8365  # Don't even attempt the hair of trying to link an X program!
8366  for ac_extension in a so sl dylib la dll; do
8367    if test -r "$ac_dir/libX11.$ac_extension"; then
8368      ac_x_libraries=$ac_dir
8369      break 2
8370    fi
8371  done
8372done
8373fi
8374rm -f core conftest.err conftest.$ac_objext \
8375    conftest$ac_exeext conftest.$ac_ext
8376fi # $ac_x_libraries = no
8377
8378case $ac_x_includes,$ac_x_libraries in #(
8379  no,* | *,no | *\'*)
8380    # Didn't find X, or a directory has "'" in its name.
8381    ac_cv_have_x="have_x=no";; #(
8382  *)
8383    # Record where we found X for the cache.
8384    ac_cv_have_x="have_x=yes\
8385	ac_x_includes='$ac_x_includes'\
8386	ac_x_libraries='$ac_x_libraries'"
8387esac
8388fi
8389;; #(
8390    *) have_x=yes;;
8391  esac
8392  eval "$ac_cv_have_x"
8393fi # $with_x != no
8394
8395if test "$have_x" != yes; then
8396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8397$as_echo "$have_x" >&6; }
8398  no_x=yes
8399else
8400  # If each of the values was on the command line, it overrides each guess.
8401  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8402  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8403  # Update the cache value to reflect the command line values.
8404  ac_cv_have_x="have_x=yes\
8405	ac_x_includes='$x_includes'\
8406	ac_x_libraries='$x_libraries'"
8407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8408$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8409fi
8410
8411if test "$no_x" = yes; then
8412  # Not all programs may use this symbol, but it does not hurt to define it.
8413
8414$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8415
8416  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8417else
8418  if test -n "$x_includes"; then
8419    X_CFLAGS="$X_CFLAGS -I$x_includes"
8420  fi
8421
8422  # It would also be nice to do this for all -L options, not just this one.
8423  if test -n "$x_libraries"; then
8424    X_LIBS="$X_LIBS -L$x_libraries"
8425    # For Solaris; some versions of Sun CC require a space after -R and
8426    # others require no space.  Words are not sufficient . . . .
8427    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8428$as_echo_n "checking whether -R must be followed by a space... " >&6; }
8429    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8430    ac_xsave_c_werror_flag=$ac_c_werror_flag
8431    ac_c_werror_flag=yes
8432    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433/* end confdefs.h.  */
8434
8435int
8436main ()
8437{
8438
8439  ;
8440  return 0;
8441}
8442_ACEOF
8443if ac_fn_c_try_link "$LINENO"; then :
8444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445$as_echo "no" >&6; }
8446       X_LIBS="$X_LIBS -R$x_libraries"
8447else
8448  LIBS="$ac_xsave_LIBS -R $x_libraries"
8449       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450/* end confdefs.h.  */
8451
8452int
8453main ()
8454{
8455
8456  ;
8457  return 0;
8458}
8459_ACEOF
8460if ac_fn_c_try_link "$LINENO"; then :
8461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8462$as_echo "yes" >&6; }
8463	  X_LIBS="$X_LIBS -R $x_libraries"
8464else
8465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8466$as_echo "neither works" >&6; }
8467fi
8468rm -f core conftest.err conftest.$ac_objext \
8469    conftest$ac_exeext conftest.$ac_ext
8470fi
8471rm -f core conftest.err conftest.$ac_objext \
8472    conftest$ac_exeext conftest.$ac_ext
8473    ac_c_werror_flag=$ac_xsave_c_werror_flag
8474    LIBS=$ac_xsave_LIBS
8475  fi
8476
8477  # Check for system-dependent libraries X programs must link with.
8478  # Do this before checking for the system-independent R6 libraries
8479  # (-lICE), since we may need -lsocket or whatever for X linking.
8480
8481  if test "$ISC" = yes; then
8482    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8483  else
8484    # Martyn Johnson says this is needed for Ultrix, if the X
8485    # libraries were built with DECnet support.  And Karl Berry says
8486    # the Alpha needs dnet_stub (dnet does not exist).
8487    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8488    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489/* end confdefs.h.  */
8490
8491/* Override any GCC internal prototype to avoid an error.
8492   Use char because int might match the return type of a GCC
8493   builtin and then its argument prototype would still apply.  */
8494#ifdef __cplusplus
8495extern "C"
8496#endif
8497char XOpenDisplay ();
8498int
8499main ()
8500{
8501return XOpenDisplay ();
8502  ;
8503  return 0;
8504}
8505_ACEOF
8506if ac_fn_c_try_link "$LINENO"; then :
8507
8508else
8509  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8510$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8511if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8512  $as_echo_n "(cached) " >&6
8513else
8514  ac_check_lib_save_LIBS=$LIBS
8515LIBS="-ldnet  $LIBS"
8516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517/* end confdefs.h.  */
8518
8519/* Override any GCC internal prototype to avoid an error.
8520   Use char because int might match the return type of a GCC
8521   builtin and then its argument prototype would still apply.  */
8522#ifdef __cplusplus
8523extern "C"
8524#endif
8525char dnet_ntoa ();
8526int
8527main ()
8528{
8529return dnet_ntoa ();
8530  ;
8531  return 0;
8532}
8533_ACEOF
8534if ac_fn_c_try_link "$LINENO"; then :
8535  ac_cv_lib_dnet_dnet_ntoa=yes
8536else
8537  ac_cv_lib_dnet_dnet_ntoa=no
8538fi
8539rm -f core conftest.err conftest.$ac_objext \
8540    conftest$ac_exeext conftest.$ac_ext
8541LIBS=$ac_check_lib_save_LIBS
8542fi
8543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8544$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8545if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8546  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8547fi
8548
8549    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8550      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8551$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8552if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8553  $as_echo_n "(cached) " >&6
8554else
8555  ac_check_lib_save_LIBS=$LIBS
8556LIBS="-ldnet_stub  $LIBS"
8557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558/* end confdefs.h.  */
8559
8560/* Override any GCC internal prototype to avoid an error.
8561   Use char because int might match the return type of a GCC
8562   builtin and then its argument prototype would still apply.  */
8563#ifdef __cplusplus
8564extern "C"
8565#endif
8566char dnet_ntoa ();
8567int
8568main ()
8569{
8570return dnet_ntoa ();
8571  ;
8572  return 0;
8573}
8574_ACEOF
8575if ac_fn_c_try_link "$LINENO"; then :
8576  ac_cv_lib_dnet_stub_dnet_ntoa=yes
8577else
8578  ac_cv_lib_dnet_stub_dnet_ntoa=no
8579fi
8580rm -f core conftest.err conftest.$ac_objext \
8581    conftest$ac_exeext conftest.$ac_ext
8582LIBS=$ac_check_lib_save_LIBS
8583fi
8584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8585$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8586if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8587  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8588fi
8589
8590    fi
8591fi
8592rm -f core conftest.err conftest.$ac_objext \
8593    conftest$ac_exeext conftest.$ac_ext
8594    LIBS="$ac_xsave_LIBS"
8595
8596    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
8597    # to get the SysV transport functions.
8598    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8599    # needs -lnsl.
8600    # The nsl library prevents programs from opening the X display
8601    # on Irix 5.2, according to T.E. Dickey.
8602    # The functions gethostbyname, getservbyname, and inet_addr are
8603    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8604    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8605if test "x$ac_cv_func_gethostbyname" = xyes; then :
8606
8607fi
8608
8609    if test $ac_cv_func_gethostbyname = no; then
8610      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8611$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8612if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8613  $as_echo_n "(cached) " >&6
8614else
8615  ac_check_lib_save_LIBS=$LIBS
8616LIBS="-lnsl  $LIBS"
8617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618/* end confdefs.h.  */
8619
8620/* Override any GCC internal prototype to avoid an error.
8621   Use char because int might match the return type of a GCC
8622   builtin and then its argument prototype would still apply.  */
8623#ifdef __cplusplus
8624extern "C"
8625#endif
8626char gethostbyname ();
8627int
8628main ()
8629{
8630return gethostbyname ();
8631  ;
8632  return 0;
8633}
8634_ACEOF
8635if ac_fn_c_try_link "$LINENO"; then :
8636  ac_cv_lib_nsl_gethostbyname=yes
8637else
8638  ac_cv_lib_nsl_gethostbyname=no
8639fi
8640rm -f core conftest.err conftest.$ac_objext \
8641    conftest$ac_exeext conftest.$ac_ext
8642LIBS=$ac_check_lib_save_LIBS
8643fi
8644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8645$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8646if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8647  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8648fi
8649
8650      if test $ac_cv_lib_nsl_gethostbyname = no; then
8651	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8652$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8653if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8654  $as_echo_n "(cached) " >&6
8655else
8656  ac_check_lib_save_LIBS=$LIBS
8657LIBS="-lbsd  $LIBS"
8658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659/* end confdefs.h.  */
8660
8661/* Override any GCC internal prototype to avoid an error.
8662   Use char because int might match the return type of a GCC
8663   builtin and then its argument prototype would still apply.  */
8664#ifdef __cplusplus
8665extern "C"
8666#endif
8667char gethostbyname ();
8668int
8669main ()
8670{
8671return gethostbyname ();
8672  ;
8673  return 0;
8674}
8675_ACEOF
8676if ac_fn_c_try_link "$LINENO"; then :
8677  ac_cv_lib_bsd_gethostbyname=yes
8678else
8679  ac_cv_lib_bsd_gethostbyname=no
8680fi
8681rm -f core conftest.err conftest.$ac_objext \
8682    conftest$ac_exeext conftest.$ac_ext
8683LIBS=$ac_check_lib_save_LIBS
8684fi
8685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8686$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8687if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8688  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8689fi
8690
8691      fi
8692    fi
8693
8694    # [email protected] says without -lsocket,
8695    # socket/setsockopt and other routines are undefined under SCO ODT
8696    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8697    # on later versions), says Simon Leinen: it contains gethostby*
8698    # variants that don't use the name server (or something).  -lsocket
8699    # must be given before -lnsl if both are needed.  We assume that
8700    # if connect needs -lnsl, so does gethostbyname.
8701    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8702if test "x$ac_cv_func_connect" = xyes; then :
8703
8704fi
8705
8706    if test $ac_cv_func_connect = no; then
8707      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8708$as_echo_n "checking for connect in -lsocket... " >&6; }
8709if ${ac_cv_lib_socket_connect+:} false; then :
8710  $as_echo_n "(cached) " >&6
8711else
8712  ac_check_lib_save_LIBS=$LIBS
8713LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715/* end confdefs.h.  */
8716
8717/* Override any GCC internal prototype to avoid an error.
8718   Use char because int might match the return type of a GCC
8719   builtin and then its argument prototype would still apply.  */
8720#ifdef __cplusplus
8721extern "C"
8722#endif
8723char connect ();
8724int
8725main ()
8726{
8727return connect ();
8728  ;
8729  return 0;
8730}
8731_ACEOF
8732if ac_fn_c_try_link "$LINENO"; then :
8733  ac_cv_lib_socket_connect=yes
8734else
8735  ac_cv_lib_socket_connect=no
8736fi
8737rm -f core conftest.err conftest.$ac_objext \
8738    conftest$ac_exeext conftest.$ac_ext
8739LIBS=$ac_check_lib_save_LIBS
8740fi
8741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8742$as_echo "$ac_cv_lib_socket_connect" >&6; }
8743if test "x$ac_cv_lib_socket_connect" = xyes; then :
8744  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8745fi
8746
8747    fi
8748
8749    # Guillermo Gomez says -lposix is necessary on A/UX.
8750    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8751if test "x$ac_cv_func_remove" = xyes; then :
8752
8753fi
8754
8755    if test $ac_cv_func_remove = no; then
8756      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8757$as_echo_n "checking for remove in -lposix... " >&6; }
8758if ${ac_cv_lib_posix_remove+:} false; then :
8759  $as_echo_n "(cached) " >&6
8760else
8761  ac_check_lib_save_LIBS=$LIBS
8762LIBS="-lposix  $LIBS"
8763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8764/* end confdefs.h.  */
8765
8766/* Override any GCC internal prototype to avoid an error.
8767   Use char because int might match the return type of a GCC
8768   builtin and then its argument prototype would still apply.  */
8769#ifdef __cplusplus
8770extern "C"
8771#endif
8772char remove ();
8773int
8774main ()
8775{
8776return remove ();
8777  ;
8778  return 0;
8779}
8780_ACEOF
8781if ac_fn_c_try_link "$LINENO"; then :
8782  ac_cv_lib_posix_remove=yes
8783else
8784  ac_cv_lib_posix_remove=no
8785fi
8786rm -f core conftest.err conftest.$ac_objext \
8787    conftest$ac_exeext conftest.$ac_ext
8788LIBS=$ac_check_lib_save_LIBS
8789fi
8790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8791$as_echo "$ac_cv_lib_posix_remove" >&6; }
8792if test "x$ac_cv_lib_posix_remove" = xyes; then :
8793  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8794fi
8795
8796    fi
8797
8798    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8799    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8800if test "x$ac_cv_func_shmat" = xyes; then :
8801
8802fi
8803
8804    if test $ac_cv_func_shmat = no; then
8805      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8806$as_echo_n "checking for shmat in -lipc... " >&6; }
8807if ${ac_cv_lib_ipc_shmat+:} false; then :
8808  $as_echo_n "(cached) " >&6
8809else
8810  ac_check_lib_save_LIBS=$LIBS
8811LIBS="-lipc  $LIBS"
8812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813/* end confdefs.h.  */
8814
8815/* Override any GCC internal prototype to avoid an error.
8816   Use char because int might match the return type of a GCC
8817   builtin and then its argument prototype would still apply.  */
8818#ifdef __cplusplus
8819extern "C"
8820#endif
8821char shmat ();
8822int
8823main ()
8824{
8825return shmat ();
8826  ;
8827  return 0;
8828}
8829_ACEOF
8830if ac_fn_c_try_link "$LINENO"; then :
8831  ac_cv_lib_ipc_shmat=yes
8832else
8833  ac_cv_lib_ipc_shmat=no
8834fi
8835rm -f core conftest.err conftest.$ac_objext \
8836    conftest$ac_exeext conftest.$ac_ext
8837LIBS=$ac_check_lib_save_LIBS
8838fi
8839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8840$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8841if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8842  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8843fi
8844
8845    fi
8846  fi
8847
8848  # Check for libraries that X11R6 Xt/Xaw programs need.
8849  ac_save_LDFLAGS=$LDFLAGS
8850  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8851  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8852  # check for ICE first), but we must link in the order -lSM -lICE or
8853  # we get undefined symbols.  So assume we have SM if we have ICE.
8854  # These have to be linked with before -lX11, unlike the other
8855  # libraries we check for below, so use a different variable.
8856  # John Interrante, Karl Berry
8857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8858$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8859if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8860  $as_echo_n "(cached) " >&6
8861else
8862  ac_check_lib_save_LIBS=$LIBS
8863LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865/* end confdefs.h.  */
8866
8867/* Override any GCC internal prototype to avoid an error.
8868   Use char because int might match the return type of a GCC
8869   builtin and then its argument prototype would still apply.  */
8870#ifdef __cplusplus
8871extern "C"
8872#endif
8873char IceConnectionNumber ();
8874int
8875main ()
8876{
8877return IceConnectionNumber ();
8878  ;
8879  return 0;
8880}
8881_ACEOF
8882if ac_fn_c_try_link "$LINENO"; then :
8883  ac_cv_lib_ICE_IceConnectionNumber=yes
8884else
8885  ac_cv_lib_ICE_IceConnectionNumber=no
8886fi
8887rm -f core conftest.err conftest.$ac_objext \
8888    conftest$ac_exeext conftest.$ac_ext
8889LIBS=$ac_check_lib_save_LIBS
8890fi
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8892$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8893if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8894  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8895fi
8896
8897  LDFLAGS=$ac_save_LDFLAGS
8898
8899fi
8900
8901
8902        if test "$zOSUnix" = "yes"; then
8903    CFLAGS="$CFLAGS -W c,dll"
8904    LDFLAGS="$LDFLAGS -W l,dll"
8905    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
8906  fi
8907
8908
8909  if test -d "$x_includes" && test ! -d "$x_libraries"; then
8910    x_libraries=`echo "$x_includes" | sed s/include/lib/`
8911    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5
8912$as_echo "Corrected X libraries to $x_libraries" >&6; }
8913    X_LIBS="$X_LIBS -L$x_libraries"
8914    if test "`(uname) 2>/dev/null`" = SunOS &&
8915					 uname -r | grep '^5' >/dev/null; then
8916      X_LIBS="$X_LIBS -R $x_libraries"
8917    fi
8918  fi
8919
8920  if test -d "$x_libraries" && test ! -d "$x_includes"; then
8921    x_includes=`echo "$x_libraries" | sed s/lib/include/`
8922    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5
8923$as_echo "Corrected X includes to $x_includes" >&6; }
8924    X_CFLAGS="$X_CFLAGS -I$x_includes"
8925  fi
8926
8927    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
8928    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
8929    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
8930
8931
8932        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5
8933$as_echo_n "checking if X11 header files can be found... " >&6; }
8934  cflags_save=$CFLAGS
8935  CFLAGS="$CFLAGS $X_CFLAGS"
8936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937/* end confdefs.h.  */
8938#include <X11/Xlib.h>
8939#include <X11/Intrinsic.h>
8940int
8941main ()
8942{
8943
8944  ;
8945  return 0;
8946}
8947_ACEOF
8948if ac_fn_c_try_compile "$LINENO"; then :
8949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8950$as_echo "yes" >&6; }
8951else
8952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953$as_echo "no" >&6; }; no_x=yes
8954fi
8955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8956  CFLAGS=$cflags_save
8957
8958  if test "${no_x-no}" = yes; then
8959    with_x=no
8960  else
8961    $as_echo "#define HAVE_X11 1" >>confdefs.h
8962
8963    X_LIB="-lXt -lX11";
8964
8965
8966    ac_save_LDFLAGS="$LDFLAGS"
8967    LDFLAGS="-L$x_libraries $LDFLAGS"
8968
8969            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
8970$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
8971if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then :
8972  $as_echo_n "(cached) " >&6
8973else
8974  ac_check_lib_save_LIBS=$LIBS
8975LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
8976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977/* end confdefs.h.  */
8978
8979/* Override any GCC internal prototype to avoid an error.
8980   Use char because int might match the return type of a GCC
8981   builtin and then its argument prototype would still apply.  */
8982#ifdef __cplusplus
8983extern "C"
8984#endif
8985char _XdmcpAuthDoIt ();
8986int
8987main ()
8988{
8989return _XdmcpAuthDoIt ();
8990  ;
8991  return 0;
8992}
8993_ACEOF
8994if ac_fn_c_try_link "$LINENO"; then :
8995  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
8996else
8997  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
8998fi
8999rm -f core conftest.err conftest.$ac_objext \
9000    conftest$ac_exeext conftest.$ac_ext
9001LIBS=$ac_check_lib_save_LIBS
9002fi
9003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
9004$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
9005if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then :
9006  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
9007fi
9008
9009
9010                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5
9011$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
9012if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then :
9013  $as_echo_n "(cached) " >&6
9014else
9015  ac_check_lib_save_LIBS=$LIBS
9016LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018/* end confdefs.h.  */
9019
9020/* Override any GCC internal prototype to avoid an error.
9021   Use char because int might match the return type of a GCC
9022   builtin and then its argument prototype would still apply.  */
9023#ifdef __cplusplus
9024extern "C"
9025#endif
9026char IceOpenConnection ();
9027int
9028main ()
9029{
9030return IceOpenConnection ();
9031  ;
9032  return 0;
9033}
9034_ACEOF
9035if ac_fn_c_try_link "$LINENO"; then :
9036  ac_cv_lib_ICE_IceOpenConnection=yes
9037else
9038  ac_cv_lib_ICE_IceOpenConnection=no
9039fi
9040rm -f core conftest.err conftest.$ac_objext \
9041    conftest$ac_exeext conftest.$ac_ext
9042LIBS=$ac_check_lib_save_LIBS
9043fi
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
9045$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
9046if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then :
9047  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
9048fi
9049
9050
9051        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
9052    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
9053$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
9054if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then :
9055  $as_echo_n "(cached) " >&6
9056else
9057  ac_check_lib_save_LIBS=$LIBS
9058LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
9059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060/* end confdefs.h.  */
9061
9062/* Override any GCC internal prototype to avoid an error.
9063   Use char because int might match the return type of a GCC
9064   builtin and then its argument prototype would still apply.  */
9065#ifdef __cplusplus
9066extern "C"
9067#endif
9068char XpmCreatePixmapFromData ();
9069int
9070main ()
9071{
9072return XpmCreatePixmapFromData ();
9073  ;
9074  return 0;
9075}
9076_ACEOF
9077if ac_fn_c_try_link "$LINENO"; then :
9078  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
9079else
9080  ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
9081fi
9082rm -f core conftest.err conftest.$ac_objext \
9083    conftest$ac_exeext conftest.$ac_ext
9084LIBS=$ac_check_lib_save_LIBS
9085fi
9086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
9087$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
9088if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then :
9089  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
9090fi
9091
9092
9093        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5
9094$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
9095    cflags_save=$CFLAGS
9096        if test "$GCC" = yes; then
9097      CFLAGS="$CFLAGS $X_CFLAGS -Werror"
9098    else
9099      CFLAGS="$CFLAGS $X_CFLAGS"
9100    fi
9101    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102/* end confdefs.h.  */
9103#include <X11/Xlib.h>
9104int
9105main ()
9106{
9107
9108  ;
9109  return 0;
9110}
9111_ACEOF
9112if ac_fn_c_try_compile "$LINENO"; then :
9113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114$as_echo "no" >&6; }
9115else
9116  CFLAGS="$CFLAGS -Wno-implicit-int"
9117	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118/* end confdefs.h.  */
9119#include <X11/Xlib.h>
9120int
9121main ()
9122{
9123
9124  ;
9125  return 0;
9126}
9127_ACEOF
9128if ac_fn_c_try_compile "$LINENO"; then :
9129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9130$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
9131else
9132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
9133$as_echo "test failed" >&6; }
9134
9135fi
9136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9137
9138fi
9139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9140    CFLAGS=$cflags_save
9141
9142    LDFLAGS="$ac_save_LDFLAGS"
9143
9144    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5
9145$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
9146    if ${ac_cv_small_wchar_t+:} false; then :
9147  $as_echo_n "(cached) " >&6
9148else
9149  if test "$cross_compiling" = yes; then :
9150  as_fn_error $? "failed to compile test program" "$LINENO" 5
9151else
9152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153/* end confdefs.h.  */
9154
9155#include <X11/Xlib.h>
9156#if STDC_HEADERS
9157# include <stdlib.h>
9158# include <stddef.h>
9159#endif
9160		main()
9161		{
9162		  if (sizeof(wchar_t) <= 2)
9163		    exit(1);
9164		  exit(0);
9165		}
9166_ACEOF
9167if ac_fn_c_try_run "$LINENO"; then :
9168  ac_cv_small_wchar_t="no"
9169else
9170  ac_cv_small_wchar_t="yes"
9171fi
9172rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9173  conftest.$ac_objext conftest.beam conftest.$ac_ext
9174fi
9175
9176fi
9177
9178    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5
9179$as_echo "$ac_cv_small_wchar_t" >&6; }
9180    if test "x$ac_cv_small_wchar_t" = "xyes" ; then
9181      $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h
9182
9183    fi
9184
9185  fi
9186fi
9187
9188if test "x$with_x" = xno -a "x$with_x_arg" = xyes; then
9189    as_fn_error $? "could not configure X" "$LINENO" 5
9190fi
9191
9192test "x$with_x" = xno -a "x$HAIKU" != "xyes" -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
9193
9194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5
9195$as_echo_n "checking --enable-gui argument... " >&6; }
9196# Check whether --enable-gui was given.
9197if test "${enable_gui+set}" = set; then :
9198  enableval=$enable_gui;
9199else
9200  enable_gui="auto"
9201fi
9202
9203
9204enable_gui_canon=`echo "_$enable_gui" | \
9205	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
9206
9207SKIP_GTK2=YES
9208SKIP_GTK3=YES
9209SKIP_GNOME=YES
9210SKIP_MOTIF=YES
9211SKIP_ATHENA=YES
9212SKIP_NEXTAW=YES
9213SKIP_PHOTON=YES
9214SKIP_HAIKU=YES
9215SKIP_CARBON=YES
9216GUITYPE=NONE
9217
9218if test "x$HAIKU" = "xyes"; then
9219  SKIP_HAIKU=
9220  case "$enable_gui_canon" in
9221    no)     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9222$as_echo "no GUI support" >&6; }
9223            SKIP_HAIKU=YES ;;
9224    yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
9225$as_echo "yes - automatic GUI support" >&6; } ;;
9226    auto)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5
9227$as_echo "auto - automatic GUI support" >&6; } ;;
9228    haiku)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Haiku GUI support" >&5
9229$as_echo "Haiku GUI support" >&6; } ;;
9230    *)      { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9231$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9232            SKIP_HAIKU=YES ;;
9233    esac
9234elif test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
9235  SKIP_PHOTON=
9236  case "$enable_gui_canon" in
9237    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9238$as_echo "no GUI support" >&6; }
9239		SKIP_PHOTON=YES ;;
9240    yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatic GUI support" >&5
9241$as_echo "automatic GUI support" >&6; }
9242    		gui_auto=yes ;;
9243    photon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5
9244$as_echo "Photon GUI support" >&6; } ;;
9245    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9246$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9247		SKIP_PHOTON=YES ;;
9248  esac
9249
9250elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then
9251  SKIP_CARBON=
9252  case "$enable_gui_canon" in
9253    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9254$as_echo "no GUI support" >&6; }
9255		SKIP_CARBON=YES ;;
9256    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
9257$as_echo "yes - automatic GUI support" >&6; }
9258    		gui_auto=yes ;;
9259    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5
9260$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; }
9261		SKIP_CARBON=YES ;;
9262    carbon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5
9263$as_echo "Carbon GUI support" >&6; } ;;
9264    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9265$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9266		SKIP_CARBON=YES ;;
9267  esac
9268
9269else
9270
9271  case "$enable_gui_canon" in
9272    no|none)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9273$as_echo "no GUI support" >&6; } ;;
9274    yes|""|auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5
9275$as_echo "yes/auto - automatic GUI support" >&6; }
9276		gui_auto=yes
9277		SKIP_GTK2=
9278		SKIP_GNOME=
9279		SKIP_MOTIF=
9280		SKIP_ATHENA=
9281		SKIP_NEXTAW=
9282		SKIP_CARBON=;;
9283    gtk2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5
9284$as_echo "GTK+ 2.x GUI support" >&6; }
9285		SKIP_GTK2=;;
9286    gnome2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5
9287$as_echo "GNOME 2.x GUI support" >&6; }
9288		SKIP_GNOME=
9289		SKIP_GTK2=;;
9290    gtk3)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5
9291$as_echo "GTK+ 3.x GUI support" >&6; }
9292		SKIP_GTK3=;;
9293    motif)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5
9294$as_echo "Motif GUI support" >&6; }
9295		SKIP_MOTIF=;;
9296    athena)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5
9297$as_echo "Athena GUI support" >&6; }
9298		SKIP_ATHENA=;;
9299    nextaw)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5
9300$as_echo "neXtaw GUI support" >&6; }
9301		SKIP_NEXTAW=;;
9302    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9303$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
9304  esac
9305
9306fi
9307
9308if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
9309				-a "$enable_gui_canon" != "gnome2"; then
9310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5
9311$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
9312  # Check whether --enable-gtk2-check was given.
9313if test "${enable_gtk2_check+set}" = set; then :
9314  enableval=$enable_gtk2_check;
9315else
9316  enable_gtk2_check="yes"
9317fi
9318
9319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5
9320$as_echo "$enable_gtk2_check" >&6; }
9321  if test "x$enable_gtk2_check" = "xno"; then
9322    SKIP_GTK2=YES
9323    SKIP_GNOME=YES
9324  fi
9325fi
9326
9327if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then
9328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5
9329$as_echo_n "checking whether or not to look for GNOME... " >&6; }
9330  # Check whether --enable-gnome-check was given.
9331if test "${enable_gnome_check+set}" = set; then :
9332  enableval=$enable_gnome_check;
9333else
9334  enable_gnome_check="no"
9335fi
9336
9337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5
9338$as_echo "$enable_gnome_check" >&6; }
9339  if test "x$enable_gnome_check" = "xno"; then
9340    SKIP_GNOME=YES
9341  fi
9342fi
9343
9344if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then
9345  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5
9346$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; }
9347  # Check whether --enable-gtk3-check was given.
9348if test "${enable_gtk3_check+set}" = set; then :
9349  enableval=$enable_gtk3_check;
9350else
9351  enable_gtk3_check="yes"
9352fi
9353
9354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5
9355$as_echo "$enable_gtk3_check" >&6; }
9356  if test "x$enable_gtk3_check" = "xno"; then
9357    SKIP_GTK3=YES
9358  fi
9359fi
9360
9361if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
9362  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5
9363$as_echo_n "checking whether or not to look for Motif... " >&6; }
9364  # Check whether --enable-motif-check was given.
9365if test "${enable_motif_check+set}" = set; then :
9366  enableval=$enable_motif_check;
9367else
9368  enable_motif_check="yes"
9369fi
9370
9371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5
9372$as_echo "$enable_motif_check" >&6; }
9373  if test "x$enable_motif_check" = "xno"; then
9374    SKIP_MOTIF=YES
9375  fi
9376fi
9377
9378if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
9379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5
9380$as_echo_n "checking whether or not to look for Athena... " >&6; }
9381  # Check whether --enable-athena-check was given.
9382if test "${enable_athena_check+set}" = set; then :
9383  enableval=$enable_athena_check;
9384else
9385  enable_athena_check="yes"
9386fi
9387
9388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5
9389$as_echo "$enable_athena_check" >&6; }
9390  if test "x$enable_athena_check" = "xno"; then
9391    SKIP_ATHENA=YES
9392  fi
9393fi
9394
9395if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
9396  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5
9397$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
9398  # Check whether --enable-nextaw-check was given.
9399if test "${enable_nextaw_check+set}" = set; then :
9400  enableval=$enable_nextaw_check;
9401else
9402  enable_nextaw_check="yes"
9403fi
9404
9405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5
9406$as_echo "$enable_nextaw_check" >&6; };
9407  if test "x$enable_nextaw_check" = "xno"; then
9408    SKIP_NEXTAW=YES
9409  fi
9410fi
9411
9412if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
9413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5
9414$as_echo_n "checking whether or not to look for Carbon... " >&6; }
9415  # Check whether --enable-carbon-check was given.
9416if test "${enable_carbon_check+set}" = set; then :
9417  enableval=$enable_carbon_check;
9418else
9419  enable_carbon_check="yes"
9420fi
9421
9422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5
9423$as_echo "$enable_carbon_check" >&6; };
9424  if test "x$enable_carbon_check" = "xno"; then
9425    SKIP_CARBON=YES
9426  fi
9427fi
9428
9429
9430if test "x$MACOS_X" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
9431  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5
9432$as_echo_n "checking for Carbon GUI... " >&6; }
9433    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9434$as_echo "yes" >&6; };
9435  GUITYPE=CARBONGUI
9436  if test "$VIMNAME" = "vim"; then
9437    VIMNAME=Vim
9438  fi
9439
9440  if test "x$MACARCH" = "xboth"; then
9441    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
9442  else
9443    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
9444  fi
9445
9446    if test x$prefix = xNONE; then
9447    prefix=/Applications
9448  fi
9449
9450    datadir='${prefix}/Vim.app/Contents/Resources'
9451
9452    SKIP_GTK2=YES;
9453  SKIP_GNOME=YES;
9454  SKIP_MOTIF=YES;
9455  SKIP_ATHENA=YES;
9456  SKIP_NEXTAW=YES;
9457  SKIP_PHOTON=YES;
9458  SKIP_HAIKU=YES;
9459  SKIP_CARBON=YES
9460fi
9461
9462
9463
9464
9465
9466
9467
9468if test "X$PKG_CONFIG" = "X"; then
9469  if test -n "$ac_tool_prefix"; then
9470  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9471set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9473$as_echo_n "checking for $ac_word... " >&6; }
9474if ${ac_cv_path_PKG_CONFIG+:} false; then :
9475  $as_echo_n "(cached) " >&6
9476else
9477  case $PKG_CONFIG in
9478  [\\/]* | ?:[\\/]*)
9479  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9480  ;;
9481  *)
9482  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9483for as_dir in $PATH
9484do
9485  IFS=$as_save_IFS
9486  test -z "$as_dir" && as_dir=.
9487    for ac_exec_ext in '' $ac_executable_extensions; do
9488  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9489    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9490    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9491    break 2
9492  fi
9493done
9494  done
9495IFS=$as_save_IFS
9496
9497  ;;
9498esac
9499fi
9500PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9501if test -n "$PKG_CONFIG"; then
9502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9503$as_echo "$PKG_CONFIG" >&6; }
9504else
9505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9506$as_echo "no" >&6; }
9507fi
9508
9509
9510fi
9511if test -z "$ac_cv_path_PKG_CONFIG"; then
9512  ac_pt_PKG_CONFIG=$PKG_CONFIG
9513  # Extract the first word of "pkg-config", so it can be a program name with args.
9514set dummy pkg-config; ac_word=$2
9515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9516$as_echo_n "checking for $ac_word... " >&6; }
9517if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9518  $as_echo_n "(cached) " >&6
9519else
9520  case $ac_pt_PKG_CONFIG in
9521  [\\/]* | ?:[\\/]*)
9522  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9523  ;;
9524  *)
9525  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9526for as_dir in $PATH
9527do
9528  IFS=$as_save_IFS
9529  test -z "$as_dir" && as_dir=.
9530    for ac_exec_ext in '' $ac_executable_extensions; do
9531  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9532    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9533    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9534    break 2
9535  fi
9536done
9537  done
9538IFS=$as_save_IFS
9539
9540  ;;
9541esac
9542fi
9543ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9544if test -n "$ac_pt_PKG_CONFIG"; then
9545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9546$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9547else
9548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9549$as_echo "no" >&6; }
9550fi
9551
9552  if test "x$ac_pt_PKG_CONFIG" = x; then
9553    PKG_CONFIG="no"
9554  else
9555    case $cross_compiling:$ac_tool_warned in
9556yes:)
9557{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9558$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9559ac_tool_warned=yes ;;
9560esac
9561    PKG_CONFIG=$ac_pt_PKG_CONFIG
9562  fi
9563else
9564  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9565fi
9566
9567fi
9568
9569
9570if test -z "$SKIP_GTK2"; then
9571
9572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9573$as_echo_n "checking --disable-gtktest argument... " >&6; }
9574  # Check whether --enable-gtktest was given.
9575if test "${enable_gtktest+set}" = set; then :
9576  enableval=$enable_gtktest;
9577else
9578  enable_gtktest=yes
9579fi
9580
9581  if test "x$enable_gtktest" = "xyes" ; then
9582    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9583$as_echo "gtk test enabled" >&6; }
9584  else
9585    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9586$as_echo "gtk test disabled" >&6; }
9587  fi
9588
9589  if test "x$PKG_CONFIG" != "xno"; then
9590
9591  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9592  {
9593    no_gtk=""
9594    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9595	  && $PKG_CONFIG --exists gtk+-2.0; then
9596    {
9597      min_gtk_version=2.2.0
9598      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9599$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9600                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9601      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9602      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9603      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9604	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9605      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9606	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9607      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9608	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9609    }
9610    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9611	  && $PKG_CONFIG --exists gtk+-3.0; then
9612    {
9613      min_gtk_version=2.2.0
9614      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9615$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9616
9617      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9618      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9619      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9620      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9621	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9622      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9623	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9624      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9625	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9626    }
9627    else
9628      no_gtk=yes
9629    fi
9630
9631    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9632    {
9633      ac_save_CFLAGS="$CFLAGS"
9634      ac_save_LIBS="$LIBS"
9635      CFLAGS="$CFLAGS $GTK_CFLAGS"
9636      LIBS="$LIBS $GTK_LIBS"
9637
9638                        rm -f conf.gtktest
9639      if test "$cross_compiling" = yes; then :
9640  echo $ac_n "cross compiling; assumed OK... $ac_c"
9641else
9642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9643/* end confdefs.h.  */
9644
9645#include <gtk/gtk.h>
9646#include <stdio.h>
9647#if STDC_HEADERS
9648# include <stdlib.h>
9649# include <stddef.h>
9650#endif
9651
9652int
9653main ()
9654{
9655int major, minor, micro;
9656char *tmp_version;
9657
9658system ("touch conf.gtktest");
9659
9660/* HP/UX 9 (%@#!) writes to sscanf strings */
9661tmp_version = g_strdup("$min_gtk_version");
9662if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9663   printf("%s, bad version string\n", "$min_gtk_version");
9664   exit(1);
9665 }
9666
9667if ((gtk_major_version > major) ||
9668    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9669    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9670				     (gtk_micro_version >= micro)))
9671{
9672    return 0;
9673}
9674return 1;
9675}
9676
9677_ACEOF
9678if ac_fn_c_try_run "$LINENO"; then :
9679
9680else
9681  no_gtk=yes
9682fi
9683rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9684  conftest.$ac_objext conftest.beam conftest.$ac_ext
9685fi
9686
9687      CFLAGS="$ac_save_CFLAGS"
9688      LIBS="$ac_save_LIBS"
9689    }
9690    fi
9691    if test "x$no_gtk" = x ; then
9692      if test "x$enable_gtktest" = "xyes"; then
9693	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9694$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9695      else
9696	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9697$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9698      fi
9699      GUI_LIB_LOC="$GTK_LIBDIR"
9700		 GTK_LIBNAME="$GTK_LIBS"
9701		GUI_INC_LOC="$GTK_CFLAGS"
9702    else
9703    {
9704      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9705$as_echo "no" >&6; }
9706      GTK_CFLAGS=""
9707      GTK_LIBS=""
9708      :
9709      if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then
9710	as_fn_error $? "could not configure GTK" "$LINENO" 5
9711      fi
9712    }
9713    fi
9714  }
9715  else
9716    GTK_CFLAGS=""
9717    GTK_LIBS=""
9718    :
9719  fi
9720
9721
9722  rm -f conf.gtktest
9723
9724    if test "x$GTK_CFLAGS" != "x"; then
9725      SKIP_GTK3=YES
9726      SKIP_ATHENA=YES
9727      SKIP_NEXTAW=YES
9728      SKIP_MOTIF=YES
9729      GUITYPE=GTK
9730
9731    fi
9732  fi
9733  if test "x$GUITYPE" = "xGTK"; then
9734                if test -z "$SKIP_GNOME"; then
9735    {
9736
9737
9738
9739
9740
9741
9742# Check whether --with-gnome-includes was given.
9743if test "${with_gnome_includes+set}" = set; then :
9744  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
9745
9746fi
9747
9748
9749
9750# Check whether --with-gnome-libs was given.
9751if test "${with_gnome_libs+set}" = set; then :
9752  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9753
9754fi
9755
9756
9757
9758# Check whether --with-gnome was given.
9759if test "${with_gnome+set}" = set; then :
9760  withval=$with_gnome; if test x$withval = xyes; then
9761      want_gnome=yes
9762      have_gnome=yes
9763    else
9764      if test "x$withval" = xno; then
9765	want_gnome=no
9766      else
9767	want_gnome=yes
9768	LDFLAGS="$LDFLAGS -L$withval/lib"
9769	CFLAGS="$CFLAGS -I$withval/include"
9770	gnome_prefix=$withval/lib
9771      fi
9772    fi
9773else
9774  want_gnome=yes
9775fi
9776
9777
9778  if test "x$want_gnome" = xyes; then
9779  {
9780    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5
9781$as_echo_n "checking for libgnomeui-2.0... " >&6; }
9782    if $PKG_CONFIG --exists libgnomeui-2.0; then
9783      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9784$as_echo "yes" >&6; }
9785      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
9786      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
9787      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
9788
9789                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5
9790$as_echo_n "checking for FreeBSD... " >&6; }
9791      if test "`(uname) 2>/dev/null`" = FreeBSD; then
9792	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9793$as_echo "yes" >&6; }
9794	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9795	GNOME_LIBS="$GNOME_LIBS -pthread"
9796      else
9797	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9798$as_echo "no" >&6; }
9799      fi
9800      have_gnome=yes
9801    else
9802      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9803$as_echo "not found" >&6; }
9804      if test "x" = xfail; then
9805	as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5
9806      fi
9807    fi
9808  }
9809  fi
9810
9811      if test "x$have_gnome" = xyes ; then
9812	$as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h
9813
9814	GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9815	GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9816      fi
9817    }
9818    fi
9819  fi
9820fi
9821
9822
9823if test -z "$SKIP_GTK3"; then
9824
9825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9826$as_echo_n "checking --disable-gtktest argument... " >&6; }
9827  # Check whether --enable-gtktest was given.
9828if test "${enable_gtktest+set}" = set; then :
9829  enableval=$enable_gtktest;
9830else
9831  enable_gtktest=yes
9832fi
9833
9834  if test "x$enable_gtktest" = "xyes" ; then
9835    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9836$as_echo "gtk test enabled" >&6; }
9837  else
9838    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9839$as_echo "gtk test disabled" >&6; }
9840  fi
9841
9842  if test "x$PKG_CONFIG" != "xno"; then
9843
9844  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9845  {
9846    no_gtk=""
9847    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9848	  && $PKG_CONFIG --exists gtk+-2.0; then
9849    {
9850      min_gtk_version=3.0.0
9851      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9852$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9853                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9854      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9855      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9856      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9857	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9858      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9859	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9860      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9861	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9862    }
9863    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9864	  && $PKG_CONFIG --exists gtk+-3.0; then
9865    {
9866      min_gtk_version=3.0.0
9867      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9868$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9869
9870      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9871      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9872      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9873      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9874	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9875      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9876	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9877      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9878	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9879    }
9880    else
9881      no_gtk=yes
9882    fi
9883
9884    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9885    {
9886      ac_save_CFLAGS="$CFLAGS"
9887      ac_save_LIBS="$LIBS"
9888      CFLAGS="$CFLAGS $GTK_CFLAGS"
9889      LIBS="$LIBS $GTK_LIBS"
9890
9891                        rm -f conf.gtktest
9892      if test "$cross_compiling" = yes; then :
9893  echo $ac_n "cross compiling; assumed OK... $ac_c"
9894else
9895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896/* end confdefs.h.  */
9897
9898#include <gtk/gtk.h>
9899#include <stdio.h>
9900#if STDC_HEADERS
9901# include <stdlib.h>
9902# include <stddef.h>
9903#endif
9904
9905int
9906main ()
9907{
9908int major, minor, micro;
9909char *tmp_version;
9910
9911system ("touch conf.gtktest");
9912
9913/* HP/UX 9 (%@#!) writes to sscanf strings */
9914tmp_version = g_strdup("$min_gtk_version");
9915if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9916   printf("%s, bad version string\n", "$min_gtk_version");
9917   exit(1);
9918 }
9919
9920if ((gtk_major_version > major) ||
9921    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9922    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9923				     (gtk_micro_version >= micro)))
9924{
9925    return 0;
9926}
9927return 1;
9928}
9929
9930_ACEOF
9931if ac_fn_c_try_run "$LINENO"; then :
9932
9933else
9934  no_gtk=yes
9935fi
9936rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9937  conftest.$ac_objext conftest.beam conftest.$ac_ext
9938fi
9939
9940      CFLAGS="$ac_save_CFLAGS"
9941      LIBS="$ac_save_LIBS"
9942    }
9943    fi
9944    if test "x$no_gtk" = x ; then
9945      if test "x$enable_gtktest" = "xyes"; then
9946	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9947$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9948      else
9949	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9950$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9951      fi
9952      GUI_LIB_LOC="$GTK_LIBDIR"
9953		 GTK_LIBNAME="$GTK_LIBS"
9954		GUI_INC_LOC="$GTK_CFLAGS"
9955    else
9956    {
9957      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958$as_echo "no" >&6; }
9959      GTK_CFLAGS=""
9960      GTK_LIBS=""
9961      :
9962      if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then
9963	as_fn_error $? "could not configure GTK" "$LINENO" 5
9964      fi
9965    }
9966    fi
9967  }
9968  else
9969    GTK_CFLAGS=""
9970    GTK_LIBS=""
9971    :
9972  fi
9973
9974
9975  rm -f conf.gtktest
9976
9977    if test "x$GTK_CFLAGS" != "x"; then
9978      SKIP_GTK2=YES
9979      SKIP_GNOME=YES
9980      SKIP_ATHENA=YES
9981      SKIP_NEXTAW=YES
9982      SKIP_MOTIF=YES
9983      GUITYPE=GTK
9984
9985      $as_echo "#define USE_GTK3 1" >>confdefs.h
9986
9987    fi
9988  fi
9989fi
9990
9991if test "x$GUITYPE" = "xGTK"; then
9992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5
9993$as_echo_n "checking version of Gdk-Pixbuf... " >&6; }
9994  gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0`
9995  if test "x$gdk_pixbuf_version" != x ; then
9996    gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \
9997      sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'`
9998    if test "x$gdk_pixbuf_version_minor" != x -a \
9999	$gdk_pixbuf_version_minor -ge 31 ; then
10000      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5
10001$as_echo "OK." >&6; }
10002      # Extract the first word of "glib-compile-resources", so it can be a program name with args.
10003set dummy glib-compile-resources; ac_word=$2
10004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10005$as_echo_n "checking for $ac_word... " >&6; }
10006if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then :
10007  $as_echo_n "(cached) " >&6
10008else
10009  case $GLIB_COMPILE_RESOURCES in
10010  [\\/]* | ?:[\\/]*)
10011  ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path.
10012  ;;
10013  *)
10014  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10015for as_dir in $PATH
10016do
10017  IFS=$as_save_IFS
10018  test -z "$as_dir" && as_dir=.
10019    for ac_exec_ext in '' $ac_executable_extensions; do
10020  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10021    ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext"
10022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10023    break 2
10024  fi
10025done
10026  done
10027IFS=$as_save_IFS
10028
10029  test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no"
10030  ;;
10031esac
10032fi
10033GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES
10034if test -n "$GLIB_COMPILE_RESOURCES"; then
10035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
10036$as_echo "$GLIB_COMPILE_RESOURCES" >&6; }
10037else
10038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039$as_echo "no" >&6; }
10040fi
10041
10042
10043      { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5
10044$as_echo_n "checking glib-compile-resources... " >&6; }
10045      if test "x$GLIB_COMPILE_RESOURCES" = xno ; then
10046	GLIB_COMPILE_RESOURCES=""
10047	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5
10048$as_echo "cannot be found in PATH." >&6; }
10049      else
10050	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5
10051$as_echo "usable." >&6; }
10052	$as_echo "#define USE_GRESOURCE 1" >>confdefs.h
10053
10054	GRESOURCE_SRC="auto/gui_gtk_gresources.c"
10055	GRESOURCE_OBJ="objects/gui_gtk_gresources.o"
10056      fi
10057    else
10058      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5
10059$as_echo "not usable." >&6; }
10060    fi
10061  else
10062    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5
10063$as_echo "cannot obtain from pkg_config." >&6; }
10064  fi
10065
10066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5
10067$as_echo_n "checking --disable-icon-cache-update argument... " >&6; }
10068  # Check whether --enable-icon_cache_update was given.
10069if test "${enable_icon_cache_update+set}" = set; then :
10070  enableval=$enable_icon_cache_update;
10071else
10072  enable_icon_cache_update="yes"
10073fi
10074
10075  if test "$enable_icon_cache_update" = "yes"; then
10076    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
10077$as_echo "not set" >&6; }
10078    # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args.
10079set dummy gtk-update-icon-cache; ac_word=$2
10080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081$as_echo_n "checking for $ac_word... " >&6; }
10082if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then :
10083  $as_echo_n "(cached) " >&6
10084else
10085  case $GTK_UPDATE_ICON_CACHE in
10086  [\\/]* | ?:[\\/]*)
10087  ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path.
10088  ;;
10089  *)
10090  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091for as_dir in $PATH
10092do
10093  IFS=$as_save_IFS
10094  test -z "$as_dir" && as_dir=.
10095    for ac_exec_ext in '' $ac_executable_extensions; do
10096  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10097    ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext"
10098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10099    break 2
10100  fi
10101done
10102  done
10103IFS=$as_save_IFS
10104
10105  test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no"
10106  ;;
10107esac
10108fi
10109GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE
10110if test -n "$GTK_UPDATE_ICON_CACHE"; then
10111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5
10112$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; }
10113else
10114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115$as_echo "no" >&6; }
10116fi
10117
10118
10119    if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then
10120      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
10121$as_echo "not found in PATH." >&6; }
10122    fi
10123  else
10124    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
10125$as_echo "update disabled" >&6; }
10126  fi
10127
10128  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5
10129$as_echo_n "checking --disable-desktop-database-update argument... " >&6; }
10130  # Check whether --enable-desktop_database_update was given.
10131if test "${enable_desktop_database_update+set}" = set; then :
10132  enableval=$enable_desktop_database_update;
10133else
10134  enable_desktop_database_update="yes"
10135fi
10136
10137  if test "$enable_desktop_database_update" = "yes"; then
10138    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
10139$as_echo "not set" >&6; }
10140    # Extract the first word of "update-desktop-database", so it can be a program name with args.
10141set dummy update-desktop-database; ac_word=$2
10142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10143$as_echo_n "checking for $ac_word... " >&6; }
10144if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
10145  $as_echo_n "(cached) " >&6
10146else
10147  case $UPDATE_DESKTOP_DATABASE in
10148  [\\/]* | ?:[\\/]*)
10149  ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
10150  ;;
10151  *)
10152  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153for as_dir in $PATH
10154do
10155  IFS=$as_save_IFS
10156  test -z "$as_dir" && as_dir=.
10157    for ac_exec_ext in '' $ac_executable_extensions; do
10158  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10159    ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
10160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161    break 2
10162  fi
10163done
10164  done
10165IFS=$as_save_IFS
10166
10167  test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
10168  ;;
10169esac
10170fi
10171UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
10172if test -n "$UPDATE_DESKTOP_DATABASE"; then
10173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
10174$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
10175else
10176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177$as_echo "no" >&6; }
10178fi
10179
10180
10181    if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then
10182      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
10183$as_echo "not found in PATH." >&6; }
10184    fi
10185  else
10186    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
10187$as_echo "update disabled" >&6; }
10188  fi
10189fi
10190
10191
10192
10193
10194
10195
10196
10197if test -z "$SKIP_MOTIF"; then
10198  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"
10199    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
10200
10201  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5
10202$as_echo_n "checking for location of Motif GUI includes... " >&6; }
10203  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
10204  GUI_INC_LOC=
10205  for try in $gui_includes; do
10206    if test -f "$try/Xm/Xm.h"; then
10207      GUI_INC_LOC=$try
10208    fi
10209  done
10210  if test -n "$GUI_INC_LOC"; then
10211    if test "$GUI_INC_LOC" = /usr/include; then
10212      GUI_INC_LOC=
10213      { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
10214$as_echo "in default path" >&6; }
10215    else
10216      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5
10217$as_echo "$GUI_INC_LOC" >&6; }
10218    fi
10219  else
10220    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
10221$as_echo "<not found>" >&6; }
10222    SKIP_MOTIF=YES
10223  fi
10224fi
10225
10226
10227if test -z "$SKIP_MOTIF"; then
10228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5
10229$as_echo_n "checking --with-motif-lib argument... " >&6; }
10230
10231# Check whether --with-motif-lib was given.
10232if test "${with_motif_lib+set}" = set; then :
10233  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
10234fi
10235
10236
10237  if test -n "$MOTIF_LIBNAME"; then
10238    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5
10239$as_echo "$MOTIF_LIBNAME" >&6; }
10240    GUI_LIB_LOC=
10241  else
10242    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243$as_echo "no" >&6; }
10244
10245        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
10246
10247            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
10248$as_echo_n "checking for location of Motif GUI libs... " >&6; }
10249    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"
10250    GUI_LIB_LOC=
10251    for try in $gui_libs; do
10252      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
10253	if test -f "$libtry"; then
10254	  GUI_LIB_LOC=$try
10255	fi
10256      done
10257    done
10258    if test -n "$GUI_LIB_LOC"; then
10259            if test "$GUI_LIB_LOC" = /usr/lib \
10260	   -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \
10261	   -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then
10262	GUI_LIB_LOC=
10263	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
10264$as_echo "in default path" >&6; }
10265      else
10266	if test -n "$GUI_LIB_LOC"; then
10267	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5
10268$as_echo "$GUI_LIB_LOC" >&6; }
10269	  if test "`(uname) 2>/dev/null`" = SunOS &&
10270					 uname -r | grep '^5' >/dev/null; then
10271	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
10272	  fi
10273	fi
10274      fi
10275      MOTIF_LIBNAME=-lXm
10276    else
10277      { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
10278$as_echo "<not found>" >&6; }
10279      SKIP_MOTIF=YES
10280    fi
10281  fi
10282fi
10283
10284if test -z "$SKIP_MOTIF"; then
10285  SKIP_ATHENA=YES
10286  SKIP_NEXTAW=YES
10287  GUITYPE=MOTIF
10288
10289fi
10290
10291
10292GUI_X_LIBS=
10293
10294if test -z "$SKIP_ATHENA"; then
10295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5
10296$as_echo_n "checking if Athena header files can be found... " >&6; }
10297  cflags_save=$CFLAGS
10298  CFLAGS="$CFLAGS $X_CFLAGS"
10299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300/* end confdefs.h.  */
10301
10302#include <X11/Intrinsic.h>
10303#include <X11/Xaw/Paned.h>
10304int
10305main ()
10306{
10307
10308  ;
10309  return 0;
10310}
10311_ACEOF
10312if ac_fn_c_try_compile "$LINENO"; then :
10313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10314$as_echo "yes" >&6; }
10315else
10316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10317$as_echo "no" >&6; }; SKIP_ATHENA=YES
10318fi
10319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10320  CFLAGS=$cflags_save
10321fi
10322
10323if test -z "$SKIP_ATHENA"; then
10324  GUITYPE=ATHENA
10325fi
10326
10327if test -z "$SKIP_NEXTAW"; then
10328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5
10329$as_echo_n "checking if neXtaw header files can be found... " >&6; }
10330  cflags_save=$CFLAGS
10331  CFLAGS="$CFLAGS $X_CFLAGS"
10332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10333/* end confdefs.h.  */
10334
10335#include <X11/Intrinsic.h>
10336#include <X11/neXtaw/Paned.h>
10337int
10338main ()
10339{
10340
10341  ;
10342  return 0;
10343}
10344_ACEOF
10345if ac_fn_c_try_compile "$LINENO"; then :
10346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10347$as_echo "yes" >&6; }
10348else
10349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350$as_echo "no" >&6; }; SKIP_NEXTAW=YES
10351fi
10352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10353  CFLAGS=$cflags_save
10354fi
10355
10356if test -z "$SKIP_NEXTAW"; then
10357  GUITYPE=NEXTAW
10358fi
10359
10360if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10361      if test -n "$GUI_INC_LOC"; then
10362    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
10363  fi
10364  if test -n "$GUI_LIB_LOC"; then
10365    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
10366  fi
10367
10368    ldflags_save=$LDFLAGS
10369  LDFLAGS="$X_LIBS $LDFLAGS"
10370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10371$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10372if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
10373  $as_echo_n "(cached) " >&6
10374else
10375  ac_check_lib_save_LIBS=$LIBS
10376LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378/* end confdefs.h.  */
10379
10380/* Override any GCC internal prototype to avoid an error.
10381   Use char because int might match the return type of a GCC
10382   builtin and then its argument prototype would still apply.  */
10383#ifdef __cplusplus
10384extern "C"
10385#endif
10386char XShapeQueryExtension ();
10387int
10388main ()
10389{
10390return XShapeQueryExtension ();
10391  ;
10392  return 0;
10393}
10394_ACEOF
10395if ac_fn_c_try_link "$LINENO"; then :
10396  ac_cv_lib_Xext_XShapeQueryExtension=yes
10397else
10398  ac_cv_lib_Xext_XShapeQueryExtension=no
10399fi
10400rm -f core conftest.err conftest.$ac_objext \
10401    conftest$ac_exeext conftest.$ac_ext
10402LIBS=$ac_check_lib_save_LIBS
10403fi
10404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10405$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10406if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
10407  GUI_X_LIBS="-lXext"
10408fi
10409
10410    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5
10411$as_echo_n "checking for wslen in -lw... " >&6; }
10412if ${ac_cv_lib_w_wslen+:} false; then :
10413  $as_echo_n "(cached) " >&6
10414else
10415  ac_check_lib_save_LIBS=$LIBS
10416LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418/* end confdefs.h.  */
10419
10420/* Override any GCC internal prototype to avoid an error.
10421   Use char because int might match the return type of a GCC
10422   builtin and then its argument prototype would still apply.  */
10423#ifdef __cplusplus
10424extern "C"
10425#endif
10426char wslen ();
10427int
10428main ()
10429{
10430return wslen ();
10431  ;
10432  return 0;
10433}
10434_ACEOF
10435if ac_fn_c_try_link "$LINENO"; then :
10436  ac_cv_lib_w_wslen=yes
10437else
10438  ac_cv_lib_w_wslen=no
10439fi
10440rm -f core conftest.err conftest.$ac_objext \
10441    conftest$ac_exeext conftest.$ac_ext
10442LIBS=$ac_check_lib_save_LIBS
10443fi
10444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5
10445$as_echo "$ac_cv_lib_w_wslen" >&6; }
10446if test "x$ac_cv_lib_w_wslen" = xyes; then :
10447  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
10448fi
10449
10450  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
10451$as_echo_n "checking for dlsym in -ldl... " >&6; }
10452if ${ac_cv_lib_dl_dlsym+:} false; then :
10453  $as_echo_n "(cached) " >&6
10454else
10455  ac_check_lib_save_LIBS=$LIBS
10456LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458/* end confdefs.h.  */
10459
10460/* Override any GCC internal prototype to avoid an error.
10461   Use char because int might match the return type of a GCC
10462   builtin and then its argument prototype would still apply.  */
10463#ifdef __cplusplus
10464extern "C"
10465#endif
10466char dlsym ();
10467int
10468main ()
10469{
10470return dlsym ();
10471  ;
10472  return 0;
10473}
10474_ACEOF
10475if ac_fn_c_try_link "$LINENO"; then :
10476  ac_cv_lib_dl_dlsym=yes
10477else
10478  ac_cv_lib_dl_dlsym=no
10479fi
10480rm -f core conftest.err conftest.$ac_objext \
10481    conftest$ac_exeext conftest.$ac_ext
10482LIBS=$ac_check_lib_save_LIBS
10483fi
10484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
10485$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
10486if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
10487  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
10488fi
10489
10490  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5
10491$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
10492if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then :
10493  $as_echo_n "(cached) " >&6
10494else
10495  ac_check_lib_save_LIBS=$LIBS
10496LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498/* end confdefs.h.  */
10499
10500/* Override any GCC internal prototype to avoid an error.
10501   Use char because int might match the return type of a GCC
10502   builtin and then its argument prototype would still apply.  */
10503#ifdef __cplusplus
10504extern "C"
10505#endif
10506char XmuCreateStippledPixmap ();
10507int
10508main ()
10509{
10510return XmuCreateStippledPixmap ();
10511  ;
10512  return 0;
10513}
10514_ACEOF
10515if ac_fn_c_try_link "$LINENO"; then :
10516  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
10517else
10518  ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
10519fi
10520rm -f core conftest.err conftest.$ac_objext \
10521    conftest$ac_exeext conftest.$ac_ext
10522LIBS=$ac_check_lib_save_LIBS
10523fi
10524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
10525$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
10526if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then :
10527  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
10528fi
10529
10530  if test -z "$SKIP_MOTIF"; then
10531    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5
10532$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
10533if ${ac_cv_lib_Xp_XpEndJob+:} false; then :
10534  $as_echo_n "(cached) " >&6
10535else
10536  ac_check_lib_save_LIBS=$LIBS
10537LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539/* end confdefs.h.  */
10540
10541/* Override any GCC internal prototype to avoid an error.
10542   Use char because int might match the return type of a GCC
10543   builtin and then its argument prototype would still apply.  */
10544#ifdef __cplusplus
10545extern "C"
10546#endif
10547char XpEndJob ();
10548int
10549main ()
10550{
10551return XpEndJob ();
10552  ;
10553  return 0;
10554}
10555_ACEOF
10556if ac_fn_c_try_link "$LINENO"; then :
10557  ac_cv_lib_Xp_XpEndJob=yes
10558else
10559  ac_cv_lib_Xp_XpEndJob=no
10560fi
10561rm -f core conftest.err conftest.$ac_objext \
10562    conftest$ac_exeext conftest.$ac_ext
10563LIBS=$ac_check_lib_save_LIBS
10564fi
10565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5
10566$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
10567if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then :
10568  GUI_X_LIBS="-lXp $GUI_X_LIBS"
10569fi
10570
10571  fi
10572  LDFLAGS=$ldflags_save
10573
10574    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5
10575$as_echo_n "checking for extra X11 defines... " >&6; }
10576  NARROW_PROTO=
10577  rm -fr conftestdir
10578  if mkdir conftestdir; then
10579    cd conftestdir
10580    cat > Imakefile <<'EOF'
10581acfindx:
10582	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
10583EOF
10584    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10585      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10586    fi
10587    cd ..
10588    rm -fr conftestdir
10589  fi
10590  if test -z "$NARROW_PROTO"; then
10591    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592$as_echo "no" >&6; }
10593  else
10594    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5
10595$as_echo "$NARROW_PROTO" >&6; }
10596  fi
10597
10598fi
10599
10600if test "$enable_xsmp" = "yes"; then
10601  cppflags_save=$CPPFLAGS
10602  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10603  for ac_header in X11/SM/SMlib.h
10604do :
10605  ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10606if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
10607  cat >>confdefs.h <<_ACEOF
10608#define HAVE_X11_SM_SMLIB_H 1
10609_ACEOF
10610
10611fi
10612
10613done
10614
10615  CPPFLAGS=$cppflags_save
10616fi
10617
10618
10619if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then
10620    cppflags_save=$CPPFLAGS
10621  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10622  for ac_header in X11/xpm.h X11/Sunkeysym.h
10623do :
10624  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10625ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10626if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10627  cat >>confdefs.h <<_ACEOF
10628#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10629_ACEOF
10630
10631fi
10632
10633done
10634
10635
10636    if test ! "$enable_xim" = "no"; then
10637    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5
10638$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10639    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640/* end confdefs.h.  */
10641#include <X11/Xlib.h>
10642_ACEOF
10643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10644  $EGREP "XIMText" >/dev/null 2>&1; then :
10645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10646$as_echo "yes" >&6; }
10647else
10648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5
10649$as_echo "no; xim has been disabled" >&6; }; enable_xim="no"
10650fi
10651rm -f conftest*
10652
10653  fi
10654  CPPFLAGS=$cppflags_save
10655
10656    if test "$enable_xim" = "auto" -a "x$GUITYPE" != "xNONE" ; then
10657    { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5
10658$as_echo "X GUI selected; xim has been enabled" >&6; }
10659    enable_xim="yes"
10660  fi
10661fi
10662
10663if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10664  cppflags_save=$CPPFLAGS
10665  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5
10667$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669/* end confdefs.h.  */
10670
10671#include <X11/Intrinsic.h>
10672#include <X11/Xmu/Editres.h>
10673int
10674main ()
10675{
10676int i; i = 0;
10677  ;
10678  return 0;
10679}
10680_ACEOF
10681if ac_fn_c_try_compile "$LINENO"; then :
10682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10683$as_echo "yes" >&6; }
10684		      $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h
10685
10686else
10687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688$as_echo "no" >&6; }
10689fi
10690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10691  CPPFLAGS=$cppflags_save
10692fi
10693
10694if test -z "$SKIP_MOTIF"; then
10695  cppflags_save=$CPPFLAGS
10696  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10697  if test "$zOSUnix" = "yes"; then
10698	xmheader="Xm/Xm.h"
10699  else
10700	xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h
10701	   Xm/UnhighlightT.h Xm/Notebook.h"
10702  fi
10703  for ac_header in $xmheader
10704do :
10705  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10706ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10707if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10708  cat >>confdefs.h <<_ACEOF
10709#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10710_ACEOF
10711
10712fi
10713
10714done
10715
10716
10717  if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then
10718        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10719$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10720    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721/* end confdefs.h.  */
10722#include <Xm/XpmP.h>
10723int
10724main ()
10725{
10726XpmAttributes_21 attr;
10727  ;
10728  return 0;
10729}
10730_ACEOF
10731if ac_fn_c_try_compile "$LINENO"; then :
10732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10733$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h
10734
10735else
10736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10738
10739
10740fi
10741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10742  else
10743    $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10744
10745  fi
10746  CPPFLAGS=$cppflags_save
10747fi
10748
10749if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5
10751$as_echo "no GUI selected; xim has been disabled" >&6; }
10752  enable_xim="no"
10753fi
10754if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5
10756$as_echo "no GUI selected; fontset has been disabled" >&6; }
10757  enable_fontset="no"
10758fi
10759if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then
10760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10761$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10762  enable_fontset="no"
10763fi
10764
10765if test -z "$SKIP_HAIKU"; then
10766  GUITYPE=HAIKUGUI
10767fi
10768
10769if test -z "$SKIP_PHOTON"; then
10770  GUITYPE=PHOTONGUI
10771fi
10772
10773
10774
10775
10776
10777
10778if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10779  as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5
10780fi
10781
10782if test "$enable_xim" = "yes"; then
10783  $as_echo "#define FEAT_XIM 1" >>confdefs.h
10784
10785fi
10786if test "$enable_fontset" = "yes"; then
10787  $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h
10788
10789fi
10790
10791
10792
10793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5
10794$as_echo_n "checking for /proc link to executable... " >&6; }
10795if test -L "/proc/self/exe"; then
10796    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5
10797$as_echo "/proc/self/exe" >&6; }
10798  $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h
10799
10800elif test -L "/proc/self/path/a.out"; then
10801    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5
10802$as_echo "/proc/self/path/a.out" >&6; }
10803  $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h
10804
10805elif test -L "/proc/curproc/file"; then
10806    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5
10807$as_echo "/proc/curproc/file" >&6; }
10808  $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h
10809
10810else
10811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10812$as_echo "no" >&6; }
10813fi
10814
10815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5
10816$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; }
10817case `uname` in
10818    CYGWIN*|MSYS*)    CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10819$as_echo "yes" >&6; }
10820                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5
10821$as_echo_n "checking for CYGWIN clipboard support... " >&6; }
10822                if test "x$with_x" = "xno" ; then
10823                  OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o
10824                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10825$as_echo "yes" >&6; }
10826                  $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h
10827
10828                else
10829                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5
10830$as_echo "no - using X11" >&6; }
10831                fi ;;
10832
10833    *)          CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834$as_echo "no" >&6; };;
10835esac
10836
10837
10838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5
10839$as_echo_n "checking whether toupper is broken... " >&6; }
10840if ${vim_cv_toupper_broken+:} false; then :
10841  $as_echo_n "(cached) " >&6
10842else
10843
10844    if test "$cross_compiling" = yes; then :
10845
10846    as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5
10847
10848else
10849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850/* end confdefs.h.  */
10851
10852#include "confdefs.h"
10853#include <ctype.h>
10854#if STDC_HEADERS
10855# include <stdlib.h>
10856# include <stddef.h>
10857#endif
10858main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10859
10860_ACEOF
10861if ac_fn_c_try_run "$LINENO"; then :
10862
10863    vim_cv_toupper_broken=yes
10864
10865else
10866
10867    vim_cv_toupper_broken=no
10868
10869fi
10870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10871  conftest.$ac_objext conftest.beam conftest.$ac_ext
10872fi
10873
10874fi
10875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5
10876$as_echo "$vim_cv_toupper_broken" >&6; }
10877
10878if test "x$vim_cv_toupper_broken" = "xyes" ; then
10879  $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h
10880
10881fi
10882
10883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5
10884$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886/* end confdefs.h.  */
10887#include <stdio.h>
10888int
10889main ()
10890{
10891printf("(" __DATE__ " " __TIME__ ")");
10892  ;
10893  return 0;
10894}
10895_ACEOF
10896if ac_fn_c_try_compile "$LINENO"; then :
10897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10898$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h
10899
10900else
10901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10902$as_echo "no" >&6; }
10903fi
10904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10905
10906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5
10907$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909/* end confdefs.h.  */
10910#include <stdio.h>
10911int
10912main ()
10913{
10914int x __attribute__((unused));
10915  ;
10916  return 0;
10917}
10918_ACEOF
10919if ac_fn_c_try_compile "$LINENO"; then :
10920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10921$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
10922
10923else
10924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10925$as_echo "no" >&6; }
10926fi
10927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10928
10929ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
10930if test "x$ac_cv_header_elf_h" = xyes; then :
10931  HAS_ELF=1
10932fi
10933
10934
10935if test "$HAS_ELF" = 1; then
10936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5
10937$as_echo_n "checking for main in -lelf... " >&6; }
10938if ${ac_cv_lib_elf_main+:} false; then :
10939  $as_echo_n "(cached) " >&6
10940else
10941  ac_check_lib_save_LIBS=$LIBS
10942LIBS="-lelf  $LIBS"
10943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944/* end confdefs.h.  */
10945
10946
10947int
10948main ()
10949{
10950return main ();
10951  ;
10952  return 0;
10953}
10954_ACEOF
10955if ac_fn_c_try_link "$LINENO"; then :
10956  ac_cv_lib_elf_main=yes
10957else
10958  ac_cv_lib_elf_main=no
10959fi
10960rm -f core conftest.err conftest.$ac_objext \
10961    conftest$ac_exeext conftest.$ac_ext
10962LIBS=$ac_check_lib_save_LIBS
10963fi
10964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5
10965$as_echo "$ac_cv_lib_elf_main" >&6; }
10966if test "x$ac_cv_lib_elf_main" = xyes; then :
10967  cat >>confdefs.h <<_ACEOF
10968#define HAVE_LIBELF 1
10969_ACEOF
10970
10971  LIBS="-lelf $LIBS"
10972
10973fi
10974
10975fi
10976
10977ac_header_dirent=no
10978for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10979  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10981$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10982if eval \${$as_ac_Header+:} false; then :
10983  $as_echo_n "(cached) " >&6
10984else
10985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986/* end confdefs.h.  */
10987#include <sys/types.h>
10988#include <$ac_hdr>
10989
10990int
10991main ()
10992{
10993if ((DIR *) 0)
10994return 0;
10995  ;
10996  return 0;
10997}
10998_ACEOF
10999if ac_fn_c_try_compile "$LINENO"; then :
11000  eval "$as_ac_Header=yes"
11001else
11002  eval "$as_ac_Header=no"
11003fi
11004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005fi
11006eval ac_res=\$$as_ac_Header
11007	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11008$as_echo "$ac_res" >&6; }
11009if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11010  cat >>confdefs.h <<_ACEOF
11011#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11012_ACEOF
11013
11014ac_header_dirent=$ac_hdr; break
11015fi
11016
11017done
11018# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11019if test $ac_header_dirent = dirent.h; then
11020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11021$as_echo_n "checking for library containing opendir... " >&6; }
11022if ${ac_cv_search_opendir+:} false; then :
11023  $as_echo_n "(cached) " >&6
11024else
11025  ac_func_search_save_LIBS=$LIBS
11026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027/* end confdefs.h.  */
11028
11029/* Override any GCC internal prototype to avoid an error.
11030   Use char because int might match the return type of a GCC
11031   builtin and then its argument prototype would still apply.  */
11032#ifdef __cplusplus
11033extern "C"
11034#endif
11035char opendir ();
11036int
11037main ()
11038{
11039return opendir ();
11040  ;
11041  return 0;
11042}
11043_ACEOF
11044for ac_lib in '' dir; do
11045  if test -z "$ac_lib"; then
11046    ac_res="none required"
11047  else
11048    ac_res=-l$ac_lib
11049    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11050  fi
11051  if ac_fn_c_try_link "$LINENO"; then :
11052  ac_cv_search_opendir=$ac_res
11053fi
11054rm -f core conftest.err conftest.$ac_objext \
11055    conftest$ac_exeext
11056  if ${ac_cv_search_opendir+:} false; then :
11057  break
11058fi
11059done
11060if ${ac_cv_search_opendir+:} false; then :
11061
11062else
11063  ac_cv_search_opendir=no
11064fi
11065rm conftest.$ac_ext
11066LIBS=$ac_func_search_save_LIBS
11067fi
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11069$as_echo "$ac_cv_search_opendir" >&6; }
11070ac_res=$ac_cv_search_opendir
11071if test "$ac_res" != no; then :
11072  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11073
11074fi
11075
11076else
11077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11078$as_echo_n "checking for library containing opendir... " >&6; }
11079if ${ac_cv_search_opendir+:} false; then :
11080  $as_echo_n "(cached) " >&6
11081else
11082  ac_func_search_save_LIBS=$LIBS
11083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084/* end confdefs.h.  */
11085
11086/* Override any GCC internal prototype to avoid an error.
11087   Use char because int might match the return type of a GCC
11088   builtin and then its argument prototype would still apply.  */
11089#ifdef __cplusplus
11090extern "C"
11091#endif
11092char opendir ();
11093int
11094main ()
11095{
11096return opendir ();
11097  ;
11098  return 0;
11099}
11100_ACEOF
11101for ac_lib in '' x; do
11102  if test -z "$ac_lib"; then
11103    ac_res="none required"
11104  else
11105    ac_res=-l$ac_lib
11106    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11107  fi
11108  if ac_fn_c_try_link "$LINENO"; then :
11109  ac_cv_search_opendir=$ac_res
11110fi
11111rm -f core conftest.err conftest.$ac_objext \
11112    conftest$ac_exeext
11113  if ${ac_cv_search_opendir+:} false; then :
11114  break
11115fi
11116done
11117if ${ac_cv_search_opendir+:} false; then :
11118
11119else
11120  ac_cv_search_opendir=no
11121fi
11122rm conftest.$ac_ext
11123LIBS=$ac_func_search_save_LIBS
11124fi
11125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11126$as_echo "$ac_cv_search_opendir" >&6; }
11127ac_res=$ac_cv_search_opendir
11128if test "$ac_res" != no; then :
11129  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11130
11131fi
11132
11133fi
11134
11135
11136if test $ac_cv_header_sys_wait_h = no; then
11137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5
11138$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
11139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140/* end confdefs.h.  */
11141#include <sys/wait.h>
11142int
11143main ()
11144{
11145union wait xx, yy; xx = yy
11146  ;
11147  return 0;
11148}
11149_ACEOF
11150if ac_fn_c_try_compile "$LINENO"; then :
11151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11152$as_echo "yes" >&6; }
11153			$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11154
11155			$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
11156
11157else
11158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159$as_echo "no" >&6; }
11160fi
11161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11162fi
11163
11164for ac_header in stdint.h stdlib.h string.h \
11165	sys/select.h sys/utsname.h termcap.h fcntl.h \
11166	sgtty.h sys/ioctl.h sys/time.h sys/types.h \
11167	termio.h iconv.h inttypes.h langinfo.h math.h \
11168	unistd.h stropts.h errno.h sys/resource.h \
11169	sys/systeminfo.h locale.h sys/stream.h termios.h \
11170	libc.h sys/statfs.h poll.h sys/poll.h pwd.h \
11171	utime.h sys/param.h sys/ptms.h libintl.h libgen.h \
11172	util/debug.h util/msg18n.h frame.h sys/acl.h \
11173	sys/access.h sys/sysinfo.h wchar.h wctype.h
11174do :
11175  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11176ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11177if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11178  cat >>confdefs.h <<_ACEOF
11179#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11180_ACEOF
11181
11182fi
11183
11184done
11185
11186
11187for ac_header in sys/ptem.h
11188do :
11189  ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H
11190#  include <sys/stream.h>
11191#endif
11192"
11193if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
11194  cat >>confdefs.h <<_ACEOF
11195#define HAVE_SYS_PTEM_H 1
11196_ACEOF
11197
11198fi
11199
11200done
11201
11202
11203for ac_header in sys/sysctl.h
11204do :
11205  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
11206#  include <sys/param.h>
11207#endif
11208"
11209if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
11210  cat >>confdefs.h <<_ACEOF
11211#define HAVE_SYS_SYSCTL_H 1
11212_ACEOF
11213
11214fi
11215
11216done
11217
11218
11219
11220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5
11221$as_echo_n "checking for pthread_np.h... " >&6; }
11222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223/* end confdefs.h.  */
11224
11225#include <pthread.h>
11226#include <pthread_np.h>
11227int
11228main ()
11229{
11230int i; i = 0;
11231  ;
11232  return 0;
11233}
11234_ACEOF
11235if ac_fn_c_try_compile "$LINENO"; then :
11236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11237$as_echo "yes" >&6; }
11238		      $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
11239
11240else
11241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242$as_echo "no" >&6; }
11243fi
11244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11245
11246for ac_header in strings.h
11247do :
11248  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
11249if test "x$ac_cv_header_strings_h" = xyes; then :
11250  cat >>confdefs.h <<_ACEOF
11251#define HAVE_STRINGS_H 1
11252_ACEOF
11253
11254fi
11255
11256done
11257
11258if test "x$MACOS_X" = "xyes"; then
11259    $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11260
11261else
11262
11263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5
11264$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11265cppflags_save=$CPPFLAGS
11266CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268/* end confdefs.h.  */
11269
11270#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11271# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
11272			/* but don't do it on AIX 5.1 (Uribarri) */
11273#endif
11274#ifdef HAVE_XM_XM_H
11275# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
11276#endif
11277#ifdef HAVE_STRING_H
11278# include <string.h>
11279#endif
11280#if defined(HAVE_STRINGS_H)
11281# include <strings.h>
11282#endif
11283
11284int
11285main ()
11286{
11287int i; i = 0;
11288  ;
11289  return 0;
11290}
11291_ACEOF
11292if ac_fn_c_try_compile "$LINENO"; then :
11293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11294$as_echo "yes" >&6; }
11295else
11296  $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11297
11298		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11299$as_echo "no" >&6; }
11300fi
11301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11302CPPFLAGS=$cppflags_save
11303fi
11304
11305if test $ac_cv_c_compiler_gnu = yes; then
11306    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11307$as_echo_n "checking whether $CC needs -traditional... " >&6; }
11308if ${ac_cv_prog_gcc_traditional+:} false; then :
11309  $as_echo_n "(cached) " >&6
11310else
11311    ac_pattern="Autoconf.*'x'"
11312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313/* end confdefs.h.  */
11314#include <sgtty.h>
11315Autoconf TIOCGETP
11316_ACEOF
11317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11318  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11319  ac_cv_prog_gcc_traditional=yes
11320else
11321  ac_cv_prog_gcc_traditional=no
11322fi
11323rm -f conftest*
11324
11325
11326  if test $ac_cv_prog_gcc_traditional = no; then
11327    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328/* end confdefs.h.  */
11329#include <termio.h>
11330Autoconf TCGETA
11331_ACEOF
11332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11333  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11334  ac_cv_prog_gcc_traditional=yes
11335fi
11336rm -f conftest*
11337
11338  fi
11339fi
11340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11341$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11342  if test $ac_cv_prog_gcc_traditional = yes; then
11343    CC="$CC -traditional"
11344  fi
11345fi
11346
11347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11348$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11349if ${ac_cv_c_const+:} false; then :
11350  $as_echo_n "(cached) " >&6
11351else
11352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353/* end confdefs.h.  */
11354
11355int
11356main ()
11357{
11358
11359#ifndef __cplusplus
11360  /* Ultrix mips cc rejects this sort of thing.  */
11361  typedef int charset[2];
11362  const charset cs = { 0, 0 };
11363  /* SunOS 4.1.1 cc rejects this.  */
11364  char const *const *pcpcc;
11365  char **ppc;
11366  /* NEC SVR4.0.2 mips cc rejects this.  */
11367  struct point {int x, y;};
11368  static struct point const zero = {0,0};
11369  /* AIX XL C 1.02.0.0 rejects this.
11370     It does not let you subtract one const X* pointer from another in
11371     an arm of an if-expression whose if-part is not a constant
11372     expression */
11373  const char *g = "string";
11374  pcpcc = &g + (g ? g-g : 0);
11375  /* HPUX 7.0 cc rejects these. */
11376  ++pcpcc;
11377  ppc = (char**) pcpcc;
11378  pcpcc = (char const *const *) ppc;
11379  { /* SCO 3.2v4 cc rejects this sort of thing.  */
11380    char tx;
11381    char *t = &tx;
11382    char const *s = 0 ? (char *) 0 : (char const *) 0;
11383
11384    *t++ = 0;
11385    if (s) return 0;
11386  }
11387  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11388    int x[] = {25, 17};
11389    const int *foo = &x[0];
11390    ++foo;
11391  }
11392  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11393    typedef const int *iptr;
11394    iptr p = 0;
11395    ++p;
11396  }
11397  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11398       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11399    struct s { int j; const int *ap[3]; } bx;
11400    struct s *b = &bx; b->j = 5;
11401  }
11402  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11403    const int foo = 10;
11404    if (!foo) return 0;
11405  }
11406  return !cs[0] && !zero.x;
11407#endif
11408
11409  ;
11410  return 0;
11411}
11412_ACEOF
11413if ac_fn_c_try_compile "$LINENO"; then :
11414  ac_cv_c_const=yes
11415else
11416  ac_cv_c_const=no
11417fi
11418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11419fi
11420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11421$as_echo "$ac_cv_c_const" >&6; }
11422if test $ac_cv_c_const = no; then
11423
11424$as_echo "#define const /**/" >>confdefs.h
11425
11426fi
11427
11428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
11429$as_echo_n "checking for working volatile... " >&6; }
11430if ${ac_cv_c_volatile+:} false; then :
11431  $as_echo_n "(cached) " >&6
11432else
11433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11434/* end confdefs.h.  */
11435
11436int
11437main ()
11438{
11439
11440volatile int x;
11441int * volatile y = (int *) 0;
11442return !x && !y;
11443  ;
11444  return 0;
11445}
11446_ACEOF
11447if ac_fn_c_try_compile "$LINENO"; then :
11448  ac_cv_c_volatile=yes
11449else
11450  ac_cv_c_volatile=no
11451fi
11452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11453fi
11454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
11455$as_echo "$ac_cv_c_volatile" >&6; }
11456if test $ac_cv_c_volatile = no; then
11457
11458$as_echo "#define volatile /**/" >>confdefs.h
11459
11460fi
11461
11462ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11463if test "x$ac_cv_type_mode_t" = xyes; then :
11464
11465else
11466
11467cat >>confdefs.h <<_ACEOF
11468#define mode_t int
11469_ACEOF
11470
11471fi
11472
11473ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11474if test "x$ac_cv_type_off_t" = xyes; then :
11475
11476else
11477
11478cat >>confdefs.h <<_ACEOF
11479#define off_t long int
11480_ACEOF
11481
11482fi
11483
11484ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11485if test "x$ac_cv_type_pid_t" = xyes; then :
11486
11487else
11488
11489cat >>confdefs.h <<_ACEOF
11490#define pid_t int
11491_ACEOF
11492
11493fi
11494
11495ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11496if test "x$ac_cv_type_size_t" = xyes; then :
11497
11498else
11499
11500cat >>confdefs.h <<_ACEOF
11501#define size_t unsigned int
11502_ACEOF
11503
11504fi
11505
11506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11507$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11508if ${ac_cv_type_uid_t+:} false; then :
11509  $as_echo_n "(cached) " >&6
11510else
11511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512/* end confdefs.h.  */
11513#include <sys/types.h>
11514
11515_ACEOF
11516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11517  $EGREP "uid_t" >/dev/null 2>&1; then :
11518  ac_cv_type_uid_t=yes
11519else
11520  ac_cv_type_uid_t=no
11521fi
11522rm -f conftest*
11523
11524fi
11525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11526$as_echo "$ac_cv_type_uid_t" >&6; }
11527if test $ac_cv_type_uid_t = no; then
11528
11529$as_echo "#define uid_t int" >>confdefs.h
11530
11531
11532$as_echo "#define gid_t int" >>confdefs.h
11533
11534fi
11535
11536ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
11537case $ac_cv_c_uint32_t in #(
11538  no|yes) ;; #(
11539  *)
11540
11541$as_echo "#define _UINT32_T 1" >>confdefs.h
11542
11543
11544cat >>confdefs.h <<_ACEOF
11545#define uint32_t $ac_cv_c_uint32_t
11546_ACEOF
11547;;
11548  esac
11549
11550
11551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11552$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11553if ${ac_cv_header_time+:} false; then :
11554  $as_echo_n "(cached) " >&6
11555else
11556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557/* end confdefs.h.  */
11558#include <sys/types.h>
11559#include <sys/time.h>
11560#include <time.h>
11561
11562int
11563main ()
11564{
11565if ((struct tm *) 0)
11566return 0;
11567  ;
11568  return 0;
11569}
11570_ACEOF
11571if ac_fn_c_try_compile "$LINENO"; then :
11572  ac_cv_header_time=yes
11573else
11574  ac_cv_header_time=no
11575fi
11576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11577fi
11578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11579$as_echo "$ac_cv_header_time" >&6; }
11580if test $ac_cv_header_time = yes; then
11581
11582$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11583
11584fi
11585
11586ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
11587if test "x$ac_cv_type_ino_t" = xyes; then :
11588
11589else
11590
11591cat >>confdefs.h <<_ACEOF
11592#define ino_t long
11593_ACEOF
11594
11595fi
11596
11597ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
11598if test "x$ac_cv_type_dev_t" = xyes; then :
11599
11600else
11601
11602cat >>confdefs.h <<_ACEOF
11603#define dev_t unsigned
11604_ACEOF
11605
11606fi
11607
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11609$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11610if ${ac_cv_c_bigendian+:} false; then :
11611  $as_echo_n "(cached) " >&6
11612else
11613  ac_cv_c_bigendian=unknown
11614    # See if we're dealing with a universal compiler.
11615    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616/* end confdefs.h.  */
11617#ifndef __APPLE_CC__
11618	       not a universal capable compiler
11619	     #endif
11620	     typedef int dummy;
11621
11622_ACEOF
11623if ac_fn_c_try_compile "$LINENO"; then :
11624
11625	# Check for potential -arch flags.  It is not universal unless
11626	# there are at least two -arch flags with different values.
11627	ac_arch=
11628	ac_prev=
11629	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11630	 if test -n "$ac_prev"; then
11631	   case $ac_word in
11632	     i?86 | x86_64 | ppc | ppc64)
11633	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11634		 ac_arch=$ac_word
11635	       else
11636		 ac_cv_c_bigendian=universal
11637		 break
11638	       fi
11639	       ;;
11640	   esac
11641	   ac_prev=
11642	 elif test "x$ac_word" = "x-arch"; then
11643	   ac_prev=arch
11644	 fi
11645       done
11646fi
11647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11648    if test $ac_cv_c_bigendian = unknown; then
11649      # See if sys/param.h defines the BYTE_ORDER macro.
11650      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651/* end confdefs.h.  */
11652#include <sys/types.h>
11653	     #include <sys/param.h>
11654
11655int
11656main ()
11657{
11658#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11659		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11660		     && LITTLE_ENDIAN)
11661	      bogus endian macros
11662	     #endif
11663
11664  ;
11665  return 0;
11666}
11667_ACEOF
11668if ac_fn_c_try_compile "$LINENO"; then :
11669  # It does; now see whether it defined to BIG_ENDIAN or not.
11670	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671/* end confdefs.h.  */
11672#include <sys/types.h>
11673		#include <sys/param.h>
11674
11675int
11676main ()
11677{
11678#if BYTE_ORDER != BIG_ENDIAN
11679		 not big endian
11680		#endif
11681
11682  ;
11683  return 0;
11684}
11685_ACEOF
11686if ac_fn_c_try_compile "$LINENO"; then :
11687  ac_cv_c_bigendian=yes
11688else
11689  ac_cv_c_bigendian=no
11690fi
11691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11692fi
11693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11694    fi
11695    if test $ac_cv_c_bigendian = unknown; then
11696      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11697      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11698/* end confdefs.h.  */
11699#include <limits.h>
11700
11701int
11702main ()
11703{
11704#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11705	      bogus endian macros
11706	     #endif
11707
11708  ;
11709  return 0;
11710}
11711_ACEOF
11712if ac_fn_c_try_compile "$LINENO"; then :
11713  # It does; now see whether it defined to _BIG_ENDIAN or not.
11714	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715/* end confdefs.h.  */
11716#include <limits.h>
11717
11718int
11719main ()
11720{
11721#ifndef _BIG_ENDIAN
11722		 not big endian
11723		#endif
11724
11725  ;
11726  return 0;
11727}
11728_ACEOF
11729if ac_fn_c_try_compile "$LINENO"; then :
11730  ac_cv_c_bigendian=yes
11731else
11732  ac_cv_c_bigendian=no
11733fi
11734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11735fi
11736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11737    fi
11738    if test $ac_cv_c_bigendian = unknown; then
11739      # Compile a test program.
11740      if test "$cross_compiling" = yes; then :
11741  # Try to guess by grepping values from an object file.
11742	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743/* end confdefs.h.  */
11744short int ascii_mm[] =
11745		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11746		short int ascii_ii[] =
11747		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11748		int use_ascii (int i) {
11749		  return ascii_mm[i] + ascii_ii[i];
11750		}
11751		short int ebcdic_ii[] =
11752		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11753		short int ebcdic_mm[] =
11754		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11755		int use_ebcdic (int i) {
11756		  return ebcdic_mm[i] + ebcdic_ii[i];
11757		}
11758		extern int foo;
11759
11760int
11761main ()
11762{
11763return use_ascii (foo) == use_ebcdic (foo);
11764  ;
11765  return 0;
11766}
11767_ACEOF
11768if ac_fn_c_try_compile "$LINENO"; then :
11769  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11770	      ac_cv_c_bigendian=yes
11771	    fi
11772	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11773	      if test "$ac_cv_c_bigendian" = unknown; then
11774		ac_cv_c_bigendian=no
11775	      else
11776		# finding both strings is unlikely to happen, but who knows?
11777		ac_cv_c_bigendian=unknown
11778	      fi
11779	    fi
11780fi
11781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11782else
11783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784/* end confdefs.h.  */
11785$ac_includes_default
11786int
11787main ()
11788{
11789
11790	     /* Are we little or big endian?  From Harbison&Steele.  */
11791	     union
11792	     {
11793	       long int l;
11794	       char c[sizeof (long int)];
11795	     } u;
11796	     u.l = 1;
11797	     return u.c[sizeof (long int) - 1] == 1;
11798
11799  ;
11800  return 0;
11801}
11802_ACEOF
11803if ac_fn_c_try_run "$LINENO"; then :
11804  ac_cv_c_bigendian=no
11805else
11806  ac_cv_c_bigendian=yes
11807fi
11808rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11809  conftest.$ac_objext conftest.beam conftest.$ac_ext
11810fi
11811
11812    fi
11813fi
11814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11815$as_echo "$ac_cv_c_bigendian" >&6; }
11816 case $ac_cv_c_bigendian in #(
11817   yes)
11818     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11819;; #(
11820   no)
11821      ;; #(
11822   universal)
11823
11824$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11825
11826     ;; #(
11827   *)
11828     as_fn_error $? "unknown endianness
11829 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11830 esac
11831
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11833$as_echo_n "checking for inline... " >&6; }
11834if ${ac_cv_c_inline+:} false; then :
11835  $as_echo_n "(cached) " >&6
11836else
11837  ac_cv_c_inline=no
11838for ac_kw in inline __inline__ __inline; do
11839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840/* end confdefs.h.  */
11841#ifndef __cplusplus
11842typedef int foo_t;
11843static $ac_kw foo_t static_foo () {return 0; }
11844$ac_kw foo_t foo () {return 0; }
11845#endif
11846
11847_ACEOF
11848if ac_fn_c_try_compile "$LINENO"; then :
11849  ac_cv_c_inline=$ac_kw
11850fi
11851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11852  test "$ac_cv_c_inline" != no && break
11853done
11854
11855fi
11856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11857$as_echo "$ac_cv_c_inline" >&6; }
11858
11859case $ac_cv_c_inline in
11860  inline | yes) ;;
11861  *)
11862    case $ac_cv_c_inline in
11863      no) ac_val=;;
11864      *) ac_val=$ac_cv_c_inline;;
11865    esac
11866    cat >>confdefs.h <<_ACEOF
11867#ifndef __cplusplus
11868#define inline $ac_val
11869#endif
11870_ACEOF
11871    ;;
11872esac
11873
11874
11875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
11876$as_echo_n "checking for rlim_t... " >&6; }
11877if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5
11879$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
11880else
11881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882/* end confdefs.h.  */
11883
11884#include <sys/types.h>
11885#if STDC_HEADERS
11886# include <stdlib.h>
11887# include <stddef.h>
11888#endif
11889#ifdef HAVE_SYS_RESOURCE_H
11890# include <sys/resource.h>
11891#endif
11892
11893_ACEOF
11894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11895  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
11896  ac_cv_type_rlim_t=yes
11897else
11898  ac_cv_type_rlim_t=no
11899fi
11900rm -f conftest*
11901
11902	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
11903$as_echo "$ac_cv_type_rlim_t" >&6; }
11904fi
11905if test $ac_cv_type_rlim_t = no; then
11906  cat >> confdefs.h <<\EOF
11907#define rlim_t unsigned long
11908EOF
11909fi
11910
11911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5
11912$as_echo_n "checking for stack_t... " >&6; }
11913if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5
11915$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
11916else
11917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918/* end confdefs.h.  */
11919
11920#include <sys/types.h>
11921#if STDC_HEADERS
11922# include <stdlib.h>
11923# include <stddef.h>
11924#endif
11925#include <signal.h>
11926
11927_ACEOF
11928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11929  $EGREP "stack_t" >/dev/null 2>&1; then :
11930  ac_cv_type_stack_t=yes
11931else
11932  ac_cv_type_stack_t=no
11933fi
11934rm -f conftest*
11935
11936	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5
11937$as_echo "$ac_cv_type_stack_t" >&6; }
11938fi
11939if test $ac_cv_type_stack_t = no; then
11940  cat >> confdefs.h <<\EOF
11941#define stack_t struct sigaltstack
11942EOF
11943fi
11944
11945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5
11946$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
11947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948/* end confdefs.h.  */
11949
11950#include <sys/types.h>
11951#if STDC_HEADERS
11952# include <stdlib.h>
11953# include <stddef.h>
11954#endif
11955#include <signal.h>
11956#include "confdefs.h"
11957
11958int
11959main ()
11960{
11961stack_t sigstk; sigstk.ss_base = 0;
11962  ;
11963  return 0;
11964}
11965_ACEOF
11966if ac_fn_c_try_compile "$LINENO"; then :
11967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11968$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h
11969
11970else
11971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972$as_echo "no" >&6; }
11973fi
11974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11975
11976olibs="$LIBS"
11977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5
11978$as_echo_n "checking --with-tlib argument... " >&6; }
11979
11980# Check whether --with-tlib was given.
11981if test "${with_tlib+set}" = set; then :
11982  withval=$with_tlib;
11983fi
11984
11985if test -n "$with_tlib"; then
11986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5
11987$as_echo "$with_tlib" >&6; }
11988  LIBS="$LIBS -l$with_tlib"
11989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5
11990$as_echo_n "checking for linking with $with_tlib library... " >&6; }
11991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992/* end confdefs.h.  */
11993
11994int
11995main ()
11996{
11997
11998  ;
11999  return 0;
12000}
12001_ACEOF
12002if ac_fn_c_try_link "$LINENO"; then :
12003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
12004$as_echo "OK" >&6; }
12005else
12006  as_fn_error $? "FAILED" "$LINENO" 5
12007fi
12008rm -f core conftest.err conftest.$ac_objext \
12009    conftest$ac_exeext conftest.$ac_ext
12010    olibs="$LIBS"
12011else
12012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5
12013$as_echo "empty: automatic terminal library selection" >&6; }
12014                case "`uname -s 2>/dev/null`" in
12015	OSF1|SCO_SV)	tlibs="tinfo ncurses curses termlib termcap";;
12016	*)	tlibs="tinfo ncurses termlib termcap curses";;
12017  esac
12018  for libname in $tlibs; do
12019    as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5
12021$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12022if eval \${$as_ac_Lib+:} false; then :
12023  $as_echo_n "(cached) " >&6
12024else
12025  ac_check_lib_save_LIBS=$LIBS
12026LIBS="-l${libname}  $LIBS"
12027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028/* end confdefs.h.  */
12029
12030/* Override any GCC internal prototype to avoid an error.
12031   Use char because int might match the return type of a GCC
12032   builtin and then its argument prototype would still apply.  */
12033#ifdef __cplusplus
12034extern "C"
12035#endif
12036char tgetent ();
12037int
12038main ()
12039{
12040return tgetent ();
12041  ;
12042  return 0;
12043}
12044_ACEOF
12045if ac_fn_c_try_link "$LINENO"; then :
12046  eval "$as_ac_Lib=yes"
12047else
12048  eval "$as_ac_Lib=no"
12049fi
12050rm -f core conftest.err conftest.$ac_objext \
12051    conftest$ac_exeext conftest.$ac_ext
12052LIBS=$ac_check_lib_save_LIBS
12053fi
12054eval ac_res=\$$as_ac_Lib
12055	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12056$as_echo "$ac_res" >&6; }
12057if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12058  cat >>confdefs.h <<_ACEOF
12059#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12060_ACEOF
12061
12062  LIBS="-l${libname} $LIBS"
12063
12064fi
12065
12066    if test "x$olibs" != "x$LIBS"; then
12067                        if test "$cross_compiling" = yes; then :
12068  res="FAIL"
12069else
12070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071/* end confdefs.h.  */
12072
12073#ifdef HAVE_TERMCAP_H
12074# include <termcap.h>
12075#endif
12076#if STDC_HEADERS
12077# include <stdlib.h>
12078# include <stddef.h>
12079#endif
12080main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12081_ACEOF
12082if ac_fn_c_try_run "$LINENO"; then :
12083  res="OK"
12084else
12085  res="FAIL"
12086fi
12087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12088  conftest.$ac_objext conftest.beam conftest.$ac_ext
12089fi
12090
12091      if test "$res" = "OK"; then
12092	break
12093      fi
12094      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5
12095$as_echo "$libname library is not usable" >&6; }
12096      LIBS="$olibs"
12097    fi
12098  done
12099  if test "x$olibs" = "x$LIBS"; then
12100    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5
12101$as_echo "no terminal library found" >&6; }
12102  fi
12103fi
12104
12105if test "x$olibs" = "x$LIBS"; then
12106  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5
12107$as_echo_n "checking for tgetent()... " >&6; }
12108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109/* end confdefs.h.  */
12110int tgetent(char *, const char *);
12111int
12112main ()
12113{
12114char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12115  ;
12116  return 0;
12117}
12118_ACEOF
12119if ac_fn_c_try_link "$LINENO"; then :
12120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12121$as_echo "yes" >&6; }
12122else
12123  as_fn_error $? "NOT FOUND!
12124      You need to install a terminal library; for example ncurses.
12125      Or specify the name of the library with --with-tlib." "$LINENO" 5
12126fi
12127rm -f core conftest.err conftest.$ac_objext \
12128    conftest$ac_exeext conftest.$ac_ext
12129fi
12130
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5
12132$as_echo_n "checking whether we talk terminfo... " >&6; }
12133if ${vim_cv_terminfo+:} false; then :
12134  $as_echo_n "(cached) " >&6
12135else
12136
12137    if test "$cross_compiling" = yes; then :
12138
12139      as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5
12140
12141else
12142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143/* end confdefs.h.  */
12144
12145#include "confdefs.h"
12146#ifdef HAVE_TERMCAP_H
12147# include <termcap.h>
12148#endif
12149#ifdef HAVE_STRING_H
12150# include <string.h>
12151#endif
12152#if STDC_HEADERS
12153# include <stdlib.h>
12154# include <stddef.h>
12155#endif
12156main()
12157{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12158
12159_ACEOF
12160if ac_fn_c_try_run "$LINENO"; then :
12161
12162      vim_cv_terminfo=no
12163
12164else
12165
12166      vim_cv_terminfo=yes
12167
12168fi
12169rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12170  conftest.$ac_objext conftest.beam conftest.$ac_ext
12171fi
12172
12173
12174fi
12175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5
12176$as_echo "$vim_cv_terminfo" >&6; }
12177
12178if test "x$vim_cv_terminfo" = "xyes" ; then
12179  $as_echo "#define TERMINFO 1" >>confdefs.h
12180
12181fi
12182
12183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
12184$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
12185if ${vim_cv_tgetent+:} false; then :
12186  $as_echo_n "(cached) " >&6
12187else
12188
12189    if test "$cross_compiling" = yes; then :
12190
12191      as_fn_error $? "failed to compile test program." "$LINENO" 5
12192
12193else
12194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12195/* end confdefs.h.  */
12196
12197#include "confdefs.h"
12198#ifdef HAVE_TERMCAP_H
12199# include <termcap.h>
12200#endif
12201#if STDC_HEADERS
12202# include <stdlib.h>
12203# include <stddef.h>
12204#endif
12205main()
12206{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12207
12208_ACEOF
12209if ac_fn_c_try_run "$LINENO"; then :
12210
12211      vim_cv_tgetent=zero
12212
12213else
12214
12215      vim_cv_tgetent=non-zero
12216
12217fi
12218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12219  conftest.$ac_objext conftest.beam conftest.$ac_ext
12220fi
12221
12222
12223fi
12224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgetent" >&5
12225$as_echo "$vim_cv_tgetent" >&6; }
12226
12227if test "x$vim_cv_tgetent" = "xzero" ; then
12228  $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
12229
12230fi
12231
12232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5
12233$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
12234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235/* end confdefs.h.  */
12236
12237#ifdef HAVE_TERMCAP_H
12238# include <termcap.h>
12239#endif
12240
12241int
12242main ()
12243{
12244ospeed = 20000
12245  ;
12246  return 0;
12247}
12248_ACEOF
12249if ac_fn_c_try_link "$LINENO"; then :
12250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12251$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
12252
12253else
12254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255$as_echo "no" >&6; }
12256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5
12257$as_echo_n "checking whether ospeed can be extern... " >&6; }
12258	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259/* end confdefs.h.  */
12260
12261#ifdef HAVE_TERMCAP_H
12262# include <termcap.h>
12263#endif
12264extern short ospeed;
12265
12266int
12267main ()
12268{
12269ospeed = 20000
12270  ;
12271  return 0;
12272}
12273_ACEOF
12274if ac_fn_c_try_link "$LINENO"; then :
12275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12276$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h
12277
12278else
12279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12280$as_echo "no" >&6; }
12281fi
12282rm -f core conftest.err conftest.$ac_objext \
12283    conftest$ac_exeext conftest.$ac_ext
12284
12285fi
12286rm -f core conftest.err conftest.$ac_objext \
12287    conftest$ac_exeext conftest.$ac_ext
12288
12289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5
12290$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
12291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12292/* end confdefs.h.  */
12293
12294#ifdef HAVE_TERMCAP_H
12295# include <termcap.h>
12296#endif
12297
12298int
12299main ()
12300{
12301if (UP == 0 && BC == 0) PC = 1
12302  ;
12303  return 0;
12304}
12305_ACEOF
12306if ac_fn_c_try_link "$LINENO"; then :
12307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12308$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h
12309
12310else
12311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312$as_echo "no" >&6; }
12313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5
12314$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
12315	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316/* end confdefs.h.  */
12317
12318#ifdef HAVE_TERMCAP_H
12319# include <termcap.h>
12320#endif
12321extern char *UP, *BC, PC;
12322
12323int
12324main ()
12325{
12326if (UP == 0 && BC == 0) PC = 1
12327  ;
12328  return 0;
12329}
12330_ACEOF
12331if ac_fn_c_try_link "$LINENO"; then :
12332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12333$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h
12334
12335else
12336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337$as_echo "no" >&6; }
12338fi
12339rm -f core conftest.err conftest.$ac_objext \
12340    conftest$ac_exeext conftest.$ac_ext
12341
12342fi
12343rm -f core conftest.err conftest.$ac_objext \
12344    conftest$ac_exeext conftest.$ac_ext
12345
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5
12347$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
12348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349/* end confdefs.h.  */
12350
12351#ifdef HAVE_TERMCAP_H
12352# include <termcap.h>
12353#endif
12354
12355int
12356main ()
12357{
12358extern int xx(); tputs("test", 1, (outfuntype)xx)
12359  ;
12360  return 0;
12361}
12362_ACEOF
12363if ac_fn_c_try_compile "$LINENO"; then :
12364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12365$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h
12366
12367else
12368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369$as_echo "no" >&6; }
12370fi
12371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12372
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
12374$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
12375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376/* end confdefs.h.  */
12377
12378#include <sys/types.h>
12379#include <sys/time.h>
12380#include <sys/select.h>
12381int
12382main ()
12383{
12384
12385  ;
12386  return 0;
12387}
12388_ACEOF
12389if ac_fn_c_try_compile "$LINENO"; then :
12390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12391$as_echo "yes" >&6; }
12392			$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
12393
12394else
12395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396$as_echo "no" >&6; }
12397fi
12398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12399
12400
12401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
12402$as_echo_n "checking for /dev/ptc... " >&6; }
12403if test -r /dev/ptc; then
12404  $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
12405
12406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12407$as_echo "yes" >&6; }
12408else
12409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410$as_echo "no" >&6; }
12411fi
12412
12413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5
12414$as_echo_n "checking for SVR4 ptys... " >&6; }
12415if test -c /dev/ptmx ; then
12416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417/* end confdefs.h.  */
12418
12419int
12420main ()
12421{
12422ptsname(0);grantpt(0);unlockpt(0);
12423  ;
12424  return 0;
12425}
12426_ACEOF
12427if ac_fn_c_try_link "$LINENO"; then :
12428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12429$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
12430
12431else
12432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433$as_echo "no" >&6; }
12434fi
12435rm -f core conftest.err conftest.$ac_objext \
12436    conftest$ac_exeext conftest.$ac_ext
12437else
12438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439$as_echo "no" >&6; }
12440fi
12441
12442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5
12443$as_echo_n "checking for ptyranges... " >&6; }
12444if test -d /dev/ptym ; then
12445  pdir='/dev/ptym'
12446else
12447  pdir='/dev'
12448fi
12449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450/* end confdefs.h.  */
12451#ifdef M_UNIX
12452   yes;
12453#endif
12454
12455_ACEOF
12456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12457  $EGREP "yes" >/dev/null 2>&1; then :
12458  ptys=`echo /dev/ptyp??`
12459else
12460  ptys=`echo $pdir/pty??`
12461fi
12462rm -f conftest*
12463
12464if test "$ptys" != "$pdir/pty??" ; then
12465  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12466  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
12467  cat >>confdefs.h <<_ACEOF
12468#define PTYRANGE0 "$p0"
12469_ACEOF
12470
12471  cat >>confdefs.h <<_ACEOF
12472#define PTYRANGE1 "$p1"
12473_ACEOF
12474
12475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5
12476$as_echo "$p0 / $p1" >&6; }
12477else
12478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5
12479$as_echo "don't know" >&6; }
12480fi
12481
12482
12483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12484$as_echo_n "checking return type of signal handlers... " >&6; }
12485if ${ac_cv_type_signal+:} false; then :
12486  $as_echo_n "(cached) " >&6
12487else
12488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489/* end confdefs.h.  */
12490#include <sys/types.h>
12491#include <signal.h>
12492
12493int
12494main ()
12495{
12496return *(signal (0, 0)) (0) == 1;
12497  ;
12498  return 0;
12499}
12500_ACEOF
12501if ac_fn_c_try_compile "$LINENO"; then :
12502  ac_cv_type_signal=int
12503else
12504  ac_cv_type_signal=void
12505fi
12506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12507fi
12508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12509$as_echo "$ac_cv_type_signal" >&6; }
12510
12511cat >>confdefs.h <<_ACEOF
12512#define RETSIGTYPE $ac_cv_type_signal
12513_ACEOF
12514
12515
12516
12517if test $ac_cv_type_signal = void; then
12518  $as_echo "#define SIGRETURN return" >>confdefs.h
12519
12520else
12521  $as_echo "#define SIGRETURN return 0" >>confdefs.h
12522
12523fi
12524
12525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5
12526$as_echo_n "checking for struct sigcontext... " >&6; }
12527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12528/* end confdefs.h.  */
12529
12530#include <signal.h>
12531test_sig()
12532{
12533    struct sigcontext *scont;
12534    scont = (struct sigcontext *)0;
12535    return 1;
12536}
12537int
12538main ()
12539{
12540
12541  ;
12542  return 0;
12543}
12544_ACEOF
12545if ac_fn_c_try_compile "$LINENO"; then :
12546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12547$as_echo "yes" >&6; }
12548		$as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h
12549
12550else
12551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12552$as_echo "no" >&6; }
12553fi
12554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5
12557$as_echo_n "checking getcwd implementation is broken... " >&6; }
12558if ${vim_cv_getcwd_broken+:} false; then :
12559  $as_echo_n "(cached) " >&6
12560else
12561
12562    if test "$cross_compiling" = yes; then :
12563
12564      as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5
12565
12566else
12567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568/* end confdefs.h.  */
12569
12570#include "confdefs.h"
12571#ifdef HAVE_UNISTD_H
12572#include <unistd.h>
12573#endif
12574char *dagger[] = { "IFS=pwd", 0 };
12575main()
12576{
12577  char buffer[500];
12578  extern char **environ;
12579  environ = dagger;
12580  return getcwd(buffer, 500) ? 0 : 1;
12581}
12582
12583_ACEOF
12584if ac_fn_c_try_run "$LINENO"; then :
12585
12586      vim_cv_getcwd_broken=no
12587
12588else
12589
12590      vim_cv_getcwd_broken=yes
12591
12592fi
12593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12594  conftest.$ac_objext conftest.beam conftest.$ac_ext
12595fi
12596
12597
12598fi
12599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5
12600$as_echo "$vim_cv_getcwd_broken" >&6; }
12601
12602if test "x$vim_cv_getcwd_broken" = "xyes" ; then
12603  $as_echo "#define BAD_GETCWD 1" >>confdefs.h
12604
12605  for ac_func in getwd
12606do :
12607  ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
12608if test "x$ac_cv_func_getwd" = xyes; then :
12609  cat >>confdefs.h <<_ACEOF
12610#define HAVE_GETWD 1
12611_ACEOF
12612
12613fi
12614done
12615
12616fi
12617
12618for ac_func in fchdir fchown fchmod fsync getcwd getpseudotty \
12619	getpwent getpwnam getpwuid getrlimit gettimeofday localtime_r lstat \
12620	memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
12621	getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12622	sigprocmask sigvec strcasecmp strcoll strerror strftime stricmp strncasecmp \
12623	strnicmp strpbrk strptime strtol tgetent towlower towupper iswupper \
12624	tzset usleep utime utimes mblen ftruncate unsetenv posix_openpt
12625do :
12626  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12627ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12628if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12629  cat >>confdefs.h <<_ACEOF
12630#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12631_ACEOF
12632
12633fi
12634done
12635
12636for ac_header in sys/select.h sys/socket.h
12637do :
12638  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12639ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12640if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12641  cat >>confdefs.h <<_ACEOF
12642#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12643_ACEOF
12644
12645fi
12646
12647done
12648
12649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
12650$as_echo_n "checking types of arguments for select... " >&6; }
12651if ${ac_cv_func_select_args+:} false; then :
12652  $as_echo_n "(cached) " >&6
12653else
12654  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12655 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12656  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658/* end confdefs.h.  */
12659$ac_includes_default
12660#ifdef HAVE_SYS_SELECT_H
12661# include <sys/select.h>
12662#endif
12663#ifdef HAVE_SYS_SOCKET_H
12664# include <sys/socket.h>
12665#endif
12666
12667int
12668main ()
12669{
12670extern int select ($ac_arg1,
12671					    $ac_arg234, $ac_arg234, $ac_arg234,
12672					    $ac_arg5);
12673  ;
12674  return 0;
12675}
12676_ACEOF
12677if ac_fn_c_try_compile "$LINENO"; then :
12678  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12679fi
12680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12681  done
12682 done
12683done
12684# Provide a safe default value.
12685: "${ac_cv_func_select_args=int,int *,struct timeval *}"
12686
12687fi
12688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
12689$as_echo "$ac_cv_func_select_args" >&6; }
12690ac_save_IFS=$IFS; IFS=','
12691set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12692IFS=$ac_save_IFS
12693shift
12694
12695cat >>confdefs.h <<_ACEOF
12696#define SELECT_TYPE_ARG1 $1
12697_ACEOF
12698
12699
12700cat >>confdefs.h <<_ACEOF
12701#define SELECT_TYPE_ARG234 ($2)
12702_ACEOF
12703
12704
12705cat >>confdefs.h <<_ACEOF
12706#define SELECT_TYPE_ARG5 ($3)
12707_ACEOF
12708
12709rm -f conftest*
12710
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12712$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12713if ${ac_cv_sys_largefile_source+:} false; then :
12714  $as_echo_n "(cached) " >&6
12715else
12716  while :; do
12717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12718/* end confdefs.h.  */
12719#include <sys/types.h> /* for off_t */
12720     #include <stdio.h>
12721int
12722main ()
12723{
12724int (*fp) (FILE *, off_t, int) = fseeko;
12725     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12726  ;
12727  return 0;
12728}
12729_ACEOF
12730if ac_fn_c_try_link "$LINENO"; then :
12731  ac_cv_sys_largefile_source=no; break
12732fi
12733rm -f core conftest.err conftest.$ac_objext \
12734    conftest$ac_exeext conftest.$ac_ext
12735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736/* end confdefs.h.  */
12737#define _LARGEFILE_SOURCE 1
12738#include <sys/types.h> /* for off_t */
12739     #include <stdio.h>
12740int
12741main ()
12742{
12743int (*fp) (FILE *, off_t, int) = fseeko;
12744     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12745  ;
12746  return 0;
12747}
12748_ACEOF
12749if ac_fn_c_try_link "$LINENO"; then :
12750  ac_cv_sys_largefile_source=1; break
12751fi
12752rm -f core conftest.err conftest.$ac_objext \
12753    conftest$ac_exeext conftest.$ac_ext
12754  ac_cv_sys_largefile_source=unknown
12755  break
12756done
12757fi
12758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12759$as_echo "$ac_cv_sys_largefile_source" >&6; }
12760case $ac_cv_sys_largefile_source in #(
12761  no | unknown) ;;
12762  *)
12763cat >>confdefs.h <<_ACEOF
12764#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12765_ACEOF
12766;;
12767esac
12768rm -rf conftest*
12769
12770# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12771# in glibc 2.1.3, but that breaks too many other things.
12772# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12773if test $ac_cv_sys_largefile_source != unknown; then
12774
12775$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12776
12777fi
12778
12779
12780# Check whether --enable-largefile was given.
12781if test "${enable_largefile+set}" = set; then :
12782  enableval=$enable_largefile;
12783fi
12784
12785if test "$enable_largefile" != no; then
12786
12787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12788$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12789if ${ac_cv_sys_largefile_CC+:} false; then :
12790  $as_echo_n "(cached) " >&6
12791else
12792  ac_cv_sys_largefile_CC=no
12793     if test "$GCC" != yes; then
12794       ac_save_CC=$CC
12795       while :; do
12796	 # IRIX 6.2 and later do not support large files by default,
12797	 # so use the C compiler's -n32 option if that helps.
12798	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799/* end confdefs.h.  */
12800#include <sys/types.h>
12801 /* Check that off_t can represent 2**63 - 1 correctly.
12802    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12803    since some C++ compilers masquerading as C compilers
12804    incorrectly reject 9223372036854775807.  */
12805#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12806  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12807		       && LARGE_OFF_T % 2147483647 == 1)
12808		      ? 1 : -1];
12809int
12810main ()
12811{
12812
12813  ;
12814  return 0;
12815}
12816_ACEOF
12817	 if ac_fn_c_try_compile "$LINENO"; then :
12818  break
12819fi
12820rm -f core conftest.err conftest.$ac_objext
12821	 CC="$CC -n32"
12822	 if ac_fn_c_try_compile "$LINENO"; then :
12823  ac_cv_sys_largefile_CC=' -n32'; break
12824fi
12825rm -f core conftest.err conftest.$ac_objext
12826	 break
12827       done
12828       CC=$ac_save_CC
12829       rm -f conftest.$ac_ext
12830    fi
12831fi
12832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12833$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12834  if test "$ac_cv_sys_largefile_CC" != no; then
12835    CC=$CC$ac_cv_sys_largefile_CC
12836  fi
12837
12838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12839$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12840if ${ac_cv_sys_file_offset_bits+:} false; then :
12841  $as_echo_n "(cached) " >&6
12842else
12843  while :; do
12844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845/* end confdefs.h.  */
12846#include <sys/types.h>
12847 /* Check that off_t can represent 2**63 - 1 correctly.
12848    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12849    since some C++ compilers masquerading as C compilers
12850    incorrectly reject 9223372036854775807.  */
12851#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12852  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12853		       && LARGE_OFF_T % 2147483647 == 1)
12854		      ? 1 : -1];
12855int
12856main ()
12857{
12858
12859  ;
12860  return 0;
12861}
12862_ACEOF
12863if ac_fn_c_try_compile "$LINENO"; then :
12864  ac_cv_sys_file_offset_bits=no; break
12865fi
12866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868/* end confdefs.h.  */
12869#define _FILE_OFFSET_BITS 64
12870#include <sys/types.h>
12871 /* Check that off_t can represent 2**63 - 1 correctly.
12872    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12873    since some C++ compilers masquerading as C compilers
12874    incorrectly reject 9223372036854775807.  */
12875#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12876  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12877		       && LARGE_OFF_T % 2147483647 == 1)
12878		      ? 1 : -1];
12879int
12880main ()
12881{
12882
12883  ;
12884  return 0;
12885}
12886_ACEOF
12887if ac_fn_c_try_compile "$LINENO"; then :
12888  ac_cv_sys_file_offset_bits=64; break
12889fi
12890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12891  ac_cv_sys_file_offset_bits=unknown
12892  break
12893done
12894fi
12895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12896$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12897case $ac_cv_sys_file_offset_bits in #(
12898  no | unknown) ;;
12899  *)
12900cat >>confdefs.h <<_ACEOF
12901#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12902_ACEOF
12903;;
12904esac
12905rm -rf conftest*
12906  if test $ac_cv_sys_file_offset_bits = unknown; then
12907    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12908$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12909if ${ac_cv_sys_large_files+:} false; then :
12910  $as_echo_n "(cached) " >&6
12911else
12912  while :; do
12913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914/* end confdefs.h.  */
12915#include <sys/types.h>
12916 /* Check that off_t can represent 2**63 - 1 correctly.
12917    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12918    since some C++ compilers masquerading as C compilers
12919    incorrectly reject 9223372036854775807.  */
12920#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12921  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12922		       && LARGE_OFF_T % 2147483647 == 1)
12923		      ? 1 : -1];
12924int
12925main ()
12926{
12927
12928  ;
12929  return 0;
12930}
12931_ACEOF
12932if ac_fn_c_try_compile "$LINENO"; then :
12933  ac_cv_sys_large_files=no; break
12934fi
12935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12937/* end confdefs.h.  */
12938#define _LARGE_FILES 1
12939#include <sys/types.h>
12940 /* Check that off_t can represent 2**63 - 1 correctly.
12941    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12942    since some C++ compilers masquerading as C compilers
12943    incorrectly reject 9223372036854775807.  */
12944#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12945  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12946		       && LARGE_OFF_T % 2147483647 == 1)
12947		      ? 1 : -1];
12948int
12949main ()
12950{
12951
12952  ;
12953  return 0;
12954}
12955_ACEOF
12956if ac_fn_c_try_compile "$LINENO"; then :
12957  ac_cv_sys_large_files=1; break
12958fi
12959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12960  ac_cv_sys_large_files=unknown
12961  break
12962done
12963fi
12964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12965$as_echo "$ac_cv_sys_large_files" >&6; }
12966case $ac_cv_sys_large_files in #(
12967  no | unknown) ;;
12968  *)
12969cat >>confdefs.h <<_ACEOF
12970#define _LARGE_FILES $ac_cv_sys_large_files
12971_ACEOF
12972;;
12973esac
12974rm -rf conftest*
12975  fi
12976
12977
12978fi
12979
12980
12981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-canberra argument" >&5
12982$as_echo_n "checking --enable-canberra argument... " >&6; }
12983# Check whether --enable-canberra was given.
12984if test "${enable_canberra+set}" = set; then :
12985  enableval=$enable_canberra;
12986else
12987  enable_canberra="maybe"
12988fi
12989
12990
12991if test "$enable_canberra" = "maybe"; then
12992  if test "$features" = "big" -o "$features" = "huge"; then
12993    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to yes" >&5
12994$as_echo "Defaulting to yes" >&6; }
12995    enable_canberra="yes"
12996  else
12997    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to no" >&5
12998$as_echo "Defaulting to no" >&6; }
12999    enable_canberra="no"
13000  fi
13001else
13002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_canberra" >&5
13003$as_echo "$enable_canberra" >&6; }
13004fi
13005if test "$enable_canberra" = "yes"; then
13006  if test "x$PKG_CONFIG" != "xno"; then
13007    canberra_lib=`$PKG_CONFIG --libs libcanberra 2>/dev/null`
13008    canberra_cflags=`$PKG_CONFIG --cflags libcanberra 2>/dev/null`
13009  fi
13010  if test "x$canberra_lib" = "x"; then
13011    canberra_lib=-lcanberra
13012    canberra_cflags=-D_REENTRANT
13013  fi
13014  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcanberra" >&5
13015$as_echo_n "checking for libcanberra... " >&6; }
13016  ac_save_CFLAGS="$CFLAGS"
13017  ac_save_LIBS="$LIBS"
13018  CFLAGS="$CFLAGS $canberra_cflags"
13019  LIBS="$LIBS $canberra_lib"
13020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021/* end confdefs.h.  */
13022
13023  # include <canberra.h>
13024
13025int
13026main ()
13027{
13028
13029     ca_context *hello;
13030     ca_context_create(&hello);
13031  ;
13032  return 0;
13033}
13034_ACEOF
13035if ac_fn_c_try_link "$LINENO"; then :
13036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13037$as_echo "yes" >&6; }; $as_echo "#define HAVE_CANBERRA 1" >>confdefs.h
13038
13039else
13040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; try installing libcanberra-dev" >&5
13041$as_echo "no; try installing libcanberra-dev" >&6; }; CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS"
13042fi
13043rm -f core conftest.err conftest.$ac_objext \
13044    conftest$ac_exeext conftest.$ac_ext
13045fi
13046
13047
13048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5
13049$as_echo_n "checking for st_blksize... " >&6; }
13050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051/* end confdefs.h.  */
13052#include <sys/types.h>
13053#include <sys/stat.h>
13054int
13055main ()
13056{
13057	struct stat st;
13058	int n;
13059
13060	stat("/", &st);
13061	n = (int)st.st_blksize;
13062  ;
13063  return 0;
13064}
13065_ACEOF
13066if ac_fn_c_try_compile "$LINENO"; then :
13067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13068$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
13069
13070else
13071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072$as_echo "no" >&6; }
13073fi
13074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13075
13076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5
13077$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
13078if ${vim_cv_stat_ignores_slash+:} false; then :
13079  $as_echo_n "(cached) " >&6
13080else
13081
13082    if test "$cross_compiling" = yes; then :
13083
13084      as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5
13085
13086else
13087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088/* end confdefs.h.  */
13089
13090#include "confdefs.h"
13091#if STDC_HEADERS
13092# include <stdlib.h>
13093# include <stddef.h>
13094#endif
13095#include <sys/types.h>
13096#include <sys/stat.h>
13097main() {struct stat st;  exit(stat("configure/", &st) != 0); }
13098
13099_ACEOF
13100if ac_fn_c_try_run "$LINENO"; then :
13101
13102      vim_cv_stat_ignores_slash=yes
13103
13104else
13105
13106      vim_cv_stat_ignores_slash=no
13107
13108fi
13109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13110  conftest.$ac_objext conftest.beam conftest.$ac_ext
13111fi
13112
13113
13114fi
13115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5
13116$as_echo "$vim_cv_stat_ignores_slash" >&6; }
13117
13118if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13119  $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h
13120
13121fi
13122
13123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5
13124$as_echo_n "checking for iconv_open()... " >&6; }
13125save_LIBS="$LIBS"
13126LIBS="$LIBS -liconv"
13127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128/* end confdefs.h.  */
13129
13130#ifdef HAVE_ICONV_H
13131# include <iconv.h>
13132#endif
13133
13134int
13135main ()
13136{
13137iconv_open("fr", "to");
13138  ;
13139  return 0;
13140}
13141_ACEOF
13142if ac_fn_c_try_link "$LINENO"; then :
13143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5
13144$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13145
13146else
13147  LIBS="$save_LIBS"
13148    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149/* end confdefs.h.  */
13150
13151#ifdef HAVE_ICONV_H
13152# include <iconv.h>
13153#endif
13154
13155int
13156main ()
13157{
13158iconv_open("fr", "to");
13159  ;
13160  return 0;
13161}
13162_ACEOF
13163if ac_fn_c_try_link "$LINENO"; then :
13164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13165$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13166
13167else
13168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169$as_echo "no" >&6; }
13170fi
13171rm -f core conftest.err conftest.$ac_objext \
13172    conftest$ac_exeext conftest.$ac_ext
13173fi
13174rm -f core conftest.err conftest.$ac_objext \
13175    conftest$ac_exeext conftest.$ac_ext
13176
13177
13178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
13179$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
13180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13181/* end confdefs.h.  */
13182
13183#ifdef HAVE_LANGINFO_H
13184# include <langinfo.h>
13185#endif
13186
13187int
13188main ()
13189{
13190char *cs = nl_langinfo(CODESET);
13191  ;
13192  return 0;
13193}
13194_ACEOF
13195if ac_fn_c_try_link "$LINENO"; then :
13196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13197$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
13198
13199else
13200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13201$as_echo "no" >&6; }
13202fi
13203rm -f core conftest.err conftest.$ac_objext \
13204    conftest$ac_exeext conftest.$ac_ext
13205
13206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5
13207$as_echo_n "checking for strtod in -lm... " >&6; }
13208if ${ac_cv_lib_m_strtod+:} false; then :
13209  $as_echo_n "(cached) " >&6
13210else
13211  ac_check_lib_save_LIBS=$LIBS
13212LIBS="-lm  $LIBS"
13213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13214/* end confdefs.h.  */
13215
13216/* Override any GCC internal prototype to avoid an error.
13217   Use char because int might match the return type of a GCC
13218   builtin and then its argument prototype would still apply.  */
13219#ifdef __cplusplus
13220extern "C"
13221#endif
13222char strtod ();
13223int
13224main ()
13225{
13226return strtod ();
13227  ;
13228  return 0;
13229}
13230_ACEOF
13231if ac_fn_c_try_link "$LINENO"; then :
13232  ac_cv_lib_m_strtod=yes
13233else
13234  ac_cv_lib_m_strtod=no
13235fi
13236rm -f core conftest.err conftest.$ac_objext \
13237    conftest$ac_exeext conftest.$ac_ext
13238LIBS=$ac_check_lib_save_LIBS
13239fi
13240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5
13241$as_echo "$ac_cv_lib_m_strtod" >&6; }
13242if test "x$ac_cv_lib_m_strtod" = xyes; then :
13243  cat >>confdefs.h <<_ACEOF
13244#define HAVE_LIBM 1
13245_ACEOF
13246
13247  LIBS="-lm $LIBS"
13248
13249fi
13250
13251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5
13252$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
13253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254/* end confdefs.h.  */
13255
13256#ifdef HAVE_MATH_H
13257# include <math.h>
13258#endif
13259#if STDC_HEADERS
13260# include <stdlib.h>
13261# include <stddef.h>
13262#endif
13263
13264int
13265main ()
13266{
13267char *s; double d;
13268    d = strtod("1.1", &s);
13269    d = fabs(1.11);
13270    d = ceil(1.11);
13271    d = floor(1.11);
13272    d = log10(1.11);
13273    d = pow(1.11, 2.22);
13274    d = sqrt(1.11);
13275    d = sin(1.11);
13276    d = cos(1.11);
13277    d = atan(1.11);
13278
13279  ;
13280  return 0;
13281}
13282_ACEOF
13283if ac_fn_c_try_link "$LINENO"; then :
13284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13285$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h
13286
13287else
13288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289$as_echo "no" >&6; }
13290fi
13291rm -f core conftest.err conftest.$ac_objext \
13292    conftest$ac_exeext conftest.$ac_ext
13293
13294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5
13295$as_echo_n "checking for isinf()... " >&6; }
13296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13297/* end confdefs.h.  */
13298
13299#ifdef HAVE_MATH_H
13300# include <math.h>
13301#endif
13302#if STDC_HEADERS
13303# include <stdlib.h>
13304# include <stddef.h>
13305#endif
13306
13307int
13308main ()
13309{
13310int r = isinf(1.11);
13311  ;
13312  return 0;
13313}
13314_ACEOF
13315if ac_fn_c_try_link "$LINENO"; then :
13316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13317$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13318
13319else
13320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13321$as_echo "no" >&6; }
13322fi
13323rm -f core conftest.err conftest.$ac_objext \
13324    conftest$ac_exeext conftest.$ac_ext
13325
13326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5
13327$as_echo_n "checking for isnan()... " >&6; }
13328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329/* end confdefs.h.  */
13330
13331#ifdef HAVE_MATH_H
13332# include <math.h>
13333#endif
13334#if STDC_HEADERS
13335# include <stdlib.h>
13336# include <stddef.h>
13337#endif
13338
13339int
13340main ()
13341{
13342int r = isnan(1.11);
13343  ;
13344  return 0;
13345}
13346_ACEOF
13347if ac_fn_c_try_link "$LINENO"; then :
13348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13349$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13350
13351else
13352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13353$as_echo "no" >&6; }
13354fi
13355rm -f core conftest.err conftest.$ac_objext \
13356    conftest$ac_exeext conftest.$ac_ext
13357
13358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5
13359$as_echo_n "checking --disable-acl argument... " >&6; }
13360# Check whether --enable-acl was given.
13361if test "${enable_acl+set}" = set; then :
13362  enableval=$enable_acl;
13363else
13364  enable_acl="yes"
13365fi
13366
13367if test "$enable_acl" = "yes"; then
13368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369$as_echo "no" >&6; }
13370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5
13371$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
13372if ${ac_cv_lib_posix1e_acl_get_file+:} false; then :
13373  $as_echo_n "(cached) " >&6
13374else
13375  ac_check_lib_save_LIBS=$LIBS
13376LIBS="-lposix1e  $LIBS"
13377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378/* end confdefs.h.  */
13379
13380/* Override any GCC internal prototype to avoid an error.
13381   Use char because int might match the return type of a GCC
13382   builtin and then its argument prototype would still apply.  */
13383#ifdef __cplusplus
13384extern "C"
13385#endif
13386char acl_get_file ();
13387int
13388main ()
13389{
13390return acl_get_file ();
13391  ;
13392  return 0;
13393}
13394_ACEOF
13395if ac_fn_c_try_link "$LINENO"; then :
13396  ac_cv_lib_posix1e_acl_get_file=yes
13397else
13398  ac_cv_lib_posix1e_acl_get_file=no
13399fi
13400rm -f core conftest.err conftest.$ac_objext \
13401    conftest$ac_exeext conftest.$ac_ext
13402LIBS=$ac_check_lib_save_LIBS
13403fi
13404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13405$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
13406if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then :
13407  LIBS="$LIBS -lposix1e"
13408else
13409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
13410$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
13411if ${ac_cv_lib_acl_acl_get_file+:} false; then :
13412  $as_echo_n "(cached) " >&6
13413else
13414  ac_check_lib_save_LIBS=$LIBS
13415LIBS="-lacl  $LIBS"
13416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417/* end confdefs.h.  */
13418
13419/* Override any GCC internal prototype to avoid an error.
13420   Use char because int might match the return type of a GCC
13421   builtin and then its argument prototype would still apply.  */
13422#ifdef __cplusplus
13423extern "C"
13424#endif
13425char acl_get_file ();
13426int
13427main ()
13428{
13429return acl_get_file ();
13430  ;
13431  return 0;
13432}
13433_ACEOF
13434if ac_fn_c_try_link "$LINENO"; then :
13435  ac_cv_lib_acl_acl_get_file=yes
13436else
13437  ac_cv_lib_acl_acl_get_file=no
13438fi
13439rm -f core conftest.err conftest.$ac_objext \
13440    conftest$ac_exeext conftest.$ac_ext
13441LIBS=$ac_check_lib_save_LIBS
13442fi
13443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
13444$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
13445if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
13446  LIBS="$LIBS -lacl"
13447		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5
13448$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
13449if ${ac_cv_lib_attr_fgetxattr+:} false; then :
13450  $as_echo_n "(cached) " >&6
13451else
13452  ac_check_lib_save_LIBS=$LIBS
13453LIBS="-lattr  $LIBS"
13454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13455/* end confdefs.h.  */
13456
13457/* Override any GCC internal prototype to avoid an error.
13458   Use char because int might match the return type of a GCC
13459   builtin and then its argument prototype would still apply.  */
13460#ifdef __cplusplus
13461extern "C"
13462#endif
13463char fgetxattr ();
13464int
13465main ()
13466{
13467return fgetxattr ();
13468  ;
13469  return 0;
13470}
13471_ACEOF
13472if ac_fn_c_try_link "$LINENO"; then :
13473  ac_cv_lib_attr_fgetxattr=yes
13474else
13475  ac_cv_lib_attr_fgetxattr=no
13476fi
13477rm -f core conftest.err conftest.$ac_objext \
13478    conftest$ac_exeext conftest.$ac_ext
13479LIBS=$ac_check_lib_save_LIBS
13480fi
13481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5
13482$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
13483if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then :
13484  LIBS="$LIBS -lattr"
13485fi
13486
13487fi
13488
13489fi
13490
13491
13492  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
13493$as_echo_n "checking for POSIX ACL support... " >&6; }
13494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495/* end confdefs.h.  */
13496
13497#include <sys/types.h>
13498#ifdef HAVE_SYS_ACL_H
13499# include <sys/acl.h>
13500#endif
13501acl_t acl;
13502int
13503main ()
13504{
13505acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13506	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13507	acl_free(acl);
13508  ;
13509  return 0;
13510}
13511_ACEOF
13512if ac_fn_c_try_link "$LINENO"; then :
13513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13514$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
13515
13516else
13517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518$as_echo "no" >&6; }
13519fi
13520rm -f core conftest.err conftest.$ac_objext \
13521    conftest$ac_exeext conftest.$ac_ext
13522
13523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5
13524$as_echo_n "checking for acl_get in -lsec... " >&6; }
13525if ${ac_cv_lib_sec_acl_get+:} false; then :
13526  $as_echo_n "(cached) " >&6
13527else
13528  ac_check_lib_save_LIBS=$LIBS
13529LIBS="-lsec  $LIBS"
13530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531/* end confdefs.h.  */
13532
13533/* Override any GCC internal prototype to avoid an error.
13534   Use char because int might match the return type of a GCC
13535   builtin and then its argument prototype would still apply.  */
13536#ifdef __cplusplus
13537extern "C"
13538#endif
13539char acl_get ();
13540int
13541main ()
13542{
13543return acl_get ();
13544  ;
13545  return 0;
13546}
13547_ACEOF
13548if ac_fn_c_try_link "$LINENO"; then :
13549  ac_cv_lib_sec_acl_get=yes
13550else
13551  ac_cv_lib_sec_acl_get=no
13552fi
13553rm -f core conftest.err conftest.$ac_objext \
13554    conftest$ac_exeext conftest.$ac_ext
13555LIBS=$ac_check_lib_save_LIBS
13556fi
13557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5
13558$as_echo "$ac_cv_lib_sec_acl_get" >&6; }
13559if test "x$ac_cv_lib_sec_acl_get" = xyes; then :
13560  LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h
13561
13562else
13563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5
13564$as_echo_n "checking for Solaris ACL support... " >&6; }
13565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13566/* end confdefs.h.  */
13567
13568#ifdef HAVE_SYS_ACL_H
13569# include <sys/acl.h>
13570#endif
13571int
13572main ()
13573{
13574acl("foo", GETACLCNT, 0, NULL);
13575
13576  ;
13577  return 0;
13578}
13579_ACEOF
13580if ac_fn_c_try_link "$LINENO"; then :
13581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13582$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h
13583
13584else
13585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13586$as_echo "no" >&6; }
13587fi
13588rm -f core conftest.err conftest.$ac_objext \
13589    conftest$ac_exeext conftest.$ac_ext
13590fi
13591
13592
13593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5
13594$as_echo_n "checking for AIX ACL support... " >&6; }
13595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596/* end confdefs.h.  */
13597
13598#if STDC_HEADERS
13599# include <stdlib.h>
13600# include <stddef.h>
13601#endif
13602#ifdef HAVE_SYS_ACL_H
13603# include <sys/acl.h>
13604#endif
13605#ifdef HAVE_SYS_ACCESS_H
13606# include <sys/access.h>
13607#endif
13608#define _ALL_SOURCE
13609
13610#include <sys/stat.h>
13611
13612int aclsize;
13613struct acl *aclent;
13614int
13615main ()
13616{
13617aclsize = sizeof(struct acl);
13618	aclent = (void *)malloc(aclsize);
13619	statacl("foo", STX_NORMAL, aclent, aclsize);
13620
13621  ;
13622  return 0;
13623}
13624_ACEOF
13625if ac_fn_c_try_link "$LINENO"; then :
13626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13627$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h
13628
13629else
13630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13631$as_echo "no" >&6; }
13632fi
13633rm -f core conftest.err conftest.$ac_objext \
13634    conftest$ac_exeext conftest.$ac_ext
13635else
13636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13637$as_echo "yes" >&6; }
13638fi
13639
13640if test "x$GTK_CFLAGS" != "x"; then
13641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5
13642$as_echo_n "checking for pango_shape_full... " >&6; }
13643  ac_save_CFLAGS="$CFLAGS"
13644  ac_save_LIBS="$LIBS"
13645  CFLAGS="$CFLAGS $GTK_CFLAGS"
13646  LIBS="$LIBS $GTK_LIBS"
13647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648/* end confdefs.h.  */
13649#include <gtk/gtk.h>
13650int
13651main ()
13652{
13653 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL);
13654  ;
13655  return 0;
13656}
13657_ACEOF
13658if ac_fn_c_try_link "$LINENO"; then :
13659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13660$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h
13661
13662else
13663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13664$as_echo "no" >&6; }
13665fi
13666rm -f core conftest.err conftest.$ac_objext \
13667    conftest$ac_exeext conftest.$ac_ext
13668  CFLAGS="$ac_save_CFLAGS"
13669  LIBS="$ac_save_LIBS"
13670fi
13671
13672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5
13673$as_echo_n "checking --disable-gpm argument... " >&6; }
13674# Check whether --enable-gpm was given.
13675if test "${enable_gpm+set}" = set; then :
13676  enableval=$enable_gpm;
13677else
13678  enable_gpm="yes"
13679fi
13680
13681
13682if test "$enable_gpm" = "yes"; then
13683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13684$as_echo "no" >&6; }
13685    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5
13686$as_echo_n "checking for gpm... " >&6; }
13687if ${vi_cv_have_gpm+:} false; then :
13688  $as_echo_n "(cached) " >&6
13689else
13690  olibs="$LIBS" ; LIBS="-lgpm"
13691	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692/* end confdefs.h.  */
13693#include <gpm.h>
13694	    #include <linux/keyboard.h>
13695int
13696main ()
13697{
13698Gpm_GetLibVersion(NULL);
13699  ;
13700  return 0;
13701}
13702_ACEOF
13703if ac_fn_c_try_link "$LINENO"; then :
13704  	    	    vi_cv_have_gpm=yes
13705else
13706  vi_cv_have_gpm=no
13707fi
13708rm -f core conftest.err conftest.$ac_objext \
13709    conftest$ac_exeext conftest.$ac_ext
13710	LIBS="$olibs"
13711
13712fi
13713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5
13714$as_echo "$vi_cv_have_gpm" >&6; }
13715  if test $vi_cv_have_gpm = yes; then
13716    LIBS="$LIBS -lgpm"
13717    $as_echo "#define HAVE_GPM 1" >>confdefs.h
13718
13719  fi
13720else
13721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13722$as_echo "yes" >&6; }
13723fi
13724
13725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5
13726$as_echo_n "checking --disable-sysmouse argument... " >&6; }
13727# Check whether --enable-sysmouse was given.
13728if test "${enable_sysmouse+set}" = set; then :
13729  enableval=$enable_sysmouse;
13730else
13731  enable_sysmouse="yes"
13732fi
13733
13734
13735if test "$enable_sysmouse" = "yes"; then
13736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737$as_echo "no" >&6; }
13738        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5
13739$as_echo_n "checking for sysmouse... " >&6; }
13740if ${vi_cv_have_sysmouse+:} false; then :
13741  $as_echo_n "(cached) " >&6
13742else
13743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744/* end confdefs.h.  */
13745#include <sys/consio.h>
13746	     #include <signal.h>
13747	     #include <sys/fbio.h>
13748int
13749main ()
13750{
13751struct mouse_info   mouse;
13752	     mouse.operation = MOUSE_MODE;
13753	     mouse.operation = MOUSE_SHOW;
13754	     mouse.u.mode.mode = 0;
13755	     mouse.u.mode.signal = SIGUSR2;
13756  ;
13757  return 0;
13758}
13759_ACEOF
13760if ac_fn_c_try_link "$LINENO"; then :
13761  vi_cv_have_sysmouse=yes
13762else
13763  vi_cv_have_sysmouse=no
13764fi
13765rm -f core conftest.err conftest.$ac_objext \
13766    conftest$ac_exeext conftest.$ac_ext
13767
13768fi
13769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5
13770$as_echo "$vi_cv_have_sysmouse" >&6; }
13771  if test $vi_cv_have_sysmouse = yes; then
13772    $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h
13773
13774  fi
13775else
13776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13777$as_echo "yes" >&6; }
13778fi
13779
13780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5
13781$as_echo_n "checking for FD_CLOEXEC... " >&6; }
13782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13783/* end confdefs.h.  */
13784#if HAVE_FCNTL_H
13785# include <fcntl.h>
13786#endif
13787int
13788main ()
13789{
13790	int flag = FD_CLOEXEC;
13791  ;
13792  return 0;
13793}
13794_ACEOF
13795if ac_fn_c_try_compile "$LINENO"; then :
13796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13797$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h
13798
13799else
13800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13801$as_echo "not usable" >&6; }
13802fi
13803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13804
13805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5
13806$as_echo_n "checking for rename... " >&6; }
13807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808/* end confdefs.h.  */
13809#include <stdio.h>
13810int
13811main ()
13812{
13813rename("this", "that")
13814  ;
13815  return 0;
13816}
13817_ACEOF
13818if ac_fn_c_try_link "$LINENO"; then :
13819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13820$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h
13821
13822else
13823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13824$as_echo "no" >&6; }
13825fi
13826rm -f core conftest.err conftest.$ac_objext \
13827    conftest$ac_exeext conftest.$ac_ext
13828
13829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirfd" >&5
13830$as_echo_n "checking for dirfd... " >&6; }
13831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832/* end confdefs.h.  */
13833#include <sys/types.h>
13834#include <dirent.h>
13835int
13836main ()
13837{
13838DIR * dir=opendir("dirname"); dirfd(dir);
13839  ;
13840  return 0;
13841}
13842_ACEOF
13843if ac_fn_c_try_compile "$LINENO"; then :
13844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13845$as_echo "yes" >&6; }; $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
13846
13847else
13848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13849$as_echo "not usable" >&6; }
13850fi
13851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13852
13853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock" >&5
13854$as_echo_n "checking for flock... " >&6; }
13855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856/* end confdefs.h.  */
13857#include <sys/file.h>
13858int
13859main ()
13860{
13861flock(10, LOCK_SH);
13862  ;
13863  return 0;
13864}
13865_ACEOF
13866if ac_fn_c_try_compile "$LINENO"; then :
13867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13868$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
13869
13870else
13871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13872$as_echo "not usable" >&6; }
13873fi
13874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13875
13876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
13877$as_echo_n "checking for sysctl... " >&6; }
13878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879/* end confdefs.h.  */
13880#include <sys/types.h>
13881#include <sys/sysctl.h>
13882int
13883main ()
13884{
13885	int mib[2], r;
13886	size_t len;
13887
13888	mib[0] = CTL_HW;
13889	mib[1] = HW_USERMEM;
13890	len = sizeof(r);
13891	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13892
13893  ;
13894  return 0;
13895}
13896_ACEOF
13897if ac_fn_c_try_compile "$LINENO"; then :
13898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13899$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h
13900
13901else
13902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13903$as_echo "not usable" >&6; }
13904fi
13905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13906
13907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
13908$as_echo_n "checking for sysinfo... " >&6; }
13909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910/* end confdefs.h.  */
13911#include <sys/types.h>
13912#include <sys/sysinfo.h>
13913int
13914main ()
13915{
13916	struct sysinfo sinfo;
13917	int t;
13918
13919	(void)sysinfo(&sinfo);
13920	t = sinfo.totalram;
13921
13922  ;
13923  return 0;
13924}
13925_ACEOF
13926if ac_fn_c_try_compile "$LINENO"; then :
13927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13928$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
13929
13930else
13931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13932$as_echo "not usable" >&6; }
13933fi
13934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13935
13936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5
13937$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
13938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939/* end confdefs.h.  */
13940#include <sys/types.h>
13941#include <sys/sysinfo.h>
13942int
13943main ()
13944{
13945	struct sysinfo sinfo;
13946	sinfo.mem_unit = 1;
13947
13948  ;
13949  return 0;
13950}
13951_ACEOF
13952if ac_fn_c_try_compile "$LINENO"; then :
13953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13954$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h
13955
13956else
13957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13958$as_echo "no" >&6; }
13959fi
13960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13961
13962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
13963$as_echo_n "checking for sysconf... " >&6; }
13964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13965/* end confdefs.h.  */
13966#include <unistd.h>
13967int
13968main ()
13969{
13970	(void)sysconf(_SC_PAGESIZE);
13971	(void)sysconf(_SC_PHYS_PAGES);
13972
13973  ;
13974  return 0;
13975}
13976_ACEOF
13977if ac_fn_c_try_compile "$LINENO"; then :
13978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13979$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
13980
13981else
13982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13983$as_echo "not usable" >&6; }
13984fi
13985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13986
13987# The cast to long int works around a bug in the HP C Compiler
13988# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13989# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13990# This bug is HP SR number 8606223364.
13991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13992$as_echo_n "checking size of int... " >&6; }
13993if ${ac_cv_sizeof_int+:} false; then :
13994  $as_echo_n "(cached) " >&6
13995else
13996  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13997
13998else
13999  if test "$ac_cv_type_int" = yes; then
14000     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14002as_fn_error 77 "cannot compute sizeof (int)
14003See \`config.log' for more details" "$LINENO" 5; }
14004   else
14005     ac_cv_sizeof_int=0
14006   fi
14007fi
14008
14009fi
14010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14011$as_echo "$ac_cv_sizeof_int" >&6; }
14012
14013
14014
14015cat >>confdefs.h <<_ACEOF
14016#define SIZEOF_INT $ac_cv_sizeof_int
14017_ACEOF
14018
14019
14020# The cast to long int works around a bug in the HP C Compiler
14021# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14022# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14023# This bug is HP SR number 8606223364.
14024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14025$as_echo_n "checking size of long... " >&6; }
14026if ${ac_cv_sizeof_long+:} false; then :
14027  $as_echo_n "(cached) " >&6
14028else
14029  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
14030
14031else
14032  if test "$ac_cv_type_long" = yes; then
14033     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14035as_fn_error 77 "cannot compute sizeof (long)
14036See \`config.log' for more details" "$LINENO" 5; }
14037   else
14038     ac_cv_sizeof_long=0
14039   fi
14040fi
14041
14042fi
14043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14044$as_echo "$ac_cv_sizeof_long" >&6; }
14045
14046
14047
14048cat >>confdefs.h <<_ACEOF
14049#define SIZEOF_LONG $ac_cv_sizeof_long
14050_ACEOF
14051
14052
14053# The cast to long int works around a bug in the HP C Compiler
14054# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14055# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14056# This bug is HP SR number 8606223364.
14057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14058$as_echo_n "checking size of time_t... " >&6; }
14059if ${ac_cv_sizeof_time_t+:} false; then :
14060  $as_echo_n "(cached) " >&6
14061else
14062  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
14063
14064else
14065  if test "$ac_cv_type_time_t" = yes; then
14066     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14068as_fn_error 77 "cannot compute sizeof (time_t)
14069See \`config.log' for more details" "$LINENO" 5; }
14070   else
14071     ac_cv_sizeof_time_t=0
14072   fi
14073fi
14074
14075fi
14076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14077$as_echo "$ac_cv_sizeof_time_t" >&6; }
14078
14079
14080
14081cat >>confdefs.h <<_ACEOF
14082#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14083_ACEOF
14084
14085
14086# The cast to long int works around a bug in the HP C Compiler
14087# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14088# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14089# This bug is HP SR number 8606223364.
14090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14091$as_echo_n "checking size of off_t... " >&6; }
14092if ${ac_cv_sizeof_off_t+:} false; then :
14093  $as_echo_n "(cached) " >&6
14094else
14095  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
14096
14097else
14098  if test "$ac_cv_type_off_t" = yes; then
14099     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14101as_fn_error 77 "cannot compute sizeof (off_t)
14102See \`config.log' for more details" "$LINENO" 5; }
14103   else
14104     ac_cv_sizeof_off_t=0
14105   fi
14106fi
14107
14108fi
14109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14110$as_echo "$ac_cv_sizeof_off_t" >&6; }
14111
14112
14113
14114cat >>confdefs.h <<_ACEOF
14115#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14116_ACEOF
14117
14118
14119
14120cat >>confdefs.h <<_ACEOF
14121#define VIM_SIZEOF_INT $ac_cv_sizeof_int
14122_ACEOF
14123
14124cat >>confdefs.h <<_ACEOF
14125#define VIM_SIZEOF_LONG $ac_cv_sizeof_long
14126_ACEOF
14127
14128
14129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
14130$as_echo_n "checking uint32_t is 32 bits... " >&6; }
14131if test "$cross_compiling" = yes; then :
14132  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5
14133$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;}
14134else
14135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136/* end confdefs.h.  */
14137
14138#ifdef HAVE_STDINT_H
14139# include <stdint.h>
14140#endif
14141#ifdef HAVE_INTTYPES_H
14142# include <inttypes.h>
14143#endif
14144main() {
14145  uint32_t nr1 = (uint32_t)-1;
14146  uint32_t nr2 = (uint32_t)0xffffffffUL;
14147  if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) return 1;
14148  return 0;
14149}
14150_ACEOF
14151if ac_fn_c_try_run "$LINENO"; then :
14152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14153$as_echo "ok" >&6; }
14154else
14155  as_fn_error $? "WRONG!  uint32_t not defined correctly." "$LINENO" 5
14156fi
14157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14158  conftest.$ac_objext conftest.beam conftest.$ac_ext
14159fi
14160
14161
14162
14163bcopy_test_prog='
14164#include "confdefs.h"
14165#ifdef HAVE_STRING_H
14166# include <string.h>
14167#endif
14168#if STDC_HEADERS
14169# include <stdlib.h>
14170# include <stddef.h>
14171#endif
14172main() {
14173  char buf[10];
14174  strcpy(buf, "abcdefghi");
14175  mch_memmove(buf, buf + 2, 3);
14176  if (strncmp(buf, "ababcf", 6))
14177    exit(1);
14178  strcpy(buf, "abcdefghi");
14179  mch_memmove(buf + 2, buf, 3);
14180  if (strncmp(buf, "cdedef", 6))
14181    exit(1);
14182  exit(0); /* libc version works properly.  */
14183}'
14184
14185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5
14186$as_echo_n "checking whether memmove handles overlaps... " >&6; }
14187if ${vim_cv_memmove_handles_overlap+:} false; then :
14188  $as_echo_n "(cached) " >&6
14189else
14190
14191    if test "$cross_compiling" = yes; then :
14192
14193	as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5
14194
14195else
14196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14197/* end confdefs.h.  */
14198#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
14199_ACEOF
14200if ac_fn_c_try_run "$LINENO"; then :
14201
14202	vim_cv_memmove_handles_overlap=yes
14203
14204else
14205
14206	vim_cv_memmove_handles_overlap=no
14207
14208fi
14209rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14210  conftest.$ac_objext conftest.beam conftest.$ac_ext
14211fi
14212
14213
14214fi
14215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5
14216$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
14217
14218if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
14219  $as_echo "#define USEMEMMOVE 1" >>confdefs.h
14220
14221else
14222  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5
14223$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
14224if ${vim_cv_bcopy_handles_overlap+:} false; then :
14225  $as_echo_n "(cached) " >&6
14226else
14227
14228      if test "$cross_compiling" = yes; then :
14229
14230	as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5
14231
14232else
14233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234/* end confdefs.h.  */
14235#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
14236_ACEOF
14237if ac_fn_c_try_run "$LINENO"; then :
14238
14239	vim_cv_bcopy_handles_overlap=yes
14240
14241else
14242
14243	vim_cv_bcopy_handles_overlap=no
14244
14245fi
14246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14247  conftest.$ac_objext conftest.beam conftest.$ac_ext
14248fi
14249
14250
14251fi
14252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5
14253$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
14254
14255  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
14256    $as_echo "#define USEBCOPY 1" >>confdefs.h
14257
14258  else
14259    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5
14260$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
14261if ${vim_cv_memcpy_handles_overlap+:} false; then :
14262  $as_echo_n "(cached) " >&6
14263else
14264
14265	if test "$cross_compiling" = yes; then :
14266
14267	    as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5
14268
14269else
14270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271/* end confdefs.h.  */
14272#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
14273_ACEOF
14274if ac_fn_c_try_run "$LINENO"; then :
14275
14276	    vim_cv_memcpy_handles_overlap=yes
14277
14278else
14279
14280	    vim_cv_memcpy_handles_overlap=no
14281
14282fi
14283rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14284  conftest.$ac_objext conftest.beam conftest.$ac_ext
14285fi
14286
14287
14288fi
14289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5
14290$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
14291
14292    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
14293      $as_echo "#define USEMEMCPY 1" >>confdefs.h
14294
14295    fi
14296  fi
14297fi
14298
14299
14300if test "x$with_x" = "xyes"; then
14301  cflags_save=$CFLAGS
14302  libs_save=$LIBS
14303  LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS"
14304  CFLAGS="$CFLAGS $X_CFLAGS"
14305
14306  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
14307$as_echo_n "checking whether X_LOCALE needed... " >&6; }
14308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309/* end confdefs.h.  */
14310#include <X11/Xlocale.h>
14311int
14312main ()
14313{
14314
14315  ;
14316  return 0;
14317}
14318_ACEOF
14319if ac_fn_c_try_compile "$LINENO"; then :
14320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321/* end confdefs.h.  */
14322
14323/* Override any GCC internal prototype to avoid an error.
14324   Use char because int might match the return type of a GCC
14325   builtin and then its argument prototype would still apply.  */
14326#ifdef __cplusplus
14327extern "C"
14328#endif
14329char _Xsetlocale ();
14330int
14331main ()
14332{
14333return _Xsetlocale ();
14334  ;
14335  return 0;
14336}
14337_ACEOF
14338if ac_fn_c_try_link "$LINENO"; then :
14339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14340$as_echo "yes" >&6; }
14341	      $as_echo "#define X_LOCALE 1" >>confdefs.h
14342
14343else
14344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14345$as_echo "no" >&6; }
14346fi
14347rm -f core conftest.err conftest.$ac_objext \
14348    conftest$ac_exeext conftest.$ac_ext
14349else
14350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351$as_echo "no" >&6; }
14352fi
14353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14354
14355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5
14356$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; }
14357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358/* end confdefs.h.  */
14359
14360/* Override any GCC internal prototype to avoid an error.
14361   Use char because int might match the return type of a GCC
14362   builtin and then its argument prototype would still apply.  */
14363#ifdef __cplusplus
14364extern "C"
14365#endif
14366char Xutf8SetWMProperties ();
14367int
14368main ()
14369{
14370return Xutf8SetWMProperties ();
14371  ;
14372  return 0;
14373}
14374_ACEOF
14375if ac_fn_c_try_link "$LINENO"; then :
14376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14377$as_echo "yes" >&6; }
14378	      $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h
14379
14380else
14381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14382$as_echo "no" >&6; }
14383fi
14384rm -f core conftest.err conftest.$ac_objext \
14385    conftest$ac_exeext conftest.$ac_ext
14386
14387  CFLAGS=$cflags_save
14388  LIBS=$libs_save
14389fi
14390
14391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
14392$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
14393if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then :
14394  $as_echo_n "(cached) " >&6
14395else
14396  ac_check_lib_save_LIBS=$LIBS
14397LIBS="-lxpg4  $LIBS"
14398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399/* end confdefs.h.  */
14400
14401/* Override any GCC internal prototype to avoid an error.
14402   Use char because int might match the return type of a GCC
14403   builtin and then its argument prototype would still apply.  */
14404#ifdef __cplusplus
14405extern "C"
14406#endif
14407char _xpg4_setrunelocale ();
14408int
14409main ()
14410{
14411return _xpg4_setrunelocale ();
14412  ;
14413  return 0;
14414}
14415_ACEOF
14416if ac_fn_c_try_link "$LINENO"; then :
14417  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
14418else
14419  ac_cv_lib_xpg4__xpg4_setrunelocale=no
14420fi
14421rm -f core conftest.err conftest.$ac_objext \
14422    conftest$ac_exeext conftest.$ac_ext
14423LIBS=$ac_check_lib_save_LIBS
14424fi
14425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14426$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
14427if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then :
14428  LIBS="$LIBS -lxpg4"
14429fi
14430
14431
14432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5
14433$as_echo_n "checking how to create tags... " >&6; }
14434test -f tags && mv tags tags.save
14435if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14436  TAGPRG="ctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S"
14437elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14438  TAGPRG="exctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S"
14439elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14440  TAGPRG="exuberant-ctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S"
14441else
14442  TAGPRG="ctags"
14443  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14444  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14445  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14446  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14447  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14448  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14449  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14450fi
14451test -f tags.save && mv tags.save tags
14452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5
14453$as_echo "$TAGPRG" >&6; }
14454
14455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5
14456$as_echo_n "checking how to run man with a section nr... " >&6; }
14457MANDEF="man"
14458(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
14459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5
14460$as_echo "$MANDEF" >&6; }
14461if test "$MANDEF" = "man -s"; then
14462  $as_echo "#define USEMAN_S 1" >>confdefs.h
14463
14464fi
14465
14466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5
14467$as_echo_n "checking --disable-nls argument... " >&6; }
14468# Check whether --enable-nls was given.
14469if test "${enable_nls+set}" = set; then :
14470  enableval=$enable_nls;
14471else
14472  enable_nls="yes"
14473fi
14474
14475
14476if test "$enable_nls" = "yes"; then
14477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14478$as_echo "no" >&6; }
14479
14480  INSTALL_LANGS=install-languages
14481
14482  INSTALL_TOOL_LANGS=install-tool-languages
14483
14484
14485  # Extract the first word of "msgfmt", so it can be a program name with args.
14486set dummy msgfmt; ac_word=$2
14487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14488$as_echo_n "checking for $ac_word... " >&6; }
14489if ${ac_cv_prog_MSGFMT+:} false; then :
14490  $as_echo_n "(cached) " >&6
14491else
14492  if test -n "$MSGFMT"; then
14493  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14494else
14495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14496for as_dir in $PATH
14497do
14498  IFS=$as_save_IFS
14499  test -z "$as_dir" && as_dir=.
14500    for ac_exec_ext in '' $ac_executable_extensions; do
14501  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14502    ac_cv_prog_MSGFMT="msgfmt"
14503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14504    break 2
14505  fi
14506done
14507  done
14508IFS=$as_save_IFS
14509
14510fi
14511fi
14512MSGFMT=$ac_cv_prog_MSGFMT
14513if test -n "$MSGFMT"; then
14514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14515$as_echo "$MSGFMT" >&6; }
14516else
14517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14518$as_echo "no" >&6; }
14519fi
14520
14521
14522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5
14523$as_echo_n "checking for NLS... " >&6; }
14524  if test -f po/Makefile; then
14525    have_gettext="no"
14526    if test -n "$MSGFMT"; then
14527      olibs=$LIBS
14528      LIBS=""
14529      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530/* end confdefs.h.  */
14531#include <libintl.h>
14532int
14533main ()
14534{
14535gettext("Test");
14536  ;
14537  return 0;
14538}
14539_ACEOF
14540if ac_fn_c_try_link "$LINENO"; then :
14541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
14542$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs
14543else
14544  LIBS="-lintl"
14545	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14546/* end confdefs.h.  */
14547#include <libintl.h>
14548int
14549main ()
14550{
14551gettext("Test");
14552  ;
14553  return 0;
14554}
14555_ACEOF
14556if ac_fn_c_try_link "$LINENO"; then :
14557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
14558$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes";
14559	      LIBS="$olibs -lintl"
14560else
14561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
14562$as_echo "gettext() doesn't work" >&6; };
14563	      LIBS=$olibs
14564fi
14565rm -f core conftest.err conftest.$ac_objext \
14566    conftest$ac_exeext conftest.$ac_ext
14567fi
14568rm -f core conftest.err conftest.$ac_objext \
14569    conftest$ac_exeext conftest.$ac_ext
14570    else
14571      { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5
14572$as_echo "msgfmt not found - disabled" >&6; };
14573    fi
14574    if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then
14575      $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14576
14577      MAKEMO=yes
14578
14579            for ac_func in bind_textdomain_codeset
14580do :
14581  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
14582if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
14583  cat >>confdefs.h <<_ACEOF
14584#define HAVE_BIND_TEXTDOMAIN_CODESET 1
14585_ACEOF
14586
14587fi
14588done
14589
14590            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5
14591$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
14592      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14593/* end confdefs.h.  */
14594#include <libintl.h>
14595		extern int _nl_msg_cat_cntr;
14596int
14597main ()
14598{
14599++_nl_msg_cat_cntr;
14600  ;
14601  return 0;
14602}
14603_ACEOF
14604if ac_fn_c_try_link "$LINENO"; then :
14605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14606$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h
14607
14608else
14609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14610$as_echo "no" >&6; }
14611fi
14612rm -f core conftest.err conftest.$ac_objext \
14613    conftest$ac_exeext conftest.$ac_ext
14614      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt supports --desktop" >&5
14615$as_echo_n "checking if msgfmt supports --desktop... " >&6; }
14616      MSGFMT_DESKTOP=
14617      if "$MSGFMT" --help | grep -e '--desktop' >/dev/null; then
14618	if "$MSGFMT" --version | grep '0.19.[3-7]$' >/dev/null; then
14619	  	  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
14620$as_echo "broken" >&6; }
14621	else
14622	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14623$as_echo "yes" >&6; }
14624	  MSGFMT_DESKTOP="gvim.desktop vim.desktop"
14625	fi
14626      else
14627	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14628$as_echo "no" >&6; }
14629      fi
14630
14631    fi
14632  else
14633    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5
14634$as_echo "no \"po/Makefile\" - disabled" >&6; };
14635  fi
14636else
14637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14638$as_echo "yes" >&6; }
14639fi
14640
14641ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14642if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14643  DLL=dlfcn.h
14644else
14645  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
14646if test "x$ac_cv_header_dl_h" = xyes; then :
14647  DLL=dl.h
14648fi
14649
14650
14651fi
14652
14653
14654if test x${DLL} = xdlfcn.h; then
14655
14656$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
14657
14658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5
14659$as_echo_n "checking for dlopen()... " >&6; }
14660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661/* end confdefs.h.  */
14662
14663int
14664main ()
14665{
14666
14667		extern void* dlopen();
14668		dlopen();
14669
14670  ;
14671  return 0;
14672}
14673_ACEOF
14674if ac_fn_c_try_link "$LINENO"; then :
14675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14676$as_echo "yes" >&6; };
14677
14678$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14679
14680else
14681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14682$as_echo "no" >&6; };
14683	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5
14684$as_echo_n "checking for dlopen() in -ldl... " >&6; }
14685	      olibs=$LIBS
14686	      LIBS="$LIBS -ldl"
14687	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14688/* end confdefs.h.  */
14689
14690int
14691main ()
14692{
14693
14694				extern void* dlopen();
14695				dlopen();
14696
14697  ;
14698  return 0;
14699}
14700_ACEOF
14701if ac_fn_c_try_link "$LINENO"; then :
14702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14703$as_echo "yes" >&6; };
14704
14705$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14706
14707else
14708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14709$as_echo "no" >&6; };
14710			  LIBS=$olibs
14711fi
14712rm -f core conftest.err conftest.$ac_objext \
14713    conftest$ac_exeext conftest.$ac_ext
14714fi
14715rm -f core conftest.err conftest.$ac_objext \
14716    conftest$ac_exeext conftest.$ac_ext
14717      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5
14718$as_echo_n "checking for dlsym()... " >&6; }
14719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720/* end confdefs.h.  */
14721
14722int
14723main ()
14724{
14725
14726		extern void* dlsym();
14727		dlsym();
14728
14729  ;
14730  return 0;
14731}
14732_ACEOF
14733if ac_fn_c_try_link "$LINENO"; then :
14734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14735$as_echo "yes" >&6; };
14736
14737$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
14738
14739else
14740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14741$as_echo "no" >&6; };
14742	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5
14743$as_echo_n "checking for dlsym() in -ldl... " >&6; }
14744	      olibs=$LIBS
14745	      LIBS="$LIBS -ldl"
14746	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747/* end confdefs.h.  */
14748
14749int
14750main ()
14751{
14752
14753				extern void* dlsym();
14754				dlsym();
14755
14756  ;
14757  return 0;
14758}
14759_ACEOF
14760if ac_fn_c_try_link "$LINENO"; then :
14761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14762$as_echo "yes" >&6; };
14763
14764$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
14765
14766else
14767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14768$as_echo "no" >&6; };
14769			  LIBS=$olibs
14770fi
14771rm -f core conftest.err conftest.$ac_objext \
14772    conftest$ac_exeext conftest.$ac_ext
14773fi
14774rm -f core conftest.err conftest.$ac_objext \
14775    conftest$ac_exeext conftest.$ac_ext
14776elif test x${DLL} = xdl.h; then
14777
14778$as_echo "#define HAVE_DL_H 1" >>confdefs.h
14779
14780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5
14781$as_echo_n "checking for shl_load()... " >&6; }
14782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14783/* end confdefs.h.  */
14784
14785int
14786main ()
14787{
14788
14789		extern void* shl_load();
14790		shl_load();
14791
14792  ;
14793  return 0;
14794}
14795_ACEOF
14796if ac_fn_c_try_link "$LINENO"; then :
14797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14798$as_echo "yes" >&6; };
14799
14800$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14801
14802else
14803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14804$as_echo "no" >&6; };
14805	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5
14806$as_echo_n "checking for shl_load() in -ldld... " >&6; }
14807	  olibs=$LIBS
14808	  LIBS="$LIBS -ldld"
14809	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810/* end confdefs.h.  */
14811
14812int
14813main ()
14814{
14815
14816			extern void* shl_load();
14817			shl_load();
14818
14819  ;
14820  return 0;
14821}
14822_ACEOF
14823if ac_fn_c_try_link "$LINENO"; then :
14824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14825$as_echo "yes" >&6; };
14826
14827$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14828
14829else
14830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14831$as_echo "no" >&6; };
14832		  LIBS=$olibs
14833fi
14834rm -f core conftest.err conftest.$ac_objext \
14835    conftest$ac_exeext conftest.$ac_ext
14836fi
14837rm -f core conftest.err conftest.$ac_objext \
14838    conftest$ac_exeext conftest.$ac_ext
14839fi
14840for ac_header in setjmp.h
14841do :
14842  ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
14843if test "x$ac_cv_header_setjmp_h" = xyes; then :
14844  cat >>confdefs.h <<_ACEOF
14845#define HAVE_SETJMP_H 1
14846_ACEOF
14847
14848fi
14849
14850done
14851
14852
14853if test "x$MACOS_X" = "xyes" -a -n "$PERL"; then
14854    if echo $LIBS | grep -e '-ldl' >/dev/null; then
14855    LIBS=`echo $LIBS | sed s/-ldl//`
14856    PERL_LIBS="$PERL_LIBS -ldl"
14857  fi
14858fi
14859
14860if test "$MACOS_X" = "yes"; then
14861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need macOS frameworks" >&5
14862$as_echo_n "checking whether we need macOS frameworks... " >&6; }
14863  if test "$GUITYPE" = "CARBONGUI"; then
14864    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need Carbon" >&5
14865$as_echo "yes, we need Carbon" >&6; }
14866    LIBS="$LIBS -framework Carbon"
14867  elif test "$MACOS_X_DARWIN" = "yes"; then
14868    if test "$features" = "tiny"; then
14869            OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'`
14870      OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'`
14871      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5
14872$as_echo "yes, we need CoreServices" >&6; }
14873      LIBS="$LIBS -framework CoreServices"
14874    else
14875      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5
14876$as_echo "yes, we need AppKit" >&6; }
14877      LIBS="$LIBS -framework AppKit"
14878    fi
14879  else
14880    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14881$as_echo "no" >&6; }
14882  fi
14883fi
14884if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then
14885  LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
14886fi
14887
14888DEPEND_CFLAGS_FILTER=
14889if test "$GCC" = yes; then
14890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5
14891$as_echo_n "checking for GCC 3 or later... " >&6; }
14892  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9][0-9]*\)\..*$/\1/g'`
14893  if test "$gccmajor" -gt "2"; then
14894    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
14895    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14896$as_echo "yes" >&6; }
14897  else
14898    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14899$as_echo "no" >&6; }
14900  fi
14901          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
14902$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
14903  if test "$gccmajor" -gt "3"; then
14904    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/'`
14905    CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/ *-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g'`
14906    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14907$as_echo "yes" >&6; }
14908  else
14909    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14910$as_echo "no" >&6; }
14911  fi
14912fi
14913
14914
14915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to force -D_FILE_OFFSET_BITS=64" >&5
14916$as_echo_n "checking whether we need to force -D_FILE_OFFSET_BITS=64... " >&6; }
14917if echo "$CFLAGS $LUA_CFLAGS $MZSCHEME_CFLAGS $PERL_CFLAGS $PYTHON_CFLAGS $PYTHON3_CFLAGS $TCL_CFLAGS $RUBY_CFLAGS $GTK_CFLAGS" | grep -q D_FILE_OFFSET_BITS 2>/dev/null; then
14918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14919$as_echo "yes" >&6; }
14920  $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14921
14922else
14923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14924$as_echo "no" >&6; }
14925fi
14926
14927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14928$as_echo_n "checking linker --as-needed support... " >&6; }
14929LINK_AS_NEEDED=
14930# Check if linker supports --as-needed and --no-as-needed options
14931if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
14932  LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
14933  LINK_AS_NEEDED=yes
14934fi
14935if test "$LINK_AS_NEEDED" = yes; then
14936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14937$as_echo "yes" >&6; }
14938else
14939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14940$as_echo "no" >&6; }
14941fi
14942
14943
14944# IBM z/OS reset CFLAGS for config.mk
14945if test "$zOSUnix" = "yes"; then
14946	CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
14947fi
14948
14949ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
14950
14951cat >confcache <<\_ACEOF
14952# This file is a shell script that caches the results of configure
14953# tests run on this system so they can be shared between configure
14954# scripts and configure runs, see configure's option --config-cache.
14955# It is not useful on other systems.  If it contains results you don't
14956# want to keep, you may remove or edit it.
14957#
14958# config.status only pays attention to the cache file if you give it
14959# the --recheck option to rerun configure.
14960#
14961# `ac_cv_env_foo' variables (set or unset) will be overridden when
14962# loading this file, other *unset* `ac_cv_foo' will be assigned the
14963# following values.
14964
14965_ACEOF
14966
14967# The following way of writing the cache mishandles newlines in values,
14968# but we know of no workaround that is simple, portable, and efficient.
14969# So, we kill variables containing newlines.
14970# Ultrix sh set writes to stderr and can't be redirected directly,
14971# and sets the high bit in the cache file unless we assign to the vars.
14972(
14973  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14974    eval ac_val=\$$ac_var
14975    case $ac_val in #(
14976    *${as_nl}*)
14977      case $ac_var in #(
14978      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14979$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14980      esac
14981      case $ac_var in #(
14982      _ | IFS | as_nl) ;; #(
14983      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14984      *) { eval $ac_var=; unset $ac_var;} ;;
14985      esac ;;
14986    esac
14987  done
14988
14989  (set) 2>&1 |
14990    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14991    *${as_nl}ac_space=\ *)
14992      # `set' does not quote correctly, so add quotes: double-quote
14993      # substitution turns \\\\ into \\, and sed turns \\ into \.
14994      sed -n \
14995	"s/'/'\\\\''/g;
14996	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14997      ;; #(
14998    *)
14999      # `set' quotes correctly as required by POSIX, so do not add quotes.
15000      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15001      ;;
15002    esac |
15003    sort
15004) |
15005  sed '
15006     /^ac_cv_env_/b end
15007     t clear
15008     :clear
15009     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15010     t end
15011     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15012     :end' >>confcache
15013if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15014  if test -w "$cache_file"; then
15015    if test "x$cache_file" != "x/dev/null"; then
15016      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15017$as_echo "$as_me: updating cache $cache_file" >&6;}
15018      if test ! -f "$cache_file" || test -h "$cache_file"; then
15019	cat confcache >"$cache_file"
15020      else
15021        case $cache_file in #(
15022        */* | ?:*)
15023	  mv -f confcache "$cache_file"$$ &&
15024	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15025        *)
15026	  mv -f confcache "$cache_file" ;;
15027	esac
15028      fi
15029    fi
15030  else
15031    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15032$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15033  fi
15034fi
15035rm -f confcache
15036
15037test "x$prefix" = xNONE && prefix=$ac_default_prefix
15038# Let make expand exec_prefix.
15039test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15040
15041DEFS=-DHAVE_CONFIG_H
15042
15043ac_libobjs=
15044ac_ltlibobjs=
15045U=
15046for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15047  # 1. Remove the extension, and $U if already installed.
15048  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15049  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15050  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15051  #    will be set to the directory where LIBOBJS objects are built.
15052  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15053  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15054done
15055LIBOBJS=$ac_libobjs
15056
15057LTLIBOBJS=$ac_ltlibobjs
15058
15059
15060
15061
15062: "${CONFIG_STATUS=./config.status}"
15063ac_write_fail=0
15064ac_clean_files_save=$ac_clean_files
15065ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15066{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15067$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15068as_write_fail=0
15069cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15070#! $SHELL
15071# Generated by $as_me.
15072# Run this file to recreate the current configuration.
15073# Compiler output produced by configure, useful for debugging
15074# configure, is in config.log if it exists.
15075
15076debug=false
15077ac_cs_recheck=false
15078ac_cs_silent=false
15079
15080SHELL=\${CONFIG_SHELL-$SHELL}
15081export SHELL
15082_ASEOF
15083cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15084## -------------------- ##
15085## M4sh Initialization. ##
15086## -------------------- ##
15087
15088# Be more Bourne compatible
15089DUALCASE=1; export DUALCASE # for MKS sh
15090if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15091  emulate sh
15092  NULLCMD=:
15093  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15094  # is contrary to our usage.  Disable this feature.
15095  alias -g '${1+"$@"}'='"$@"'
15096  setopt NO_GLOB_SUBST
15097else
15098  case `(set -o) 2>/dev/null` in #(
15099  *posix*) :
15100    set -o posix ;; #(
15101  *) :
15102     ;;
15103esac
15104fi
15105
15106
15107as_nl='
15108'
15109export as_nl
15110# Printing a long string crashes Solaris 7 /usr/bin/printf.
15111as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15112as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15113as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15114# Prefer a ksh shell builtin over an external printf program on Solaris,
15115# but without wasting forks for bash or zsh.
15116if test -z "$BASH_VERSION$ZSH_VERSION" \
15117    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15118  as_echo='print -r --'
15119  as_echo_n='print -rn --'
15120elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15121  as_echo='printf %s\n'
15122  as_echo_n='printf %s'
15123else
15124  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15125    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15126    as_echo_n='/usr/ucb/echo -n'
15127  else
15128    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15129    as_echo_n_body='eval
15130      arg=$1;
15131      case $arg in #(
15132      *"$as_nl"*)
15133	expr "X$arg" : "X\\(.*\\)$as_nl";
15134	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15135      esac;
15136      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15137    '
15138    export as_echo_n_body
15139    as_echo_n='sh -c $as_echo_n_body as_echo'
15140  fi
15141  export as_echo_body
15142  as_echo='sh -c $as_echo_body as_echo'
15143fi
15144
15145# The user is always right.
15146if test "${PATH_SEPARATOR+set}" != set; then
15147  PATH_SEPARATOR=:
15148  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15149    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15150      PATH_SEPARATOR=';'
15151  }
15152fi
15153
15154
15155# IFS
15156# We need space, tab and new line, in precisely that order.  Quoting is
15157# there to prevent editors from complaining about space-tab.
15158# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15159# splitting by setting IFS to empty value.)
15160IFS=" ""	$as_nl"
15161
15162# Find who we are.  Look in the path if we contain no directory separator.
15163as_myself=
15164case $0 in #((
15165  *[\\/]* ) as_myself=$0 ;;
15166  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15167for as_dir in $PATH
15168do
15169  IFS=$as_save_IFS
15170  test -z "$as_dir" && as_dir=.
15171    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15172  done
15173IFS=$as_save_IFS
15174
15175     ;;
15176esac
15177# We did not find ourselves, most probably we were run as `sh COMMAND'
15178# in which case we are not to be found in the path.
15179if test "x$as_myself" = x; then
15180  as_myself=$0
15181fi
15182if test ! -f "$as_myself"; then
15183  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15184  exit 1
15185fi
15186
15187# Unset variables that we do not need and which cause bugs (e.g. in
15188# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15189# suppresses any "Segmentation fault" message there.  '((' could
15190# trigger a bug in pdksh 5.2.14.
15191for as_var in BASH_ENV ENV MAIL MAILPATH
15192do eval test x\${$as_var+set} = xset \
15193  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15194done
15195PS1='$ '
15196PS2='> '
15197PS4='+ '
15198
15199# NLS nuisances.
15200LC_ALL=C
15201export LC_ALL
15202LANGUAGE=C
15203export LANGUAGE
15204
15205# CDPATH.
15206(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15207
15208
15209# as_fn_error STATUS ERROR [LINENO LOG_FD]
15210# ----------------------------------------
15211# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15212# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15213# script with STATUS, using 1 if that was 0.
15214as_fn_error ()
15215{
15216  as_status=$1; test $as_status -eq 0 && as_status=1
15217  if test "$4"; then
15218    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15219    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15220  fi
15221  $as_echo "$as_me: error: $2" >&2
15222  as_fn_exit $as_status
15223} # as_fn_error
15224
15225
15226# as_fn_set_status STATUS
15227# -----------------------
15228# Set $? to STATUS, without forking.
15229as_fn_set_status ()
15230{
15231  return $1
15232} # as_fn_set_status
15233
15234# as_fn_exit STATUS
15235# -----------------
15236# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15237as_fn_exit ()
15238{
15239  set +e
15240  as_fn_set_status $1
15241  exit $1
15242} # as_fn_exit
15243
15244# as_fn_unset VAR
15245# ---------------
15246# Portably unset VAR.
15247as_fn_unset ()
15248{
15249  { eval $1=; unset $1;}
15250}
15251as_unset=as_fn_unset
15252# as_fn_append VAR VALUE
15253# ----------------------
15254# Append the text in VALUE to the end of the definition contained in VAR. Take
15255# advantage of any shell optimizations that allow amortized linear growth over
15256# repeated appends, instead of the typical quadratic growth present in naive
15257# implementations.
15258if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15259  eval 'as_fn_append ()
15260  {
15261    eval $1+=\$2
15262  }'
15263else
15264  as_fn_append ()
15265  {
15266    eval $1=\$$1\$2
15267  }
15268fi # as_fn_append
15269
15270# as_fn_arith ARG...
15271# ------------------
15272# Perform arithmetic evaluation on the ARGs, and store the result in the
15273# global $as_val. Take advantage of shells that can avoid forks. The arguments
15274# must be portable across $(()) and expr.
15275if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15276  eval 'as_fn_arith ()
15277  {
15278    as_val=$(( $* ))
15279  }'
15280else
15281  as_fn_arith ()
15282  {
15283    as_val=`expr "$@" || test $? -eq 1`
15284  }
15285fi # as_fn_arith
15286
15287
15288if expr a : '\(a\)' >/dev/null 2>&1 &&
15289   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15290  as_expr=expr
15291else
15292  as_expr=false
15293fi
15294
15295if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15296  as_basename=basename
15297else
15298  as_basename=false
15299fi
15300
15301if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15302  as_dirname=dirname
15303else
15304  as_dirname=false
15305fi
15306
15307as_me=`$as_basename -- "$0" ||
15308$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15309	 X"$0" : 'X\(//\)$' \| \
15310	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15311$as_echo X/"$0" |
15312    sed '/^.*\/\([^/][^/]*\)\/*$/{
15313	    s//\1/
15314	    q
15315	  }
15316	  /^X\/\(\/\/\)$/{
15317	    s//\1/
15318	    q
15319	  }
15320	  /^X\/\(\/\).*/{
15321	    s//\1/
15322	    q
15323	  }
15324	  s/.*/./; q'`
15325
15326# Avoid depending upon Character Ranges.
15327as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15328as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15329as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15330as_cr_digits='0123456789'
15331as_cr_alnum=$as_cr_Letters$as_cr_digits
15332
15333ECHO_C= ECHO_N= ECHO_T=
15334case `echo -n x` in #(((((
15335-n*)
15336  case `echo 'xy\c'` in
15337  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15338  xy)  ECHO_C='\c';;
15339  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15340       ECHO_T='	';;
15341  esac;;
15342*)
15343  ECHO_N='-n';;
15344esac
15345
15346rm -f conf$$ conf$$.exe conf$$.file
15347if test -d conf$$.dir; then
15348  rm -f conf$$.dir/conf$$.file
15349else
15350  rm -f conf$$.dir
15351  mkdir conf$$.dir 2>/dev/null
15352fi
15353if (echo >conf$$.file) 2>/dev/null; then
15354  if ln -s conf$$.file conf$$ 2>/dev/null; then
15355    as_ln_s='ln -s'
15356    # ... but there are two gotchas:
15357    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15358    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15359    # In both cases, we have to default to `cp -pR'.
15360    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15361      as_ln_s='cp -pR'
15362  elif ln conf$$.file conf$$ 2>/dev/null; then
15363    as_ln_s=ln
15364  else
15365    as_ln_s='cp -pR'
15366  fi
15367else
15368  as_ln_s='cp -pR'
15369fi
15370rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15371rmdir conf$$.dir 2>/dev/null
15372
15373
15374# as_fn_mkdir_p
15375# -------------
15376# Create "$as_dir" as a directory, including parents if necessary.
15377as_fn_mkdir_p ()
15378{
15379
15380  case $as_dir in #(
15381  -*) as_dir=./$as_dir;;
15382  esac
15383  test -d "$as_dir" || eval $as_mkdir_p || {
15384    as_dirs=
15385    while :; do
15386      case $as_dir in #(
15387      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15388      *) as_qdir=$as_dir;;
15389      esac
15390      as_dirs="'$as_qdir' $as_dirs"
15391      as_dir=`$as_dirname -- "$as_dir" ||
15392$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15393	 X"$as_dir" : 'X\(//\)[^/]' \| \
15394	 X"$as_dir" : 'X\(//\)$' \| \
15395	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15396$as_echo X"$as_dir" |
15397    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15398	    s//\1/
15399	    q
15400	  }
15401	  /^X\(\/\/\)[^/].*/{
15402	    s//\1/
15403	    q
15404	  }
15405	  /^X\(\/\/\)$/{
15406	    s//\1/
15407	    q
15408	  }
15409	  /^X\(\/\).*/{
15410	    s//\1/
15411	    q
15412	  }
15413	  s/.*/./; q'`
15414      test -d "$as_dir" && break
15415    done
15416    test -z "$as_dirs" || eval "mkdir $as_dirs"
15417  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15418
15419
15420} # as_fn_mkdir_p
15421if mkdir -p . 2>/dev/null; then
15422  as_mkdir_p='mkdir -p "$as_dir"'
15423else
15424  test -d ./-p && rmdir ./-p
15425  as_mkdir_p=false
15426fi
15427
15428
15429# as_fn_executable_p FILE
15430# -----------------------
15431# Test if FILE is an executable regular file.
15432as_fn_executable_p ()
15433{
15434  test -f "$1" && test -x "$1"
15435} # as_fn_executable_p
15436as_test_x='test -x'
15437as_executable_p=as_fn_executable_p
15438
15439# Sed expression to map a string onto a valid CPP name.
15440as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15441
15442# Sed expression to map a string onto a valid variable name.
15443as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15444
15445
15446exec 6>&1
15447## ----------------------------------- ##
15448## Main body of $CONFIG_STATUS script. ##
15449## ----------------------------------- ##
15450_ASEOF
15451test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15452
15453cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15454# Save the log message, to keep $0 and so on meaningful, and to
15455# report actual input values of CONFIG_FILES etc. instead of their
15456# values after options handling.
15457ac_log="
15458This file was extended by $as_me, which was
15459generated by GNU Autoconf 2.69.  Invocation command line was
15460
15461  CONFIG_FILES    = $CONFIG_FILES
15462  CONFIG_HEADERS  = $CONFIG_HEADERS
15463  CONFIG_LINKS    = $CONFIG_LINKS
15464  CONFIG_COMMANDS = $CONFIG_COMMANDS
15465  $ $0 $@
15466
15467on `(hostname || uname -n) 2>/dev/null | sed 1q`
15468"
15469
15470_ACEOF
15471
15472case $ac_config_files in *"
15473"*) set x $ac_config_files; shift; ac_config_files=$*;;
15474esac
15475
15476case $ac_config_headers in *"
15477"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15478esac
15479
15480
15481cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15482# Files that config.status was made for.
15483config_files="$ac_config_files"
15484config_headers="$ac_config_headers"
15485
15486_ACEOF
15487
15488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15489ac_cs_usage="\
15490\`$as_me' instantiates files and other configuration actions
15491from templates according to the current configuration.  Unless the files
15492and actions are specified as TAGs, all are instantiated by default.
15493
15494Usage: $0 [OPTION]... [TAG]...
15495
15496  -h, --help       print this help, then exit
15497  -V, --version    print version number and configuration settings, then exit
15498      --config     print configuration, then exit
15499  -q, --quiet, --silent
15500                   do not print progress messages
15501  -d, --debug      don't remove temporary files
15502      --recheck    update $as_me by reconfiguring in the same conditions
15503      --file=FILE[:TEMPLATE]
15504                   instantiate the configuration file FILE
15505      --header=FILE[:TEMPLATE]
15506                   instantiate the configuration header FILE
15507
15508Configuration files:
15509$config_files
15510
15511Configuration headers:
15512$config_headers
15513
15514Report bugs to the package provider."
15515
15516_ACEOF
15517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15518ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15519ac_cs_version="\\
15520config.status
15521configured by $0, generated by GNU Autoconf 2.69,
15522  with options \\"\$ac_cs_config\\"
15523
15524Copyright (C) 2012 Free Software Foundation, Inc.
15525This config.status script is free software; the Free Software Foundation
15526gives unlimited permission to copy, distribute and modify it."
15527
15528ac_pwd='$ac_pwd'
15529srcdir='$srcdir'
15530AWK='$AWK'
15531test -n "\$AWK" || AWK=awk
15532_ACEOF
15533
15534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15535# The default lists apply if the user does not specify any file.
15536ac_need_defaults=:
15537while test $# != 0
15538do
15539  case $1 in
15540  --*=?*)
15541    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15542    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15543    ac_shift=:
15544    ;;
15545  --*=)
15546    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15547    ac_optarg=
15548    ac_shift=:
15549    ;;
15550  *)
15551    ac_option=$1
15552    ac_optarg=$2
15553    ac_shift=shift
15554    ;;
15555  esac
15556
15557  case $ac_option in
15558  # Handling of the options.
15559  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15560    ac_cs_recheck=: ;;
15561  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15562    $as_echo "$ac_cs_version"; exit ;;
15563  --config | --confi | --conf | --con | --co | --c )
15564    $as_echo "$ac_cs_config"; exit ;;
15565  --debug | --debu | --deb | --de | --d | -d )
15566    debug=: ;;
15567  --file | --fil | --fi | --f )
15568    $ac_shift
15569    case $ac_optarg in
15570    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15571    '') as_fn_error $? "missing file argument" ;;
15572    esac
15573    as_fn_append CONFIG_FILES " '$ac_optarg'"
15574    ac_need_defaults=false;;
15575  --header | --heade | --head | --hea )
15576    $ac_shift
15577    case $ac_optarg in
15578    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15579    esac
15580    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15581    ac_need_defaults=false;;
15582  --he | --h)
15583    # Conflict between --help and --header
15584    as_fn_error $? "ambiguous option: \`$1'
15585Try \`$0 --help' for more information.";;
15586  --help | --hel | -h )
15587    $as_echo "$ac_cs_usage"; exit ;;
15588  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15589  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15590    ac_cs_silent=: ;;
15591
15592  # This is an error.
15593  -*) as_fn_error $? "unrecognized option: \`$1'
15594Try \`$0 --help' for more information." ;;
15595
15596  *) as_fn_append ac_config_targets " $1"
15597     ac_need_defaults=false ;;
15598
15599  esac
15600  shift
15601done
15602
15603ac_configure_extra_args=
15604
15605if $ac_cs_silent; then
15606  exec 6>/dev/null
15607  ac_configure_extra_args="$ac_configure_extra_args --silent"
15608fi
15609
15610_ACEOF
15611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15612if \$ac_cs_recheck; then
15613  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15614  shift
15615  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15616  CONFIG_SHELL='$SHELL'
15617  export CONFIG_SHELL
15618  exec "\$@"
15619fi
15620
15621_ACEOF
15622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15623exec 5>>auto/config.log
15624{
15625  echo
15626  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15627## Running $as_me. ##
15628_ASBOX
15629  $as_echo "$ac_log"
15630} >&5
15631
15632_ACEOF
15633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15634_ACEOF
15635
15636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15637
15638# Handling of arguments.
15639for ac_config_target in $ac_config_targets
15640do
15641  case $ac_config_target in
15642    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15643    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15644
15645  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15646  esac
15647done
15648
15649
15650# If the user did not use the arguments to specify the items to instantiate,
15651# then the envvar interface is used.  Set only those that are not.
15652# We use the long form for the default assignment because of an extremely
15653# bizarre bug on SunOS 4.1.3.
15654if $ac_need_defaults; then
15655  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15656  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15657fi
15658
15659# Have a temporary directory for convenience.  Make it in the build tree
15660# simply because there is no reason against having it here, and in addition,
15661# creating and moving files from /tmp can sometimes cause problems.
15662# Hook for its removal unless debugging.
15663# Note that there is a small window in which the directory will not be cleaned:
15664# after its creation but before its name has been assigned to `$tmp'.
15665$debug ||
15666{
15667  tmp= ac_tmp=
15668  trap 'exit_status=$?
15669  : "${ac_tmp:=$tmp}"
15670  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15671' 0
15672  trap 'as_fn_exit 1' 1 2 13 15
15673}
15674# Create a (secure) tmp directory for tmp files.
15675
15676{
15677  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15678  test -d "$tmp"
15679}  ||
15680{
15681  tmp=./conf$$-$RANDOM
15682  (umask 077 && mkdir "$tmp")
15683} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15684ac_tmp=$tmp
15685
15686# Set up the scripts for CONFIG_FILES section.
15687# No need to generate them if there are no CONFIG_FILES.
15688# This happens for instance with `./config.status config.h'.
15689if test -n "$CONFIG_FILES"; then
15690
15691
15692ac_cr=`echo X | tr X '\015'`
15693# On cygwin, bash can eat \r inside `` if the user requested igncr.
15694# But we know of no other shell where ac_cr would be empty at this
15695# point, so we can use a bashism as a fallback.
15696if test "x$ac_cr" = x; then
15697  eval ac_cr=\$\'\\r\'
15698fi
15699ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15700if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15701  ac_cs_awk_cr='\\r'
15702else
15703  ac_cs_awk_cr=$ac_cr
15704fi
15705
15706echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15707_ACEOF
15708
15709
15710{
15711  echo "cat >conf$$subs.awk <<_ACEOF" &&
15712  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15713  echo "_ACEOF"
15714} >conf$$subs.sh ||
15715  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15716ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15717ac_delim='%!_!# '
15718for ac_last_try in false false false false false :; do
15719  . ./conf$$subs.sh ||
15720    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15721
15722  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15723  if test $ac_delim_n = $ac_delim_num; then
15724    break
15725  elif $ac_last_try; then
15726    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15727  else
15728    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15729  fi
15730done
15731rm -f conf$$subs.sh
15732
15733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15734cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15735_ACEOF
15736sed -n '
15737h
15738s/^/S["/; s/!.*/"]=/
15739p
15740g
15741s/^[^!]*!//
15742:repl
15743t repl
15744s/'"$ac_delim"'$//
15745t delim
15746:nl
15747h
15748s/\(.\{148\}\)..*/\1/
15749t more1
15750s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15751p
15752n
15753b repl
15754:more1
15755s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15756p
15757g
15758s/.\{148\}//
15759t nl
15760:delim
15761h
15762s/\(.\{148\}\)..*/\1/
15763t more2
15764s/["\\]/\\&/g; s/^/"/; s/$/"/
15765p
15766b
15767:more2
15768s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15769p
15770g
15771s/.\{148\}//
15772t delim
15773' <conf$$subs.awk | sed '
15774/^[^""]/{
15775  N
15776  s/\n//
15777}
15778' >>$CONFIG_STATUS || ac_write_fail=1
15779rm -f conf$$subs.awk
15780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15781_ACAWK
15782cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15783  for (key in S) S_is_set[key] = 1
15784  FS = ""
15785
15786}
15787{
15788  line = $ 0
15789  nfields = split(line, field, "@")
15790  substed = 0
15791  len = length(field[1])
15792  for (i = 2; i < nfields; i++) {
15793    key = field[i]
15794    keylen = length(key)
15795    if (S_is_set[key]) {
15796      value = S[key]
15797      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15798      len += length(value) + length(field[++i])
15799      substed = 1
15800    } else
15801      len += 1 + keylen
15802  }
15803
15804  print line
15805}
15806
15807_ACAWK
15808_ACEOF
15809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15810if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15811  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15812else
15813  cat
15814fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15815  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15816_ACEOF
15817
15818# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15819# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15820# trailing colons and then remove the whole line if VPATH becomes empty
15821# (actually we leave an empty line to preserve line numbers).
15822if test "x$srcdir" = x.; then
15823  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15824h
15825s///
15826s/^/:/
15827s/[	 ]*$/:/
15828s/:\$(srcdir):/:/g
15829s/:\${srcdir}:/:/g
15830s/:@srcdir@:/:/g
15831s/^:*//
15832s/:*$//
15833x
15834s/\(=[	 ]*\).*/\1/
15835G
15836s/\n//
15837s/^[^=]*=[	 ]*$//
15838}'
15839fi
15840
15841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15842fi # test -n "$CONFIG_FILES"
15843
15844# Set up the scripts for CONFIG_HEADERS section.
15845# No need to generate them if there are no CONFIG_HEADERS.
15846# This happens for instance with `./config.status Makefile'.
15847if test -n "$CONFIG_HEADERS"; then
15848cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15849BEGIN {
15850_ACEOF
15851
15852# Transform confdefs.h into an awk script `defines.awk', embedded as
15853# here-document in config.status, that substitutes the proper values into
15854# config.h.in to produce config.h.
15855
15856# Create a delimiter string that does not exist in confdefs.h, to ease
15857# handling of long lines.
15858ac_delim='%!_!# '
15859for ac_last_try in false false :; do
15860  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15861  if test -z "$ac_tt"; then
15862    break
15863  elif $ac_last_try; then
15864    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15865  else
15866    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15867  fi
15868done
15869
15870# For the awk script, D is an array of macro values keyed by name,
15871# likewise P contains macro parameters if any.  Preserve backslash
15872# newline sequences.
15873
15874ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15875sed -n '
15876s/.\{148\}/&'"$ac_delim"'/g
15877t rset
15878:rset
15879s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15880t def
15881d
15882:def
15883s/\\$//
15884t bsnl
15885s/["\\]/\\&/g
15886s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15887D["\1"]=" \3"/p
15888s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15889d
15890:bsnl
15891s/["\\]/\\&/g
15892s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15893D["\1"]=" \3\\\\\\n"\\/p
15894t cont
15895s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15896t cont
15897d
15898:cont
15899n
15900s/.\{148\}/&'"$ac_delim"'/g
15901t clear
15902:clear
15903s/\\$//
15904t bsnlc
15905s/["\\]/\\&/g; s/^/"/; s/$/"/p
15906d
15907:bsnlc
15908s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15909b cont
15910' <confdefs.h | sed '
15911s/'"$ac_delim"'/"\\\
15912"/g' >>$CONFIG_STATUS || ac_write_fail=1
15913
15914cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15915  for (key in D) D_is_set[key] = 1
15916  FS = ""
15917}
15918/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15919  line = \$ 0
15920  split(line, arg, " ")
15921  if (arg[1] == "#") {
15922    defundef = arg[2]
15923    mac1 = arg[3]
15924  } else {
15925    defundef = substr(arg[1], 2)
15926    mac1 = arg[2]
15927  }
15928  split(mac1, mac2, "(") #)
15929  macro = mac2[1]
15930  prefix = substr(line, 1, index(line, defundef) - 1)
15931  if (D_is_set[macro]) {
15932    # Preserve the white space surrounding the "#".
15933    print prefix "define", macro P[macro] D[macro]
15934    next
15935  } else {
15936    # Replace #undef with comments.  This is necessary, for example,
15937    # in the case of _POSIX_SOURCE, which is predefined and required
15938    # on some systems where configure will not decide to define it.
15939    if (defundef == "undef") {
15940      print "/*", prefix defundef, macro, "*/"
15941      next
15942    }
15943  }
15944}
15945{ print }
15946_ACAWK
15947_ACEOF
15948cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15949  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15950fi # test -n "$CONFIG_HEADERS"
15951
15952
15953eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
15954shift
15955for ac_tag
15956do
15957  case $ac_tag in
15958  :[FHLC]) ac_mode=$ac_tag; continue;;
15959  esac
15960  case $ac_mode$ac_tag in
15961  :[FHL]*:*);;
15962  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15963  :[FH]-) ac_tag=-:-;;
15964  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15965  esac
15966  ac_save_IFS=$IFS
15967  IFS=:
15968  set x $ac_tag
15969  IFS=$ac_save_IFS
15970  shift
15971  ac_file=$1
15972  shift
15973
15974  case $ac_mode in
15975  :L) ac_source=$1;;
15976  :[FH])
15977    ac_file_inputs=
15978    for ac_f
15979    do
15980      case $ac_f in
15981      -) ac_f="$ac_tmp/stdin";;
15982      *) # Look for the file first in the build tree, then in the source tree
15983	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15984	 # because $ac_f cannot contain `:'.
15985	 test -f "$ac_f" ||
15986	   case $ac_f in
15987	   [\\/$]*) false;;
15988	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15989	   esac ||
15990	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15991      esac
15992      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15993      as_fn_append ac_file_inputs " '$ac_f'"
15994    done
15995
15996    # Let's still pretend it is `configure' which instantiates (i.e., don't
15997    # use $as_me), people would be surprised to read:
15998    #    /* config.h.  Generated by config.status.  */
15999    configure_input='Generated from '`
16000	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16001	`' by configure.'
16002    if test x"$ac_file" != x-; then
16003      configure_input="$ac_file.  $configure_input"
16004      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16005$as_echo "$as_me: creating $ac_file" >&6;}
16006    fi
16007    # Neutralize special characters interpreted by sed in replacement strings.
16008    case $configure_input in #(
16009    *\&* | *\|* | *\\* )
16010       ac_sed_conf_input=`$as_echo "$configure_input" |
16011       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16012    *) ac_sed_conf_input=$configure_input;;
16013    esac
16014
16015    case $ac_tag in
16016    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16017      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16018    esac
16019    ;;
16020  esac
16021
16022  ac_dir=`$as_dirname -- "$ac_file" ||
16023$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16024	 X"$ac_file" : 'X\(//\)[^/]' \| \
16025	 X"$ac_file" : 'X\(//\)$' \| \
16026	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16027$as_echo X"$ac_file" |
16028    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16029	    s//\1/
16030	    q
16031	  }
16032	  /^X\(\/\/\)[^/].*/{
16033	    s//\1/
16034	    q
16035	  }
16036	  /^X\(\/\/\)$/{
16037	    s//\1/
16038	    q
16039	  }
16040	  /^X\(\/\).*/{
16041	    s//\1/
16042	    q
16043	  }
16044	  s/.*/./; q'`
16045  as_dir="$ac_dir"; as_fn_mkdir_p
16046  ac_builddir=.
16047
16048case "$ac_dir" in
16049.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16050*)
16051  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16052  # A ".." for each directory in $ac_dir_suffix.
16053  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16054  case $ac_top_builddir_sub in
16055  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16056  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16057  esac ;;
16058esac
16059ac_abs_top_builddir=$ac_pwd
16060ac_abs_builddir=$ac_pwd$ac_dir_suffix
16061# for backward compatibility:
16062ac_top_builddir=$ac_top_build_prefix
16063
16064case $srcdir in
16065  .)  # We are building in place.
16066    ac_srcdir=.
16067    ac_top_srcdir=$ac_top_builddir_sub
16068    ac_abs_top_srcdir=$ac_pwd ;;
16069  [\\/]* | ?:[\\/]* )  # Absolute name.
16070    ac_srcdir=$srcdir$ac_dir_suffix;
16071    ac_top_srcdir=$srcdir
16072    ac_abs_top_srcdir=$srcdir ;;
16073  *) # Relative name.
16074    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16075    ac_top_srcdir=$ac_top_build_prefix$srcdir
16076    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16077esac
16078ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16079
16080
16081  case $ac_mode in
16082  :F)
16083  #
16084  # CONFIG_FILE
16085  #
16086
16087_ACEOF
16088
16089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16090# If the template does not know about datarootdir, expand it.
16091# FIXME: This hack should be removed a few years after 2.60.
16092ac_datarootdir_hack=; ac_datarootdir_seen=
16093ac_sed_dataroot='
16094/datarootdir/ {
16095  p
16096  q
16097}
16098/@datadir@/p
16099/@docdir@/p
16100/@infodir@/p
16101/@localedir@/p
16102/@mandir@/p'
16103case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16104*datarootdir*) ac_datarootdir_seen=yes;;
16105*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16106  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16107$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16108_ACEOF
16109cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16110  ac_datarootdir_hack='
16111  s&@datadir@&$datadir&g
16112  s&@docdir@&$docdir&g
16113  s&@infodir@&$infodir&g
16114  s&@localedir@&$localedir&g
16115  s&@mandir@&$mandir&g
16116  s&\\\${datarootdir}&$datarootdir&g' ;;
16117esac
16118_ACEOF
16119
16120# Neutralize VPATH when `$srcdir' = `.'.
16121# Shell code in configure.ac might set extrasub.
16122# FIXME: do we really want to maintain this feature?
16123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16124ac_sed_extra="$ac_vpsub
16125$extrasub
16126_ACEOF
16127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16128:t
16129/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16130s|@configure_input@|$ac_sed_conf_input|;t t
16131s&@top_builddir@&$ac_top_builddir_sub&;t t
16132s&@top_build_prefix@&$ac_top_build_prefix&;t t
16133s&@srcdir@&$ac_srcdir&;t t
16134s&@abs_srcdir@&$ac_abs_srcdir&;t t
16135s&@top_srcdir@&$ac_top_srcdir&;t t
16136s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16137s&@builddir@&$ac_builddir&;t t
16138s&@abs_builddir@&$ac_abs_builddir&;t t
16139s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16140$ac_datarootdir_hack
16141"
16142eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16143  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16144
16145test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16146  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16147  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16148      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16149  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16150which seems to be undefined.  Please make sure it is defined" >&5
16151$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16152which seems to be undefined.  Please make sure it is defined" >&2;}
16153
16154  rm -f "$ac_tmp/stdin"
16155  case $ac_file in
16156  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16157  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16158  esac \
16159  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16160 ;;
16161  :H)
16162  #
16163  # CONFIG_HEADER
16164  #
16165  if test x"$ac_file" != x-; then
16166    {
16167      $as_echo "/* $configure_input  */" \
16168      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16169    } >"$ac_tmp/config.h" \
16170      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16171    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16172      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16173$as_echo "$as_me: $ac_file is unchanged" >&6;}
16174    else
16175      rm -f "$ac_file"
16176      mv "$ac_tmp/config.h" "$ac_file" \
16177	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16178    fi
16179  else
16180    $as_echo "/* $configure_input  */" \
16181      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16182      || as_fn_error $? "could not create -" "$LINENO" 5
16183  fi
16184 ;;
16185
16186
16187  esac
16188
16189done # for ac_tag
16190
16191
16192as_fn_exit 0
16193_ACEOF
16194ac_clean_files=$ac_clean_files_save
16195
16196test $ac_write_fail = 0 ||
16197  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16198
16199
16200# configure is writing to config.log, and then calls config.status.
16201# config.status does its own redirection, appending to config.log.
16202# Unfortunately, on DOS this fails, as config.log is still kept open
16203# by configure, so config.status won't be able to write to it; its
16204# output is simply discarded.  So we exec the FD to /dev/null,
16205# effectively closing config.log, so it can be properly (re)opened and
16206# appended to by config.status.  When coming back to configure, we
16207# need to make the FD available again.
16208if test "$no_create" != yes; then
16209  ac_cs_success=:
16210  ac_config_status_args=
16211  test "$silent" = yes &&
16212    ac_config_status_args="$ac_config_status_args --quiet"
16213  exec 5>/dev/null
16214  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16215  exec 5>>auto/config.log
16216  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16217  # would make configure fail if this is the last instruction.
16218  $ac_cs_success || as_fn_exit 1
16219fi
16220if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16221  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16222$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16223fi
16224
16225
16226