xref: /vim-8.2.3635/src/auto/configure (revision ea2d8d25)
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="/System/Library/Frameworks/Tcl.framework/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="/System/Library/Frameworks/Tcl.framework"
7444	fi
7445	for try in $tclcnf; do
7446	  if test -f "$try/tclConfig.sh"; then
7447	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5
7448$as_echo "$try/tclConfig.sh" >&6; }
7449	    . "$try/tclConfig.sh"
7450	    	    if test "$enable_tclinterp" = "dynamic"; then
7451	      TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"`
7452	    else
7453	      TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
7454	    fi
7455	    	    	    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'`
7456	    break
7457	  fi
7458	done
7459	if test -z "$TCL_LIBS"; then
7460	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7461$as_echo "<not found>" >&6; }
7462	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5
7463$as_echo_n "checking for Tcl library by myself... " >&6; }
7464	  tcllib=`echo $tclinc | sed s/include/lib/g`
7465	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
7466	  for ext in .so .a ; do
7467	    for ver in "" $tclver ; do
7468	      for try in $tcllib ; do
7469		trylib=tcl$ver$ext
7470		if test -f "$try/lib$trylib" ; then
7471		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5
7472$as_echo "$try/lib$trylib" >&6; }
7473		  TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm"
7474		  if test "`(uname) 2>/dev/null`" = SunOS &&
7475					 uname -r | grep '^5' >/dev/null; then
7476		    TCL_LIBS="$TCL_LIBS -R $try"
7477		  fi
7478		  break 3
7479		fi
7480	      done
7481	    done
7482	  done
7483	  if test -z "$TCL_LIBS"; then
7484	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7485$as_echo "<not found>" >&6; }
7486	    SKIP_TCL=YES
7487	  fi
7488	fi
7489	if test -z "$SKIP_TCL"; then
7490	  $as_echo "#define FEAT_TCL 1" >>confdefs.h
7491
7492	  TCL_SRC=if_tcl.c
7493	  TCL_OBJ=objects/if_tcl.o
7494	  TCL_PRO=if_tcl.pro
7495	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
7496	fi
7497      fi
7498    else
7499      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5
7500$as_echo "too old; need Tcl version 8.0 or later" >&6; }
7501    fi
7502  fi
7503  if test "$enable_tclinterp" = "dynamic"; then
7504    if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then
7505      $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h
7506
7507      TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS"
7508    fi
7509  fi
7510  if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
7511    as_fn_error $? "could not configure Tcl" "$LINENO" 5
7512  fi
7513fi
7514
7515
7516
7517
7518
7519
7520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5
7521$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
7522# Check whether --enable-rubyinterp was given.
7523if test "${enable_rubyinterp+set}" = set; then :
7524  enableval=$enable_rubyinterp;
7525else
7526  enable_rubyinterp="no"
7527fi
7528
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
7530$as_echo "$enable_rubyinterp" >&6; }
7531if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
7532  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7533    as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5
7534  fi
7535
7536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
7537$as_echo_n "checking --with-ruby-command argument... " >&6; }
7538
7539
7540# Check whether --with-ruby-command was given.
7541if test "${with_ruby_command+set}" = set; then :
7542  withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
7543$as_echo "$RUBY_CMD" >&6; }
7544else
7545  RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
7546$as_echo "defaulting to $RUBY_CMD" >&6; }
7547fi
7548
7549  # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
7550set dummy $RUBY_CMD; ac_word=$2
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552$as_echo_n "checking for $ac_word... " >&6; }
7553if ${ac_cv_path_vi_cv_path_ruby+:} false; then :
7554  $as_echo_n "(cached) " >&6
7555else
7556  case $vi_cv_path_ruby in
7557  [\\/]* | ?:[\\/]*)
7558  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
7559  ;;
7560  *)
7561  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562for as_dir in $PATH
7563do
7564  IFS=$as_save_IFS
7565  test -z "$as_dir" && as_dir=.
7566    for ac_exec_ext in '' $ac_executable_extensions; do
7567  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7568    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
7569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570    break 2
7571  fi
7572done
7573  done
7574IFS=$as_save_IFS
7575
7576  ;;
7577esac
7578fi
7579vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
7580if test -n "$vi_cv_path_ruby"; then
7581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5
7582$as_echo "$vi_cv_path_ruby" >&6; }
7583else
7584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585$as_echo "no" >&6; }
7586fi
7587
7588
7589  if test "X$vi_cv_path_ruby" != "X"; then
7590    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5
7591$as_echo_n "checking Ruby version... " >&6; }
7592    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
7593      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
7594$as_echo "OK" >&6; }
7595      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5
7596$as_echo_n "checking Ruby rbconfig... " >&6; }
7597      ruby_rbconfig="RbConfig"
7598      if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then
7599	ruby_rbconfig="Config"
7600      fi
7601      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5
7602$as_echo "$ruby_rbconfig" >&6; }
7603      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
7604$as_echo_n "checking Ruby header files... " >&6; }
7605      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null`
7606      if test "X$rubyhdrdir" != "X"; then
7607	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
7608$as_echo "$rubyhdrdir" >&6; }
7609	RUBY_CFLAGS="-I$rubyhdrdir"
7610        rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"`
7611        if test -d "$rubyarchdir"; then
7612          RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir"
7613        fi
7614        rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"`
7615	if test "X$rubyversion" = "X"; then
7616	  rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"`
7617	fi
7618        RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
7619	rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"`
7620	if test "X$rubylibs" != "X"; then
7621	  RUBY_LIBS="$rubylibs"
7622	fi
7623	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"`
7624	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"`
7625	rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"`
7626	if test -f "$rubylibdir/$librubya"; then
7627	  librubyarg="$librubyarg"
7628	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7629	elif test "$librubyarg" = "libruby.a"; then
7630	  	  librubyarg="-lruby"
7631	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7632	fi
7633
7634	if test "X$librubyarg" != "X"; then
7635	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
7636	fi
7637	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"`
7638	if test "X$rubyldflags" != "X"; then
7639	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
7640	  if test "X$rubyldflags" != "X"; then
7641	    if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then
7642	      LDFLAGS="$rubyldflags $LDFLAGS"
7643	    fi
7644	  fi
7645	fi
7646	RUBY_SRC="if_ruby.c"
7647	RUBY_OBJ="objects/if_ruby.o"
7648	RUBY_PRO="if_ruby.pro"
7649	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
7650
7651	if test "$enable_rubyinterp" = "dynamic"; then
7652	  libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_ALIASES'].split[0]"`
7653	  if test -z "$libruby_soname"; then
7654	    libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"`
7655	  fi
7656	  $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h
7657
7658	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" $RUBY_CFLAGS"
7659	  RUBY_LIBS=
7660	fi
7661      else
7662	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
7663$as_echo "not found; disabling Ruby" >&6; }
7664      fi
7665    else
7666      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5
7667$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
7668    fi
7669  fi
7670
7671  if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
7672    as_fn_error $? "could not configure Ruby" "$LINENO" 5
7673  fi
7674fi
7675
7676
7677
7678
7679
7680
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5
7682$as_echo_n "checking --enable-cscope argument... " >&6; }
7683# Check whether --enable-cscope was given.
7684if test "${enable_cscope+set}" = set; then :
7685  enableval=$enable_cscope;
7686else
7687  enable_cscope="no"
7688fi
7689
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
7691$as_echo "$enable_cscope" >&6; }
7692if test "$enable_cscope" = "yes"; then
7693  $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h
7694
7695fi
7696
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5
7698$as_echo_n "checking --disable-netbeans argument... " >&6; }
7699# Check whether --enable-netbeans was given.
7700if test "${enable_netbeans+set}" = set; then :
7701  enableval=$enable_netbeans;
7702else
7703  enable_netbeans="yes"
7704fi
7705
7706if test "$enable_netbeans" = "yes"; then
7707  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7708    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5
7709$as_echo "cannot use NetBeans with tiny or small features" >&6; }
7710    enable_netbeans="no"
7711  else
7712    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713$as_echo "no" >&6; }
7714  fi
7715else
7716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7717$as_echo "yes" >&6; }
7718fi
7719
7720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5
7721$as_echo_n "checking --disable-channel argument... " >&6; }
7722# Check whether --enable-channel was given.
7723if test "${enable_channel+set}" = set; then :
7724  enableval=$enable_channel;
7725else
7726  enable_channel="yes"
7727fi
7728
7729if test "$enable_channel" = "yes"; then
7730  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7731    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5
7732$as_echo "cannot use channels with tiny or small features" >&6; }
7733    enable_channel="no"
7734  else
7735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736$as_echo "no" >&6; }
7737  fi
7738else
7739  if test "$enable_netbeans" = "yes"; then
7740    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5
7741$as_echo "yes, netbeans also disabled" >&6; }
7742    enable_netbeans="no"
7743  else
7744    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7745$as_echo "yes" >&6; }
7746  fi
7747fi
7748
7749if test "$enable_channel" = "yes"; then
7750    if test "x$HAIKU" = "xyes"; then
7751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
7752$as_echo_n "checking for socket in -lnetwork... " >&6; }
7753if ${ac_cv_lib_network_socket+:} false; then :
7754  $as_echo_n "(cached) " >&6
7755else
7756  ac_check_lib_save_LIBS=$LIBS
7757LIBS="-lnetwork  $LIBS"
7758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759/* end confdefs.h.  */
7760
7761/* Override any GCC internal prototype to avoid an error.
7762   Use char because int might match the return type of a GCC
7763   builtin and then its argument prototype would still apply.  */
7764#ifdef __cplusplus
7765extern "C"
7766#endif
7767char socket ();
7768int
7769main ()
7770{
7771return socket ();
7772  ;
7773  return 0;
7774}
7775_ACEOF
7776if ac_fn_c_try_link "$LINENO"; then :
7777  ac_cv_lib_network_socket=yes
7778else
7779  ac_cv_lib_network_socket=no
7780fi
7781rm -f core conftest.err conftest.$ac_objext \
7782    conftest$ac_exeext conftest.$ac_ext
7783LIBS=$ac_check_lib_save_LIBS
7784fi
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
7786$as_echo "$ac_cv_lib_network_socket" >&6; }
7787if test "x$ac_cv_lib_network_socket" = xyes; then :
7788  cat >>confdefs.h <<_ACEOF
7789#define HAVE_LIBNETWORK 1
7790_ACEOF
7791
7792  LIBS="-lnetwork $LIBS"
7793
7794fi
7795
7796  else
7797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
7798$as_echo_n "checking for socket in -lsocket... " >&6; }
7799if ${ac_cv_lib_socket_socket+:} false; then :
7800  $as_echo_n "(cached) " >&6
7801else
7802  ac_check_lib_save_LIBS=$LIBS
7803LIBS="-lsocket  $LIBS"
7804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805/* end confdefs.h.  */
7806
7807/* Override any GCC internal prototype to avoid an error.
7808   Use char because int might match the return type of a GCC
7809   builtin and then its argument prototype would still apply.  */
7810#ifdef __cplusplus
7811extern "C"
7812#endif
7813char socket ();
7814int
7815main ()
7816{
7817return socket ();
7818  ;
7819  return 0;
7820}
7821_ACEOF
7822if ac_fn_c_try_link "$LINENO"; then :
7823  ac_cv_lib_socket_socket=yes
7824else
7825  ac_cv_lib_socket_socket=no
7826fi
7827rm -f core conftest.err conftest.$ac_objext \
7828    conftest$ac_exeext conftest.$ac_ext
7829LIBS=$ac_check_lib_save_LIBS
7830fi
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
7832$as_echo "$ac_cv_lib_socket_socket" >&6; }
7833if test "x$ac_cv_lib_socket_socket" = xyes; then :
7834  cat >>confdefs.h <<_ACEOF
7835#define HAVE_LIBSOCKET 1
7836_ACEOF
7837
7838  LIBS="-lsocket $LIBS"
7839
7840fi
7841
7842  fi
7843
7844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with IPv6 networking is possible" >&5
7845$as_echo_n "checking whether compiling with IPv6 networking is possible... " >&6; }
7846if ${vim_cv_ipv6_networking+:} false; then :
7847  $as_echo_n "(cached) " >&6
7848else
7849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850/* end confdefs.h.  */
7851
7852#include <stdio.h>
7853#include <stdlib.h>
7854#include <stdarg.h>
7855#include <fcntl.h>
7856#include <netdb.h>
7857#include <netinet/in.h>
7858#include <errno.h>
7859#include <sys/types.h>
7860#include <sys/socket.h>
7861	/* Check bitfields */
7862	struct nbbuf {
7863	unsigned int  initDone:1;
7864	unsigned short signmaplen;
7865	};
7866
7867int
7868main ()
7869{
7870
7871		/* Check creating a socket. */
7872		struct sockaddr_in server;
7873		struct addrinfo *res;
7874		(void)socket(AF_INET, SOCK_STREAM, 0);
7875		(void)htons(100);
7876		(void)getaddrinfo("microsoft.com", NULL, NULL, &res);
7877		if (errno == ECONNREFUSED)
7878		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
7879		(void)freeaddrinfo(res);
7880
7881  ;
7882  return 0;
7883}
7884_ACEOF
7885if ac_fn_c_try_link "$LINENO"; then :
7886  vim_cv_ipv6_networking="yes"
7887else
7888  vim_cv_ipv6_networking="no"
7889fi
7890rm -f core conftest.err conftest.$ac_objext \
7891    conftest$ac_exeext conftest.$ac_ext
7892fi
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_ipv6_networking" >&5
7894$as_echo "$vim_cv_ipv6_networking" >&6; }
7895
7896  if test "x$vim_cv_ipv6_networking" = "xyes"; then
7897    $as_echo "#define FEAT_IPV6 1" >>confdefs.h
7898
7899    for ac_func in inet_ntop
7900do :
7901  ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
7902if test "x$ac_cv_func_inet_ntop" = xyes; then :
7903  cat >>confdefs.h <<_ACEOF
7904#define HAVE_INET_NTOP 1
7905_ACEOF
7906
7907fi
7908done
7909
7910  else
7911        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7912$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7913if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7914  $as_echo_n "(cached) " >&6
7915else
7916  ac_check_lib_save_LIBS=$LIBS
7917LIBS="-lnsl  $LIBS"
7918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919/* end confdefs.h.  */
7920
7921/* Override any GCC internal prototype to avoid an error.
7922   Use char because int might match the return type of a GCC
7923   builtin and then its argument prototype would still apply.  */
7924#ifdef __cplusplus
7925extern "C"
7926#endif
7927char gethostbyname ();
7928int
7929main ()
7930{
7931return gethostbyname ();
7932  ;
7933  return 0;
7934}
7935_ACEOF
7936if ac_fn_c_try_link "$LINENO"; then :
7937  ac_cv_lib_nsl_gethostbyname=yes
7938else
7939  ac_cv_lib_nsl_gethostbyname=no
7940fi
7941rm -f core conftest.err conftest.$ac_objext \
7942    conftest$ac_exeext conftest.$ac_ext
7943LIBS=$ac_check_lib_save_LIBS
7944fi
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7946$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7947if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7948  cat >>confdefs.h <<_ACEOF
7949#define HAVE_LIBNSL 1
7950_ACEOF
7951
7952  LIBS="-lnsl $LIBS"
7953
7954fi
7955
7956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with IPv4 networking is possible" >&5
7957$as_echo_n "checking whether compiling with IPv4 networking is possible... " >&6; }
7958if ${vim_cv_ipv4_networking+:} false; then :
7959  $as_echo_n "(cached) " >&6
7960else
7961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962/* end confdefs.h.  */
7963
7964#include <stdio.h>
7965#include <stdlib.h>
7966#include <stdarg.h>
7967#include <fcntl.h>
7968#include <netdb.h>
7969#include <netinet/in.h>
7970#include <errno.h>
7971#include <sys/types.h>
7972#include <sys/socket.h>
7973	/* Check bitfields */
7974	struct nbbuf {
7975	unsigned int  initDone:1;
7976	unsigned short signmaplen;
7977	};
7978
7979int
7980main ()
7981{
7982
7983		/* Check creating a socket. */
7984		struct sockaddr_in server;
7985		(void)socket(AF_INET, SOCK_STREAM, 0);
7986		(void)htons(100);
7987		(void)gethostbyname("microsoft.com");
7988		if (errno == ECONNREFUSED)
7989		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
7990
7991  ;
7992  return 0;
7993}
7994_ACEOF
7995if ac_fn_c_try_link "$LINENO"; then :
7996  vim_cv_ipv4_networking="yes"
7997else
7998  vim_cv_ipv4_networking="no"; enable_netbeans="no"; enable_channel="no"
7999fi
8000rm -f core conftest.err conftest.$ac_objext \
8001    conftest$ac_exeext conftest.$ac_ext
8002fi
8003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_ipv4_networking" >&5
8004$as_echo "$vim_cv_ipv4_networking" >&6; }
8005  fi
8006fi
8007if test "$enable_netbeans" = "yes"; then
8008  $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h
8009
8010  NETBEANS_SRC="netbeans.c"
8011
8012  NETBEANS_OBJ="objects/netbeans.o"
8013
8014fi
8015if test "$enable_channel" = "yes"; then
8016  $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h
8017
8018  CHANNEL_SRC="channel.c"
8019
8020  CHANNEL_OBJ="objects/channel.o"
8021
8022fi
8023
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5
8025$as_echo_n "checking --enable-terminal argument... " >&6; }
8026# Check whether --enable-terminal was given.
8027if test "${enable_terminal+set}" = set; then :
8028  enableval=$enable_terminal;
8029else
8030  enable_terminal="auto"
8031fi
8032
8033if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then
8034  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
8035    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5
8036$as_echo "cannot use terminal emulator with tiny or small features" >&6; }
8037    enable_terminal="no"
8038  else
8039    if test "$enable_terminal" = "auto"; then
8040      enable_terminal="yes"
8041      { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5
8042$as_echo "defaulting to yes" >&6; }
8043    else
8044      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8045$as_echo "yes" >&6; }
8046    fi
8047  fi
8048else
8049  if test "$enable_terminal" = "auto"; then
8050    enable_terminal="no"
8051    { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5
8052$as_echo "defaulting to no" >&6; }
8053  else
8054    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055$as_echo "no" >&6; }
8056  fi
8057fi
8058if test "$enable_terminal" = "yes" -a "$enable_channel" = "yes"; then
8059  $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h
8060
8061  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"
8062
8063  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"
8064
8065  TERM_TEST="test_libvterm"
8066
8067fi
8068
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-autoservername argument" >&5
8070$as_echo_n "checking --enable-autoservername argument... " >&6; }
8071# Check whether --enable-autoservername was given.
8072if test "${enable_autoservername+set}" = set; then :
8073  enableval=$enable_autoservername;
8074else
8075  enable_autoservername="no"
8076fi
8077
8078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_autoservername" >&5
8079$as_echo "$enable_autoservername" >&6; }
8080if test "$enable_autoservername" = "yes"; then
8081  $as_echo "#define FEAT_AUTOSERVERNAME 1" >>confdefs.h
8082
8083fi
8084
8085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5
8086$as_echo_n "checking --enable-multibyte argument... " >&6; }
8087# Check whether --enable-multibyte was given.
8088if test "${enable_multibyte+set}" = set; then :
8089  enableval=$enable_multibyte;
8090else
8091  enable_multibyte="yes"
8092fi
8093
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
8095$as_echo "$enable_multibyte" >&6; }
8096if test "$enable_multibyte" != "yes"; then
8097  as_fn_error $? "The multi-byte feature can no longer be disabled. If you have
8098		a problem with this, discuss on the Vim mailing list." "$LINENO" 5
8099fi
8100
8101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-rightleft argument" >&5
8102$as_echo_n "checking --disable-rightleft argument... " >&6; }
8103# Check whether --enable-rightleft was given.
8104if test "${enable_rightleft+set}" = set; then :
8105  enableval=$enable_rightleft;
8106else
8107  enable_rightleft="yes"
8108fi
8109
8110if test "$enable_rightleft" = "yes"; then
8111	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112$as_echo "no" >&6; }
8113else
8114	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8115$as_echo "yes" >&6; }
8116	$as_echo "#define DISABLE_RIGHTLEFT 1" >>confdefs.h
8117
8118fi
8119
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-arabic argument" >&5
8121$as_echo_n "checking --disable-arabic argument... " >&6; }
8122# Check whether --enable-arabic was given.
8123if test "${enable_arabic+set}" = set; then :
8124  enableval=$enable_arabic;
8125else
8126  enable_arabic="yes"
8127fi
8128
8129if test "$enable_arabic" = "yes"; then
8130	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131$as_echo "no" >&6; }
8132else
8133	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8134$as_echo "yes" >&6; }
8135	$as_echo "#define DISABLE_ARABIC 1" >>confdefs.h
8136
8137fi
8138
8139# Check whether --enable-farsi was given.
8140if test "${enable_farsi+set}" = set; then :
8141  enableval=$enable_farsi;
8142fi
8143
8144
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5
8146$as_echo_n "checking --enable-xim argument... " >&6; }
8147# Check whether --enable-xim was given.
8148if test "${enable_xim+set}" = set; then :
8149  enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5
8150$as_echo "$enable_xim" >&6; }
8151else
8152  enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5
8153$as_echo "defaulting to auto" >&6; }
8154fi
8155
8156
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5
8158$as_echo_n "checking --enable-fontset argument... " >&6; }
8159# Check whether --enable-fontset was given.
8160if test "${enable_fontset+set}" = set; then :
8161  enableval=$enable_fontset;
8162else
8163  enable_fontset="no"
8164fi
8165
8166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5
8167$as_echo "$enable_fontset" >&6; }
8168
8169test -z "$with_x" && with_x=yes
8170test "${enable_gui-yes}" != no -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
8171if test "$with_x" = no; then
8172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5
8173$as_echo "defaulting to: don't HAVE_X11" >&6; }
8174else
8175
8176  # Extract the first word of "xmkmf", so it can be a program name with args.
8177set dummy xmkmf; ac_word=$2
8178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8179$as_echo_n "checking for $ac_word... " >&6; }
8180if ${ac_cv_path_xmkmfpath+:} false; then :
8181  $as_echo_n "(cached) " >&6
8182else
8183  case $xmkmfpath in
8184  [\\/]* | ?:[\\/]*)
8185  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
8186  ;;
8187  *)
8188  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189for as_dir in $PATH
8190do
8191  IFS=$as_save_IFS
8192  test -z "$as_dir" && as_dir=.
8193    for ac_exec_ext in '' $ac_executable_extensions; do
8194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8195    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
8196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8197    break 2
8198  fi
8199done
8200  done
8201IFS=$as_save_IFS
8202
8203  ;;
8204esac
8205fi
8206xmkmfpath=$ac_cv_path_xmkmfpath
8207if test -n "$xmkmfpath"; then
8208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5
8209$as_echo "$xmkmfpath" >&6; }
8210else
8211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212$as_echo "no" >&6; }
8213fi
8214
8215
8216
8217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8218$as_echo_n "checking for X... " >&6; }
8219
8220
8221# Check whether --with-x was given.
8222if test "${with_x+set}" = set; then :
8223  withval=$with_x;
8224fi
8225
8226# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8227if test "x$with_x" = xno; then
8228  # The user explicitly disabled X.
8229  have_x=disabled
8230else
8231  case $x_includes,$x_libraries in #(
8232    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8233    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8234  $as_echo_n "(cached) " >&6
8235else
8236  # One or both of the vars are not set, and there is no cached value.
8237ac_x_includes=no ac_x_libraries=no
8238rm -f -r conftest.dir
8239if mkdir conftest.dir; then
8240  cd conftest.dir
8241  cat >Imakefile <<'_ACEOF'
8242incroot:
8243	@echo incroot='${INCROOT}'
8244usrlibdir:
8245	@echo usrlibdir='${USRLIBDIR}'
8246libdir:
8247	@echo libdir='${LIBDIR}'
8248_ACEOF
8249  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8250    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8251    for ac_var in incroot usrlibdir libdir; do
8252      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8253    done
8254    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8255    for ac_extension in a so sl dylib la dll; do
8256      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8257	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8258	ac_im_usrlibdir=$ac_im_libdir; break
8259      fi
8260    done
8261    # Screen out bogus values from the imake configuration.  They are
8262    # bogus both because they are the default anyway, and because
8263    # using them would break gcc on systems where it needs fixed includes.
8264    case $ac_im_incroot in
8265	/usr/include) ac_x_includes= ;;
8266	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8267    esac
8268    case $ac_im_usrlibdir in
8269	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
8270	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8271    esac
8272  fi
8273  cd ..
8274  rm -f -r conftest.dir
8275fi
8276
8277# Standard set of common directories for X headers.
8278# Check X11 before X11Rn because it is often a symlink to the current release.
8279ac_x_header_dirs='
8280/usr/X11/include
8281/usr/X11R7/include
8282/usr/X11R6/include
8283/usr/X11R5/include
8284/usr/X11R4/include
8285
8286/usr/include/X11
8287/usr/include/X11R7
8288/usr/include/X11R6
8289/usr/include/X11R5
8290/usr/include/X11R4
8291
8292/usr/local/X11/include
8293/usr/local/X11R7/include
8294/usr/local/X11R6/include
8295/usr/local/X11R5/include
8296/usr/local/X11R4/include
8297
8298/usr/local/include/X11
8299/usr/local/include/X11R7
8300/usr/local/include/X11R6
8301/usr/local/include/X11R5
8302/usr/local/include/X11R4
8303
8304/usr/X386/include
8305/usr/x386/include
8306/usr/XFree86/include/X11
8307
8308/usr/include
8309/usr/local/include
8310/usr/unsupported/include
8311/usr/athena/include
8312/usr/local/x11r5/include
8313/usr/lpp/Xamples/include
8314
8315/usr/openwin/include
8316/usr/openwin/share/include'
8317
8318if test "$ac_x_includes" = no; then
8319  # Guess where to find include files, by looking for Xlib.h.
8320  # First, try using that file with no special directory specified.
8321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322/* end confdefs.h.  */
8323#include <X11/Xlib.h>
8324_ACEOF
8325if ac_fn_c_try_cpp "$LINENO"; then :
8326  # We can compile using X headers with no special include directory.
8327ac_x_includes=
8328else
8329  for ac_dir in $ac_x_header_dirs; do
8330  if test -r "$ac_dir/X11/Xlib.h"; then
8331    ac_x_includes=$ac_dir
8332    break
8333  fi
8334done
8335fi
8336rm -f conftest.err conftest.i conftest.$ac_ext
8337fi # $ac_x_includes = no
8338
8339if test "$ac_x_libraries" = no; then
8340  # Check for the libraries.
8341  # See if we find them without any special options.
8342  # Don't add to $LIBS permanently.
8343  ac_save_LIBS=$LIBS
8344  LIBS="-lX11 $LIBS"
8345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346/* end confdefs.h.  */
8347#include <X11/Xlib.h>
8348int
8349main ()
8350{
8351XrmInitialize ()
8352  ;
8353  return 0;
8354}
8355_ACEOF
8356if ac_fn_c_try_link "$LINENO"; then :
8357  LIBS=$ac_save_LIBS
8358# We can link X programs with no special library path.
8359ac_x_libraries=
8360else
8361  LIBS=$ac_save_LIBS
8362for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8363do
8364  # Don't even attempt the hair of trying to link an X program!
8365  for ac_extension in a so sl dylib la dll; do
8366    if test -r "$ac_dir/libX11.$ac_extension"; then
8367      ac_x_libraries=$ac_dir
8368      break 2
8369    fi
8370  done
8371done
8372fi
8373rm -f core conftest.err conftest.$ac_objext \
8374    conftest$ac_exeext conftest.$ac_ext
8375fi # $ac_x_libraries = no
8376
8377case $ac_x_includes,$ac_x_libraries in #(
8378  no,* | *,no | *\'*)
8379    # Didn't find X, or a directory has "'" in its name.
8380    ac_cv_have_x="have_x=no";; #(
8381  *)
8382    # Record where we found X for the cache.
8383    ac_cv_have_x="have_x=yes\
8384	ac_x_includes='$ac_x_includes'\
8385	ac_x_libraries='$ac_x_libraries'"
8386esac
8387fi
8388;; #(
8389    *) have_x=yes;;
8390  esac
8391  eval "$ac_cv_have_x"
8392fi # $with_x != no
8393
8394if test "$have_x" != yes; then
8395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8396$as_echo "$have_x" >&6; }
8397  no_x=yes
8398else
8399  # If each of the values was on the command line, it overrides each guess.
8400  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8401  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8402  # Update the cache value to reflect the command line values.
8403  ac_cv_have_x="have_x=yes\
8404	ac_x_includes='$x_includes'\
8405	ac_x_libraries='$x_libraries'"
8406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8407$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8408fi
8409
8410if test "$no_x" = yes; then
8411  # Not all programs may use this symbol, but it does not hurt to define it.
8412
8413$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8414
8415  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8416else
8417  if test -n "$x_includes"; then
8418    X_CFLAGS="$X_CFLAGS -I$x_includes"
8419  fi
8420
8421  # It would also be nice to do this for all -L options, not just this one.
8422  if test -n "$x_libraries"; then
8423    X_LIBS="$X_LIBS -L$x_libraries"
8424    # For Solaris; some versions of Sun CC require a space after -R and
8425    # others require no space.  Words are not sufficient . . . .
8426    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8427$as_echo_n "checking whether -R must be followed by a space... " >&6; }
8428    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8429    ac_xsave_c_werror_flag=$ac_c_werror_flag
8430    ac_c_werror_flag=yes
8431    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432/* end confdefs.h.  */
8433
8434int
8435main ()
8436{
8437
8438  ;
8439  return 0;
8440}
8441_ACEOF
8442if ac_fn_c_try_link "$LINENO"; then :
8443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444$as_echo "no" >&6; }
8445       X_LIBS="$X_LIBS -R$x_libraries"
8446else
8447  LIBS="$ac_xsave_LIBS -R $x_libraries"
8448       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449/* end confdefs.h.  */
8450
8451int
8452main ()
8453{
8454
8455  ;
8456  return 0;
8457}
8458_ACEOF
8459if ac_fn_c_try_link "$LINENO"; then :
8460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8461$as_echo "yes" >&6; }
8462	  X_LIBS="$X_LIBS -R $x_libraries"
8463else
8464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8465$as_echo "neither works" >&6; }
8466fi
8467rm -f core conftest.err conftest.$ac_objext \
8468    conftest$ac_exeext conftest.$ac_ext
8469fi
8470rm -f core conftest.err conftest.$ac_objext \
8471    conftest$ac_exeext conftest.$ac_ext
8472    ac_c_werror_flag=$ac_xsave_c_werror_flag
8473    LIBS=$ac_xsave_LIBS
8474  fi
8475
8476  # Check for system-dependent libraries X programs must link with.
8477  # Do this before checking for the system-independent R6 libraries
8478  # (-lICE), since we may need -lsocket or whatever for X linking.
8479
8480  if test "$ISC" = yes; then
8481    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8482  else
8483    # Martyn Johnson says this is needed for Ultrix, if the X
8484    # libraries were built with DECnet support.  And Karl Berry says
8485    # the Alpha needs dnet_stub (dnet does not exist).
8486    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8487    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8488/* end confdefs.h.  */
8489
8490/* Override any GCC internal prototype to avoid an error.
8491   Use char because int might match the return type of a GCC
8492   builtin and then its argument prototype would still apply.  */
8493#ifdef __cplusplus
8494extern "C"
8495#endif
8496char XOpenDisplay ();
8497int
8498main ()
8499{
8500return XOpenDisplay ();
8501  ;
8502  return 0;
8503}
8504_ACEOF
8505if ac_fn_c_try_link "$LINENO"; then :
8506
8507else
8508  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8509$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8510if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8511  $as_echo_n "(cached) " >&6
8512else
8513  ac_check_lib_save_LIBS=$LIBS
8514LIBS="-ldnet  $LIBS"
8515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516/* end confdefs.h.  */
8517
8518/* Override any GCC internal prototype to avoid an error.
8519   Use char because int might match the return type of a GCC
8520   builtin and then its argument prototype would still apply.  */
8521#ifdef __cplusplus
8522extern "C"
8523#endif
8524char dnet_ntoa ();
8525int
8526main ()
8527{
8528return dnet_ntoa ();
8529  ;
8530  return 0;
8531}
8532_ACEOF
8533if ac_fn_c_try_link "$LINENO"; then :
8534  ac_cv_lib_dnet_dnet_ntoa=yes
8535else
8536  ac_cv_lib_dnet_dnet_ntoa=no
8537fi
8538rm -f core conftest.err conftest.$ac_objext \
8539    conftest$ac_exeext conftest.$ac_ext
8540LIBS=$ac_check_lib_save_LIBS
8541fi
8542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8543$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8544if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8545  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8546fi
8547
8548    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8549      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8550$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8551if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8552  $as_echo_n "(cached) " >&6
8553else
8554  ac_check_lib_save_LIBS=$LIBS
8555LIBS="-ldnet_stub  $LIBS"
8556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557/* end confdefs.h.  */
8558
8559/* Override any GCC internal prototype to avoid an error.
8560   Use char because int might match the return type of a GCC
8561   builtin and then its argument prototype would still apply.  */
8562#ifdef __cplusplus
8563extern "C"
8564#endif
8565char dnet_ntoa ();
8566int
8567main ()
8568{
8569return dnet_ntoa ();
8570  ;
8571  return 0;
8572}
8573_ACEOF
8574if ac_fn_c_try_link "$LINENO"; then :
8575  ac_cv_lib_dnet_stub_dnet_ntoa=yes
8576else
8577  ac_cv_lib_dnet_stub_dnet_ntoa=no
8578fi
8579rm -f core conftest.err conftest.$ac_objext \
8580    conftest$ac_exeext conftest.$ac_ext
8581LIBS=$ac_check_lib_save_LIBS
8582fi
8583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8584$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8585if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8586  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8587fi
8588
8589    fi
8590fi
8591rm -f core conftest.err conftest.$ac_objext \
8592    conftest$ac_exeext conftest.$ac_ext
8593    LIBS="$ac_xsave_LIBS"
8594
8595    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
8596    # to get the SysV transport functions.
8597    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8598    # needs -lnsl.
8599    # The nsl library prevents programs from opening the X display
8600    # on Irix 5.2, according to T.E. Dickey.
8601    # The functions gethostbyname, getservbyname, and inet_addr are
8602    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8603    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8604if test "x$ac_cv_func_gethostbyname" = xyes; then :
8605
8606fi
8607
8608    if test $ac_cv_func_gethostbyname = no; then
8609      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8610$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8611if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8612  $as_echo_n "(cached) " >&6
8613else
8614  ac_check_lib_save_LIBS=$LIBS
8615LIBS="-lnsl  $LIBS"
8616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617/* end confdefs.h.  */
8618
8619/* Override any GCC internal prototype to avoid an error.
8620   Use char because int might match the return type of a GCC
8621   builtin and then its argument prototype would still apply.  */
8622#ifdef __cplusplus
8623extern "C"
8624#endif
8625char gethostbyname ();
8626int
8627main ()
8628{
8629return gethostbyname ();
8630  ;
8631  return 0;
8632}
8633_ACEOF
8634if ac_fn_c_try_link "$LINENO"; then :
8635  ac_cv_lib_nsl_gethostbyname=yes
8636else
8637  ac_cv_lib_nsl_gethostbyname=no
8638fi
8639rm -f core conftest.err conftest.$ac_objext \
8640    conftest$ac_exeext conftest.$ac_ext
8641LIBS=$ac_check_lib_save_LIBS
8642fi
8643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8644$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8645if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8646  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8647fi
8648
8649      if test $ac_cv_lib_nsl_gethostbyname = no; then
8650	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8651$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8652if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8653  $as_echo_n "(cached) " >&6
8654else
8655  ac_check_lib_save_LIBS=$LIBS
8656LIBS="-lbsd  $LIBS"
8657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658/* end confdefs.h.  */
8659
8660/* Override any GCC internal prototype to avoid an error.
8661   Use char because int might match the return type of a GCC
8662   builtin and then its argument prototype would still apply.  */
8663#ifdef __cplusplus
8664extern "C"
8665#endif
8666char gethostbyname ();
8667int
8668main ()
8669{
8670return gethostbyname ();
8671  ;
8672  return 0;
8673}
8674_ACEOF
8675if ac_fn_c_try_link "$LINENO"; then :
8676  ac_cv_lib_bsd_gethostbyname=yes
8677else
8678  ac_cv_lib_bsd_gethostbyname=no
8679fi
8680rm -f core conftest.err conftest.$ac_objext \
8681    conftest$ac_exeext conftest.$ac_ext
8682LIBS=$ac_check_lib_save_LIBS
8683fi
8684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8685$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8686if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8687  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8688fi
8689
8690      fi
8691    fi
8692
8693    # [email protected] says without -lsocket,
8694    # socket/setsockopt and other routines are undefined under SCO ODT
8695    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8696    # on later versions), says Simon Leinen: it contains gethostby*
8697    # variants that don't use the name server (or something).  -lsocket
8698    # must be given before -lnsl if both are needed.  We assume that
8699    # if connect needs -lnsl, so does gethostbyname.
8700    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8701if test "x$ac_cv_func_connect" = xyes; then :
8702
8703fi
8704
8705    if test $ac_cv_func_connect = no; then
8706      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8707$as_echo_n "checking for connect in -lsocket... " >&6; }
8708if ${ac_cv_lib_socket_connect+:} false; then :
8709  $as_echo_n "(cached) " >&6
8710else
8711  ac_check_lib_save_LIBS=$LIBS
8712LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714/* end confdefs.h.  */
8715
8716/* Override any GCC internal prototype to avoid an error.
8717   Use char because int might match the return type of a GCC
8718   builtin and then its argument prototype would still apply.  */
8719#ifdef __cplusplus
8720extern "C"
8721#endif
8722char connect ();
8723int
8724main ()
8725{
8726return connect ();
8727  ;
8728  return 0;
8729}
8730_ACEOF
8731if ac_fn_c_try_link "$LINENO"; then :
8732  ac_cv_lib_socket_connect=yes
8733else
8734  ac_cv_lib_socket_connect=no
8735fi
8736rm -f core conftest.err conftest.$ac_objext \
8737    conftest$ac_exeext conftest.$ac_ext
8738LIBS=$ac_check_lib_save_LIBS
8739fi
8740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8741$as_echo "$ac_cv_lib_socket_connect" >&6; }
8742if test "x$ac_cv_lib_socket_connect" = xyes; then :
8743  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8744fi
8745
8746    fi
8747
8748    # Guillermo Gomez says -lposix is necessary on A/UX.
8749    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8750if test "x$ac_cv_func_remove" = xyes; then :
8751
8752fi
8753
8754    if test $ac_cv_func_remove = no; then
8755      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8756$as_echo_n "checking for remove in -lposix... " >&6; }
8757if ${ac_cv_lib_posix_remove+:} false; then :
8758  $as_echo_n "(cached) " >&6
8759else
8760  ac_check_lib_save_LIBS=$LIBS
8761LIBS="-lposix  $LIBS"
8762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763/* end confdefs.h.  */
8764
8765/* Override any GCC internal prototype to avoid an error.
8766   Use char because int might match the return type of a GCC
8767   builtin and then its argument prototype would still apply.  */
8768#ifdef __cplusplus
8769extern "C"
8770#endif
8771char remove ();
8772int
8773main ()
8774{
8775return remove ();
8776  ;
8777  return 0;
8778}
8779_ACEOF
8780if ac_fn_c_try_link "$LINENO"; then :
8781  ac_cv_lib_posix_remove=yes
8782else
8783  ac_cv_lib_posix_remove=no
8784fi
8785rm -f core conftest.err conftest.$ac_objext \
8786    conftest$ac_exeext conftest.$ac_ext
8787LIBS=$ac_check_lib_save_LIBS
8788fi
8789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8790$as_echo "$ac_cv_lib_posix_remove" >&6; }
8791if test "x$ac_cv_lib_posix_remove" = xyes; then :
8792  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8793fi
8794
8795    fi
8796
8797    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8798    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8799if test "x$ac_cv_func_shmat" = xyes; then :
8800
8801fi
8802
8803    if test $ac_cv_func_shmat = no; then
8804      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8805$as_echo_n "checking for shmat in -lipc... " >&6; }
8806if ${ac_cv_lib_ipc_shmat+:} false; then :
8807  $as_echo_n "(cached) " >&6
8808else
8809  ac_check_lib_save_LIBS=$LIBS
8810LIBS="-lipc  $LIBS"
8811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812/* end confdefs.h.  */
8813
8814/* Override any GCC internal prototype to avoid an error.
8815   Use char because int might match the return type of a GCC
8816   builtin and then its argument prototype would still apply.  */
8817#ifdef __cplusplus
8818extern "C"
8819#endif
8820char shmat ();
8821int
8822main ()
8823{
8824return shmat ();
8825  ;
8826  return 0;
8827}
8828_ACEOF
8829if ac_fn_c_try_link "$LINENO"; then :
8830  ac_cv_lib_ipc_shmat=yes
8831else
8832  ac_cv_lib_ipc_shmat=no
8833fi
8834rm -f core conftest.err conftest.$ac_objext \
8835    conftest$ac_exeext conftest.$ac_ext
8836LIBS=$ac_check_lib_save_LIBS
8837fi
8838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8839$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8840if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8841  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8842fi
8843
8844    fi
8845  fi
8846
8847  # Check for libraries that X11R6 Xt/Xaw programs need.
8848  ac_save_LDFLAGS=$LDFLAGS
8849  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8850  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8851  # check for ICE first), but we must link in the order -lSM -lICE or
8852  # we get undefined symbols.  So assume we have SM if we have ICE.
8853  # These have to be linked with before -lX11, unlike the other
8854  # libraries we check for below, so use a different variable.
8855  # John Interrante, Karl Berry
8856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8857$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8858if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8859  $as_echo_n "(cached) " >&6
8860else
8861  ac_check_lib_save_LIBS=$LIBS
8862LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864/* end confdefs.h.  */
8865
8866/* Override any GCC internal prototype to avoid an error.
8867   Use char because int might match the return type of a GCC
8868   builtin and then its argument prototype would still apply.  */
8869#ifdef __cplusplus
8870extern "C"
8871#endif
8872char IceConnectionNumber ();
8873int
8874main ()
8875{
8876return IceConnectionNumber ();
8877  ;
8878  return 0;
8879}
8880_ACEOF
8881if ac_fn_c_try_link "$LINENO"; then :
8882  ac_cv_lib_ICE_IceConnectionNumber=yes
8883else
8884  ac_cv_lib_ICE_IceConnectionNumber=no
8885fi
8886rm -f core conftest.err conftest.$ac_objext \
8887    conftest$ac_exeext conftest.$ac_ext
8888LIBS=$ac_check_lib_save_LIBS
8889fi
8890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8891$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8892if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8893  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8894fi
8895
8896  LDFLAGS=$ac_save_LDFLAGS
8897
8898fi
8899
8900
8901        if test "$zOSUnix" = "yes"; then
8902    CFLAGS="$CFLAGS -W c,dll"
8903    LDFLAGS="$LDFLAGS -W l,dll"
8904    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
8905  fi
8906
8907
8908  if test -d "$x_includes" && test ! -d "$x_libraries"; then
8909    x_libraries=`echo "$x_includes" | sed s/include/lib/`
8910    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5
8911$as_echo "Corrected X libraries to $x_libraries" >&6; }
8912    X_LIBS="$X_LIBS -L$x_libraries"
8913    if test "`(uname) 2>/dev/null`" = SunOS &&
8914					 uname -r | grep '^5' >/dev/null; then
8915      X_LIBS="$X_LIBS -R $x_libraries"
8916    fi
8917  fi
8918
8919  if test -d "$x_libraries" && test ! -d "$x_includes"; then
8920    x_includes=`echo "$x_libraries" | sed s/lib/include/`
8921    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5
8922$as_echo "Corrected X includes to $x_includes" >&6; }
8923    X_CFLAGS="$X_CFLAGS -I$x_includes"
8924  fi
8925
8926    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
8927    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
8928    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
8929
8930
8931        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5
8932$as_echo_n "checking if X11 header files can be found... " >&6; }
8933  cflags_save=$CFLAGS
8934  CFLAGS="$CFLAGS $X_CFLAGS"
8935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936/* end confdefs.h.  */
8937#include <X11/Xlib.h>
8938#include <X11/Intrinsic.h>
8939int
8940main ()
8941{
8942
8943  ;
8944  return 0;
8945}
8946_ACEOF
8947if ac_fn_c_try_compile "$LINENO"; then :
8948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8949$as_echo "yes" >&6; }
8950else
8951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952$as_echo "no" >&6; }; no_x=yes
8953fi
8954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8955  CFLAGS=$cflags_save
8956
8957  if test "${no_x-no}" = yes; then
8958    with_x=no
8959  else
8960    $as_echo "#define HAVE_X11 1" >>confdefs.h
8961
8962    X_LIB="-lXt -lX11";
8963
8964
8965    ac_save_LDFLAGS="$LDFLAGS"
8966    LDFLAGS="-L$x_libraries $LDFLAGS"
8967
8968            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
8969$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
8970if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then :
8971  $as_echo_n "(cached) " >&6
8972else
8973  ac_check_lib_save_LIBS=$LIBS
8974LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
8975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976/* end confdefs.h.  */
8977
8978/* Override any GCC internal prototype to avoid an error.
8979   Use char because int might match the return type of a GCC
8980   builtin and then its argument prototype would still apply.  */
8981#ifdef __cplusplus
8982extern "C"
8983#endif
8984char _XdmcpAuthDoIt ();
8985int
8986main ()
8987{
8988return _XdmcpAuthDoIt ();
8989  ;
8990  return 0;
8991}
8992_ACEOF
8993if ac_fn_c_try_link "$LINENO"; then :
8994  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
8995else
8996  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
8997fi
8998rm -f core conftest.err conftest.$ac_objext \
8999    conftest$ac_exeext conftest.$ac_ext
9000LIBS=$ac_check_lib_save_LIBS
9001fi
9002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
9003$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
9004if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then :
9005  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
9006fi
9007
9008
9009                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5
9010$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
9011if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then :
9012  $as_echo_n "(cached) " >&6
9013else
9014  ac_check_lib_save_LIBS=$LIBS
9015LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017/* end confdefs.h.  */
9018
9019/* Override any GCC internal prototype to avoid an error.
9020   Use char because int might match the return type of a GCC
9021   builtin and then its argument prototype would still apply.  */
9022#ifdef __cplusplus
9023extern "C"
9024#endif
9025char IceOpenConnection ();
9026int
9027main ()
9028{
9029return IceOpenConnection ();
9030  ;
9031  return 0;
9032}
9033_ACEOF
9034if ac_fn_c_try_link "$LINENO"; then :
9035  ac_cv_lib_ICE_IceOpenConnection=yes
9036else
9037  ac_cv_lib_ICE_IceOpenConnection=no
9038fi
9039rm -f core conftest.err conftest.$ac_objext \
9040    conftest$ac_exeext conftest.$ac_ext
9041LIBS=$ac_check_lib_save_LIBS
9042fi
9043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
9044$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
9045if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then :
9046  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
9047fi
9048
9049
9050        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
9051    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
9052$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
9053if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then :
9054  $as_echo_n "(cached) " >&6
9055else
9056  ac_check_lib_save_LIBS=$LIBS
9057LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
9058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059/* end confdefs.h.  */
9060
9061/* Override any GCC internal prototype to avoid an error.
9062   Use char because int might match the return type of a GCC
9063   builtin and then its argument prototype would still apply.  */
9064#ifdef __cplusplus
9065extern "C"
9066#endif
9067char XpmCreatePixmapFromData ();
9068int
9069main ()
9070{
9071return XpmCreatePixmapFromData ();
9072  ;
9073  return 0;
9074}
9075_ACEOF
9076if ac_fn_c_try_link "$LINENO"; then :
9077  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
9078else
9079  ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
9080fi
9081rm -f core conftest.err conftest.$ac_objext \
9082    conftest$ac_exeext conftest.$ac_ext
9083LIBS=$ac_check_lib_save_LIBS
9084fi
9085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
9086$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
9087if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then :
9088  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
9089fi
9090
9091
9092        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5
9093$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
9094    cflags_save=$CFLAGS
9095        if test "$GCC" = yes; then
9096      CFLAGS="$CFLAGS $X_CFLAGS -Werror"
9097    else
9098      CFLAGS="$CFLAGS $X_CFLAGS"
9099    fi
9100    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101/* end confdefs.h.  */
9102#include <X11/Xlib.h>
9103int
9104main ()
9105{
9106
9107  ;
9108  return 0;
9109}
9110_ACEOF
9111if ac_fn_c_try_compile "$LINENO"; then :
9112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113$as_echo "no" >&6; }
9114else
9115  CFLAGS="$CFLAGS -Wno-implicit-int"
9116	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117/* end confdefs.h.  */
9118#include <X11/Xlib.h>
9119int
9120main ()
9121{
9122
9123  ;
9124  return 0;
9125}
9126_ACEOF
9127if ac_fn_c_try_compile "$LINENO"; then :
9128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9129$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
9130else
9131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
9132$as_echo "test failed" >&6; }
9133
9134fi
9135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9136
9137fi
9138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9139    CFLAGS=$cflags_save
9140
9141    LDFLAGS="$ac_save_LDFLAGS"
9142
9143    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5
9144$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
9145    if ${ac_cv_small_wchar_t+:} false; then :
9146  $as_echo_n "(cached) " >&6
9147else
9148  if test "$cross_compiling" = yes; then :
9149  as_fn_error $? "failed to compile test program" "$LINENO" 5
9150else
9151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152/* end confdefs.h.  */
9153
9154#include <X11/Xlib.h>
9155#if STDC_HEADERS
9156# include <stdlib.h>
9157# include <stddef.h>
9158#endif
9159		main()
9160		{
9161		  if (sizeof(wchar_t) <= 2)
9162		    exit(1);
9163		  exit(0);
9164		}
9165_ACEOF
9166if ac_fn_c_try_run "$LINENO"; then :
9167  ac_cv_small_wchar_t="no"
9168else
9169  ac_cv_small_wchar_t="yes"
9170fi
9171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9172  conftest.$ac_objext conftest.beam conftest.$ac_ext
9173fi
9174
9175fi
9176
9177    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5
9178$as_echo "$ac_cv_small_wchar_t" >&6; }
9179    if test "x$ac_cv_small_wchar_t" = "xyes" ; then
9180      $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h
9181
9182    fi
9183
9184  fi
9185fi
9186
9187if test "x$with_x" = xno -a "x$with_x_arg" = xyes; then
9188    as_fn_error $? "could not configure X" "$LINENO" 5
9189fi
9190
9191test "x$with_x" = xno -a "x$HAIKU" != "xyes" -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
9192
9193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5
9194$as_echo_n "checking --enable-gui argument... " >&6; }
9195# Check whether --enable-gui was given.
9196if test "${enable_gui+set}" = set; then :
9197  enableval=$enable_gui;
9198else
9199  enable_gui="auto"
9200fi
9201
9202
9203enable_gui_canon=`echo "_$enable_gui" | \
9204	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
9205
9206SKIP_GTK2=YES
9207SKIP_GTK3=YES
9208SKIP_GNOME=YES
9209SKIP_MOTIF=YES
9210SKIP_ATHENA=YES
9211SKIP_NEXTAW=YES
9212SKIP_PHOTON=YES
9213SKIP_HAIKU=YES
9214SKIP_CARBON=YES
9215GUITYPE=NONE
9216
9217if test "x$HAIKU" = "xyes"; then
9218  SKIP_HAIKU=
9219  case "$enable_gui_canon" in
9220    no)     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9221$as_echo "no GUI support" >&6; }
9222            SKIP_HAIKU=YES ;;
9223    yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
9224$as_echo "yes - automatic GUI support" >&6; } ;;
9225    auto)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5
9226$as_echo "auto - automatic GUI support" >&6; } ;;
9227    haiku)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Haiku GUI support" >&5
9228$as_echo "Haiku GUI support" >&6; } ;;
9229    *)      { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9230$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9231            SKIP_HAIKU=YES ;;
9232    esac
9233elif test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
9234  SKIP_PHOTON=
9235  case "$enable_gui_canon" in
9236    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9237$as_echo "no GUI support" >&6; }
9238		SKIP_PHOTON=YES ;;
9239    yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatic GUI support" >&5
9240$as_echo "automatic GUI support" >&6; }
9241    		gui_auto=yes ;;
9242    photon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5
9243$as_echo "Photon GUI support" >&6; } ;;
9244    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9245$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9246		SKIP_PHOTON=YES ;;
9247  esac
9248
9249elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then
9250  SKIP_CARBON=
9251  case "$enable_gui_canon" in
9252    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9253$as_echo "no GUI support" >&6; }
9254		SKIP_CARBON=YES ;;
9255    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
9256$as_echo "yes - automatic GUI support" >&6; }
9257    		gui_auto=yes ;;
9258    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5
9259$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; }
9260		SKIP_CARBON=YES ;;
9261    carbon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5
9262$as_echo "Carbon GUI support" >&6; } ;;
9263    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9264$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9265		SKIP_CARBON=YES ;;
9266  esac
9267
9268else
9269
9270  case "$enable_gui_canon" in
9271    no|none)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9272$as_echo "no GUI support" >&6; } ;;
9273    yes|""|auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5
9274$as_echo "yes/auto - automatic GUI support" >&6; }
9275		gui_auto=yes
9276		SKIP_GTK2=
9277		SKIP_GNOME=
9278		SKIP_MOTIF=
9279		SKIP_ATHENA=
9280		SKIP_NEXTAW=
9281		SKIP_CARBON=;;
9282    gtk2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5
9283$as_echo "GTK+ 2.x GUI support" >&6; }
9284		SKIP_GTK2=;;
9285    gnome2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5
9286$as_echo "GNOME 2.x GUI support" >&6; }
9287		SKIP_GNOME=
9288		SKIP_GTK2=;;
9289    gtk3)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5
9290$as_echo "GTK+ 3.x GUI support" >&6; }
9291		SKIP_GTK3=;;
9292    motif)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5
9293$as_echo "Motif GUI support" >&6; }
9294		SKIP_MOTIF=;;
9295    athena)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5
9296$as_echo "Athena GUI support" >&6; }
9297		SKIP_ATHENA=;;
9298    nextaw)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5
9299$as_echo "neXtaw GUI support" >&6; }
9300		SKIP_NEXTAW=;;
9301    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9302$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
9303  esac
9304
9305fi
9306
9307if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
9308				-a "$enable_gui_canon" != "gnome2"; then
9309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5
9310$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
9311  # Check whether --enable-gtk2-check was given.
9312if test "${enable_gtk2_check+set}" = set; then :
9313  enableval=$enable_gtk2_check;
9314else
9315  enable_gtk2_check="yes"
9316fi
9317
9318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5
9319$as_echo "$enable_gtk2_check" >&6; }
9320  if test "x$enable_gtk2_check" = "xno"; then
9321    SKIP_GTK2=YES
9322    SKIP_GNOME=YES
9323  fi
9324fi
9325
9326if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then
9327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5
9328$as_echo_n "checking whether or not to look for GNOME... " >&6; }
9329  # Check whether --enable-gnome-check was given.
9330if test "${enable_gnome_check+set}" = set; then :
9331  enableval=$enable_gnome_check;
9332else
9333  enable_gnome_check="no"
9334fi
9335
9336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5
9337$as_echo "$enable_gnome_check" >&6; }
9338  if test "x$enable_gnome_check" = "xno"; then
9339    SKIP_GNOME=YES
9340  fi
9341fi
9342
9343if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then
9344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5
9345$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; }
9346  # Check whether --enable-gtk3-check was given.
9347if test "${enable_gtk3_check+set}" = set; then :
9348  enableval=$enable_gtk3_check;
9349else
9350  enable_gtk3_check="yes"
9351fi
9352
9353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5
9354$as_echo "$enable_gtk3_check" >&6; }
9355  if test "x$enable_gtk3_check" = "xno"; then
9356    SKIP_GTK3=YES
9357  fi
9358fi
9359
9360if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
9361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5
9362$as_echo_n "checking whether or not to look for Motif... " >&6; }
9363  # Check whether --enable-motif-check was given.
9364if test "${enable_motif_check+set}" = set; then :
9365  enableval=$enable_motif_check;
9366else
9367  enable_motif_check="yes"
9368fi
9369
9370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5
9371$as_echo "$enable_motif_check" >&6; }
9372  if test "x$enable_motif_check" = "xno"; then
9373    SKIP_MOTIF=YES
9374  fi
9375fi
9376
9377if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
9378  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5
9379$as_echo_n "checking whether or not to look for Athena... " >&6; }
9380  # Check whether --enable-athena-check was given.
9381if test "${enable_athena_check+set}" = set; then :
9382  enableval=$enable_athena_check;
9383else
9384  enable_athena_check="yes"
9385fi
9386
9387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5
9388$as_echo "$enable_athena_check" >&6; }
9389  if test "x$enable_athena_check" = "xno"; then
9390    SKIP_ATHENA=YES
9391  fi
9392fi
9393
9394if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
9395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5
9396$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
9397  # Check whether --enable-nextaw-check was given.
9398if test "${enable_nextaw_check+set}" = set; then :
9399  enableval=$enable_nextaw_check;
9400else
9401  enable_nextaw_check="yes"
9402fi
9403
9404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5
9405$as_echo "$enable_nextaw_check" >&6; };
9406  if test "x$enable_nextaw_check" = "xno"; then
9407    SKIP_NEXTAW=YES
9408  fi
9409fi
9410
9411if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
9412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5
9413$as_echo_n "checking whether or not to look for Carbon... " >&6; }
9414  # Check whether --enable-carbon-check was given.
9415if test "${enable_carbon_check+set}" = set; then :
9416  enableval=$enable_carbon_check;
9417else
9418  enable_carbon_check="yes"
9419fi
9420
9421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5
9422$as_echo "$enable_carbon_check" >&6; };
9423  if test "x$enable_carbon_check" = "xno"; then
9424    SKIP_CARBON=YES
9425  fi
9426fi
9427
9428
9429if test "x$MACOS_X" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
9430  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5
9431$as_echo_n "checking for Carbon GUI... " >&6; }
9432    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9433$as_echo "yes" >&6; };
9434  GUITYPE=CARBONGUI
9435  if test "$VIMNAME" = "vim"; then
9436    VIMNAME=Vim
9437  fi
9438
9439  if test "x$MACARCH" = "xboth"; then
9440    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
9441  else
9442    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
9443  fi
9444
9445    if test x$prefix = xNONE; then
9446    prefix=/Applications
9447  fi
9448
9449    datadir='${prefix}/Vim.app/Contents/Resources'
9450
9451    SKIP_GTK2=YES;
9452  SKIP_GNOME=YES;
9453  SKIP_MOTIF=YES;
9454  SKIP_ATHENA=YES;
9455  SKIP_NEXTAW=YES;
9456  SKIP_PHOTON=YES;
9457  SKIP_HAIKU=YES;
9458  SKIP_CARBON=YES
9459fi
9460
9461
9462
9463
9464
9465
9466
9467if test "X$PKG_CONFIG" = "X"; then
9468  if test -n "$ac_tool_prefix"; then
9469  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9470set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9472$as_echo_n "checking for $ac_word... " >&6; }
9473if ${ac_cv_path_PKG_CONFIG+:} false; then :
9474  $as_echo_n "(cached) " >&6
9475else
9476  case $PKG_CONFIG in
9477  [\\/]* | ?:[\\/]*)
9478  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9479  ;;
9480  *)
9481  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9482for as_dir in $PATH
9483do
9484  IFS=$as_save_IFS
9485  test -z "$as_dir" && as_dir=.
9486    for ac_exec_ext in '' $ac_executable_extensions; do
9487  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9488    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9490    break 2
9491  fi
9492done
9493  done
9494IFS=$as_save_IFS
9495
9496  ;;
9497esac
9498fi
9499PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9500if test -n "$PKG_CONFIG"; then
9501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9502$as_echo "$PKG_CONFIG" >&6; }
9503else
9504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9505$as_echo "no" >&6; }
9506fi
9507
9508
9509fi
9510if test -z "$ac_cv_path_PKG_CONFIG"; then
9511  ac_pt_PKG_CONFIG=$PKG_CONFIG
9512  # Extract the first word of "pkg-config", so it can be a program name with args.
9513set dummy pkg-config; ac_word=$2
9514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9515$as_echo_n "checking for $ac_word... " >&6; }
9516if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9517  $as_echo_n "(cached) " >&6
9518else
9519  case $ac_pt_PKG_CONFIG in
9520  [\\/]* | ?:[\\/]*)
9521  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9522  ;;
9523  *)
9524  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9525for as_dir in $PATH
9526do
9527  IFS=$as_save_IFS
9528  test -z "$as_dir" && as_dir=.
9529    for ac_exec_ext in '' $ac_executable_extensions; do
9530  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9531    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9533    break 2
9534  fi
9535done
9536  done
9537IFS=$as_save_IFS
9538
9539  ;;
9540esac
9541fi
9542ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9543if test -n "$ac_pt_PKG_CONFIG"; then
9544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9545$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9546else
9547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9548$as_echo "no" >&6; }
9549fi
9550
9551  if test "x$ac_pt_PKG_CONFIG" = x; then
9552    PKG_CONFIG="no"
9553  else
9554    case $cross_compiling:$ac_tool_warned in
9555yes:)
9556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9558ac_tool_warned=yes ;;
9559esac
9560    PKG_CONFIG=$ac_pt_PKG_CONFIG
9561  fi
9562else
9563  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9564fi
9565
9566fi
9567
9568
9569if test -z "$SKIP_GTK2"; then
9570
9571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9572$as_echo_n "checking --disable-gtktest argument... " >&6; }
9573  # Check whether --enable-gtktest was given.
9574if test "${enable_gtktest+set}" = set; then :
9575  enableval=$enable_gtktest;
9576else
9577  enable_gtktest=yes
9578fi
9579
9580  if test "x$enable_gtktest" = "xyes" ; then
9581    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9582$as_echo "gtk test enabled" >&6; }
9583  else
9584    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9585$as_echo "gtk test disabled" >&6; }
9586  fi
9587
9588  if test "x$PKG_CONFIG" != "xno"; then
9589
9590  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9591  {
9592    no_gtk=""
9593    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9594	  && $PKG_CONFIG --exists gtk+-2.0; then
9595    {
9596      min_gtk_version=2.2.0
9597      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9598$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9599                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9600      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9601      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9602      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9603	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9604      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9605	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9606      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9607	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9608    }
9609    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9610	  && $PKG_CONFIG --exists gtk+-3.0; then
9611    {
9612      min_gtk_version=2.2.0
9613      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9614$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9615
9616      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9617      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9618      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9619      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9620	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9621      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9622	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9623      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9624	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9625    }
9626    else
9627      no_gtk=yes
9628    fi
9629
9630    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9631    {
9632      ac_save_CFLAGS="$CFLAGS"
9633      ac_save_LIBS="$LIBS"
9634      CFLAGS="$CFLAGS $GTK_CFLAGS"
9635      LIBS="$LIBS $GTK_LIBS"
9636
9637                        rm -f conf.gtktest
9638      if test "$cross_compiling" = yes; then :
9639  echo $ac_n "cross compiling; assumed OK... $ac_c"
9640else
9641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642/* end confdefs.h.  */
9643
9644#include <gtk/gtk.h>
9645#include <stdio.h>
9646#if STDC_HEADERS
9647# include <stdlib.h>
9648# include <stddef.h>
9649#endif
9650
9651int
9652main ()
9653{
9654int major, minor, micro;
9655char *tmp_version;
9656
9657system ("touch conf.gtktest");
9658
9659/* HP/UX 9 (%@#!) writes to sscanf strings */
9660tmp_version = g_strdup("$min_gtk_version");
9661if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9662   printf("%s, bad version string\n", "$min_gtk_version");
9663   exit(1);
9664 }
9665
9666if ((gtk_major_version > major) ||
9667    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9668    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9669				     (gtk_micro_version >= micro)))
9670{
9671    return 0;
9672}
9673return 1;
9674}
9675
9676_ACEOF
9677if ac_fn_c_try_run "$LINENO"; then :
9678
9679else
9680  no_gtk=yes
9681fi
9682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9683  conftest.$ac_objext conftest.beam conftest.$ac_ext
9684fi
9685
9686      CFLAGS="$ac_save_CFLAGS"
9687      LIBS="$ac_save_LIBS"
9688    }
9689    fi
9690    if test "x$no_gtk" = x ; then
9691      if test "x$enable_gtktest" = "xyes"; then
9692	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9693$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9694      else
9695	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9696$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9697      fi
9698      GUI_LIB_LOC="$GTK_LIBDIR"
9699		 GTK_LIBNAME="$GTK_LIBS"
9700		GUI_INC_LOC="$GTK_CFLAGS"
9701    else
9702    {
9703      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704$as_echo "no" >&6; }
9705      GTK_CFLAGS=""
9706      GTK_LIBS=""
9707      :
9708      if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then
9709	as_fn_error $? "could not configure GTK" "$LINENO" 5
9710      fi
9711    }
9712    fi
9713  }
9714  else
9715    GTK_CFLAGS=""
9716    GTK_LIBS=""
9717    :
9718  fi
9719
9720
9721  rm -f conf.gtktest
9722
9723    if test "x$GTK_CFLAGS" != "x"; then
9724      SKIP_GTK3=YES
9725      SKIP_ATHENA=YES
9726      SKIP_NEXTAW=YES
9727      SKIP_MOTIF=YES
9728      GUITYPE=GTK
9729
9730    fi
9731  fi
9732  if test "x$GUITYPE" = "xGTK"; then
9733                if test -z "$SKIP_GNOME"; then
9734    {
9735
9736
9737
9738
9739
9740
9741# Check whether --with-gnome-includes was given.
9742if test "${with_gnome_includes+set}" = set; then :
9743  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
9744
9745fi
9746
9747
9748
9749# Check whether --with-gnome-libs was given.
9750if test "${with_gnome_libs+set}" = set; then :
9751  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9752
9753fi
9754
9755
9756
9757# Check whether --with-gnome was given.
9758if test "${with_gnome+set}" = set; then :
9759  withval=$with_gnome; if test x$withval = xyes; then
9760      want_gnome=yes
9761      have_gnome=yes
9762    else
9763      if test "x$withval" = xno; then
9764	want_gnome=no
9765      else
9766	want_gnome=yes
9767	LDFLAGS="$LDFLAGS -L$withval/lib"
9768	CFLAGS="$CFLAGS -I$withval/include"
9769	gnome_prefix=$withval/lib
9770      fi
9771    fi
9772else
9773  want_gnome=yes
9774fi
9775
9776
9777  if test "x$want_gnome" = xyes; then
9778  {
9779    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5
9780$as_echo_n "checking for libgnomeui-2.0... " >&6; }
9781    if $PKG_CONFIG --exists libgnomeui-2.0; then
9782      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9783$as_echo "yes" >&6; }
9784      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
9785      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
9786      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
9787
9788                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5
9789$as_echo_n "checking for FreeBSD... " >&6; }
9790      if test "`(uname) 2>/dev/null`" = FreeBSD; then
9791	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9792$as_echo "yes" >&6; }
9793	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9794	GNOME_LIBS="$GNOME_LIBS -pthread"
9795      else
9796	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9797$as_echo "no" >&6; }
9798      fi
9799      have_gnome=yes
9800    else
9801      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9802$as_echo "not found" >&6; }
9803      if test "x" = xfail; then
9804	as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5
9805      fi
9806    fi
9807  }
9808  fi
9809
9810      if test "x$have_gnome" = xyes ; then
9811	$as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h
9812
9813	GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9814	GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9815      fi
9816    }
9817    fi
9818  fi
9819fi
9820
9821
9822if test -z "$SKIP_GTK3"; then
9823
9824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9825$as_echo_n "checking --disable-gtktest argument... " >&6; }
9826  # Check whether --enable-gtktest was given.
9827if test "${enable_gtktest+set}" = set; then :
9828  enableval=$enable_gtktest;
9829else
9830  enable_gtktest=yes
9831fi
9832
9833  if test "x$enable_gtktest" = "xyes" ; then
9834    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9835$as_echo "gtk test enabled" >&6; }
9836  else
9837    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9838$as_echo "gtk test disabled" >&6; }
9839  fi
9840
9841  if test "x$PKG_CONFIG" != "xno"; then
9842
9843  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9844  {
9845    no_gtk=""
9846    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9847	  && $PKG_CONFIG --exists gtk+-2.0; then
9848    {
9849      min_gtk_version=3.0.0
9850      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9851$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9852                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9853      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9854      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9855      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9856	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9857      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9858	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9859      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9860	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9861    }
9862    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9863	  && $PKG_CONFIG --exists gtk+-3.0; then
9864    {
9865      min_gtk_version=3.0.0
9866      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9867$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9868
9869      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9870      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9871      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9872      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9873	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9874      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9875	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9876      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9877	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9878    }
9879    else
9880      no_gtk=yes
9881    fi
9882
9883    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9884    {
9885      ac_save_CFLAGS="$CFLAGS"
9886      ac_save_LIBS="$LIBS"
9887      CFLAGS="$CFLAGS $GTK_CFLAGS"
9888      LIBS="$LIBS $GTK_LIBS"
9889
9890                        rm -f conf.gtktest
9891      if test "$cross_compiling" = yes; then :
9892  echo $ac_n "cross compiling; assumed OK... $ac_c"
9893else
9894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895/* end confdefs.h.  */
9896
9897#include <gtk/gtk.h>
9898#include <stdio.h>
9899#if STDC_HEADERS
9900# include <stdlib.h>
9901# include <stddef.h>
9902#endif
9903
9904int
9905main ()
9906{
9907int major, minor, micro;
9908char *tmp_version;
9909
9910system ("touch conf.gtktest");
9911
9912/* HP/UX 9 (%@#!) writes to sscanf strings */
9913tmp_version = g_strdup("$min_gtk_version");
9914if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9915   printf("%s, bad version string\n", "$min_gtk_version");
9916   exit(1);
9917 }
9918
9919if ((gtk_major_version > major) ||
9920    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9921    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9922				     (gtk_micro_version >= micro)))
9923{
9924    return 0;
9925}
9926return 1;
9927}
9928
9929_ACEOF
9930if ac_fn_c_try_run "$LINENO"; then :
9931
9932else
9933  no_gtk=yes
9934fi
9935rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9936  conftest.$ac_objext conftest.beam conftest.$ac_ext
9937fi
9938
9939      CFLAGS="$ac_save_CFLAGS"
9940      LIBS="$ac_save_LIBS"
9941    }
9942    fi
9943    if test "x$no_gtk" = x ; then
9944      if test "x$enable_gtktest" = "xyes"; then
9945	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9946$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9947      else
9948	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9949$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9950      fi
9951      GUI_LIB_LOC="$GTK_LIBDIR"
9952		 GTK_LIBNAME="$GTK_LIBS"
9953		GUI_INC_LOC="$GTK_CFLAGS"
9954    else
9955    {
9956      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9957$as_echo "no" >&6; }
9958      GTK_CFLAGS=""
9959      GTK_LIBS=""
9960      :
9961      if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then
9962	as_fn_error $? "could not configure GTK" "$LINENO" 5
9963      fi
9964    }
9965    fi
9966  }
9967  else
9968    GTK_CFLAGS=""
9969    GTK_LIBS=""
9970    :
9971  fi
9972
9973
9974  rm -f conf.gtktest
9975
9976    if test "x$GTK_CFLAGS" != "x"; then
9977      SKIP_GTK2=YES
9978      SKIP_GNOME=YES
9979      SKIP_ATHENA=YES
9980      SKIP_NEXTAW=YES
9981      SKIP_MOTIF=YES
9982      GUITYPE=GTK
9983
9984      $as_echo "#define USE_GTK3 1" >>confdefs.h
9985
9986    fi
9987  fi
9988fi
9989
9990if test "x$GUITYPE" = "xGTK"; then
9991  { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5
9992$as_echo_n "checking version of Gdk-Pixbuf... " >&6; }
9993  gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0`
9994  if test "x$gdk_pixbuf_version" != x ; then
9995    gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \
9996      sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'`
9997    if test "x$gdk_pixbuf_version_minor" != x -a \
9998	$gdk_pixbuf_version_minor -ge 31 ; then
9999      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5
10000$as_echo "OK." >&6; }
10001      # Extract the first word of "glib-compile-resources", so it can be a program name with args.
10002set dummy glib-compile-resources; ac_word=$2
10003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10004$as_echo_n "checking for $ac_word... " >&6; }
10005if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then :
10006  $as_echo_n "(cached) " >&6
10007else
10008  case $GLIB_COMPILE_RESOURCES in
10009  [\\/]* | ?:[\\/]*)
10010  ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path.
10011  ;;
10012  *)
10013  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014for as_dir in $PATH
10015do
10016  IFS=$as_save_IFS
10017  test -z "$as_dir" && as_dir=.
10018    for ac_exec_ext in '' $ac_executable_extensions; do
10019  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10020    ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext"
10021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10022    break 2
10023  fi
10024done
10025  done
10026IFS=$as_save_IFS
10027
10028  test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no"
10029  ;;
10030esac
10031fi
10032GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES
10033if test -n "$GLIB_COMPILE_RESOURCES"; then
10034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
10035$as_echo "$GLIB_COMPILE_RESOURCES" >&6; }
10036else
10037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038$as_echo "no" >&6; }
10039fi
10040
10041
10042      { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5
10043$as_echo_n "checking glib-compile-resources... " >&6; }
10044      if test "x$GLIB_COMPILE_RESOURCES" = xno ; then
10045	GLIB_COMPILE_RESOURCES=""
10046	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5
10047$as_echo "cannot be found in PATH." >&6; }
10048      else
10049	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5
10050$as_echo "usable." >&6; }
10051	$as_echo "#define USE_GRESOURCE 1" >>confdefs.h
10052
10053	GRESOURCE_SRC="auto/gui_gtk_gresources.c"
10054	GRESOURCE_OBJ="objects/gui_gtk_gresources.o"
10055      fi
10056    else
10057      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5
10058$as_echo "not usable." >&6; }
10059    fi
10060  else
10061    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5
10062$as_echo "cannot obtain from pkg_config." >&6; }
10063  fi
10064
10065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5
10066$as_echo_n "checking --disable-icon-cache-update argument... " >&6; }
10067  # Check whether --enable-icon_cache_update was given.
10068if test "${enable_icon_cache_update+set}" = set; then :
10069  enableval=$enable_icon_cache_update;
10070else
10071  enable_icon_cache_update="yes"
10072fi
10073
10074  if test "$enable_icon_cache_update" = "yes"; then
10075    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
10076$as_echo "not set" >&6; }
10077    # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args.
10078set dummy gtk-update-icon-cache; ac_word=$2
10079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10080$as_echo_n "checking for $ac_word... " >&6; }
10081if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then :
10082  $as_echo_n "(cached) " >&6
10083else
10084  case $GTK_UPDATE_ICON_CACHE in
10085  [\\/]* | ?:[\\/]*)
10086  ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path.
10087  ;;
10088  *)
10089  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090for as_dir in $PATH
10091do
10092  IFS=$as_save_IFS
10093  test -z "$as_dir" && as_dir=.
10094    for ac_exec_ext in '' $ac_executable_extensions; do
10095  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10096    ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext"
10097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10098    break 2
10099  fi
10100done
10101  done
10102IFS=$as_save_IFS
10103
10104  test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no"
10105  ;;
10106esac
10107fi
10108GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE
10109if test -n "$GTK_UPDATE_ICON_CACHE"; then
10110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5
10111$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; }
10112else
10113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114$as_echo "no" >&6; }
10115fi
10116
10117
10118    if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then
10119      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
10120$as_echo "not found in PATH." >&6; }
10121    fi
10122  else
10123    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
10124$as_echo "update disabled" >&6; }
10125  fi
10126
10127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5
10128$as_echo_n "checking --disable-desktop-database-update argument... " >&6; }
10129  # Check whether --enable-desktop_database_update was given.
10130if test "${enable_desktop_database_update+set}" = set; then :
10131  enableval=$enable_desktop_database_update;
10132else
10133  enable_desktop_database_update="yes"
10134fi
10135
10136  if test "$enable_desktop_database_update" = "yes"; then
10137    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
10138$as_echo "not set" >&6; }
10139    # Extract the first word of "update-desktop-database", so it can be a program name with args.
10140set dummy update-desktop-database; ac_word=$2
10141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10142$as_echo_n "checking for $ac_word... " >&6; }
10143if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
10144  $as_echo_n "(cached) " >&6
10145else
10146  case $UPDATE_DESKTOP_DATABASE in
10147  [\\/]* | ?:[\\/]*)
10148  ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
10149  ;;
10150  *)
10151  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152for as_dir in $PATH
10153do
10154  IFS=$as_save_IFS
10155  test -z "$as_dir" && as_dir=.
10156    for ac_exec_ext in '' $ac_executable_extensions; do
10157  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10158    ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
10159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10160    break 2
10161  fi
10162done
10163  done
10164IFS=$as_save_IFS
10165
10166  test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
10167  ;;
10168esac
10169fi
10170UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
10171if test -n "$UPDATE_DESKTOP_DATABASE"; then
10172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
10173$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
10174else
10175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10176$as_echo "no" >&6; }
10177fi
10178
10179
10180    if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then
10181      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
10182$as_echo "not found in PATH." >&6; }
10183    fi
10184  else
10185    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
10186$as_echo "update disabled" >&6; }
10187  fi
10188fi
10189
10190
10191
10192
10193
10194
10195
10196if test -z "$SKIP_MOTIF"; then
10197  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"
10198    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
10199
10200  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5
10201$as_echo_n "checking for location of Motif GUI includes... " >&6; }
10202  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
10203  GUI_INC_LOC=
10204  for try in $gui_includes; do
10205    if test -f "$try/Xm/Xm.h"; then
10206      GUI_INC_LOC=$try
10207    fi
10208  done
10209  if test -n "$GUI_INC_LOC"; then
10210    if test "$GUI_INC_LOC" = /usr/include; then
10211      GUI_INC_LOC=
10212      { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
10213$as_echo "in default path" >&6; }
10214    else
10215      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5
10216$as_echo "$GUI_INC_LOC" >&6; }
10217    fi
10218  else
10219    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
10220$as_echo "<not found>" >&6; }
10221    SKIP_MOTIF=YES
10222  fi
10223fi
10224
10225
10226if test -z "$SKIP_MOTIF"; then
10227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5
10228$as_echo_n "checking --with-motif-lib argument... " >&6; }
10229
10230# Check whether --with-motif-lib was given.
10231if test "${with_motif_lib+set}" = set; then :
10232  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
10233fi
10234
10235
10236  if test -n "$MOTIF_LIBNAME"; then
10237    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5
10238$as_echo "$MOTIF_LIBNAME" >&6; }
10239    GUI_LIB_LOC=
10240  else
10241    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10242$as_echo "no" >&6; }
10243
10244        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
10245
10246            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
10247$as_echo_n "checking for location of Motif GUI libs... " >&6; }
10248    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"
10249    GUI_LIB_LOC=
10250    for try in $gui_libs; do
10251      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
10252	if test -f "$libtry"; then
10253	  GUI_LIB_LOC=$try
10254	fi
10255      done
10256    done
10257    if test -n "$GUI_LIB_LOC"; then
10258            if test "$GUI_LIB_LOC" = /usr/lib \
10259	   -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \
10260	   -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then
10261	GUI_LIB_LOC=
10262	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
10263$as_echo "in default path" >&6; }
10264      else
10265	if test -n "$GUI_LIB_LOC"; then
10266	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5
10267$as_echo "$GUI_LIB_LOC" >&6; }
10268	  if test "`(uname) 2>/dev/null`" = SunOS &&
10269					 uname -r | grep '^5' >/dev/null; then
10270	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
10271	  fi
10272	fi
10273      fi
10274      MOTIF_LIBNAME=-lXm
10275    else
10276      { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
10277$as_echo "<not found>" >&6; }
10278      SKIP_MOTIF=YES
10279    fi
10280  fi
10281fi
10282
10283if test -z "$SKIP_MOTIF"; then
10284  SKIP_ATHENA=YES
10285  SKIP_NEXTAW=YES
10286  GUITYPE=MOTIF
10287
10288fi
10289
10290
10291GUI_X_LIBS=
10292
10293if test -z "$SKIP_ATHENA"; then
10294  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5
10295$as_echo_n "checking if Athena header files can be found... " >&6; }
10296  cflags_save=$CFLAGS
10297  CFLAGS="$CFLAGS $X_CFLAGS"
10298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299/* end confdefs.h.  */
10300
10301#include <X11/Intrinsic.h>
10302#include <X11/Xaw/Paned.h>
10303int
10304main ()
10305{
10306
10307  ;
10308  return 0;
10309}
10310_ACEOF
10311if ac_fn_c_try_compile "$LINENO"; then :
10312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10313$as_echo "yes" >&6; }
10314else
10315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10316$as_echo "no" >&6; }; SKIP_ATHENA=YES
10317fi
10318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10319  CFLAGS=$cflags_save
10320fi
10321
10322if test -z "$SKIP_ATHENA"; then
10323  GUITYPE=ATHENA
10324fi
10325
10326if test -z "$SKIP_NEXTAW"; then
10327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5
10328$as_echo_n "checking if neXtaw header files can be found... " >&6; }
10329  cflags_save=$CFLAGS
10330  CFLAGS="$CFLAGS $X_CFLAGS"
10331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332/* end confdefs.h.  */
10333
10334#include <X11/Intrinsic.h>
10335#include <X11/neXtaw/Paned.h>
10336int
10337main ()
10338{
10339
10340  ;
10341  return 0;
10342}
10343_ACEOF
10344if ac_fn_c_try_compile "$LINENO"; then :
10345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10346$as_echo "yes" >&6; }
10347else
10348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349$as_echo "no" >&6; }; SKIP_NEXTAW=YES
10350fi
10351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10352  CFLAGS=$cflags_save
10353fi
10354
10355if test -z "$SKIP_NEXTAW"; then
10356  GUITYPE=NEXTAW
10357fi
10358
10359if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10360      if test -n "$GUI_INC_LOC"; then
10361    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
10362  fi
10363  if test -n "$GUI_LIB_LOC"; then
10364    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
10365  fi
10366
10367    ldflags_save=$LDFLAGS
10368  LDFLAGS="$X_LIBS $LDFLAGS"
10369  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10370$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10371if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
10372  $as_echo_n "(cached) " >&6
10373else
10374  ac_check_lib_save_LIBS=$LIBS
10375LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10377/* end confdefs.h.  */
10378
10379/* Override any GCC internal prototype to avoid an error.
10380   Use char because int might match the return type of a GCC
10381   builtin and then its argument prototype would still apply.  */
10382#ifdef __cplusplus
10383extern "C"
10384#endif
10385char XShapeQueryExtension ();
10386int
10387main ()
10388{
10389return XShapeQueryExtension ();
10390  ;
10391  return 0;
10392}
10393_ACEOF
10394if ac_fn_c_try_link "$LINENO"; then :
10395  ac_cv_lib_Xext_XShapeQueryExtension=yes
10396else
10397  ac_cv_lib_Xext_XShapeQueryExtension=no
10398fi
10399rm -f core conftest.err conftest.$ac_objext \
10400    conftest$ac_exeext conftest.$ac_ext
10401LIBS=$ac_check_lib_save_LIBS
10402fi
10403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10404$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10405if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
10406  GUI_X_LIBS="-lXext"
10407fi
10408
10409    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5
10410$as_echo_n "checking for wslen in -lw... " >&6; }
10411if ${ac_cv_lib_w_wslen+:} false; then :
10412  $as_echo_n "(cached) " >&6
10413else
10414  ac_check_lib_save_LIBS=$LIBS
10415LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417/* end confdefs.h.  */
10418
10419/* Override any GCC internal prototype to avoid an error.
10420   Use char because int might match the return type of a GCC
10421   builtin and then its argument prototype would still apply.  */
10422#ifdef __cplusplus
10423extern "C"
10424#endif
10425char wslen ();
10426int
10427main ()
10428{
10429return wslen ();
10430  ;
10431  return 0;
10432}
10433_ACEOF
10434if ac_fn_c_try_link "$LINENO"; then :
10435  ac_cv_lib_w_wslen=yes
10436else
10437  ac_cv_lib_w_wslen=no
10438fi
10439rm -f core conftest.err conftest.$ac_objext \
10440    conftest$ac_exeext conftest.$ac_ext
10441LIBS=$ac_check_lib_save_LIBS
10442fi
10443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5
10444$as_echo "$ac_cv_lib_w_wslen" >&6; }
10445if test "x$ac_cv_lib_w_wslen" = xyes; then :
10446  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
10447fi
10448
10449  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
10450$as_echo_n "checking for dlsym in -ldl... " >&6; }
10451if ${ac_cv_lib_dl_dlsym+:} false; then :
10452  $as_echo_n "(cached) " >&6
10453else
10454  ac_check_lib_save_LIBS=$LIBS
10455LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457/* end confdefs.h.  */
10458
10459/* Override any GCC internal prototype to avoid an error.
10460   Use char because int might match the return type of a GCC
10461   builtin and then its argument prototype would still apply.  */
10462#ifdef __cplusplus
10463extern "C"
10464#endif
10465char dlsym ();
10466int
10467main ()
10468{
10469return dlsym ();
10470  ;
10471  return 0;
10472}
10473_ACEOF
10474if ac_fn_c_try_link "$LINENO"; then :
10475  ac_cv_lib_dl_dlsym=yes
10476else
10477  ac_cv_lib_dl_dlsym=no
10478fi
10479rm -f core conftest.err conftest.$ac_objext \
10480    conftest$ac_exeext conftest.$ac_ext
10481LIBS=$ac_check_lib_save_LIBS
10482fi
10483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
10484$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
10485if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
10486  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
10487fi
10488
10489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5
10490$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
10491if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then :
10492  $as_echo_n "(cached) " >&6
10493else
10494  ac_check_lib_save_LIBS=$LIBS
10495LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10497/* end confdefs.h.  */
10498
10499/* Override any GCC internal prototype to avoid an error.
10500   Use char because int might match the return type of a GCC
10501   builtin and then its argument prototype would still apply.  */
10502#ifdef __cplusplus
10503extern "C"
10504#endif
10505char XmuCreateStippledPixmap ();
10506int
10507main ()
10508{
10509return XmuCreateStippledPixmap ();
10510  ;
10511  return 0;
10512}
10513_ACEOF
10514if ac_fn_c_try_link "$LINENO"; then :
10515  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
10516else
10517  ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
10518fi
10519rm -f core conftest.err conftest.$ac_objext \
10520    conftest$ac_exeext conftest.$ac_ext
10521LIBS=$ac_check_lib_save_LIBS
10522fi
10523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
10524$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
10525if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then :
10526  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
10527fi
10528
10529  if test -z "$SKIP_MOTIF"; then
10530    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5
10531$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
10532if ${ac_cv_lib_Xp_XpEndJob+:} false; then :
10533  $as_echo_n "(cached) " >&6
10534else
10535  ac_check_lib_save_LIBS=$LIBS
10536LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538/* end confdefs.h.  */
10539
10540/* Override any GCC internal prototype to avoid an error.
10541   Use char because int might match the return type of a GCC
10542   builtin and then its argument prototype would still apply.  */
10543#ifdef __cplusplus
10544extern "C"
10545#endif
10546char XpEndJob ();
10547int
10548main ()
10549{
10550return XpEndJob ();
10551  ;
10552  return 0;
10553}
10554_ACEOF
10555if ac_fn_c_try_link "$LINENO"; then :
10556  ac_cv_lib_Xp_XpEndJob=yes
10557else
10558  ac_cv_lib_Xp_XpEndJob=no
10559fi
10560rm -f core conftest.err conftest.$ac_objext \
10561    conftest$ac_exeext conftest.$ac_ext
10562LIBS=$ac_check_lib_save_LIBS
10563fi
10564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5
10565$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
10566if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then :
10567  GUI_X_LIBS="-lXp $GUI_X_LIBS"
10568fi
10569
10570  fi
10571  LDFLAGS=$ldflags_save
10572
10573    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5
10574$as_echo_n "checking for extra X11 defines... " >&6; }
10575  NARROW_PROTO=
10576  rm -fr conftestdir
10577  if mkdir conftestdir; then
10578    cd conftestdir
10579    cat > Imakefile <<'EOF'
10580acfindx:
10581	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
10582EOF
10583    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10584      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10585    fi
10586    cd ..
10587    rm -fr conftestdir
10588  fi
10589  if test -z "$NARROW_PROTO"; then
10590    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591$as_echo "no" >&6; }
10592  else
10593    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5
10594$as_echo "$NARROW_PROTO" >&6; }
10595  fi
10596
10597fi
10598
10599if test "$enable_xsmp" = "yes"; then
10600  cppflags_save=$CPPFLAGS
10601  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10602  for ac_header in X11/SM/SMlib.h
10603do :
10604  ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10605if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
10606  cat >>confdefs.h <<_ACEOF
10607#define HAVE_X11_SM_SMLIB_H 1
10608_ACEOF
10609
10610fi
10611
10612done
10613
10614  CPPFLAGS=$cppflags_save
10615fi
10616
10617
10618if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then
10619    cppflags_save=$CPPFLAGS
10620  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10621  for ac_header in X11/xpm.h X11/Sunkeysym.h
10622do :
10623  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10624ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10625if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10626  cat >>confdefs.h <<_ACEOF
10627#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10628_ACEOF
10629
10630fi
10631
10632done
10633
10634
10635    if test ! "$enable_xim" = "no"; then
10636    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5
10637$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10638    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639/* end confdefs.h.  */
10640#include <X11/Xlib.h>
10641_ACEOF
10642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10643  $EGREP "XIMText" >/dev/null 2>&1; then :
10644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10645$as_echo "yes" >&6; }
10646else
10647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5
10648$as_echo "no; xim has been disabled" >&6; }; enable_xim="no"
10649fi
10650rm -f conftest*
10651
10652  fi
10653  CPPFLAGS=$cppflags_save
10654
10655    if test "$enable_xim" = "auto" -a "x$GUITYPE" != "xNONE" ; then
10656    { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5
10657$as_echo "X GUI selected; xim has been enabled" >&6; }
10658    enable_xim="yes"
10659  fi
10660fi
10661
10662if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10663  cppflags_save=$CPPFLAGS
10664  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5
10666$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668/* end confdefs.h.  */
10669
10670#include <X11/Intrinsic.h>
10671#include <X11/Xmu/Editres.h>
10672int
10673main ()
10674{
10675int i; i = 0;
10676  ;
10677  return 0;
10678}
10679_ACEOF
10680if ac_fn_c_try_compile "$LINENO"; then :
10681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10682$as_echo "yes" >&6; }
10683		      $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h
10684
10685else
10686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687$as_echo "no" >&6; }
10688fi
10689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10690  CPPFLAGS=$cppflags_save
10691fi
10692
10693if test -z "$SKIP_MOTIF"; then
10694  cppflags_save=$CPPFLAGS
10695  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10696  if test "$zOSUnix" = "yes"; then
10697	xmheader="Xm/Xm.h"
10698  else
10699	xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h
10700	   Xm/UnhighlightT.h Xm/Notebook.h"
10701  fi
10702  for ac_header in $xmheader
10703do :
10704  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10705ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10706if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10707  cat >>confdefs.h <<_ACEOF
10708#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10709_ACEOF
10710
10711fi
10712
10713done
10714
10715
10716  if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then
10717        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10718$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10719    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720/* end confdefs.h.  */
10721#include <Xm/XpmP.h>
10722int
10723main ()
10724{
10725XpmAttributes_21 attr;
10726  ;
10727  return 0;
10728}
10729_ACEOF
10730if ac_fn_c_try_compile "$LINENO"; then :
10731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10732$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h
10733
10734else
10735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10736$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10737
10738
10739fi
10740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10741  else
10742    $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10743
10744  fi
10745  CPPFLAGS=$cppflags_save
10746fi
10747
10748if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5
10750$as_echo "no GUI selected; xim has been disabled" >&6; }
10751  enable_xim="no"
10752fi
10753if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5
10755$as_echo "no GUI selected; fontset has been disabled" >&6; }
10756  enable_fontset="no"
10757fi
10758if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then
10759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10760$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10761  enable_fontset="no"
10762fi
10763
10764if test -z "$SKIP_HAIKU"; then
10765  GUITYPE=HAIKUGUI
10766fi
10767
10768if test -z "$SKIP_PHOTON"; then
10769  GUITYPE=PHOTONGUI
10770fi
10771
10772
10773
10774
10775
10776
10777if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10778  as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5
10779fi
10780
10781if test "$enable_xim" = "yes"; then
10782  $as_echo "#define FEAT_XIM 1" >>confdefs.h
10783
10784fi
10785if test "$enable_fontset" = "yes"; then
10786  $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h
10787
10788fi
10789
10790
10791
10792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5
10793$as_echo_n "checking for /proc link to executable... " >&6; }
10794if test -L "/proc/self/exe"; then
10795    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5
10796$as_echo "/proc/self/exe" >&6; }
10797  $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h
10798
10799elif test -L "/proc/self/path/a.out"; then
10800    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5
10801$as_echo "/proc/self/path/a.out" >&6; }
10802  $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h
10803
10804elif test -L "/proc/curproc/file"; then
10805    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5
10806$as_echo "/proc/curproc/file" >&6; }
10807  $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h
10808
10809else
10810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811$as_echo "no" >&6; }
10812fi
10813
10814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5
10815$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; }
10816case `uname` in
10817    CYGWIN*|MSYS*)    CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10818$as_echo "yes" >&6; }
10819                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5
10820$as_echo_n "checking for CYGWIN clipboard support... " >&6; }
10821                if test "x$with_x" = "xno" ; then
10822                  OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o
10823                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10824$as_echo "yes" >&6; }
10825                  $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h
10826
10827                else
10828                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5
10829$as_echo "no - using X11" >&6; }
10830                fi ;;
10831
10832    *)          CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833$as_echo "no" >&6; };;
10834esac
10835
10836
10837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5
10838$as_echo_n "checking whether toupper is broken... " >&6; }
10839if ${vim_cv_toupper_broken+:} false; then :
10840  $as_echo_n "(cached) " >&6
10841else
10842
10843    if test "$cross_compiling" = yes; then :
10844
10845    as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5
10846
10847else
10848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849/* end confdefs.h.  */
10850
10851#include "confdefs.h"
10852#include <ctype.h>
10853#if STDC_HEADERS
10854# include <stdlib.h>
10855# include <stddef.h>
10856#endif
10857main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10858
10859_ACEOF
10860if ac_fn_c_try_run "$LINENO"; then :
10861
10862    vim_cv_toupper_broken=yes
10863
10864else
10865
10866    vim_cv_toupper_broken=no
10867
10868fi
10869rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10870  conftest.$ac_objext conftest.beam conftest.$ac_ext
10871fi
10872
10873fi
10874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5
10875$as_echo "$vim_cv_toupper_broken" >&6; }
10876
10877if test "x$vim_cv_toupper_broken" = "xyes" ; then
10878  $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h
10879
10880fi
10881
10882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5
10883$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10885/* end confdefs.h.  */
10886#include <stdio.h>
10887int
10888main ()
10889{
10890printf("(" __DATE__ " " __TIME__ ")");
10891  ;
10892  return 0;
10893}
10894_ACEOF
10895if ac_fn_c_try_compile "$LINENO"; then :
10896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10897$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h
10898
10899else
10900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901$as_echo "no" >&6; }
10902fi
10903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10904
10905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5
10906$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908/* end confdefs.h.  */
10909#include <stdio.h>
10910int
10911main ()
10912{
10913int x __attribute__((unused));
10914  ;
10915  return 0;
10916}
10917_ACEOF
10918if ac_fn_c_try_compile "$LINENO"; then :
10919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10920$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
10921
10922else
10923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10924$as_echo "no" >&6; }
10925fi
10926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10927
10928ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
10929if test "x$ac_cv_header_elf_h" = xyes; then :
10930  HAS_ELF=1
10931fi
10932
10933
10934if test "$HAS_ELF" = 1; then
10935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5
10936$as_echo_n "checking for main in -lelf... " >&6; }
10937if ${ac_cv_lib_elf_main+:} false; then :
10938  $as_echo_n "(cached) " >&6
10939else
10940  ac_check_lib_save_LIBS=$LIBS
10941LIBS="-lelf  $LIBS"
10942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943/* end confdefs.h.  */
10944
10945
10946int
10947main ()
10948{
10949return main ();
10950  ;
10951  return 0;
10952}
10953_ACEOF
10954if ac_fn_c_try_link "$LINENO"; then :
10955  ac_cv_lib_elf_main=yes
10956else
10957  ac_cv_lib_elf_main=no
10958fi
10959rm -f core conftest.err conftest.$ac_objext \
10960    conftest$ac_exeext conftest.$ac_ext
10961LIBS=$ac_check_lib_save_LIBS
10962fi
10963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5
10964$as_echo "$ac_cv_lib_elf_main" >&6; }
10965if test "x$ac_cv_lib_elf_main" = xyes; then :
10966  cat >>confdefs.h <<_ACEOF
10967#define HAVE_LIBELF 1
10968_ACEOF
10969
10970  LIBS="-lelf $LIBS"
10971
10972fi
10973
10974fi
10975
10976ac_header_dirent=no
10977for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10978  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10980$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10981if eval \${$as_ac_Header+:} false; then :
10982  $as_echo_n "(cached) " >&6
10983else
10984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985/* end confdefs.h.  */
10986#include <sys/types.h>
10987#include <$ac_hdr>
10988
10989int
10990main ()
10991{
10992if ((DIR *) 0)
10993return 0;
10994  ;
10995  return 0;
10996}
10997_ACEOF
10998if ac_fn_c_try_compile "$LINENO"; then :
10999  eval "$as_ac_Header=yes"
11000else
11001  eval "$as_ac_Header=no"
11002fi
11003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11004fi
11005eval ac_res=\$$as_ac_Header
11006	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11007$as_echo "$ac_res" >&6; }
11008if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11009  cat >>confdefs.h <<_ACEOF
11010#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11011_ACEOF
11012
11013ac_header_dirent=$ac_hdr; break
11014fi
11015
11016done
11017# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11018if test $ac_header_dirent = dirent.h; then
11019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11020$as_echo_n "checking for library containing opendir... " >&6; }
11021if ${ac_cv_search_opendir+:} false; then :
11022  $as_echo_n "(cached) " >&6
11023else
11024  ac_func_search_save_LIBS=$LIBS
11025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026/* end confdefs.h.  */
11027
11028/* Override any GCC internal prototype to avoid an error.
11029   Use char because int might match the return type of a GCC
11030   builtin and then its argument prototype would still apply.  */
11031#ifdef __cplusplus
11032extern "C"
11033#endif
11034char opendir ();
11035int
11036main ()
11037{
11038return opendir ();
11039  ;
11040  return 0;
11041}
11042_ACEOF
11043for ac_lib in '' dir; do
11044  if test -z "$ac_lib"; then
11045    ac_res="none required"
11046  else
11047    ac_res=-l$ac_lib
11048    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11049  fi
11050  if ac_fn_c_try_link "$LINENO"; then :
11051  ac_cv_search_opendir=$ac_res
11052fi
11053rm -f core conftest.err conftest.$ac_objext \
11054    conftest$ac_exeext
11055  if ${ac_cv_search_opendir+:} false; then :
11056  break
11057fi
11058done
11059if ${ac_cv_search_opendir+:} false; then :
11060
11061else
11062  ac_cv_search_opendir=no
11063fi
11064rm conftest.$ac_ext
11065LIBS=$ac_func_search_save_LIBS
11066fi
11067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11068$as_echo "$ac_cv_search_opendir" >&6; }
11069ac_res=$ac_cv_search_opendir
11070if test "$ac_res" != no; then :
11071  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11072
11073fi
11074
11075else
11076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11077$as_echo_n "checking for library containing opendir... " >&6; }
11078if ${ac_cv_search_opendir+:} false; then :
11079  $as_echo_n "(cached) " >&6
11080else
11081  ac_func_search_save_LIBS=$LIBS
11082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083/* end confdefs.h.  */
11084
11085/* Override any GCC internal prototype to avoid an error.
11086   Use char because int might match the return type of a GCC
11087   builtin and then its argument prototype would still apply.  */
11088#ifdef __cplusplus
11089extern "C"
11090#endif
11091char opendir ();
11092int
11093main ()
11094{
11095return opendir ();
11096  ;
11097  return 0;
11098}
11099_ACEOF
11100for ac_lib in '' x; do
11101  if test -z "$ac_lib"; then
11102    ac_res="none required"
11103  else
11104    ac_res=-l$ac_lib
11105    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11106  fi
11107  if ac_fn_c_try_link "$LINENO"; then :
11108  ac_cv_search_opendir=$ac_res
11109fi
11110rm -f core conftest.err conftest.$ac_objext \
11111    conftest$ac_exeext
11112  if ${ac_cv_search_opendir+:} false; then :
11113  break
11114fi
11115done
11116if ${ac_cv_search_opendir+:} false; then :
11117
11118else
11119  ac_cv_search_opendir=no
11120fi
11121rm conftest.$ac_ext
11122LIBS=$ac_func_search_save_LIBS
11123fi
11124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11125$as_echo "$ac_cv_search_opendir" >&6; }
11126ac_res=$ac_cv_search_opendir
11127if test "$ac_res" != no; then :
11128  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11129
11130fi
11131
11132fi
11133
11134
11135if test $ac_cv_header_sys_wait_h = no; then
11136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5
11137$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
11138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11139/* end confdefs.h.  */
11140#include <sys/wait.h>
11141int
11142main ()
11143{
11144union wait xx, yy; xx = yy
11145  ;
11146  return 0;
11147}
11148_ACEOF
11149if ac_fn_c_try_compile "$LINENO"; then :
11150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11151$as_echo "yes" >&6; }
11152			$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11153
11154			$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
11155
11156else
11157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11158$as_echo "no" >&6; }
11159fi
11160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11161fi
11162
11163for ac_header in stdint.h stdlib.h string.h \
11164	sys/select.h sys/utsname.h termcap.h fcntl.h \
11165	sgtty.h sys/ioctl.h sys/time.h sys/types.h \
11166	termio.h iconv.h inttypes.h langinfo.h math.h \
11167	unistd.h stropts.h errno.h sys/resource.h \
11168	sys/systeminfo.h locale.h sys/stream.h termios.h \
11169	libc.h sys/statfs.h poll.h sys/poll.h pwd.h \
11170	utime.h sys/param.h sys/ptms.h libintl.h libgen.h \
11171	util/debug.h util/msg18n.h frame.h sys/acl.h \
11172	sys/access.h sys/sysinfo.h wchar.h wctype.h
11173do :
11174  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11175ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11176if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11177  cat >>confdefs.h <<_ACEOF
11178#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11179_ACEOF
11180
11181fi
11182
11183done
11184
11185
11186for ac_header in sys/ptem.h
11187do :
11188  ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H
11189#  include <sys/stream.h>
11190#endif
11191"
11192if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
11193  cat >>confdefs.h <<_ACEOF
11194#define HAVE_SYS_PTEM_H 1
11195_ACEOF
11196
11197fi
11198
11199done
11200
11201
11202for ac_header in sys/sysctl.h
11203do :
11204  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
11205#  include <sys/param.h>
11206#endif
11207"
11208if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
11209  cat >>confdefs.h <<_ACEOF
11210#define HAVE_SYS_SYSCTL_H 1
11211_ACEOF
11212
11213fi
11214
11215done
11216
11217
11218
11219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5
11220$as_echo_n "checking for pthread_np.h... " >&6; }
11221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11222/* end confdefs.h.  */
11223
11224#include <pthread.h>
11225#include <pthread_np.h>
11226int
11227main ()
11228{
11229int i; i = 0;
11230  ;
11231  return 0;
11232}
11233_ACEOF
11234if ac_fn_c_try_compile "$LINENO"; then :
11235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11236$as_echo "yes" >&6; }
11237		      $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
11238
11239else
11240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11241$as_echo "no" >&6; }
11242fi
11243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11244
11245for ac_header in strings.h
11246do :
11247  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
11248if test "x$ac_cv_header_strings_h" = xyes; then :
11249  cat >>confdefs.h <<_ACEOF
11250#define HAVE_STRINGS_H 1
11251_ACEOF
11252
11253fi
11254
11255done
11256
11257if test "x$MACOS_X" = "xyes"; then
11258    $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11259
11260else
11261
11262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5
11263$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11264cppflags_save=$CPPFLAGS
11265CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267/* end confdefs.h.  */
11268
11269#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11270# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
11271			/* but don't do it on AIX 5.1 (Uribarri) */
11272#endif
11273#ifdef HAVE_XM_XM_H
11274# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
11275#endif
11276#ifdef HAVE_STRING_H
11277# include <string.h>
11278#endif
11279#if defined(HAVE_STRINGS_H)
11280# include <strings.h>
11281#endif
11282
11283int
11284main ()
11285{
11286int i; i = 0;
11287  ;
11288  return 0;
11289}
11290_ACEOF
11291if ac_fn_c_try_compile "$LINENO"; then :
11292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11293$as_echo "yes" >&6; }
11294else
11295  $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11296
11297		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298$as_echo "no" >&6; }
11299fi
11300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11301CPPFLAGS=$cppflags_save
11302fi
11303
11304if test $ac_cv_c_compiler_gnu = yes; then
11305    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11306$as_echo_n "checking whether $CC needs -traditional... " >&6; }
11307if ${ac_cv_prog_gcc_traditional+:} false; then :
11308  $as_echo_n "(cached) " >&6
11309else
11310    ac_pattern="Autoconf.*'x'"
11311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312/* end confdefs.h.  */
11313#include <sgtty.h>
11314Autoconf TIOCGETP
11315_ACEOF
11316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11317  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11318  ac_cv_prog_gcc_traditional=yes
11319else
11320  ac_cv_prog_gcc_traditional=no
11321fi
11322rm -f conftest*
11323
11324
11325  if test $ac_cv_prog_gcc_traditional = no; then
11326    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327/* end confdefs.h.  */
11328#include <termio.h>
11329Autoconf TCGETA
11330_ACEOF
11331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11332  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11333  ac_cv_prog_gcc_traditional=yes
11334fi
11335rm -f conftest*
11336
11337  fi
11338fi
11339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11340$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11341  if test $ac_cv_prog_gcc_traditional = yes; then
11342    CC="$CC -traditional"
11343  fi
11344fi
11345
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11347$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11348if ${ac_cv_c_const+:} false; then :
11349  $as_echo_n "(cached) " >&6
11350else
11351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352/* end confdefs.h.  */
11353
11354int
11355main ()
11356{
11357
11358#ifndef __cplusplus
11359  /* Ultrix mips cc rejects this sort of thing.  */
11360  typedef int charset[2];
11361  const charset cs = { 0, 0 };
11362  /* SunOS 4.1.1 cc rejects this.  */
11363  char const *const *pcpcc;
11364  char **ppc;
11365  /* NEC SVR4.0.2 mips cc rejects this.  */
11366  struct point {int x, y;};
11367  static struct point const zero = {0,0};
11368  /* AIX XL C 1.02.0.0 rejects this.
11369     It does not let you subtract one const X* pointer from another in
11370     an arm of an if-expression whose if-part is not a constant
11371     expression */
11372  const char *g = "string";
11373  pcpcc = &g + (g ? g-g : 0);
11374  /* HPUX 7.0 cc rejects these. */
11375  ++pcpcc;
11376  ppc = (char**) pcpcc;
11377  pcpcc = (char const *const *) ppc;
11378  { /* SCO 3.2v4 cc rejects this sort of thing.  */
11379    char tx;
11380    char *t = &tx;
11381    char const *s = 0 ? (char *) 0 : (char const *) 0;
11382
11383    *t++ = 0;
11384    if (s) return 0;
11385  }
11386  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11387    int x[] = {25, 17};
11388    const int *foo = &x[0];
11389    ++foo;
11390  }
11391  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11392    typedef const int *iptr;
11393    iptr p = 0;
11394    ++p;
11395  }
11396  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11397       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11398    struct s { int j; const int *ap[3]; } bx;
11399    struct s *b = &bx; b->j = 5;
11400  }
11401  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11402    const int foo = 10;
11403    if (!foo) return 0;
11404  }
11405  return !cs[0] && !zero.x;
11406#endif
11407
11408  ;
11409  return 0;
11410}
11411_ACEOF
11412if ac_fn_c_try_compile "$LINENO"; then :
11413  ac_cv_c_const=yes
11414else
11415  ac_cv_c_const=no
11416fi
11417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11418fi
11419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11420$as_echo "$ac_cv_c_const" >&6; }
11421if test $ac_cv_c_const = no; then
11422
11423$as_echo "#define const /**/" >>confdefs.h
11424
11425fi
11426
11427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
11428$as_echo_n "checking for working volatile... " >&6; }
11429if ${ac_cv_c_volatile+:} false; then :
11430  $as_echo_n "(cached) " >&6
11431else
11432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11433/* end confdefs.h.  */
11434
11435int
11436main ()
11437{
11438
11439volatile int x;
11440int * volatile y = (int *) 0;
11441return !x && !y;
11442  ;
11443  return 0;
11444}
11445_ACEOF
11446if ac_fn_c_try_compile "$LINENO"; then :
11447  ac_cv_c_volatile=yes
11448else
11449  ac_cv_c_volatile=no
11450fi
11451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11452fi
11453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
11454$as_echo "$ac_cv_c_volatile" >&6; }
11455if test $ac_cv_c_volatile = no; then
11456
11457$as_echo "#define volatile /**/" >>confdefs.h
11458
11459fi
11460
11461ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11462if test "x$ac_cv_type_mode_t" = xyes; then :
11463
11464else
11465
11466cat >>confdefs.h <<_ACEOF
11467#define mode_t int
11468_ACEOF
11469
11470fi
11471
11472ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11473if test "x$ac_cv_type_off_t" = xyes; then :
11474
11475else
11476
11477cat >>confdefs.h <<_ACEOF
11478#define off_t long int
11479_ACEOF
11480
11481fi
11482
11483ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11484if test "x$ac_cv_type_pid_t" = xyes; then :
11485
11486else
11487
11488cat >>confdefs.h <<_ACEOF
11489#define pid_t int
11490_ACEOF
11491
11492fi
11493
11494ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11495if test "x$ac_cv_type_size_t" = xyes; then :
11496
11497else
11498
11499cat >>confdefs.h <<_ACEOF
11500#define size_t unsigned int
11501_ACEOF
11502
11503fi
11504
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11506$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11507if ${ac_cv_type_uid_t+:} false; then :
11508  $as_echo_n "(cached) " >&6
11509else
11510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11511/* end confdefs.h.  */
11512#include <sys/types.h>
11513
11514_ACEOF
11515if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11516  $EGREP "uid_t" >/dev/null 2>&1; then :
11517  ac_cv_type_uid_t=yes
11518else
11519  ac_cv_type_uid_t=no
11520fi
11521rm -f conftest*
11522
11523fi
11524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11525$as_echo "$ac_cv_type_uid_t" >&6; }
11526if test $ac_cv_type_uid_t = no; then
11527
11528$as_echo "#define uid_t int" >>confdefs.h
11529
11530
11531$as_echo "#define gid_t int" >>confdefs.h
11532
11533fi
11534
11535ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
11536case $ac_cv_c_uint32_t in #(
11537  no|yes) ;; #(
11538  *)
11539
11540$as_echo "#define _UINT32_T 1" >>confdefs.h
11541
11542
11543cat >>confdefs.h <<_ACEOF
11544#define uint32_t $ac_cv_c_uint32_t
11545_ACEOF
11546;;
11547  esac
11548
11549
11550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11551$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11552if ${ac_cv_header_time+:} false; then :
11553  $as_echo_n "(cached) " >&6
11554else
11555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556/* end confdefs.h.  */
11557#include <sys/types.h>
11558#include <sys/time.h>
11559#include <time.h>
11560
11561int
11562main ()
11563{
11564if ((struct tm *) 0)
11565return 0;
11566  ;
11567  return 0;
11568}
11569_ACEOF
11570if ac_fn_c_try_compile "$LINENO"; then :
11571  ac_cv_header_time=yes
11572else
11573  ac_cv_header_time=no
11574fi
11575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11576fi
11577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11578$as_echo "$ac_cv_header_time" >&6; }
11579if test $ac_cv_header_time = yes; then
11580
11581$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11582
11583fi
11584
11585ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
11586if test "x$ac_cv_type_ino_t" = xyes; then :
11587
11588else
11589
11590cat >>confdefs.h <<_ACEOF
11591#define ino_t long
11592_ACEOF
11593
11594fi
11595
11596ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
11597if test "x$ac_cv_type_dev_t" = xyes; then :
11598
11599else
11600
11601cat >>confdefs.h <<_ACEOF
11602#define dev_t unsigned
11603_ACEOF
11604
11605fi
11606
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11608$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11609if ${ac_cv_c_bigendian+:} false; then :
11610  $as_echo_n "(cached) " >&6
11611else
11612  ac_cv_c_bigendian=unknown
11613    # See if we're dealing with a universal compiler.
11614    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615/* end confdefs.h.  */
11616#ifndef __APPLE_CC__
11617	       not a universal capable compiler
11618	     #endif
11619	     typedef int dummy;
11620
11621_ACEOF
11622if ac_fn_c_try_compile "$LINENO"; then :
11623
11624	# Check for potential -arch flags.  It is not universal unless
11625	# there are at least two -arch flags with different values.
11626	ac_arch=
11627	ac_prev=
11628	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11629	 if test -n "$ac_prev"; then
11630	   case $ac_word in
11631	     i?86 | x86_64 | ppc | ppc64)
11632	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11633		 ac_arch=$ac_word
11634	       else
11635		 ac_cv_c_bigendian=universal
11636		 break
11637	       fi
11638	       ;;
11639	   esac
11640	   ac_prev=
11641	 elif test "x$ac_word" = "x-arch"; then
11642	   ac_prev=arch
11643	 fi
11644       done
11645fi
11646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11647    if test $ac_cv_c_bigendian = unknown; then
11648      # See if sys/param.h defines the BYTE_ORDER macro.
11649      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650/* end confdefs.h.  */
11651#include <sys/types.h>
11652	     #include <sys/param.h>
11653
11654int
11655main ()
11656{
11657#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11658		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11659		     && LITTLE_ENDIAN)
11660	      bogus endian macros
11661	     #endif
11662
11663  ;
11664  return 0;
11665}
11666_ACEOF
11667if ac_fn_c_try_compile "$LINENO"; then :
11668  # It does; now see whether it defined to BIG_ENDIAN or not.
11669	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670/* end confdefs.h.  */
11671#include <sys/types.h>
11672		#include <sys/param.h>
11673
11674int
11675main ()
11676{
11677#if BYTE_ORDER != BIG_ENDIAN
11678		 not big endian
11679		#endif
11680
11681  ;
11682  return 0;
11683}
11684_ACEOF
11685if ac_fn_c_try_compile "$LINENO"; then :
11686  ac_cv_c_bigendian=yes
11687else
11688  ac_cv_c_bigendian=no
11689fi
11690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11691fi
11692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11693    fi
11694    if test $ac_cv_c_bigendian = unknown; then
11695      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11696      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11697/* end confdefs.h.  */
11698#include <limits.h>
11699
11700int
11701main ()
11702{
11703#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11704	      bogus endian macros
11705	     #endif
11706
11707  ;
11708  return 0;
11709}
11710_ACEOF
11711if ac_fn_c_try_compile "$LINENO"; then :
11712  # It does; now see whether it defined to _BIG_ENDIAN or not.
11713	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11714/* end confdefs.h.  */
11715#include <limits.h>
11716
11717int
11718main ()
11719{
11720#ifndef _BIG_ENDIAN
11721		 not big endian
11722		#endif
11723
11724  ;
11725  return 0;
11726}
11727_ACEOF
11728if ac_fn_c_try_compile "$LINENO"; then :
11729  ac_cv_c_bigendian=yes
11730else
11731  ac_cv_c_bigendian=no
11732fi
11733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11734fi
11735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11736    fi
11737    if test $ac_cv_c_bigendian = unknown; then
11738      # Compile a test program.
11739      if test "$cross_compiling" = yes; then :
11740  # Try to guess by grepping values from an object file.
11741	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11742/* end confdefs.h.  */
11743short int ascii_mm[] =
11744		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11745		short int ascii_ii[] =
11746		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11747		int use_ascii (int i) {
11748		  return ascii_mm[i] + ascii_ii[i];
11749		}
11750		short int ebcdic_ii[] =
11751		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11752		short int ebcdic_mm[] =
11753		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11754		int use_ebcdic (int i) {
11755		  return ebcdic_mm[i] + ebcdic_ii[i];
11756		}
11757		extern int foo;
11758
11759int
11760main ()
11761{
11762return use_ascii (foo) == use_ebcdic (foo);
11763  ;
11764  return 0;
11765}
11766_ACEOF
11767if ac_fn_c_try_compile "$LINENO"; then :
11768  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11769	      ac_cv_c_bigendian=yes
11770	    fi
11771	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11772	      if test "$ac_cv_c_bigendian" = unknown; then
11773		ac_cv_c_bigendian=no
11774	      else
11775		# finding both strings is unlikely to happen, but who knows?
11776		ac_cv_c_bigendian=unknown
11777	      fi
11778	    fi
11779fi
11780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11781else
11782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783/* end confdefs.h.  */
11784$ac_includes_default
11785int
11786main ()
11787{
11788
11789	     /* Are we little or big endian?  From Harbison&Steele.  */
11790	     union
11791	     {
11792	       long int l;
11793	       char c[sizeof (long int)];
11794	     } u;
11795	     u.l = 1;
11796	     return u.c[sizeof (long int) - 1] == 1;
11797
11798  ;
11799  return 0;
11800}
11801_ACEOF
11802if ac_fn_c_try_run "$LINENO"; then :
11803  ac_cv_c_bigendian=no
11804else
11805  ac_cv_c_bigendian=yes
11806fi
11807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11808  conftest.$ac_objext conftest.beam conftest.$ac_ext
11809fi
11810
11811    fi
11812fi
11813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11814$as_echo "$ac_cv_c_bigendian" >&6; }
11815 case $ac_cv_c_bigendian in #(
11816   yes)
11817     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11818;; #(
11819   no)
11820      ;; #(
11821   universal)
11822
11823$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11824
11825     ;; #(
11826   *)
11827     as_fn_error $? "unknown endianness
11828 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11829 esac
11830
11831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11832$as_echo_n "checking for inline... " >&6; }
11833if ${ac_cv_c_inline+:} false; then :
11834  $as_echo_n "(cached) " >&6
11835else
11836  ac_cv_c_inline=no
11837for ac_kw in inline __inline__ __inline; do
11838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11839/* end confdefs.h.  */
11840#ifndef __cplusplus
11841typedef int foo_t;
11842static $ac_kw foo_t static_foo () {return 0; }
11843$ac_kw foo_t foo () {return 0; }
11844#endif
11845
11846_ACEOF
11847if ac_fn_c_try_compile "$LINENO"; then :
11848  ac_cv_c_inline=$ac_kw
11849fi
11850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11851  test "$ac_cv_c_inline" != no && break
11852done
11853
11854fi
11855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11856$as_echo "$ac_cv_c_inline" >&6; }
11857
11858case $ac_cv_c_inline in
11859  inline | yes) ;;
11860  *)
11861    case $ac_cv_c_inline in
11862      no) ac_val=;;
11863      *) ac_val=$ac_cv_c_inline;;
11864    esac
11865    cat >>confdefs.h <<_ACEOF
11866#ifndef __cplusplus
11867#define inline $ac_val
11868#endif
11869_ACEOF
11870    ;;
11871esac
11872
11873
11874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
11875$as_echo_n "checking for rlim_t... " >&6; }
11876if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5
11878$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
11879else
11880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881/* end confdefs.h.  */
11882
11883#include <sys/types.h>
11884#if STDC_HEADERS
11885# include <stdlib.h>
11886# include <stddef.h>
11887#endif
11888#ifdef HAVE_SYS_RESOURCE_H
11889# include <sys/resource.h>
11890#endif
11891
11892_ACEOF
11893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11894  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
11895  ac_cv_type_rlim_t=yes
11896else
11897  ac_cv_type_rlim_t=no
11898fi
11899rm -f conftest*
11900
11901	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
11902$as_echo "$ac_cv_type_rlim_t" >&6; }
11903fi
11904if test $ac_cv_type_rlim_t = no; then
11905  cat >> confdefs.h <<\EOF
11906#define rlim_t unsigned long
11907EOF
11908fi
11909
11910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5
11911$as_echo_n "checking for stack_t... " >&6; }
11912if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5
11914$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
11915else
11916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11917/* end confdefs.h.  */
11918
11919#include <sys/types.h>
11920#if STDC_HEADERS
11921# include <stdlib.h>
11922# include <stddef.h>
11923#endif
11924#include <signal.h>
11925
11926_ACEOF
11927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11928  $EGREP "stack_t" >/dev/null 2>&1; then :
11929  ac_cv_type_stack_t=yes
11930else
11931  ac_cv_type_stack_t=no
11932fi
11933rm -f conftest*
11934
11935	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5
11936$as_echo "$ac_cv_type_stack_t" >&6; }
11937fi
11938if test $ac_cv_type_stack_t = no; then
11939  cat >> confdefs.h <<\EOF
11940#define stack_t struct sigaltstack
11941EOF
11942fi
11943
11944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5
11945$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
11946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947/* end confdefs.h.  */
11948
11949#include <sys/types.h>
11950#if STDC_HEADERS
11951# include <stdlib.h>
11952# include <stddef.h>
11953#endif
11954#include <signal.h>
11955#include "confdefs.h"
11956
11957int
11958main ()
11959{
11960stack_t sigstk; sigstk.ss_base = 0;
11961  ;
11962  return 0;
11963}
11964_ACEOF
11965if ac_fn_c_try_compile "$LINENO"; then :
11966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11967$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h
11968
11969else
11970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971$as_echo "no" >&6; }
11972fi
11973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11974
11975olibs="$LIBS"
11976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5
11977$as_echo_n "checking --with-tlib argument... " >&6; }
11978
11979# Check whether --with-tlib was given.
11980if test "${with_tlib+set}" = set; then :
11981  withval=$with_tlib;
11982fi
11983
11984if test -n "$with_tlib"; then
11985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5
11986$as_echo "$with_tlib" >&6; }
11987  LIBS="$LIBS -l$with_tlib"
11988  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5
11989$as_echo_n "checking for linking with $with_tlib library... " >&6; }
11990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991/* end confdefs.h.  */
11992
11993int
11994main ()
11995{
11996
11997  ;
11998  return 0;
11999}
12000_ACEOF
12001if ac_fn_c_try_link "$LINENO"; then :
12002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
12003$as_echo "OK" >&6; }
12004else
12005  as_fn_error $? "FAILED" "$LINENO" 5
12006fi
12007rm -f core conftest.err conftest.$ac_objext \
12008    conftest$ac_exeext conftest.$ac_ext
12009    olibs="$LIBS"
12010else
12011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5
12012$as_echo "empty: automatic terminal library selection" >&6; }
12013                case "`uname -s 2>/dev/null`" in
12014	OSF1|SCO_SV)	tlibs="tinfo ncurses curses termlib termcap";;
12015	*)	tlibs="tinfo ncurses termlib termcap curses";;
12016  esac
12017  for libname in $tlibs; do
12018    as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5
12020$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12021if eval \${$as_ac_Lib+:} false; then :
12022  $as_echo_n "(cached) " >&6
12023else
12024  ac_check_lib_save_LIBS=$LIBS
12025LIBS="-l${libname}  $LIBS"
12026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12027/* end confdefs.h.  */
12028
12029/* Override any GCC internal prototype to avoid an error.
12030   Use char because int might match the return type of a GCC
12031   builtin and then its argument prototype would still apply.  */
12032#ifdef __cplusplus
12033extern "C"
12034#endif
12035char tgetent ();
12036int
12037main ()
12038{
12039return tgetent ();
12040  ;
12041  return 0;
12042}
12043_ACEOF
12044if ac_fn_c_try_link "$LINENO"; then :
12045  eval "$as_ac_Lib=yes"
12046else
12047  eval "$as_ac_Lib=no"
12048fi
12049rm -f core conftest.err conftest.$ac_objext \
12050    conftest$ac_exeext conftest.$ac_ext
12051LIBS=$ac_check_lib_save_LIBS
12052fi
12053eval ac_res=\$$as_ac_Lib
12054	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12055$as_echo "$ac_res" >&6; }
12056if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12057  cat >>confdefs.h <<_ACEOF
12058#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12059_ACEOF
12060
12061  LIBS="-l${libname} $LIBS"
12062
12063fi
12064
12065    if test "x$olibs" != "x$LIBS"; then
12066                        if test "$cross_compiling" = yes; then :
12067  res="FAIL"
12068else
12069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070/* end confdefs.h.  */
12071
12072#ifdef HAVE_TERMCAP_H
12073# include <termcap.h>
12074#endif
12075#if STDC_HEADERS
12076# include <stdlib.h>
12077# include <stddef.h>
12078#endif
12079main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12080_ACEOF
12081if ac_fn_c_try_run "$LINENO"; then :
12082  res="OK"
12083else
12084  res="FAIL"
12085fi
12086rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12087  conftest.$ac_objext conftest.beam conftest.$ac_ext
12088fi
12089
12090      if test "$res" = "OK"; then
12091	break
12092      fi
12093      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5
12094$as_echo "$libname library is not usable" >&6; }
12095      LIBS="$olibs"
12096    fi
12097  done
12098  if test "x$olibs" = "x$LIBS"; then
12099    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5
12100$as_echo "no terminal library found" >&6; }
12101  fi
12102fi
12103
12104if test "x$olibs" = "x$LIBS"; then
12105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5
12106$as_echo_n "checking for tgetent()... " >&6; }
12107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108/* end confdefs.h.  */
12109int tgetent(char *, const char *);
12110int
12111main ()
12112{
12113char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12114  ;
12115  return 0;
12116}
12117_ACEOF
12118if ac_fn_c_try_link "$LINENO"; then :
12119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12120$as_echo "yes" >&6; }
12121else
12122  as_fn_error $? "NOT FOUND!
12123      You need to install a terminal library; for example ncurses.
12124      Or specify the name of the library with --with-tlib." "$LINENO" 5
12125fi
12126rm -f core conftest.err conftest.$ac_objext \
12127    conftest$ac_exeext conftest.$ac_ext
12128fi
12129
12130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5
12131$as_echo_n "checking whether we talk terminfo... " >&6; }
12132if ${vim_cv_terminfo+:} false; then :
12133  $as_echo_n "(cached) " >&6
12134else
12135
12136    if test "$cross_compiling" = yes; then :
12137
12138      as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5
12139
12140else
12141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12142/* end confdefs.h.  */
12143
12144#include "confdefs.h"
12145#ifdef HAVE_TERMCAP_H
12146# include <termcap.h>
12147#endif
12148#ifdef HAVE_STRING_H
12149# include <string.h>
12150#endif
12151#if STDC_HEADERS
12152# include <stdlib.h>
12153# include <stddef.h>
12154#endif
12155main()
12156{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12157
12158_ACEOF
12159if ac_fn_c_try_run "$LINENO"; then :
12160
12161      vim_cv_terminfo=no
12162
12163else
12164
12165      vim_cv_terminfo=yes
12166
12167fi
12168rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12169  conftest.$ac_objext conftest.beam conftest.$ac_ext
12170fi
12171
12172
12173fi
12174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5
12175$as_echo "$vim_cv_terminfo" >&6; }
12176
12177if test "x$vim_cv_terminfo" = "xyes" ; then
12178  $as_echo "#define TERMINFO 1" >>confdefs.h
12179
12180fi
12181
12182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
12183$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
12184if ${vim_cv_tgetent+:} false; then :
12185  $as_echo_n "(cached) " >&6
12186else
12187
12188    if test "$cross_compiling" = yes; then :
12189
12190      as_fn_error $? "failed to compile test program." "$LINENO" 5
12191
12192else
12193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194/* end confdefs.h.  */
12195
12196#include "confdefs.h"
12197#ifdef HAVE_TERMCAP_H
12198# include <termcap.h>
12199#endif
12200#if STDC_HEADERS
12201# include <stdlib.h>
12202# include <stddef.h>
12203#endif
12204main()
12205{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12206
12207_ACEOF
12208if ac_fn_c_try_run "$LINENO"; then :
12209
12210      vim_cv_tgetent=zero
12211
12212else
12213
12214      vim_cv_tgetent=non-zero
12215
12216fi
12217rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12218  conftest.$ac_objext conftest.beam conftest.$ac_ext
12219fi
12220
12221
12222fi
12223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgetent" >&5
12224$as_echo "$vim_cv_tgetent" >&6; }
12225
12226if test "x$vim_cv_tgetent" = "xzero" ; then
12227  $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
12228
12229fi
12230
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5
12232$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
12233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12234/* end confdefs.h.  */
12235
12236#ifdef HAVE_TERMCAP_H
12237# include <termcap.h>
12238#endif
12239
12240int
12241main ()
12242{
12243ospeed = 20000
12244  ;
12245  return 0;
12246}
12247_ACEOF
12248if ac_fn_c_try_link "$LINENO"; then :
12249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12250$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
12251
12252else
12253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254$as_echo "no" >&6; }
12255	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5
12256$as_echo_n "checking whether ospeed can be extern... " >&6; }
12257	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258/* end confdefs.h.  */
12259
12260#ifdef HAVE_TERMCAP_H
12261# include <termcap.h>
12262#endif
12263extern short ospeed;
12264
12265int
12266main ()
12267{
12268ospeed = 20000
12269  ;
12270  return 0;
12271}
12272_ACEOF
12273if ac_fn_c_try_link "$LINENO"; then :
12274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12275$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h
12276
12277else
12278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279$as_echo "no" >&6; }
12280fi
12281rm -f core conftest.err conftest.$ac_objext \
12282    conftest$ac_exeext conftest.$ac_ext
12283
12284fi
12285rm -f core conftest.err conftest.$ac_objext \
12286    conftest$ac_exeext conftest.$ac_ext
12287
12288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5
12289$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
12290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291/* end confdefs.h.  */
12292
12293#ifdef HAVE_TERMCAP_H
12294# include <termcap.h>
12295#endif
12296
12297int
12298main ()
12299{
12300if (UP == 0 && BC == 0) PC = 1
12301  ;
12302  return 0;
12303}
12304_ACEOF
12305if ac_fn_c_try_link "$LINENO"; then :
12306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12307$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h
12308
12309else
12310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311$as_echo "no" >&6; }
12312	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5
12313$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
12314	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12315/* end confdefs.h.  */
12316
12317#ifdef HAVE_TERMCAP_H
12318# include <termcap.h>
12319#endif
12320extern char *UP, *BC, PC;
12321
12322int
12323main ()
12324{
12325if (UP == 0 && BC == 0) PC = 1
12326  ;
12327  return 0;
12328}
12329_ACEOF
12330if ac_fn_c_try_link "$LINENO"; then :
12331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12332$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h
12333
12334else
12335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336$as_echo "no" >&6; }
12337fi
12338rm -f core conftest.err conftest.$ac_objext \
12339    conftest$ac_exeext conftest.$ac_ext
12340
12341fi
12342rm -f core conftest.err conftest.$ac_objext \
12343    conftest$ac_exeext conftest.$ac_ext
12344
12345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5
12346$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
12347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348/* end confdefs.h.  */
12349
12350#ifdef HAVE_TERMCAP_H
12351# include <termcap.h>
12352#endif
12353
12354int
12355main ()
12356{
12357extern int xx(); tputs("test", 1, (outfuntype)xx)
12358  ;
12359  return 0;
12360}
12361_ACEOF
12362if ac_fn_c_try_compile "$LINENO"; then :
12363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12364$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h
12365
12366else
12367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368$as_echo "no" >&6; }
12369fi
12370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12371
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
12373$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
12374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375/* end confdefs.h.  */
12376
12377#include <sys/types.h>
12378#include <sys/time.h>
12379#include <sys/select.h>
12380int
12381main ()
12382{
12383
12384  ;
12385  return 0;
12386}
12387_ACEOF
12388if ac_fn_c_try_compile "$LINENO"; then :
12389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12390$as_echo "yes" >&6; }
12391			$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
12392
12393else
12394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395$as_echo "no" >&6; }
12396fi
12397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12398
12399
12400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
12401$as_echo_n "checking for /dev/ptc... " >&6; }
12402if test -r /dev/ptc; then
12403  $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
12404
12405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12406$as_echo "yes" >&6; }
12407else
12408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409$as_echo "no" >&6; }
12410fi
12411
12412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5
12413$as_echo_n "checking for SVR4 ptys... " >&6; }
12414if test -c /dev/ptmx ; then
12415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416/* end confdefs.h.  */
12417
12418int
12419main ()
12420{
12421ptsname(0);grantpt(0);unlockpt(0);
12422  ;
12423  return 0;
12424}
12425_ACEOF
12426if ac_fn_c_try_link "$LINENO"; then :
12427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12428$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
12429
12430else
12431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432$as_echo "no" >&6; }
12433fi
12434rm -f core conftest.err conftest.$ac_objext \
12435    conftest$ac_exeext conftest.$ac_ext
12436else
12437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438$as_echo "no" >&6; }
12439fi
12440
12441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5
12442$as_echo_n "checking for ptyranges... " >&6; }
12443if test -d /dev/ptym ; then
12444  pdir='/dev/ptym'
12445else
12446  pdir='/dev'
12447fi
12448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449/* end confdefs.h.  */
12450#ifdef M_UNIX
12451   yes;
12452#endif
12453
12454_ACEOF
12455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12456  $EGREP "yes" >/dev/null 2>&1; then :
12457  ptys=`echo /dev/ptyp??`
12458else
12459  ptys=`echo $pdir/pty??`
12460fi
12461rm -f conftest*
12462
12463if test "$ptys" != "$pdir/pty??" ; then
12464  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12465  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
12466  cat >>confdefs.h <<_ACEOF
12467#define PTYRANGE0 "$p0"
12468_ACEOF
12469
12470  cat >>confdefs.h <<_ACEOF
12471#define PTYRANGE1 "$p1"
12472_ACEOF
12473
12474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5
12475$as_echo "$p0 / $p1" >&6; }
12476else
12477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5
12478$as_echo "don't know" >&6; }
12479fi
12480
12481
12482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12483$as_echo_n "checking return type of signal handlers... " >&6; }
12484if ${ac_cv_type_signal+:} false; then :
12485  $as_echo_n "(cached) " >&6
12486else
12487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488/* end confdefs.h.  */
12489#include <sys/types.h>
12490#include <signal.h>
12491
12492int
12493main ()
12494{
12495return *(signal (0, 0)) (0) == 1;
12496  ;
12497  return 0;
12498}
12499_ACEOF
12500if ac_fn_c_try_compile "$LINENO"; then :
12501  ac_cv_type_signal=int
12502else
12503  ac_cv_type_signal=void
12504fi
12505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12506fi
12507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12508$as_echo "$ac_cv_type_signal" >&6; }
12509
12510cat >>confdefs.h <<_ACEOF
12511#define RETSIGTYPE $ac_cv_type_signal
12512_ACEOF
12513
12514
12515
12516if test $ac_cv_type_signal = void; then
12517  $as_echo "#define SIGRETURN return" >>confdefs.h
12518
12519else
12520  $as_echo "#define SIGRETURN return 0" >>confdefs.h
12521
12522fi
12523
12524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5
12525$as_echo_n "checking for struct sigcontext... " >&6; }
12526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527/* end confdefs.h.  */
12528
12529#include <signal.h>
12530test_sig()
12531{
12532    struct sigcontext *scont;
12533    scont = (struct sigcontext *)0;
12534    return 1;
12535}
12536int
12537main ()
12538{
12539
12540  ;
12541  return 0;
12542}
12543_ACEOF
12544if ac_fn_c_try_compile "$LINENO"; then :
12545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12546$as_echo "yes" >&6; }
12547		$as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h
12548
12549else
12550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551$as_echo "no" >&6; }
12552fi
12553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12554
12555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5
12556$as_echo_n "checking getcwd implementation is broken... " >&6; }
12557if ${vim_cv_getcwd_broken+:} false; then :
12558  $as_echo_n "(cached) " >&6
12559else
12560
12561    if test "$cross_compiling" = yes; then :
12562
12563      as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5
12564
12565else
12566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12567/* end confdefs.h.  */
12568
12569#include "confdefs.h"
12570#ifdef HAVE_UNISTD_H
12571#include <unistd.h>
12572#endif
12573char *dagger[] = { "IFS=pwd", 0 };
12574main()
12575{
12576  char buffer[500];
12577  extern char **environ;
12578  environ = dagger;
12579  return getcwd(buffer, 500) ? 0 : 1;
12580}
12581
12582_ACEOF
12583if ac_fn_c_try_run "$LINENO"; then :
12584
12585      vim_cv_getcwd_broken=no
12586
12587else
12588
12589      vim_cv_getcwd_broken=yes
12590
12591fi
12592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12593  conftest.$ac_objext conftest.beam conftest.$ac_ext
12594fi
12595
12596
12597fi
12598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5
12599$as_echo "$vim_cv_getcwd_broken" >&6; }
12600
12601if test "x$vim_cv_getcwd_broken" = "xyes" ; then
12602  $as_echo "#define BAD_GETCWD 1" >>confdefs.h
12603
12604  for ac_func in getwd
12605do :
12606  ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
12607if test "x$ac_cv_func_getwd" = xyes; then :
12608  cat >>confdefs.h <<_ACEOF
12609#define HAVE_GETWD 1
12610_ACEOF
12611
12612fi
12613done
12614
12615fi
12616
12617for ac_func in fchdir fchown fchmod fsync getcwd getpseudotty \
12618	getpwent getpwnam getpwuid getrlimit gettimeofday localtime_r lstat \
12619	memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
12620	getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12621	sigprocmask sigvec strcasecmp strcoll strerror strftime stricmp strncasecmp \
12622	strnicmp strpbrk strptime strtol tgetent towlower towupper iswupper \
12623	tzset usleep utime utimes mblen ftruncate unsetenv posix_openpt
12624do :
12625  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12626ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12627if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12628  cat >>confdefs.h <<_ACEOF
12629#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12630_ACEOF
12631
12632fi
12633done
12634
12635for ac_header in sys/select.h sys/socket.h
12636do :
12637  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12638ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12639if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12640  cat >>confdefs.h <<_ACEOF
12641#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12642_ACEOF
12643
12644fi
12645
12646done
12647
12648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
12649$as_echo_n "checking types of arguments for select... " >&6; }
12650if ${ac_cv_func_select_args+:} false; then :
12651  $as_echo_n "(cached) " >&6
12652else
12653  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12654 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12655  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657/* end confdefs.h.  */
12658$ac_includes_default
12659#ifdef HAVE_SYS_SELECT_H
12660# include <sys/select.h>
12661#endif
12662#ifdef HAVE_SYS_SOCKET_H
12663# include <sys/socket.h>
12664#endif
12665
12666int
12667main ()
12668{
12669extern int select ($ac_arg1,
12670					    $ac_arg234, $ac_arg234, $ac_arg234,
12671					    $ac_arg5);
12672  ;
12673  return 0;
12674}
12675_ACEOF
12676if ac_fn_c_try_compile "$LINENO"; then :
12677  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12678fi
12679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12680  done
12681 done
12682done
12683# Provide a safe default value.
12684: "${ac_cv_func_select_args=int,int *,struct timeval *}"
12685
12686fi
12687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
12688$as_echo "$ac_cv_func_select_args" >&6; }
12689ac_save_IFS=$IFS; IFS=','
12690set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12691IFS=$ac_save_IFS
12692shift
12693
12694cat >>confdefs.h <<_ACEOF
12695#define SELECT_TYPE_ARG1 $1
12696_ACEOF
12697
12698
12699cat >>confdefs.h <<_ACEOF
12700#define SELECT_TYPE_ARG234 ($2)
12701_ACEOF
12702
12703
12704cat >>confdefs.h <<_ACEOF
12705#define SELECT_TYPE_ARG5 ($3)
12706_ACEOF
12707
12708rm -f conftest*
12709
12710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12711$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12712if ${ac_cv_sys_largefile_source+:} false; then :
12713  $as_echo_n "(cached) " >&6
12714else
12715  while :; do
12716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717/* end confdefs.h.  */
12718#include <sys/types.h> /* for off_t */
12719     #include <stdio.h>
12720int
12721main ()
12722{
12723int (*fp) (FILE *, off_t, int) = fseeko;
12724     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12725  ;
12726  return 0;
12727}
12728_ACEOF
12729if ac_fn_c_try_link "$LINENO"; then :
12730  ac_cv_sys_largefile_source=no; break
12731fi
12732rm -f core conftest.err conftest.$ac_objext \
12733    conftest$ac_exeext conftest.$ac_ext
12734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12735/* end confdefs.h.  */
12736#define _LARGEFILE_SOURCE 1
12737#include <sys/types.h> /* for off_t */
12738     #include <stdio.h>
12739int
12740main ()
12741{
12742int (*fp) (FILE *, off_t, int) = fseeko;
12743     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12744  ;
12745  return 0;
12746}
12747_ACEOF
12748if ac_fn_c_try_link "$LINENO"; then :
12749  ac_cv_sys_largefile_source=1; break
12750fi
12751rm -f core conftest.err conftest.$ac_objext \
12752    conftest$ac_exeext conftest.$ac_ext
12753  ac_cv_sys_largefile_source=unknown
12754  break
12755done
12756fi
12757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12758$as_echo "$ac_cv_sys_largefile_source" >&6; }
12759case $ac_cv_sys_largefile_source in #(
12760  no | unknown) ;;
12761  *)
12762cat >>confdefs.h <<_ACEOF
12763#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12764_ACEOF
12765;;
12766esac
12767rm -rf conftest*
12768
12769# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12770# in glibc 2.1.3, but that breaks too many other things.
12771# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12772if test $ac_cv_sys_largefile_source != unknown; then
12773
12774$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12775
12776fi
12777
12778
12779# Check whether --enable-largefile was given.
12780if test "${enable_largefile+set}" = set; then :
12781  enableval=$enable_largefile;
12782fi
12783
12784if test "$enable_largefile" != no; then
12785
12786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12787$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12788if ${ac_cv_sys_largefile_CC+:} false; then :
12789  $as_echo_n "(cached) " >&6
12790else
12791  ac_cv_sys_largefile_CC=no
12792     if test "$GCC" != yes; then
12793       ac_save_CC=$CC
12794       while :; do
12795	 # IRIX 6.2 and later do not support large files by default,
12796	 # so use the C compiler's -n32 option if that helps.
12797	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12798/* end confdefs.h.  */
12799#include <sys/types.h>
12800 /* Check that off_t can represent 2**63 - 1 correctly.
12801    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12802    since some C++ compilers masquerading as C compilers
12803    incorrectly reject 9223372036854775807.  */
12804#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12805  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12806		       && LARGE_OFF_T % 2147483647 == 1)
12807		      ? 1 : -1];
12808int
12809main ()
12810{
12811
12812  ;
12813  return 0;
12814}
12815_ACEOF
12816	 if ac_fn_c_try_compile "$LINENO"; then :
12817  break
12818fi
12819rm -f core conftest.err conftest.$ac_objext
12820	 CC="$CC -n32"
12821	 if ac_fn_c_try_compile "$LINENO"; then :
12822  ac_cv_sys_largefile_CC=' -n32'; break
12823fi
12824rm -f core conftest.err conftest.$ac_objext
12825	 break
12826       done
12827       CC=$ac_save_CC
12828       rm -f conftest.$ac_ext
12829    fi
12830fi
12831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12832$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12833  if test "$ac_cv_sys_largefile_CC" != no; then
12834    CC=$CC$ac_cv_sys_largefile_CC
12835  fi
12836
12837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12838$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12839if ${ac_cv_sys_file_offset_bits+:} false; then :
12840  $as_echo_n "(cached) " >&6
12841else
12842  while :; do
12843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844/* end confdefs.h.  */
12845#include <sys/types.h>
12846 /* Check that off_t can represent 2**63 - 1 correctly.
12847    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12848    since some C++ compilers masquerading as C compilers
12849    incorrectly reject 9223372036854775807.  */
12850#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12851  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12852		       && LARGE_OFF_T % 2147483647 == 1)
12853		      ? 1 : -1];
12854int
12855main ()
12856{
12857
12858  ;
12859  return 0;
12860}
12861_ACEOF
12862if ac_fn_c_try_compile "$LINENO"; then :
12863  ac_cv_sys_file_offset_bits=no; break
12864fi
12865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867/* end confdefs.h.  */
12868#define _FILE_OFFSET_BITS 64
12869#include <sys/types.h>
12870 /* Check that off_t can represent 2**63 - 1 correctly.
12871    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12872    since some C++ compilers masquerading as C compilers
12873    incorrectly reject 9223372036854775807.  */
12874#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12875  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12876		       && LARGE_OFF_T % 2147483647 == 1)
12877		      ? 1 : -1];
12878int
12879main ()
12880{
12881
12882  ;
12883  return 0;
12884}
12885_ACEOF
12886if ac_fn_c_try_compile "$LINENO"; then :
12887  ac_cv_sys_file_offset_bits=64; break
12888fi
12889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12890  ac_cv_sys_file_offset_bits=unknown
12891  break
12892done
12893fi
12894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12895$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12896case $ac_cv_sys_file_offset_bits in #(
12897  no | unknown) ;;
12898  *)
12899cat >>confdefs.h <<_ACEOF
12900#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12901_ACEOF
12902;;
12903esac
12904rm -rf conftest*
12905  if test $ac_cv_sys_file_offset_bits = unknown; then
12906    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12907$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12908if ${ac_cv_sys_large_files+:} false; then :
12909  $as_echo_n "(cached) " >&6
12910else
12911  while :; do
12912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12913/* end confdefs.h.  */
12914#include <sys/types.h>
12915 /* Check that off_t can represent 2**63 - 1 correctly.
12916    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12917    since some C++ compilers masquerading as C compilers
12918    incorrectly reject 9223372036854775807.  */
12919#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12920  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12921		       && LARGE_OFF_T % 2147483647 == 1)
12922		      ? 1 : -1];
12923int
12924main ()
12925{
12926
12927  ;
12928  return 0;
12929}
12930_ACEOF
12931if ac_fn_c_try_compile "$LINENO"; then :
12932  ac_cv_sys_large_files=no; break
12933fi
12934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936/* end confdefs.h.  */
12937#define _LARGE_FILES 1
12938#include <sys/types.h>
12939 /* Check that off_t can represent 2**63 - 1 correctly.
12940    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12941    since some C++ compilers masquerading as C compilers
12942    incorrectly reject 9223372036854775807.  */
12943#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12944  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12945		       && LARGE_OFF_T % 2147483647 == 1)
12946		      ? 1 : -1];
12947int
12948main ()
12949{
12950
12951  ;
12952  return 0;
12953}
12954_ACEOF
12955if ac_fn_c_try_compile "$LINENO"; then :
12956  ac_cv_sys_large_files=1; break
12957fi
12958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12959  ac_cv_sys_large_files=unknown
12960  break
12961done
12962fi
12963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12964$as_echo "$ac_cv_sys_large_files" >&6; }
12965case $ac_cv_sys_large_files in #(
12966  no | unknown) ;;
12967  *)
12968cat >>confdefs.h <<_ACEOF
12969#define _LARGE_FILES $ac_cv_sys_large_files
12970_ACEOF
12971;;
12972esac
12973rm -rf conftest*
12974  fi
12975
12976
12977fi
12978
12979
12980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-canberra argument" >&5
12981$as_echo_n "checking --enable-canberra argument... " >&6; }
12982# Check whether --enable-canberra was given.
12983if test "${enable_canberra+set}" = set; then :
12984  enableval=$enable_canberra;
12985else
12986  enable_canberra="maybe"
12987fi
12988
12989
12990if test "$enable_canberra" = "maybe"; then
12991  if test "$features" = "big" -o "$features" = "huge"; then
12992    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to yes" >&5
12993$as_echo "Defaulting to yes" >&6; }
12994    enable_canberra="yes"
12995  else
12996    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to no" >&5
12997$as_echo "Defaulting to no" >&6; }
12998    enable_canberra="no"
12999  fi
13000else
13001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_canberra" >&5
13002$as_echo "$enable_canberra" >&6; }
13003fi
13004if test "$enable_canberra" = "yes"; then
13005  if test "x$PKG_CONFIG" != "xno"; then
13006    canberra_lib=`$PKG_CONFIG --libs libcanberra 2>/dev/null`
13007    canberra_cflags=`$PKG_CONFIG --cflags libcanberra 2>/dev/null`
13008  fi
13009  if test "x$canberra_lib" = "x"; then
13010    canberra_lib=-lcanberra
13011    canberra_cflags=-D_REENTRANT
13012  fi
13013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcanberra" >&5
13014$as_echo_n "checking for libcanberra... " >&6; }
13015  ac_save_CFLAGS="$CFLAGS"
13016  ac_save_LIBS="$LIBS"
13017  CFLAGS="$CFLAGS $canberra_cflags"
13018  LIBS="$LIBS $canberra_lib"
13019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020/* end confdefs.h.  */
13021
13022  # include <canberra.h>
13023
13024int
13025main ()
13026{
13027
13028     ca_context *hello;
13029     ca_context_create(&hello);
13030  ;
13031  return 0;
13032}
13033_ACEOF
13034if ac_fn_c_try_link "$LINENO"; then :
13035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13036$as_echo "yes" >&6; }; $as_echo "#define HAVE_CANBERRA 1" >>confdefs.h
13037
13038else
13039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; try installing libcanberra-dev" >&5
13040$as_echo "no; try installing libcanberra-dev" >&6; }; CFLAGS="$ac_save_CFLAGS"; LIBS="$ac_save_LIBS"
13041fi
13042rm -f core conftest.err conftest.$ac_objext \
13043    conftest$ac_exeext conftest.$ac_ext
13044fi
13045
13046
13047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5
13048$as_echo_n "checking for st_blksize... " >&6; }
13049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050/* end confdefs.h.  */
13051#include <sys/types.h>
13052#include <sys/stat.h>
13053int
13054main ()
13055{
13056	struct stat st;
13057	int n;
13058
13059	stat("/", &st);
13060	n = (int)st.st_blksize;
13061  ;
13062  return 0;
13063}
13064_ACEOF
13065if ac_fn_c_try_compile "$LINENO"; then :
13066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13067$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
13068
13069else
13070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071$as_echo "no" >&6; }
13072fi
13073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13074
13075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5
13076$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
13077if ${vim_cv_stat_ignores_slash+:} false; then :
13078  $as_echo_n "(cached) " >&6
13079else
13080
13081    if test "$cross_compiling" = yes; then :
13082
13083      as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5
13084
13085else
13086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087/* end confdefs.h.  */
13088
13089#include "confdefs.h"
13090#if STDC_HEADERS
13091# include <stdlib.h>
13092# include <stddef.h>
13093#endif
13094#include <sys/types.h>
13095#include <sys/stat.h>
13096main() {struct stat st;  exit(stat("configure/", &st) != 0); }
13097
13098_ACEOF
13099if ac_fn_c_try_run "$LINENO"; then :
13100
13101      vim_cv_stat_ignores_slash=yes
13102
13103else
13104
13105      vim_cv_stat_ignores_slash=no
13106
13107fi
13108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13109  conftest.$ac_objext conftest.beam conftest.$ac_ext
13110fi
13111
13112
13113fi
13114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5
13115$as_echo "$vim_cv_stat_ignores_slash" >&6; }
13116
13117if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13118  $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h
13119
13120fi
13121
13122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5
13123$as_echo_n "checking for iconv_open()... " >&6; }
13124save_LIBS="$LIBS"
13125LIBS="$LIBS -liconv"
13126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127/* end confdefs.h.  */
13128
13129#ifdef HAVE_ICONV_H
13130# include <iconv.h>
13131#endif
13132
13133int
13134main ()
13135{
13136iconv_open("fr", "to");
13137  ;
13138  return 0;
13139}
13140_ACEOF
13141if ac_fn_c_try_link "$LINENO"; then :
13142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5
13143$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13144
13145else
13146  LIBS="$save_LIBS"
13147    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148/* end confdefs.h.  */
13149
13150#ifdef HAVE_ICONV_H
13151# include <iconv.h>
13152#endif
13153
13154int
13155main ()
13156{
13157iconv_open("fr", "to");
13158  ;
13159  return 0;
13160}
13161_ACEOF
13162if ac_fn_c_try_link "$LINENO"; then :
13163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13164$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13165
13166else
13167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168$as_echo "no" >&6; }
13169fi
13170rm -f core conftest.err conftest.$ac_objext \
13171    conftest$ac_exeext conftest.$ac_ext
13172fi
13173rm -f core conftest.err conftest.$ac_objext \
13174    conftest$ac_exeext conftest.$ac_ext
13175
13176
13177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
13178$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
13179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13180/* end confdefs.h.  */
13181
13182#ifdef HAVE_LANGINFO_H
13183# include <langinfo.h>
13184#endif
13185
13186int
13187main ()
13188{
13189char *cs = nl_langinfo(CODESET);
13190  ;
13191  return 0;
13192}
13193_ACEOF
13194if ac_fn_c_try_link "$LINENO"; then :
13195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13196$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
13197
13198else
13199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13200$as_echo "no" >&6; }
13201fi
13202rm -f core conftest.err conftest.$ac_objext \
13203    conftest$ac_exeext conftest.$ac_ext
13204
13205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5
13206$as_echo_n "checking for strtod in -lm... " >&6; }
13207if ${ac_cv_lib_m_strtod+:} false; then :
13208  $as_echo_n "(cached) " >&6
13209else
13210  ac_check_lib_save_LIBS=$LIBS
13211LIBS="-lm  $LIBS"
13212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213/* end confdefs.h.  */
13214
13215/* Override any GCC internal prototype to avoid an error.
13216   Use char because int might match the return type of a GCC
13217   builtin and then its argument prototype would still apply.  */
13218#ifdef __cplusplus
13219extern "C"
13220#endif
13221char strtod ();
13222int
13223main ()
13224{
13225return strtod ();
13226  ;
13227  return 0;
13228}
13229_ACEOF
13230if ac_fn_c_try_link "$LINENO"; then :
13231  ac_cv_lib_m_strtod=yes
13232else
13233  ac_cv_lib_m_strtod=no
13234fi
13235rm -f core conftest.err conftest.$ac_objext \
13236    conftest$ac_exeext conftest.$ac_ext
13237LIBS=$ac_check_lib_save_LIBS
13238fi
13239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5
13240$as_echo "$ac_cv_lib_m_strtod" >&6; }
13241if test "x$ac_cv_lib_m_strtod" = xyes; then :
13242  cat >>confdefs.h <<_ACEOF
13243#define HAVE_LIBM 1
13244_ACEOF
13245
13246  LIBS="-lm $LIBS"
13247
13248fi
13249
13250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5
13251$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
13252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253/* end confdefs.h.  */
13254
13255#ifdef HAVE_MATH_H
13256# include <math.h>
13257#endif
13258#if STDC_HEADERS
13259# include <stdlib.h>
13260# include <stddef.h>
13261#endif
13262
13263int
13264main ()
13265{
13266char *s; double d;
13267    d = strtod("1.1", &s);
13268    d = fabs(1.11);
13269    d = ceil(1.11);
13270    d = floor(1.11);
13271    d = log10(1.11);
13272    d = pow(1.11, 2.22);
13273    d = sqrt(1.11);
13274    d = sin(1.11);
13275    d = cos(1.11);
13276    d = atan(1.11);
13277
13278  ;
13279  return 0;
13280}
13281_ACEOF
13282if ac_fn_c_try_link "$LINENO"; then :
13283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13284$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h
13285
13286else
13287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13288$as_echo "no" >&6; }
13289fi
13290rm -f core conftest.err conftest.$ac_objext \
13291    conftest$ac_exeext conftest.$ac_ext
13292
13293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5
13294$as_echo_n "checking for isinf()... " >&6; }
13295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13296/* end confdefs.h.  */
13297
13298#ifdef HAVE_MATH_H
13299# include <math.h>
13300#endif
13301#if STDC_HEADERS
13302# include <stdlib.h>
13303# include <stddef.h>
13304#endif
13305
13306int
13307main ()
13308{
13309int r = isinf(1.11);
13310  ;
13311  return 0;
13312}
13313_ACEOF
13314if ac_fn_c_try_link "$LINENO"; then :
13315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13316$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13317
13318else
13319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13320$as_echo "no" >&6; }
13321fi
13322rm -f core conftest.err conftest.$ac_objext \
13323    conftest$ac_exeext conftest.$ac_ext
13324
13325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5
13326$as_echo_n "checking for isnan()... " >&6; }
13327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328/* end confdefs.h.  */
13329
13330#ifdef HAVE_MATH_H
13331# include <math.h>
13332#endif
13333#if STDC_HEADERS
13334# include <stdlib.h>
13335# include <stddef.h>
13336#endif
13337
13338int
13339main ()
13340{
13341int r = isnan(1.11);
13342  ;
13343  return 0;
13344}
13345_ACEOF
13346if ac_fn_c_try_link "$LINENO"; then :
13347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13348$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13349
13350else
13351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13352$as_echo "no" >&6; }
13353fi
13354rm -f core conftest.err conftest.$ac_objext \
13355    conftest$ac_exeext conftest.$ac_ext
13356
13357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5
13358$as_echo_n "checking --disable-acl argument... " >&6; }
13359# Check whether --enable-acl was given.
13360if test "${enable_acl+set}" = set; then :
13361  enableval=$enable_acl;
13362else
13363  enable_acl="yes"
13364fi
13365
13366if test "$enable_acl" = "yes"; then
13367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368$as_echo "no" >&6; }
13369  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5
13370$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
13371if ${ac_cv_lib_posix1e_acl_get_file+:} false; then :
13372  $as_echo_n "(cached) " >&6
13373else
13374  ac_check_lib_save_LIBS=$LIBS
13375LIBS="-lposix1e  $LIBS"
13376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377/* end confdefs.h.  */
13378
13379/* Override any GCC internal prototype to avoid an error.
13380   Use char because int might match the return type of a GCC
13381   builtin and then its argument prototype would still apply.  */
13382#ifdef __cplusplus
13383extern "C"
13384#endif
13385char acl_get_file ();
13386int
13387main ()
13388{
13389return acl_get_file ();
13390  ;
13391  return 0;
13392}
13393_ACEOF
13394if ac_fn_c_try_link "$LINENO"; then :
13395  ac_cv_lib_posix1e_acl_get_file=yes
13396else
13397  ac_cv_lib_posix1e_acl_get_file=no
13398fi
13399rm -f core conftest.err conftest.$ac_objext \
13400    conftest$ac_exeext conftest.$ac_ext
13401LIBS=$ac_check_lib_save_LIBS
13402fi
13403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13404$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
13405if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then :
13406  LIBS="$LIBS -lposix1e"
13407else
13408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
13409$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
13410if ${ac_cv_lib_acl_acl_get_file+:} false; then :
13411  $as_echo_n "(cached) " >&6
13412else
13413  ac_check_lib_save_LIBS=$LIBS
13414LIBS="-lacl  $LIBS"
13415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13416/* end confdefs.h.  */
13417
13418/* Override any GCC internal prototype to avoid an error.
13419   Use char because int might match the return type of a GCC
13420   builtin and then its argument prototype would still apply.  */
13421#ifdef __cplusplus
13422extern "C"
13423#endif
13424char acl_get_file ();
13425int
13426main ()
13427{
13428return acl_get_file ();
13429  ;
13430  return 0;
13431}
13432_ACEOF
13433if ac_fn_c_try_link "$LINENO"; then :
13434  ac_cv_lib_acl_acl_get_file=yes
13435else
13436  ac_cv_lib_acl_acl_get_file=no
13437fi
13438rm -f core conftest.err conftest.$ac_objext \
13439    conftest$ac_exeext conftest.$ac_ext
13440LIBS=$ac_check_lib_save_LIBS
13441fi
13442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
13443$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
13444if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
13445  LIBS="$LIBS -lacl"
13446		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5
13447$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
13448if ${ac_cv_lib_attr_fgetxattr+:} false; then :
13449  $as_echo_n "(cached) " >&6
13450else
13451  ac_check_lib_save_LIBS=$LIBS
13452LIBS="-lattr  $LIBS"
13453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454/* end confdefs.h.  */
13455
13456/* Override any GCC internal prototype to avoid an error.
13457   Use char because int might match the return type of a GCC
13458   builtin and then its argument prototype would still apply.  */
13459#ifdef __cplusplus
13460extern "C"
13461#endif
13462char fgetxattr ();
13463int
13464main ()
13465{
13466return fgetxattr ();
13467  ;
13468  return 0;
13469}
13470_ACEOF
13471if ac_fn_c_try_link "$LINENO"; then :
13472  ac_cv_lib_attr_fgetxattr=yes
13473else
13474  ac_cv_lib_attr_fgetxattr=no
13475fi
13476rm -f core conftest.err conftest.$ac_objext \
13477    conftest$ac_exeext conftest.$ac_ext
13478LIBS=$ac_check_lib_save_LIBS
13479fi
13480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5
13481$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
13482if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then :
13483  LIBS="$LIBS -lattr"
13484fi
13485
13486fi
13487
13488fi
13489
13490
13491  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
13492$as_echo_n "checking for POSIX ACL support... " >&6; }
13493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494/* end confdefs.h.  */
13495
13496#include <sys/types.h>
13497#ifdef HAVE_SYS_ACL_H
13498# include <sys/acl.h>
13499#endif
13500acl_t acl;
13501int
13502main ()
13503{
13504acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13505	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13506	acl_free(acl);
13507  ;
13508  return 0;
13509}
13510_ACEOF
13511if ac_fn_c_try_link "$LINENO"; then :
13512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13513$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
13514
13515else
13516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13517$as_echo "no" >&6; }
13518fi
13519rm -f core conftest.err conftest.$ac_objext \
13520    conftest$ac_exeext conftest.$ac_ext
13521
13522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5
13523$as_echo_n "checking for acl_get in -lsec... " >&6; }
13524if ${ac_cv_lib_sec_acl_get+:} false; then :
13525  $as_echo_n "(cached) " >&6
13526else
13527  ac_check_lib_save_LIBS=$LIBS
13528LIBS="-lsec  $LIBS"
13529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530/* end confdefs.h.  */
13531
13532/* Override any GCC internal prototype to avoid an error.
13533   Use char because int might match the return type of a GCC
13534   builtin and then its argument prototype would still apply.  */
13535#ifdef __cplusplus
13536extern "C"
13537#endif
13538char acl_get ();
13539int
13540main ()
13541{
13542return acl_get ();
13543  ;
13544  return 0;
13545}
13546_ACEOF
13547if ac_fn_c_try_link "$LINENO"; then :
13548  ac_cv_lib_sec_acl_get=yes
13549else
13550  ac_cv_lib_sec_acl_get=no
13551fi
13552rm -f core conftest.err conftest.$ac_objext \
13553    conftest$ac_exeext conftest.$ac_ext
13554LIBS=$ac_check_lib_save_LIBS
13555fi
13556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5
13557$as_echo "$ac_cv_lib_sec_acl_get" >&6; }
13558if test "x$ac_cv_lib_sec_acl_get" = xyes; then :
13559  LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h
13560
13561else
13562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5
13563$as_echo_n "checking for Solaris ACL support... " >&6; }
13564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565/* end confdefs.h.  */
13566
13567#ifdef HAVE_SYS_ACL_H
13568# include <sys/acl.h>
13569#endif
13570int
13571main ()
13572{
13573acl("foo", GETACLCNT, 0, NULL);
13574
13575  ;
13576  return 0;
13577}
13578_ACEOF
13579if ac_fn_c_try_link "$LINENO"; then :
13580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13581$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h
13582
13583else
13584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13585$as_echo "no" >&6; }
13586fi
13587rm -f core conftest.err conftest.$ac_objext \
13588    conftest$ac_exeext conftest.$ac_ext
13589fi
13590
13591
13592  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5
13593$as_echo_n "checking for AIX ACL support... " >&6; }
13594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595/* end confdefs.h.  */
13596
13597#if STDC_HEADERS
13598# include <stdlib.h>
13599# include <stddef.h>
13600#endif
13601#ifdef HAVE_SYS_ACL_H
13602# include <sys/acl.h>
13603#endif
13604#ifdef HAVE_SYS_ACCESS_H
13605# include <sys/access.h>
13606#endif
13607#define _ALL_SOURCE
13608
13609#include <sys/stat.h>
13610
13611int aclsize;
13612struct acl *aclent;
13613int
13614main ()
13615{
13616aclsize = sizeof(struct acl);
13617	aclent = (void *)malloc(aclsize);
13618	statacl("foo", STX_NORMAL, aclent, aclsize);
13619
13620  ;
13621  return 0;
13622}
13623_ACEOF
13624if ac_fn_c_try_link "$LINENO"; then :
13625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13626$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h
13627
13628else
13629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13630$as_echo "no" >&6; }
13631fi
13632rm -f core conftest.err conftest.$ac_objext \
13633    conftest$ac_exeext conftest.$ac_ext
13634else
13635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13636$as_echo "yes" >&6; }
13637fi
13638
13639if test "x$GTK_CFLAGS" != "x"; then
13640    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5
13641$as_echo_n "checking for pango_shape_full... " >&6; }
13642  ac_save_CFLAGS="$CFLAGS"
13643  ac_save_LIBS="$LIBS"
13644  CFLAGS="$CFLAGS $GTK_CFLAGS"
13645  LIBS="$LIBS $GTK_LIBS"
13646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647/* end confdefs.h.  */
13648#include <gtk/gtk.h>
13649int
13650main ()
13651{
13652 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL);
13653  ;
13654  return 0;
13655}
13656_ACEOF
13657if ac_fn_c_try_link "$LINENO"; then :
13658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13659$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h
13660
13661else
13662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13663$as_echo "no" >&6; }
13664fi
13665rm -f core conftest.err conftest.$ac_objext \
13666    conftest$ac_exeext conftest.$ac_ext
13667  CFLAGS="$ac_save_CFLAGS"
13668  LIBS="$ac_save_LIBS"
13669fi
13670
13671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5
13672$as_echo_n "checking --disable-gpm argument... " >&6; }
13673# Check whether --enable-gpm was given.
13674if test "${enable_gpm+set}" = set; then :
13675  enableval=$enable_gpm;
13676else
13677  enable_gpm="yes"
13678fi
13679
13680
13681if test "$enable_gpm" = "yes"; then
13682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13683$as_echo "no" >&6; }
13684    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5
13685$as_echo_n "checking for gpm... " >&6; }
13686if ${vi_cv_have_gpm+:} false; then :
13687  $as_echo_n "(cached) " >&6
13688else
13689  olibs="$LIBS" ; LIBS="-lgpm"
13690	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691/* end confdefs.h.  */
13692#include <gpm.h>
13693	    #include <linux/keyboard.h>
13694int
13695main ()
13696{
13697Gpm_GetLibVersion(NULL);
13698  ;
13699  return 0;
13700}
13701_ACEOF
13702if ac_fn_c_try_link "$LINENO"; then :
13703  	    	    vi_cv_have_gpm=yes
13704else
13705  vi_cv_have_gpm=no
13706fi
13707rm -f core conftest.err conftest.$ac_objext \
13708    conftest$ac_exeext conftest.$ac_ext
13709	LIBS="$olibs"
13710
13711fi
13712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5
13713$as_echo "$vi_cv_have_gpm" >&6; }
13714  if test $vi_cv_have_gpm = yes; then
13715    LIBS="$LIBS -lgpm"
13716    $as_echo "#define HAVE_GPM 1" >>confdefs.h
13717
13718  fi
13719else
13720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13721$as_echo "yes" >&6; }
13722fi
13723
13724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5
13725$as_echo_n "checking --disable-sysmouse argument... " >&6; }
13726# Check whether --enable-sysmouse was given.
13727if test "${enable_sysmouse+set}" = set; then :
13728  enableval=$enable_sysmouse;
13729else
13730  enable_sysmouse="yes"
13731fi
13732
13733
13734if test "$enable_sysmouse" = "yes"; then
13735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13736$as_echo "no" >&6; }
13737        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5
13738$as_echo_n "checking for sysmouse... " >&6; }
13739if ${vi_cv_have_sysmouse+:} false; then :
13740  $as_echo_n "(cached) " >&6
13741else
13742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743/* end confdefs.h.  */
13744#include <sys/consio.h>
13745	     #include <signal.h>
13746	     #include <sys/fbio.h>
13747int
13748main ()
13749{
13750struct mouse_info   mouse;
13751	     mouse.operation = MOUSE_MODE;
13752	     mouse.operation = MOUSE_SHOW;
13753	     mouse.u.mode.mode = 0;
13754	     mouse.u.mode.signal = SIGUSR2;
13755  ;
13756  return 0;
13757}
13758_ACEOF
13759if ac_fn_c_try_link "$LINENO"; then :
13760  vi_cv_have_sysmouse=yes
13761else
13762  vi_cv_have_sysmouse=no
13763fi
13764rm -f core conftest.err conftest.$ac_objext \
13765    conftest$ac_exeext conftest.$ac_ext
13766
13767fi
13768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5
13769$as_echo "$vi_cv_have_sysmouse" >&6; }
13770  if test $vi_cv_have_sysmouse = yes; then
13771    $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h
13772
13773  fi
13774else
13775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13776$as_echo "yes" >&6; }
13777fi
13778
13779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5
13780$as_echo_n "checking for FD_CLOEXEC... " >&6; }
13781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782/* end confdefs.h.  */
13783#if HAVE_FCNTL_H
13784# include <fcntl.h>
13785#endif
13786int
13787main ()
13788{
13789	int flag = FD_CLOEXEC;
13790  ;
13791  return 0;
13792}
13793_ACEOF
13794if ac_fn_c_try_compile "$LINENO"; then :
13795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13796$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h
13797
13798else
13799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13800$as_echo "not usable" >&6; }
13801fi
13802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13803
13804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5
13805$as_echo_n "checking for rename... " >&6; }
13806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807/* end confdefs.h.  */
13808#include <stdio.h>
13809int
13810main ()
13811{
13812rename("this", "that")
13813  ;
13814  return 0;
13815}
13816_ACEOF
13817if ac_fn_c_try_link "$LINENO"; then :
13818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13819$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h
13820
13821else
13822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13823$as_echo "no" >&6; }
13824fi
13825rm -f core conftest.err conftest.$ac_objext \
13826    conftest$ac_exeext conftest.$ac_ext
13827
13828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirfd" >&5
13829$as_echo_n "checking for dirfd... " >&6; }
13830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831/* end confdefs.h.  */
13832#include <sys/types.h>
13833#include <dirent.h>
13834int
13835main ()
13836{
13837DIR * dir=opendir("dirname"); dirfd(dir);
13838  ;
13839  return 0;
13840}
13841_ACEOF
13842if ac_fn_c_try_compile "$LINENO"; then :
13843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13844$as_echo "yes" >&6; }; $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
13845
13846else
13847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13848$as_echo "not usable" >&6; }
13849fi
13850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13851
13852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock" >&5
13853$as_echo_n "checking for flock... " >&6; }
13854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855/* end confdefs.h.  */
13856#include <sys/file.h>
13857int
13858main ()
13859{
13860flock(10, LOCK_SH);
13861  ;
13862  return 0;
13863}
13864_ACEOF
13865if ac_fn_c_try_compile "$LINENO"; then :
13866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13867$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
13868
13869else
13870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13871$as_echo "not usable" >&6; }
13872fi
13873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13874
13875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
13876$as_echo_n "checking for sysctl... " >&6; }
13877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13878/* end confdefs.h.  */
13879#include <sys/types.h>
13880#include <sys/sysctl.h>
13881int
13882main ()
13883{
13884	int mib[2], r;
13885	size_t len;
13886
13887	mib[0] = CTL_HW;
13888	mib[1] = HW_USERMEM;
13889	len = sizeof(r);
13890	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13891
13892  ;
13893  return 0;
13894}
13895_ACEOF
13896if ac_fn_c_try_compile "$LINENO"; then :
13897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13898$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h
13899
13900else
13901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13902$as_echo "not usable" >&6; }
13903fi
13904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13905
13906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
13907$as_echo_n "checking for sysinfo... " >&6; }
13908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909/* end confdefs.h.  */
13910#include <sys/types.h>
13911#include <sys/sysinfo.h>
13912int
13913main ()
13914{
13915	struct sysinfo sinfo;
13916	int t;
13917
13918	(void)sysinfo(&sinfo);
13919	t = sinfo.totalram;
13920
13921  ;
13922  return 0;
13923}
13924_ACEOF
13925if ac_fn_c_try_compile "$LINENO"; then :
13926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13927$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
13928
13929else
13930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13931$as_echo "not usable" >&6; }
13932fi
13933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13934
13935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5
13936$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
13937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938/* end confdefs.h.  */
13939#include <sys/types.h>
13940#include <sys/sysinfo.h>
13941int
13942main ()
13943{
13944	struct sysinfo sinfo;
13945	sinfo.mem_unit = 1;
13946
13947  ;
13948  return 0;
13949}
13950_ACEOF
13951if ac_fn_c_try_compile "$LINENO"; then :
13952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13953$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h
13954
13955else
13956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13957$as_echo "no" >&6; }
13958fi
13959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13960
13961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
13962$as_echo_n "checking for sysconf... " >&6; }
13963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13964/* end confdefs.h.  */
13965#include <unistd.h>
13966int
13967main ()
13968{
13969	(void)sysconf(_SC_PAGESIZE);
13970	(void)sysconf(_SC_PHYS_PAGES);
13971
13972  ;
13973  return 0;
13974}
13975_ACEOF
13976if ac_fn_c_try_compile "$LINENO"; then :
13977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13978$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
13979
13980else
13981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13982$as_echo "not usable" >&6; }
13983fi
13984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985
13986# The cast to long int works around a bug in the HP C Compiler
13987# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13988# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13989# This bug is HP SR number 8606223364.
13990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13991$as_echo_n "checking size of int... " >&6; }
13992if ${ac_cv_sizeof_int+:} false; then :
13993  $as_echo_n "(cached) " >&6
13994else
13995  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13996
13997else
13998  if test "$ac_cv_type_int" = yes; then
13999     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14001as_fn_error 77 "cannot compute sizeof (int)
14002See \`config.log' for more details" "$LINENO" 5; }
14003   else
14004     ac_cv_sizeof_int=0
14005   fi
14006fi
14007
14008fi
14009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14010$as_echo "$ac_cv_sizeof_int" >&6; }
14011
14012
14013
14014cat >>confdefs.h <<_ACEOF
14015#define SIZEOF_INT $ac_cv_sizeof_int
14016_ACEOF
14017
14018
14019# The cast to long int works around a bug in the HP C Compiler
14020# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14021# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14022# This bug is HP SR number 8606223364.
14023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14024$as_echo_n "checking size of long... " >&6; }
14025if ${ac_cv_sizeof_long+:} false; then :
14026  $as_echo_n "(cached) " >&6
14027else
14028  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
14029
14030else
14031  if test "$ac_cv_type_long" = yes; then
14032     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14034as_fn_error 77 "cannot compute sizeof (long)
14035See \`config.log' for more details" "$LINENO" 5; }
14036   else
14037     ac_cv_sizeof_long=0
14038   fi
14039fi
14040
14041fi
14042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14043$as_echo "$ac_cv_sizeof_long" >&6; }
14044
14045
14046
14047cat >>confdefs.h <<_ACEOF
14048#define SIZEOF_LONG $ac_cv_sizeof_long
14049_ACEOF
14050
14051
14052# The cast to long int works around a bug in the HP C Compiler
14053# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14054# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14055# This bug is HP SR number 8606223364.
14056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14057$as_echo_n "checking size of time_t... " >&6; }
14058if ${ac_cv_sizeof_time_t+:} false; then :
14059  $as_echo_n "(cached) " >&6
14060else
14061  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
14062
14063else
14064  if test "$ac_cv_type_time_t" = yes; then
14065     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14067as_fn_error 77 "cannot compute sizeof (time_t)
14068See \`config.log' for more details" "$LINENO" 5; }
14069   else
14070     ac_cv_sizeof_time_t=0
14071   fi
14072fi
14073
14074fi
14075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14076$as_echo "$ac_cv_sizeof_time_t" >&6; }
14077
14078
14079
14080cat >>confdefs.h <<_ACEOF
14081#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14082_ACEOF
14083
14084
14085# The cast to long int works around a bug in the HP C Compiler
14086# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14087# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14088# This bug is HP SR number 8606223364.
14089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14090$as_echo_n "checking size of off_t... " >&6; }
14091if ${ac_cv_sizeof_off_t+:} false; then :
14092  $as_echo_n "(cached) " >&6
14093else
14094  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
14095
14096else
14097  if test "$ac_cv_type_off_t" = yes; then
14098     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14100as_fn_error 77 "cannot compute sizeof (off_t)
14101See \`config.log' for more details" "$LINENO" 5; }
14102   else
14103     ac_cv_sizeof_off_t=0
14104   fi
14105fi
14106
14107fi
14108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14109$as_echo "$ac_cv_sizeof_off_t" >&6; }
14110
14111
14112
14113cat >>confdefs.h <<_ACEOF
14114#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14115_ACEOF
14116
14117
14118
14119cat >>confdefs.h <<_ACEOF
14120#define VIM_SIZEOF_INT $ac_cv_sizeof_int
14121_ACEOF
14122
14123cat >>confdefs.h <<_ACEOF
14124#define VIM_SIZEOF_LONG $ac_cv_sizeof_long
14125_ACEOF
14126
14127
14128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
14129$as_echo_n "checking uint32_t is 32 bits... " >&6; }
14130if test "$cross_compiling" = yes; then :
14131  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5
14132$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;}
14133else
14134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135/* end confdefs.h.  */
14136
14137#ifdef HAVE_STDINT_H
14138# include <stdint.h>
14139#endif
14140#ifdef HAVE_INTTYPES_H
14141# include <inttypes.h>
14142#endif
14143main() {
14144  uint32_t nr1 = (uint32_t)-1;
14145  uint32_t nr2 = (uint32_t)0xffffffffUL;
14146  if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) return 1;
14147  return 0;
14148}
14149_ACEOF
14150if ac_fn_c_try_run "$LINENO"; then :
14151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14152$as_echo "ok" >&6; }
14153else
14154  as_fn_error $? "WRONG!  uint32_t not defined correctly." "$LINENO" 5
14155fi
14156rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14157  conftest.$ac_objext conftest.beam conftest.$ac_ext
14158fi
14159
14160
14161
14162bcopy_test_prog='
14163#include "confdefs.h"
14164#ifdef HAVE_STRING_H
14165# include <string.h>
14166#endif
14167#if STDC_HEADERS
14168# include <stdlib.h>
14169# include <stddef.h>
14170#endif
14171main() {
14172  char buf[10];
14173  strcpy(buf, "abcdefghi");
14174  mch_memmove(buf, buf + 2, 3);
14175  if (strncmp(buf, "ababcf", 6))
14176    exit(1);
14177  strcpy(buf, "abcdefghi");
14178  mch_memmove(buf + 2, buf, 3);
14179  if (strncmp(buf, "cdedef", 6))
14180    exit(1);
14181  exit(0); /* libc version works properly.  */
14182}'
14183
14184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5
14185$as_echo_n "checking whether memmove handles overlaps... " >&6; }
14186if ${vim_cv_memmove_handles_overlap+:} false; then :
14187  $as_echo_n "(cached) " >&6
14188else
14189
14190    if test "$cross_compiling" = yes; then :
14191
14192	as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5
14193
14194else
14195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14196/* end confdefs.h.  */
14197#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
14198_ACEOF
14199if ac_fn_c_try_run "$LINENO"; then :
14200
14201	vim_cv_memmove_handles_overlap=yes
14202
14203else
14204
14205	vim_cv_memmove_handles_overlap=no
14206
14207fi
14208rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14209  conftest.$ac_objext conftest.beam conftest.$ac_ext
14210fi
14211
14212
14213fi
14214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5
14215$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
14216
14217if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
14218  $as_echo "#define USEMEMMOVE 1" >>confdefs.h
14219
14220else
14221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5
14222$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
14223if ${vim_cv_bcopy_handles_overlap+:} false; then :
14224  $as_echo_n "(cached) " >&6
14225else
14226
14227      if test "$cross_compiling" = yes; then :
14228
14229	as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5
14230
14231else
14232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14233/* end confdefs.h.  */
14234#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
14235_ACEOF
14236if ac_fn_c_try_run "$LINENO"; then :
14237
14238	vim_cv_bcopy_handles_overlap=yes
14239
14240else
14241
14242	vim_cv_bcopy_handles_overlap=no
14243
14244fi
14245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14246  conftest.$ac_objext conftest.beam conftest.$ac_ext
14247fi
14248
14249
14250fi
14251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5
14252$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
14253
14254  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
14255    $as_echo "#define USEBCOPY 1" >>confdefs.h
14256
14257  else
14258    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5
14259$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
14260if ${vim_cv_memcpy_handles_overlap+:} false; then :
14261  $as_echo_n "(cached) " >&6
14262else
14263
14264	if test "$cross_compiling" = yes; then :
14265
14266	    as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5
14267
14268else
14269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270/* end confdefs.h.  */
14271#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
14272_ACEOF
14273if ac_fn_c_try_run "$LINENO"; then :
14274
14275	    vim_cv_memcpy_handles_overlap=yes
14276
14277else
14278
14279	    vim_cv_memcpy_handles_overlap=no
14280
14281fi
14282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14283  conftest.$ac_objext conftest.beam conftest.$ac_ext
14284fi
14285
14286
14287fi
14288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5
14289$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
14290
14291    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
14292      $as_echo "#define USEMEMCPY 1" >>confdefs.h
14293
14294    fi
14295  fi
14296fi
14297
14298
14299if test "x$with_x" = "xyes"; then
14300  cflags_save=$CFLAGS
14301  libs_save=$LIBS
14302  LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS"
14303  CFLAGS="$CFLAGS $X_CFLAGS"
14304
14305  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
14306$as_echo_n "checking whether X_LOCALE needed... " >&6; }
14307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308/* end confdefs.h.  */
14309#include <X11/Xlocale.h>
14310int
14311main ()
14312{
14313
14314  ;
14315  return 0;
14316}
14317_ACEOF
14318if ac_fn_c_try_compile "$LINENO"; then :
14319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320/* end confdefs.h.  */
14321
14322/* Override any GCC internal prototype to avoid an error.
14323   Use char because int might match the return type of a GCC
14324   builtin and then its argument prototype would still apply.  */
14325#ifdef __cplusplus
14326extern "C"
14327#endif
14328char _Xsetlocale ();
14329int
14330main ()
14331{
14332return _Xsetlocale ();
14333  ;
14334  return 0;
14335}
14336_ACEOF
14337if ac_fn_c_try_link "$LINENO"; then :
14338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14339$as_echo "yes" >&6; }
14340	      $as_echo "#define X_LOCALE 1" >>confdefs.h
14341
14342else
14343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14344$as_echo "no" >&6; }
14345fi
14346rm -f core conftest.err conftest.$ac_objext \
14347    conftest$ac_exeext conftest.$ac_ext
14348else
14349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14350$as_echo "no" >&6; }
14351fi
14352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14353
14354  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5
14355$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; }
14356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357/* end confdefs.h.  */
14358
14359/* Override any GCC internal prototype to avoid an error.
14360   Use char because int might match the return type of a GCC
14361   builtin and then its argument prototype would still apply.  */
14362#ifdef __cplusplus
14363extern "C"
14364#endif
14365char Xutf8SetWMProperties ();
14366int
14367main ()
14368{
14369return Xutf8SetWMProperties ();
14370  ;
14371  return 0;
14372}
14373_ACEOF
14374if ac_fn_c_try_link "$LINENO"; then :
14375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14376$as_echo "yes" >&6; }
14377	      $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h
14378
14379else
14380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14381$as_echo "no" >&6; }
14382fi
14383rm -f core conftest.err conftest.$ac_objext \
14384    conftest$ac_exeext conftest.$ac_ext
14385
14386  CFLAGS=$cflags_save
14387  LIBS=$libs_save
14388fi
14389
14390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
14391$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
14392if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then :
14393  $as_echo_n "(cached) " >&6
14394else
14395  ac_check_lib_save_LIBS=$LIBS
14396LIBS="-lxpg4  $LIBS"
14397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398/* end confdefs.h.  */
14399
14400/* Override any GCC internal prototype to avoid an error.
14401   Use char because int might match the return type of a GCC
14402   builtin and then its argument prototype would still apply.  */
14403#ifdef __cplusplus
14404extern "C"
14405#endif
14406char _xpg4_setrunelocale ();
14407int
14408main ()
14409{
14410return _xpg4_setrunelocale ();
14411  ;
14412  return 0;
14413}
14414_ACEOF
14415if ac_fn_c_try_link "$LINENO"; then :
14416  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
14417else
14418  ac_cv_lib_xpg4__xpg4_setrunelocale=no
14419fi
14420rm -f core conftest.err conftest.$ac_objext \
14421    conftest$ac_exeext conftest.$ac_ext
14422LIBS=$ac_check_lib_save_LIBS
14423fi
14424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14425$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
14426if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then :
14427  LIBS="$LIBS -lxpg4"
14428fi
14429
14430
14431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5
14432$as_echo_n "checking how to create tags... " >&6; }
14433test -f tags && mv tags tags.save
14434if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14435  TAGPRG="ctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S"
14436elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14437  TAGPRG="exctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S"
14438elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14439  TAGPRG="exuberant-ctags -I INIT+,INIT2+,INIT3+,INIT4+,INIT5+ --fields=+S"
14440else
14441  TAGPRG="ctags"
14442  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14443  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14444  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14445  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14446  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14447  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14448  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14449fi
14450test -f tags.save && mv tags.save tags
14451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5
14452$as_echo "$TAGPRG" >&6; }
14453
14454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5
14455$as_echo_n "checking how to run man with a section nr... " >&6; }
14456MANDEF="man"
14457(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
14458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5
14459$as_echo "$MANDEF" >&6; }
14460if test "$MANDEF" = "man -s"; then
14461  $as_echo "#define USEMAN_S 1" >>confdefs.h
14462
14463fi
14464
14465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5
14466$as_echo_n "checking --disable-nls argument... " >&6; }
14467# Check whether --enable-nls was given.
14468if test "${enable_nls+set}" = set; then :
14469  enableval=$enable_nls;
14470else
14471  enable_nls="yes"
14472fi
14473
14474
14475if test "$enable_nls" = "yes"; then
14476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14477$as_echo "no" >&6; }
14478
14479  INSTALL_LANGS=install-languages
14480
14481  INSTALL_TOOL_LANGS=install-tool-languages
14482
14483
14484  # Extract the first word of "msgfmt", so it can be a program name with args.
14485set dummy msgfmt; ac_word=$2
14486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14487$as_echo_n "checking for $ac_word... " >&6; }
14488if ${ac_cv_prog_MSGFMT+:} false; then :
14489  $as_echo_n "(cached) " >&6
14490else
14491  if test -n "$MSGFMT"; then
14492  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14493else
14494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14495for as_dir in $PATH
14496do
14497  IFS=$as_save_IFS
14498  test -z "$as_dir" && as_dir=.
14499    for ac_exec_ext in '' $ac_executable_extensions; do
14500  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14501    ac_cv_prog_MSGFMT="msgfmt"
14502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14503    break 2
14504  fi
14505done
14506  done
14507IFS=$as_save_IFS
14508
14509fi
14510fi
14511MSGFMT=$ac_cv_prog_MSGFMT
14512if test -n "$MSGFMT"; then
14513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14514$as_echo "$MSGFMT" >&6; }
14515else
14516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14517$as_echo "no" >&6; }
14518fi
14519
14520
14521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5
14522$as_echo_n "checking for NLS... " >&6; }
14523  if test -f po/Makefile; then
14524    have_gettext="no"
14525    if test -n "$MSGFMT"; then
14526      olibs=$LIBS
14527      LIBS=""
14528      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529/* end confdefs.h.  */
14530#include <libintl.h>
14531int
14532main ()
14533{
14534gettext("Test");
14535  ;
14536  return 0;
14537}
14538_ACEOF
14539if ac_fn_c_try_link "$LINENO"; then :
14540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
14541$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs
14542else
14543  LIBS="-lintl"
14544	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14545/* end confdefs.h.  */
14546#include <libintl.h>
14547int
14548main ()
14549{
14550gettext("Test");
14551  ;
14552  return 0;
14553}
14554_ACEOF
14555if ac_fn_c_try_link "$LINENO"; then :
14556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
14557$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes";
14558	      LIBS="$olibs -lintl"
14559else
14560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
14561$as_echo "gettext() doesn't work" >&6; };
14562	      LIBS=$olibs
14563fi
14564rm -f core conftest.err conftest.$ac_objext \
14565    conftest$ac_exeext conftest.$ac_ext
14566fi
14567rm -f core conftest.err conftest.$ac_objext \
14568    conftest$ac_exeext conftest.$ac_ext
14569    else
14570      { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5
14571$as_echo "msgfmt not found - disabled" >&6; };
14572    fi
14573    if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then
14574      $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14575
14576      MAKEMO=yes
14577
14578            for ac_func in bind_textdomain_codeset
14579do :
14580  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
14581if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
14582  cat >>confdefs.h <<_ACEOF
14583#define HAVE_BIND_TEXTDOMAIN_CODESET 1
14584_ACEOF
14585
14586fi
14587done
14588
14589            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5
14590$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
14591      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592/* end confdefs.h.  */
14593#include <libintl.h>
14594		extern int _nl_msg_cat_cntr;
14595int
14596main ()
14597{
14598++_nl_msg_cat_cntr;
14599  ;
14600  return 0;
14601}
14602_ACEOF
14603if ac_fn_c_try_link "$LINENO"; then :
14604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14605$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h
14606
14607else
14608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14609$as_echo "no" >&6; }
14610fi
14611rm -f core conftest.err conftest.$ac_objext \
14612    conftest$ac_exeext conftest.$ac_ext
14613      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt supports --desktop" >&5
14614$as_echo_n "checking if msgfmt supports --desktop... " >&6; }
14615      MSGFMT_DESKTOP=
14616      if "$MSGFMT" --help | grep -e '--desktop' >/dev/null; then
14617	if "$MSGFMT" --version | grep '0.19.[3-7]$' >/dev/null; then
14618	  	  	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
14619$as_echo "broken" >&6; }
14620	else
14621	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14622$as_echo "yes" >&6; }
14623	  MSGFMT_DESKTOP="gvim.desktop vim.desktop"
14624	fi
14625      else
14626	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14627$as_echo "no" >&6; }
14628      fi
14629
14630    fi
14631  else
14632    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5
14633$as_echo "no \"po/Makefile\" - disabled" >&6; };
14634  fi
14635else
14636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14637$as_echo "yes" >&6; }
14638fi
14639
14640ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14641if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14642  DLL=dlfcn.h
14643else
14644  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
14645if test "x$ac_cv_header_dl_h" = xyes; then :
14646  DLL=dl.h
14647fi
14648
14649
14650fi
14651
14652
14653if test x${DLL} = xdlfcn.h; then
14654
14655$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
14656
14657  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5
14658$as_echo_n "checking for dlopen()... " >&6; }
14659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660/* end confdefs.h.  */
14661
14662int
14663main ()
14664{
14665
14666		extern void* dlopen();
14667		dlopen();
14668
14669  ;
14670  return 0;
14671}
14672_ACEOF
14673if ac_fn_c_try_link "$LINENO"; then :
14674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14675$as_echo "yes" >&6; };
14676
14677$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14678
14679else
14680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14681$as_echo "no" >&6; };
14682	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5
14683$as_echo_n "checking for dlopen() in -ldl... " >&6; }
14684	      olibs=$LIBS
14685	      LIBS="$LIBS -ldl"
14686	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14687/* end confdefs.h.  */
14688
14689int
14690main ()
14691{
14692
14693				extern void* dlopen();
14694				dlopen();
14695
14696  ;
14697  return 0;
14698}
14699_ACEOF
14700if ac_fn_c_try_link "$LINENO"; then :
14701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14702$as_echo "yes" >&6; };
14703
14704$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14705
14706else
14707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14708$as_echo "no" >&6; };
14709			  LIBS=$olibs
14710fi
14711rm -f core conftest.err conftest.$ac_objext \
14712    conftest$ac_exeext conftest.$ac_ext
14713fi
14714rm -f core conftest.err conftest.$ac_objext \
14715    conftest$ac_exeext conftest.$ac_ext
14716      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5
14717$as_echo_n "checking for dlsym()... " >&6; }
14718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14719/* end confdefs.h.  */
14720
14721int
14722main ()
14723{
14724
14725		extern void* dlsym();
14726		dlsym();
14727
14728  ;
14729  return 0;
14730}
14731_ACEOF
14732if ac_fn_c_try_link "$LINENO"; then :
14733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14734$as_echo "yes" >&6; };
14735
14736$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
14737
14738else
14739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14740$as_echo "no" >&6; };
14741	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5
14742$as_echo_n "checking for dlsym() in -ldl... " >&6; }
14743	      olibs=$LIBS
14744	      LIBS="$LIBS -ldl"
14745	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14746/* end confdefs.h.  */
14747
14748int
14749main ()
14750{
14751
14752				extern void* dlsym();
14753				dlsym();
14754
14755  ;
14756  return 0;
14757}
14758_ACEOF
14759if ac_fn_c_try_link "$LINENO"; then :
14760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14761$as_echo "yes" >&6; };
14762
14763$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
14764
14765else
14766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14767$as_echo "no" >&6; };
14768			  LIBS=$olibs
14769fi
14770rm -f core conftest.err conftest.$ac_objext \
14771    conftest$ac_exeext conftest.$ac_ext
14772fi
14773rm -f core conftest.err conftest.$ac_objext \
14774    conftest$ac_exeext conftest.$ac_ext
14775elif test x${DLL} = xdl.h; then
14776
14777$as_echo "#define HAVE_DL_H 1" >>confdefs.h
14778
14779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5
14780$as_echo_n "checking for shl_load()... " >&6; }
14781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14782/* end confdefs.h.  */
14783
14784int
14785main ()
14786{
14787
14788		extern void* shl_load();
14789		shl_load();
14790
14791  ;
14792  return 0;
14793}
14794_ACEOF
14795if ac_fn_c_try_link "$LINENO"; then :
14796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14797$as_echo "yes" >&6; };
14798
14799$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14800
14801else
14802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14803$as_echo "no" >&6; };
14804	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5
14805$as_echo_n "checking for shl_load() in -ldld... " >&6; }
14806	  olibs=$LIBS
14807	  LIBS="$LIBS -ldld"
14808	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14809/* end confdefs.h.  */
14810
14811int
14812main ()
14813{
14814
14815			extern void* shl_load();
14816			shl_load();
14817
14818  ;
14819  return 0;
14820}
14821_ACEOF
14822if ac_fn_c_try_link "$LINENO"; then :
14823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14824$as_echo "yes" >&6; };
14825
14826$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14827
14828else
14829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14830$as_echo "no" >&6; };
14831		  LIBS=$olibs
14832fi
14833rm -f core conftest.err conftest.$ac_objext \
14834    conftest$ac_exeext conftest.$ac_ext
14835fi
14836rm -f core conftest.err conftest.$ac_objext \
14837    conftest$ac_exeext conftest.$ac_ext
14838fi
14839for ac_header in setjmp.h
14840do :
14841  ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
14842if test "x$ac_cv_header_setjmp_h" = xyes; then :
14843  cat >>confdefs.h <<_ACEOF
14844#define HAVE_SETJMP_H 1
14845_ACEOF
14846
14847fi
14848
14849done
14850
14851
14852if test "x$MACOS_X" = "xyes" -a -n "$PERL"; then
14853    if echo $LIBS | grep -e '-ldl' >/dev/null; then
14854    LIBS=`echo $LIBS | sed s/-ldl//`
14855    PERL_LIBS="$PERL_LIBS -ldl"
14856  fi
14857fi
14858
14859if test "$MACOS_X" = "yes"; then
14860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need macOS frameworks" >&5
14861$as_echo_n "checking whether we need macOS frameworks... " >&6; }
14862  if test "$GUITYPE" = "CARBONGUI"; then
14863    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need Carbon" >&5
14864$as_echo "yes, we need Carbon" >&6; }
14865    LIBS="$LIBS -framework Carbon"
14866  elif test "$MACOS_X_DARWIN" = "yes"; then
14867    if test "$features" = "tiny"; then
14868            OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'`
14869      OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'`
14870      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5
14871$as_echo "yes, we need CoreServices" >&6; }
14872      LIBS="$LIBS -framework CoreServices"
14873    else
14874      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5
14875$as_echo "yes, we need AppKit" >&6; }
14876      LIBS="$LIBS -framework AppKit"
14877    fi
14878  else
14879    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14880$as_echo "no" >&6; }
14881  fi
14882fi
14883if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then
14884  LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
14885fi
14886
14887DEPEND_CFLAGS_FILTER=
14888if test "$GCC" = yes; then
14889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5
14890$as_echo_n "checking for GCC 3 or later... " >&6; }
14891  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9][0-9]*\)\..*$/\1/g'`
14892  if test "$gccmajor" -gt "2"; then
14893    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
14894    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14895$as_echo "yes" >&6; }
14896  else
14897    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14898$as_echo "no" >&6; }
14899  fi
14900          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
14901$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
14902  if test "$gccmajor" -gt "3"; then
14903    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/'`
14904    CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/ *-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g'`
14905    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14906$as_echo "yes" >&6; }
14907  else
14908    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14909$as_echo "no" >&6; }
14910  fi
14911fi
14912
14913
14914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to force -D_FILE_OFFSET_BITS=64" >&5
14915$as_echo_n "checking whether we need to force -D_FILE_OFFSET_BITS=64... " >&6; }
14916if 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
14917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14918$as_echo "yes" >&6; }
14919  $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14920
14921else
14922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14923$as_echo "no" >&6; }
14924fi
14925
14926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14927$as_echo_n "checking linker --as-needed support... " >&6; }
14928LINK_AS_NEEDED=
14929# Check if linker supports --as-needed and --no-as-needed options
14930if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
14931  LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
14932  LINK_AS_NEEDED=yes
14933fi
14934if test "$LINK_AS_NEEDED" = yes; then
14935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14936$as_echo "yes" >&6; }
14937else
14938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14939$as_echo "no" >&6; }
14940fi
14941
14942
14943# IBM z/OS reset CFLAGS for config.mk
14944if test "$zOSUnix" = "yes"; then
14945	CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
14946fi
14947
14948ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
14949
14950cat >confcache <<\_ACEOF
14951# This file is a shell script that caches the results of configure
14952# tests run on this system so they can be shared between configure
14953# scripts and configure runs, see configure's option --config-cache.
14954# It is not useful on other systems.  If it contains results you don't
14955# want to keep, you may remove or edit it.
14956#
14957# config.status only pays attention to the cache file if you give it
14958# the --recheck option to rerun configure.
14959#
14960# `ac_cv_env_foo' variables (set or unset) will be overridden when
14961# loading this file, other *unset* `ac_cv_foo' will be assigned the
14962# following values.
14963
14964_ACEOF
14965
14966# The following way of writing the cache mishandles newlines in values,
14967# but we know of no workaround that is simple, portable, and efficient.
14968# So, we kill variables containing newlines.
14969# Ultrix sh set writes to stderr and can't be redirected directly,
14970# and sets the high bit in the cache file unless we assign to the vars.
14971(
14972  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14973    eval ac_val=\$$ac_var
14974    case $ac_val in #(
14975    *${as_nl}*)
14976      case $ac_var in #(
14977      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14978$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14979      esac
14980      case $ac_var in #(
14981      _ | IFS | as_nl) ;; #(
14982      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14983      *) { eval $ac_var=; unset $ac_var;} ;;
14984      esac ;;
14985    esac
14986  done
14987
14988  (set) 2>&1 |
14989    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14990    *${as_nl}ac_space=\ *)
14991      # `set' does not quote correctly, so add quotes: double-quote
14992      # substitution turns \\\\ into \\, and sed turns \\ into \.
14993      sed -n \
14994	"s/'/'\\\\''/g;
14995	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14996      ;; #(
14997    *)
14998      # `set' quotes correctly as required by POSIX, so do not add quotes.
14999      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15000      ;;
15001    esac |
15002    sort
15003) |
15004  sed '
15005     /^ac_cv_env_/b end
15006     t clear
15007     :clear
15008     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15009     t end
15010     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15011     :end' >>confcache
15012if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15013  if test -w "$cache_file"; then
15014    if test "x$cache_file" != "x/dev/null"; then
15015      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15016$as_echo "$as_me: updating cache $cache_file" >&6;}
15017      if test ! -f "$cache_file" || test -h "$cache_file"; then
15018	cat confcache >"$cache_file"
15019      else
15020        case $cache_file in #(
15021        */* | ?:*)
15022	  mv -f confcache "$cache_file"$$ &&
15023	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15024        *)
15025	  mv -f confcache "$cache_file" ;;
15026	esac
15027      fi
15028    fi
15029  else
15030    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15031$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15032  fi
15033fi
15034rm -f confcache
15035
15036test "x$prefix" = xNONE && prefix=$ac_default_prefix
15037# Let make expand exec_prefix.
15038test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15039
15040DEFS=-DHAVE_CONFIG_H
15041
15042ac_libobjs=
15043ac_ltlibobjs=
15044U=
15045for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15046  # 1. Remove the extension, and $U if already installed.
15047  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15048  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15049  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15050  #    will be set to the directory where LIBOBJS objects are built.
15051  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15052  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15053done
15054LIBOBJS=$ac_libobjs
15055
15056LTLIBOBJS=$ac_ltlibobjs
15057
15058
15059
15060
15061: "${CONFIG_STATUS=./config.status}"
15062ac_write_fail=0
15063ac_clean_files_save=$ac_clean_files
15064ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15065{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15066$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15067as_write_fail=0
15068cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15069#! $SHELL
15070# Generated by $as_me.
15071# Run this file to recreate the current configuration.
15072# Compiler output produced by configure, useful for debugging
15073# configure, is in config.log if it exists.
15074
15075debug=false
15076ac_cs_recheck=false
15077ac_cs_silent=false
15078
15079SHELL=\${CONFIG_SHELL-$SHELL}
15080export SHELL
15081_ASEOF
15082cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15083## -------------------- ##
15084## M4sh Initialization. ##
15085## -------------------- ##
15086
15087# Be more Bourne compatible
15088DUALCASE=1; export DUALCASE # for MKS sh
15089if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15090  emulate sh
15091  NULLCMD=:
15092  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15093  # is contrary to our usage.  Disable this feature.
15094  alias -g '${1+"$@"}'='"$@"'
15095  setopt NO_GLOB_SUBST
15096else
15097  case `(set -o) 2>/dev/null` in #(
15098  *posix*) :
15099    set -o posix ;; #(
15100  *) :
15101     ;;
15102esac
15103fi
15104
15105
15106as_nl='
15107'
15108export as_nl
15109# Printing a long string crashes Solaris 7 /usr/bin/printf.
15110as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15111as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15112as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15113# Prefer a ksh shell builtin over an external printf program on Solaris,
15114# but without wasting forks for bash or zsh.
15115if test -z "$BASH_VERSION$ZSH_VERSION" \
15116    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15117  as_echo='print -r --'
15118  as_echo_n='print -rn --'
15119elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15120  as_echo='printf %s\n'
15121  as_echo_n='printf %s'
15122else
15123  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15124    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15125    as_echo_n='/usr/ucb/echo -n'
15126  else
15127    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15128    as_echo_n_body='eval
15129      arg=$1;
15130      case $arg in #(
15131      *"$as_nl"*)
15132	expr "X$arg" : "X\\(.*\\)$as_nl";
15133	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15134      esac;
15135      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15136    '
15137    export as_echo_n_body
15138    as_echo_n='sh -c $as_echo_n_body as_echo'
15139  fi
15140  export as_echo_body
15141  as_echo='sh -c $as_echo_body as_echo'
15142fi
15143
15144# The user is always right.
15145if test "${PATH_SEPARATOR+set}" != set; then
15146  PATH_SEPARATOR=:
15147  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15148    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15149      PATH_SEPARATOR=';'
15150  }
15151fi
15152
15153
15154# IFS
15155# We need space, tab and new line, in precisely that order.  Quoting is
15156# there to prevent editors from complaining about space-tab.
15157# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15158# splitting by setting IFS to empty value.)
15159IFS=" ""	$as_nl"
15160
15161# Find who we are.  Look in the path if we contain no directory separator.
15162as_myself=
15163case $0 in #((
15164  *[\\/]* ) as_myself=$0 ;;
15165  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15166for as_dir in $PATH
15167do
15168  IFS=$as_save_IFS
15169  test -z "$as_dir" && as_dir=.
15170    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15171  done
15172IFS=$as_save_IFS
15173
15174     ;;
15175esac
15176# We did not find ourselves, most probably we were run as `sh COMMAND'
15177# in which case we are not to be found in the path.
15178if test "x$as_myself" = x; then
15179  as_myself=$0
15180fi
15181if test ! -f "$as_myself"; then
15182  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15183  exit 1
15184fi
15185
15186# Unset variables that we do not need and which cause bugs (e.g. in
15187# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15188# suppresses any "Segmentation fault" message there.  '((' could
15189# trigger a bug in pdksh 5.2.14.
15190for as_var in BASH_ENV ENV MAIL MAILPATH
15191do eval test x\${$as_var+set} = xset \
15192  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15193done
15194PS1='$ '
15195PS2='> '
15196PS4='+ '
15197
15198# NLS nuisances.
15199LC_ALL=C
15200export LC_ALL
15201LANGUAGE=C
15202export LANGUAGE
15203
15204# CDPATH.
15205(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15206
15207
15208# as_fn_error STATUS ERROR [LINENO LOG_FD]
15209# ----------------------------------------
15210# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15211# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15212# script with STATUS, using 1 if that was 0.
15213as_fn_error ()
15214{
15215  as_status=$1; test $as_status -eq 0 && as_status=1
15216  if test "$4"; then
15217    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15218    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15219  fi
15220  $as_echo "$as_me: error: $2" >&2
15221  as_fn_exit $as_status
15222} # as_fn_error
15223
15224
15225# as_fn_set_status STATUS
15226# -----------------------
15227# Set $? to STATUS, without forking.
15228as_fn_set_status ()
15229{
15230  return $1
15231} # as_fn_set_status
15232
15233# as_fn_exit STATUS
15234# -----------------
15235# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15236as_fn_exit ()
15237{
15238  set +e
15239  as_fn_set_status $1
15240  exit $1
15241} # as_fn_exit
15242
15243# as_fn_unset VAR
15244# ---------------
15245# Portably unset VAR.
15246as_fn_unset ()
15247{
15248  { eval $1=; unset $1;}
15249}
15250as_unset=as_fn_unset
15251# as_fn_append VAR VALUE
15252# ----------------------
15253# Append the text in VALUE to the end of the definition contained in VAR. Take
15254# advantage of any shell optimizations that allow amortized linear growth over
15255# repeated appends, instead of the typical quadratic growth present in naive
15256# implementations.
15257if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15258  eval 'as_fn_append ()
15259  {
15260    eval $1+=\$2
15261  }'
15262else
15263  as_fn_append ()
15264  {
15265    eval $1=\$$1\$2
15266  }
15267fi # as_fn_append
15268
15269# as_fn_arith ARG...
15270# ------------------
15271# Perform arithmetic evaluation on the ARGs, and store the result in the
15272# global $as_val. Take advantage of shells that can avoid forks. The arguments
15273# must be portable across $(()) and expr.
15274if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15275  eval 'as_fn_arith ()
15276  {
15277    as_val=$(( $* ))
15278  }'
15279else
15280  as_fn_arith ()
15281  {
15282    as_val=`expr "$@" || test $? -eq 1`
15283  }
15284fi # as_fn_arith
15285
15286
15287if expr a : '\(a\)' >/dev/null 2>&1 &&
15288   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15289  as_expr=expr
15290else
15291  as_expr=false
15292fi
15293
15294if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15295  as_basename=basename
15296else
15297  as_basename=false
15298fi
15299
15300if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15301  as_dirname=dirname
15302else
15303  as_dirname=false
15304fi
15305
15306as_me=`$as_basename -- "$0" ||
15307$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15308	 X"$0" : 'X\(//\)$' \| \
15309	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15310$as_echo X/"$0" |
15311    sed '/^.*\/\([^/][^/]*\)\/*$/{
15312	    s//\1/
15313	    q
15314	  }
15315	  /^X\/\(\/\/\)$/{
15316	    s//\1/
15317	    q
15318	  }
15319	  /^X\/\(\/\).*/{
15320	    s//\1/
15321	    q
15322	  }
15323	  s/.*/./; q'`
15324
15325# Avoid depending upon Character Ranges.
15326as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15327as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15328as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15329as_cr_digits='0123456789'
15330as_cr_alnum=$as_cr_Letters$as_cr_digits
15331
15332ECHO_C= ECHO_N= ECHO_T=
15333case `echo -n x` in #(((((
15334-n*)
15335  case `echo 'xy\c'` in
15336  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15337  xy)  ECHO_C='\c';;
15338  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15339       ECHO_T='	';;
15340  esac;;
15341*)
15342  ECHO_N='-n';;
15343esac
15344
15345rm -f conf$$ conf$$.exe conf$$.file
15346if test -d conf$$.dir; then
15347  rm -f conf$$.dir/conf$$.file
15348else
15349  rm -f conf$$.dir
15350  mkdir conf$$.dir 2>/dev/null
15351fi
15352if (echo >conf$$.file) 2>/dev/null; then
15353  if ln -s conf$$.file conf$$ 2>/dev/null; then
15354    as_ln_s='ln -s'
15355    # ... but there are two gotchas:
15356    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15357    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15358    # In both cases, we have to default to `cp -pR'.
15359    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15360      as_ln_s='cp -pR'
15361  elif ln conf$$.file conf$$ 2>/dev/null; then
15362    as_ln_s=ln
15363  else
15364    as_ln_s='cp -pR'
15365  fi
15366else
15367  as_ln_s='cp -pR'
15368fi
15369rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15370rmdir conf$$.dir 2>/dev/null
15371
15372
15373# as_fn_mkdir_p
15374# -------------
15375# Create "$as_dir" as a directory, including parents if necessary.
15376as_fn_mkdir_p ()
15377{
15378
15379  case $as_dir in #(
15380  -*) as_dir=./$as_dir;;
15381  esac
15382  test -d "$as_dir" || eval $as_mkdir_p || {
15383    as_dirs=
15384    while :; do
15385      case $as_dir in #(
15386      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15387      *) as_qdir=$as_dir;;
15388      esac
15389      as_dirs="'$as_qdir' $as_dirs"
15390      as_dir=`$as_dirname -- "$as_dir" ||
15391$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15392	 X"$as_dir" : 'X\(//\)[^/]' \| \
15393	 X"$as_dir" : 'X\(//\)$' \| \
15394	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15395$as_echo X"$as_dir" |
15396    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15397	    s//\1/
15398	    q
15399	  }
15400	  /^X\(\/\/\)[^/].*/{
15401	    s//\1/
15402	    q
15403	  }
15404	  /^X\(\/\/\)$/{
15405	    s//\1/
15406	    q
15407	  }
15408	  /^X\(\/\).*/{
15409	    s//\1/
15410	    q
15411	  }
15412	  s/.*/./; q'`
15413      test -d "$as_dir" && break
15414    done
15415    test -z "$as_dirs" || eval "mkdir $as_dirs"
15416  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15417
15418
15419} # as_fn_mkdir_p
15420if mkdir -p . 2>/dev/null; then
15421  as_mkdir_p='mkdir -p "$as_dir"'
15422else
15423  test -d ./-p && rmdir ./-p
15424  as_mkdir_p=false
15425fi
15426
15427
15428# as_fn_executable_p FILE
15429# -----------------------
15430# Test if FILE is an executable regular file.
15431as_fn_executable_p ()
15432{
15433  test -f "$1" && test -x "$1"
15434} # as_fn_executable_p
15435as_test_x='test -x'
15436as_executable_p=as_fn_executable_p
15437
15438# Sed expression to map a string onto a valid CPP name.
15439as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15440
15441# Sed expression to map a string onto a valid variable name.
15442as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15443
15444
15445exec 6>&1
15446## ----------------------------------- ##
15447## Main body of $CONFIG_STATUS script. ##
15448## ----------------------------------- ##
15449_ASEOF
15450test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15451
15452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15453# Save the log message, to keep $0 and so on meaningful, and to
15454# report actual input values of CONFIG_FILES etc. instead of their
15455# values after options handling.
15456ac_log="
15457This file was extended by $as_me, which was
15458generated by GNU Autoconf 2.69.  Invocation command line was
15459
15460  CONFIG_FILES    = $CONFIG_FILES
15461  CONFIG_HEADERS  = $CONFIG_HEADERS
15462  CONFIG_LINKS    = $CONFIG_LINKS
15463  CONFIG_COMMANDS = $CONFIG_COMMANDS
15464  $ $0 $@
15465
15466on `(hostname || uname -n) 2>/dev/null | sed 1q`
15467"
15468
15469_ACEOF
15470
15471case $ac_config_files in *"
15472"*) set x $ac_config_files; shift; ac_config_files=$*;;
15473esac
15474
15475case $ac_config_headers in *"
15476"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15477esac
15478
15479
15480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15481# Files that config.status was made for.
15482config_files="$ac_config_files"
15483config_headers="$ac_config_headers"
15484
15485_ACEOF
15486
15487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15488ac_cs_usage="\
15489\`$as_me' instantiates files and other configuration actions
15490from templates according to the current configuration.  Unless the files
15491and actions are specified as TAGs, all are instantiated by default.
15492
15493Usage: $0 [OPTION]... [TAG]...
15494
15495  -h, --help       print this help, then exit
15496  -V, --version    print version number and configuration settings, then exit
15497      --config     print configuration, then exit
15498  -q, --quiet, --silent
15499                   do not print progress messages
15500  -d, --debug      don't remove temporary files
15501      --recheck    update $as_me by reconfiguring in the same conditions
15502      --file=FILE[:TEMPLATE]
15503                   instantiate the configuration file FILE
15504      --header=FILE[:TEMPLATE]
15505                   instantiate the configuration header FILE
15506
15507Configuration files:
15508$config_files
15509
15510Configuration headers:
15511$config_headers
15512
15513Report bugs to the package provider."
15514
15515_ACEOF
15516cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15517ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15518ac_cs_version="\\
15519config.status
15520configured by $0, generated by GNU Autoconf 2.69,
15521  with options \\"\$ac_cs_config\\"
15522
15523Copyright (C) 2012 Free Software Foundation, Inc.
15524This config.status script is free software; the Free Software Foundation
15525gives unlimited permission to copy, distribute and modify it."
15526
15527ac_pwd='$ac_pwd'
15528srcdir='$srcdir'
15529AWK='$AWK'
15530test -n "\$AWK" || AWK=awk
15531_ACEOF
15532
15533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15534# The default lists apply if the user does not specify any file.
15535ac_need_defaults=:
15536while test $# != 0
15537do
15538  case $1 in
15539  --*=?*)
15540    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15541    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15542    ac_shift=:
15543    ;;
15544  --*=)
15545    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15546    ac_optarg=
15547    ac_shift=:
15548    ;;
15549  *)
15550    ac_option=$1
15551    ac_optarg=$2
15552    ac_shift=shift
15553    ;;
15554  esac
15555
15556  case $ac_option in
15557  # Handling of the options.
15558  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15559    ac_cs_recheck=: ;;
15560  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15561    $as_echo "$ac_cs_version"; exit ;;
15562  --config | --confi | --conf | --con | --co | --c )
15563    $as_echo "$ac_cs_config"; exit ;;
15564  --debug | --debu | --deb | --de | --d | -d )
15565    debug=: ;;
15566  --file | --fil | --fi | --f )
15567    $ac_shift
15568    case $ac_optarg in
15569    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15570    '') as_fn_error $? "missing file argument" ;;
15571    esac
15572    as_fn_append CONFIG_FILES " '$ac_optarg'"
15573    ac_need_defaults=false;;
15574  --header | --heade | --head | --hea )
15575    $ac_shift
15576    case $ac_optarg in
15577    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15578    esac
15579    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15580    ac_need_defaults=false;;
15581  --he | --h)
15582    # Conflict between --help and --header
15583    as_fn_error $? "ambiguous option: \`$1'
15584Try \`$0 --help' for more information.";;
15585  --help | --hel | -h )
15586    $as_echo "$ac_cs_usage"; exit ;;
15587  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15588  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15589    ac_cs_silent=: ;;
15590
15591  # This is an error.
15592  -*) as_fn_error $? "unrecognized option: \`$1'
15593Try \`$0 --help' for more information." ;;
15594
15595  *) as_fn_append ac_config_targets " $1"
15596     ac_need_defaults=false ;;
15597
15598  esac
15599  shift
15600done
15601
15602ac_configure_extra_args=
15603
15604if $ac_cs_silent; then
15605  exec 6>/dev/null
15606  ac_configure_extra_args="$ac_configure_extra_args --silent"
15607fi
15608
15609_ACEOF
15610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15611if \$ac_cs_recheck; then
15612  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15613  shift
15614  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15615  CONFIG_SHELL='$SHELL'
15616  export CONFIG_SHELL
15617  exec "\$@"
15618fi
15619
15620_ACEOF
15621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15622exec 5>>auto/config.log
15623{
15624  echo
15625  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15626## Running $as_me. ##
15627_ASBOX
15628  $as_echo "$ac_log"
15629} >&5
15630
15631_ACEOF
15632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15633_ACEOF
15634
15635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15636
15637# Handling of arguments.
15638for ac_config_target in $ac_config_targets
15639do
15640  case $ac_config_target in
15641    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15642    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15643
15644  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15645  esac
15646done
15647
15648
15649# If the user did not use the arguments to specify the items to instantiate,
15650# then the envvar interface is used.  Set only those that are not.
15651# We use the long form for the default assignment because of an extremely
15652# bizarre bug on SunOS 4.1.3.
15653if $ac_need_defaults; then
15654  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15655  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15656fi
15657
15658# Have a temporary directory for convenience.  Make it in the build tree
15659# simply because there is no reason against having it here, and in addition,
15660# creating and moving files from /tmp can sometimes cause problems.
15661# Hook for its removal unless debugging.
15662# Note that there is a small window in which the directory will not be cleaned:
15663# after its creation but before its name has been assigned to `$tmp'.
15664$debug ||
15665{
15666  tmp= ac_tmp=
15667  trap 'exit_status=$?
15668  : "${ac_tmp:=$tmp}"
15669  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15670' 0
15671  trap 'as_fn_exit 1' 1 2 13 15
15672}
15673# Create a (secure) tmp directory for tmp files.
15674
15675{
15676  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15677  test -d "$tmp"
15678}  ||
15679{
15680  tmp=./conf$$-$RANDOM
15681  (umask 077 && mkdir "$tmp")
15682} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15683ac_tmp=$tmp
15684
15685# Set up the scripts for CONFIG_FILES section.
15686# No need to generate them if there are no CONFIG_FILES.
15687# This happens for instance with `./config.status config.h'.
15688if test -n "$CONFIG_FILES"; then
15689
15690
15691ac_cr=`echo X | tr X '\015'`
15692# On cygwin, bash can eat \r inside `` if the user requested igncr.
15693# But we know of no other shell where ac_cr would be empty at this
15694# point, so we can use a bashism as a fallback.
15695if test "x$ac_cr" = x; then
15696  eval ac_cr=\$\'\\r\'
15697fi
15698ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15699if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15700  ac_cs_awk_cr='\\r'
15701else
15702  ac_cs_awk_cr=$ac_cr
15703fi
15704
15705echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15706_ACEOF
15707
15708
15709{
15710  echo "cat >conf$$subs.awk <<_ACEOF" &&
15711  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15712  echo "_ACEOF"
15713} >conf$$subs.sh ||
15714  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15715ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15716ac_delim='%!_!# '
15717for ac_last_try in false false false false false :; do
15718  . ./conf$$subs.sh ||
15719    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15720
15721  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15722  if test $ac_delim_n = $ac_delim_num; then
15723    break
15724  elif $ac_last_try; then
15725    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15726  else
15727    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15728  fi
15729done
15730rm -f conf$$subs.sh
15731
15732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15733cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15734_ACEOF
15735sed -n '
15736h
15737s/^/S["/; s/!.*/"]=/
15738p
15739g
15740s/^[^!]*!//
15741:repl
15742t repl
15743s/'"$ac_delim"'$//
15744t delim
15745:nl
15746h
15747s/\(.\{148\}\)..*/\1/
15748t more1
15749s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15750p
15751n
15752b repl
15753:more1
15754s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15755p
15756g
15757s/.\{148\}//
15758t nl
15759:delim
15760h
15761s/\(.\{148\}\)..*/\1/
15762t more2
15763s/["\\]/\\&/g; s/^/"/; s/$/"/
15764p
15765b
15766:more2
15767s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15768p
15769g
15770s/.\{148\}//
15771t delim
15772' <conf$$subs.awk | sed '
15773/^[^""]/{
15774  N
15775  s/\n//
15776}
15777' >>$CONFIG_STATUS || ac_write_fail=1
15778rm -f conf$$subs.awk
15779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15780_ACAWK
15781cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15782  for (key in S) S_is_set[key] = 1
15783  FS = ""
15784
15785}
15786{
15787  line = $ 0
15788  nfields = split(line, field, "@")
15789  substed = 0
15790  len = length(field[1])
15791  for (i = 2; i < nfields; i++) {
15792    key = field[i]
15793    keylen = length(key)
15794    if (S_is_set[key]) {
15795      value = S[key]
15796      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15797      len += length(value) + length(field[++i])
15798      substed = 1
15799    } else
15800      len += 1 + keylen
15801  }
15802
15803  print line
15804}
15805
15806_ACAWK
15807_ACEOF
15808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15809if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15810  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15811else
15812  cat
15813fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15814  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15815_ACEOF
15816
15817# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15818# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15819# trailing colons and then remove the whole line if VPATH becomes empty
15820# (actually we leave an empty line to preserve line numbers).
15821if test "x$srcdir" = x.; then
15822  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15823h
15824s///
15825s/^/:/
15826s/[	 ]*$/:/
15827s/:\$(srcdir):/:/g
15828s/:\${srcdir}:/:/g
15829s/:@srcdir@:/:/g
15830s/^:*//
15831s/:*$//
15832x
15833s/\(=[	 ]*\).*/\1/
15834G
15835s/\n//
15836s/^[^=]*=[	 ]*$//
15837}'
15838fi
15839
15840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15841fi # test -n "$CONFIG_FILES"
15842
15843# Set up the scripts for CONFIG_HEADERS section.
15844# No need to generate them if there are no CONFIG_HEADERS.
15845# This happens for instance with `./config.status Makefile'.
15846if test -n "$CONFIG_HEADERS"; then
15847cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15848BEGIN {
15849_ACEOF
15850
15851# Transform confdefs.h into an awk script `defines.awk', embedded as
15852# here-document in config.status, that substitutes the proper values into
15853# config.h.in to produce config.h.
15854
15855# Create a delimiter string that does not exist in confdefs.h, to ease
15856# handling of long lines.
15857ac_delim='%!_!# '
15858for ac_last_try in false false :; do
15859  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15860  if test -z "$ac_tt"; then
15861    break
15862  elif $ac_last_try; then
15863    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15864  else
15865    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15866  fi
15867done
15868
15869# For the awk script, D is an array of macro values keyed by name,
15870# likewise P contains macro parameters if any.  Preserve backslash
15871# newline sequences.
15872
15873ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15874sed -n '
15875s/.\{148\}/&'"$ac_delim"'/g
15876t rset
15877:rset
15878s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15879t def
15880d
15881:def
15882s/\\$//
15883t bsnl
15884s/["\\]/\\&/g
15885s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15886D["\1"]=" \3"/p
15887s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15888d
15889:bsnl
15890s/["\\]/\\&/g
15891s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15892D["\1"]=" \3\\\\\\n"\\/p
15893t cont
15894s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15895t cont
15896d
15897:cont
15898n
15899s/.\{148\}/&'"$ac_delim"'/g
15900t clear
15901:clear
15902s/\\$//
15903t bsnlc
15904s/["\\]/\\&/g; s/^/"/; s/$/"/p
15905d
15906:bsnlc
15907s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15908b cont
15909' <confdefs.h | sed '
15910s/'"$ac_delim"'/"\\\
15911"/g' >>$CONFIG_STATUS || ac_write_fail=1
15912
15913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15914  for (key in D) D_is_set[key] = 1
15915  FS = ""
15916}
15917/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15918  line = \$ 0
15919  split(line, arg, " ")
15920  if (arg[1] == "#") {
15921    defundef = arg[2]
15922    mac1 = arg[3]
15923  } else {
15924    defundef = substr(arg[1], 2)
15925    mac1 = arg[2]
15926  }
15927  split(mac1, mac2, "(") #)
15928  macro = mac2[1]
15929  prefix = substr(line, 1, index(line, defundef) - 1)
15930  if (D_is_set[macro]) {
15931    # Preserve the white space surrounding the "#".
15932    print prefix "define", macro P[macro] D[macro]
15933    next
15934  } else {
15935    # Replace #undef with comments.  This is necessary, for example,
15936    # in the case of _POSIX_SOURCE, which is predefined and required
15937    # on some systems where configure will not decide to define it.
15938    if (defundef == "undef") {
15939      print "/*", prefix defundef, macro, "*/"
15940      next
15941    }
15942  }
15943}
15944{ print }
15945_ACAWK
15946_ACEOF
15947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15948  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15949fi # test -n "$CONFIG_HEADERS"
15950
15951
15952eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
15953shift
15954for ac_tag
15955do
15956  case $ac_tag in
15957  :[FHLC]) ac_mode=$ac_tag; continue;;
15958  esac
15959  case $ac_mode$ac_tag in
15960  :[FHL]*:*);;
15961  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15962  :[FH]-) ac_tag=-:-;;
15963  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15964  esac
15965  ac_save_IFS=$IFS
15966  IFS=:
15967  set x $ac_tag
15968  IFS=$ac_save_IFS
15969  shift
15970  ac_file=$1
15971  shift
15972
15973  case $ac_mode in
15974  :L) ac_source=$1;;
15975  :[FH])
15976    ac_file_inputs=
15977    for ac_f
15978    do
15979      case $ac_f in
15980      -) ac_f="$ac_tmp/stdin";;
15981      *) # Look for the file first in the build tree, then in the source tree
15982	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15983	 # because $ac_f cannot contain `:'.
15984	 test -f "$ac_f" ||
15985	   case $ac_f in
15986	   [\\/$]*) false;;
15987	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15988	   esac ||
15989	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15990      esac
15991      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15992      as_fn_append ac_file_inputs " '$ac_f'"
15993    done
15994
15995    # Let's still pretend it is `configure' which instantiates (i.e., don't
15996    # use $as_me), people would be surprised to read:
15997    #    /* config.h.  Generated by config.status.  */
15998    configure_input='Generated from '`
15999	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16000	`' by configure.'
16001    if test x"$ac_file" != x-; then
16002      configure_input="$ac_file.  $configure_input"
16003      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16004$as_echo "$as_me: creating $ac_file" >&6;}
16005    fi
16006    # Neutralize special characters interpreted by sed in replacement strings.
16007    case $configure_input in #(
16008    *\&* | *\|* | *\\* )
16009       ac_sed_conf_input=`$as_echo "$configure_input" |
16010       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16011    *) ac_sed_conf_input=$configure_input;;
16012    esac
16013
16014    case $ac_tag in
16015    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16016      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16017    esac
16018    ;;
16019  esac
16020
16021  ac_dir=`$as_dirname -- "$ac_file" ||
16022$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16023	 X"$ac_file" : 'X\(//\)[^/]' \| \
16024	 X"$ac_file" : 'X\(//\)$' \| \
16025	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16026$as_echo X"$ac_file" |
16027    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16028	    s//\1/
16029	    q
16030	  }
16031	  /^X\(\/\/\)[^/].*/{
16032	    s//\1/
16033	    q
16034	  }
16035	  /^X\(\/\/\)$/{
16036	    s//\1/
16037	    q
16038	  }
16039	  /^X\(\/\).*/{
16040	    s//\1/
16041	    q
16042	  }
16043	  s/.*/./; q'`
16044  as_dir="$ac_dir"; as_fn_mkdir_p
16045  ac_builddir=.
16046
16047case "$ac_dir" in
16048.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16049*)
16050  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16051  # A ".." for each directory in $ac_dir_suffix.
16052  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16053  case $ac_top_builddir_sub in
16054  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16055  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16056  esac ;;
16057esac
16058ac_abs_top_builddir=$ac_pwd
16059ac_abs_builddir=$ac_pwd$ac_dir_suffix
16060# for backward compatibility:
16061ac_top_builddir=$ac_top_build_prefix
16062
16063case $srcdir in
16064  .)  # We are building in place.
16065    ac_srcdir=.
16066    ac_top_srcdir=$ac_top_builddir_sub
16067    ac_abs_top_srcdir=$ac_pwd ;;
16068  [\\/]* | ?:[\\/]* )  # Absolute name.
16069    ac_srcdir=$srcdir$ac_dir_suffix;
16070    ac_top_srcdir=$srcdir
16071    ac_abs_top_srcdir=$srcdir ;;
16072  *) # Relative name.
16073    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16074    ac_top_srcdir=$ac_top_build_prefix$srcdir
16075    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16076esac
16077ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16078
16079
16080  case $ac_mode in
16081  :F)
16082  #
16083  # CONFIG_FILE
16084  #
16085
16086_ACEOF
16087
16088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16089# If the template does not know about datarootdir, expand it.
16090# FIXME: This hack should be removed a few years after 2.60.
16091ac_datarootdir_hack=; ac_datarootdir_seen=
16092ac_sed_dataroot='
16093/datarootdir/ {
16094  p
16095  q
16096}
16097/@datadir@/p
16098/@docdir@/p
16099/@infodir@/p
16100/@localedir@/p
16101/@mandir@/p'
16102case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16103*datarootdir*) ac_datarootdir_seen=yes;;
16104*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16105  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16106$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16107_ACEOF
16108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16109  ac_datarootdir_hack='
16110  s&@datadir@&$datadir&g
16111  s&@docdir@&$docdir&g
16112  s&@infodir@&$infodir&g
16113  s&@localedir@&$localedir&g
16114  s&@mandir@&$mandir&g
16115  s&\\\${datarootdir}&$datarootdir&g' ;;
16116esac
16117_ACEOF
16118
16119# Neutralize VPATH when `$srcdir' = `.'.
16120# Shell code in configure.ac might set extrasub.
16121# FIXME: do we really want to maintain this feature?
16122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16123ac_sed_extra="$ac_vpsub
16124$extrasub
16125_ACEOF
16126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16127:t
16128/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16129s|@configure_input@|$ac_sed_conf_input|;t t
16130s&@top_builddir@&$ac_top_builddir_sub&;t t
16131s&@top_build_prefix@&$ac_top_build_prefix&;t t
16132s&@srcdir@&$ac_srcdir&;t t
16133s&@abs_srcdir@&$ac_abs_srcdir&;t t
16134s&@top_srcdir@&$ac_top_srcdir&;t t
16135s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16136s&@builddir@&$ac_builddir&;t t
16137s&@abs_builddir@&$ac_abs_builddir&;t t
16138s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16139$ac_datarootdir_hack
16140"
16141eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16142  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16143
16144test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16145  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16146  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16147      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16148  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16149which seems to be undefined.  Please make sure it is defined" >&5
16150$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16151which seems to be undefined.  Please make sure it is defined" >&2;}
16152
16153  rm -f "$ac_tmp/stdin"
16154  case $ac_file in
16155  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16156  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16157  esac \
16158  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16159 ;;
16160  :H)
16161  #
16162  # CONFIG_HEADER
16163  #
16164  if test x"$ac_file" != x-; then
16165    {
16166      $as_echo "/* $configure_input  */" \
16167      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16168    } >"$ac_tmp/config.h" \
16169      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16170    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16171      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16172$as_echo "$as_me: $ac_file is unchanged" >&6;}
16173    else
16174      rm -f "$ac_file"
16175      mv "$ac_tmp/config.h" "$ac_file" \
16176	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16177    fi
16178  else
16179    $as_echo "/* $configure_input  */" \
16180      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16181      || as_fn_error $? "could not create -" "$LINENO" 5
16182  fi
16183 ;;
16184
16185
16186  esac
16187
16188done # for ac_tag
16189
16190
16191as_fn_exit 0
16192_ACEOF
16193ac_clean_files=$ac_clean_files_save
16194
16195test $ac_write_fail = 0 ||
16196  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16197
16198
16199# configure is writing to config.log, and then calls config.status.
16200# config.status does its own redirection, appending to config.log.
16201# Unfortunately, on DOS this fails, as config.log is still kept open
16202# by configure, so config.status won't be able to write to it; its
16203# output is simply discarded.  So we exec the FD to /dev/null,
16204# effectively closing config.log, so it can be properly (re)opened and
16205# appended to by config.status.  When coming back to configure, we
16206# need to make the FD available again.
16207if test "$no_create" != yes; then
16208  ac_cs_success=:
16209  ac_config_status_args=
16210  test "$silent" = yes &&
16211    ac_config_status_args="$ac_config_status_args --quiet"
16212  exec 5>/dev/null
16213  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16214  exec 5>>auto/config.log
16215  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16216  # would make configure fail if this is the last instruction.
16217  $ac_cs_success || as_fn_exit 1
16218fi
16219if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16220  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16221$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16222fi
16223
16224
16225